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

1372 lines
3.2 MiB

This file contains invisible Unicode characters!

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

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var _b=Object.defineProperty,Ub=Object.defineProperties;var Hb=Object.getOwnPropertyDescriptors;var nv=Object.getOwnPropertySymbols;var xE=Object.prototype.hasOwnProperty,wE=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,bE=(_e,be,ae)=>be in _e?_b(_e,be,{enumerable:!0,configurable:!0,writable:!0,value:ae}):_e[be]=ae,Qo=(_e,be)=>{for(var ae in be||(be={}))xE.call(be,ae)&&bE(_e,ae,be[ae]);if(nv)for(var ae of nv(be))wE.call(be,ae)&&bE(_e,ae,be[ae]);return _e},Af=(_e,be)=>Ub(_e,Hb(be));var CE=(_e,be)=>{var ae={};for(var oe in _e)xE.call(_e,oe)&&be.indexOf(oe)<0&&(ae[oe]=_e[oe]);if(_e!=null&&nv)for(var oe of nv(_e))be.indexOf(oe)<0&&wE.call(_e,oe)&&(ae[oe]=_e[oe]);return ae};var Jy=(_e,be,ae)=>new Promise((oe,Ce)=>{var ke=Te=>{try{He(ae.next(Te))}catch(ze){Ce(ze)}},Ie=Te=>{try{He(ae.throw(Te))}catch(ze){Ce(ze)}},He=Te=>Te.done?oe(Te.value):Promise.resolve(Te.value).then(ke,Ie);He((ae=ae.apply(_e,be)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[1953],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(_e,be){"use strict";be.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},8423:function(_e,be){"use strict";be.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},63720:function(){"use strict";function _e(Fe,te,ee,he){ee===void 0&&(ee=0),he===void 0&&(he=1/0),this._name=Fe,this._defaultValue=te,this._minimum=ee,this._maximum=he}Object.defineProperty(_e.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(_e.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(_e.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(_e.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,te){var ee=go.Shape._FigureParameters[Fe];return ee?ee[te]:null},go.Shape.setFigureParameter=function(Fe,te,ee){if(!(ee instanceof _e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValue<ee.minimum||ee.defaultValue>ee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var he=go.Shape._FigureParameters[Fe];he||(he=[],go.Shape._FigureParameters[Fe]=he),he[te]=ee};var be=[];function ae(Fe,te){var ee=be.pop();return ee===void 0?new go.Point(Fe,te):(ee.x=Fe,ee.y=te,ee)}function oe(){var Fe=be.pop();return Fe===void 0?new go.Point:Fe}function Ce(Fe){be.push(Fe)}function ke(Fe,te,ee,he,ue,fe,me,Ee,Pe){Pe||(Pe=new go.Point);var Ne=Fe-ee,We=ue-me,tt=NaN,Ye=NaN;if(Ne===0)if(We===0)Fe===ee&&(tt=Fe,Ye=te);else{var Qe=(fe-Ee)/We,lt=fe-Qe*ue;tt=Fe,Ye=Qe*tt+lt}else if(We===0){var nt=(te-he)/Ne,yt=te-nt*Fe;tt=ue,Ye=nt*tt+yt}else{var nt=(te-he)/Ne,Qe=(fe-Ee)/We,yt=te-nt*Fe,lt=fe-Qe*ue;tt=(lt-yt)/(nt-Qe),Ye=nt*tt+yt}return Pe.x=tt,Pe.y=Ye,Pe}function Ie(Fe,te,ee,he,ue,fe,me,Ee,Pe,Ne,We,tt,Ye,Qe){var lt=1-Pe,nt=Pe,yt=Fe*lt+ee*nt,vt=te*lt+he*nt,St=ee*lt+ue*nt,Lt=he*lt+fe*nt,jt=ue*lt+me*nt,Bt=fe*lt+Ee*nt,cn=yt*lt+St*nt,pt=vt*lt+Lt*nt,ut=St*lt+jt*nt,at=Lt*lt+Bt*nt,Wt=cn*lt+ut*nt,rn=pt*lt+at*nt;Ne.x=yt,Ne.y=vt,We.x=cn,We.y=pt,tt.x=Wt,tt.y=rn,Ye.x=ut,Ye.y=at,Qe.x=jt,Qe.y=Bt}var He=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),ze=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*ze,fe=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-ue,0,te,ue)).add(new go.PathSegment(go.PathSegment.Line,te,ee-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,ee-ue,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,he,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,ue,ee,0,ee-ue)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,ue,ue,0).close()));return ue>1&&(fe.spot1=new go.Spot(0,0,ue,ue),fe.spot2=new go.Spot(1,1,-ue,-ue)),fe}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ee/2,he.endX=te,he.endY=ee/2,he}),go.Shape.defineFigureGenerator("LineV",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ee,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Fe,te,ee){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,te,ee/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(Fe,te,ee){var he=te/2,ue=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return ue.spot1=He,ue.spot2=Te,ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Line1",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ee,he}),go.Shape.defineFigureGenerator("Line2",function(Fe,te,ee){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ee,he}),go.Shape.defineFigureGenerator("Curve1",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,ze*te,0,te,(1-ze)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ee,0,ze*ee,(1-ze)*te,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,ze*ee,ze*te,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ze)*te,0,0,(1-ze)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var ue=Math.abs(he)*te;if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new _e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.setFigureParameter("Trapezoid1",0,new _e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var ue=Math.abs(he)*te;if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new _e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}}),go.Shape.setFigureParameter("ManualOperation",0,new _e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var ue=Math.abs(he);if(he===0){var fe=new go.Geometry(go.Geometry.Rectangle);return fe.startX=0,fe.startY=0,fe.endX=te,fe.endY=ee,fe}else{var fe=new go.Geometry;return he>0?fe.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,ee).close())):fe.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),ue<te/2&&fe.setSpots(ue/te,0,(te-ue)/te,1),fe}});var ot=[];function Ke(){var Fe=ot.pop();return Fe===void 0?[]:Fe}function Be(Fe){Fe.length=0,ot.push(Fe)}function gt(Fe){for(var te=Ke(),ee=.5,he=.5,ue=Math.PI*1.5,fe=0,me=0;me<Fe;me++)fe=2*Math.PI/Fe*me+ue,te[me]=new go.Point(he+ee*Math.cos(fe),he+ee*Math.sin(fe));return te.push(te[0]),te}function Je(Fe){var te=wt(Fe),ee=Ke();ee[0]=te[0];for(var he=1,ue=1;he<te.length;he+=2,ue+=3)ee[ue]=te[he],ee[ue+1]=te[he],ee[ue+2]=te[he+1];return Be(te),ee}function wt(Fe){for(var te=gt(Fe),ee=Ke(),he=Math.floor(te.length/2),ue=te.length-1,fe=Fe%2===0?2:1,me=0;me<ue;me++){var Ee=te[me],Pe=te[me+1],Ne=te[(he+me-1)%ue],We=te[(he+me+fe)%ue];ee[me*2]=Ee,ee[me*2+1]=ke(Ee.x,Ee.y,Ne.x,Ne.y,Pe.x,Pe.y,We.x,We.y,new go.Point)}return ee[ee.length]=ee[0],Be(te),ee}go.Shape.defineFigureGenerator("Pentagon",function(Fe,te,ee){var he=gt(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<5;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.2,.22),ue.spot2=new go.Spot(.8,.9),ue}),go.Shape.defineFigureGenerator("Hexagon",function(Fe,te,ee){var he=gt(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<6;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.07,.25),ue.spot2=new go.Spot(.93,.75),ue}),go.Shape.defineFigureGenerator("Heptagon",function(Fe,te,ee){var he=gt(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<7;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.2,.15),ue.spot2=new go.Spot(.8,.85),ue}),go.Shape.defineFigureGenerator("Octagon",function(Fe,te,ee){var he=gt(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<8;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.85),ue}),go.Shape.defineFigureGenerator("Nonagon",function(Fe,te,ee){var he=gt(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<9;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.17,.13),ue.spot2=new go.Spot(.82,.82),ue}),go.Shape.defineFigureGenerator("Decagon",function(Fe,te,ee){var he=gt(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<10;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("Dodecagon",function(Fe,te,ee){var he=gt(12),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<12;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("FivePointedStar",function(Fe,te,ee){var he=wt(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<10;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.266,.333),ue.spot2=new go.Spot(.733,.733),ue}),go.Shape.defineFigureGenerator("SixPointedStar",function(Fe,te,ee){var he=wt(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<12;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.17,.25),ue.spot2=new go.Spot(.83,.75),ue}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Fe,te,ee){var he=wt(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<14;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("EightPointedStar",function(Fe,te,ee){var he=wt(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<16;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("NinePointedStar",function(Fe,te,ee){var he=wt(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<18;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("TenPointedStar",function(Fe,te,ee){var he=wt(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<20;me++)fe.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ee));return fe.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ee).close()),Be(he),ue.spot1=new go.Spot(.281,.261),ue.spot2=new go.Spot(.723,.748),ue}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Fe,te,ee){var he=Je(5),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Be(he),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Fe,te,ee){var he=Je(6),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Be(he),ue.spot1=new go.Spot(.17,.222),ue.spot2=new go.Spot(.833,.777),ue}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Fe,te,ee){var he=Je(7),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Be(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Fe,te,ee){var he=Je(8),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Be(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Fe,te,ee){var he=Je(9),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Be(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Fe,te,ee){var he=Je(10),ue=new go.Geometry,fe=new go.PathFigure(he[0].x*te,he[0].y*ee,!0);ue.add(fe);for(var me=1;me<he.length;me+=3)fe.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ee,he[me].x*te,he[me].y*ee,he[me+1].x*te,he[me+1].y*ee));return fe.segments.last().close(),Be(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.setFigureParameter("FramedRectangle",0,new _e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new _e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN,ue=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=8),isNaN(ue)&&(ue=8);var fe=new go.Geometry,me=new go.PathFigure(0,0,!0);return fe.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he<te/2&&ue<ee/2&&(me.add(new go.PathSegment(go.PathSegment.Move,he,ue)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ue).close())),fe.setSpots(0,0,1,1,he,ue,-he,-ue),fe}),go.Shape.setFigureParameter("Ring",0,new _e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var ue=te/2,fe=new go.Geometry,me=new go.PathFigure(te,te/2,!0);fe.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close());var Ee=Math.max(ue-he,0);return Ee>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+Ee,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ue,ue,Ee,Ee).close())),fe.spot1=He,fe.spot2=Te,fe.defaultStretch=go.GraphObject.Uniform,fe}),go.Shape.defineFigureGenerator("Cloud",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ee,-.09239631*te,.07836421*ee,.1406031*te,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ee,.2450511*te,-.00697547*ee,.3776197*te,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ee,.4539471*te,0,.6066018*te,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ee,.6914277*te,-.01904177*ee,.8921095*te,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ee,1.036446*te,.04105738*ee,1.020377*te,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ee,1.04448*te,.360238*ee,.992256*te,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ee,1.032337*te,.5771781*ee,1.018411*te,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ee,1.028411*te,.9571472*ee,.8556702*te,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ee,.7431877*te,1.009325*ee,.5624123*te,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ee,.4820677*te,1.031761*ee,.3030112*te,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ee,.2329994*te,1.01518*ee,.03213784*te,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ee,-.02812061*te,.9032597*ee,-.01205169*te,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ee,-.01812061*te,.6089503*ee,-.00606892*te,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ee,-.01606892*te,.3892545*ee,-.01205169*te,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Fe,te,ee){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new _e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN,ue=Fe?Fe.parameter2:NaN;isNaN(he)&&(he=0),isNaN(ue)&&(ue=315);var fe=he%360;fe<0&&(fe+=360);var me=ue%360,Ee=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(Ee,Ee).add(new go.PathSegment(go.PathSegment.Arc,fe,me,Ee,Ee,Ee,Ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,te,ee){var he=ze/Math.SQRT2*.5,ue=Math.SQRT2/2,fe=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,ue*te,fe*ee,te,(1-he)*ee,(ue+he)*te,(fe+he)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var ue=Math.min(he,te)/2,fe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(fe-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,fe+ue,0)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me-ue)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me-ue).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var ue=Math.min(he,te)/2,fe=te/2,me=ee/2;return new go.Geometry().add(new go.PathFigure(fe-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,fe+ue,0)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me-ue)).add(new go.PathSegment(go.PathSegment.Line,te,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,fe+ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,ee)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me+ue)).add(new go.PathSegment(go.PathSegment.Line,0,me-ue)).add(new go.PathSegment(go.PathSegment.Line,fe-ue,me-ue).close()))}),go.Shape.setFigureParameter("ThickX",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ee===0){var ue=new go.Geometry(go.Geometry.Rectangle);return ue.startX=0,ue.startY=0,ue.endX=te,ue.endY=ee,ue}else{var fe=te/2,me=ee/2,Ee=Math.atan2(ee,te),Pe=he-Math.min(Math.cos(Ee)*he/2,fe),Ne=he-Math.min(Math.sin(Ee)*he/2,me),ue=new go.Geometry,We=new go.PathFigure(Pe,0,!0);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Line,fe,.2*ee)),We.add(new go.PathSegment(go.PathSegment.Line,te-Pe,0)),We.add(new go.PathSegment(go.PathSegment.Line,te,Ne)),We.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,te,ee-Ne)),We.add(new go.PathSegment(go.PathSegment.Line,te-Pe,ee)),We.add(new go.PathSegment(go.PathSegment.Line,fe,.8*ee)),We.add(new go.PathSegment(go.PathSegment.Line,Pe,ee)),We.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ne)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,0,Ne).close()),ue}}),go.Shape.setFigureParameter("ThinX",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var ue=new go.Geometry,fe=new go.PathFigure(.1*te,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),ue}),go.Shape.setFigureParameter("SquareIBeam",0,new _e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var ue=new go.Geometry,fe=new go.PathFigure(0,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,he*ee).close()),ue}),go.Shape.setFigureParameter("RoundedIBeam",0,new _e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.5);var ue=new go.Geometry,fe=new go.PathFigure(0,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,Math.abs(1-he)*te,.25*ee,Math.abs(1-he)*te,.75*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),ue}),go.Shape.defineFigureGenerator("HalfEllipse",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,ze*te,0,te,(.5-ze/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+ze/2)*ee,ze*te,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,0,te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ee,.5*te,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*te,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.5*ee,.9*te,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.6*te,.2*ee,te,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ee,te,.8*ee,.6*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,.5*te,.75*ee,.55*te,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ee,.45*te,.95*ee,.5*te,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*te,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ee,0,.25*ee,.4*te,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.4*te,.6*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ee,.5*te,.75*ee,.45*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ee,.55*te,.95*ee,.5*te,.75*ee));var fe=.2,me=.3,Ee=0,Pe=fe*ze;return ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+fe+Ee)*ee,(.5-fe+me)*te,(.5+Pe+Ee)*ee,(.5-Pe+me)*te,(.5+fe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+fe+me)*te,(.5+Ee)*ee,(.5+Pe+me)*te,(.5+fe+Ee)*ee,(.5+fe+me)*te,(.5+Pe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+Ee)*ee,(1-.5+fe+me)*te,(.5-Pe+Ee)*ee,(.5+Pe+me)*te,(.5-fe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ee,(.5-Pe+me)*te,(.5-fe+Ee)*ee,(.5-fe+me+.05)*te,(.5-Pe+Ee-.02)*ee)),fe=.2,me=0,Ee=-.3,Pe=fe*ze,ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+fe+me)*te,(.5+Ee)*ee,(.5+Pe+me)*te,(.5+fe+Ee)*ee,(.5+fe+me)*te,(.5+Pe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+Ee)*ee,(1-.5+fe+me)*te,(.5-Pe+Ee)*ee,(.5+Pe+me)*te,(.5-fe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+me)*te,(.5+Ee)*ee,(.5-Pe+me)*te,(.5-fe+Ee)*ee,(.5-fe+me)*te,(.5-Pe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Pe+me)*te,(.5+fe+Ee)*ee,(.5-fe+me)*te,(.5+Pe+Ee)*ee,(.5-Pe+me)*te,(.5+fe+Ee)*ee)),fe=.2,me=-.3,Ee=0,Pe=fe*ze,ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+Ee)*ee,(1-.5+fe+me-.05)*te,(.5-Pe+Ee-.02)*ee,(.5+Pe+me)*te,(.5-fe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+me)*te,(.5+Ee)*ee,(.5-Pe+me)*te,(.5-fe+Ee)*ee,(.5-fe+me)*te,(.5-Pe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+fe+Ee)*ee,(.5-fe+me)*te,(.5+Pe+Ee)*ee,(.5-Pe+me)*te,(.5+fe+Ee)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ee,(.5+Pe+me)*te,(.5+fe+Ee)*ee,(.5+fe+me)*te,(.5+Pe+Ee)*ee).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.5,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var fe=.1,me=.5,Ee=.25;return ue.add(new go.PathSegment(go.PathSegment.Move,(me+fe)*te,Ee*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ee*Ee,fe*te,fe*te).close()),ue=new go.PathFigure(te*.5,0,!1),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),Ee=.75,ue=new go.PathFigure((me+fe)*te,Ee*ee,!0),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ee*Ee,fe*te,fe*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Fe,te,ee){var he=.8535533905932737,ue=.5*te,fe=.5*ee;return new go.Geometry().add(new go.PathFigure(ue,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ue,fe,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,ue,ee)).add(new go.PathSegment(go.PathSegment.Move,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ee)).add(new go.PathSegment(go.PathSegment.Move,ue,fe)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=.5,Ee=.5,Pe=new go.PathFigure(me*te,(Ee-fe)*ee);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-fe)*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),fe=.4,ue=ze*.4;var Ne=oe(),We=oe(),tt=oe(),Ye=oe();Ie(me,Ee-fe,me+ue,Ee-fe,me+fe,Ee-ue,me+fe,Ee,.42,Ne,We,tt,Ye,Ye);var Qe=oe(),lt=oe(),nt=oe();Ie(me,Ee-fe,me+ue,Ee-fe,me+fe,Ee-ue,me+fe,Ee,.58,Ye,Ye,nt,Qe,lt);var yt=oe(),vt=oe(),St=oe();Ie(me,Ee+fe,me-ue,Ee+fe,me-fe,Ee+ue,me-fe,Ee,.42,yt,vt,St,Ye,Ye);var Lt=oe(),jt=oe(),Bt=oe();return Ie(me,Ee+fe,me-ue,Ee+fe,me-fe,Ee+ue,me-fe,Ee,.58,Ye,Ye,Bt,Lt,jt),Pe.add(new go.PathSegment(go.PathSegment.Move,Bt.x*te,Bt.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,Lt.x*te,Lt.y*ee,jt.x*te,jt.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,tt.x*te,tt.y*ee,Ne.x*te,Ne.y*ee,We.x*te,We.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,Bt.x*te,Bt.y*ee).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,St.x*te,St.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,nt.x*te,nt.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,Qe.x*te,Qe.y*ee,lt.x*te,lt.y*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,St.x*te,St.y*ee,yt.x*te,yt.y*ee,vt.x*te,vt.y*ee).close()),Ce(Ne),Ce(We),Ce(tt),Ce(Ye),Ce(Qe),Ce(lt),Ce(nt),Ce(yt),Ce(vt),Ce(St),Ce(Lt),Ce(jt),Ce(Bt),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ee,te,.25*ee,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var ue=(te-he)/2,fe=ue+he;return new go.Geometry().add(new go.PathFigure(fe,.5*ee).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,ue,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.4,fe=.4,me=.5,Ee=.5,Pe=oe(),Ne=oe(),We=oe(),tt=oe(),Ye=new go.PathFigure((me-fe)*te,Ee*ee,!1);he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee)),Ie(me,Ee-fe,me+ue,Ee-fe,me+fe,Ee-ue,me+fe,Ee,.44,We,tt,Ne,Pe,Pe),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*te,Ne.y*ee,We.x*te,We.y*ee,tt.x*te,tt.y*ee));var Qe=ae(Ne.x,Ne.y);Ie(me,Ee-fe,me+ue,Ee-fe,me+fe,Ee-ue,me+fe,Ee,.56,Pe,Pe,Ne,We,tt);var lt=ae(Ne.x,Ne.y);Ye.add(new go.PathSegment(go.PathSegment.Line,(Qe.x*.1+.95*.9)*te,Qe.y*.1*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,Qe.y*.1*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),Ye.add(new go.PathSegment(go.PathSegment.Line,te,0)),Ye.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*te,.15*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*te,(lt.y*.1+.05*.9)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Line,lt.x*te,lt.y*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,We.x*te,We.y*ee,tt.x*te,tt.y*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,(me-ue)*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee)),fe=.35,ue=ze*.35;var nt=new go.PathFigure(me*te,(Ee-fe)*ee,!1);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-fe)*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee));var yt=new go.PathFigure((me-fe)*te,Ee*ee,!1);return he.add(yt),Ce(Pe),Ce(Ne),Ce(We),Ce(tt),Ce(Qe),Ce(lt),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,te,ee){var he=new go.Geometry,ue=.375,fe=0,me=-.125,Ee=ue*ze,Pe=new go.PathFigure((.525+fe)*te,(.5+ue+me)*ee,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+fe)*te,(.5+me)*ee,(.5+Ee+fe)*te,(.5+ue+me)*ee,(.5+ue+fe)*te,(.5+Ee+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5-ue+me)*ee,(1-.5+ue+fe)*te,(.5-Ee+me)*ee,(.5+Ee+fe)*te,(.5-ue+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-Ee+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-Ee+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+fe)*te,(.5+ue+me)*ee,(.5-ue+fe)*te,(.5+Ee+me)*ee,(.5-Ee+fe)*te,(.5+ue+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.475*te,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*te,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee).close()),ue=.325,fe=0,me=-.125,Ee=ue*ze;var Pe=new go.PathFigure((1-.5+ue+fe)*te,(.5+me)*ee,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5+ue+me)*ee,(.5+ue+fe)*te,(.5+Ee+me)*ee,(.5+Ee+fe)*te,(.5+ue+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-Ee+fe)*te,(.5+ue+me)*ee,(.5-ue+fe)*te,(.5+Ee+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-Ee+me)*ee,(.5-Ee+fe)*te,(.5-ue+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+fe)*te,(.5+me)*ee,(.5+Ee+fe)*te,(.5-ue+me)*ee,(1-.5+ue+fe)*te,(.5-Ee+me)*ee));var Pe=new go.PathFigure((.525+fe)*te,(.5+ue+me)*ee,!1);return he.add(Pe),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,te,ee){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,he*te,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Fe,te,ee){var he=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ee,.5*te,.5*ee)));return he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Fe,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,te,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Fe,te,ee){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ee,he*te,he*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.3);var fe=(1-he)*te,me=(.5-ue/2)*ee,Ee=(.5+ue/2)*ee,Pe=new go.Geometry,Ne=new go.PathFigure(0,me,!0);Pe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,Ee).close()),Pe.spot1=new go.Spot(0,me/ee);var We=ke(0,Ee/ee,1,Ee/ee,fe/te,1,1,.5,oe());return Pe.spot2=new go.Spot(We.x,We.y),Ce(We),Pe}),go.Shape.setFigureParameter("Arrow2",0,new _e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=30),ue=Math.min(ue,ee/2);var fe=te-he,me=(ee-ue)/2,Ee=me+ue,Pe=new go.Geometry,Ne=new go.PathFigure(0,me,!0);Pe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,fe,Ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,Ee).close()),Pe.spot1=new go.Spot(0,me/ee);var We=ke(0,Ee/ee,1,Ee/ee,fe/te,1,1,.5,oe());return Pe.spot2=new go.Spot(We.x,We.y),Ce(We),Pe}),go.Shape.defineFigureGenerator("Chevron",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);me.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Pe=ke(0,.5,.3,0,0,ue/ee,.1,ue/ee,oe());return me.spot1=new go.Spot(Pe.x,Pe.y),Pe=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,Pe),me.spot2=new go.Spot(Pe.x,Pe.y),Ce(Pe),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=100);var fe=(ee-he)/2,me=fe+he,Ee=(ee-ue)/2,Pe=Ee+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,Ee=0,Pe=ee):(fe=0,me=ee,Ee=0,Pe=ee));var Ne=new go.Geometry,We=new go.PathFigure(te,.5*ee,!0);Ne.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,Pe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,Pe)),We.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ee)),We.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ee).close());var tt=ke(0,.5,.3,Ee/ee,0,fe/ee,1,fe/ee,oe());return Ne.spot1=new go.Spot(tt.x,tt.y),tt=ke(.7,Pe/ee,1,.5,0,me/ee,1,me/ee,tt),Ne.spot2=new go.Spot(tt.x,tt.y),Ce(tt),Ne}),go.Shape.setFigureParameter("IBeamArrow",0,new _e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);me.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,ue/ee);var Pe=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Pe.x,Pe.y),Ce(Pe),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new _e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=40);var ue=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=100);var fe=(ee-he)/2,me=fe+he,Ee=(ee-ue)/2,Pe=Ee+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,Ee=0,Pe=ee):(fe=0,me=ee,Ee=0,Pe=ee));var Ne=new go.Geometry,We=new go.PathFigure(te,.5*ee,!0);Ne.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,Pe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,Pe)),We.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),We.add(new go.PathSegment(go.PathSegment.Line,0,Ee)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ee)),We.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),We.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ee).close()),Ne.spot1=new go.Spot(0,fe/ee);var tt=ke(.7,Pe/ee,1,.5,0,me/ee,1,me/ee,oe());return Ne.spot2=new go.Spot(tt.x,tt.y),Ce(tt),Ne}),go.Shape.setFigureParameter("Pointer",0,new _e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.1);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ue.spot1=new go.Spot(he,.35);var me=ke(.2,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Ce(me),ue}),go.Shape.setFigureParameter("RoundedPointer",0,new _e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.3);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ee,he*te,.25*ee).close()),ue.spot1=new go.Spot(he,.35);var me=ke(0,.65,1,.65,0,1,1,.5,oe());return ue.spot2=new go.Spot(me.x,me.y),Ce(me),ue}),go.Shape.setFigureParameter("SplitEndArrow",0,new _e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.4);var ue=(.5-he/2)*ee,fe=(.5+he/2)*ee,me=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);me.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var Pe=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Pe.x,Pe.y),Ce(Pe),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=50);var ue=(ee-he)/2,fe=ue+he;he>ee&&(ue=0,fe=ee);var me=new go.Geometry,Ee=new go.PathFigure(te,.5*ee,!0);me.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,ue/ee);var Pe=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Pe.x,Pe.y),Ce(Pe),me}),go.Shape.setFigureParameter("SquareArrow",0,new _e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.7);var ue=new go.Geometry,fe=new go.PathFigure(te,.5*ee,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(he,1),ue}),go.Shape.defineFigureGenerator("Cone1",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.1,me=new go.PathFigure(0,.9*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+fe)*ee,(.5+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ue)*te,ee,0,(.9+fe)*ee).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.9*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,ee,.85/.9*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var fe=new go.PathFigure(0,.9*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ee,(1-.85/.9)*te,.8*ee,.85/.9*te,.8*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var fe=new go.PathFigure(.5*te,ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.3*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var fe=new go.PathFigure(0,.3*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(0,he,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ze*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+fe)*te,0,1*te,ze*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ee,1*te,ee-ze*he,(.5+fe)*te,1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,1*ee,0,ee-ze*he)),me.add(new go.PathSegment(go.PathSegment.Line,0,he));var Ee=new go.PathFigure(te,he,!1);return ue.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-ze*he,(.5+fe)*te,2*he)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-fe)*te,2*he,0,2*he-ze*he)),ue.spot1=new go.Spot(0,0,0,2*he),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder2",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ee/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(0,ee-he,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ze*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+fe)*te,0,te,ze*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,ee-ze*he,(.5+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,ee,0,ee-ze*he));var Ee=new go.PathFigure(0,ee-he,!1);return ue.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee-2*he,0,ee-he-ze*he,(.5-fe)*te,ee-2*he)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te,ee-he,(.5+fe)*te,ee-2*he,te,ee-he-ze*he)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,0,-2*he),ue}),go.Shape.defineFigureGenerator("Cylinder3",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(he,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-ze*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-ze*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ze*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,ze*he,0));var Ee=new go.PathFigure(he,0,!1);return ue.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ee,he+ze*he,0,2*he,(.5-fe)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,he,ee,2*he,(.5+fe)*ee,he+ze*he,ee)),ue.spot1=new go.Spot(0,0,2*he,0),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder4",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var ue=new go.Geometry,fe=ze*.5,me=new go.PathFigure(te-he,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-ze*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-ze*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ze*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,ze*he,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var Ee=new go.PathFigure(te-he,0,!1);return ue.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ee,te-he-ze*he,0,te-2*he,(.5-fe)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te-2*he,(.5+fe)*ee,te-he-ze*he,ee)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,-2*he,0),ue}),go.Shape.defineFigureGenerator("Prism1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,.25*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(.25*te,.25*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.25*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(0,ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ee)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var fe=new go.PathFigure(.5*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var fe=new go.PathFigure(.5*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Fe,te,ee){var he=new go.Geometry,ue=.2,fe=.1,me=ze*ue,Ee=ze*fe,Pe=.5,Ne=.1,We=new go.PathFigure(Pe*te,(Ne+fe)*ee,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-ue)*te,Ne*ee,(Pe-me)*te,(Ne+fe)*ee,(Pe-ue)*te,(Ne+Ee)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-fe)*ee,(Pe-ue)*te,(Ne-Ee)*ee,(Pe-me)*te,(Ne-fe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+ue)*te,Ne*ee,(Pe+me)*te,(Ne-fe)*ee,(Pe+ue)*te,(Ne-Ee)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne+fe)*ee,(Pe+ue)*te,(Ne+Ee)*ee,(Pe+me)*te,(Ne+fe)*ee));var tt=.05,Ye=ze*tt;Pe=.05,Ne=.25;var Qe=new go.PathFigure(.5*te,.2*ee,!0);return he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),Pe=.95,Ne=.25,Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+tt)*te,Ne*ee,(Pe+Ye)*te,(Ne-tt)*ee,(Pe+tt)*te,(Ne-Ye)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),tt=.025,Ye=ze*tt,Pe=.825,Ne=.35,Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-tt)*ee,(Pe+tt)*te,(Ne-Ye)*ee,(Pe+Ye)*te,(Ne-tt)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-tt)*te,Ne*ee,(Pe-Ye)*te,(Ne-tt)*ee,(Pe-tt)*te,(Ne-Ye)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),tt=.05,Ye=ze*tt,Pe=.5,Ne=.7,Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-tt)*ee,(Pe+tt)*te,(Ne-Ye)*ee,(Pe+Ye)*te,(Ne-tt)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-tt)*te,Ne*ee,(Pe-Ye)*te,(Ne-tt)*ee,(Pe-tt)*te,(Ne-Ye)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),tt=.025,Ye=ze*tt,Pe=.175,Ne=.35,Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-tt)*ee,(Pe+tt)*te,(Ne-Ye)*ee,(Pe+Ye)*te,(Ne-tt)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-tt)*te,Ne*ee,(Pe-Ye)*te,(Ne-tt)*ee,(Pe-tt)*te,(Ne-Ye)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),tt=.05,Ye=ze*tt,Pe=.05,Ne=.25,Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-tt)*ee,(Pe-tt)*te,(Ne-Ye)*ee,(Pe-Ye)*te,(Ne-tt)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new _e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;isNaN(he)&&(he=.2);var ue=new go.Geometry,fe=new go.PathFigure(te,0,!0);return ue.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,he*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),ue.spot1=new go.Spot(0,he),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Collate",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee));var fe=new go.PathFigure(.5*te,.5*ee,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,ue*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ee)),he}),go.Shape.defineFigureGenerator("Database",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.1,me=new go.PathFigure(te,.1*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+fe)*ee,(.5+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ue)*te,ee,0,(.9+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-fe)*ee,(.5-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+ue)*te,0,te,(.1-fe)*ee));var Ee=new go.PathFigure(te,.1*ee,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+fe)*ee,(.5+ue)*te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ue)*te,.2*ee,0,(.1+fe)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+fe)*ee,(.5+ue)*te,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ue)*te,.3*ee,0,(.2+fe)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ee,te,(.3+fe)*ee,(.5+ue)*te,.4*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-ue)*te,.4*ee,0,(.3+fe)*ee)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ee,.25*te,.1*ee).close()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.1,me=new go.PathFigure(te,.1*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.9+fe)*ee,(.5+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ue)*te,ee,0,(.9+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-fe)*ee,(.5-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,(.5+ue)*te,0,te,(.1-fe)*ee));var Ee=new go.PathFigure(te,.1*ee,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+fe)*ee,(.5+ue)*te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ue)*te,.2*ee,0,(.1+fe)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+fe)*ee,(.5+ue)*te,.3*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ue)*te,.3*ee,0,(.2+fe)*ee)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ee,te,0,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)?ue=.2:ue<.15&&(ue=.15);var fe=ze*.2,me=new go.PathFigure(0,.2*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-fe)*ee,(.2-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ee,(.8+fe)*te,0,te,(.2-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ee,te,(.8+fe)*ee,(.8+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-fe)*te,ee,0,(.8+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var Ee=new go.PathFigure(0,ue*ee,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;(isNaN(ue)||ue<.1)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(0,ue*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ue*ee)),he}),go.Shape.defineFigureGenerator("Document",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;(isNaN(ue)||ue<.2)&&(ue=.2);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Move,te,ue*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ee)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var fe=new go.PathFigure(.1*te,.4*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(.75*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee));var fe=new go.PathFigure(te,.5*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee));var me=new go.PathFigure(te,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.1);var me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var Ee=new go.PathFigure(ue*te,0,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,0,fe*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,te,fe*ee)),he}),go.Shape.defineFigureGenerator("Junction",function(Fe,te,ee){var he=new go.Geometry,ue=1/Math.SQRT2,fe=(1-1/Math.SQRT2)/2,me=ze*.5,Ee=.5,Pe=new go.PathFigure(te,Ee*ee,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*te,ee,te,(Ee+me)*ee,(Ee+me)*te,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,Ee*ee,(Ee-me)*te,ee,0,(Ee+me)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*te,0,0,(Ee-me)*ee,(Ee-me)*te,0)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,Ee*ee,(Ee+me)*te,0,te,(Ee-me)*ee));var Ne=new go.PathFigure((fe+ue)*te,(fe+ue)*ee,!1);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,fe*te,fe*ee)),Ne.add(new go.PathSegment(go.PathSegment.Move,fe*te,(fe+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,(fe+ue)*te,fe*ee)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close());var fe=new go.PathFigure(.1*te,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ee)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=new go.PathFigure(.5*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,fe*ee,(fe-ue)*te,ee,0,(fe+ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,0,0,(fe-ue)*ee,(fe-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,fe*ee,(fe+ue)*te,0,te,(fe-ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+.1)*te,.9*ee,te,(fe+ue)*ee,(fe+ue)*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.7);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,ue*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.25);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ue*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ee,.96*te,.47*ee,.93*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ee,.86*te,.57*ee,.83*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*te,.4*ee,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var fe=new go.PathFigure(.1*te,.2*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,.1*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close());var fe=new go.PathFigure(.2*te,.1*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ee)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=1-ue,me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close());var Ee=new go.PathFigure(.5*ue*te,ue*ee,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ue)*te,ue*ee)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=new go.PathFigure(te,fe*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,ee,te,(fe+ue)*ee,(fe+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,fe*ee,(fe-ue)*te,ee,0,(fe+ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,0,0,(fe-ue)*ee,(fe-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,fe*ee,(fe+ue)*te,0,te,(fe-ue)*ee));var Ee=new go.PathFigure(te,.5*ee,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Fe,te,ee){var he=new go.Geometry;ee=ee/.8;var ue=new go.PathFigure(0,.7*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ee,.5*te,.6*ee,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*te,.4*ee,.5*te,ee).close()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN,fe=Fe?Fe.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(fe)&&(fe=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(1-fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure((1-ue)*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,ue*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),he}),go.Shape.defineFigureGenerator("Process",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var fe=new go.PathFigure(0,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.25);var fe=new go.PathFigure(ue*te,0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee));var me=new go.PathFigure(ue*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),me.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ee)),he.spot1=new go.Spot(ue,0),he.spot2=new go.Spot(1-ue,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.25*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ee,.25*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ee,.25*te,.5*ee)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Fe,te,ee){var he=new go.Geometry,ue=Fe?Fe.parameter1:NaN;isNaN(ue)&&(ue=.1);var fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ee).close()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=new go.PathFigure(0,0,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(.5+ue)*te,0,te,(.5-ue)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,(.5+ue)*ee,(.5+ue)*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=new go.PathFigure(te,fe*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,ee,te,(fe+ue)*ee,(fe+ue)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,fe*ee,(fe-ue)*te,ee,0,(fe+ue)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*te,0,0,(fe-ue)*ee,(fe-ue)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,fe*ee,(fe+ue)*te,0,te,(fe-ue)*ee));var Ee=new go.PathFigure(te,fe*ee,!1);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,fe*ee));var Pe=new go.PathFigure(.8*te,.75*ee,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ee)),he}),go.Shape.defineFigureGenerator("Ground",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),he}),go.Shape.defineFigureGenerator("Inverter",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.1,fe=.1,me=.9,Ee=.5,Pe=new go.PathFigure(.8*te,.5*ee,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee));var Ne=new go.PathFigure((me+fe)*te,Ee*ee,!0);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,(me-ue)*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,(me+ue)*te,(Ee-fe)*ee,(me+fe)*te,(Ee-ue)*ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=ze*.4,me=ze*.1,Ee=.1,Pe=.9,Ne=.5,We=new go.PathFigure(.8*te,.5*ee,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+fe)*ee,(.4+ue)*te,ee)),We.add(new go.PathSegment(go.PathSegment.Line,0,ee)),We.add(new go.PathSegment(go.PathSegment.Line,0,0)),We.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),We.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+ue)*te,0,.8*te,(.5-fe)*ee));var tt=new go.PathFigure((Pe+Ee)*te,Ne*ee,!0);return he.add(tt),tt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne+Ee)*ee,(Pe+Ee)*te,(Ne+me)*ee,(Pe+me)*te,(Ne+Ee)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ee)*te,Ne*ee,(Pe-me)*te,(Ne+Ee)*ee,(Pe-Ee)*te,(Ne+me)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-Ee)*ee,(Pe-Ee)*te,(Ne-me)*ee,(Pe-me)*te,(Ne-Ee)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ee)*te,Ne*ee,(Pe+me)*te,(Ne-Ee)*ee,(Pe+Ee)*te,(Ne-me)*ee)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=0,Ee=.5,Pe=new go.PathFigure(.8*te,.5*ee,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+fe)*te,(Ee-ue)*ee,.7*te,(Ee-fe)*ee)),ue=.1,fe=ze*.1,me=.9,Ee=.5;var Ne=new go.PathFigure((me-ue)*te,Ee*ee,!0);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,Ee*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,Ee*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=0,Ee=.5,Pe=new go.PathFigure(0,0,!0);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+fe+fe)*te,(Ee-ue)*ee,.8*te,(Ee-fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*te,(Ee+fe)*ee,(me+fe+fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=.2,Ee=.5,Pe=new go.PathFigure(.1*te,0,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Ne=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.7*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+fe)*te,(Ee-ue)*ee,.7*te,(Ee-fe)*ee)),ue=.1,fe=ze*.1,me=.9,Ee=.5;var We=new go.PathFigure((me-ue)*te,Ee*ee,!0);return he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,Ee*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,Ee*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*ue,me=.2,Ee=.5,Pe=new go.PathFigure(.1*te,0,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Ne=new go.PathFigure(.2*te,0,!0);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+fe)*te,(Ee-ue)*ee,.9*te,(Ee-fe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.9*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Resistor",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Inductor",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.1,fe=.1,me=.1,Ee=.5,Pe=new go.PathFigure((me-ue*.5)*te,ee,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.3,Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.5,Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.7,Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.9,Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue*.5)*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.5,fe=.5,me=.5,Ee=.5,Pe=new go.PathFigure((me-fe)*te,Ee*ee,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,(me+ue)*te,(Ee-fe)*ee,(me+fe)*te,(Ee-ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,(me-ue)*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Move,(me-fe+.1)*te,Ee*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe-.1)*te,Ee*ee,me*te,(Ee-fe)*ee,me*te,(Ee+fe)*ee)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.75*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("Diode",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Fe,te,ee){var he=new go.Geometry,ue=te,fe=ee;te=te*.38,ee=ee*.6;var me=ze*.8,Ee=.8,Pe=0,Ne=.5,We=(ue-te)/2,tt=(fe-ee)/2,Ye=new go.PathFigure(Pe*te+We,(Ne+Ee)*ee+tt,!0);he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ee)*te+We,Ne*ee+tt,(Pe-me)*te+We,(Ne+Ee)*ee+tt,(Pe-Ee)*te+We,(Ne+me)*ee+tt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne-Ee)*ee+tt,(Pe-Ee)*te+We,(Ne-me)*ee+tt,(Pe-me)*te+We,(Ne-Ee)*ee+tt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ee+me*.5)*te+We,Ne*ee+tt,Pe*te+We,(Ne-Ee)*ee+tt,(Pe-Ee+me*.5)*te+We,(Ne-me)*ee+tt)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne+Ee)*ee+tt,(Pe-Ee+me*.5)*te+We,(Ne+me)*ee+tt,Pe*te+We,(Ne+Ee)*ee+tt).close()),me=ze*.4,Ee=.4,Pe=.2,Ne=.5;var Qe=new go.PathFigure(Pe*te+We,(Ne+Ee)*ee+tt,!0);he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ee)*te+We,Ne*ee+tt,(Pe-me)*te+We,(Ne+Ee)*ee+tt,(Pe-Ee)*te+We,(Ne+me)*ee+tt)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne-Ee)*ee+tt,(Pe-Ee)*te+We,(Ne-me)*ee+tt,(Pe-me)*te+We,(Ne-Ee)*ee+tt)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ee+me*.5)*te+We,Ne*ee+tt,Pe*te+We,(Ne-Ee)*ee+tt,(Pe-Ee+me*.5)*te+We,(Ne-me)*ee+tt)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne+Ee)*ee+tt,(Pe-Ee+me*.5)*te+We,(Ne+me)*ee+tt,Pe*te+We,(Ne+Ee)*ee+tt).close()),me=ze*.2,Ee=.2,Pe=.5,Ne=.5;var lt=new go.PathFigure((Pe-Ee)*te+We,Ne*ee+tt,!0);he.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne-Ee)*ee+tt,(Pe-Ee)*te+We,(Ne-me)*ee+tt,(Pe-me)*te+We,(Ne-Ee)*ee+tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ee)*te+We,Ne*ee+tt,(Pe+me)*te+We,(Ne-Ee)*ee+tt,(Pe+Ee)*te+We,(Ne-me)*ee+tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne+Ee)*ee+tt,(Pe+Ee)*te+We,(Ne+me)*ee+tt,(Pe+me)*te+We,(Ne+Ee)*ee+tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-Ee)*te+We,Ne*ee+tt,(Pe-me)*te+We,(Ne+Ee)*ee+tt,(Pe-Ee)*te+We,(Ne+me)*ee+tt)),me=ze*.4,Ee=.4,Pe=.8,Ne=.5;var nt=new go.PathFigure(Pe*te+We,(Ne-Ee)*ee+tt,!0);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ee)*te+We,Ne*ee+tt,(Pe+me)*te+We,(Ne-Ee)*ee+tt,(Pe+Ee)*te+We,(Ne-me)*ee+tt)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne+Ee)*ee+tt,(Pe+Ee)*te+We,(Ne+me)*ee+tt,(Pe+me)*te+We,(Ne+Ee)*ee+tt)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ee-me*.5)*te+We,Ne*ee+tt,Pe*te+We,(Ne+Ee)*ee+tt,(Pe+Ee-me*.5)*te+We,(Ne+me)*ee+tt)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne-Ee)*ee+tt,(Pe+Ee-me*.5)*te+We,(Ne-me)*ee+tt,Pe*te+We,(Ne-Ee)*ee+tt).close()),me=ze*.8,Ee=.8,Pe=1,Ne=.5;var yt=new go.PathFigure(Pe*te+We,(Ne-Ee)*ee+tt,!0);return he.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ee)*te+We,Ne*ee+tt,(Pe+me)*te+We,(Ne-Ee)*ee+tt,(Pe+Ee)*te+We,(Ne-me)*ee+tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne+Ee)*ee+tt,(Pe+Ee)*te+We,(Ne+me)*ee+tt,(Pe+me)*te+We,(Ne+Ee)*ee+tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+Ee-me*.5)*te+We,Ne*ee+tt,Pe*te+We,(Ne+Ee)*ee+tt,(Pe+Ee-me*.5)*te+We,(Ne+me)*ee+tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te+We,(Ne-Ee)*ee+tt,(Pe+Ee-me*.5)*te+We,(Ne-me)*ee+tt,Pe*te+We,(Ne-Ee)*ee+tt).close()),he}),go.Shape.defineFigureGenerator("Email",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,0,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,0)),fe.add(new go.PathSegment(go.PathSegment.Move,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.35*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var fe=new go.PathFigure(.1*te,ee,!0,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var me=new go.PathFigure(.6*te,ee,!0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ee).close());var Ee=new go.PathFigure(0,.5*ee,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Power",function(Fe,te,ee){var he=new go.Geometry,ue=ze*.4,fe=.4,me=.5,Ee=.5,Pe=oe(),Ne=oe(),We=oe(),tt=oe();Ie(me,Ee-fe,me+ue,Ee-fe,me+fe,Ee-ue,me+fe,Ee,.5,Pe,Pe,Ne,We,tt);var Ye=ae(Ne.x,Ne.y),Qe=new go.PathFigure(Ne.x*te,Ne.y*ee,!0);he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,We.x*te,We.y*ee,tt.x*te,tt.y*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,(me-ue)*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee)),Ie(me-fe,Ee,me-fe,Ee-ue,me-ue,Ee-fe,me,Ee-fe,.5,We,tt,Ne,Pe,Pe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*te,Ne.y*ee,We.x*te,We.y*ee,tt.x*te,tt.y*ee)),ue=ze*.3,fe=.3,Ie(me-fe,Ee,me-fe,Ee-ue,me-ue,Ee-fe,me,Ee-fe,.5,We,tt,Ne,Pe,Pe),Qe.add(new go.PathSegment(go.PathSegment.Line,Ne.x*te,Ne.y*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,Ee*ee,tt.x*te,tt.y*ee,We.x*te,We.y*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+fe)*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,Ee*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Ie(me,Ee-fe,me+ue,Ee-fe,me+fe,Ee-ue,me+fe,Ee,.5,Pe,Pe,Ne,We,tt),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ne.x*te,Ne.y*ee,tt.x*te,tt.y*ee,We.x*te,We.y*ee).close());var Qe=new go.PathFigure(.45*te,0,!0);return he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),Qe.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Ce(Pe),Ce(Ne),Ce(We),Ce(tt),Ce(Ye),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee/2,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ee/2,te/2,ee/2));function fe(me,Ee,Pe){me.add(new go.PathSegment(go.PathSegment.Move,(.3+Ee)*te,(.8+Pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+Ee)*te,(.5+Pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+Ee)*te,(.5+Pe)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+Ee)*te,(.8+Pe)*ee).close())}return fe(ue,0,0),fe(ue,.4,0),fe(ue,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.2*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.37*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.37*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ee,.45*te,.44*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ee,.48*te,.17*ee,.54*te,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ee,.59*te,.29*ee,.58*te,.28*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ee,.8*te,.34*ee,.88*te,.43*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ee,.87*te,.48*ee,.88*te,.43*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,1.17*te,.76*ee,.82*te,.8*ee).close()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=0,me=0,Ee=ue*ze,Pe=.4*Math.SQRT2/2+.5,Ne=.5-.5*Math.SQRT2/2,We=1,tt=.5,Ye=.5,Qe=0,lt=new go.PathFigure(Pe*te,(1-Ne)*ee,!1);return he.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,We*te,tt*ee,We*te,.7*ee,We*te,tt*ee)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+fe)*te,(Qe+fe)*ee,(.5+ue+fe)*te,(.5-Ee+fe)*ee,(.5+Ee+fe)*te,(.5-ue+fe)*ee)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-Ee+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-Ee+me)*ee)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+fe)*te,.9*ee,(.5-ue+fe)*te,(.5+Ee+me)*ee,(.5-Ee+fe)*te,.9*ee)),lt.add(new go.PathSegment(go.PathSegment.Move,(.25+fe)*te,.8*ee)),lt.add(new go.PathSegment(go.PathSegment.Line,(.35+fe)*te,.9*ee)),lt.add(new go.PathSegment(go.PathSegment.Line,(.2+fe)*te,.95*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(te,ee,!1);he.add(fe);var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.2*te,.35*ee,.3*te,.35*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.7*te,.65*ee,.8*te,.65*ee)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee).close()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.2*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var ue=new go.PathFigure(0,.2*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.7*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ee,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ee,.4*te,.5*ee,te,.5*ee).close());var fe=new go.PathFigure(.45*te,.73*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ee)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(.335*te,(1-.555)*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ee,(1-.12)*te,.46*ee,(1-.02)*te,.54*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ee,.02*te,.54*ee,.12*te,.46*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ee));var me=.5-.285,Ee=.5,Pe=me,Ne=Math.PI/4,We=4*(1-Math.cos(Ne))/(3*Math.sin(Ne)),tt=We*.5,Ye=me,Qe=me,lt=We*Ye,nt=We*Qe;fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-Ye)*te,Pe*ee,(Ee-(lt+Ye)/2)*te,(Pe+(Qe+nt)/2)*ee,(Ee-Ye)*te,(Pe+nt)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*te,(Pe-Qe)*ee,(Ee-Ye)*te,(Pe-nt)*ee,(Ee-lt)*te,(Pe-Qe)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+Ye)*te,Pe*ee,(Ee+lt)*te,(Pe-Qe)*ee,(Ee+Ye)*te,(Pe-nt)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(Ee+Ye)*te,(Pe+nt)*ee,(Ee+(lt+Ye)/2)*te,(Pe+(Qe+nt)/2)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ee));var yt=new go.PathFigure(.2*te,ee,!1);he.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var vt=new go.PathFigure(.8*te,ee,!1);return he.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,ee).close());var fe=new go.PathFigure(.2*te,.2*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue);var fe=new go.PathFigure(te,ee,!1);he.add(fe);var me=new go.PathFigure(.1*te,ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.05*te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ee,0,ee,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ee,.5*te,0,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ee,te,ee,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,ee));var fe=.05;return ue.add(new go.PathSegment(go.PathSegment.Move,(.5-fe)*te,.875*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ee,fe*te,fe*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ee,.575*te,.725*ee,.625*te,.375*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ee,.375*te,.375*ee,.425*te,.725*ee)),he}),go.Shape.defineFigureGenerator("Recycle",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.45*te,.95*ee,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ee,.17*te,.95*ee,.15*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ee,0,.675*ee,0,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ee));var fe=new go.PathFigure(.475*te,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ee,.35*te,0,.375*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ee,.625*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ee));var me=new go.PathFigure(.675*te,.575*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ee,te,.8*ee,te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ee)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ee)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*.5,me=new go.PathFigure(te,ue*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ue*te,ee,te,(ue+fe)*ee,(ue+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ue*ee,(ue-fe)*te,ee,0,(ue+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,ue*te,0,0,(ue-fe)*ee,(ue-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ue*ee,(ue+fe)*te,0,te,(ue-fe)*ee));var Ee=new go.PathFigure(ue*te,0,!1);return he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,ue*te,.15*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,ue*te,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,ue*te,.85*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,0,ue*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*te,ue*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,te,ue*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*te,ue*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ee)),Ee.add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ee)),he}),go.Shape.defineFigureGenerator("Package",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.15*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var fe=new go.PathFigure(0,.15*ee,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ee).close()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(0,.5*ee,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee).close()),he}),go.Shape.defineFigureGenerator("Component",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close());var fe=new go.PathFigure(0,.2*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var me=new go.PathFigure(0,.6*ee,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.15*te,.6*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee));var fe=new go.PathFigure(.15*te,.6*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Workcell",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,.33*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,te,.66*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(te,.8*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee).close());var me=.1,Ee=ze*.1,Pe=.2,Ne=.9,We=new go.PathFigure((Pe-me)*te,Ne*ee,!0);he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-me)*ee,(Pe-me)*te,(Ne-Ee)*ee,(Pe-Ee)*te,(Ne-me)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+me)*te,Ne*ee,(Pe+Ee)*te,(Ne-me)*ee,(Pe+me)*te,(Ne-Ee)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne+me)*ee,(Pe+me)*te,(Ne+Ee)*ee,(Pe+Ee)*te,(Ne+me)*ee)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-me)*te,Ne*ee,(Pe-Ee)*te,(Ne+me)*ee,(Pe-me)*te,(Ne+Ee)*ee).close()),me=.1,Ee=ze*.1,Pe=.8,Ne=.9;var tt=new go.PathFigure((Pe-me)*te,Ne*ee,!0);return he.add(tt),tt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne-me)*ee,(Pe-me)*te,(Ne-Ee)*ee,(Pe-Ee)*te,(Ne-me)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+me)*te,Ne*ee,(Pe+Ee)*te,(Ne-me)*ee,(Pe+me)*te,(Ne-Ee)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ne+me)*ee,(Pe+me)*te,(Ne+Ee)*ee,(Pe+Ee)*te,(Ne+me)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-me)*te,Ne*ee,(Pe-Ee)*te,(Ne+me)*ee,(Pe-me)*te,(Ne+Ee)*ee).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.2*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),he}),go.Shape.defineFigureGenerator("Forklift",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0));var fe=new go.PathFigure(0,.5*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var me=new go.PathFigure(.5*te,.8*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ee));var Ee=new go.PathFigure(.5*te,.7*ee,!1);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var Pe=.1,Ne=ze*.1,We=.1,tt=.9,Ye=new go.PathFigure((We-Pe)*te,tt*ee,!0);he.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(tt-Pe)*ee,(We-Pe)*te,(tt-Ne)*ee,(We-Ne)*te,(tt-Pe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(We+Pe)*te,tt*ee,(We+Ne)*te,(tt-Pe)*ee,(We+Pe)*te,(tt-Ne)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(tt+Pe)*ee,(We+Pe)*te,(tt+Ne)*ee,(We+Ne)*te,(tt+Pe)*ee)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(We-Pe)*te,tt*ee,(We-Ne)*te,(tt+Pe)*ee,(We-Pe)*te,(tt+Ne)*ee)),Pe=.1,Ne=ze*.1,We=.4,tt=.9;var Qe=new go.PathFigure((We-Pe)*te,tt*ee,!0);return he.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(tt-Pe)*ee,(We-Pe)*te,(tt-Ne)*ee,(We-Ne)*te,(tt-Pe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(We+Pe)*te,tt*ee,(We+Ne)*te,(tt-Pe)*ee,(We+Pe)*te,(tt-Ne)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,We*te,(tt+Pe)*ee,(We+Pe)*te,(tt+Ne)*ee,(We+Ne)*te,(tt+Pe)*ee)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(We-Pe)*te,tt*ee,(We-Ne)*te,(tt+Pe)*ee,(We-Pe)*te,(tt+Ne)*ee)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.1*te,.4*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ee).close());var fe=new go.PathFigure(.45*te,.7*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee));var me=new go.PathFigure(.55*te,.4*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ee).close());var We=.05,tt=ze*.05,Ye=.175,Qe=.95,Ee=new go.PathFigure((Ye-We)*te,Qe*ee,!0);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe-We)*ee,(Ye-We)*te,(Qe-tt)*ee,(Ye-tt)*te,(Qe-We)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+We)*te,Qe*ee,(Ye+tt)*te,(Qe-We)*ee,(Ye+We)*te,(Qe-tt)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe+We)*ee,(Ye+We)*te,(Qe+tt)*ee,(Ye+tt)*te,(Qe+We)*ee)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-We)*te,Qe*ee,(Ye-tt)*te,(Qe+We)*ee,(Ye-We)*te,(Qe+tt)*ee));var We=.05,tt=ze*.05,Ye=.375,Qe=.95,Pe=new go.PathFigure((Ye-We)*te,Qe*ee,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe-We)*ee,(Ye-We)*te,(Qe-tt)*ee,(Ye-tt)*te,(Qe-We)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+We)*te,Qe*ee,(Ye+tt)*te,(Qe-We)*ee,(Ye+We)*te,(Qe-tt)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe+We)*ee,(Ye+We)*te,(Qe+tt)*ee,(Ye+tt)*te,(Qe+We)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-We)*te,Qe*ee,(Ye-tt)*te,(Qe+We)*ee,(Ye-We)*te,(Qe+tt)*ee));var We=.05,tt=ze*.05,Ye=.625,Qe=.95,Ne=new go.PathFigure((Ye-We)*te,Qe*ee,!0);he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe-We)*ee,(Ye-We)*te,(Qe-tt)*ee,(Ye-tt)*te,(Qe-We)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+We)*te,Qe*ee,(Ye+tt)*te,(Qe-We)*ee,(Ye+We)*te,(Qe-tt)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe+We)*ee,(Ye+We)*te,(Qe+tt)*ee,(Ye+tt)*te,(Qe+We)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-We)*te,Qe*ee,(Ye-tt)*te,(Qe+We)*ee,(Ye-We)*te,(Qe+tt)*ee));var We=.05,tt=ze*.05,Ye=.825,Qe=.95,lt=new go.PathFigure((Ye-We)*te,Qe*ee,!0);he.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe-We)*ee,(Ye-We)*te,(Qe-tt)*ee,(Ye-tt)*te,(Qe-We)*ee)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+We)*te,Qe*ee,(Ye+tt)*te,(Qe-We)*ee,(Ye+We)*te,(Qe-tt)*ee)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ye*te,(Qe+We)*ee,(Ye+We)*te,(Qe+tt)*ee,(Ye+tt)*te,(Qe+We)*ee)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-We)*te,Qe*ee,(Ye-tt)*te,(Qe+We)*ee,(Ye-We)*te,(Qe+tt)*ee).close());var nt=new go.PathFigure(0,ee,!1);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,te,ee).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var fe=new go.PathFigure(0,.2*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee).close());var me=new go.PathFigure(.15*te,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ee).close());var Ee=.05,Pe=ze*.05,Ne=.35,We=.775,tt=new go.PathFigure((Ne-Ee)*te,We*ee,!0);return he.add(tt),tt.add(new go.PathSegment(go.PathSegment.Bezier,Ne*te,(We-Ee)*ee,(Ne-Ee)*te,(We-Pe)*ee,(Ne-Pe)*te,(We-Ee)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Ee)*te,We*ee,(Ne+Pe)*te,(We-Ee)*ee,(Ne+Ee)*te,(We-Pe)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,Ne*te,(We+Ee)*ee,(Ne+Ee)*te,(We+Pe)*ee,(Ne+Pe)*te,(We+Ee)*ee)),tt.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Ee)*te,We*ee,(Ne-Pe)*te,(We+Ee)*ee,(Ne-Ee)*te,(We+Pe)*ee).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee).close()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.75*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ee)),he}),go.Shape.defineFigureGenerator("Globe",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,.75*te,0,te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,te,.75*ee,.75*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*te,ee,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ee,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee,.15*te,.25*ee,.15*te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ee,.85*te,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ee,.35*te,.3*ee,.65*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ee,.35*te,.7*ee,.65*te,.7*ee)),he}),go.Shape.defineFigureGenerator("Wave",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.25*ee,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ee,.1*te,0,.2*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ee,.425*te,.5*ee,.575*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ee,.8*te,0,.9*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ee,.1*te,.5*ee,.2*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ee,.425*te,ee,.575*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ee,.8*te,.5*ee,.9*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Operator",function(Fe,te,ee){var he=new go.Geometry,ue=.3,fe=ze*.3,me=.5,Ee=.7,Pe=new go.PathFigure((me-ue)*te,Ee*ee,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,Ee*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,Ee*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee));var Ne=new go.PathFigure(0,.7*ee,!1);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ee,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.5*te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.65*te,.3*ee,.65*te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ee,.35*te,.3*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*te,.6*ee,.1*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.2*te,ee,.35*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,ee,.7*te,.6*ee,.9*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ee,.8*te,ee,.65*te,.95*ee)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te,0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,0,ee,.4*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ee,.8*te,ee,.85*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,0)),he}),go.Shape.defineFigureGenerator("Battery",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ee));var fe=new go.PathFigure(0,.6*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,te,.4*ee)),he}),go.Shape.defineFigureGenerator("Delete",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*.5,me=.5,Ee=.5,Pe=new go.PathFigure((me-ue)*te,Ee*ee,!0);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,Ee*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,Ee*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee));var Ne=new go.PathFigure(.15*te,.5*ee,!1);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ee)),he}),go.Shape.defineFigureGenerator("Flag",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.1*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ee,.15*te,0,.35*te,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ee,.65*te,.2*ee,.85*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ee,.85*te,.6*ee,.65*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*te,.4*ee,.15*te,.4*ee).close()),he}),go.Shape.defineFigureGenerator("Help",function(Fe,te,ee){var he=new go.Geometry,ue=.5,fe=ze*.5,me=.5,Ee=.5,Pe=new go.PathFigure((me-ue)*te,Ee*ee,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,Ee*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,Ee*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee).close()),ue=.05,fe=ze*.05,me=.5,Ee=.8;var Ne=new go.PathFigure((me-ue)*te,Ee*ee,!1);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee-ue)*ee,(me-ue)*te,(Ee-fe)*ee,(me-fe)*te,(Ee-ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,Ee*ee,(me+fe)*te,(Ee-ue)*ee,(me+ue)*te,(Ee-fe)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(Ee+ue)*ee,(me+ue)*te,(Ee+fe)*ee,(me+fe)*te,(Ee+ue)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,Ee*ee,(me-fe)*te,(Ee+ue)*ee,(me-ue)*te,(Ee+fe)*ee).close()),Ne.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,.75*te,.475*ee,.75*te,.225*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ee,.4*te,.2*ee,.3*te,.25*ee)),he}),go.Shape.defineFigureGenerator("Location",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.5*te,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ee,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ee,.5*te,0,.025*te,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var fe=new go.PathFigure(.2*te,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ee)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var fe=new go.PathFigure(.2*te,.5*ee,!1);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ee,.25*te,0,.75*te,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ee)),he}),go.Shape.defineFigureGenerator("Gear",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ee,.79840625*te,.39915625*ee,.7834375*te,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ee,.64228125*te,.2188125*ee,.603875*te,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ee,.39759375*te,.20190625*ee,.36053125*te,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ee,.21765625*te,.36059375*ee,.201875*te,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ee,.20221875*te,.603875*ee,.21884375*te,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ee,.36353125*te,.78340625*ee,.3991875*te,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ee,.602375*te,.79809375*ee,.63946875*te,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ee,.78234375*te,.63940625*ee,.798125*te,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ee,.1*te,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.5*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ee,0,.375*ee,.05*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ee,.3*te,.225*ee,.4*te,.175*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ee,.46*te,.05*ee,.525*te,.05*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ee,.525*te,.275*ee,.475*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ee,te,.4*ee,te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ee,.675*te,.55*ee,.675*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ee,.65*te,.7*ee,.65*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ee,.61*te,.85*ee,.61*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*te,ee,0,ee).close()),he}),go.Shape.defineFigureGenerator("Map",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,.2*ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ee)),he}),go.Shape.defineFigureGenerator("Eject",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.7)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var fe=new go.PathFigure(0,ee*.6,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),he}),go.Shape.defineFigureGenerator("Pencil",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*1,ee*1,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ee*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,te,ee*.85).close());var fe=new go.PathFigure(.126*te,.85*ee,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ee)),fe.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ee).close());var me=new go.PathFigure(.402*te,.85*ee,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ee)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ee).close());var Ee=new go.PathFigure(.678*te,.85*ee,!1);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var Pe=new go.PathFigure(.5*te,.1*ee,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),Pe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ee).close()),he}),go.Shape.defineFigureGenerator("Staircase",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee*1,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),he}),go.Shape.defineFigureGenerator("5Bars",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,ee*1,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.184,ee*(1-.184)).close());var fe=new go.PathFigure(te*.204,ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.204,ee*(1-.184))),fe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*(1-.184*2))),fe.add(new go.PathSegment(go.PathSegment.Line,te*.388,ee*1).close());var me=new go.PathFigure(te*.408,ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ee*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ee*1).close());var Ee=new go.PathFigure(te*.612,ee,!0);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var Pe=new go.PathFigure(te*.816,ee,!0);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),Pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),Pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1).close()),he}),go.Shape.defineFigureGenerator("PC",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var fe=new go.PathFigure(te*.055,.07*ee,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.07)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.1).close());var me=new go.PathFigure(te*.055,.13*ee,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.16).close());var Ee=new go.PathFigure(te*.055,.18*ee,!0);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var Pe=new go.PathFigure(te*1,0,!0);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.65).close()),he}),go.Shape.defineFigureGenerator("Plane",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(.55*te,ee,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ee,0,.4*ee,.225*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ee,.975*te,0,te,.08*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee).close()),he}),go.Shape.defineFigureGenerator("Key",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*1,ee*.5,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ee).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ee,.075*te,.075*ee).close()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(0,0,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.08,ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var fe=new go.PathFigure(0,0,!1);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),fe.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1));var me=new go.PathFigure(te*.11,ee*.1,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ee*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ee*.8).close());var Ee=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var Pe=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ee*.8).close()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Fe,te,ee){var he=new go.Geometry,ue=8,fe=ue*ze,me=new go.PathFigure(ue,0,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.14)),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ee,te,ee-fe,te-fe,ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,fe,ee,0,ee-fe)),me.add(new go.PathSegment(go.PathSegment.Line,0,ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,fe,fe,0).close());var Ee=new go.PathFigure(te*.83,0,!1);he.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.3)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.3)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*0).close());var Pe=new go.PathFigure(te*.83,ee*1,!1);he.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.5)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.5)),Pe.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*1).close());var Ne=new go.PathFigure(te*.78,ee*.05,!1);return he.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.05)),Ne.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.25)),Ne.add(new go.PathSegment(go.PathSegment.Line,te*.78,ee*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Fe,te,ee){var he=Fe?Fe.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ee/3);var ue=he*ze,fe=ee*.8,me=new go.Geometry,Ee=new go.PathFigure(he,0,!0);return me.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-ue,0,te,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,te,fe-he)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te-he,fe,te,fe-ue,te-ue,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.7,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee)),Ee.add(new go.PathSegment(go.PathSegment.Line,te*.55,fe)),Ee.add(new go.PathSegment(go.PathSegment.Line,he,fe)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,0,fe-he,ue,fe,0,fe-ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,he)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,ue,ue,0).close()),ue>1?(me.spot1=new go.Spot(0,0,ue,ue),me.spot2=new go.Spot(1,.8,-ue,-ue)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*.45,!0);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.2,ee*.45).close());var fe=new go.PathFigure(te*1,ee*.55,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.55)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.55)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*.55).close()),he}),go.Shape.defineFigureGenerator("Windows",function(Fe,te,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*.1,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.9).close());var fe=new go.PathFigure(te*.1,ee*.2,!0);he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.25)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.22,ee*.285)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.32)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.1,ee*.37)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.32)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.275,ee*.25).close());var me=new go.PathFigure(te*.28,ee*.37,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ee*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Fe,te,ee){var he=new go.Geometry,ue=15,fe=ue*ze,me=new go.PathFigure(te*.62,ee*.475,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ee-ue)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ee,te,ee-fe,te-fe,ee)),me.add(new go.PathSegment(go.PathSegment.Line,ue,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ue,fe,ee,0,ee-fe)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.475)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ee*.03)),me.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.62,ee*.03).close()),fe>1?(he.spot1=new go.Spot(0,0,fe,fe),he.spot2=new go.Spot(1,1,-fe,-fe)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close());var me=new go.PathFigure(te*.4,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;return ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close()),he}),go.Shape.defineFigureGenerator("Upload",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*0,ee*1,!0);he.add(ue);var fe=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.8,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.755,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.93,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.64,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.61,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.39,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.36,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*.07,ee*(1-fe))),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*(1-fe)).close());var me=new go.PathFigure(te*.5,ee*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ee*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ee*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.15,ee*0,!1);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close()),he}),go.Shape.defineFigureGenerator("Drink",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.15,ee*0,!1);he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.85,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.3,ee*1).close());var fe=new go.PathFigure(te*.235,ee*.28,!0);return he.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,te*.765,ee*.28)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.655,ee*.97)),fe.add(new go.PathSegment(go.PathSegment.Line,te*.345,ee*.97).close()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Fe,te,ee){var he=new go.Geometry,ue=new go.PathFigure(te*.5,ee*0,!0);return he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.75,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.55,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.65,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.5,ee*1)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,te*0,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.25,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.45,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,te*.35,ee*.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 _e={},be="5.0",ae={},oe=null,Ce=!1,ke=!1,Ie=null,He=!1,Te=null,ze=null,ot=0;ot<arguments.length;ot++){var Ke=arguments[ot];if(Ke!==null)switch(typeof Ke){case"number":be=Ke.toFixed(1);break;case"string":Ke.match(new RegExp("^[0-9]\\.[0-9]+$"))?be=Ke:Ie=Ke;break;case"object":typeof Ke.is3D!="undefined"?oe=Ke:ae=Ke;break;case"boolean":Ce=Ke,ke=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!ke&&(Ce=!0)),Ie!==null&&ae.id===void 0&&(ae.id=Ie);var Be="",gt="",Je=!1,wt=null,Fe=null,te=null,ee=!1,he=null,ue=null,fe=null,me=null,Ee=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var Pe=function(Tt){return parseFloat(Tt)>4?parseFloat(Tt):5};_e.setHTML5Codebase=function(Tt,Xt){ze=Tt,at(Tt,Xt)},_e.setJavaCodebase=_e.setJavaCodebaseVersion=_e.isCompiledInstalled=_e.setPreCompiledScriptPath=_e.setPreCompiledResourcePath=function(){},_e.setHTML5CodebaseVersion=function(Tt,Xt){var nn=parseFloat(Tt);if(nn!==NaN&&nn<5){console.log("The GeoGebra HTML5 codebase version "+nn+" is deprecated. Using version latest instead.");return}Te=Tt,ut(Tt,Xt)},_e.getHTML5CodebaseVersion=function(){return Fe},_e.getParameters=function(){return ae},_e.setFontsCSSURL=function(Tt){me=Tt},_e.setGiacJSURL=function(Tt){},_e.setJNLPFile=function(Tt){Be=Tt},_e.setJNLPBaseDir=function(Tt){},_e.inject=function(){function Tt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xt="auto",nn=ae.id,Nn,Rt=!1,At=0;At<arguments.length;At++){var Zt=arguments[At];typeof Zt=="string"?(Zt=Zt.toLowerCase(),Zt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xt=Zt:nn=arguments[At]):typeof Zt=="boolean"?Rt=Zt:Zt instanceof HTMLElement&&(Nn=Zt)}In();function In(){if(!He){setTimeout(In,200);return}Xt=cn(Xt);var Dn=Nn||document.getElementById(nn);if(!Dn){console.log("possibly bug on ajax loading? ");return}if(_e.removeExistingApplet(Dn,!1),ae.width===void 0&&Dn.clientWidth&&(ae.width=Dn.clientWidth),ae.height===void 0&&Dn.clientHeight&&(ae.height=Dn.clientHeight),!(ae.width&&ae.height)&&Xt==="html5"&&(delete ae.width,delete ae.height),wt=Xt,Xt==="screenshot")vt(Dn,ae);else{var qe=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?qe=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(qe=(!Ne()||Tt())&&We()),qe?(wt="screenshot",Lt(Dn,ae,Rt,Xt)):yt(Dn,ae,Rt)}}};function Ne(){try{return window.self!==window.top}catch(Tt){return!0}}function We(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}_e.getViews=function(){return oe},_e.isJavaInstalled=function(){return!1};var tt=function(Tt){var Xt=function(At){var Zt=JSON.parse(At),In=function(Oe){return Oe.type=="G"||Oe.type=="E"},Dn=Zt.elements?Zt.elements.filter(In)[0]:Zt;if(!Dn||!Dn.url){nn();return}ae.fileName=Dn.url,Ye(Dn.settings||{}),oe.is3D=!0;var qe="https://www.geogebra.org/images/";_e.setPreviewImage(he||Dn.previewUrl,qe+"GeoGebra_loading.png",qe+"applet_play.png"),Tt()},nn=function(){ae.onError&&ae.onError(),Wt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},Nn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Rt="/materials/"+ae.material_id+"?scope=basic";Qe("https://"+Nn+"/api/proxy.php?path="+encodeURIComponent(Rt),Xt,nn)};function Ye(Tt){var Xt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(nn){Tt[nn]=!!Tt[nn]}),Xt.forEach(function(nn){ae[nn]===void 0&&Tt[nn]!==void 0&&(ae[nn]=Tt[nn])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function Qe(Tt,Xt,nn){var Nn=new XMLHttpRequest;Nn.open("GET",Tt),Nn.onload=function(){Xt(Nn.responseText)},Nn.onerror=nn,Nn.send()}_e.isHTML5Installed=function(){return!0},_e.getLoadedAppletType=function(){return wt},_e.setPreviewImage=function(Tt,Xt,nn){he=Tt,ue=Xt,fe=nn},_e.removeExistingApplet=function(Tt,Xt){var nn;typeof Tt=="string"&&(Tt=document.getElementById(Tt)),wt=null;var Nn=null;for(nn=0;nn<Tt.childNodes.length;nn++){var Rt=Tt.childNodes[nn],At=Rt.className;At==="applet_screenshot"?Xt?(Rt.style.display="block",wt="screenshot"):Rt.style.display="none":At!=="applet_scaler prerender"&&(Tt.removeChild(Rt),Nn=At&&At.indexOf("appletParameters")!=-1?Rt.id:null,nn--)}var Zt=ae.id!==void 0?ae.id:Nn,In=window[Zt];In&&typeof In.getBase64=="function"&&(In.remove(),window[Zt]=null)},_e.refreshHitPoints=function(){if(Pe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Tt=_e.getAppletObject();return Tt&&typeof Tt.recalculateEnvironments=="function"?(Tt.recalculateEnvironments(),!0):!1},_e.startAnimation=function(){var Tt=_e.getAppletObject();return Tt&&typeof Tt.startAnimation=="function"?(Tt.startAnimation(),!0):!1},_e.stopAnimation=function(){var Tt=_e.getAppletObject();return Tt&&typeof Tt.stopAnimation=="function"?(Tt.stopAnimation(),!0):!1},_e.getAppletObject=function(){var Tt=ae.id!==void 0?ae.id:"ggbApplet";return window[Tt]},_e.resize=function(){};var lt=function(Tt,Xt,nn){var Nn=document.createElement("param");Nn.setAttribute("name",Xt),Nn.setAttribute("value",nn),Tt.appendChild(Nn)},nt=function(Tt){return Tt&&Tt!=="false"},yt=function(Tt,Xt,nn){Pe(Fe)<=4.2&&(nn=!0);var Nn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Nn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Rt=document.createElement("div");Rt.classList.add("appletParameters","notranslate");var At=Xt.width,Zt=Xt.height;if(Xt.disableAutoScale=Xt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xt.disableAutoScale,Xt.width!==void 0)if(Pe(Fe)<=4.4)nt(Xt.showToolBar)&&(Xt.height-=7),nt(Xt.showAlgebraInput)&&(Xt.height-=37),Xt.width<605&&nt(Xt.showToolBar)&&(Xt.width=605,At=605);else{var In=100;(nt(Xt.showToolBar)||nt(Xt.showMenuBar))&&(Xt.hasOwnProperty("customToolBar")&&(Xt.customToolbar=Xt.customToolBar),In=nt(Xt.showMenuBar)?245:155),At<In&&(Xt.width=In,At=In)}Rt.style.border="none",Rt.style.display="inline-block";for(var Dn in Xt)Xt.hasOwnProperty(Dn)&&Dn!=="appletOnLoad"&&Rt.setAttribute("data-param-"+Dn,Xt[Dn]);me&&Rt.setAttribute("data-param-fontscssurl",me),_e.resize=function(){GGBAppletUtils.responsiveResize(Tt,Xt)},window.addEventListener("resize",function(Gt){_e.resize()});var qe=typeof Xt.appletOnLoad=="function"?Xt.appletOnLoad:function(){};if(!nn&&Xt.width!==void 0){Xt.hasOwnProperty("showSplash")||Rt.setAttribute("data-param-showSplash","false");var Oe=Tt.querySelector(".applet_scaler.prerender"),Le=Oe!==null;if(Le)var Ge=Oe.querySelector(".ggb_preview");else{var Ge=Bt(At,Zt,Xt.borderColor,!1);Oe=document.createElement("div"),Oe.className="applet_scaler",Oe.style.position="relative",Oe.style.display="block",Oe.style.width=At+"px",Oe.style.height=Zt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Oe,"66%"),Pe(Fe)>=5?(Xt.appletOnLoad=function(Gt){var fn=Tt.querySelector(".ggb_preview");fn&&fn.parentNode.removeChild(fn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Oe),window.GGBT_wsf_view&&$(window).trigger("resize"),qe(Gt)},Le||Oe.appendChild(Ge)):Rt.appendChild(Ge),Oe.appendChild(Rt),Le||Tt.appendChild(Oe),setTimeout(function(){_e.resize()},1)}else{var it=document.createElement("div");it.className="applet_scaler",it.style.position="relative",it.style.display="block",it.appendChild(Rt),Tt.appendChild(it),Xt.appletOnLoad=function(Gt){_e.resize(),qe(Gt)}}function De(Gt,fn){fn&&typeof fn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Gt,fn.appletOnLoad):renderGGBElement(Gt),Wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",fn)}function ht(Gt,fn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Gt,params:fn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){De(Pn.article,Pn.params)}),html5AppletsToProcess=null)},Pe(Fe)<5&&(Gt.className+=" geogebraweb")):De(Gt,fn)}if(Nn){scriptLoadStarted=!0;for(var on=0;on<Rt.childNodes.length;on++){var An=Rt.childNodes[on].tagName;An==="TABLE"&&(Rt.removeChild(Rt.childNodes[on]),on--)}if(ggbHTML5LoadedScript!==null){var Zn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Zn!=null&&Zn.parentNode.removeChild(Zn)}var Ft=document.createElement("script"),It=function(){ht(Rt,Xt)};Ft.src=gt+te,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=Ft.src,Wt("GeoGebra HTML5 codebase loaded: '"+gt+"'.",Xt),!ze&&(!Te||Te=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),It()):gt.requirejs?__webpack_require__.e(7963).then(function(){var Gt=[__webpack_require__(87963)];It.apply(null,Gt)}.bind(this)).catch(__webpack_require__.oe):(Ft.onload=It,Tt.appendChild(Ft))}else ht(Rt,Xt);Xt.height=Zt,Xt.width=At},vt=function(Tt,Xt,nn){var Nn=Bt(Xt.width,Xt.height,Xt.borderColor,nn),Rt=document.createElement("div");Rt.style.position="relative",Rt.style.display="block",Rt.style.width=Xt.width+"px",Rt.style.height=Xt.height+"px",Rt.className="applet_screenshot applet_scaler"+(nn?" applet_screenshot_play":""),Rt.appendChild(Nn);var At=GGBAppletUtils.getScale(Xt,Tt,nn);nn?(Tt.appendChild(jt()),window.GGBT_wsf_view||(Tt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Rt,"66%"),Tt.appendChild(Rt),At!==1&&!isNaN(At)&&(GGBAppletUtils.scaleElement(Rt,At),Rt.style.width=Xt.width+"px",Rt.style.height=Xt.height+"px",Rt.parentNode.style.width=Xt.width*At+"px",Rt.parentNode.style.height=Xt.height*At+"px"),_e.resize=function(){St(Tt,Nn,Rt,nn)},window.addEventListener("resize",function(Zt){_e.resize()}),_e.resize()};function St(Tt,Xt,nn,Nn){if(Tt.contains(Xt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Tt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Tt)}var Rt=GGBAppletUtils.getScale(ae,Tt,Nn);nn.parentNode!==null&&(!isNaN(Rt)&&Rt!==1?(GGBAppletUtils.scaleElement(nn,Rt),nn.parentNode.style.width=ae.width*Rt+"px",nn.parentNode.style.height=ae.height*Rt+"px"):(GGBAppletUtils.scaleElement(nn,1),nn.parentNode.style.width=ae.width+"px",nn.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Tt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}_e.onExitFullscreen=function(Tt,Xt){Xt.appendChild(Tt)};var Lt=function(Tt,Xt,nn,Nn){vt(Tt,Xt,!0);for(var Rt=function(){var In=[];for(Zt=0;Zt<Tt.childNodes.length;Zt++)In.push(Tt.childNodes[Zt]);if(window.GGBT_wsf_view){var Dn=window.GGBT_wsf_view.renderFullScreen(Tt,Xt.id),qe=document.getElementById("fullscreencontainer"),Oe=jQuery(Tt).find(".fullscreencontent");Oe.length>0?(Dn.remove(),Oe.attr("id","fullscreencontent").show(),jQuery(qe).append(Oe),window.dispatchEvent(new Event("resize"))):yt(Dn,Xt,!1),window.GGBT_wsf_view.launchFullScreen(qe)}else wt=Nn,yt(Tt,Xt,!1);if(!window.GGBT_wsf_view)for(Zt=0;Zt<In.length;Zt++)Tt.removeChild(In[Zt])},At=Tt.getElementsByClassName("ggb_preview_play"),Zt=0;Zt<At.length;Zt++)At[Zt].addEventListener("click",Rt,!1),At[Zt].addEventListener("ontouchstart",Rt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Tt),We()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},jt=function(){var Tt=document.createElement("div");if(Tt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xt='.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");}',nn=document.createElement("style");nn.styleSheet?nn.styleSheet.cssText=Xt:nn.appendChild(document.createTextNode(Xt)),document.getElementsByTagName("head")[0].appendChild(nn)}return Tt},Bt=function(Tt,Xt,nn,Nn){var Rt=document.createElement("div");Rt.className="ggb_preview",Rt.style.position="absolute",Rt.style.zIndex="90",Rt.style.width=Tt-2+"px",Rt.style.height=Xt-2+"px",Rt.style.top="0px",Rt.style.left="0px",Rt.style.overflow="hidden",Rt.style.backgroundColor="white";var At="lightgrey";nn!==void 0&&(nn==="none"?At="transparent":At=nn),Rt.style.border="1px solid "+At;var Zt=document.createElement("img");if(Zt.style.position="relative",Zt.style.zIndex="1000",Zt.style.top="-1px",Zt.style.left="-1px",he!==null&&Zt.setAttribute("src",he),Zt.style.opacity=.7,ue!==null){var In,Dn,qe;if(!Nn){In=document.createElement("img"),In.style.position="absolute",In.style.zIndex="1001",In.style.opacity=1,Zt.style.opacity=.3,Dn=360,Dn>Tt/4*3&&(Dn=Tt/4*3),qe=Dn/5.8,In.setAttribute("src",ue),In.setAttribute("width",Dn),In.setAttribute("height",qe);var Oe=(Tt-Dn)/2,Le=(Xt-qe)/2;In.style.left=Oe+"px",In.style.top=Le+"px",Rt.appendChild(In)}}return Rt.appendChild(Zt),Rt},cn=function(Tt){return Tt=Tt.toLowerCase(),Tt==="html5"||Tt==="screenshot"?Tt:"html5"},pt=["web","webSimple","web3d","tablet","tablet3d","phone"],ut=function(Tt,Xt){if(Fe=Tt,Xt){at(Fe,!0);return}var nn=!Ce;if(nn){var Nn=Pe(Fe);!isNaN(Nn)&&Nn<4.4&&(nn=!1)}var Rt,At;window.location.protocol.substr(0,4)==="http"?Rt=window.location.protocol:Rt="http:";var Zt=Fe.indexOf("//");Zt>0?At=Fe:Zt===0?At=Rt+Fe:At="https://www.geogebra.org/apps/5.2.814.0/";for(var In in pt)if(Fe.slice(pt[In].length*-1)===pt[In]||Fe.slice((pt[In].length+1)*-1)===pt[In]+"/"){at(At,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&nn&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!nt(ae.showToolBar)&&!nt(ae.showMenuBar)&&!nt(ae.showAlgebraInput)&&!nt(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?At+="webSimple/":At+="web3d/",at(At,!1)},at=function(Tt,Xt){if(Tt.requirejs){gt=Tt;return}Tt.slice(-1)!=="/"&&(Tt+="/"),gt=Tt,Xt===null&&(Xt=Tt.indexOf("http")===-1),Je=Xt,te="web.nocache.js",ee=!1;var nn=gt.split("/");nn.length>1&&(!Xt&&nn[nn.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):pt.indexOf(nn[nn.length-2])>=0&&(te=nn[nn.length-2]+".nocache.js")),nn=Tt.split("/"),Fe=nn[nn.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 Nn=parseFloat(Fe);Nn!==NaN&&Nn<5&&Tt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nn+" is deprecated. Using version latest instead."),ut("5.0",Xt))},Wt=function(Tt,Xt){window.console&&window.console.log&&(!Xt||typeof Xt.showLogging=="undefined"||Xt.showLogging&&Xt.showLogging!=="false")&&console.log(Tt)};ae.material_id!==void 0?tt(rn):rn();function rn(){var Tt=be;Te!==null?Tt=Te:parseFloat(Tt)<5&&(Tt="5.0"),ut(Tt,!1),ze!==null&&at(ze,Je),He=!0}return _e},GGBAppletUtils=function(){"use strict";function _e(){return window.GGBT_wsf_edit!==void 0}function be(He,Te){Te!=1?(He.style.transformOrigin="0% 0% 0px",He.style.webkitTransformOrigin="0% 0% 0px",He.style.transform="scale("+Te+","+Te+")",He.style.webkitTransform="scale("+Te+","+Te+")",He.style.maxWidth="initial",He.querySelector(".ggb_preview")!==null&&(He.querySelector(".ggb_preview").style.maxWidth="initial"),He.querySelectorAll(".ggb_preview img")[0]!==void 0&&(He.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),He.querySelectorAll(".ggb_preview img")[1]!==void 0&&(He.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(He.style.transform="none",He.style.webkitTransform="none")}function ae(He,Te,ze,ot,Ke,Be){var gt=null;if(Be!=null&&Be!="")for(var Je=He.parentNode;Je!=null;)if((" "+Je.className+" ").indexOf(" "+Be+" ")>-1){gt=Je;break}else Je=Je.parentNode;var wt=0,Fe=0,te=0,ee=0,he=0,ue=0,fe=0;if(gt)wt=gt.offsetWidth,Fe=Math.max(ot?gt.offsetWidth:0,gt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(wt=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),te=wt):(wt=window.innerWidth,Fe=window.innerHeight,te=window.innerWidth),He){var me=He.getBoundingClientRect();me.left>0&&me.left<=wt&&(Ke===void 0||!Ke)&&(document.dir==="rtl"?(he=wt-me.width-me.left,ue=te<=480?10:30):(ue=me.left,he=te<=480?10:30),ee=ue+he)}if(He&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ee=He.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,fe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,fe=40)}}return He&&((ze===void 0||!ze)&&Te>0&&Te+ee<wt?wt=Te:wt-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze===void 0||!ze)&&(Fe-=fe)),{width:wt,height:Fe}}function oe(He,Te,ze,ot,Ke){if(He.isScreenshoGenerator)return 1;var Be=ot!==void 0&&ot,gt=He.noScaleMargin!=null&&He.noScaleMargin,Je=function(Ee){return Ee&&Ee!=="false"},wt=Je(He.autoHeight),Fe=ae(Te,He.width,ze,wt,Be&&window.GGBT_wsf_view||gt,Ke),te=parseInt(Fe.width),ee=He.width,he=He.height;if(ee===void 0){var ue=Te.querySelector(".appletParameters");ue&&(ee=ue.offsetWidth,he=ue.offsetHeight)}var fe=te/ee,me=Be?1:Fe.height/he;return ze!==void 0&&!ze&&(fe=Math.min(1,fe),me=Math.min(1,me)),Math.min(fe,me)}function Ce(He,Te,ze){var ot=1,Ke,Be=!1;if(He.hasOwnProperty("allowUpscale")&&(Be=He.allowUpscale),He.hasOwnProperty("scale")&&(ot=parseFloat(He.scale),(isNaN(ot)||ot===null||ot===0)&&(ot=1),ot>1&&(Be=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Be=!0),!(He.hasOwnProperty("disableAutoScale")&&He.disableAutoScale))Ke=oe(He,Te,Be,ze,He.scaleContainerClass);else return ot;return Be&&(!He.hasOwnProperty("scale")||ot===1)?Ke:Math.min(ot,Ke)}function ke(He){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),ot=He.getBoundingClientRect(),Ke=(Te-ot.width)/2,Be=(ze-ot.height)/2;Be<0&&(Be=0),He.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ke<40?He.style.left="40px":He.style.left=Ke+"px",He.style.top=Be+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be<40?He.style.top="40px":He.style.top=Be+"px",He.style.left=Ke+"px")}function Ie(He,Te){var ze=He.querySelector(".appletParameters");if(ze){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==ze.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(He)}if(ze.parentElement&&/fullscreen/.test(ze.parentElement.className))return;var ot=Ce(Te,He);_e()&&ze.setAttribute("data-param-scale",ot);for(var Ke=null,Be=0;Be<He.childNodes.length;Be++)if(He.childNodes[Be].className!==void 0&&He.childNodes[Be].className.match(/^applet_scaler/)){Ke=He.childNodes[Be];break}if(Ke!==null&&Ke.querySelector(".noscale")!==null)return;var gt=Te.id!==void 0?Te.id:"ggbApplet",Je=window[gt];(Je==null||!Je.recalculateEnvironments)&&Ke!==null&&!Ke.className.match(/fullscreen/)&&(Ke.parentNode.style.transform="",!isNaN(ot)&&ot!==1?(Ke.parentNode.style.width=Te.width*ot+"px",Ke.parentNode.style.height=Te.height*ot+"px",be(Ke,ot)):(be(Ke,1),Ke.parentNode.style.width=Te.width+"px",Ke.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ke(He),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ze).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:_e,positionCenter:ke,getScale:Ce,scaleElement:be}}();__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 _e=n.location.search;return _e.indexOf(J)!=-1||_e.indexOf(K)!=-1}function q(_e,be){}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(_e){var be=s[L].bindings;s[L].bindings=function(){for(var ae=be?be():{},oe=_e[webModule.__softPermutationId],Ce=O;Ce<oe.length;Ce++){var ke=oe[Ce];ae[ke[O]]=ke[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var _e=o.createElement(Q);if(_e.id=L,_e.style.cssText=R+S,_e.tabIndex=-1,o.body.appendChild(_e),t=_e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var be=document.compatMode==U?V:W;t.write(be+X),t.close()}}}function w(_e){function be(oe){function Ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ke=Ce();if(ke){oe();return}function Ie(){if(!ke){if(!Ce())return;ke=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),He&&clearInterval(He)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var He=setInterval(function(){Ie()},$)}function ae(oe){var Ce=u(),ke=Ce.body,Ie=Ce.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=oe,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),ke.appendChild(Ie)}be(function(){ae(_e)})}webModule.__startLoadingFragment=function(_e){return C(_e)},webModule.__installRunAsyncCode=function(_e){var be=u(),ae=be.body,oe=be.createElement(_);oe.language=ab,oe.text=_e,ae.appendChild(oe),ae.removeChild(oe)};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(_e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_e){var be=c[_e];return be==null?null:be},r=d,webModule.__errFn=e}function B(){function _e(He){var Te=He.lastIndexOf(rb);Te==-1&&(Te=He.length);var ze=He.indexOf(sb);ze==-1&&(ze=He.length);var ot=He.lastIndexOf(tb,Math.min(ze,Te));return ot>=O?He.substring(O,ot+P):W}function be(He){if(!He.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=He+vb,He=_e(Te.src)}return He}function ae(){var He=__gwt_getMetaProperty(wb);return He!=null?He:W}function oe(){for(var He=o.getElementsByTagName(_),Te=O;Te<He.length;++Te)if(He[Te].src.indexOf(xb)!=-1)return _e(He[Te].src);return W}function Ce(){var He=o.getElementsByTagName(yb);return He.length>O?He[He.length-P].href:W}function ke(){var He=o.location;return He.href==He.protocol+zb+He.host+He.pathname+He.search+He.hash}var Ie=ae();return Ie==W&&(Ie=oe()),Ie==W&&(Ie=Ce()),Ie==W&&ke()&&(Ie=_e(o.location.href)),Ie=be(Ie),Ie}function C(_e){return _e.match(/^\//)||_e.match(/^[a-zA-Z]+:\/\//)?_e:webModule.__moduleBase+_e}function D(){var _e=[],be=O,ae=[],oe=[];function Ce(He){var Te=oe[He](),ze=ae[He];if(Te in ze)return Te;var ot=[];for(var Ke in ze)ot[ze[Ke]]=Ke;throw r&&r(He,ot,Te),null}if(__gwt_isKnownPropertyValue=function(He,Te){return Te in ae[He]},webModule.__getPropMap=function(){var He={};for(var Te in ae)ae.hasOwnProperty(Te)&&(He[Te]=Ce(Te));return He},webModule.__computePropValue=Ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ke;try{ke=Cb;var Ie=ke.indexOf(Db);Ie!=-1&&(be=parseInt(ke.substring(Ie+P),$),ke=ke.substring(O,Ie))}catch(He){}return webModule.__softPermutationId=be,C(ke+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(_e,be,ae){"use strict";ae.d(be,{Ax:function(){return Ie},Ds:function(){return He},KI:function(){return ze},SI:function(){return ke},f1:function(){return Ce}});var oe=ae(346);function Ce(ot){let Ke=!0;if(ot.length>0){for(let Be=0;Be<ot.length;Be++)if(ot[Be].compile_success==0||!ot[Be].compile_success){Ke=!1;break}}else Ke=!1;return Ke}function ke(ot,Ke=""){let Be=[];for(let gt=0;gt<ot.length;gt++){let Je=ot[gt],wt=Ke?`${Ke}/${Je.name}`:`${Je.name}`;Be.push({title:Je.name,type:Je.type,isLeaf:Je.type!=="tree",key:wt})}return Be}function Ie(ot,Ke,Be){for(let gt=0;gt<ot.length;gt++){let Je=ot[gt];if(Je.key===Ke){Je.children=Be;break}Je.children&&Ie(Je.children,Ke,Be)}return ot}function He(ot,Ke,Be){let gt;return function(){let Je=this,wt=arguments,Fe=function(){gt=null,Be||ot.apply(Je,wt)},te=Be&&!gt;clearTimeout(gt),gt=setTimeout(Fe,Ke),te&&ot.apply(Je,wt)}}const Te=!0,ze=oe.Z.API_SERVER},84842:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Fe}});var oe=ae(99571),Ce=ae(59301),ke=Object.defineProperty,Ie=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Ke=(te,ee,he)=>ee in te?ke(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,Be=(te,ee)=>{for(var he in ee||(ee={}))ze.call(ee,he)&&Ke(te,he,ee[he]);if(Te)for(var he of Te(ee))ot.call(ee,he)&&Ke(te,he,ee[he]);return te},gt=(te,ee)=>Ie(te,He(ee)),Je=(te,ee)=>{var he={};for(var ue in te)ze.call(te,ue)&&ee.indexOf(ue)<0&&(he[ue]=te[ue]);if(te!=null&&Te)for(var ue of Te(te))ee.indexOf(ue)<0&&ot.call(te,ue)&&(he[ue]=te[ue]);return he},wt=(te,ee,he)=>new Promise((ue,fe)=>{var me=Ne=>{try{Pe(he.next(Ne))}catch(We){fe(We)}},Ee=Ne=>{try{Pe(he.throw(Ne))}catch(We){fe(We)}},Pe=Ne=>Ne.done?ue(Ne.value):Promise.resolve(Ne.value).then(me,Ee);Pe((he=he.apply(te,ee)).next())});const Fe=te=>{var ee=te,{children:he}=ee,ue=Je(ee,["children"]);const[fe,me]=(0,Ce.useState)(!1);return Ce.createElement(oe.ZP,gt(Be({},ue),{loading:fe,onClick:Ee=>wt(void 0,null,function*(){try{me(!0),yield ue.onClick(Ee),me(!1)}catch(Pe){console.error(Pe),me(!1)}})}),he)}},85788:function(_e,be,ae){"use strict";var oe=ae(86204),Ce=ae.n(oe),ke=Object.defineProperty,Ie=(ot,Ke,Be)=>Ke in ot?ke(ot,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ot[Ke]=Be,He=(ot,Ke,Be)=>Ie(ot,typeof Ke!="symbol"?Ke+"":Ke,Be),Te=(ot,Ke,Be)=>new Promise((gt,Je)=>{var wt=ee=>{try{te(Be.next(ee))}catch(he){Je(he)}},Fe=ee=>{try{te(Be.throw(ee))}catch(he){Je(he)}},te=ee=>ee.done?gt(ee.value):Promise.resolve(ee.value).then(wt,Fe);te((Be=Be.apply(ot,Ke)).next())});class ze extends oe.EventEmitter{constructor(Ke,Be){super(),He(this,"url"),He(this,"body"),He(this,"fullContent",""),He(this,"controller",null),He(this,"buffer",""),this.url=Ke,this.body=Be}startStream(){return Te(this,null,function*(){this.controller=new AbortController;const{signal:Ke}=this.controller;try{const Be=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Ke});if(!Be.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Be.status}`);const gt=Be.headers.get("content-type");if(!gt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(gt.includes("application/json")){const Fe=yield Be.json();this.emit("error",Fe);return}if(!gt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Je=Be.body.getReader(),wt=new TextDecoder("utf-8");for(;;){const{done:Fe,value:te}=yield Je.read();if(Fe)break;const ee=wt.decode(te,{stream:!0});this.buffer+=ee;const he=this.buffer.split(`
`);this.buffer=he.pop()||"";for(const ue of he)if(ue.startsWith("data:")){const fe=ue.slice(5).trim();if(fe==="[DONE]")break;try{const me=JSON.parse(fe);me.data&&this.handleData(me.data)}catch(me){this.buffer=ue+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",me)}}}this.emit("done",this.fullContent)}catch(Be){Be.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Be.message)}})}handleData(Ke){Ke.content&&(this.fullContent+=Ke.content,this.emit("data",{chunk:Ke,full:this.fullContent}))}cancelRequest(){var Ke;(Ke=this.controller)==null||Ke.abort()}}be.Z=ze},81679:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return wt}});var oe=ae(59301),Ce=ae(30641),ke=ae(77019),Ie=ae(5269),He={smartWrp:"smartWrp___NjRcB"},Te=ae(75975),ze=ae(9148),ot=ae(84842),Ke=ae(59301),Be=(Fe,te,ee)=>new Promise((he,ue)=>{var fe=Pe=>{try{Ee(ee.next(Pe))}catch(Ne){ue(Ne)}},me=Pe=>{try{Ee(ee.throw(Pe))}catch(Ne){ue(Ne)}},Ee=Pe=>Pe.done?he(Pe.value):Promise.resolve(Pe.value).then(fe,me);Ee((ee=ee.apply(Fe,te)).next())});const gt=`<!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 Je({open:Fe=!0,onChange:te,defaultValue:ee,placement:he,width:ue,height:fe,extra:me,onDynamic:Ee,onOpenChange:Pe,showExtra:Ne=!0}){const We=(0,oe.useRef)(null),tt=(0,oe.useRef)(null),[Ye,Qe]=(0,oe.useState)(ee||""),[lt,nt]=(0,oe.useState)(ee||""),[yt,vt]=(0,oe.useState)(!!Fe),[St,Lt]=(0,oe.useState)(1),jt={selectOnLineNumbers:!0};(0,oe.useEffect)(()=>{Fe&&(Qe(ee),nt(ee),vt(!0))},[Fe,ee]),(0,oe.useEffect)(()=>{Ye!==""&&(clearTimeout(tt.current),tt.current=setTimeout(()=>{const cn=document.createElement("iframe");if(cn.style.width="100%",cn.style.height="100%",cn.style.border="0",We.current){We.current.innerHTML="",We.current.appendChild(cn);const pt=cn.contentDocument||cn.contentWindow.document;pt.open(),pt.write(Ye),pt.close()}},1e3))},[Fe,Ye]);const Bt=cn=>{Qe(cn),te==null||te(cn,lt)};return Ke.createElement(Ce.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:yt,width:"100%",height:fe||"100vh",rootClassName:He.smartWrp,destroyOnClose:!0,onClose:()=>{vt(!1),Pe==null||Pe(Ye)},extra:Ne&&Ke.createElement("div",null,Ke.createElement(ze.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:St,onChange:cn=>Lt(cn)}),Ke.createElement(ot.Z,{type:"primary",className:"ml20",onClick:()=>Be(this,null,function*(){yield Ee(Ye,()=>{vt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Ke.createElement(ke.Z,{className:"h100"},Ke.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:St===1?"block":"none"}},Ke.createElement("div",{className:"h100",ref:We})),Ke.createElement(Ie.Z,{flex:"1",style:{display:St===2?"block":"none"}},Ke.createElement(Te.ZP,{height:"90vh",value:ee,language:"html",theme:"vs",showMiniMap:!1,options:jt,onChange:Bt}))))}var wt=Je},10946:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Ye}});var oe=ae(59301),Ce=ae(72460),ke=ae(77596),Ie=ae(3977),He=ae(14179),Te=ae(56102),ze={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ot=ae(6767),Ke=ae(90083),Be=ae(95827),gt=ae(30084),Je=ae(10787),wt=ae(8944),Fe=ae(81679),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ee=(Qe,lt,nt)=>lt in Qe?te(Qe,lt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Qe[lt]=nt,Pe=(Qe,lt)=>{for(var nt in lt||(lt={}))fe.call(lt,nt)&&Ee(Qe,nt,lt[nt]);if(ue)for(var nt of ue(lt))me.call(lt,nt)&&Ee(Qe,nt,lt[nt]);return Qe},Ne=(Qe,lt)=>ee(Qe,he(lt)),We=(Qe,lt)=>{var nt={};for(var yt in Qe)fe.call(Qe,yt)&&lt.indexOf(yt)<0&&(nt[yt]=Qe[yt]);if(Qe!=null&&ue)for(var yt of ue(Qe))lt.indexOf(yt)<0&&me.call(Qe,yt)&&(nt[yt]=Qe[yt]);return nt},Ye=({onFinish:Qe,value:lt,streamingStatus:nt,cancelIndex:yt,loadImage:vt,onDynamic:St,isHiddenHtml:Lt})=>{const[jt,Bt]=(0,oe.useState)(""),[cn,pt]=(0,oe.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ut,at]=(0,oe.useState)(0),[Wt,rn]=(0,oe.useState)(!1),Tt=Nn=>Nn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Rt,At)=>`<mathx data-text="${At.trim()}">$$${At.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,"`$&`"),Xt=()=>{rn(!0),Qe==null||Qe()};(0,oe.useEffect)(()=>{const Nn=vt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${lt}`:lt,Rt=Tt(Nn);if(!Wt)if(vt||!nt||yt>0){Bt(Rt),at(Rt.length),(!nt||yt>0)&&!vt&&Xt();return}else if((Rt==null?void 0:Rt.length)<4)Bt(Rt),at(Rt.length);else if(ut<Rt.length){const At=Rt.length-ut,Zt=setInterval(()=>{Bt(Rt.slice(0,ut+2)),at(In=>In+2)},At>10?Math.max(500/(At/2),20):50);return()=>clearInterval(Zt)}else nt||Xt()},[lt,nt,yt,vt,ut]);const nn=(0,oe.useMemo)(()=>oe.createElement("section",{className:`${ze.answer} fadeIn animated edu_md`},oe.createElement(Ce.UG,{remarkPlugins:[gt.Z,Je.Z],rehypePlugins:[Be.Z,Ie.Z],components:{code(Nn){var Rt=Nn,{node:At,inline:Zt,className:In,children:Dn}=Rt,qe=We(Rt,["node","inline","className","children"]);const Oe=/language-(\w+)/.exec(In||""),Le=String(Dn).trim();return Zt||!Oe?oe.createElement("code",Pe({className:In},qe),Dn):oe.createElement("code",{className:ze.codeCopy,"data-text":`\`\`\`${Oe?Oe[1]:""}
${Dn}
\`\`\``},!Lt&&oe.createElement(Te.CopyToClipboard,{text:Le,onCopy:()=>ot.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement("button",null,"\u590D\u5236")),!Lt&&Oe[1]==="html"&&Wt&&oe.createElement("button",{className:ze.runCode,onClick:()=>{pt(Pe({},Ne(Pe({},cn),{open:++cn.open,defaultValue:Le,language:Oe[1]})))}},"\u8FD0\u884CHTML"),oe.createElement(ke.Z,Pe({wrapLongLines:!0,style:He.Z,language:Oe[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},qe),Le))},img({node:Nn}){var Rt;const At=(Rt=Nn.properties)==null?void 0:Rt.src;return oe.createElement(Ke.Z,{src:At,width:320,"data-text":At,onLoad:()=>vt&&setTimeout(()=>Xt(),500)})},a:Nn=>{var Rt=Nn,{node:At}=Rt,Zt=We(Rt,["node"]);return oe.createElement("a",Ne(Pe({},Zt),{target:"_blank",rel:"noopener noreferrer"}))}}},Wt?jt:`${jt}__`)),[jt]);return oe.createElement(oe.Fragment,null,oe.createElement(Fe.Z,{defaultValue:cn.defaultValue,open:cn.open,language:cn.language,height:cn.height,onChange:(Nn,Rt)=>{Bt(jt.replaceAll(Rt,Nn))},onDynamic:St}),nn)}},91865:function(_e,be,ae){"use strict";var oe=ae(59301),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Te=(Je,wt,Fe)=>wt in Je?Ce(Je,wt,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Je[wt]=Fe,ze=(Je,wt)=>{for(var Fe in wt||(wt={}))Ie.call(wt,Fe)&&Te(Je,Fe,wt[Fe]);if(ke)for(var Fe of ke(wt))He.call(wt,Fe)&&Te(Je,Fe,wt[Fe]);return Je},ot=(Je,wt)=>{var Fe={};for(var te in Je)Ie.call(Je,te)&&wt.indexOf(te)<0&&(Fe[te]=Je[te]);if(Je!=null&&ke)for(var te of ke(Je))wt.indexOf(te)<0&&He.call(Je,te)&&(Fe[te]=Je[te]);return Fe};const Ke=ae(20441),Be={};Ke.keys().forEach(Je=>{const wt=Je.replace("./","").replace(".svg","");Be[wt]=Ke(Je)});const gt=Je=>{var wt=Je,{filename:Fe}=wt,te=ot(wt,["filename"]),ee;const he=((ee=Fe==null?void 0:Fe.split(".").pop())==null?void 0:ee.toLowerCase())||"unknown",ue=Be[he]||Be.default;return oe.createElement("img",ze({src:ue,alt:he},te))};be.Z=gt},2235:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Be}});var oe=ae(59301),Ce={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"},ke=ae(37285),Ie=ae(91865),He=ae(25399),Te=ae(37639),ot=({item:gt})=>{var Je;const[wt,Fe]=(0,oe.useState)(!1);return oe.createElement("div",{className:Ce.f_l_c},oe.createElement(He.Z,{title:gt==null?void 0:gt.name},oe.createElement(Te.Z,{placement:"top",content:oe.createElement("div",null,oe.createElement(ke.Z,null),oe.createElement("pre",{className:Ce.preclass,style:{maxWidth:600,maxHeight:400}},(Je=gt==null?void 0:gt.contents)==null?void 0:Je.toString())),title:oe.createElement("div",null,oe.createElement(Ie.Z,{filename:gt==null?void 0:gt.name,style:{width:16,height:16,marginRight:5}}),gt==null?void 0:gt.name),trigger:"click",open:wt,onOpenChange:te=>{Fe(te)}},oe.createElement("div",{className:Ce.officediv},oe.createElement(Ie.Z,{filename:gt==null?void 0:gt.name,style:{width:16,height:16,marginRight:5}}),gt==null?void 0:gt.name))))},Be=({Filelist:gt})=>oe.createElement("div",null,oe.createElement("div",{style:{display:"flex",alignItems:"center"}},oe.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),oe.createElement(ke.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),oe.createElement("div",{className:Ce.f_l_c},gt==null?void 0:gt.map(Je=>oe.createElement(ot,{item:Je}))))},82105:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return tt}});var oe=ae(59301),Ce=ae(6767),ke=ae(30641),Ie=ae(77019),He=ae(62957),Te=ae(37568),ze=ae(14566),ot=ae(25399),Ke=ae(5269),Be=ae(71051),gt={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Je=ae(9148),wt=ae(346),Fe=ae(50043),te=ae(38986),ee=ae(72409),he=ae(51257),ue=ae(91239),fe=ae(35902),me=ae(85020),Ee=ae(25872),Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXBdcrwy4YmENVsVgZQhBBKEPUYQVBNhBSDKMEGGAG8nAlvJuEfoX9+986B8G/g8Bnlt3yBQvk/m6tKxPKWElIhvjrhpk6HjmPkh4+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3OMsXL5En3ZEfZkcwwNZZFBYMCLIDSgnSAkEfiIKMSNFLYMS1akflokuiTb9sjI32vxvxvwouY3HIdrXQtirvZI6XhISyFtB8qAQ8+jaFuQTvGGlQdy5klHcvji+TTV1eA5MVAdw+bgSiGBQslnZ98gj254idsfW8/azduJ/AArCkj5AXYUYGtXj0IsKRFRpInuI31djz/+94D+ewBbi1oO+zLC/SbafYVACWGA6ljFtlGuhyYoJ5PmrNPfwifeezIzmqe+/nyUMlw1cdGhXAZPvAy8sL2Dn6x+kFvuf5KoWMSLIgPaCiOsKMSJIgQqUEH0jd7eJ7+rSf9vAf43AZ4x44hUJlRXSkudbSkHLGFiUWEhXQfpCITj4Qs4/bS3cP4n3suM5mllQ8aHqECMNBkDYfkM9WMD1pDYhPFxFbgI2jt7+PplN3HPmqfxUDhRgAi1lSOEtrRmd6VusKzw3K6uZwp/DfRfBdzUdFBVg5W6XSpO1K5r4RrAwrJ1HkW5FpFtk5mS4TuXfpYTjz/q1UDL1oyAoAxU35vnSpk0pcHr8DCIlTCv2wjSQEooc//Amqc478LLCfL52K21hQ3h6ZQm9fM1gcid1t//Qu4vgf6LgLVla6LwdpQ42aRL7USWjRDahePHoQXLDjmAyy/7Kq0tzeX0KlBloBpMDFThm5swnuAr0MoiMIAV2kG1sfQJyUjhFSSuEGhuS9uQsQXdOzo45+MX09XZg62ZXAOO4znO4cg1akCc2sWft/RfAmwd0LzyeiHEWXrVNVhpRIO2buzWoYJ3vffNXHLJF0gmExMLq5QkikJCZRFYGqCgZAmKKEoISgpzC6NyJgoUUahQZRcV2p3DEFcoHEeQdGxc1yKdsGBklLPO/CI7trZjKYmlV0nnbmXMod37xt171n74z8X0nwW8qGnlV4Tg20KDVBaaUw1JWTreHKSSnP3Jd3PBVz4BwkNoV1cRSoVEkSSMQpNW9c3Hpei55GyBHyiCUkhQivBDRRhGhKHShiJSEqUBYBwIxwLPwoB2XZuE55BM2tilPO9/27n09/QbwEILF2Pt+F4peVH34PpL/5Rr/0nAixqXH2u5zkNKKS8GLBDCMq4szVNBIpXi6eeuIZnU7+m1TaBUChkKolCD1YAkYQh+CEVlUVKCgq8IwoggVJQkBKEkkIpASqSM3VqftC0UtiVwLIHtQsISeAkN2iWRsimNDHP2u85jfHjMxLP2Kk1i+rtC4QdSvaVv+NknXgv6dYC1qEgkrOeEYM6kj4JWUZYBrC1tEwYR9zz2YxYsaCxTq15Zj1IxFVtYgw5kDCyMKPmCotRnoigF4EeSUiTNYvjGExSGwbXoEjoeNWgNGFxb4LgC17HxEhbJpEOyKkH71m189swvmrwcM7wmMs0fBnhbTskV2eyGV4mT1wE+oGnlD4UlPvuqldFkoonKsgxgW189lwd//1OmTUvHwl8fUUT4pRS5QrwgYRCD9gNJMdBgoRhElPRjvQihpBRa8WckhFIRSjmRwmxhofWLbWvyEniuZVzbSzmkkh7pmjR3//JWrv/RL3BMmiwD1lEXu/mPdg+t/9xrUv7k00VNhyy1LPEsiEkGipOMuWrAOh3pmF64dA433/ktXEeThf6IROkYlorh4SryxYgoCAj90AAuBRG+DwU/pBiI+LlZDEUh0gugCCMNOFZeOkg0c1iWtmxsZU1cnmeR8GySSQ8v5VE1pYoLPvwF2ra2mQXXXzbkFeeUkpRqVVd2w+YKyldZeHHzytv/KHJONRBeY3sTyzo7CptIKj507rv4wkXvQ4gyOxKZFdbEUcq79A06BL5vQPu+BisparAlRck8ji2tb0UNPFT4kSYwHcsxaA1Wx7CjLezahrw0WHNLOngadFWCkaEsXzzrcyhdgGjyMildovlVwR27h9a/53WAD6xfthjPew5wK5XbxIfMCzFp6ZXQAH76yws5/i3Ly9bVB9EuFBori1DS058gOxJbOQh8wlJAUQMtRhT8iEKhyPjoOGPZImMDBYpDknDEQhZtCIxt0fLc8hRuRmLXSpxGi1RDmkxtNalMFYmESzKdIF1bzR2/vIN7fnl7XGrroDA5XXsdgRWEyzvHN71YEXQG1+KW5Vcr5XzUZFxh6Y9O+Hps3ZipIY65ux7/AfsvmGEsHDNGhBJhXOlEktyoxbZOCEs+MvQJfZ/c2DgjPeOM7YSRdo+hfofsUMRgYZzxIE9O5imqIjKKGddBkJIJpogMtV4NU6uqmVpXRdW0EGYP4swXVM1sJF1Tg530+OwH/4tivlAGXDkvpVPXNZ3Dz31sAvDBtQfXBgm3XQlVG3uzZrpY31bAWtLWRkaYOLZ4ZP3PaGyYMqGIK3rJ5EJdyAewZXtEb98Yhd5BRjZbtL0IG7r6aR/pZk80wJgcJFQ5lCoZd1RaZGrxUVFQJsUIbGVoEk+lqXUaSMta5icW8obph9C6NEQeOU71wmbW3Pkwd998B5ZmOm04w9YGzfCoiuYMDz8/bCJ1cevK9wklVms5qPOspal9nxjWltVX7S9SKdyEx++ev450popcQVHl5RB27NLCANaFvOKFJ3v43TURm9pGeGrP83SVdlKSI0SygNKfM8oojrf4cdzmiWOw/HziPrb67Gl1HHPYwYwOe2zetJcZzOEDS99B9aHjcITNRZ++GL+YL1cj8eIZLEr+x+7sc6sNrIOaV94ihXjvRLzv4+yGn3WRIGHe/q0c85ZjqJveytHHLGHLb9dywDtOIjcwyIpFOr41aK1tJbk9JW76TIFfrHuS5/NPUQqzKBVU6sAy0DKwSvjElU/5PW0hXWNVcmxMjnVVad581DL2XzQDy3W571dt9PWP8OkFn2L+qiS39q3m6T9sNN/TgWnWzjA2v+rMbnyfWMxiTzSlO5WgKabzcjmnDWryr85vsHTFQq791XcZ2rOXfG0royLNzvXbUR0b6ZWtnH3SFGobExMn/OSVeS74n0dZl3+YKBqLLVexVnwWE8/1ceLycRKwMYqx/D51o66enBTHrVjMshWzSdck+d1Tm3h5vY9Dnu/P+SW7ljzAZY/+HEvo/KT5SP+O1ttqoHPEnymWNq44RDnWs/qtuDYox2/5nPTzZNrj9kd+yozpHmE+4slnh9iyxyYYHyO35fdkGvbj4ANTHH/yQnOA4kjIJad286MXf0Ix2BuDq4gTA7xS+2pZZVTCZDE8wZWV13Q8TqwQs1jB5d5X2PauRyjsl2Pjpld46LHNJEnx1aorSBzcxXc2XYptxUtYAayUUkKxSixpXX6OUNa1sqyXLV0glF3MHFvC208/jv/+8acgHMbfm+fZdZ3c/3QPo2M5Rrt7mD+3Gc8SfOlrb8ZybbY/VeC8j/yOR7K3xVqx0qiruOuENWMgsQ337YFMeloMtmJlySxW8uXkp+h/z6OIJovNL+3kzgfXUus28EnnIsSiXVy381qTvyud4Mp6SSXPEUumH3IZkvNjCo5/3nFco5v9oGQ08fd/fiFvPWUpws8x3j/Cti3dXHvds4znS4wMFVg4r4HCH+vXb//w7dTUV/Pwz7Oc/51b2Zp/Nhbzkc6L+7q0qXonLHdUMuTQjOBHe3XNJViekqwraE6ofGbSyo5wWDFvNkcetYim2iZeWr+LO9c9jiem8smqC9nV8jBP9D5lio9XX4wZfyyWtq58ANRJSlqmCjJJu5x39bpHQcjq+y9j2Yo6A3ika5iO7X1c8YOnTMexUIxobq5BSZsvfe145ixq4hdf6+Kim26mt9hmWjD62LqcnDTiPi6MICkUVQIGywztmAQldP1Fkw2dmtDL1nCE4JAFszn8sANpqG7g+cd3c9dLTzDNaeU/Z36Zu+QV9I30T4TIRL8/rpfXiKWth2xTSizQymaiC7ZPStKl3q/X/IQlB2UQpRwj3cPs2t7HVT94lvFCQCkIqZ7iknTTfPi8VSxbOYPLLtjGf99xG0OF7okUYzJAJQ1MBPG++nXfRYgBHpkJmeVKVmfdCWO5luCIxfM4ePl8kqkk9zywge27e5iVWMh5qz7IDd1XMpytFEj7kFa8ZNvE0pZDhhH2lH0IeiIz6NPR2vaqWy7h6GNnQCHHaM8IHdsHuPmKVxgbg1IoaJxhExZ93vXBAzj0qJn88BvP8f1b72eo0DOZal8bvxNEVAH9aquXxX85wisxLHAtWD5/Ogcvm08QSe5+aAOFUsSS1CF84ORj+MX6WxgcHNqnFpj8XcuyRrSFI5SRTxMWqHi/iTSp+Nhn3sunv3gSanSY0b4xunaOcM9Ve8mNOESRItmYN+LqrWfOYPkRTVxz+Xq+94tHscUQpVBXR7o8jMpFviSasPQk+8b+/tpqdd/XJh/rls/s5jpDwbv7Rki6CY6sfQMnvG1/rrr3VsYLufinYsExGcqCUMdwJIRj2ZZFGAam3rX2yRw6Lc1fuB+3rrkUkR1guC9H185xnrklojCUohSWkPUDOIV6Tjw3xYIlU3j4gZf44rfuJZ0ooCJBoNs9uhoKJb55rLscklBGRrnpm7mWF6Ii/iMVlTNG5aQnF0SHoD43XSvXedWcvPBIFixu5ap7b4vFihERZaKs0KNSoVjasnJECLvG81x8P5hY50oZrn80+mM9e+H/+zj/8Z5VjPeOsX3DKO2P1OKP2/QO91M7R+EPJXn75y0aW1IM9Gd5/9nX0p8doT6ZIjQ9LoGUcTvHjJLi3pOxdvxYy9r4BM1VRObzUoYUQp+SdqFypVxJVRVCmpVp5P3HHUtH/yhPvrK2LDrKyS4mjzi5KaVdeuU2UAvitBSLjrg8LCsuU4jrT1v86Gef5/AD5tG+TjKyuQHfz7Mrv5MGpxWrPstRpydIpB1T1n31wv/lurs3Mau6ARE5RnUasLoXbYBKYvvFwPW1Yk8t+o0cFFoLS0ICssUcfqQbvvGIxkAQkHQs5tdP44xj3shNv32MUlQoC5mywjK/U34s2CYOaln1gIKTzPdNM24fTb9PytcupI9w2MqDCYcTaNny+S+cgVA+3ZuKHHh0grrWNLYjzGDi5RfbOef862nvLrAgMRcRJSASRCIi0hBEaCCG5nmAlJHpY5XsuJEQNxa0HtYWkBSjAnvyo3F620dt1qdTLJ83nca6On6/aRuWjsdXUUG8oGWBs0YsaVl1mUCcb14wDbo4zie0jXEzU46bHC21J5SbKMsO2p+vfuZ9TG1OMzQwRuO0epJTEli6CSDg6qvv5YqbnqSvT7FYLqdWthIQElEiFD6BVSQURQIiPjGnn1XNfZy5bg6+W4rdV7dskAhLdyUD9hZGGQ/GyyenSHseVa7FGW9axeZXeuno0zJWGmPEdXq5oVcRAIofiyWtK8+xsK6N345brkZRlgnEEInW2Er3suLupV6AMIp402GraErP5bQPLaGmJsFwT0DzrHq8Ws34EUHB55rr7ubXD26grSdParyFOWo5U2nBwsGnYG4lCghRwrXy9CmfwC0Q2ppAA5QIwPaxhE8+ytE7vgepfNIJl7pkhtbmNCcesYTV96wnMiRohmwGdHyZZGml5EfE0pYVhwjhPDvpz7Frm9RR9n2zEKaojCcQlS0Li2bMpHHmaWSmzOCjpxaR+ZRpstU3ZvBqhGmyB37IY4+u5ZEn19Leu4euoRyjo4JUroX6cBZ1qok0NdqO+AZ+kSJ5AidPYJWIrALKziGcHKGVY5QhWpqqSNouVUmbY1fM5/mtPTz7QhtCu7PxDB1Wmqu1OxuZFgeqVKtMeWi3ZnYD0/bNhYY5y36tdfVEWWq+q1OCZfrIs1qWMJCFKqeXt644nY994WgGO8eY2jwFy5UEfkB+XNK/26dtRwcvd26lZ7CDwdwg2dwY2VyJ8ZxFWHIhSKAiG6W0stLbIxTCCbEdHy8RkKmGhvoUtVUJZs9oZFptHZ1dOX7z4NNgheV+tpwc9slgErBSA53DpZnGf5e1HnaLQr03JmMrHoSZyVZcOcXeod20wgaT1lblmNafiELJ2e9+Dx8983TGOlzqp9l47TaJK6sYmeuzd35ANikYLUVk8zmG8oMM5fvJ5nsZK+wlr6uxMI8iMHGrCVDvlEglXVIJj0wyRU2qhrrkVBoTM1mz7mke2vA42PGoLhJxp1Kf8KRLV0hL/Kozu/59ccej6dD3Y3OzsXvZ9SdbPNqd9Zd0JzFOV6YYMA29yiQ7nurrVKLT5bRMK6cdcwbHzj6O/TfWkGq2EEVF9BIMD0L/NMnAfpLReovRKou9NYKuamifAnszktDWw+8QrySZMxaxbChiWiGgiohq3yY1rLj08SvY1PccthMirRKogKgsNkwaihvU8VmZ3B5Ntnh0E09lvHYlRW1F7Uwmd50Y4laLIS7zA3G5FudqbflK+abb0gIZWUSRRdKuY8XsIzg++QaOql3KlGkJqiyBpWdKVYrxALY2K848RTJQLYjSkZ6C6/b3pDcFFoe8KLjiPsXMnM/m7i38z+9W0xV2ouwiyikaYtMsrgGbxGocMLZcOSUNI/25nSObsxMZ6+AZq66W0vqoBhx3PSoleVwyGqKqWNRIz3g2UM7qplnZPGMax59wNDPqZuIEU8iOuvQMF3h+8BUOm9vCUy81kRmaxYKaamY0ZaibbvP0CYLVRylG9cjf5NDyvTmW3kQiOPfRAstv3sANjz7Onv5ehFVAOmMxYFunMK0QFaFp6+i/srSs+J2U13QOb5hs08ZuvXIJtr1RxYwxcdm3kADtunFeVnqaqO/1ZrMw5MR3H8u3v3Mh6VIKui3kiKJ7T4Gt3R7rLZcrZw4z/sgrjK7OIUaTCDuFXRsRTJXwnma8WQ4i5SAbM2Zt68aKpF/JMvr4ehqe3E5QGjFpS4pxsMYNWCl8sOJxuwFrtETsj+ZiNIQMZOCv2D3+gtnq9CpNclDL4bcr5KmVXFxx6zgXx3NiIwSEZlL983GDT293WPPUdXR3ZJlZN52awRrIxymhb0+JV7Yk2BY6XHsQrNu1m7qf7qFQdAhG95pOZ3T4VGw3IpOReOmEGY0eZOUQJYclxak8/IcbGRvpwqKAtPIokUfZQdx3toxei9vLZhgQNxr0fbmdcUfH0LOvH7VocHqY5tn2a4Zpk/Fp4rW8eqHuuOoBl+1w/LFvpKWpidtueo6pDVV85Qunc/iyg83GEz1J6G4v0b+xlj2FNLcsFDyWgTc9IykWfPoLRUZtKBLhpm3GSgUGdr5MJtjL/jObSKkGzkq1ctUz32JwqBOlCUqLERWgdNoy45QoLjyEVuTlHpkBrkoR8s8P00yKmn7oD5WaHJfqr8dyvdyf1sNqx+YTnzuVk088knA0yaZ70ty5+jFyuoupxYFq46S3n8KX/vMwQl9RKob0do6Rfa6ZbGEKv291uKcBTumGXa2QfaqD3t695KekYd4cVMFl18YXSOV6aFx4IIe6MzjF2c2lD1xEvjSEsPVOgdi62uO09taAdbFR2SdiLA0/6hha9+fHpfoTeiCeSTrPKdScyfgtV9OWoLZxCj9bfQHzZzUw3pVnw5DPwFpF/7r9uOqJ+1DFdgqFnVQ5czn/k4fzgTMWQzFNKS/o6upl4OVG9ham8ezUFP+71GJwlWDWmjHmPVRkLILt/ij5A6cyJVuF//JepjY4HFZVx/FCkZm1iwe3385v73/QKNw4RjXY8nhGb5CbKAdV+wjR8r86ENeglzSvPM6y7Af1locKC2vwuqS79rZv0nTkHKbuGad/Wze7erP07B5i+MWl3PjYIHsLXQxnH8NRPvPrlnL5Zcczd24rdlDHWHGE7a900bk9za+f3sqgX2L8HW9j1zGzKXiaXiWWFWKPjSA6x/GiOo7synBoyUakIzIdG5i+1KIn187VV9yI1KMdPZMuN91N4RPnXR8VnbhreP3rdum9tqcywc5Lph/6FWS8qcW0epRk6aoDuPrOSxkvZXE6e+h8uZuenix9vVkGdrvc9XAfW4pJlL8XObqFZnsBK1fW8ZMfno7lpCBy2LalnTW/7WHr7iJ+YOF4GapbZrM+KRhIeCjLxQ3VHzf8CRJKcpQlWZTwqCsGjPg72NXRy+nvO5zH1z/PLTffZfaBRFqF6p0DdszCoYou6siu+9s3tZRRW0taDr1eCc7Sw7UgDPnSxR/nbZ88mdrcHvbu2M2uV3ro6Rqir3eEnt1Fnl43zkvd7UTSYVwOUE8LJxw9m/M+ejTz5jdhWS5rf7eDX93bTnVdHTv2CNPqqUulmOYUTHdDRS46szq2S3U6RUNdmro6G89VjI2Mml1Caddj9vJmvvfjG+np6o1T0WQf+sad2Wf+/m1LGrTemFYnoztQ4iRden3v++dQlUlRk3ForE7Rtq2L3t1ZurqzdLRHbN+VY/2Ol0y6yoWjtCTrWbFsJjNbZ/Dlz55g9mJdf93z3PnEWs79yFv5zW97EQSm6d8oPDwnQdtQmrpkC8LKYDkWdtRHbbqfpuYEgZ4jlwLsMZ+Zi2bSOd7NHXfoeNZ7x0ztu6aU5R/emGYMfVDTQVVYVbdjqxMfXn89NRmb7Vs2k93ZTVQI6e7K0tExRNsOj2JB8sgLa4kim7FokGluAzXJVoa9Dh674UtYtstVV27gqR3Pc8bJx7JxYw+W7eAnG/CppeDUsyvVTCn06F82lZrOMfbLjjI7M84C0UFCFk1Hwx/K4XmNpKaX+Mm1vy6TF2vGR8dO6+ef2HpYCWht6XrFld/4+mln6wn/KR98M+vu30CYK7KrfZBXthXo7AjNTpqNbdtpG+gnkDlqnVqy0TAOLqsvO4t5c1ro7S8wf2E9N9/xErftbaA0mGNnQyPFqiqzHYrWVjhsoVYo0JgBJwlt7bT27Gb+3t0samlmrrsXNZqHouD6Rx8gwr+hNMy5f2nLYQXLnyWtfeVlJaZ3tT1zwcz9pl88sGOL2/fyHm66YSP7zWymo3OY3JCOP4exYsR9G58hUFlSVgZfKeZNaeCcs1bwpjcuxUokqJua4sZbtvLQy+Os78szXl1D1NAM6SpUcwMctxyyWkJaIBOwfisi209193amjw/yjtlNzJ6doDDiBz+/+b6LXxl54jv/0u3D+4Jv3/jQsbXVxes2/qFz7o7NfUZUdLSX2N4+TlJUM712KvdtfprBsYG4nFQOGc/hrPcs47R3HoqdSNI0cwqrV7/EExsH6LRqIeWRsAVB0iNXO5P2BQvItWhWV0wdyjF/82aSbgkVSYb3+hxnD7NoblVbOs05Z339vNfttvsTxpp46e+x8GRBMfTwlHWPtX+jZ+fgeS+/PJzY3VUkLNm4YS1JK8n69q1sH2inoEaotmvJZOAT71/FGw47ADuVonVuPWvu3c0TT3ejogAVCFI1VTy6fZjISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Ne=(Ye,Qe,lt)=>new Promise((nt,yt)=>{var vt=jt=>{try{Lt(lt.next(jt))}catch(Bt){yt(Bt)}},St=jt=>{try{Lt(lt.throw(jt))}catch(Bt){yt(Bt)}},Lt=jt=>jt.done?nt(jt.value):Promise.resolve(jt.value).then(vt,St);Lt((lt=lt.apply(Ye,Qe)).next())}),tt=(0,oe.forwardRef)(({onUpdateNum:Ye,onSave:Qe},lt)=>{var nt;const yt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[vt,St]=(0,oe.useState)(!1),[Lt,jt]=(0,oe.useState)([]),[Bt,cn]=(0,oe.useState)(null),[pt,ut]=(0,oe.useState)([]),[at,Wt]=(0,oe.useState)(0),[rn,Tt]=(0,oe.useState)(0),[Xt,nn]=(0,oe.useState)(!1),[Nn,Rt]=(0,oe.useState)(""),[At,Zt]=(0,oe.useState)(0),[In,Dn]=(0,oe.useState)(0),[qe,Oe]=(0,oe.useState)(0),[Le,Ge]=(0,oe.useState)(0),[it,De]=(0,oe.useState)(0),[ht,on]=(0,oe.useState)(0),[An,Zn]=(0,oe.useState)(0),[Ft,It]=(0,oe.useState)(0),[Gt,fn]=(0,oe.useState)(Ee.Q),{contentRef:Pn,value:an,status:Ot,open:Mn,close:Ht}=Gt,Kt=(0,fe.Z)({contentRef:Pn,status:Ot}),{openProgress:un,closeProgress:Vn,CreateProgressModal:bn,progressOpen:mt}=(0,ue.Z)();(0,oe.useEffect)(()=>{Bt&&yi(),Bt===!1&&(Ht(),Ye==null||Ye(),jt([]),Rt(""),Zt(0),Dn(0),Oe(0),Ge(0),De(0),on(0),Zn(0),It(0))},[Bt]);const jn=()=>{cn(!0)};(0,oe.useImperativeHandle)(lt,()=>({onClick:jn}));const Kn=Un=>{nn(!0),Wt(Un),Tt(0)},Ut=Un=>Ne(void 0,null,function*(){const si=Un.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(si)==-1?(Ce.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Un.size/1024/1024>10?(Ce.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),yi=()=>Ne(void 0,null,function*(){const Un=yield(0,te.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Un.status===0&&(Wt(Un.total_number),Tt(Un.remaining_number))}),Vi=Un=>(Un=Un||"",Un=String(Un),Un=Un.replace(/\s+/g,""),Un),kn=(Un=!0)=>Ne(void 0,null,function*(){var si,li;const Me=[{name:"\u5355\u9009\u9898",num:At||0},{name:"\u591A\u9009\u9898",num:In||0},{name:"\u5224\u65AD\u9898",num:qe||0},{name:"\u586B\u7A7A\u9898",num:Le||0},{name:"\u7B80\u7B54\u9898",num:it||0},{name:"\u7EC4\u5408\u9898",num:Ft||0},{name:"\u7F16\u7A0B\u9898",num:ht||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:An||0}];if(Un){if(Vi(Nn)){if(Nn.length>1e3){Ce.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ce.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Vi(Nn)&&!(Lt!=null&&Lt.length)){Ce.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const On=Me.reduce((ni,Ei)=>ni+Ei.num,0);if(On===0){Ce.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(On>50){Ce.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(at!==-1){nn(!0);return}}nn(!1);const ti={scene_type:6,request_identifier:Math.random(),file_id:(li=(si=Lt[0])==null?void 0:si.response)==null?void 0:li.id,content:Nn,count_arr:Me.map(On=>On.num).join(",")};yield Mn(ti),yi()}),Vt=()=>Ne(void 0,null,function*(){const Un=Kt();if(Qe){cn(!1),Qe(Un);return}un(),St(!0),ut([]);const si=new FormData;si.append("html",Un);const li=yield(0,te.ZP)("/api/intelligent_imports/import.json",{method:"post",body:si},!0);if((li==null?void 0:li.status)===0)if(li!=null&&li.data){Vn(100),ut(li==null?void 0:li.data);return}else Ce.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");St(!1),Vn()}),Qn=()=>Ne(void 0,null,function*(){const Un=Kt();(0,he.RG)(Un)}),ai=["uploading","error"].includes((nt=Lt==null?void 0:Lt[0])==null?void 0:nt.status);return oe.createElement(oe.Fragment,null,oe.createElement(me.Z,{visible:Xt,totalCount:at,usedCount:rn,onCancel:()=>nn(!1),onOk:()=>kn(!1)}),oe.createElement(ke.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:oe.createElement("div",{className:gt.extraHeader},oe.createElement(Ie.Z,{align:"middle"},!Ot&&!!an&&oe.createElement(oe.Fragment,null,oe.createElement(Je.op,{onClick:Vt,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),oe.createElement(Je.op,{onClick:Qn,shape:"default",type:"text"},oe.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),oe.createElement("i",{onClick:()=>{const Un=si=>{He.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:si,onOk:()=>{cn(!1)}})};if(Ot){Un("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else an?Un("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):cn(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Bt},oe.createElement("div",{className:gt.wrap},oe.createElement("div",{className:gt.left},oe.createElement("div",{className:gt.tip},oe.createElement("img",{src:Pe}),oe.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),oe.createElement("div",{className:"mb10 mt20 c-black"},oe.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),oe.createElement(Te.default.TextArea,{style:{height:160},className:"mb20",value:Nn,placeholder:yt,onChange:Un=>{Rt(Un.target.value)}}),oe.createElement(ze.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${wt.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Lt,withCredentials:!0,data:{upload_type:1},beforeUpload:Ut,onChange:({file:Un})=>{var si,li;Un.status!=="removed"&&(Un.status==="done"&&((si=Un==null?void 0:Un.response)==null?void 0:si.status)!==0&&(Un.status="error",Un.response=(li=Un==null?void 0:Un.response)==null?void 0:li.message),jt([Un]))},onRemove:()=>jt([])},oe.createElement(ot.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},oe.createElement(Je.op,{style:{borderRadius:2}},oe.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),oe.createElement("div",{className:"c-black mt20"},oe.createElement("div",{className:"mb10 c-black"},oe.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),oe.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",oe.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),oe.createElement(Ie.Z,{style:{gap:16}},oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u5355\u9009\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:At,onChange:Zt,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u591A\u9009\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:In,onChange:Dn,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u5224\u65AD\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:qe,onChange:Oe,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u586B\u7A7A\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:Le,onChange:Ge,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7B80\u7B54\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:it,onChange:De,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7EC4\u5408\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:Ft,onChange:It,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7F16\u7A0B\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:ht,onChange:on,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),oe.createElement(Be.Z,{min:0,max:10,value:An,onChange:Zn,style:{marginLeft:"8px"}})))),Ot?oe.createElement("div",{onClick:Ht,className:gt.bottomBtn},oe.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):ai?oe.createElement("div",{className:`${gt.bottomBtn} ${gt.disabled}`},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):oe.createElement("div",{onClick:()=>{kn()},className:gt.bottomBtn},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),oe.createElement(Ee.Z,{onStatusChange:fn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!mt,noRestrictModal:Kn,stringTransformer:ee.o,onError:Un=>{Object.prototype.toString.call(Un)==="[object Object]"&&Un.status===-9&&Kn(Un.data)}}))),oe.createElement(ke.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:vt},oe.createElement(Ie.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},oe.createElement("img",{src:ae(36413),alt:"\u667A\u80FD\u51FA\u9898"}),oe.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),oe.createElement(Fe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:pt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>St(!1),onSuccess:()=>{St(!1),cn(!1)}}),oe.createElement("div",{style:{height:70}})),bn("\u5904\u7406\u4E2D"))})},25395:function(_e,be,ae){"use strict";var oe=ae(59301);const Ce=({scrollBoxRef:ke,bottomInspectRef:Ie,contentRef:He,status:Te,rootMargin:ze="70px",bottomOffset:ot=110})=>{const[Ke,Be]=(0,oe.useState)(!0),gt=(0,oe.useRef)(!1);return(0,oe.useEffect)(()=>{if(!ke.current||!Ie.current)return;const Je=new IntersectionObserver(([wt])=>{var Fe,te,ee,he;if(!document.contains(wt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Fe=wt.rootBounds)==null?void 0:Fe.width)===0&&((te=wt.rootBounds)==null?void 0:te.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((ee=wt.boundingClientRect)==null?void 0:ee.width)===0&&((he=wt.boundingClientRect)==null?void 0:he.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}Be(wt.isIntersecting)},{root:ke.current,rootMargin:ze,threshold:0});return Je.observe(Ie.current),()=>{Je.disconnect()}},[ke.current,Ie.current,ze]),(0,oe.useEffect)(()=>{if(!Te)return;const Je=ke.current,wt=He.current;gt.current=!1;let Fe=Je.scrollTop;const te=()=>{const{scrollTop:he,scrollHeight:ue,clientHeight:fe}=Je;he>Fe?he+fe>=ue-ot&&(Je.scrollTop=Je.scrollHeight,gt.current=!1):he<Fe&&(gt.current=!0),Fe=he};Je.addEventListener("scroll",te);const ee=new ResizeObserver(()=>{gt.current||(Je.scrollTop=Je.scrollHeight)});return ee.observe(wt),()=>{setTimeout(()=>{ee.unobserve(wt)},250),Je.removeEventListener("scroll",te)}},[Te]),Ke};be.Z=Ce},35902:function(_e,be,ae){"use strict";var oe=ae(59301);const Ce=({contentRef:ke,status:Ie})=>((0,oe.useEffect)(()=>{!Ie&&(ke!=null&&ke.current)&&ke.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(ze=>{ze.tagName.toLowerCase()==="code"?ze.parentElement&&(ze.parentElement.contentEditable="false"):ze.tagName.toLowerCase()==="mathx"&&(ze.contentEditable="false")})},[Ie]),(Te=!1)=>{const ze=gt=>{const Je={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&copy;":"\xA9","&reg;":"\xAE","&euro;":"\u20AC"};return gt.replace(/&[^;]+;/g,wt=>Je[wt]||wt)};if(!ke.current)return"";const ot=ke.current.cloneNode(!0);ot.querySelectorAll("code[data-text], mathx[data-text]").forEach(gt=>{let Je=gt.getAttribute("data-text");gt.tagName.toLowerCase()==="code"?Je=Je.replace(/```.*\n|\n```/g,""):gt.tagName.toLowerCase()==="mathx"&&(Je=`$$${Je}$$`);const wt=document.createTextNode(Je);gt.parentNode.replaceChild(wt,gt)}),Te&&ot.querySelectorAll('[data-select="disabled"]').forEach(Je=>{var wt;const Fe=Je.textContent||"",te=document.createTextNode(Fe+`
`);(wt=Je.parentNode)==null||wt.replaceChild(te,Je)});let Be=ot.innerHTML;return Te||(Be=Be.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),Be=Be.replace(/<p>/g,""),Be=Be.replace(/<\/p>/g,`
`),Be=Be.replace(/<br>/g,`
`),Be=Be.replace(/\r\n/g,`
`),Be=Be.replace(/<[^>]*>/g,""),Be=ze(Be),Be});be.Z=Ce},91239:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Je}});var oe=ae(59301),Ce=ae(62957),ke=ae(77019),Ie=ae(60242),He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY0mWhsyuZvfRM48Tzj4i9vpv3+aHf7QMH4qXVqbPnr8ETqWxIi0SAUEgCURoFDD+QswDuANkswJkEIZ8HkmnA0QBfALj/2U6Mr4kt+u3nOo9vamryS+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jGw7t50BzvGMZfReD5gKa60JP5x3tyTULH511wgn2cBH/QIFoH+CVv7h/wUrEjqqNhhkIiEBIgtGXAFrapDgiXVFdDlSWcqQ5Q9YBfCEAHMhlgH8s6kWV5jhXnlPW43Ie45wz7nINjJGOJyIxXWdM12gD0zTxljAAhCXmoSagK3oM/kt7yP0KL+i4IhNBfEbX4/DMss0DX7v02Ip7hwsCHfeBAvG/v3no5mbrqG/U149CaQkQCsttcxuwcgOQtVwEtByivkxLLKotr62KRI2Yfvy4CYzlc0A6DWRSwAuL+3DsKBdHjA/A5RwM3CMyg64BpqEh4NNBBoDGJAB0p8U3W3hdQIXoyiUbyleDIOwEigcSB1xo7oI1O87/+km1j+wNCB8oEB0JXn3NL5/fFB11aqQkAsRiQDgMdPYB85dx9KayqI1afQ3luasSVd0PPHbe5Dxd4NVPpq4/8qjQDxNJIJ2SYDwxrxfjS3I4fXoQ3OWC+IbGSJjAb+oIh02EfBp04gRNyiqJhXwhQZDg7QwPAUFvSTAKrKPA8tChJzr32vbUnWdOLblsb0H4QIG459klV8xZW3FbZfVolBIIpBN8wHPzbXT0ZjC63O4fU5s98eaL6pcV39hrcX52VxZPJRIeR6SBu17oxox6F6dP9Qsb12dq8Bka/KaGWNRELGTA1CV3EE0JCHGzRVwhQSgSU7uiZhEABQ7x+CWVd7sefHHtxJ9/8aD4RwqIm59Y9cKG+ISTS6Imop5u6O538de5aYCncPQBzpf/cFnDPUNv6uUd/BddKVxFnJBKA/0DHL/5awcuOMyPgxs1GBoQMCUIpVETZTEDQZO4wdPaBIbS5koeESDFlN2VgC5a/YVr8oAhE3t5c/K7p06K/WJfgPCBccTSpUvNOW0127rSI2ojISAYAgwT2NTm4KUlAzig2tk0fWblxFknsJ2sjm7Oo4u7sG5HCnXZjARi7WYL987pxE/OjKEiAvh1hoCPIRY2UF3mQzQoRZTucYLiAsUB76R5kZLweES+Q5qHnr2/nEtEOZCx3PjNT64cc/OXpvd9pIBYN8ArZy8caN+Ripkhct6C0oN+Y52Fro40RlU69/z+soovD72peTv4La0pXJnJAJmsFE2PvjKA7X0ZzDojAg0cAZ+GSIChttKHiiiJKCa4ROiFgm4YVAW7Y5149FZ0H7wswkIDtvRk7zqkPnjpvgLhA+OIt7t47fw1uba2Xr8WDAJcBwJRoKXbwoNPxfHpQ4xb77yi4hvFN7a4j1+1NYmb0lkw4VWngc0tDu59pRefmmriYxN8IiYV8muoLTdQX2kgSN65Rs6CDJMI8VNE+aEEVv/vihCKgwZtXaVQOF5cHj/6s4dXLPzIAdHezkOvtjrbV7XoMd0PVNYCZWWATwceeKKfL/5r7zU988YIedua5RM2pXFDRwqfy+alM0diKZkCHnoxia5kFtefEYHOuPA3KmIGmuoNRAMMfgMwikSSIiJJFfVQL4WkGQKS+p+8O2U4FYD0Dkykrebzf7NgwpxZw3fedgXg7nDqPgH+nFvzL1VWGR+fOI4hGpbhDIMIp4FW8sagiU2ui+qUjSnZPEwKcVh5GewjL/vlRRbmr0/h4mNMHFinC/MxEmQYN8JERZTBr3vcoHG47gbPttHhugyuS0JMOM/gfOdnuAxcLwc5fcIHITPYCzoWrFsPBBJ3zT25302qCVy+T4hSdJK9AqIvy8f2MxxiuQgxhh0+YN0IPzYzxpyhFzrm4k0lZ5816r4RdfqnAuYgEEKEKI+XnCQKfXtxJhF1zQGvr3Dx8qoMjhvLceZ0EzroeIYxDSbqy4tBIN3AYfNnAFjeJdDJibIGGAuCsRJoPAoGExw2Ul1vYlv6NJh+8j101JQaAoxiblGii0Te/A3p0088IDz7QwEEf/RRvfXsz/wmwbSLUzlsdDR0w+VR7rDRQR8SPoZ/6DYemRDGa4wxRRHcOJ9HmQ9v+XQ0CY7QB6OtwqYnEDwgKNhHumHeGxyvrc/j8EYH5x9piHVtGgwja3WMrNIQ8LiKiCRMVnDk3GcBLvzBwTAUI/j8YFoIDGEBBD1SnWuwceBk+P0+VJX6UBU1Bh3AIcs0a/HMzU+3jZh1XmPvhwKI5gy/MG3g9vUdOPOcRjZHXdTXZ3P/0ZMwOWbg1FgU54YMRE0Hf6xkuLsuyrppvxte4TOCMbxgMFSSCBBOV1H+gRJBFNPp6gFeWQqs2m7jlIkOzpimg3MuOKGxhkBgIM4S52DymfQD2ZfZ/HNwkfVMT8/sFBcppD/5xdLLBkOqqwsbE+ciHPShqTaEEIVFPN9jKLH7kvaimph55L4GYdhW03qLPx3PInFElF3w7hfF2V/WYkZVhXtp1KedFtTwSFDHr8aHWOv3XuDjykr4U0xnU4iIwnrhMuQd7wPWbAZWtJDV4+C8Q1yMqZb7xMIamuo01JYxwQkmcZQHQsFvEOey4LgOcraFnGXD5TalXGVYFzYYyF2Rr+2chTQ/EEG/joqoIQwIAdEQbqB/W+LWnaPLffskpDGUbsPSEWvyfH48hcVHlbFv787q+O3iZO24+vAV0RC/MKSxR4Iafv7M68g4mvutgSz7UiKF0ak0YxR3aovzZEfCWTyyzP3HZScYP3MdMLKOyksZasoZSoKQ1pEurS7iKAFCcQjDs0ttAtfhAmSxqfiRd9EULhQxccFNTACr4lJDVym9v2a79dUp9e9PQmpYQKxM8cezNozDStjZuwOE2uf2RbxifIP7nViInR/g7PbSctz+3cdgBfqzI60Ur24Z0JN297aWRbeNH1i2zfqYpRlz4QIBnwyNk/ghYhEIwl9QYQyPq4hYrtsO190KhxvgrgEOA+CkD7zXpLTpPbGZYJoOxnRoYtPksxCVnvDyKERgL9yQ/djxBwTn7ck97+6+wwJiQRe/hmv4ZnsnRp03mSmtuLvfiT+sSI8YW+2/PurXjvD/K8B6UDl7fujBbSl+pm7gGbKcVHRBZnkGARABPY8T1ErmfB1crCzKFakzkyXEwCnMzTQBBocPTGwBgNPmE/qDChgGmYc4SobFHTf/iM9w2sG1RDox0H3XHbk7Z+0jf2JYQLzSyqfpPr68t9855Zzx5j92G4EhOz6+Nn9odYlxa2mYtbFE5ttTG0ItapfODL/AMPAA+ROFR5E9X5DjQ8QSAQG+cjADVLCclOAn64lWO3EEKQRTbIz5wciqYj6A02eeXU0CzdMtpFNAugYuUju2J3/0w/aa3//+kvRw77/4uGEBQRmxudv50nTO3XbaaOOcvbmQzz7K9YsPdS6qLtevNl33lgPLtN8xxtwdGX6RZuKPlLcm+is5Xyy7C56w54eI63C2wnVWC4VN+U1yaRhzC76KJDDxEQEy9JmsqeL3pPMn9i+O1gJIxru7v/iFUP2cOfvGwx4WEHS/szfkLwpFjLvWrO2bftkJ5av2Bgw69umVvKaxmt+V11gsmcP3x5TggoCOywvhCRWW3kX4WnGH8oTzlPPOk75wweAIK0ljtFnQkBevdVgCJPEes73XtC8BJ5NNAn3iCAG0VOwy18oQ7473v97+iZ/GIrwrHNKbx/mxpL6eDZs7hg3Eva/yQF2Tuyafs944a2Lg3L0F4oVWPm2bhb8ls2gQRo8rPWyihea5AuQnqI2UNVlN9BygIKIhNwp1iHCHZ1UJnVJk4gpzuSgyOzRKqxJJIaGwpX4gU/ftdgezV9ooDdqIBRxonCPDKkHZRtMg0PmSP7/NZj523jujCrtDm2EDQSe/+3X7K+NHsbs2bBg44SvHlb22O19I+yzdxEs6XPfSvKNV+nS3By7vaHf1y3IujqDPqbBM+BUOJecBmwrNvGfyvCkMQhtJa/pMeOMih+yJMRIoDIj5gVObgIgJhA2g3A8ECBjvc0X04sydUvoFwDy1v7iZ48kVDGETCNL5fEBdBUTcTNOFmZx5fna89rYrKwZ2lw57rSPUCS6+a6l5yscOWeLXs3zJm81HzPLyzP/uQjjnxt1L8ZoFzCQzlLaBHLA5ASSpmo/8LCkRRBi7kElTiloD/GFJdPLCxeYdIgJcUnKIz10GHFINHFQpuaTEBGqDgEFcpkzfIqur2Ico6CKPe+avB15cC4QICAMoDUogqDjOA6Lrpj+zhjmzdk5u7S4oe8UR9CW3vmIdN22i8XJbS/y6848ov+m9vvjeJfy0FPC3ABGUjBMOtCSBNkr+OLKwjMAgQ4U4g8praCNjxfWMlpISQI9JEOgzAYRXgCEsT9q82tmjRgBNMSm+oibQEAb8nogT5nARdyjOKJjCRSC99Dbw+pZBIKoisuSHIsgERN7my04br814r/t/t8/3Ggg68Z+X2X8cWe1+ft2ankO/+on6Nf/uYu5cwh8F8Fklz0n0bBgAenJAlqKuHuEFAERor+CMW95rW+YyrPBgkFCIMgKD7sYzdOg1rfpPjpGiiVYxPY+gEh5yBkUlhhfrotceJRQYJPqSWVnwlreBjW0c6zqBLGcI+TlGlTNRBEEg0LH9affhs6foX9ivQMx6tL/88EOiK3g+2b5kVcux7yaiXlrDK97uw9aAgTDJWVK0vVlgYxIYyEudQJviAsUBAoQ8QM8UjypvBEgQkxKnTVlWihOEe6ABlWHg8Dqp1IkjIj4JBHGGzqWnrhxEgaHnofelpMgMB6WII0Co9mp7D5CygSyV+OnAqCqglHSERtlG94dfPFz/8X4Fgr78D3Ozp02e4Ht2e2vfzz9zWPn3d3VBty7gX7V1/D7kWTkikKbEkscNJJZoE2B4xKeINnEG5SZIDMVGAWnP4yZ5r8xWYVkWuQFTq4GRJZLgxIEhA6gPS6VNhf1kgSmuUCD0JIDymOQucS1cmsJbWoH2Pmkg0AIioPIuBSKBEVXAhhbn3P852nhivwNBF/Dom/nbRtWySzes6zr9guMa3uFx3zifz2MMx5CYoFVK4YstA0CcVrpXgi/kPukDxQWkF/JAKkvsD1RWAm5Mii2SR6RmFBBehFvIHVqxx40U2T9BNOII+t7aEFBJxQt0bCGHIVf1jgSEuFG9GcI+4EA6B2xtAdoGJEA+z1QmkURWmxkAtndj6jdOZsP2p/aJjlCrYNaz7aGjJtYs8JlW3dZN3TMu/Hhjm/rs4UV8wuoMVlMBno9WrgMMpIHOFJAhbiDzUylnBYSXLk1kgP4MkM4ABx4IpD3zlkQSEUMQTKYXRGGCZgBlnlgS6U/yLTw9URcGKkMU7vP0hOdj0HdQETQlrIof9B1UQdJMQCSkDgpREJIWk6drHM4Rz7ILLj6OPbhfOYJzru0ADtCBzJxFVkVFvfFSOpVavb6548QrTxufo4v76UvO9Sld+6GI9NhAJgnE+4F4AkikgRwR3xMFpCeE70BAkC9B2TpLEnjsBCmz6XMiPBFaAUFJOGYA9DypBmiiakKRh5bmK3FEdQioDlNRmuQIFfqOp4BodDAPISKwnv6hcp5NrUBLSmYUyYdQQJAFFmRAHrxjWzc74MrT2AfvRyj030zzwxM6FrkOuKEhlemHbiURNJzU3NpR4YW662x+5W392t4MxpA4sjJA3w6grQvoisvCMSoQIDCE+UogKB9BOXMOMLIBiNuA6QeCAaChVPZTUC6WRBs92yTbNY5DazmCGkfQZML2D/mYAKImBNREgLBf5h9oy1scjsbgJ92h8hoeh5G2piqSt1uA9qw0V0npC6uPCh80oJREnw/Y2u9+47+P1W8dDlfsE9E0i3PtsD7MAcex6kbSPYBuO/BFbAQr/EImi0VGBLaAVAro7AaWrQWenQ/QiqRVT58Ja4m0Mm208oULDdSPBdo7qXIAQBCorgbqSiCTRaZX40qrPACMKHVQGeBwXA7H4WCcMhMcMR9QHmCiKE2A49OQznOEIrrIhQtHz0s4KVM2mwaWtQEdWUnwiF9yGPlCYQ2oIY/dFCJzwckHs2P2GxD0xU9u41OCJVjiWgioiuvurRzlIQc8xOGPmjKuWZRRE5aKRsTl+Pk9wNK1pP048bk0V0TEmZ656KHQgwyJJAl1AoIBpUwUM5cHgGhAhh5IFFVVACNjwAHVkkAigVRU/SeLa+RG4omAEmWaghsGs3aUtaBjSVkvamfozwH+EBANyu8if6TMABro/wCQ50gsbUPd1Sez1J6CsU84Qn3p0518lm7gR7SK5WriaN/oYmy1i2xIh+nXCoE6kU0jGpOCpmeL476nOP7yLIdlUaDJayklYBwXFfU6dmx3JFsR9UIMCEvBTwDRKo1SpZ8OTB8NlPmAMeVAjEIaHhDKVCU5LypIPDNUZf2K3xOEIU1NosmmFC7DW9uk30PtBOGAPHddEBgbBQJUmM7Al2/G6CtOZ1v3KxD3NvNARRhLOMeUoO5iSiyFZNbCWxsjqC7XwGIMOnWPGpp03ggEDwhl+Kze4OLuPztYucaBlfJ2cDjKR+nobbE9IABQBxHJB7IlSXP6NTCToSwEHFwn40ojSoCamBRbFCGlTaRZVbq16H8CpwAIca0HlBBTtL/HyQ/MJVCASBgoiwBjKoCJVLVI+SQNeHMjxl5+Btu8X4GgL39sCz/KF8Jc1+HGlOAalOm9yFlBLG+fisYKGxWhjUi4IxELZLC6vxyGzy+tHpVnYJ68TXN0dHK0tLhobXPR1sWxZb2F7V0uetMOLMUZZEMSGB6Vq+s1BDlDRQCoi0gdQlYOiSiS7yr/TeDQRoeSyUpYFsBSFSJkCheDQgXIncAdLwCVMaCmDJjUAEwslx2xDuO5ectY3bVfZHvcM7FPRZNaBU+28VsYcCWJHKKXj5IvFmBYBuqCbchqOhpL4li3ZQBWzZE7dYsUUqAei4jQg0cMMkvJxE2lOXrjHB1dDlo7XLRs52jv4tjh6ujsYRjIM5RS/VOUoSbKEBaKWbYQExBBsrrU6yKQCBhRhUjgeBtZSYI7PCexux/40cNATSnQVANMbwImlAO6BGLlMRO1g/aUG5Q0GM5x//aYP/+Tx4INeJO7GK0S/nRDIZsj6AK6nyNtatIXKApRqIS9zIS9s8FPBPUGRbfQLbRfASjSNQ4VLHP09nPEezn64gz9cY6BASbMUMdmwgQN+pmIJUWCVFE+yC2CcxT3eFJPMByBYQAd/cD3HwLqyoAJI4CjJwCjy6Sl1p1wrz99hj5rOAR9XziCLuThdfxUzYe/Uasaeb/E9iS/zRwXDh1MjpRORcHv9GTFCimycobsUpBihYSQp2cKHnZxjsGT/eTUUW6DzONMiiNFjiTlQBJMmNLkPZP/QhxDPRwEBllGwl+gjcSXDmwfAH7wMNBYDkwdDRw/CWgoAZiP9y9eyw745qcYGdh7/HjfgKAr+csGfj84/otWOK2okhBQFQXScVFtJDI0fSJK5610pSu8shllcqrPiwdwiASmZ1ipjJ1gsCJdU+ycqbxDIXXqhTZE+INWOwDqXN3SAixZIcUYcYwQZcqBM4AuEk2PAmMqgcMmAidNlmKqtc+95Lyj9N/vMQLeAe8rEPcs41WBIFZyjhq6YRIB1TF5Y4kdXJiblsbRY5HFPkhElVNW9r/qUZDVeoOgCcvWC0OoFKpS/AU8vAybLFD2qgKLEkOqn0I809rQgJVrORYulu0DNBmBmmsIEFLqvQPAjx8HJtYAx04FPjaZIgLujV88Vv/ecEF433RE8QXdv5yfr5l4kMQCiSeK31dRQoVRSQpH2OCwdaCXzKCi1VwoJFN1wyqD6ukF4e95IklxBH0kuKYIMHGTisNU2FsVFBT/r0CicInFcc/DsgyTQCAwRMsZ6YE+jhufBCbWMRwxCbnqSvfbP/+8fsfegPCBAEFfcv8K/ozj4ExReWFKMCpiXkx/wBViyjWAHblBMaVqUlX/hFLSitiqaGAnsaRSpkXWsLpJAkO1dImqDvqf/APvfVHWX5Q6ffp5ji1bmGi8JK+ZPHt67k1y/HkuMGoEQ30t/vn0N9jMvQXhAwPivqV8pMWwwnVQKmSyIT3TchF847CyLnSHwedn6MkNSstCdYUnXoTzR2EnL2SuKjcIDK/eQDnDhaI0xRF0VlUrKzxqjxtUz12x6KJ916znePIZJrxoBQJxR3+W496lDHXlwKQ69/7ZV+sXfmSAoAu9YyH/Wo7jdhJRqkGFnqkaojzIEWQcInMXZOhKy6baQgq0uIlFiSMvDFUMguAO732l9z1JJiemFGXk5LSCoponFQPzxBh1sP7qVi4CgQU9EaSULseDK4HGaoaJlfb3/n6teeNHCohHH+X6hnK8mrNwrCAChReoAsLzaMMmxzgKSQSJMzjW9exsRyj1UawDlPIWnUZFYBW4o4hCO+kJDxDVKCPKeooKnFVx8133cLS2ekAQZwSApM3x+FqgoYFhbGnuU6/9IEB9Ynv9eF+tJk+uU94s1N8P319WoOntDsyzbYQpVUrxGTE0iwJzXnPj9CqO2gAjLxVLu2RjIRGpuPK7YGENEUnFNbJDwVAeujJfCxzhVXKogKAAxLOw5i7keOYpIBJlUjyFgIzr4rlNDNUjGEZGchOX/iSwbq9R2LkLeV+cTp6jOR4vzfXhHMMMnsF142DOeDU1rTFdy7T3I7BiGwvMX8vQ3QdUl8j6oChNq/EGaE2v5qgkjvEDr3fItaJqkAr5aU/2kKgrmLSqIaUIIOG5F/VPKPGkxNJOEdkhPRfdvRw3XM8RCmgIRyQQFnPx0laOqlH6wMhy1L0xa/j1rsUU36cc0dXVFYnn/FdZNvu632eUB/0aHK6JagfX5TAM2XLl2ByJPMOibTr+8KomqjNG1wANdUCUoqX/GpZyaA1QY3Jhqby6nQmvt3iSgFeaKu+l0BEkE08FT9x7ocBTTl0xNwiOU1zhOXkFR/JfB876sYPEDoZQWBNAuIaD+a0cFeO0VTtu06fuq+W7z4Bo7UoenMjyRxjjE2jQVceAi7StQzd0aHSnjInYEHddlAUZGmNyBNj2FMONLxhYtY1hZAXQNBIoLZdia0YVMDrAEQ0Bf29joshAKV3BJYobPDkkGlqKuGLoilMmrEpO7SSeCi1cRfkLBvzlKQfz/s4RjdD4IQoN21jaCZSO05/o+6127ltb+Zg3t7nnjK/WDhs1AhUhP5LZHFZzhqfrQmzx7gK1T4Bo60melMqzJ3I5K7axJ4+kayIWCYq5GLpOQTYKIBTyLGLGEjV/lBoOGqI6Ovo5fvp3H9a0SLOwrh4orZT56GkVwNQoF77H7FaGnmyRmFIBwyKFIKaMFQNUJH9Vd5FqBS6IJc9iKmQPi6YXrG928asbbFSU6AIMPWRjZR8w+iDc+sNTtMhAVrsABnzTG+UMKhlO5zBNxk0DL+ZtXNpUyprfC5C9BqItnpqey+tz+hLp2LrOPMxIFH4fTQYggnkzXDU5SYzkM+WQw34NE8sZ3upyYeUyGFtiYnOc4X+fpOwKUFECRMqBEEU1/cCEGHB0OVAR5nihHdiSkNNnZBZtsGC5uBxccYeSU15AVyr9IsKr7J1S4iparOJUGYvjx9/JgTs6SqMG/DEbWzLAydNN65MzYU4dz7EjwUTOXRRQe558wM/RWAmMrkdnJmt94sBaP/WTvetjr4Do6OBh28gv6x1IT9gcd+H6iAs0MU6BNtEXLcTS4GwLpmlijkZ1SI7zaY67iOl5RBnH06v9eOR1HQ1UZR2Tc/xM6j8IAo0h4JNVVC7JsbQfWLrDyzGrinHFFcKRkFsxUMVdp8prL+Syh/gQg/69PNWDd+Sw+k2G0hIDJWUOcpaLH1xhoraBYXsvLbiiPLcK1VNQ0qEUKsch47GJGezgydUs+W5I7BUQ3QnrB4mUdUNLPI+44xeTxMSKEJTnQifQJDEiuCiHVMpTsD6lTKXct20XYyIWWntdfOuxsCh7qawBfF4YhNratCBQ5gfOqQVKTY7mLPBCOxss3VexD8fTEyrXoTjGE1GqMUWFO8Q6KepOFbkQeRPi3HQPyxdZ+NvtNsxyE9VNwFfOAQ6aoqO5SxYdkAGiZnkUE1RcEpV2GsBBjfZ3Z4wz33XQ1rCBIG5gQbu5vSddFecB0VDizZj0ZLTsbyYAaLrYTpNgvNEvBAbdMYEVZRnYGRu3zI1sXNXKttZVsmn+SlTqEVmQJpa3Vzbz6RqgmvIZGvDAZmlRkeIXXFDEEQVRpQoBvesR3FE04UyJqqFiifAgQsYHOO77Wgo87MM1t5g4aQyweLMrFhOV5Mh+78HRdUocyogwlfRQftttbWzcPuE/CO+eAAAMI0lEQVSoxsbMrrhi2ECkc/Y5/Wnnyda4g14Kn+5k4BetfnHDpLRlrGewLK8wEEyQqSZItY1pvNocWXbZcdqMU2/d4K8pHznBX+I7FD7MdIDDchYOcEIIuhpwcjnQ5OfC9/jjBlnqIs5NC0KB4nGJmiSu5L5y7pS+KAAwZOCWMjCIQ9fNteGHjos+D6zbxjGQ5WI0UZCAoHSqN02zmPOpFFOEXTyT+sgJ9p11VeYD1UH8kxo294kfkco6d7TtyFzWnfchQ605kF+qHqqQV968FE3SSpGN5IUYkFdWU0U6I5fBgma9N1QWqNtV//bPnuNlHQxTkwyH5/2YeXQ5P2SEHyMbotD+sgnYOMDewRFkRYmuI8/CoteFiThkAnsjsAWHFFX5KQdyRAyoIl2V5QhYDLVVHK+tdWWhWUAOZSkMcvREmqjCUb3ZqirIAaaM5qivZpTOXWhl8xdNaxj0yofNEXmXv7x2a/LE9pwPgaAuirRUiKGYOXbWC1KW7qp3jUojY04Gi7dpqbposvaEydXvqtgG4eba7DX2sRnHeKgx7Na/3qVZ89pAc/aqxHAVVTHorb1CG1hRQ6PQGR5Dq2EoKjHVEAVm1AIVBrCxA+gQM2k4bNcVBW0RPw11pGJkuicp9wo2g8cNorVMgEE5YyBMtbcUUytl3clc6rjjmqKisWfYQORsvmT11sSh2/N+xCI6tS7t0iDw5tkWPqPVo5QY3TCFxekRNBiiThpLWoxeI7q57rzJcu7r7jxmr+Ajehw8Wh3iR4ws4Q/+6Z/a7dvSzlSbs6O4ps2wbRxA4wWE160oVTQnylNVQm8o8UX1smeNB9w0sHQLkMpJzgqYJJI4SihHQaWXXpmmEEkeOWVEmBcAEK0GXjaR8ih5R4rUyXXu4o8fYM4kMTVsIPIun7e+JXnMxn4TNRVmQSlJ8SQFj7hpJpV2wRShMkeNiYukD4T1ZDJEdFeIpn+2BZf/z0zzkN0BoHgfajd2w/il38DlU2v4csNln5vcyDbSPp/9dX95LhyapkE7TPOxmQ7YdA7eCJ1pSpwqMJSpPaOG4+AyYMFmJoqj6ZaIewIGF92qUa/yg7KOgoieuaWGr6jCBuIEBQLpCvpf5FM4RQ8YxoR6zj3nyJonhg1Eznbu7+zN/tecTQ7GjyTThuiqYg3yi7yKxZ1Sl3IPKgqWZCQQiEtiPI+BRA5v7TBu/fLMyE6DFvcElLvm2xdmuXbboSOYFTRxySEj2OPvOH4W184MZ0exqDmdGWwmM9gRLtgUrqGM7oNW8GUHu1i0SZMgeA8x9o6SWj4uNrp2qWOk1iPul/pBdb1KrlBZxKHgGIaGsJlbdPmxwSOHDUQqb19k2/yPL6xIoLY+JkxUNVFbOUREa9vTHWrlFQoAaKa3xw0md1CmWdjYbfF2HjrqS9N8/9wT4g/d987X+KTuNH90aj2f1FCm3c50fO/Q95gK8NlvtQRzE2omQtcOHVWhffLjo3HuG1ulGKUHEUo011PxsSkHO5J/IMSZR0VVRSJEr8ipe1aTly+RgNDMQaqTleZuyA87394ycthA0OT70gBv3tiejGzoN9FQ5TUXCMnkSUvv7FT0RSyplLkinAq6RZ0MuONgzYD/tfOmBY4fMqd4WJjc+HR3tJ+V/bqxVPvKpDr+pt+nffHIUWz17pyMcz76voXY3E6Fk949ELGJI8hnkCB4YyLUPEKPG5T+c8iK9MzWYq5QKoqug+JwZVGGLS3xqcMGgk6UzvFf5B37qoVrk6iqCSPkN5Cgzh4RB1JGqrz1nO0WLkyMdVAtVdkUIj4NzQMsv22AHfXVI8Nv7A6xdnefqx/PfSEcMG4/fDR8IdO57riHfvpbNmvWv/2NIs556X0L3e3dCS0gdEBRPoPil6p/QqOmD49d1CJT4rjgQ3gBSCWehDoRISAIEEwT7srWzPA5gk64tptHG2Pu+lTWrl24PoUDR5eIxo/tKVLCRbLTW1hk4qYtV8SfuGMjaGVQGjLQkXKxLRe8+guTzV/uLoH3ZL/vPxEflbQi905txAlNlez5mJ6/5PBxgyOJdnWup1a4c9a24jj6nQuRn1AWlRr8Lp6lc6LsE5kvl5y/U4mPpzOkDSNFEoEwrg7oSPCND131+MRhcUQ6nR7x3HPB7ZMOT9xUEja+GQubGhF5dVsWlu5HIOIrzE4lQEQU3DOdsnkqt0+jzOSIhHyI5zVsz5k/P3Wsfu2eEHdP96Wc+aupzLfrq30/mjYK2ZCJ73x8gn4/E9R85+PV9dmTVrYYf0/nmBaJaCKVq+JU0sIaPGxQ3EidoBQ2QSJN2UFdQ8BReqCpWtbg5l33qjNG6L/aYyDyvPlCm/f+bktrfkNJ6OCD1v1rlH1Sj9w9c6Tv5CBzG/uSebT3OUjaOpia003dOdyBCRcRctzCJlymo9vS010pfO/kMfpte0rY4e7/3YcTB6btwD0Hj3aPrC/Tni8L2pfPHB3csqvzPbbcunZbD/+/XJ4xnX7shiw8rzpc07gcOSfDZdIyVEpbpWoLYkkaJtKRZbJwjYaq1PCXF8xdcxoNCNgjIDLO29fZrPfH1LfjWGks31DhJILTv3POWP2W+1ckqg9rDP6iPqJ9wQduWo6LvOUKq0lyhQyP20xDn6U57SnnhY64893zJvt3S4EOl/C7Oo6GuQzYk66Y0GjMmjaKUSzvx40Tjdsms3eOxbtvYe6ceE77WTbPDhhIMjGZOejn8Pu4yCJShTgpXWE9CXHlvRYjhrx0CflL9GtGhvxxEdMHHo04D21sjV92zTFV1DS8e5710qXcnHTw0l/b2o4r6Kd8uEMWQT/a+7LOmpaKU8877PQX1Q3fvzJ34JgK44LqMDvJxzBe0xB1OeM5lyeSFjbsSPFXegbsh8+f6n9rXxJ3OOc6/47OMaFg9OZDxupnNpSzN0O6861PHBgszLFV5yTgRjZMOCyd1acnUijx+WHoBnzBgB4wTIQMU/NrhmaWBHGgZmiNadt9S9Ool5AHGDQfdxBg9OsKJuKAszTt2n/61vTQguJrfk+O4JyHM868+yz0foZAoGyHa/ehP5XDpt7I6wu2Vp4x65RTdjkZ+H/ubQ5MqKmM+oKcv7yyM/H8lbLn+sP2+PLdPWePrw/9cmSNMToSwGMVPvf7R48PbNrT65y9IX9kxtUfXtmujRv6Wxjvda5/C8TAQHulHlzxVwvxo2l0J3Wgu3YcfQN5bIyXzn65ufzzN33qU4K1PuqPi+9aGiotG/OtprrQVRUx3ec3cVd90Ljp8NGsY3fvbWk7D21KuNu7+6zDrjgisH53j/u3oikeX9NkhFa9YCNxAFwTsHNw83H09jvYGK/80+wF9ZfeduVpH8oVvicEGLrvVx7qrJnUELquLBr4imFodtB0fz8iat1y5IjQbv2C8JNb3S1tPc5FX59hvrIn17FLjujufmNGOLbq6ZyTaqDRm8zKwc31ojsOrOut++VZ//jqNf8//nBrMeG+80R81PiR4asNn3EhpaSDBn+s1HTuPHXcTxcztmuHsKOjIzw3W9O2qc0+9bqjzT361ch3AJFMLjyZaUsfzrv5Urg+aFYaTq4Xnb0+d3VPw7WfOf6y95xSticr4cO+7zef6K4bPSJ2sT9gXKRrrJEBK00791Rtqf78J5t6VzFWK5rbeceK8Ev2lJ9sSbLPP7OhY+yzZ9bv0cTLnYDIZ2b/t+W8cVeetLxrQLdSsLP96OgN5FbuaLr0vI9/7U8fdsK9X9dHqdvjDms8MeI3LmAaO4mDVWvcHTBMrTXsYznDwMi+LNfbevPn33BM4B2Tnd/rujwgOEv33XONg1X/Z7t+TXM1CUK6H229ZYnlvRPOv+Dky557r5P9p3xOoBw6pX5KLGQexMGbOIOes9nGDZ252Q98Oto1HDowcv3POuH6XzpY+00bpdBcE3o+gXwqhW29Nd1v9Ew660tnXb5XYenhXNh/2jGsu/uJujD7dbNj1/k1qlXNZZBN5tDcO2rr4h0zTrnk3EvW/qcRZX/crxBNnX2XXFWSXP0LNpBCJqFjQ9+UVYt7Dz3ta1/4WmFo+v64uP+k7yzoiJ4tZ/wk3LHs2rc6j5/3ct/Rn77uwit2/CcRYn/f605W05znvznzT4umLf/TrC9l9/eF/ad9//8DKbvze3g2WI4AAAAASUVORK5CYII=",Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGcAAABaCAYAAAClpUiKAAAAAXNSR0IArs4c6QAAIABJREFUeF7VfQmYXFWZ9nvuUtXV+96ddCchIYRFggoCRhBwQUVHdBQFxRFxR0VHxFF0nJ/5f8FRx40BR9SRUX9cArIoQRFURJYIgeyBLCzZO52k051earnLmbxnqbpdqe6uLEKmnqeT6q57zz3ne7/9+84pgSPgdd3dMu33oGmkgM4Q6A6yUXdQiKZHUdTrOKI5mw/+8I03NfwEQsgjYLrP2xTE3/JJ33xYZoIYLSKFzihEdxRHXflC1COjuNfznG4XojvlRF1pRG0ZD/X1Na5bn3JQnwLqfIm6lEBt2kEQCzz61OB17z27/VN/y/keaWMfBDhSXHkPautSaMlLdDkRumNEXVEU9LpC9PiO2+25sjsloq4aJ2qt9UVdfdp16lMC9SmJOh/gexI97TvwXQHHEZASoFjw/0ovKSR+cNezb/7SRUffdaQR8W81nwQ4UvzTnagf9dCKbNAdSqcbMuzKB1EvJHpSKa8r7UbTal3ZWZ+WLY1p1DbVuqKxxkFDWqIhXSJ6je/ASxLdEP5QFuEI4IFVe258+8tbP3oo4/xvuleB8/8elG/L5sJrdw/kZ0LGGc/34HsCvgekPKAuLXDRCS5qUuR0B0JoDrfc/nws2HGAP6/Yc/0FC1ovfz6edyQ8Q3zpXjlfimDJwGA+1d1ZqwApjI5hXoeHgSiFbCjgu8A75wmQe1+oVyRjef3tz77m2kvm/ulwzOHhzTLTWIcOKdEbRZgROZglY8ySDp6MBH7y8jax93A851DGEFcuCq4dGMxe1dRUi7oagXxuDK8/xsO2fArHNYV4uN9XEnLRcc8POJRKMoFwtA0KI2BoNMg9sGbwyx96Vec11SxWSik2DKDB8dEdxpghJGYIB7NdF0c5DmbEMXqDEF1hjIYIEIVAIlsAcgUgiIB8hP5sTn7l3S91vgO8cB6i+OSdhW/v3J37VGNjRoGDKIsz5mWwsl+gMx6E39yMPTng4hMceE41pKl8TSWij+ViZPNBPh9Gg/lQ9ucDbN87Gu0YGctvzQdyc/9woW/jjpG+B58Y2LDie2f025GllO66YbTEIaZJYKYDzHAczPY9HCUczDDS0B5LZMhY+VAiXwDygf4pREAQAmEMxPwxTgivjaF/d1wgDMVZ/3CK+MvBr/rQ7hQfvy04d/dg/vd1tWmkfCAsZHHei1MIQyCTcvHEDkdx8qUn0d7s/7D9iB4CY/kIuXyUyymixzvzBWwfzkZ9w2PB1nwh2NI/GPZt2pPbvnb94I77lgzuxn0PDQNXky7q9adnZY2TQkfaRQ+JLSRmuQKz0zWY6Uj0Sonpki66gE9CBoHUROdPqLk/4g+JXRwVANWyBcJ4htZDLP7Pe/iLA0SheO97TxU/PTQSH/zdyoq89YbdX2psbvxX34VorsmjubEGu0cB3xdIedQxwAdPFpBhhFwh1ESPZH+ugO17R6Ido2P5rYVAbt4xVNixqT+3fe1zgzvuW75zF3776EiS6HaaC1fLej+FLniK43t9YI7n4qi0j5kCmAG66BINQsCJY4kw0JxOgpNpojKO57hkEvV/GS3GeebWXS8DxiIWx0JJjnV0glhe+YHT3G8cPHn1nVdfLZ2rrxZJNqlqyOJazrl24yXtnW2fAGRKCGyPw0JfHEVbnTjaMloI+6anRvo29BX6Hnh86+6JiM4nLlwo3ex8NAcS04SLGS51vsCcVBozXYGZIkavBNoRo44EVYQPDNFDqThdxprI1KKUWnpqrmPea15RYNj/JwLFAiMg4QrAcyXSLpD2gIwP1HhAjS/U7+TB7UMhntzlIZY67opi+Y0PLXCvnIyS71go3bnZ4WZk0l0yDnpjoAfCnekCs+B6PVKiRyDqcBz3oZ27vAu//xERVIVMBUab8r6rV8vUNIE2GaHHcTGDHo4jMMdPYRYEemWMnjhEqwR8cjhVTT4PFAr6PcGgkefiSVwSnbaMP74ri+9dF5qgFpQycKyKcoRUAPqOVG6/JrgmfsYjEIb4rlDPEka2KsW6cRzjD+ti5CJXqUQI8f+3b8fl+exwdyT8HiGiHke4MyXELNf1egDZE0vZHXn9LW7U5AuZRsfutWgbeBqr5rwep3c9iHkta/DztZcCThphVDjhaxc1PDklkc0FkzrH68dk7969uGAgwAl7I8wYDTGjEGBaFKOZNpMqhoTPkfjU9wSAhtaoHhvtKw4ncQ3HK2kQGhgCYAFSvzuay/V7Q3SXxJaK4HUpoNYHalP8m1BgEBQV9CppopxUfiUlTTFOJJErSIzkJIazEkNjMZ7qi5XnFoaSDkMgJaQQTkoIB1LG6ieZxojdLAbOuASpXaejfs1VePfdH8acLYvx1UsfwmuO/j3mty3Hd5Z/DrHIIC6EL/u3i+seP2RwVvXLM2szuGski6bHtwDbhoDhnAaBBlepnwQVrM4vf3DSFlhVZG0EgaCaqU1JNKSAxhqgOQM01UBlHZhbIyC0ewRKR7/6CYqxEw9TY5s/kH6K8IHEaE5ib9b8jOn/R3IxRvPaiaDHZqU4OUa1BORMRo9aCH/wePh7TkLt2C40juxAX9eJyoGqTcWoTbtoafBQk8KZF57qP1Tt2BNKzmO75J0o4PzblgKDWc3pU72SHg+vVcT3yOkSjWlN+JYM0FwLNBOAGi0FJL4aX5gcWwIAa08s4ZV3ZjieBB6xhDf/D+ckxnJSuc9Un7y+KDHGTk21jkqfJ3N/nAvVbZoSnBZoqHHRlAEaawWaagUaMgL1NULZMyvRng9EAc5trxf3Vfv8CUn+m43ylj2DuOCR9eOBUbEAFyy0fajxpMoik9sV8Ul4w/31aa16yEGChJ8gsVkUwDJ9tGs4xqZdkeb8MQlF+LyWiL8V4TVTaVWZYbK2RqAxI9CUcYrEZzxYm9KerJLohIc3EeEJThzh/I468ZtDBufHT8kbxrL42Iqnx4Mzf5rE/G6pOIX6nwZXBaeG66t9cPK6cnD4+5bdEW5dnC+qr4nU5lTPU2Mn8oCUUM/VXprmes3t/CHnEwhmzOlUeI4oatKJsuWTPT+K6azoMTymxUJcOK1BLJxqzvbzCSXnB6vk54MIX1m13qh6CbxyDnDO3JKqoL6wA6j/J4g1JptMJWB4/eJ1ARavD4p2ZKIxxqkby/XKYdDqhcRurHXQZN6T6ykRRVVaBddPNv/kujmXMJYqJgtCiWd3RkryZne6KpEcBbikq0n85JDB+c/V8n37IvObVq7VQ9G7ueilwNz28QHffsHfAep1y9mGwYvzfuLZAH9eY0ICEzwqr055bkKlmpS6URyviU8wSHjaApdcbxyHg+F6TmQ4G6vxKG1BrAmuvNJIFp2ipE2jl8mYjPUphgJDozHaGwSa61yVDoojfKSrQXz/kMH54Wr5Brj47fI1pTTIm04AXtqjhy56XocgPRNJDYm5eXeEp/siNNdpECoZ2cmKc9USoMgUCdVHJqCz8eiGPDoaXLTUO4rgDAcEC4NMQUIDlo+AXAhkmb8r5uwkUg4wv0WocgvVJ0GLJD7dXS++Xe3cJlRr318tX+K4WLriKc0tJNhZc4Cz55ZumTBKr1J6kuDY98XYiLFOyXOudj37XZdUexJSrYPcnqxH2cSnvZkuPNdGh6Q+LfCXAYnhgk6KquwFgzwyqHKM9k8ZkUJpBzilVTsVBEhpmBhf7GwU11a7mAnBuWGlnJH2sHHZU7EYGeWygFNmCLztxc44I211rnJXE5asCs9bhyxlbrMlps0eTGqviqVtTXQOlSS8zZPZMcpjo4nGToJD4t6/U2KMtYUkKGVxlh3bMhnBOa1Ve30NGV2gjGNc290ovnjI4Hx9uaxrSaFvyeqwfteeWC38+C4Hl53F3JOe2YQ5riodg3Jwip6VmX2yREHPh8FvMpYqStvB5KEmoRCdCdqZgZFYeaMP75IYCYyUmIeOC4ANjxUKMaIQSNc6Sq29vE3HQ7SJhg+/3d0gPn3I4EBK8aN12PzYqqBn03adUJ3RKvDPb0yZOGc8OEWwqpSeiVRa8u80/vbFwDMfVrus/a9LOgfMCnA81nWYbuK4zES012uSW3D2jMbwHeCJAWAoD2VrKoFin9a/pYAwkOjoTSGdEljQodVfc12xEPb9rgbxkWpXMan2+dE6+fjyp4KT1z4XKX+9tV7g2remtENg/plMeiYbfDKVZu1Osn40ETj2GVal0aukO0uik/gkPLMFqsBmfqzqKxJJMF0EnNClVbYFZ3A0VoZ8zYDEQM5oYGUHjSdYtsDsaIQgL1Hf4imJWdCp7IxyKPhyHfykvU5ccnjA2SDvXv9MdN7K9aGKhOl1fPn8lHJny0EppkiqtD2TqbSpwAkjiYExS/wSEKqyaYx9kvDJTKgtDpJ4tAdML6VdeoQESFObrjrXu3dMq/MNe4BdWW13KT1JdTrO0JZMKFwhsaDLAetRrQYcP4WFrWlx4WEB5wdr5H/3744vWbY20ql8V+Dzr3dV31klm7MfQJPYnv3ASTgG1rirtI9ZCQGhy8rXUFbiqX6pPaCiHjQ1IFN+SLmW+LpkwN85HvvkbDa8mEcta92y4DBbTYndNAQ80x/BZ/CaNmmo8Y+2NqU4X8rK6dMccN7tDVpyamrw6yZfvOWwgPP91fLa4TF51dI1kckhCVx+joP2Oi3WNoublKJKtqeoBs2sJrM3Vmr4v87J6ZuoqrI0yoDKrW3ao5Oqtl5jiV8qHZTK0pQma2dUA4exM/lI5+io8jjWsZ2aiLQ/DGJ15lpi+zDwxDMBRrOxqg63trioq9UqUK3F2CKV3Tbz5UinTXfA5pGORj1uugb3NvvidYcFnBtXyY8XQnn9X5dHSvdKKfCBBQ5mtSXAKatKTqTeLEBJYPi3ZHxT9MRMSoUEt4ultzZmwFFjGSKwdMHCmDLwxs7wIxr3DbtijLE2Y/oJxmUKyqQukwLmTzMcbvJqTLKOFSR2jQFLnw1UBpxqinatoc5Bd4fLYk9RWtT8I/0500On9TqqXtTZpMdNpfFgS0q88rCA873V8gIp5S0PLtH6hJnli05xcOI07bdbIiWlyIJQKa1TnFRCFRW5L9GOa0EaDw6QDUo3Prs7xnBeSwSJkSQ8VfBLex0s2xorJ4DzI3PZiqu2NVrdWZXH322GmQU8SiAJyyLcnjywfGOIkWxs+hdKAE1r99SyYqlzaipIFSwnCJw600E2J9HVbMBJ4fGWtHjZYQHnxlXyTOHgL39aXFAcQ3DeNN/FmUdrHzeZIRj33jx9P4DKZjWZ1PAzgmPrSFRN5GIrbcu2aMLzZauq1s7U+gI9zQIjefpVUI2SvmMqpQwGVX+AljbTp6Z+76zXkTwBo22iShtiga4ArNgUqsJdZCSDY5AmBKcuI5TUJu1fyoBDVTitRdPLT2F1a1qceFjAuX6ZnOf7WHv/o3nkC1Jx01nHuHjTid74LEGFgNQa8mSqP+l5jvN4KkgNJUGBY0KEJDhc3HBe36RK1Ew0Mu9l2oSp6gITtKo4xtiZQsKlVh08CQnmmJQ22jkLDq9nIDoWCazaHGE0ZyQnARDn2dXqqrgm6eR4npYcStt0A47n4Zm2jDj6oMCRUnYBKAgh9nCA6/8q25wabH94Wc4fGZOKm14y08W7TyU4mtQTOQZJqZmsFpPMfSmpSKRhCE6ymDVqJIfX8X2OzSOG+IrwplGwEuHLCaLUHBtDjCdHD62nSUsOAU+5QknWrr0xClJg1dZIVVhp+5SdUz/6PX9am1xVD7J4M1F62kxHueM9rVpyXBdb22tF7wGDI6WcB+AlAG4RZpPSh5dIf76P7Y+vyrcNDsUqFT+308UHz/RNlqB6gCyS4+xwwoUdl6A0fycX2xQOP7fg8P3SLbGyN1a9Jm2OaqUi4Y0UkNBaGizhjbQl+w4SFNPqUSg3uH8oRiwEVm1jd6pUtkU1LCZAonqjFPKepnoHmRptkyk5e0dj9LZpcBwHu9pr0S2EMAp5cpgUddneuo8ZPwvgOiHEWPKWbz0h1z65vjBv10CITMrB9GaBy84xKZyibansvSVjIStlybEnsjmqckkdbeo36h7anEAnOPlavzM2BNHG3dob5VLTvqg2KP0q015TMq4GVSjp6BuMlPiu2hYpt1hLTUl6rPdGR4DA8XOquM5WF6fNclVNZ0YJnL3ttegUQuSnnIQN5qWUswGcLIT4VflNX39U/vm5zcFZO3YGqqTbUufgo+ekVM5oXCXUuJRJx4CGum8oxvZBXXSa3qz37RRfZcFf0pXmInXQWLqccUeS0GXecDXrreoaCw7nsG1PBM93sGJbpFq+rJQkQdKqTUuPdhSAjhYXZ8x1MTQSY2a7caAcZFGLzk4h9nXCTv2yknM2YzshxF/Lb/nyQ3Jh/87gHTv6A9XkwKLX+8/0lU4uSoN1CNQftBQxn/Xjv+Qwu8PB6XN9VRdRXpXaQVCqUmrJNdxtGsl1rYU2TnOwfVGtHWxVc2pSlK5QjSu+7gRiL0M67WDF1ki70cZLsyAoUEysRenh4rnOxjoHp892lVorggOE6Xp0NQkxUM18LDgMjIQQ4oHym754r/yP0bHwEzv6C2iudVBX4+Di0z1VQCqCkwgKLTd/bVEWFy9I46h2VhEJiv7E2olkftdKjAVKmRJpunv8FxAcAJt3RajLOFi6JSr26pUHszZfp5tHbPwkcFyXwM6hEjhcleOgp6NObD8QcGYCOFcI8V/lN332t/LzYRB9pa8vr1LfBOftJ3toq0uop0QqnRO8d3WgxPx1J6bwdH+Ee1YG6N8bo7lW4G0vS2Ful2skoOTdlBwCE8vIUr+AnRPjnHL3NznfZPqkmsXba6zHqTpGix2oen1szWqodfD45rgY1ymJZhOJr5se6WwoRWIkng6DiqWkxKpNAc55UY0qtatSdYA53c3i2Wrml3QIWKH7NyFEIXnjFYvk+yDjm7ZuzaKp1kV9jYM3neSit2X8Zh01EDlnn5d0zW+y+Mir01i2McL9TwZ4+6kp1YUyOCrxy8VZfPoNGfS2MrLWBCg5Bibza/5AN5pVyYnAISEZxdOmbdkT4xXHeKq0YV8cxv5mCV/836hgPt2WrK3NoFNhc3RMeHY1Odi+V8JNlG3tnDm+7nMT7OhU6lBvQtbP7huMi+kbZvPzEU6Y3iCq6pcurkRK+VqQtkL8LgnOP/5anue48u5Nm8ZURY/gvPZ4D8d2T7CTSgJfXZTFpWenccO9Obzj9BR+vyJAZ5NQNfkFR3s4aaaxQSb8p32xICXtDxdo0/j8nOkb6n2+mDFe/HSALQORyq2xnPzeV9SozywAzGgohqYXZer/tnRd3DBVoYpqXWk2mTz+dAGnHZNSNpbSoohvOlST6rgaSWDvWsbDZ1wP96WAlTZkmejeJDhk5asA3CASBuuTt8tTPB9Lnts0iro0HQJHeSEvO8rwUZI9zbaNf/9tFm87La2I9IdVBbzqBB+PPROis0HgmG5XeXxUB0nPrZiNTnSFKsPK3XbmxUBT7Toz6ofq47o/jOLZgUjFX59+bV1RcpIlhkqLT06bT0hKFjmcEsi/EXwb4VcDQKVrlM1la1SMJV5h6HX1TU3nCaDXGRm5STQ07JwSHMW5Us4A8A/7ioFfE0KobOfHfj42I1WX2bhpy6ig59SYcfDSWS5edZxX0XPigm5+JI/je7XTwK7QR58OlZfXVi8wo9VVuluVHcZ71cXxbBqEnzdnShcV+wiMd7doRQ53r8zjrSfXYPNAhA+eWas4my+Ckw0rqDWTBNWA6DlMlsGoFhBlq4zbH0bI+x62Oi7W53JYzzDJc7B2sA+LZ88WOUvrEHi/B/yukpdsrMT4x0spzwQwHwAbrvs++1PEUQv6Nm3N1rOCQcN23HQXb3mxzhJUCvC4leJ3K0OcNMtThpKtrXcsyeO0uR66m12VYEyqq+QYFhjF2YKN7+Mlh7UXvihF/3z7MC49M4Pjp3lY2xfhRdO9IjgMCLWDYAColspTXKebBtUuO+kI7HF9PBtHWB+GeFK4eBIx1vsBnmtpEYNTPVJKmYqBD8TAM74Q95Rfn+Bd/RHTOPt2UHzBAVYA+BYvuOIubNm8PTc9CiMlOXSP3316Sm8wmuClmtAHJFLsAaMxM5ufqNpaTA7Kut36web5ZjxFWLAxviRhttXV7nYjc9D4Wm9rKmIcyOdKshxu8JUYzEp4nljdVivuj4DVPrDFdzBSX4MlQoh9+1kP/iWldPYlIj7qAI8KIZYkRyrZHECEUrJKd5IH3AjgVQDaAPz4yruxZNuO/EuyY6ECh97LB16ZmjItwsEZjLK8TIKycSKZILATKcc4GUcQnGq2nxw8efSdpeieHqPAn9bkcPvSvHJiRlg3CuW/rvpy29XFOUvZvq+l+w2smgP4fbUpmUrzpATtqxN+Yd9uGZqTYvqsCE5eyre5QKML/NQm5pQHFwfHf+E+/+1b+gpnDw0FKvPKFtnLzkmrFtXka7LovRq9nrzfAtZ6GMHh+BoEHQyriN8Aw6Ia7da6vhDLNwVYvSU0ZWgzE0fcuPLqtnFHu5Dr2WsJgEzNwysWC3HgG3NJw0DKV7L2J0Rp/46ibiDlWQKYu2+T6U3l7p2U+ZMe2ZT62S8fC160YUtBgUPjTnBqEjHI4UyrJGs9rZlShbJa6bBSQAfCgpAsI9BZ2DMmsWkgVmCs3xGqHBrL0to9LsU+6pmOi1gG71pxdccvJuJ8AG8EwMz+z4UQm6uda0ISG7lXwBWlRnchpWwOgU/ty6hfYz208oG/9if578d3xp+5b0VOBWN0qT98VirZLHdYcl6V1Bt3wo1LliZsEhmCUbgFoCgNxlGxkRjjI27d3z4kVbC6dU+MgRFu22cNiBVVlphNrcZs4yBKDRm34HnO42fOdZdc9urMV9trxdbJiC61qqO3y+vuKA/op7g3HQMfdIW4wV5HO3OxCywXQqya6OYrF8lPQkbf6fJ0Zvqx52K86/QUelpLgehkkjNRJnmcQ1D+8ERNh1sTOUYSBCsdxYUY747NHHtzEjuHJXYMQ/2v9rKqGEmqzDIBUY2GPFyCuwPCWNm19npHzm53c/N7ncwxXS66mtzId5ETDupY39snfVe3Z/CtyeoxPNoFwMsBMKi/WQjxTDVSJKXsDoDzU0nJiaT83L5A/BsTSQ0H/qd75AWQ8S1LV4/ixB4Pr1AusYOOBt0eVBLN/adxoLWU0mDjO3OS5QleQxtmS9d7RoH+YQ0IPStWR9WmZ2voTceMjZOo1pgF6GwUmN3uYG6Hg95WRzGedQ4qEdSch3B/IY/3T5Ufk1I27subfgAA82i/nsoWhVJeGAPrUkIsLTJcJOXlrhD/MRm6V/1OvtLx5QN/XTaqIvu2egfvOyOFY7td7M2PPzumggBUwzgVUU3mr3gBNy0NjgG7RiT6h4GBMb1H1Lr0ttRgz7MheGzg4FkFzDSw6YNhwMxWoVqn6IYX00UHMMtUCnviGJ9trcGPJkvBGIfhXBM33jiR2011GAKX7auOX5uUShFJeYUDfHsyZK9aJOf5Gax9ZPkImOPhrrKzj/Xxdy/x1cmDrOWP2k1oFUTlQKWHKobqiRt0NRD8X6sr/t2+bKBpW3ApGTT8zBKT+DNbHRzVJjC9hQf26Xhpsqx2JXx4PVUfX+wzsC/uVPNc/DoI8JHOetE3hT2ZC+C9AH4ohNiUvFZKWbNv79XnPP3ZOJsmClJ+2AfuFkJsmegBV90n22o8bH9k+ajPwxOYKT5ltqfsDidPm0CCjPBkJtMyW8kGVQLJlHlUUnP3qMSOIYkde9kLzQMczHkDxjglywp8b2tD3DI/vYlAOJjZJtDRwJrKwUkFAeYamIlg269tjCcjdNQ7aK0d37PnuuiHxCfaasUtUwDUDIAH+d0phGCAT6+wPgQ+HQN3pIVYWX4/vbXeELho3x4f2p2KTP6OhTJ10jRsf3TFaOvwaKw46NjpLj7xmhrd0GcSntzaziCTzX7ckqcnUHqkjeRpnGkb+oak8qB27pWq1YljKd60YJhbbXxCwjE1zxzdrFahwKCt4H5QStuBSgWHtwlSAjKaj9Vhr6pHQGq7ZJ/tKhWot+13GfCLUqRPG7l5LMCnehvF7olAopQYgHhM2E6TW/tvIcT6SvcoWoRS/j3p6Alxx0QDf/khuW7pqrFjdgyEYMNcb4uLf3lLRlcHEzcRnLq0pu+okSSqJ/YSbBmIFSADo3pLRnnaJZmZtqUBAk61RMPNn65GfQbAgabr7RTVARNmtzPtZbHFyVRe7UEh1IE8oEjzinbX2T+tOQ5oqYOSIvuiBvA8bJbAh9pq9s+T2esoLfsOL/oBwdmXovuSEIIZhoov9TQargh4D6Io57rurZXszzUPy4dWrcu94rkteXie5tZvvqtWJRbVAsy8aaC3DcbYOsCdyHrz0IPrI+wa1WVnlb6xlVMjJrpqqLtt2Agyq83B0R2u6snmniA2DR6MVBBsNhfSJlJaKZ0kOCWDgSYlw7rkjKUoGfydJ49Qohzb0WhUAGMqjqk7TFkF1SqU87Mv10XsePjPaAhXdXSU8m6mw2lBaLIJHrBg32bBXwohnp4UHAMQm6lYZ5g/CvywUYwXz2sekrdu2Jh/+6oNOTUxpm7OOtbDGXN9DGYZaUd4uj9G/7DeeqcOcHWBtjoHp81xlTSt2Bxj+1Bc9K7Y9NHT4uDoThdzOx31nhVTLvVgwdBn3iTAgDCdMSU1RQJTTVnJoDdHr64oGSZLYCVGJ1qZqdDtUslaED/rqBeqgaUoRbp+sz6McWlnBo+GGohXCWCVCywSQuSklA2mHY35tIrdOOOTY6w2Sjk7BVwsgTWudhRU/eHLf5Y3bNtV+Nijq8eUtDjc3aXaX/U+GTZwqK3gorT/RYFontBSJ3DuCT56W4UyuL2triq+0XBPVHqYiKNKKkK713Qm1BmdPK1Kn5OmjEW5ZJTUFBmEc0sQFHovjtUCah+POn9wSiW5AAAN/ElEQVRgPxKpNatnGPNIoKlJ2sqchUwaQVrgYYno+pTrkpbjegKllMcr0IT4bqW17v9k02QYAmc4wKslsNwF7rvmL3j14Gh4xx//OqL35Jf1R9uWKDthuq5sCTpumosTprs4qsNR3Tuq3dU0C3J9tD3V5uXU9cxyB9yaoXug9Q4DZYH0OEblkPBW+nj+YBIMvWimbnRdgqqXRTotFfq0Ql5DxlIq0Egfn6MKakr16Sodn6H8F5bKfWBGi6M8V05Fna7FRhUPy8IQl3bWi2XlIEgpmUy9t5J6qwhOwnh5YRieCs87xwGGvvdQcPJP/5x7XxDGLldE344TJiEYmFI9vaiHgHjKi2Il1BbPLJjJzVX2ACBOggsptU3pGZCRWU8hEemmq7M7FQG1ZCjCGKl1TF0nCNklQ+ZJSgVHYw6N89Fd3np7iVPMSiswjOEn81mPjYTm42JoSVOAU3IMQLSTtK0sKPLvZBrmHpNqjk/3fOSiEP+3ow5fT2ZjmLYBcKEQ4jvlwE0KTgIkXjctQnT2fU/Ky5c+FyygjamtcXDCNALiYVqzo11Pc5P1xGhBbF+XdZNLn+mLlTSZjVLqqOJcrPZ82pOhtOo0rrYBQ7u2GjjPdrtbL9wQT8dF+nA9EpaXkci2hSpWvrsGUnds6t1ylGaqaa0hdA7O4WHnpmioGj083divyuHm3Dadv9MeD8vzVNtJO2aqqA/HApd21Ih1Cfqyd+Ob5TWhqsBJIvrxXxRObqwVjx3dLp1juxx0N1q7YoYq3w5uTg8sdsQkmilUwBcAuUjHGFGsnQi6zylXYjSvm9e5YEUoqqIyw22NubZ/VsVpNUVJJCgqx6aOyS1JlOrIMXaJuxP05iqt2nilbfDQB9oRLK0heI/apc1TTVQxsdTlqjIQMXu4tVPDe48yfdJJGvo+huMYX2jL4Lv0jKWUzMHRJo1rNjxgcPiQD95c+IDnOd9NOWHq+GkOFhzlqnPWSBC9PVGrKHtus/Vu9PbAkqqizeAyCBI5lABqV5UHyWnrxeifnE9jz4qk2kFmALKqR+0o8FjX121LBUbAohTJWzsYS70zwdoTOiO8lM9Tu6tNs6AVRJUdMOcVWKeFWQvbTqzH1UxFYFhGV94bzx0Q/H6Hst7wBEJM/7gO7pExPtSawVkA/nhYwOEzPvTz8PyUh595Tlg3p93FWXMcXYY2e2rs4an8nRNWqfmAxNDqiUZdSUKoG/IIFPeRjy8vaCCoPqjXmSai8Wa8wdQKKaJrOiVVxbmpbEHMbeqa98j1+ow1fXC5UrOmRZhMYfeMsr7DeXJ+SmWpLEfJQeDcPKo5wxwEjvLDai3HbKihM3Bg/O55GGhIYZHv4EOHrNaS4nnZz7JnezX+7R6ilmnNAq871tUHLBg7Yr0nHbcwd6ZzOpZI9jhiewCr4mob1JpjxKwVIyH0oaxaOng2KGnPbYDKmWAAqYJL3aJEaaBrrD0urY5IeAaaOl+mpYLSx4ZE2gttY0o5uXIyW0mlsacjQI+U9yadj3KjPtXvqjspBRnE+FU+wMe7G0Tx5PkDg7nCkz6xMD/fS3mLHIQzePbZm493VXq+vCdN3ypVwwQJmYwxrNphZE6J0txuzpG2KQUTmVN1aM+PHC2Vx0gVyFQKiU342VNN704nXhL7dLRRUp6WCixVbDYxGGqjVKwdCnW4Hvvw9h2UQdt0oJn2SiBxHdQG9PBUCOCiT8a4rL1Op9EOGRwO8uGFYzNrfX+R4+DEGl/iTce76G6oELwZieKxJdy2rlxWElS541oquAtZ74DWQaGTtB3KpZVFl1edsUm1JB3dCWpcZOXa6k3Oaiw6FVpq+AxnwpYubSv1+AScEkK7weccDjCSAKkDXD1uCBsf57kupOvhR7GPKw4LOHzoZTfLlnR9dKuAfDX1+OvmOZjXPr5SWpyc4PcdxCoBmvwSpHLu0nUdne6xRlx5USbXZgM/gmjtQ0RbY+Kf+rR+vt3Srjne7KA2B0VQnalst/IS9ZmfVLva8zq0btByQK0rzmepGI4V2woSQnuY8rDwsIFDwr7vJlnT3Br9UEp5MV3VM49y8LIZZaVsgwAfTMLsHInHxSlWlXDWJBA9QLqmOuA0CUkjTcoZMIQlAJQQG7lPlHVQUb6yF1oVKi9NORpaOggyt8jvUAW+WKmweZ08kLVEqkmlKFkiMapZJXzNrgN6h3SCykGxsSDV+lM7Yjy2Uf71sIJDuvNLFQZeEl8Ty/jzVFkvnibw2nm6Pzr5KrnXUu3dKbq4xuhrm7K/3lWpmqTdMEac6o0LSwakfF7SbjCLTMlgsZDemP5cg8pWKdaYODxVmt3gq9StyoDo+1Rywq6lAkrjbK3pkyseZFHB8HB8VnhXb4uw+OkQa7ZGGC04kLE8/7CDY5//8dsKn5TS+UYhiLyj23jCoVtMrVtgitkEAeweiVR6pdzzURtiTQlUpWocm6LXFUvbNsWxCBBVnA4CGe3TZkBtW1GVUTM5tkHtyepeBIKiA8kEIxg1qgtO2iHnD7PPDLyTUf84hkucp1DOiPZ3mx1h1XfZ5lA1+TPbQmly6e9LZB3X+dE9n0pf/jcDh5P5yML8BVJ4NwX5oL6jHrj4VL0vJ5niSdohHj5Hz8WexanzZuZMgISbbe9R2QEaegWFthutdY7+pg8GxBW+14AG/8ENEcYC+90HJbtCYowTBvOLZqaSVHGvJwuOyYv3E6JEk78txW8dirF0Y4THng2xcXfE03LhctOOjPdCuH+MovDWCPE991/ZuOuweWuV3ET7t/f/LFgAIe4MCkEHm0EuWeCjM9FSVc4dY4VYN4475c6E3v+v6jAqkNW2o4VHNvI4YwbAxsWdiuMI6OJnIuwe0Yaftkzdk0BH/cW07vKrXdrqWJFlcS1hfyrssrCJXhp1qlluu1y2OcbyzaHa5aYcG5fbZ+QuIcQ9sYxvyQZjf3zocx37NcRPtY7J6F71Z+/9cW6edJzfhoVwDiXhPS/3cUxncRPffv58LohVs4e1H7Qz5PgaTyciaTvoiVm7sR+XJVaVlIbke4655NkIG3eVqVKTLM2kJLqagN4WgbYG/SzbYDKRxNB+sLb01PYIizeEWLklVCknepeOo9a7VQhxdwz8ajTe+cAjV8zITkbE5wUcTuAdN410uzL1a5YgyPkXnOLj9Nn6DJ0yplW/M6BkRkEbaG2MaTfsVsJkqdsuYr/FmD9MvEiJJ7fFWM2+I+6iy0hMb4E6L4Gbi5M1ITtRPd+SElMGPS+xZmuMx54L8eQ2npGjvUaWJCCcDZDxbyKEtw/WNSx+/G/55UZVi0uFC8+7bndjXab+5iiK/y4MY5x7goc3nqQynPu9iq5wme4uAlG2KaqoliaKrBMGv+jGmje0dfb7UHXtJvFK2B3FRGYClOyVmyMseS5UqotZald9h6qIhXBWxVF0ZxThjj8+tmg5bnlnVceplBPheZMc++BTbpT+TBFcF4XRR8MgUntL37MgVbQXxQCgwklSdgzr8WhDa1NF5lhJC06ZaquGqay9sNcmvUkyC3dtL90U4YmNoeok0s0gSl0FwnEelXF8e+iEd/3pHxvNlwxU89SJr3newbFTefN3s/8iI/yfIIycYzodXPbqdPHUDKvnTEij8Eq+Ty6nCJTRjeULKo+vkiFK+bVJj0tnJySe2x3jiY0Rlm8KVS82Xy5zLFJmhev+RYbRbYEvFt3/ydoJmzIPFqIXDBxO+Lzrsu8XEN+NwyDd1SRw+bk1yvsqGl6zqnHgmPakoupJhNpJlWftWFHaylZa7jYrL8oBsgWJDTsoHRHWbIswOKbzftrDigeFcO+DDH4V5eS9f/hC44QNhAcLSDnjHY5xDnqM139n5A2O4/9CRIUmbgb+6KtqVI9zeUeOBkjrOttrVi5R1u6UHITSKb77TdDYIBKeTY9Pbo+wdKMOCNnJoww6K2IC2yDxOyC+FeHwA7//bPfoQS/2AG98QSXHzvW860Zf6rvebxwEPUyd8MycF03nbrLxGVtrE9TOs+L2jtJWj6RNsv65VmulQ1KtGmTejKmSpZtCbNwV6whdpXT4pbXOOonwbkTy9q0j9YtXXz3+VJMDpPFBX35EgMPZv/H67Kw6X/zWc6PjmcU470QfL5+jvzehPIlp1V5xe6CxSaozpiywsWAQTfZl86zO5Zsj1ZWqygwOPSwngnBWxlF4p3D8O+4d8lfgIL509aBRmODGIwYczu/vr5dtDQ3Bba4Tn8X8ANMkrznOnj5bYQXWo0vu4zRAqbMCYolNu5kyiVVAmDTorJALx3s0jgq3x/Du+sNnaordMIebyAc73hEFDhfxjoUy0xQEN7mOvJDb0+jJveXF+sChckfBCkkxZWIidLYF091dvTVShyGpdLw26KPCcf8cR9GvRIjf3fu5um0HS7jn474jDhwDkNuO8GtCxlfIOFY7C84/yQdbepNfBE5QaNB5guG6HTGWbQrVSR7DKinCb1/1mHofkELcG8fhbaGo//39n576ZI3ng/DVPOOIBMdO/LKFwRUC8muQkepWYrP77Da9w4ETZ0GM6RLGIkwysnmDJeswxOYgxt1RGN4+FNc98MgVYtIcVjWEeiGuOaLBIUE+tjB/oSPc/4qjgDuaiw5CScWxKCdkLJ11hUJ0VxTGt62XmccOJIf1QhC+mmce8eBwER//Wf5Fwne/GEt5LuKolV1TcNzdEO7aKAzuiyR+/cN1qVVHgodVDdGrveZ/BTh2MR++Ufpey2ib8OqC/vCWwVveeXAJxWqJ80Jf9z8TdKFBFentJgAAAABJRU5ErkJggg==",ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABeCAYAAADYHcHYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQmcHFd55//V0cfcl2Z0jKTRZcuWZNmy8SVb8gEmCWD4EWzO9TqBxPjAgV1gs9mwiCQEOzYbCAmbi2OzkHgBQ8Bg8IFlfMnYum0dHml0a6TR3NMzfdXxlv979bprWjOa8cQGsdn6qdXV3TVVr77/+873fV8JvIrtuaOyKZHGu2WIeQjR79rYJ4B9jsTxFa1i9FWc6v8fWkEBMR2KfON5WZeowofqq/HJZEK2ubZA0gGSLqBOIDHmODjm2NjvF7FfSuyxLXSFQJddj+5lQhSmc51/z8dMCcQLp+S6gyfxN2EoVyKMCC8ASwCODSQc/UoloMBJuQLJBOA6gAwghYUh28YRKdHle+gMJfbaEvsTSRzsqsKpa4Xw/z0DYO59SiAe2S/n945gt5CyRkQA8J1/aN7HnYzHWIBjaYDINYZ7CFLCBWwbkCECCQw4Ng76IbrCAHvDAJ0ywH7h4dC//D0GNmwQ4b8XkKYE4m82ypq6OpwSUqbHAWHAIKViwEQfNf2i76Usk5MguREnGYAITtIRcF3NaX4Az7LRIwQOegG6ZIDdvsA+FNBVTODIJU1i+P81gKYE4ivPyFonhVMCMmVFXEBikcj8XAIhtq92Y2dWuxVXMh8JEnHiZwMSxZoSeS6QsAHXFXAcTfogQE5Y6IaFrmIB+2WIvaGFfWEBXY6N45fMFdlfR5CmBIKKumjLU5ZEkgAocSSAhBUokeOHQr30pBclcRUnfuVF4iCViBZxjWEevo/jJAHYjuYmA5QbcRG/DwJQhWWEwFEaCYUCOiGwp+DhgO2ia3AIJ29eIYpnK0hTAvF3m2W9HaJHSJk0oqnO9bCm3UIqaStieYFEwZPIeUC2CGTVvkAhoJgRJBBERP34BUtcMQF1FCAxcBTnSEVshHznK9SHcIJYEUAEiSIu4UaizuJkQRhKDMHCYeojr4DO0MIeP8B+q4hD2IXem28Wwa8SpCmB+MuNsqEqhR5AJhRHAFjaWMR5c5KGTqeNX59UKmIRpLwBSQFVBskjJyli678wnBLnBMMZpfcYGDKE0vi8Dt8Dfg4V4dV7CKGtu8hoSNCyS2iRR7CEBokA9ELgEIGh0QCgU9rY7+Rw6P2rMAQhYlru9YFrSiC+/LRslJbsKeRDt7VGKmLVp0LMaXBQlQDSCYGELZR8jxNwsuFWgkROykacNKa4Ccj7BFAglAKSf2A4IwJBcUb8ZQAhCCVAhAYm4hzzPbmIf0sQlNFAcFwgldQgJZMaKN5nGKIgLJy0LRwIfAXSHsfBPoo+L8SxDy4XmdcKlimB+B/PySbhyZ4Xdxcd8jd9BxK/OgnUpIC6KqChWqC5Wqj32qRAdUqgigA5AnZ0helMqRJIIeCFmpMIzmgBGC1C7ROogh/pJQMGxVVEYEP8IBwPhAEkDqDhMn5nRB+Z0xYSDi05F0gnJdJJoIr3lCJgmsssIKucWAv7gyK6HIE9wsJ+IXAgPR/HrxUi/2pAmhKI+zfKFgmceHF3zplbz1kaYmhMYqxAvcAboAiSSCUs1KRs1FYJ1BKgNNBYLdBUI9BYbaE+zd+BmqRA0p3yspOKOxLU88lFUgE0kgeGc8BwHsgUgZxnKW5SosmIMbMf+85wVVz0kfN4P/xO6R8pEYQSQcCXVjSWkIpjqnmP1QKNvL9aC401FqrSFugiQWLEtnFUCHQFPp4TAl+9dq7oOxMwU1Lkzx+Ws0QCJ57aOmQvm20jV/Bw/aoa/GDzMG5dX48HXyygs9uDJQRcx4JtW0riExzeBO2pVEKgJiXQUmvhkqUprF1mKw/837oZs1efR+skirrRolTgDGaB/iwwmCNgAtmiQLGkl8xflblBGwj6PGqCKeDKQPh+CC96+b5E0ePnAIEvYVn6PhuqLbTUO2httLFknou5LQ6EJbr9At70xoVi95lF9hkosuER2Zp0cOJ9FwRWb0bi5cNZ9GZdbN43jEC6OHQqh3Q6rWZLGITKOjIed6U4IjDvvKIOb78kidrU5EBM9st0xFulnuJYDNfSqsvkJYZyQP+Yfg3khOIqWnnkJD2hI0AIRBiqCUXCx4HwFAih+s4nt5BryE2h1NZdNNhLz0vjxqtqYDniqRvmWetnDMQfPS7bqiS671wrrYTy6Mrhjbwv0TcS4mh/iP09PvafKOJwX4Ce4QCj+VANRukIggPNIe9a24DfvjSlOOS12uKmrjlnHLRKU7h0XUV3Pa68R66Rinv6xyT6RoGBUXKTxGgeKBRJeAk/CBTxyQ0GGL7zHJyMBoiSPySBt66twRWravqPnMKc2y4R3kT3PSU1NvxIzhYuuj+yVgpaGdFkKaFuPGN+T8uJ04ny+9RwiMO9Pg6e4ivA0X4fvSMB3kGOuDiplHnc256UCyIqGj9EC6GyJRW/qUqOKX2OvPfKPzPcE3cijYVmLFafIClRF6IvI9EzHOLEYIATQwFODQUYGguRK4ZKh/BvKcq04i+PZsm8BH7nxqbeF7vE3A3XThzknBKIP/qJnGMDx/9grRQMO8RNxzgIhiBU5sns8yhms8jUXK+9cGowAlSQ2NEdYs1CR1le09kGMh68IIRtCTD87kQvfrYsikFyW8nCjbRFdOYYAHEQJgOgTDojnk4/b8Tg6gLkgrF8iIHRACcGAjz7SgEv7isoMJTij4axeJ6LW97adHJ7hzVvg5g4kDklNT72kJyXtnDso1dJHdqOOU+8TjwCG4YeasYeRCK/FV6mB/vq/xbVVamSCctjtx8LcMF8Z5zldKZB9I4U1Y3xGONQKtKrSLD2X/S7UGDxswanzHHjxFTMWzfcXQYpAqAivDLR3080iXjtzfsLuP/7gwiDOBAJvO+3mo6+a4m1YMY64pMPy3YrxNG710oVvlbsFxbh5vYg6y6CsOu0Rxzm0Jj9Z7j57QhGj2BvcBeC5jeiPl32mHnYSycCrCIQzpRzQI25L1NU4Fug6WhCJdqWVxPBzIaSf07QNAg6LiaU82bAUWONXPgyR5cBiM/kMwEwmeFgW8Bf/XAYT+/OlWi+ZH4C77yh8eD7l9mLZwzE3d+SC1JpHL7rSso+qcIG9d6zaHCOYbAvg57GD8GRGcwrfh1uYTf8kWN4Kfw4/MZ1aKgCOLBIdSjivXxScwSdvfg2GSwDmWJkv2uCcvYbcaRBKKuaMihxIaMnD0mtjGl61WpPe2VCWBqXCDj9q94mVfKxgVcCwlP9n2cy+Nefj5XE09IFSbz1+sbOW8+1zp0xEHc+KBemEzh01xXamfECIOF1Yg4eB6M0R3Pnoa1qH5zsVnjDx7FNfgqy8VLFCQTBTEDzvvtUgNXtjpL3k26xnwZHiuXAnoo68l9kIkfKwRyuFHr8tBElDbGMSVkCJvKoiYRRrsLoHcNx8VWwShthArbg4d98ahQPbx7T4Etg6cIk3riuYfdt59srZgzER78nO2wbBwkElTWDeH4ANI/9A2rsXghhI/T6UOg/hK34NNCwEnUpvUI3br0iotGeU5ojzghENFrSYnCM7nu0XhFfIYz5KyVOMFqb1yKRDSiG4MZHiHSA8aIVFxjvULGMcj7GBzUtCxZvqkLHVBKWXP9PT2bw2I5cyZRd0pHEuivrt9+10r5oxkDc/qBcnHbRddcVIVIOQxwSBR8QwQBm938ENrLIj6WxI/FZoLoD1QmhQSixelmh8zsDBK0fs51JWwyPemq2qviORTESKW5LhyE4KcgJDDtQbJW38r4iaZw7Sh8jcRUXNRWz3FhYDL9bxn6fnJfVOL++cRRPvpzTpmwILOlI4PJL61786AXOpTMG4iPfk0sY2Lrj8lDZ/rw9xRUcWeEg8kNdGLHXwEk3jQPgtPXsaDbvJUcscOAYbXuGm+JPI4ojNPEpNvhnJM7uYwGO9NOr1Sdg/OqcORbOmcOlPC26yrO3PI11NFdqbolC5ROFjeMOWWkVsQKIiRS2AeKZPXnt4Elg0cIE1lxUu+kTFzlXzhiI274jlyUddL73ghDz6hk61gG1YqAv4vk6/l8arBErFdOcH6kzDEfQ1JzOlsnSamL4PfIbJPBcJ51DHZJXVlykWRkQnN9sYd1yk+dD1IiLnvklcWPEVqQ0NMwGNwNa5JhF36vTOM6kazDmXnhbX31iDC/uLygg6Gt0LExg1cq6jX94sXXdjIG487vyHMvCK2SxmgTQUi1x7eIATdW2Yj3ay5yVKlA2BcsSiF09WkdMBMRE0Ixwyc8AIQRODEps6vQ1Z0A7iyvmOwqozV2eGselSx0snxeFASCQyUl0D4aorwLqq3T0V6mB0gQqx5dKoEQyiSCr4yiaqCTNNsnN0pf46sYsth0sqqgtwViwIIFzzq95/FMXW2+aMRC3f1+e60iV6lKaNe9cUcDitqQ2zyKXXoWNVbylvEBkxkoCc4BUCztPBFi9YGIgJhpkJhvpCNBhA7YeDHCgJ1TO5cr5DlYvdFUkd8cRH8/s1UvSDCi+87KE9j8sgR9uKeJon87MoS/EtRQVJa1lRFigrkqvr1BvlcLjBoiYcrbdaXLEkznsOurp8HkoMX+Bg46lVQ9veIPzlhkDcccD8jwrid2cFdw44961soBFrckYO1ecPlJSiksYClcE0Ur74ECIxa2xmTWFfNKiSYNIZbztUIB9J0NFwLdclES1yi0Bdh728RSB4LEW8N61SW0+C2BwVGLXsQD9mRDDOcaOoskSs7KYCFGb1otbrfUCi9u0hUQctNiVcLlSNMVGTv3az/LY2+2XRNO8dgfzFqa+/yeXOe+YMRC3fUuen0hgl+EIBcSqAjpmJaYa0/jfzcyKYkPT/eNRAhGWrbCTwxI/2x0o0UTduf78BJbPdbCdQOwuKjs37QI3X5HUMSjjD/CCQpvejHkNZiX6M4wey9JCF30kNdlC4DcvstWilgGC3yd54ukA8VQBB04FJY6YPc9G27z0d/7scuumGQPx4QfkSjeFl+JA3LSqgAWvFogpbmAy1T06RtFUNoE5w594OVDKOtK/WDbHVquAP9+vfY5VC2xcstjRSjzSXCYkT8KWIqQaG72g5EulS4ayDORJLJtrlSw0Y4hUV+vJN5kuVCKYHPG0hyP9QYkjWmdbaG51/uWzaxPvmzEQd/2rXEXRHgfi5lUFzG9JTGlBVF50QmJPYTxlRqNYU8yB48x9am+A3mFtOcWjqXMbBa5b6aooQGSh4uFtPkayUokezvLmGoogoCatEx/UkmgkhrQhxVU6rS/K1qBEDa2VKTaK0K8/4+P4INdjtLJubhOoa7K+cc9Vyf8wYyA+8l25Gha2jwPiggLam6ce1FSDns7vGghtvhp/TfkUQuD4gMSRvlCtnVN5L5xlqZdOfoksISHwxMs+Tg5Gvo+5KHWJDZWJYnRDQw0TIgTSSa08SkHByOtuqJ36npUf8SwXx8LScmtjK1BTL756z9XJD84YiA9/R17kOtgaB+LdFxQw9zUGYjLGGCEQVPia+oo4JHzK1dnopy0YGdlhThgpiqInMULRMybVCtzQKDCajxIgositiXIwM2XtClvrmEhRc7+5XhsoZ9oMEH2j0ZJpKNEwC0hVhX//F9ekb5sxEHc+KNdYNrZMBkRJXpZiNdGlYhYJv5me+3b6MEei6KsOaQMv7Jc43KvjXjVpoKFKixvOZpqttH70pWOKNnLgSoo3Emd0RHNFqcTWMMEZ02vaDNFctlz7ISUTXACt9VNzBMf49edCDI5FHBVK1LVIJNLBl+67puruGQNx+/fkxY7A5nFArC5gTuPUg5pq9kz5uwBGRorKFjfhboKwt1uboCrMEtson5mDVJdmCo/Ot6pN6zwsK+YjKCfNZGoYE7UE3HiP2pyeRvLsadwzJ8HXngsxkitfo7ZFwk2En7/v2tTHZwzEHQ/KN9g2XogD8Z7VBbRNY1BTEXo6XDLEFToTioiiqpzrxUCo3KrhLJS4GcnqRDSVa1Uhaqg/6LDRcaPYYe5VVZIZ5pprSglmsXCGMQCMM0GfZO407/nrz0pkCmbtGqhtCeEm5Wf/Yn3yj2cMxJ3fkZdZDp5/PYCYCij+TiDooZY3E57WMOpFHk15HsZsjAwTziKAuG+4xwCvwhVCZ/IxK7GmCqiJwGHaJb1xoxvMdbmO1d5UlgLxEVVOqK8+wwzFaN1aaiCsZPCZ+9enN8wYiNsflJc7NjbFgXjvhQXManhtRdNk3DE4XBgHBAmQLWgicpbG5Xg5ThSxRKQLaO4yXTOT1ZyTyWqnjgHLuOnLMaiU0pTAuR3WuFVEArGg2T2jD6HGIoF/fDpUE0LppBCoaw1hJYI/vn99+rMzBuKOb8srbRfPqsXwyK5+70UREGeK8k1nuk9DNg0QCGYQRzN/5xHgSJ8mGE1PKmwG8yhumAbJJVhyCZd01XhpacVFTsRHjCAztzabB0aZu5TlvkSxqDPJz19qo7Zah/15bSrwhTGOiN9e/Dbolf/D0zSpyxHf+jYJy/Y/cd+1VffPGIi7HpRrYeOZMCo5pE3/vouKaKl/9Q5d5SCmgQMIBDPpItcAPcNA5wlaO7o4Ja4PKG5oTREQOmu1VUB1WhdXMtqr9YGu14iDo8elf/dVxJSp/BrQSOrBVUBMHuIw90IQ/+7JAMUSvYDGuRLCDT92/7rUF2YMxO3fllfbLp4K/bLyef+aIpqnYcpNhymmOoYhjrGcvqv4ApynTE+tDyhuaKWM5aEIEBlZpVNThBEMZnRXk3PSQCqllTX9EOO4jTPFI04wC1xM1e1onhoIxrK+/ISvYlpmZbC5nYGx8PbPr0v97YyBuPNBuU5Y8mdBhDBv8gMXF9Fc99rqiMkGSCKRI5hnqpJ+PZ3eqPUBRVC0CS7jaqtprKABoi5g3IjKmtwzTpxEBSxMs1cp91VC6QbqHpq6hkeUHwkojpgOEEVf4q8fZwhcX43jb+2wIOzgQ/evT39lxkB8+NvyGtuRGxUQUab0LZd4aKr7t4umEg2nYouK3wmEAabghWq1UFcI6a0YAAdP+qirtlFfY8GxLR3Uo4mbDZHNATkqa70KO25juD6ZEFiy0FbFK68WCOqGL/yESXHRkqwE5i51YLvBLX9xdfp/zxyIb3nX2Y79U5/KJ8rtvPVSH42/JI6YDkbUW8xRpSXUOxLiiR1jeHJnTqd7OvQdLDTX22htctDW6KClgXUctjJhCyyAYcQ1FyKX42etI5Z22Kiv1cr61XAES9M+/6O8spZMvGrh8gSEI997/7rkAzMG4rZvy+ttSz6ugdBFKb9zeYDGaQTApkPE1+oYzuR/edpDV48OblCMFbwA+aKPfDFAoRgoLlI+iQGomgCxlsFBW5Ot6hpq0uSgqHNCxGI8HwsIF06gIyoNDsav7v0+K4z1xOW2dGUKluXffN81Vd+eORDf8t4kLPvRwCuHdT90ZYiGipDwVJZsPKsiEsCvCQa87t6j2krZdjBU6wn0G1RydmRSGWLRQycYJYAKgdqPA5R0LVUJRFDaGm3MbiRANlpqbSybrcUxOWYysTqcDfHnD45GAS/tfJ6/phrClu+4f13y+zMG4vcfkDcIO3zEJxBRGdNtV0nUT5MjyEG9owFYS8F817QrVH4Us0HscXlI0RCnY9PG7oay/uHNvl7cj1J2VJVplGnCHCwqcL4bi6oSIK1zyDWh4qACX1EhiuEglqa11FmY1+xgwSxXveY02WiqtXVCdbTANDAa4k+/NVICgkNdfVktLIRvu+/a1A8nBWLjrvxSO5G4/0hf0D6YCTuHRr0Xxwpy21gOu770u7W9v/dN783CsX7iedHSXyBxx3pMG4gTGR+nMoFewNFiU226V4dAmq+Epd4JFO3907CIf2EcBwAtKaGyCRlzIif0j7LARKrIJ0PeusavXKTP/RJArF4lQIFOCTI12/G5oQDyNNdQvGmQQlUmQIB4bFWSANklgKiPHngmq2tFou0NV9VDiPDN961PPTo5EHvyb3Ud5yFekDOp6FsYKwoMZPziSEEc6MuE/YMFrKUlwmgnk8vufiPZd3rmaxyIyQZhZKlSrqoFkeacKnIPC9dVYtl4ePhxVjpyuWJy0RzGsRqABrgGkZEqiYBhbnKGAijKzVUmMjnI11mMhoOMiOO4jT/BS7EoheIsT4AKBIdg6e8Ink5a0AtZjFt1LK3C6GjwyZ7D3nfz1X1Hd21YcVoHBPHE7vxv2bbzoyKVGeuSYzlKPBFnilpsHwtVFkT/WIiFLQLtLa5ScFwrZiuGUoJvBbUpmrqHfWQKoTp/nOhnUhKGe0h+5ZBF4KRdqyTeWqvK085gcZquir4oARRI1R2BEVsCNBBxEAEysafJACIHEcQzAVSkDoq4h1xUVDqIaSw2hModxaAQzn6EwV4ZhjtDS2zftu+pJ8VPd+V/U1jOw9qq0IXmpprfJOnSFFMzJtAD4WIKa+SyhVCtDbO0ddFsB+cvOHOWA01MzrqcKnIPld6gfU9xYRT4VCrCAMkFoKsWpEpBuImMhZKPEA+7VqBvACKx6Agy3Ybg8GUSCUj4OAeVdJAvVXG+4SB60+Ze4hxkHNK4BUd681hhqeS4/yV+ssP7DcsRP9ZAsLKSxeamzpjcECobnaW7WnTpGWGy+3TEksAEuOkqVqVMblFMxAHkGNUmIgKIIOVZQhvdvBELlX9LT3ftgpTO5DCqpwKNCS25mI4pnTM60Chxdc3onIw9KYCyWvcQIO5T7Jn0G5M9yr8n7ZSIiwwEijoeZywtAxDv+2jPKDI5j5m6OfHj7d6bhS1+QjYyQJhc1qbqUAXQMtkQOw4XMJQVmNucQiDLBeVadNCZCvDba9PjlBRvqD8bKKuJx9FaouznilnKsVTYgLI/TrASAULNLQQm54Xq3XjQPC9zmq4kEBXpLZWecomiZ5KDcSCjiXTaeaJwhSG64SAaBUq8ZUO1BqLC61F4wxzLCcyJy/EzJsZyYl4mm/dxsHuYHJEX/7ol/2bHcX6irQFtQQR+Fq+ctHDL+ho015q4C9eLc3hwUxbntNcoMPTk0sppJOvj3esIRJklqLj29OhCE7PFdYSS/XYETiT7qawnS1DmLOLNMHzN96WMhkbIVc7+Sf2aOEeYfcMRMU4Yh1vsZGY3LkKV9x2Ng+NiOJ213OQg6lZyEEuEzXZsQLe2yBV8HDgeAfHtzd4NjiUeIRBKxgUSb5v7Xfztz5fDbTgXcxt1BejqhbZKO3lsxxg27vKwaHZVRGAdqx8c9fG+a9PjrBvqmM5eT83siVyG+M0agGj20YultaS4x7UUJzGN3yQeG9FRkxjPTSXumIjFpuKImFKfVKRNcI7TdFoc1Miv4b3RGHh0p6cixmwcMDAWB8LKiW88m7/BdR0FBOVYS6IHb5nzEF48MRs/PfVbivhUKhQFb1njqnj/H3ylFysX1Uc1Czoy2Tfi4QPXVY3jCI6b8p/iiQqest+Ivclk/0TgEMSy32GpOg2ats1p5tPEMu+myEgvLV5EiDEdU1UWxZVFTDSdbjhM4ONUrI+rU0fnNGLWZKDsOhKo3F36OqcB8bUnvTdZrniUNjCtoxW1O3FF87P4p5cuRJ97KRzL0r2QAuD8dhsXdtj4u0eHkPMSpcAZQTo17OGW608HwtxjXPkVIvGSpSfLnhZR9FQdW1EGN9FE5o0SmDe0R+HRcXpCk+80nTyBItdZgiagfvqV4sZWWUDr4/iZnQpovak2SbEJUQkED6ahvbc7wJauSYD48kbvjbYlHgsIhATOrd6F62b9GA++sgZ7iutUxxnTYocZ2NesdPDwllF0nhBoqXOVfiAQ3QNF3PqmauXul8zRScRB5Uxj6KQYtQXS3c9CJc7OxD0E4uJ5lUDE2UNTS5mdE44jxgcRaqcTfvwfmtJ6rvFZCNB5qgDfz6HOHkHacVFV146EY09oUvPcnQTiwCRAfPFR73rLFo/7vrZs6p0BfGDOl3GiMAf3br0ZHXNqlcgiGPOaBNYscfDQzzMYzruoSlglIPYez2H30SyWzklgVUcS589Por3FUR1bTPggfltn8hf4m7I0Ki2niHt4Pk6AS9qTUejEyJOYUTCpTogJ8TjnVPga6mPFIDUQAWYHW5AOjkOEY4A3DFkcwZjfgsMNtyCVKHd2q9Q1BGLbZEDc+1DueifhPh6oqkDOIIF3tn0DLekM/mHfe1C06jGaC5BwLFx7AcWRwNcfG0ZLXTpy4fU68cuHsnhx/5i6fVU7BiZ60dFLYOXCJFYsTGJhq4PqpPaGJzIPp9CnpXOTe8gxbTV0hsafa3LrSf9idIIRlSV6x2Jhygo6DQh9QFIOoTV4Dgm/F/BGAT+LMD+C3tEkji/4Y9SxfqdS70Q3tu9EODEQlpUVn/tB7jrbdX+qgIhmSK0zAiccwUDQjosWcbElULmudTU2DpzwsHV/oIJdJAJnJoHY0TWGrQfHd/rkzZRaNNiWKipZ0OrivPlJLJ/nYmELLTEd8JkJMLSmKjcDRFwBl/YnEFMKkDgqJhOnpGk1IpxaDUEXmvwtsPxRIMjSzlesGw53oSvTgpFzP4NapsdG+bKVYyMQ2yfiCAXEQ941jis2+l6gPdSYl9neHGL1IpYrWaqlaHd/iO0HWQmjQ84kIJd3uc67rWsU2w97kCoBSp9EdRViyRb7ZNg6JuW6FhKurTz1dMpGW4ODjlkOFrdaaG+yVI0bwZ0sdhW/uTgQEwFgJlZlMlKcxsZyMucdD60WRhaKmOVvRo2/HwjGgKAQDdCB9PPwu3+GrfItcJZ/WNUZmq2SO/d1h9hxcAIdQSDue0RWWyK4F1JcFwThOZLL3IGOxBKUhCOVTU+XnovwxqoxfoEBYs+x/PCmvWM3CynXwU5cjdBbIyyrRik2i70AmTXBpC0LiQRj+BEgLgGyVA21bQuVt8oahwXNFtobdYIxjYGJgDFAxGe83o//f7rAI3EbZZeaKKPWHORlVWlJtHS0EMq5FX4/lljPwvV6AT8DhKz7okK2kT8Ons1RAAAPKUlEQVS0EbuxFoWqc3A4sR5L59SrnoZmCGoUMWQJxEsHGWmIzNe8jwP0rAlEfJj3PCYXOH6wVlq4XkhxdRCGS6SETUUezw+Nzx7O3nQCOHiqOFjM17b9/W26MdSKO07VhGl/jYVwne26621LXuI6doNpR00wEgTD0dxBjlHh44qQN5V9a53A/CaB+c0Cs2p1I3jeJL3yEifE0JhITxgucGQObeE21IQnVSbImLMUfWIZPKQimpW1dp3/Cpr9LbCDEcDLaE6QFqRfRP7os3i+/g/RXX1dqYhzeatAXcq0UI2oZCw3Pt9hukCMmztSivsezXcIaV8lgDdKWGvDMFwUQljUJ8ZOpxlZlQRODgaDvYNVJSAq52H7x46m51W5q52kfVUqkbzGdXFpwrVmqR5MFjvfEIhYmx9Ta2cmWKQACSQrfjpmCVx/XpSDr0TqeC4w44uDUh12Y7a/CU7IzjEq9Akp0hh1l6NXnIMQeinUlnm0+ZtQ7R3QXECd4BMEAJljGM2F6Dn3Xrw01IpRJhurPrMS5822UJc83ds3jEEdMSFHiAqOOJ2Jy99s2LDBqrv8DxdLKa8Stns9INYKGXS4NkTSDTGaQ/fw88n50+1wv2LDrsTi+nkrE659VSKRusaycJllhXOV7lEVQsZymdjQpSP1sd9IRKGTMgjjAIiK4S0RYpa/DY3+LgjJUChXhgL2dADsNEK7DgNYhp1jS3Bu3QDaik/D8fsiLsgCvqcUs+x/Gf31N6B//h2ES9WMMwNdmfd0hglEeuLx8tvXBIhKkDZIabX8tLA06VpX16St63L54Hu/uy75nTOBeabfrtkgnYUdxXMzI/mPC2Hdmk7acFzdMdPM6vgt0nH86JsTSv9MZrLSIdzXPYLrmjaijs2cdTG4fhlzwk4DThqBVYMs6lHjH4IIyAFjmgtofBQzGOs/gi31H0drxxvUgDgW9p7K5A0QEivn2qpwZqKNE2tS0STssYn/aqbUfA3+7spPdd8tLOuLJJbr2EinHFSlXaSSjtIlZqOl9tHfSCog4lbKOFHkHUBr/gkkMQqEnNW6hYAMfOS7tyAxfx1sdnZz2NOI5g4XYjz9Ilg8fKwbRzO1eDZ9N+xEHVbPtUqW5Y5jAUZiomlVu42marb40lucuARif3eInRMp67MRiKsIhGN/kbPXWGZK3Aj287NATkmnXNRVO/jEjSllHmu7vbwJ6aO1uAmNxa1AWACCohZHTDAe60Wm9yD6zrsfeasR54x8Fa5qwR+BIViypZvP+0OHsSV3JXbZN6iTV7nAmnZbN50HsOWIr5IUjGi6cKGN5ppY1kAMjDhHnFLLs0DOWE1nIxDrN5y8W9jWFyWBUNOqXE0an2W0pu773eZSlrcRYYlgAHOzP0Iq6I5md0Q2Nt7t245BzEffuX8KadXg+JBEcWAvbmj4MSy3GnBSbLgB6eWQH+nD7vS78cKpdtXGTgGREHhDh44lkbAvdPlqOVVnh0hcvMhRKTfxzXjpPL4zsppOB8I6+0TTO7/Yv2EoE35aUDRMAgK/JxD33tKofA/jiPK9MbsJs4e+A3BmU9xYKcUuxe5n8Zz8j2i78D0lkcF+ta/0hFhZ04n1bTvV+nE4ehJDxVr0ttyEU9kUth/RMTgSm8WSly11Sik6mzo9lYRA055ccclSB231ZSCMaFJgRDqCoumsBuKhbrkcAT63dXfhxqc3j1gqfUb9M++RPRRZU/Ql/uwDjeWqoZJglph//POo9o8AySbAG0HviUN4yL4HudRiXHd+2eRlP9rOE5pjLmrej2WpfQhSC5CpXq2If2okxJaDfslgoI+wdrlbAuLp3UW1CkegqX4uO8fF7MaJgaA1aDzrsxKIR07KVhngU0GIDxU8pF7qzOP57Vkt++MKz3S4jJoj8kEdf/K+hpJo0kdrNGx/AItPfB6hl8HRbBt+WPwDZP2EKmB802pNSFJ3XzeBiGY8gLlNNi5exPZH+mwnB0O82GWAkCr8sn5FQtdfCOBnLxXBzD5uBOKK5a46h9lKYimKuXUe1yEOA0RpzdqyR39lVtMjJ2W1HeLuX+SBfaLoodE8fOPl/QW8uDNbaicaF0/xGBGB+O831ynRpCHQMRmGVIqBhcH+fjQ01CCZTCrCc82YCcJtDeUZu+uIj30EIqLCghYLaxaX6+SO9wf4eadX+p1pQ9euKgPxxI4iBjK6momiae35LuY1ayAqxRKH+crZBISU0n7qJN7/i1aVnyn66FDJCuYBHGwR11XA1peZUm9E0jjdp0SVCm+4Av/tXTUlHWFAEGA4RqrOxEOjITJ5i7Ec1FfbmFVvqaVf05eJi/xs1cDEORK0tcHCRYvKQBztDbDpFaa76K2p1sL1F+o+UBzeY9s0EEY0Xb3CRXuLXr6NA0GxZIDYfjZwxHMn5fXCxr1egIuLNOujVMfSU1AksPdgEdt253WHzGhqjVspju6Qy5P/9berIyBMG0tyRKBWz7SYYgjDRsG3VFcBNpQfHmNaJHtu8PECAs21Vqk9NnOY4qmdR/sCPLsn6o7DFhB1Fm5YU+aIR7YU0T+iK/LIEVevTGDBrIgjonHy7awB4sUBufIX0fLPeQHe4vkQ5qknShwZMKL9zkNF7NhdKPXeUF5spQCNZNTtv5lGWz1tfmU3mRa7CgweoipLdQ9lJSyM9UKisac3ezURHDZhZ0J0U60ocQ1FHnUBfxscDdE3rNONLl7mlvpH/XhzQXETNx67bkUCC1rLQBgdUQKiWy8MnWIeLnOgTF7T660jtvbKucLGp0Pg1qKHhEpVjD+UKdqPc0TnYQ8790RAxKSt9inGi6nqpMBlyxx0tFqY1WCpRim6QXo87FFWmZWhEHNKHsGSKxK8d1jnIfE07FTA81IkmQePlDL2AOw64uFIr+YyZvatW5VAR5tuphI/twLiF13VqCMmAsKy7Mzroqyf6ZW1VRY+Ztn4T56PevP8H2VvVxC/xBURSPsOedixp1gySyuJX4IioqpSlJJZhGxaYqGtQaK9RWBRq6tKtvSypVHo5VTK0o2bKGEMY3IgHTTWX58aCpX4IaFZmUqHbVadpcqHjaHAlCE2ViFXsZPBREAwOrP3WIht1BEVHPG6ALF1UN5oAX8TSrSbInnThMRwhHmPiybDKRQFh7p9dPcEGB7RuVYTJ6dNNL+BgZEiuvtzKnv83OVprFycwtJmG+11NpiQZiyv8bw1vU8cG5Uzn40xMiaViU2Ttq1RP2OIllw81hIXTVzV3XOcK5y/BCCe7ZFLalLY7RWhFgwVqWKdwczsLT0Zy4ipOJfEHmvGPNKevgAnTwUYHAqirscVRKvAYyBTQM+Azm+c05FC65yEWg2sSVporbEwt9ZGWxXQmGSRTLmBvDnrxPCWy8BKNgS5JuKEnqEQAyNah3BF8YLI8vqVAfHZ74+2tcxKHp/XbNm0SLjoo1b2IlDMKl9JRMV1RrRvuMSIMJVTRRlelOgfCtBDUAZZb61JVskt/SNlIJYtr8KijpRO21SrgVG7bNWIHWBCCSvQGlxGvT3Ma3JU9zJTfzdZeH3cVDAOv+n74fGpXOPFk1HWe39ZHLFho0wli36PlGEdKzOp5OY0U9npxOISKLGnKY5T4AaYiENUblNsnw9TMo8/o9jq6wswMBiikC+DMjBSwIn+HJqbXKy9ol5lI6p6vSh3Vqc/ainOt/6BIh5+cgAneooqort8fvrYR99W+88tTc4az5MXC4FGpeOiJrxTCbG4figp7MiPoGhSsSajIwpBcPBERghhbXvNlfUXng6+GQbyXazC0s9u0yk1fF4bZSlBYWV/XIGf9pjLCTjF6BDNTRoQ/UhM3dBkoD/A4ECAvqEimmdZWLm8OmrsHnvohwEg6nT5/NYRbNo6HBWhOKFt2V8ZSxT+y5F7Fg6SiAcPylSxFqsCgbWOjXWhxKVSYi4TcCo7GVQadZWeNbmCynrnIYY4BIbzSnA9sOXA8CeTvYX+1xwIDuh/Pifn+X74NuGId4dBeKUMkdCPCePz2nQX4rYm/SA9ztS4zpiQQ+h5R2GEOGi0iNRj1yLxYKKwatZHnWlKMj3a4fW7ewp4eOMAegc8tVYOYe2zID/8yhfanzjTjN+4UTotq7DMEsEVlmWvFwKXh4FcwgQU0yKj8nrGd+E7zdeXjjA5LvzTA33W0yOW8/wPPqgfs/m6ABG/mb/amG0XjnOjbTs3eYG8MvTDBOvM+Fw3EoxgtDVZaKpjn1WhRVFciU+wb3SMeTeZdUamx2V7KSjLzjN+iKdeGMbmnboOWgjHg5BfHCoOfab3yytGpxI7lb9LKcXLA2h3gcukwHrHxpW+hxW2LZOqc07MGSVHHOzFse2HcMTzird+6m2pffHzve5AjAPledkuC+HbLVvcXCyGlwehTKgiSp3ticY6C3ObLfUubD6PNBI/MTAIlFHk5pHKkQ9XMgqMtVa6tgAOH8vjx08OYCjjq4ePCCF2ijD8vc4vzX/h1QJwpuM3d4+0VCdrL4bAOsfBVaGPCy1L1pHxgkB+bFmjPWGroF8qEPEb+PzPsvND33m7EM5NRT+83CenqBJZzSmM68xttRUorEJSFa8xQOI+yUScYcAoFkM8sWkIL+3lo2YY+HFyUsp7EM69d/+XROG1BGGic508Kav7Ev5FCctp8+rx0Aox8cPNf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",ot={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Ke=ae(59301);const Be=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var Je=()=>{const[wt,Fe]=(0,oe.useState)(0),[te,ee]=(0,oe.useState)(!1),[he,ue]=(0,oe.useState)(!0),fe=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(he)return;const tt=()=>{Fe(Ye=>Ye>=99?(clearInterval(fe.current),99):Ye+1)};return fe.current=setInterval(tt,5e4/99),()=>clearInterval(fe.current)},[he]);const me=()=>{Fe(0),ee(!0),ue(!1)},Ee=(tt=0)=>{ue(!0),Fe(tt),ee(!1)},Pe=tt=>{const Ye=tt/1048576;let Qe;return Ye<=.3?Qe=3:Ye<=.5?Qe=5:Ye<=1?Qe=10:Ye<=2?Qe=20:Ye<=3?Qe=30:Ye<=10?Qe=Ye*10:Qe=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Qe}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},Ne=()=>Ke.createElement("span",{className:ot.dotLoading},Ke.createElement("span",null,"."),Ke.createElement("span",null,"."),Ke.createElement("span",null,"."));return{progress:wt,progressOpen:te,openProgress:me,closeProgress:Ee,toggleLock:()=>ue(tt=>!tt),CreateProgressModal:(tt=Be,Ye)=>(typeof tt=="string"&&(tt=[tt,tt,tt]),Ke.createElement(Ce.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:te,title:null,footer:null,width:500,afterClose:()=>Fe(0)},Ke.createElement(ke.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},wt<=30&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:He,alt:"Step 1"}),Ke.createElement("div",{className:"mt20 c-light-primary"},tt[0],Ne())),wt>30&&wt<60&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:Te,alt:"Step 2"}),Ke.createElement("div",{className:"mt20 c-light-primary"},tt[1],Ne())),wt>=60&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:ze,alt:"Step 3"}),Ke.createElement("div",{className:"mt20 c-light-primary"},tt[2],Ne())),Ke.createElement(Ie.Z,{className:ot.progress,status:"active",style:{width:"auto"},size:[300,8],percent:wt}),!!Ye&&Ke.createElement("div",{className:"c-grey-999"},Pe(Ye)))))}}},74368:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return at}});var oe=ae(59301),Ce=ae(75727),ke=ae(6767),Ie=ae(25399),He=ae(37568),Te=ae(99571),ze=ae(10946),ot={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},Be=({position:Wt,children:rn})=>{const{left:Tt=0,top:Xt=0}=Wt||{},[nn,Nn]=(0,oe.useState)(Tt),[Rt,At]=(0,oe.useState)(Xt),Zt=(0,oe.useRef)(null),In=()=>{if(Zt.current){const Dn=Zt.current.offsetWidth,qe=Zt.current.offsetHeight,Oe=window.innerWidth,Le=window.innerHeight;let Ge=Tt,it=Xt;Tt+Dn>Oe&&(Ge=Oe-Dn),Ge<0&&(Ge=0),Xt+qe>Le&&(it=Le-qe),it<0&&(it=0),Nn(Ge),At(it)}};return(0,oe.useEffect)(()=>{if(!Zt.current||!Wt)return;const Dn=new ResizeObserver(()=>{In()});return Dn.observe(Zt.current),()=>{Dn.disconnect()}},[Tt,Xt,Wt]),(0,oe.useEffect)(()=>{Wt&&In()},[Tt,Xt,Wt]),Wt?oe.createElement("div",{ref:Zt,style:{position:"fixed",left:`${nn}px`,top:`${Rt}px`,zIndex:1050}},rn):null},gt=ae(346),Je=ae(56102),wt=ae(85788),Fe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(Wt,rn,Tt)=>rn in Wt?Fe(Wt,rn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Wt[rn]=Tt,Ee=(Wt,rn)=>{for(var Tt in rn||(rn={}))ue.call(rn,Tt)&&me(Wt,Tt,rn[Tt]);if(he)for(var Tt of he(rn))fe.call(rn,Tt)&&me(Wt,Tt,rn[Tt]);return Wt},Pe=(Wt,rn)=>te(Wt,ee(rn)),Ne=(Wt,rn,Tt)=>new Promise((Xt,nn)=>{var Nn=Zt=>{try{At(Tt.next(Zt))}catch(In){nn(In)}},Rt=Zt=>{try{At(Tt.throw(Zt))}catch(In){nn(In)}},At=Zt=>Zt.done?Xt(Zt.value):Promise.resolve(Zt.value).then(Nn,Rt);At((Tt=Tt.apply(Wt,rn)).next())}),tt=({visible:Wt,position:rn,selectText:Tt,applyRefinedText:Xt,fetchUrl:nn,noRestrictModal:Nn})=>{var Rt;const[At,Zt]=(0,oe.useState)(!1),[In,Dn]=(0,oe.useState)([]),[qe,Oe]=(0,oe.useState)(""),[Le,Ge]=(0,oe.useState)(1),[it,De]=(0,oe.useState)(""),[ht,on]=(0,oe.useState)(!1),An=(0,oe.useRef)(null),[Zn,Ft]=(0,oe.useState)(!1),[It,Gt]=(0,oe.useState)(0),fn=(0,oe.useRef)(!1),Pn=((Rt=In==null?void 0:In[(In==null?void 0:In.length)-1])==null?void 0:Rt.loading)===!0;(0,oe.useEffect)(()=>{if(Wt){Ge(1);return}Ft(!1),Zt(!1),an(),Gt(0),Dn([]),Ge(0)},[Wt]);const an=()=>{var kn,Vt;Oe(""),De(""),(Vt=(kn=An.current)==null?void 0:kn.cancelRequest)==null||Vt.call(kn)},Ot=(...kn)=>Ne(void 0,[...kn],function*(Vt="",Qn=In){const ai=Date.now(),Un=[...Qn,{text:Vt,key:ai,sender:"user",show:!0},{loading:!0,key:ai,sender:"AI",show:!0}];Ge(2),Dn(Un);const si=Ht(Qn),li={no_record_times:!0,prompt:Vt,history:si};An.current=new wt.Z(gt.Z.API_SERVER+nn,li),yield new Promise(Me=>{An.current.on("data",ii=>{const{chunk:{msg:ti},full:On}=ii,ni=ti==="error";Ft(!0),De(mt(On)),Dn(Ei=>Ei.map((ui,tr)=>tr===Ei.length-1?Pe(Ee({},ui),{text:On,loading:!1,error:ni}):ui))}),An.current.on("done",()=>Me()),An.current.on("error",ii=>{const ti="\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(ii)==="[object Object]"&&ii.status===-9&&(Ge(1),Nn(ii.data)),Dn(On=>On.map((ni,Ei)=>Ei===On.length-1?Pe(Ee({},ni),{text:ti,loading:!1,error:!0}):ni)),Me()}),An.current.on("cancelled",()=>Me()),An.current.startStream()}),Zt(!1)}),Mn=kn=>{Oe(kn.target.value)},Ht=kn=>kn.reduce((Qn,ai)=>{if(ai.sender==="user"){const Un=kn.find(si=>si.key===ai.key&&si.sender==="AI");Un&&(Un!=null&&Un.text)&&!(Un!=null&&Un.error)&&Qn.push({question:ai.text,answer:Un.text})}return Qn},[]),Kt=()=>{if(Vi)return;const kn=jn("\u6539\u5199");an(),Zt(!0),Ot(kn)},un=kn=>{if(kn.key==="Enter"&&!kn.shiftKey){if(kn.preventDefault(),fn.current||yi)return;Kt()}},Vn=()=>{var kn,Vt;Gt(Qn=>Qn+1),(Vt=(kn=An.current)==null?void 0:kn.cancelRequest)==null||Vt.call(kn),Zt(!1),Ft(!1)},bn=[{key:"1",label:oe.createElement("span",null," ",oe.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:oe.createElement("span",null," ",oe.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],mt=(kn="")=>{const Vt=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Qn,ai)=>{Vt.push(`\u7B54\u6848${ai+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ai+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ai+1})\u8F93\u51FA\uFF1A`)}),Vt.forEach(Qn=>{const ai=new RegExp(Qn,"g");kn=kn.replace(ai,`**${Qn}** `)}),kn},jn=kn=>kn==="\u6539\u5199"?`${qe}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Tt}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Tt}\uFF0C${kn}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Kn=kn=>{let Vt="";kn.key==="1"&&(Vt=jn("\u6DA6\u8272")),kn.key==="2"&&(Vt=jn("\u6269\u5199")),kn.key==="3"&&(Vt=jn("\u7F29\u5199")),an(),Zt(!0),Ot(Vt)},Ut=()=>{const kn=In.splice(In.length-2),{text:Vt}=(kn==null?void 0:kn[0])||{};an(),Zt(!0),Ot(Vt,In)},yi=At||Zn,Vi=(qe==null?void 0:qe.trim())==="";return Wt?oe.createElement(Ce.Z,{open:Vi&&!yi&&(ht||!it),overlayStyle:{minWidth:200},menu:{items:bn,onClick:Kn}},oe.createElement(Be,{position:rn},oe.createElement("div",{className:ot.wrap},Le===2&&oe.createElement(oe.Fragment,null,oe.createElement("div",{className:ot.chatContainer},Pn&&oe.createElement("div",{className:ot.loadingWrp},oe.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),oe.createElement("div",{className:"ai-loading"})),it&&oe.createElement(ze.Z,{cancelIndex:It,streamingStatus:At,loadImage:!1,onFinish:()=>Ne(void 0,null,function*(){Gt(0),setTimeout(()=>Ft(!1),0)}),value:it})),oe.createElement("div",{className:ot.btnContainer},oe.createElement("div",{onClick:()=>Xt(!0,it),className:ot.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),oe.createElement("div",{onClick:()=>Xt(!1,it),className:ot.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),oe.createElement(Je.CopyToClipboard,{text:it,onCopy:()=>ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement(Ie.Z,{title:"\u590D\u5236"},oe.createElement("div",{className:ot.btn,style:{marginLeft:"auto"}},oe.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),oe.createElement(Ie.Z,{title:"\u91CD\u65B0\u751F\u6210"},oe.createElement("div",{onClick:Ut,className:ot.btn},oe.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),oe.createElement(Ie.Z,{title:"\u5220\u9664"},oe.createElement("div",{onClick:()=>{Ge(1),an(),Dn([])},className:ot.btn},oe.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),oe.createElement("div",{className:ot.inputContainer},oe.createElement(He.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:qe,bordered:!1,onFocus:()=>on(!0),onBlur:()=>setTimeout(()=>on(!1),300),onChange:Mn,onPressEnter:un,onCompositionStart:()=>fn.current=!0,onCompositionEnd:()=>fn.current=!1}),Zn?oe.createElement("div",{className:`iconfont icon-tingzhihuida ${ot.cancelBtn}`,onClick:Vn}):oe.createElement(Te.ZP,{className:Vi?ot.sendBtnDisabled:ot.sendBtn,icon:oe.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:yi,onClick:Kt}))))):oe.createElement(oe.Fragment,null)},Ye={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Qe=Object.defineProperty,lt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,vt=(Wt,rn,Tt)=>rn in Wt?Qe(Wt,rn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Wt[rn]=Tt,St=(Wt,rn)=>{for(var Tt in rn||(rn={}))nt.call(rn,Tt)&&vt(Wt,Tt,rn[Tt]);if(lt)for(var Tt of lt(rn))yt.call(rn,Tt)&&vt(Wt,Tt,rn[Tt]);return Wt};const Lt=Wt=>React.createElement("svg",St({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Wt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",cn=(0,oe.forwardRef)(({initialContent:Wt,onButtonClick:rn},Tt)=>{const[Xt,nn]=(0,oe.useState)(null),[Nn,Rt]=(0,oe.useState)(null),[At,Zt]=(0,oe.useState)(""),[In,Dn]=(0,oe.useState)(null),qe=Tt,Oe=An=>{const Zn=document.elementFromPoint(10,An),Ft=document.createRange();let It=null;const Gt=document.createTreeWalker(qe.current,NodeFilter.SHOW_TEXT,{acceptNode:Kt=>{const un=document.createRange();un.selectNodeContents(Kt);const Vn=un.getBoundingClientRect();return Vn.top<=An&&Vn.bottom>=An?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let fn="",Pn,an,Ot=null,Mn=null,Ht=null;for(;Pn=Gt.nextNode();){Pn.parentNode.getAttribute("data-select")==="disabled"&&(an=!0),fn+=Pn.textContent,Mn||(Mn=Pn),Ht=Pn;const Kt=document.createRange();Kt.selectNodeContents(Pn);const un=Kt.getBoundingClientRect();Ot===null&&(Ot=un.top)}if(Mn&&Ht&&!an){const Kt=document.createRange();Kt.setStart(Mn,0),Kt.setEnd(Ht,Ht.textContent.length),Dn(Kt)}else Dn(null);return Rt(Ot-1),an?"":fn.trim()};function Le(An){for(;An.parentElement&&An.parentElement.tagName.toLowerCase()!=="section";){var Zn=window.getComputedStyle(An.parentElement);if(Zn.pointerEvents==="none")return!0;An=An.parentElement}return!1}const Ge=An=>{var Zn,Ft;if(Le(An.target)){Rt(-1e6);return}if(((Ft=(Zn=document.getSelection())==null?void 0:Zn.toString)==null?void 0:Ft.call(Zn))!==""){Rt(-1e6);return}const It=Oe(An.clientY);if((It==null?void 0:It.trim())===""){Rt(-1e6);return}const Gt=qe.current.getBoundingClientRect();nn(Gt.left-30),Zt(It)},it=()=>{},De=An=>{rn&&At&&rn(At,An.clientX,An.clientY,In)},ht=()=>{if(In){const An=window.getSelection();An.removeAllRanges(),An.addRange(In)}},on=()=>{window.getSelection().removeAllRanges()};return(0,oe.useEffect)(()=>{const An=qe.current;return An.addEventListener("mousemove",Ge),An.addEventListener("mouseleave",it),()=>{An.removeEventListener("mousemove",Ge),An.removeEventListener("mouseleave",it),on()}},[Wt]),oe.createElement("div",{className:Ye["hover-line-container2"]},Nn!==null&&oe.createElement("div",{className:Ye["line-button-container"],style:{top:Nn,left:Xt},onMouseEnter:()=>{ht()},onMouseLeave:()=>{on(),Rt(null),Zt(""),Dn(null)}},oe.createElement("div",{className:Ye.button,onClick:De},oe.createElement("img",{src:jt}),oe.createElement("span",null,"AI\u6539\u5199"))))}),pt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},at=({nodeRef:Wt,noRestrictModal:rn})=>{const[Tt,Xt]=(0,oe.useState)(null),[nn,Nn]=(0,oe.useState)(null),[Rt,At]=(0,oe.useState)(!1),[Zt,In]=(0,oe.useState)(null),[Dn,qe]=(0,oe.useState)(!1),[Oe,Le]=(0,oe.useState)(!1),Ge=Wt,it=(0,oe.useRef)(null),De=(0,oe.useRef)(null),[ht,on]=(0,oe.useState)("");(0,oe.useEffect)(()=>{Tt!=null&&Tt.toString()&&on(Tt==null?void 0:Tt.toString())},[Tt==null?void 0:Tt.toString()]);const An=()=>{const Gt=window.getSelection(),fn=Ge.current.scrollTop,Pn=Ge.current.getBoundingClientRect();if(Gt.rangeCount>0&&Gt.toString().length>0){const an=Gt.getRangeAt(0);Xt(an.cloneRange());const Ot=an.getBoundingClientRect(),Mn=40;let Ht=Ot.top+fn-5+Mn;Ht<fn&&(Ht=Ot.bottom-Pn.top+fn+5);const Kt=Ge.current.scrollHeight-Mn;Ht=Math.min(Math.max(Ht,fn),Kt),Nn({top:Ht+6,left:Ot.left})}else Xt(null),Nn(null),At(!1);Zn(Gt)},Zn=Gt=>{if(!Gt||Gt.rangeCount===0){qe(!1);return}const Pn=Gt.getRangeAt(0).getBoundingClientRect(),an=window.getComputedStyle(Ge.current),Ot=parseInt(an.lineHeight),Mn=parseInt(an.paddingTop),Ht=Ge.current.scrollTop,Kt=Ge.current.getBoundingClientRect(),un=Pn.top-Kt.top+Ht,Vn=Math.floor((un-Mn)/Ot),bn=Mn+Vn*Ot-Ht;In(bn),qe(!0)},Ft=Gt=>{Ge.current&&!Ge.current.contains(Gt.target)&&Le(!1)};(0,oe.useEffect)(()=>{const Gt=Ge.current;return Gt.addEventListener("scroll",An),Gt.addEventListener("input",An),Gt.addEventListener("click",An),Gt.addEventListener("mouseup",An),Gt.addEventListener("keyup",An),Gt.addEventListener("click",An),document.addEventListener("mousedown",Ft),()=>{Gt.removeEventListener("scroll",An),Gt.removeEventListener("input",An),Gt.removeEventListener("click",An),Gt.removeEventListener("mouseup",An),Gt.removeEventListener("keyup",An),Gt.removeEventListener("click",An),document.removeEventListener("mousedown",Ft)}},[]);const It=(Gt=!0,fn)=>{if(!Tt)return;const Pn=De.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),an=Tt.cloneRange(),Ot=window.getSelection();if(Ot.removeAllRanges(),Ot.addRange(an),Gt){an.deleteContents();const Mn=document.createElement("div");Mn.innerHTML=Pn;const Ht=Array.from(Mn.childNodes);for(;Ht.length>0;)an.insertNode(Ht.pop())}else{an.collapse(!1);const Mn=document.createElement("div");Mn.innerHTML=" "+Pn;const Ht=Array.from(Mn.childNodes);for(;Ht.length>0;)an.insertNode(Ht.pop())}Ot.removeAllRanges(),Xt(null),At(!1),Nn(null)};return oe.createElement("section",{ref:De},nn&&oe.createElement("div",{ref:it,className:pt.toolbar,style:{top:nn==null?void 0:nn.top,left:nn==null?void 0:nn.left}},oe.createElement("div",{className:pt.button,onClick:()=>At(!0)},oe.createElement("img",{src:jt}),oe.createElement("span",null,"AI\u6539\u5199"))),oe.createElement(tt,{key:JSON.stringify(nn),noRestrictModal:rn,visible:Rt,position:nn,selectText:ht,applyRefinedText:It,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),Ge.current&&oe.createElement(cn,{ref:Ge,onButtonClick:(Gt,fn,Pn,an)=>{Xt(an),At(!0),on(Gt),Nn({left:fn,top:Pn+20})}}))}},85020:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return He}});var oe=ae(59301),Ce=ae(62957),ke={num:"num___VQiqB"},He=({visible:Te,usedCount:ze,totalCount:ot,onOk:Ke,onCancel:Be})=>{const gt=()=>ze>0?oe.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",ot,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:ke.num},ze),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):oe.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",ot,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:ke.num},ze),"\u6B21\uFF09\u3002");return oe.createElement(Ce.default,{centered:!0,open:Te,title:"\u63D0\u793A",width:620,onCancel:Be,onOk:Ke,footer:ze>0?void 0:null},gt())}},25872:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return he},Q:function(){return te}});var oe=ae(59301),Ce={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},ke=ae(85788),Ie=ae(346),He=ae(10946),Te=ae(74368),ze=ae(25395),ot=ae(74549),Ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZxZPD8E4qtPkef76xY0CnkWvAAbxN38ejUXHBjZIO4z9betGi4YvwmIK/Or4IkD2vwCYYdeFAJhhwLThCoACYIYrkOHhixYoAGa4AiaHr20R2lG89ri2et5Rv2iBAqDJCmS4O9ECBUAuBUQXyiWX9YwFQOsx4YpIAOSSy3rGAqD1mHBFJAByyWU9YwHQeky4IhIAueSynrEAaD0mXBEJgFxyWc9YALQeE66IBEAuuaxnLABajwlXRAIgl1zWMxYArceEKyIBkEsu6xkLgNZjwhWRqQB7L85A76UZuDWmQDCscAWy1o3tsgQlxRI0bM+Fhh36X0QxBSDL0X/rwzH4ciS41jmYcv4PldnhhR8W63onxRSAXf8Q8Ewhp3LCIHoPJ95HxTBA1m3+9aNxs+MX/gDgJweKEnanhgEe+9sYDN9c7DrFvhHJXXvx9o2oKLXDyz9euRUaBtjWdWvJgEXsG5EcQFZKu28EG9i0e0tWdGgYoNaB2DcieYCsJO/7mQKgMb1NLy0Ami7p6joUAFdXb9NrEwBNl3R1HQqAq6u36bVZHqA2QLMVyPRRsACYou3v2CfIeLdDTebiFABNANj4yuWC0MzkA0TB65Ek5SCg7PGADQilCFMKVA4pNHxXxngSETyxqRLderu9ypSVfAEwSYCRVZCp/E2IQAVFhG8LdUIpSGhMUvDIM5VVI+3tiCTT+sREPgnVFtYgd9IQ3QgYcW+Aqa2SAszIDvzF2d9X3Uimy7V8C0xC45QUYfe0xqOBTUEgOzHFktmVUIImc9Fk/+kT+6Z4fBsGWNMceAZTGjuhRB+7y8S10OfbhuyXR0P1mOD74omLgBAE6H8E5O9kp3SnJFQ4OwqjoS13viJfrd/isCtO5xwNOjGR71NAKcUSdi7nx2aD85+97rmmFyIPwPgfu2v2/wAoFEUrTPS5yUwDeOhFf963NukRipR194iKYFoGuPpgmTTCMyg5+IuBoulp2KQQXBEPlE2WrvQcr/pcD0S9AJf93OSj3s8fnIOQS09l8WysPA9j8MZkug8wsqtjp1QJS1S+9Gxl9TUjA5DGVz4rCN/N2Umxai/4hYqQhK6dO149lOi+aGSeHPngK7s3eJp8ezCO370kAmtVgKzb/GoY9t7T8thHUnGor6+jXvXl1ERnufLxSCMgwWrtoAhT+OLcCfellUonCzD2yWXmnH30fPz6eG0yEK0IMHJRtvj2aO95SIKRLXcu+d9++wXTU+jqWs4VUyrXAVna2m0In+3prL61HMRkAC756HnUMTvpvc0XKudQqJIAylcPbFa6gqwIsP5IYAvB9PuabvOb/i5PX6IuzUhbZF3q/Kxjn2aUGyooLzh1qn3zXDzfegGuuO0AT9BGN6rgqSsZWzbPm53KeUwtIqL0zuEKd7eR+53eWBpeHipV5pUGtb2EyXDvGx6fHoC8DYJ7Imt1gHUt/lqqQNliz4LC5XLxR+90bDTtnpcI5iNHfdvCBG1X231PWvfxBx1bJ7RljeqZVQAjy2PjuY+rBxNspNbdtevrRKKbebytjeK/3wg8hgBiKddEITd9b3p6BcAVlK5tHtwJlDwUa30AMz8qd51cja5TG9ael3xl8yFUG/udUFqyLu/9f7/28Lza1vItUO9Nejkueu8Jkb2fvENPqhemkST5+zqqrpvZuvT6YvE0HPUdIBTnL5YJX+jvqvtSAIyjYl3LuUKq2PZHD7HlsfzymndPtaOwXtHNtqtpHXgYh/GOWEyU3uk7UfOpABhH6Vpv30MA8s7oIYLJTd8b995zzIa0kr+9TRfzZ9H8wcWLCpMtkxf+o56Hii50QZ2anw00YAmXRsWy28ggz6JyqsB6vP7H1YMZB0inz3RVfRetz/IAUyWM1q/HG9iPgBZGf5dDc91n/9T47WrVv1w9NUeHGjBRYhcWBSUw0FUbGxULgAvK1Xr9T0XSIBb+tpZL7/I8YUgV6LqWQDVV6KZF/9KF/q6q2EBGAAQANuKraw4cVkN4rtz1z3RMH7QXQk3r5w/jcCg2kKGydGVA9ahJAIy2wCO+w+oJvN7pR6paXtTvI83+zWEKVbGBjIKu9b3pGhT3QI3ydd6BZylgHP3ZKi1Qu6xGZNtF3/FdlwVALcCmwUPqSXzx+pIP33u1dDrVLSyR/3qvv4oAbI7aSQ7s6z1WPSwAapSrOTLwqPp5ptMGPd2vu28nEjjVxz1NgT0I0dhrt2bHlTWL2dorHUnocl+H62KqAa3kf2GD6acQonLUrsAhnTx1rOquWXFlDcCGlwcrlHlSExMGwXh/p/sTs4RKxs++nwfWzwTpvmhZStDswB9dHyTja7kyWQOQ5cBcuR4+pB6JFq+HD9971Z22+2Bt86ALKHkwKj4GuHquyz0kAC6jQG2zfzdQuD+VgukV/2DbSXli+L4n1d0nkpxn+jq2j+n1occua1ogO9mGI4MVCl7sRgkiyoacdf/VPoPTI4xRm/om/3aCYFvMD6HB5yrd75u9uJBygEafB2qFXGmCHu9JOMtE6+tw9xsFwlOeZQaEptY9RlQZ7zKCobOd7qs8fvTYZhXASCvUDmbYAmmC1D49Qum1iZdny16ASVVmQNYBjAzdmwb3I0wLYqM/isL2vJnTPa/tntQLIlk7T+vQLhRWtqrLO2y0/8zrNSPJ+lypXNYBZCe7t+nT/DmUt1+9tMaG8NgW7DYzI1srrKdpsB4hskH9OyJw+9wJ19lU5aOmHGAqrjo9Pne/NLApGMLVS2wJDeY68dlP/+C6o8eHXpvI05CjQzvUCVWsLEF4rqis6mQq0zqyFiATsLF1aFdI051hhBQM9ELPG65rZrSKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",Be=ae(92310),gt=ae.n(Be),Je=ae(6767),wt=ae(2235),Fe=(ue,fe,me)=>new Promise((Ee,Pe)=>{var Ne=Ye=>{try{tt(me.next(Ye))}catch(Qe){Pe(Qe)}},We=Ye=>{try{tt(me.throw(Ye))}catch(Qe){Pe(Qe)}},tt=Ye=>Ye.done?Ee(Ye.value):Promise.resolve(Ye.value).then(Ne,We);tt((me=me.apply(ue,fe)).next())});const te={contentRef:{current:null},value:null,status:!1,open:()=>Fe(void 0,null,function*(){}),close:()=>{}};var he=({className:ue,style:fe,onChange:me,onSuccess:Ee,onCancel:Pe,onError:Ne,fetchUrl:We,noRestrictModal:tt=()=>{},showEditableToolbar:Ye,bottomOffset:Qe=110,loadingText:lt,showEmptyData:nt=!0,onStatusChange:yt,stringTransformer:vt,bottomContainerNode:St})=>{const[Lt,jt]=(0,oe.useState)(!1),[Bt,cn]=(0,oe.useState)(""),[pt,ut]=(0,oe.useState)(0),[at,Wt]=(0,oe.useState)(!1),rn=(0,oe.useRef)(null),Tt=(0,oe.useRef)(null),Xt=(0,oe.useRef)(null),nn=(0,oe.useRef)(null),Nn=(0,ze.Z)({scrollBoxRef:nn,bottomInspectRef:Xt,contentRef:Tt,status:at,bottomOffset:Qe}),Rt=Lt||at;(0,oe.useEffect)(()=>{me==null||me(Bt)},[Bt]);const[At,Zt]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{yt==null||yt({contentRef:Tt,status:Rt,value:Bt,open:In,close:Dn})},[Rt,Bt]);const In=Oe=>Fe(void 0,null,function*(){jt(!0),cn(""),Zt([]),ut(0);const Le=We;Oe!=null&&Oe.fetchUrl&&delete Oe.fetchUrl,rn.current=new ke.Z(`${Ie.Z.API_SERVER}${Le}`,Oe),yield new Promise((Ge,it)=>{rn.current.on("data",De=>{var ht;let{chunk:{content:on,type:An}}=De;Wt(!0),An==="text"&&cn(Zn=>vt?vt(Zn+on):Zn+on),An==="knowledge"&&(console.log("---knowledge-",De==null?void 0:De.chunk),Zt((ht=De==null?void 0:De.chunk)==null?void 0:ht.content))}),rn.current.on("done",()=>{Ge()}),rn.current.on("error",De=>{Object.prototype.toString.call(De)==="[object Object]"&&De.status===-1&&Je.ZP.warning((De==null?void 0:De.message)||""),Ge(),Ne==null||Ne(De)}),rn.current.on("cancelled",()=>{Ge(),Pe==null||Pe()}),rn.current.startStream()}),jt(!1)}),Dn=()=>{var Oe,Le;ut(1),(Le=(Oe=rn.current)==null?void 0:Oe.cancelRequest)==null||Le.call(Oe),jt(!1),Wt(!1)},qe=(0,oe.useMemo)(()=>Tt.current?oe.createElement(Te.Z,{noRestrictModal:tt,nodeRef:Tt}):oe.createElement(oe.Fragment,null),[Tt.current]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:gt()(Ce.container,ue),style:fe,ref:nn},oe.createElement("div",{ref:Tt,className:Ce.liWrap,contentEditable:!Rt},Bt&&oe.createElement(He.Z,{cancelIndex:pt,streamingStatus:Lt,loadImage:!1,onFinish:()=>Fe(void 0,null,function*(){ut(0),setTimeout(()=>Wt(!1),0),Ee==null||Ee(Bt)}),value:Bt}),(At==null?void 0:At.length)>0&&oe.createElement(wt.Z,{Filelist:At})),!Bt&&!Rt&&oe.createElement("div",{className:Ce.imgBox},oe.createElement("img",{width:56,src:Ke}),oe.createElement("span",null,"\u9884\u89C8\u533A")),nt&&Rt&&oe.createElement(ot.Z,{text:lt}),!Nn&&oe.createElement("div",{className:Ce.backBottom,onClick:()=>{nn.current.scrollTop=nn.current.scrollHeight}},oe.createElement("i",{className:"iconfont icon-huidaodibu"})),oe.createElement("div",{ref:Xt}),St),!Rt&&Ye&&qe)}},74549:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Ie}});var oe=ae(59301),Ce={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Ie=({text:He})=>oe.createElement("div",null,oe.createElement("div",{className:Ce.loading},oe.createElement("div",{className:Ce.dot}),oe.createElement("div",{className:Ce.dot}),oe.createElement("div",{className:Ce.dot})),!!He&&oe.createElement("div",{className:"mt5"},He))},72409:function(_e,be,ae){"use strict";ae.d(be,{o:function(){return oe}});const oe=Ce=>(Ce=Ce.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Ce=Ce.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
`),Ce)},38518:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return ue}});var oe=ae(59301),Ce=ae(18287),ke={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Ie=ae(73631),He=ae(5623),Te=ae(46722),ze=Object.defineProperty,ot=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,wt=(fe,me,Ee)=>me in fe?ze(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):fe[me]=Ee,Fe=(fe,me)=>{for(var Ee in me||(me={}))gt.call(me,Ee)&&wt(fe,Ee,me[Ee]);if(Be)for(var Ee of Be(me))Je.call(me,Ee)&&wt(fe,Ee,me[Ee]);return fe},te=(fe,me)=>ot(fe,Ke(me)),ee=(fe,me,Ee)=>new Promise((Pe,Ne)=>{var We=Qe=>{try{Ye(Ee.next(Qe))}catch(lt){Ne(lt)}},tt=Qe=>{try{Ye(Ee.throw(Qe))}catch(lt){Ne(lt)}},Ye=Qe=>Qe.done?Pe(Qe.value):Promise.resolve(Qe.value).then(We,tt);Ye((Ee=Ee.apply(fe,me)).next())}),ue=({value:fe,onChange:me,scrollId:Ee})=>{const[Pe,Ne]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{We()},[]);const We=()=>ee(void 0,null,function*(){const yt=yield(0,Te.NZ)({});if(yt!=null&&yt.data){const vt=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:oe.createElement("img",{src:Ie,className:ke.folderIcon}),isLeaf:!1,children:tt(yt.data||[])}];Ne(vt)}}),tt=yt=>yt.map(vt=>({title:vt.name,key:vt.group_id,icon:oe.createElement("img",{src:Ie,className:ke.folderIcon}),isLeaf:vt.children.length===0,children:tt(vt.children)})),Ye=(yt,vt,St)=>yt.map(Lt=>Lt.key===vt?Fe(Fe({},Lt),St):Lt.children?te(Fe({},Lt),{children:Ye(Lt.children,vt,St)}):Lt),Qe=(yt,vt,St)=>yt.map(Lt=>{if(Lt.key===vt)return te(Fe({},Lt),{icon:St?oe.createElement("img",{src:He,className:ke.folderIcon}):oe.createElement("img",{src:Ie,className:ke.folderIcon})});if(Lt.children)return te(Fe({},Lt),{children:Qe(Lt.children,vt,St)})}),lt=(yt,vt)=>{Ne(St=>Qe(St,vt.node.key,vt.expanded))},nt=fe?{selectedKeys:fe,defaultExpandedKeys:fe}:{};return Pe.length>0&&oe.createElement("div",{id:Ee||""},oe.createElement(Ce.default,Fe({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Pe,className:ke.folderWrapper,onSelect:me,onExpand:lt},nt)))}},9507:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return gt}});var oe=ae(59301),Ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ke=ae(92310),Ie=ae.n(ke),He=ae(29787),Te=ae(2859),ze=ae(38986),ot=ae(51257),Ke=(Je,wt,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(Ee){ee(Ee)}},ue=me=>{try{fe(Fe.throw(me))}catch(Ee){ee(Ee)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply(Je,wt)).next())}),gt=({data:Je,className:wt,fullWidth:Fe,style:te={},onClose:ee,onOk:he,showFullTools:ue,noAssociationId:fe})=>{const me=(0,oe.useRef)(null),Ee=(0,oe.useRef)(null),Pe=(0,oe.useRef)(null),Ne=(0,oe.useRef)(null),[We,tt]=(0,oe.useState)(!1),[Ye,Qe]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(Pe.current||(Pe.current=document.createElement("style"),document.head.appendChild(Pe.current)),Je!=null&&Je.visible?(document.body.setAttribute("data-custom","y-hidden"),Pe.current.innerHTML=" html { overflow-y: hidden; }",Je!=null&&Je.src&&lt()):(document.body.removeAttribute("data-custom"),Pe.current&&(document.head.removeChild(Pe.current),Pe.current=null)),()=>{document.body.removeAttribute("data-custom"),Pe.current&&(document.head.removeChild(Pe.current),Pe.current=null)}),[Je==null?void 0:Je.visible]);const lt=()=>Ke(void 0,null,function*(){tt(!0),Qe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const St=yield(0,ot.ZJ)(Je==null?void 0:Je.src);me.current.src="",me.current.src=St,me.current.onload=function(){vt()},tt(!1),Qe("")}),nt=St=>Ke(void 0,null,function*(){tt(!0),Qe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Lt=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Je.title,file:St.dataUrl}});Lt!=null&&Lt.id&&!fe?(yield(0,ze.ZP)(`/api/attachments/${Je.id}/add_subitem.json`,{method:"post",body:{subitem_id:Lt==null?void 0:Lt.id,settings:JSON.stringify(St.state)}})).status===0&&he():Lt!=null&&Lt.id&&he(Lt),tt(!1),Qe("")}),yt=()=>{const St=document.querySelector('a[href="https://markerjs.com/"]');St&&St.parentNode&&(St.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(jt=>{const Bt=document.querySelector(jt.name);Bt&&Bt.setAttribute("title",jt.title)})},vt=()=>{Ee.current=new Te.hP(me.current),Ee.current.targetRoot=Ne.current,Ee.current.addEventListener("render",nt),Ee.current.addEventListener("beforeclose",ee),ue&&(Ee.current.availableMarkerTypes=Ee.current.ALL_MARKER_TYPES,Ee.current.uiStyleSettings.redoButtonVisible=!0,Ee.current.uiStyleSettings.notesButtonVisible=!0,Ee.current.uiStyleSettings.zoomButtonVisible=!0,Ee.current.uiStyleSettings.zoomOutButtonVisible=!0,Ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ee.current.uiStyleSettings,Ee.current.show(),Je!=null&&Je.snapshotData&&Ee.current.restoreState(Je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),yt()},300)};return oe.createElement(oe.Fragment,null,(Je==null?void 0:Je.visible)&&oe.createElement(He.Z,{spinning:We,tip:Ye,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:Ne,className:Ie()(Ce.imageDimensions,wt,Fe?Ce.fullWidth:""),style:te},oe.createElement("img",{className:Ce.img,ref:me}))))}},50043:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Le},$:function(){return Oe}});var oe=ae(59301),Ce={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},ke=ae(92310),Ie=ae.n(ke),He=ae(28284),Te=ae(6767),ze=ae(62957),ot=ae(71051),Ke=ae(77019),Be=ae(62673),gt=ae(75727),Je=ae(14566),wt=ae(99571),Fe=ae(60242),te=ae(17149),ee=ae(37568),he=ae(9148),ue=ae(346),fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjKW3BnT+CKxKh66L4P4WWu7ySVj1sh63GwNN0u36IwVQMk6HPWMHVKmmeceLoOR9exnpFC2nHs2F/LDxqwi5PBIdJTA6ASClbE4XOHsIhjsR3DIByhboCPVYZg2qvAHST21tlA8oA9pnQYuemqwOff5TcPMqpK2Ae5ra9Wd/hvU9ocZDkLbW0ktz4PBynU1+OgZnzhMZQo5quAhBz/DqNQdy7JHEnt4+HbZ+BqMcwJs+gR/nQ62W0EttFHxrB8PR7+xlYq78Zl2h4wQrt6oHnD8MfXaCV8XSb/wL+W2hYUd4fpKlr+sOFw7q58P3VQhosZAjGhwEmkTfE2D8Uavg4GZo+oKenz8O0zrCBw6gb8dD6Xyo3RJ6r7DrDnwD54/a1Di2HU7vhZoNofd6K7fpA7hwFF5ZFO/EpanQJBWe6Kd516/Awvb6bJnLwgQBcUjIofUuI4R+NNVnHrwcB9C3n8Lj6XBvAy0zMw3eLrSbbxwPu+ZBnVbQZ2XiyCrq9xNhz1zNH7wbbquux2Xz4eJJeG6UnitwdzfU46Kh0KwL1H9Oz0/uhA197YWgaPbmrBByyIPSvjuBLSqEnx5zDJ4EwoNOQzVt2xfwTF/L/+Zj2DkP6raCvqtuDWjzRNg1RxvQfR7Uf1rLHi+Gf87AI130mduUDR2yNa9kJjTvCtVr6fnuGbB7mlOduO+YqBByUF2diObKNmGc/Js1bEMe7F0DWdu03MU/ocYDlr/uIyhWgFrCAOfh/mEOnNpnn4LTvwQpKOCFYdCuv9bxzzm4dhlq1oczB6FgIPTbpHmnyqD243avgr5wYoc9N1G7DwnZr450QmbDN/WEY3AefDcVBq+ARk/GR2DtONgxF+qlwCAH0KIBsH9jtO5Tq5XTmnWA12bE6ypbBkUfwjvFcEfNKF9Fb2pbuF4RfYP8gCi93mIh36qVIOWAWb9bZV/nwsYp0K4H9MyNN6JwHGybAw+lwBDnbN24BpU3rfy/lyG3nZ7XSIbMHfG61oyAn1ZD91nwcHARGam/DsDcrvFgTFYleRlCvp4s42oshfZLVdgGX+FEKJoC1apDbhlUvT1qyOps2PIVNEiB95z3Itbcq5cgO8WmYFYx3OWkrpL/vCOc+xWeHQgvBmfW6NmzBDaO0bNInel3AOXUqN5cyN7J0q+Hgqon/M//w5qzeiJsmKyV9J8JbVKjpq4YqwHVT4HMr+O9bihXL8LoVrZIfWM2PNrJyl/5G8a31oAbt4c3F8Q4bhjsW2Ova5O+frpVSRdZ+ws0IPXFgjKqDD3OKzFecpWHVXmg5Fbthks36/1/fzP3OrZVgVtv2v4rT4w5rIvTSIRcEIFO05qEkXPpt6q+jUyiZtA13G0RfFnTbsS0DuZtDPU6fVmSyEP0Gimyg/bBP0Mm3QwgN/3c6CUaxwKMeNptCmPaEZ/ldr5BKiRsJhN0u1COl5QpcsqjDV4IyM3WoESKO1eJjHdTMlGE41LVaVHiuuDA8EiEw7a/AsEpPK8UZCFN7ysU/ffEteD/A0+36M8YCYIrAAAAAElFTkSuQmCC",me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAACbJJREFUeF7tnVtMHNcZx79vxruLITZUceNbwEpr8KXAwi6+pm3qKoraqhepVfvWB3sJqKn60Mf2hfLSPvYhquVgcKTmrVIrpbdIURXbTWPMZYHl4osSy7FpiO2QFBuDze7OOdUh3t1hvLczZ2BmzMcbO9853zf/33xnvpk5MwfB5h/nHNs6p2ohZWwH5NUcMWSzq3XZjCEaGvD5Ch64+V7vvpuIyO0IgXYafaPresXd6flWRL7FTntqs1IBxtinNXU1I+e6n3soq400QJF5kdjEYYInK3VxewFx9ExLv2wmSgOMdkzWccMIOxs+9SYUqIDA+IW+/Tdk1JAHeDxxiGvwTMYJ6nAnWLUw3v/7ow9kHK932yO/vLAxuVDVzI2cloAwN9IbfldGG3mAJ8ZeMhcsoc0L/yJ4MpLnbAXEpXtVL2Z+EYXNWG/zP2V6kwYYiSW+Z3Yw0hf+m4xDsl2pgKqeBNDlI4oAugxA1T0BVFXQ5fYE0GUAqu4JoKqCLrcngC4DUHVPAFUVdLk9AXQZgKp7AqiqoMvtCaDLAFTdE0BVBV1uTwBdBqDqngCqKuhyewLoMgBV9wRQVUGX2xNAlwGouieAqgq63N4xgDTP02WSJdwXmke6/ESe5nl6G541OvM8UqR5nv6Cl4k2O4+U5nn6E6CIWswjxahlnueeukr40Qs1sKnSvzv2JEY+vwjw5/NzcPXmYm73EOYwapnn+euf7iB4Hj0CBMTfvjGTjU4UNmgtY3/XucOj4VNYQoFfvZYDKP4ngD47Lgigz4BZwyWABNDnCvg8fMpAAuhzBRwO35oR1ireut3qXrbqpwwkgA4r4PPuKAMJoJQCNIRKyeU9YwLoPSZSERFAKbm8Z0wAvcdEKiICKCWX94wJoPeYSEVEAKXk8p4xAfQeE6mICKCUXN4zJoDeYyIVEQGUkst7xgTQe0ykIiKAUnJ5z5gAeo+JVEQEUEou7xkTQO8xkYrIUYBDVxZh6Ooi3J41IJk2pAJZ78bBDTps3aLDgT2VcGBv+S+iOAJQzNH/0zuz8MFHyfXOwZH9370zCD/55pay3klxBGDf3wmeI+RMnQiIse+WXkdFGaAYNv9yfs7p+Kk/APjhCzUlh1NlgCffnIXpW7mhk9aNsHfs5Vs3onZbEF75QfEsVAbY1Xd7RcFC60bYAyhaWdeNEIVNd2xr0Q6VAVo7oHUj7AMULWXfzySAano73poAOi7p2nZIANdWb8e9EUDHJV3bDgng2urtuDfPA7QG6LQCfq+CCaDPl78jgARw5YKOpV75lb2QpyG0+EnD8xno9DnvSeuPAPqcqDLAlvbx72ic6xkdSn3sTnYI9bm+qx6+DMD8H7trT3wNONRkIi31uUkC6CzTcgEW/Nzk0dilXQ8h1Ww3LL9eh337F++HPllM7meQ3soZpnnQuDF6quUDROR2tbDTTqXIW/7gq/jkcuuJsSOapj1tJwA/AhTP4R7eqzqKACtmE3FufPz92taR7m5kdrSw08YuwOwnl4VT8dHzuZtzETsQ/QawELyM+GsN0Q7AFR89zwXO8fn2y3UPMVXHADeZC5tiR5afAOaDh8AYB00z7+NaQiwXYNFlB2RSX3WhChlfTtrmhafjhwDJK09vDgRn5yBiLubWCqKqnsvrRsj8qTqU8eWUbT54GsD14b7wZMZHtGM4wFng8FpDVNXziQcoqs1bi4tfNRcsVnhuQiSAJdK0LTbVyiD9bMYMdfww3tM8UaiZyERIh45xZKG1KGw8D7Dck3QhQVWLpEgs8S0ACIj+RcECuvF2vKctVRjg+F5u8Hrr9tU6JxLAEhnYenz8RdT4xozZliS88/Yb4YV8zQ6+PNaQZrinUJerAZEAlgDY0nmpXkun9mbNDJjDYOqiNQsjsfhugA37MnYaosG1DaOcpXavZmFDAEsA7Ori2l+nJyOIbHshiG3Hx7/ENP6VzHZxzaVrocF4z57ZQtXpSF9r3Inbbp4H6NSlgEo/AuKbN8aimq5ts0IMaPrOZEprMsMLhgIDg3/Y92mp6tQJiASwTLJ5MxFhAThU5eAxI5hMDgz+8VAW3mpDJIBlAhRmeTPxUXvOMV2B2kB/X+NnxS4xrBf7gDgTP900Ync4JYASAItB5JWVF0dfrf+kVHf5zokqEAlgKcXzbM+Xicj5/zbVhi+e68Z0qS6dhEgAS6ldYLtXIBJAmwALDaduZaLd3Xjib2aXEsYrmVgqzkLb1z3AbCbOjEU1lrtO9EsmEsBHh/ZyJipA7HiNB4aHxlc8T1SpTsvNSAJoUsqPEAmg5VD3G8RVB6j6PNA6lKg+HyxnaPITRAJY7DpR8Zw4NDhxBIFXZ10o3nbLFyoBLJKSTmSiFSLq2qV4T9O1ckaCcmwIYAmVHIeIsBA/3XzW7s1va7irDrCco8jrNp9DnIpqzMg+Tyz3OlG8unCgPdHCALMTqzg34qNnIjNO7DcBLFNFOxAFvIMdY2GDabVmNxqy+aHTLeedyEICWCbA3B2b8jKxELyMO9QDw/Ge/R9LuM9rSgAlFSwnE/PB01Cb1wEupzg7KFxyhvdGX28+L+n+MXMCaEPBYhDP/gYM67Ap4H1xY0X/W6/WL0XaJ5qBs13CrR7Sh4ZONt6yEULuykS2serzK1l/XrUvBFHT+X3zOc8MT+zLj7smg9dm0seAYZAD3h3ta/63yj5SBiqolw/iymIll3nm36Mdk3XcMMLitwBqgwO9TbfthkEA7Sr3qJ2A+I//JtoY4GOf2kW9ol/MLbW6EOfItljieY74BUCYG+kNv2s3DAJoVzlTOwHxrZnE7lRaqzNP4wfGub4hcL1qx/6r1rk20Y7hap4MfB10gIoADFw4Fb5jJxQCaEe1Am2Wq88TQ88aeqjePN8UOV8KBmGq/1TLR+ambbFEIwN4TtwUiJ9p+Y+dUKQBRk+MvcQRs69e0UfPH5ddgDz88vjONOP1HPGpjAXnOFtdoU2cO9l4X/xmfpWt3GmNVm/yAI8nDnENnsl0RMsOFM4bAfLozxI7kkloyIJknIOuX9u8c/b9c93H0q2xkV0IerMG+mfDfY3vyWahPEBTBSXrzE/2Tj53FCAjsavbde1BA+PaJqEDZ/ggqPMrRiBUxZJLDeK3QkVPMd2kAX4ezMRhRF56nRg/EbPE6iTA3BDKsa3z8jaNpxsMxjc/NhzqcCfeEx6QkU0aoOhcfFfm7vR865MMcTUAmkEe/PnU1vQSazA/8EXO78fPtJxddYDLQ4C4lumcqoWUsR2QV5sLG5kAvGq7mgDN+3zglcltfCn1ZcbwKR30S0OvN03LaPJ/jAi5buoQkzIAAAAASUVORK5CYII=",Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51AzAXz4ah0vXZxZPD8E4qtPkef76xY0CnkWvAAbxN38ejUXHBjZIO4z9betGi4YvwmIK/Or4IkD2vwCYYdeFAJhhwLThCoACYIYrkOHhixYoAGa4AiaHr20R2lG89ri2et5Rv2iBAqDJCmS4O9ECBUAuBUQXyiWX9YwFQOsx4YpIAOSSy3rGAqD1mHBFJAByyWU9YwHQeky4IhIAueSynrEAaD0mXBEJgFxyWc9YALQeE66IBEAuuaxnLABajwlXRAIgl1zWMxYArceEKyIBkEsu6xkLgNZjwhWRqQB7L85A76UZuDWmQDCscAWy1o3tsgQlxRI0bM+Fhh36X0QxBSDL0X/rwzH4ciS41jmYcv4PldnhhR8W63onxRSAXf8Q8Ewhp3LCIHoPJ95HxTBA1m3+9aNxs+MX/gDgJweKEnanhgEe+9sYDN9c7DrFvhHJXXvx9o2oKLXDyz9euRUaBtjWdWvJgEXsG5EcQFZKu28EG9i0e0tWdGgYoNaB2DcieYCsJO/7mQKgMb1NLy0Ami7p6joUAFdXb9NrEwBNl3R1HQqAq6u36bVZHqA2QLMVyPRRsACYou3v2CfIeLdDTebiFABNANj4yuWC0MzkA0TB65Ek5SCg7PGADQilCFMKVA4pNHxXxngSETyxqRLderu9ypSVfAEwSYCRVZCp/E2IQAVFhG8LdUIpSGhMUvDIM5VVI+3tiCTT+sREPgnVFtYgd9IQ3QgYcW+Aqa2SAszIDvzF2d9X3Uimy7V8C0xC45QUYfe0xqOBTUEgOzHFktmVUIImc9Fk/+kT+6Z4fBsGWNMceAZTGjuhRB+7y8S10OfbhuyXR0P1mOD74omLgBAE6H8E5O9kp3SnJFQ4OwqjoS13viJfrd/isCtO5xwNOjGR71NAKcUSdi7nx2aD85+97rmmFyIPwPgfu2v2/wAoFEUrTPS5yUwDeOhFf963NukRipR194iKYFoGuPpgmTTCMyg5+IuBoulp2KQQXBEPlE2WrvQcr/pcD0S9AJf93OSj3s8fnIOQS09l8WysPA9j8MZkug8wsqtjp1QJS1S+9Gxl9TUjA5DGVz4rCN/N2Umxai/4hYqQhK6dO149lOi+aGSeHPngK7s3eJp8ezCO370kAmtVgKzb/GoY9t7T8thHUnGor6+jXvXl1ERnufLxSCMgwWrtoAhT+OLcCfellUonCzD2yWXmnH30fPz6eG0yEK0IMHJRtvj2aO95SIKRLXcu+d9++wXTU+jqWs4VUyrXAVna2m0In+3prL61HMRkAC756HnUMTvpvc0XKudQqJIAylcPbFa6gqwIsP5IYAvB9PuabvOb/i5PX6IuzUhbZF3q/Kxjn2aUGyooLzh1qn3zXDzfegGuuO0AT9BGN6rgqSsZWzbPm53KeUwtIqL0zuEKd7eR+53eWBpeHipV5pUGtb2EyXDvGx6fHoC8DYJ7Imt1gHUt/lqqQNliz4LC5XLxR+90bDTtnpcI5iNHfdvCBG1X231PWvfxBx1bJ7RljeqZVQAjy2PjuY+rBxNspNbdtevrRKKbebytjeK/3wg8hgBiKddEITd9b3p6BcAVlK5tHtwJlDwUa30AMz8qd51cja5TG9ael3xl8yFUG/udUFqyLu/9f7/28Lza1vItUO9Nejkueu8Jkb2fvENPqhemkST5+zqqrpvZuvT6YvE0HPUdIBTnL5YJX+jvqvtSAIyjYl3LuUKq2PZHD7HlsfzymndPtaOwXtHNtqtpHXgYh/GOWEyU3uk7UfOpABhH6Vpv30MA8s7oIYLJTd8b995zzIa0kr+9TRfzZ9H8wcWLCpMtkxf+o56Hii50QZ2anw00YAmXRsWy28ggz6JyqsB6vP7H1YMZB0inz3RVfRetz/IAUyWM1q/HG9iPgBZGf5dDc91n/9T47WrVv1w9NUeHGjBRYhcWBSUw0FUbGxULgAvK1Xr9T0XSIBb+tpZL7/I8YUgV6LqWQDVV6KZF/9KF/q6q2EBGAAQANuKraw4cVkN4rtz1z3RMH7QXQk3r5w/jcCg2kKGydGVA9ahJAIy2wCO+w+oJvN7pR6paXtTvI83+zWEKVbGBjIKu9b3pGhT3QI3ydd6BZylgHP3ZKi1Qu6xGZNtF3/FdlwVALcCmwUPqSXzx+pIP33u1dDrVLSyR/3qvv4oAbI7aSQ7s6z1WPSwAapSrOTLwqPp5ptMGPd2vu28nEjjVxz1NgT0I0dhrt2bHlTWL2dorHUnocl+H62KqAa3kf2GD6acQonLUrsAhnTx1rOquWXFlDcCGlwcrlHlSExMGwXh/p/sTs4RKxs++nwfWzwTpvmhZStDswB9dHyTja7kyWQOQ5cBcuR4+pB6JFq+HD9971Z22+2Bt86ALKHkwKj4GuHquyz0kAC6jQG2zfzdQuD+VgukV/2DbSXli+L4n1d0nkpxn+jq2j+n1occua1ogO9mGI4MVCl7sRgkiyoacdf/VPoPTI4xRm/om/3aCYFvMD6HB5yrd75u9uJBygEafB2qFXGmCHu9JOMtE6+tw9xsFwlOeZQaEptY9RlQZ7zKCobOd7qs8fvTYZhXASCvUDmbYAmmC1D49Qum1iZdny16ASVVmQNYBjAzdmwb3I0wLYqM/isL2vJnTPa/tntQLIlk7T+vQLhRWtqrLO2y0/8zrNSPJ+lypXNYBZCe7t+nT/DmUt1+9tMaG8NgW7DYzI1srrKdpsB4hskH9OyJw+9wJ19lU5aOmHGAqrjo9Pne/NLApGMLVS2wJDeY68dlP/+C6o8eHXpvI05CjQzvUCVWsLEF4rqis6mQq0zqyFiATsLF1aFdI051hhBQM9ELPG65rZrSKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAwCAYAAADJuP4nAAAAAXNSR0IArs4c6QAAAz5JREFUeF7tnM9PE0EUx+fN7rKlAQ6EWw3GEMSE8iPSmHjz4kE961Wjif4ZpH8DicZGjYaTclYTT1ysIbEXxYOJLRZMRSUYC0X7Y2dMiyVaKd2Zt+3s4XHtfN+bfD7Zlp2dHWD0hyYwd/P9iFWrxjwhyvZgf2FlYbyILuqzAPgcR8PaELj8RFrZp29n//7YceDTyr2pL72ARgKRlM9dW4sU5c5kaxnbkdsXYtP5ZBIEssWRcRKIpNtOYKOsA3tjMcguJeMVZJu2cRKIJHukQMaYbfFaNMKyy7fju8hWh8ZJIJJqJ4H18sBtyRxrPZOa2EK2+y9OApFE/QhstgCXf3t9d3IDACSy7UGcBCJJqgist+KW3JV2NZdJJarI1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",Ne=ae(38986),We=ae(38518),tt=ae(5623),Ye=ae(8944),Qe=ae(19105),lt=ae(17077),nt=ae(15342),yt=ae.n(nt),vt=(Ge,it,De)=>new Promise((ht,on)=>{var An=It=>{try{Ft(De.next(It))}catch(Gt){on(Gt)}},Zn=It=>{try{Ft(De.throw(It))}catch(Gt){on(Gt)}},Ft=It=>It.done?ht(It.value):Promise.resolve(It.value).then(An,Zn);Ft((De=De.apply(Ge,it)).next())}),Lt=oe.memo(({tagName:Ge="div",value:it="",className:De,style:ht={},onBlur:on,id:An})=>{const Zn=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(!Zn.current)return;vt(void 0,null,function*(){const Gt=Zn.current;Gt.innerHTML="";const fn=it==null?void 0:it.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Pn of fn)if(Pn.startsWith("$$")&&Pn.endsWith("$$")||Pn.startsWith("`$$")&&Pn.endsWith("$$`")){const an=Pn.startsWith("`$$")?Pn.slice(3,-3):Pn.slice(2,-2),Ot=document.createElement("span");Ot.setAttribute("contentEditable","false"),Ot.setAttribute("title",Pn),Ot.className="edu_latex",Gt.appendChild(Ot),yt().render(an,Ot,{throwOnError:!1})}else{const an=Pn==null?void 0:Pn.replace(/<[^>]*>/g,Ot=>Ot.startsWith("<img")?Ot:Ot.replace(/</g,"&lt;"));Gt.insertAdjacentHTML("beforeend",an)}})},[An]);const Ft=()=>{var It,Gt;if(on&&Zn.current){const Pn=Zn.current.cloneNode(!0),an=Pn.querySelectorAll("span.edu_latex");for(let Ot of an){const Mn=Ot.getAttribute("title"),Ht=document.createTextNode(Mn||""),Kt=Ot;(Gt=(It=Kt.parentNode)==null?void 0:It.replaceChild)==null||Gt.call(It,Ht,Kt)}on(Pn.innerHTML)}};return oe.createElement(oe.Fragment,null,oe.createElement(Ge,{ref:Zn,contentEditable:!0,className:De,style:ht,onBlur:Ft}))}),jt=ae(48790),Bt=ae(49535),cn=ae(82105),pt=Object.defineProperty,ut=Object.defineProperties,at=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Xt=(Ge,it,De)=>it in Ge?pt(Ge,it,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ge[it]=De,nn=(Ge,it)=>{for(var De in it||(it={}))rn.call(it,De)&&Xt(Ge,De,it[De]);if(Wt)for(var De of Wt(it))Tt.call(it,De)&&Xt(Ge,De,it[De]);return Ge},Nn=(Ge,it)=>ut(Ge,at(it)),Rt=(Ge,it,De)=>new Promise((ht,on)=>{var An=It=>{try{Ft(De.next(It))}catch(Gt){on(Gt)}},Zn=It=>{try{Ft(De.throw(It))}catch(Gt){on(Gt)}},Ft=It=>It.done?ht(It.value):Promise.resolve(It.value).then(An,Zn);Ft((De=De.apply(Ge,it)).next())});const At=Ge=>{Ge.preventDefault();let De=(Ge.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,De)},Zt=Ge=>{Ge.key==="Enter"&&Ge.preventDefault()},In=({children:Ge,style:it})=>oe.createElement("div",{className:Ce.leftBox,style:it,onPaste:At},Ge),Dn=({children:Ge,style:it,className:De})=>oe.createElement("div",{className:Ie()(Ce.rightBox,De),style:it,onPaste:At},Ge),qe=({className:Ge,style:it={},width:De=1200,onCancel:ht=()=>{},onSuccess:on=()=>{},gather:An={},mode:Zn=1,stickyTop:Ft=0,subDisciplineId:It=[],hideWordFeatures:Gt,dataSource:fn=[],customLeftHeadNode:Pn,customRightHeadNode:an,customLeftContent:Ot,hideRecognition:Mn=!1,onExchange:Ht,isSingleSelection:Kt=!1,underpinBackgroundStyle:un={},headExtraNode:Vn,isRefreshItemBank:bn=!1,okText:mt="\u786E\u5B9A\u5BFC\u5165",onSave:jn})=>{var Kn;const[Ut,yi]=(0,oe.useState)(1),[Vi,kn]=(0,oe.useState)(0),[Vt,Qn]=(0,oe.useState)(""),[ai,Un]=(0,oe.useState)(!1),[si,li]=(0,oe.useState)([]),[Me,ii]=(0,oe.useState)([]),[ti,On]=(0,oe.useState)(!1),[ni,Ei]=(0,oe.useState)(!1),[ui,tr]=(0,oe.useState)(!1),[Sn,sn]=(0,oe.useState)(!1),[dn,_n]=(0,oe.useState)([]),[Ri,qn]=(0,oe.useState)(1),[Ni,mn]=(0,oe.useState)(!1),[Hn,Di]=(0,oe.useState)(!0),[Yi,mi]=(0,oe.useState)(0),[Ct,$t]=(0,oe.useState)(!1),[fi]=He.default.useForm(),[gi]=He.default.useForm(),zt=(0,oe.useRef)(null),pi=(0,oe.useRef)(null),Fi=(0,oe.useRef)(),Cn=(0,oe.useRef)(null),je=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pi=["C","C++","Java","Python","JavaScript","Ruby"];(0,oe.useEffect)(()=>{fn!=null&&fn.length&&Hi(fn)},[fn]),(0,oe.useEffect)(()=>{Ut===2&&zt.current.focus()},[Ut]),(0,oe.useEffect)(()=>{ui&&Rn()},[ui]);const Ai=()=>{if(Ut===1){Te.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>Rt(void 0,null,function*(){yi(1)})})},Rn=()=>Rt(void 0,null,function*(){const dt=yield(0,Ne.ZP)("/api/disciplines.json",{method:"get",params:{source:Zn===1?"new_question":"subject"}});_n(dt.disciplines||[])}),Ji=dt=>{const gn=[],vn=(Bn,hn)=>{Bn.length>=2&&gn.push(Bn.join(""));for(let Yn=hn;Yn<dt.length;Yn++)Bn.push(dt[Yn]),vn(Bn,Yn+1),Bn.pop()};return vn([],0),gn},_i=dt=>(dt=dt||"",dt=String(dt),dt=dt.replace(/\s+/g,""),dt),Jn=dt=>(dt=dt||"",dt=String(dt),dt=dt.replace(/<div>/g,""),dt=dt.replace(/<br>/g,`
`),dt=dt.replace(/<\/div>/g,`
`),dt=ln(dt),dt),ji=dt=>dt.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),ln=dt=>dt.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),vr=dt=>{var gn;const vn=dt.clipboardData;if(vn){const Bn=vn.types.toString(),hn=vn.items;if(Bn==="Files"||vn.types.indexOf("Files")>-1){dt.preventDefault();try{let Yn=hn[1];((gn=hn[0])==null?void 0:gn.kind)==="file"&&(Yn=hn[0]);const Gn=Yn.getAsFile();(0,lt.I)(Gn,en=>{var ri;if(en.id){if(((ri=Gn==null?void 0:Gn.type)==null?void 0:ri.indexOf("image"))>-1){const Bi=`<img src='${ue.Z.API_SERVER}${en.url}'>`;document.execCommand("insertText",!1,Bi)}}else(en==null?void 0:en.status)===401&&(document.location.href="/user/login")})}catch(Yn){Te.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Wr(dt,gn){return Rt(this,null,function*(){if(typeof dt=="string")return yield gn(dt);if(typeof dt!="object"||dt===null)return dt;if(Array.isArray(dt))return yield Promise.all(dt.map(hn=>Rt(this,null,function*(){return yield Wr(hn,gn)})));const vn={};for(const Bn in dt)if(Object.prototype.hasOwnProperty.call(dt,Bn)){const hn=dt[Bn];typeof hn=="string"?vn[Bn]=yield gn(hn):typeof hn=="object"?vn[Bn]=yield Wr(hn,gn):vn[Bn]=hn}return vn})}const pn=()=>Rt(void 0,null,function*(){var dt;Un(!0),Qn("\u5904\u7406\u4E2D"),yield new Promise(Bn=>setTimeout(Bn,1e3));let gn=(dt=pi.current)==null?void 0:dt.querySelectorAll('[data-text="edit"]'),vn="";try{gn.forEach(function(Bn){var hn,Yn,Gn,en;const ri=Bn.cloneNode(!0),Bi=ri.querySelectorAll("span.edu_latex");for(let Ki of Bi){const sr=Ki.getAttribute("title"),gr=document.createTextNode(sr),wr=Ki;(Yn=(hn=wr.parentNode)==null?void 0:hn.replaceChild)==null||Yn.call(hn,gr,wr)}const dr=ri.querySelectorAll("span[style]");for(let Ki of dr)if(Ki.style.fontFamily){const sr=Ki.innerHTML,gr=document.createTextNode(sr),wr=Ki;(en=(Gn=wr.parentNode)==null?void 0:Gn.replaceChild)==null||en.call(Gn,gr,wr)}ri==null||ri.childNodes.forEach(function(Ki){Ki.nodeType===Node.ELEMENT_NODE&&Ki.localName!=="h5"&&Ki.localName!=="h4"?vn+=`<p>${Ki.innerHTML}</p>`:Ki.nodeType===Node.TEXT_NODE&&(vn+=`<p>${Ki.textContent}</p>`)})}),nr("/api/intelligent_imports/import.json",{html:ln(vn)})}catch(Bn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Bn)}}),ur=dt=>{let gn=dt.filter(vn=>!!(vn!=null&&vn.type));return gn=gn.map(vn=>{var Bn;const hn=(Bn=ci.find(Gn=>Gn.id===(vn==null?void 0:vn.type)))==null?void 0:Bn.deal,Yn=Nn(nn({},vn),{id:String(Math.random()).slice(-6),knowledgePoint:_i(vn==null?void 0:vn.knowledgePoint)});return hn?hn(Yn):Yn}),gn},yr=()=>{if(Ut===1){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:pn})},ir=()=>oe.createElement("div",{className:Ce.row},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(In,{style:{height:675}},Ut===1&&oe.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>yi(2)},oe.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",oe.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",oe.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",oe.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",oe.createElement("br",null)),oe.createElement("div",{className:Ce.imgBox,style:{marginTop:75}},oe.createElement("img",{width:56,src:me}),oe.createElement("span",null,"\u7F16\u8F91\u533A"))),Ut===2&&oe.createElement("div",{"data-text":"edit",onBlur:()=>{zt.current.innerHTML||yi(1)},ref:zt,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),oe.createElement("div",{className:Ce.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},oe.createElement("div",{className:Ce.imgBox,style:{marginTop:240}},oe.createElement("img",{width:56,src:Ee}),oe.createElement("span",null,"\u9884\u89C8\u533A")))),pr=(dt,gn,vn,Bn)=>{var hn;console.log(dt,gn,vn,Bn,"onDataChange\u4FEE\u6539\u6570\u503C");const Yn=JSON.parse(JSON.stringify(Me));Bn===void 0?Yn[gn][dt]=vn:Yn[gn].questions[Bn][dt]=vn;const Gn=nn({},Yn[gn]),en=(hn=ci.find(ri=>ri.id===(Gn==null?void 0:Gn.type)))==null?void 0:hn.deal;Yn[gn]=en(Gn),ii(Yn)},Tr=(dt,gn,vn)=>{var Bn;const hn=vn!==void 0,Yn=(Bn=ci.find(ri=>ri.id===(dt==null?void 0:dt.type)))==null?void 0:Bn.type,Gn=`${gn+1}.${vn===void 0?"":vn+1+"."}`,en=`${(dt==null?void 0:dt.type)==="7"?"{{":""}${Gn}\u3010${Yn}\u3011${(dt==null?void 0:dt.question)||""}`;return oe.createElement(oe.Fragment,null,hn&&oe.createElement("h4",{contentEditable:!0}),oe.createElement(Lt,{id:dt==null?void 0:dt.id,tagName:"div",value:en}))},Br=(dt,gn)=>Rt(void 0,null,function*(){var vn;const Bn=yield Ht(dt,gn),hn=(vn=Bn==null?void 0:Bn.data)==null?void 0:vn.content;if(hn!=null&&hn.length){const Yn=ur(hn)[0];si.splice(gn,1,Yn),Me.splice(gn,1,Yn),li([...si]),ii([...Me])}}),Ar=(dt,gn,vn)=>{var Bn;const hn=vn!==void 0,Yn=(Bn=ci.find(en=>en.id===(dt==null?void 0:dt.type)))==null?void 0:Bn.type,Gn=`${gn+1}.${vn===void 0?"":vn+1+"."}`;return hn?oe.createElement("div",{style:{padding:"10px 18px"}},`${Gn}\u3010${Yn}\u3011`,oe.createElement(Lt,{id:dt==null?void 0:dt.id,tagName:"span",className:Ce.edit,onBlur:en=>pr("question",gn,en,vn),value:(dt==null?void 0:dt.question)||""})):oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Ce.actionHead},oe.createElement("div",{className:"c-light-primary"},`${Gn}\u3010${Yn}\u3011`),Zn!==1&&oe.createElement(ot.Z,{disabled:(dt==null?void 0:dt.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:en=>pr("score",gn,en,vn),value:dt==null?void 0:dt.score}),oe.createElement(Ke.Z,{align:"middle",style:{marginLeft:"auto"}},!!Ht&&oe.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Br(dt,gn)},oe.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),oe.createElement(Be.default,{onChange:en=>pr("checked",gn,en.target.checked,vn),checked:!!(dt!=null&&dt.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),oe.createElement(Lt,{id:dt==null?void 0:dt.id,tagName:"div",style:{padding:"10px 18px"},className:Ce.edit,onBlur:en=>pr("question",gn,en,vn),value:dt==null?void 0:dt.question}))},br=(dt,gn,vn)=>oe.createElement(oe.Fragment,null,["0","1","2","4"].includes(dt==null?void 0:dt.type)&&oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u7B54\u6848\uFF1A${gn||""}`,tagName:"p"}),!vn&&oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u96BE\u5EA6\uFF1A${(dt==null?void 0:dt.difficulty)||""}`,tagName:"p"}),(dt==null?void 0:dt.type)!=="7"&&oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u89E3\u6790\uFF1A${(dt==null?void 0:dt.analyze)||""}`,tagName:"p"}),!vn&&oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(dt==null?void 0:dt.knowledgePoint)||""}`,tagName:"p"})),_r=(dt,gn,vn,Bn)=>{const hn=Bn!==void 0,Yn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Gn=hn&&!dt.last&&!dt.errorMsg?{marginBottom:10}:{},en=Yn.map(ri=>({key:ri,label:ri,onClick:()=>pr("difficulty",vn,ri,Bn)}));return oe.createElement("div",{className:Ce.liWrap,style:Gn},["4"].includes(dt==null?void 0:dt.type)&&oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),oe.createElement(Lt,{id:dt==null?void 0:dt.id,tagName:"div",className:`${Ce.edit} c-black`,onBlur:ri=>pr("answer",vn,[ri],Bn),value:gn})),!hn&&oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(gt.Z,{menu:{items:en}},oe.createElement("span",{className:"c-light-primary"},dt==null?void 0:dt.difficulty,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(dt==null?void 0:dt.type)!=="7"&&oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),oe.createElement(Lt,{id:dt==null?void 0:dt.id,tagName:"div",className:`${Ce.edit} c-grey-333`,onBlur:ri=>pr("analyze",vn,ri,Bn),value:dt==null?void 0:dt.analyze})),!hn&&oe.createElement("div",{onKeyDown:Zt,className:Ce.li},oe.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),oe.createElement(Lt,{id:dt==null?void 0:dt.id,tagName:"div",value:(dt==null?void 0:dt.knowledgePoint)||"",className:`${Ce.edit} c-grey-333`,onBlur:ri=>pr("knowledgePoint",vn,_i(Jn(ri)),Bn)})))},Wn=dt=>oe.createElement(oe.Fragment,null,typeof(dt==null?void 0:dt.errorMsg)=="string"&&!!(dt!=null&&dt.errorMsg)&&oe.createElement("h5",{contentEditable:!1},oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,dt==null?void 0:dt.errorMsg))),xr=dt=>oe.createElement(oe.Fragment,null,typeof(dt==null?void 0:dt.errorMsg)=="string"&&!!(dt!=null&&dt.errorMsg)&&oe.createElement("h5",null,oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,dt==null?void 0:dt.errorMsg))),$n=(dt,gn,vn,Bn)=>{let hn="flex";return(Kt&&Yi!==Bn||ti&&!(vn!=null&&vn.errorMsg))&&(hn="none"),oe.createElement("div",{className:Ce.row,style:{display:hn}},oe.createElement("div",{className:Ce.leftLayout},Ot||oe.createElement(In,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},dt))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Dn,{className:vn!=null&&vn.errorMsg?Ce.error:""},gn)))},ci=[{id:"0",type:"\u5355\u9009\u9898",element:(dt,gn,vn)=>{var Bn,hn;const Yn=vn!==void 0;let Gn=(Bn=dt==null?void 0:dt.answer)==null?void 0:Bn[0];const en=oe.createElement(oe.Fragment,null,Tr(dt,gn,vn),(hn=dt==null?void 0:dt.options)==null?void 0:hn.map((Ki,sr)=>oe.createElement(Lt,{id:dt==null?void 0:dt.id,key:sr,value:`${je[sr]}.${Ki}`,tagName:"p"})),br(dt,Gn,Yn),Wn(dt));let ri=Yn?dt:Me[gn];const Bi=ri==null?void 0:ri.options,dr=oe.createElement(oe.Fragment,null,Ar(ri,gn,vn),Bi==null?void 0:Bi.map((Ki,sr)=>{var gr;return oe.createElement("div",{key:sr,className:Ce.option},oe.createElement("aside",{className:((gr=ri==null?void 0:ri.answer)==null?void 0:gr[0])===je[sr]?Ce.active:"",onClick:()=>pr("answer",gn,[je[sr]],vn)},je[sr]),oe.createElement(Lt,{id:ri==null?void 0:ri.id,tagName:"div",className:`${Ce.text}`,onBlur:wr=>{Bi[sr]=wr,pr("options",gn,Bi,vn)},value:Ki}))}),_r(ri,"",gn,vn),xr(ri));return Yn?[en,dr]:$n(en,dr,ri,gn)},deal:dt=>{var gn,vn,Bn;dt.score=dt.score===void 0?2:dt.score;let hn=_i((gn=dt==null?void 0:dt.answer)==null?void 0:gn[0]).toUpperCase();dt.answer=hn?[hn]:[];let Yn=[];if(!(dt!=null&&dt.options))Yn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{dt.options=(vn=dt.options)==null?void 0:vn.slice(0,8);const Gn=dt.options.map(ri=>ri==null?void 0:ri.trim().replace(/^\s+|\s+$/g,""));new Set(Gn).size!==Gn.length&&Yn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return hn||Yn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),hn&&(je.slice(0,((Bn=dt==null?void 0:dt.options)==null?void 0:Bn.length)||8).includes(hn)||Yn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),_i(dt==null?void 0:dt.question)||Yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),dt.errorMsg=Yn.join(`
`),dt}},{id:"1",type:"\u591A\u9009\u9898",element:(dt,gn,vn)=>{var Bn,hn;const Yn=vn!==void 0;let Gn=(Bn=dt==null?void 0:dt.answer)==null?void 0:Bn[0];const en=oe.createElement(oe.Fragment,null,Tr(dt,gn,vn),(hn=dt==null?void 0:dt.options)==null?void 0:hn.map((Ki,sr)=>oe.createElement(Lt,{id:dt==null?void 0:dt.id,key:sr,value:`${je[sr]}.${Ki}`,tagName:"p"})),br(dt,Gn,Yn),Wn(dt));let ri=Yn?dt:Me[gn];const Bi=ri==null?void 0:ri.options,dr=oe.createElement(oe.Fragment,null,Ar(ri,gn,vn),Bi==null?void 0:Bi.map((Ki,sr)=>{var gr,wr;return oe.createElement("div",{key:sr,className:Ce.option},oe.createElement("aside",{className:(wr=(gr=ri==null?void 0:ri.answer)==null?void 0:gr[0])!=null&&wr.includes(je[sr])?Ce.active:"",onClick:()=>{var zr;let eo=((zr=ri==null?void 0:ri.answer)==null?void 0:zr[0])||"";const yo=je[sr];eo.includes(yo)?eo=eo.replace(new RegExp(yo,"g"),""):eo+=yo,eo=eo.split("").sort().join(""),pr("answer",gn,[eo],vn)}},je[sr]),oe.createElement(Lt,{id:ri==null?void 0:ri.id,tagName:"div",className:`${Ce.text}`,onBlur:zr=>{Bi[sr]=zr,pr("options",gn,Bi,vn)},value:Ki}))}),_r(ri,"",gn,vn),xr(ri));return Yn?[en,dr]:$n(en,dr,ri,gn)},deal:dt=>{var gn,vn,Bn;dt.score=dt.score===void 0?2:dt.score;let hn=_i((gn=dt==null?void 0:dt.answer)==null?void 0:gn[0]).toUpperCase().split("").sort().join("");dt.answer=hn?[hn]:[];let Yn=[];if(!(dt!=null&&dt.options))Yn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{dt.options=(vn=dt.options)==null?void 0:vn.slice(0,8);const Gn=dt.options.map(ri=>ri==null?void 0:ri.trim().replace(/^\s+|\s+$/g,""));new Set(Gn).size!==Gn.length&&Yn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(hn||Yn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),hn){const Gn=je.slice(0,((Bn=dt==null?void 0:dt.options)==null?void 0:Bn.length)||8);Ji(Gn).includes(hn)||Yn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return _i(dt==null?void 0:dt.question)||Yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),dt.errorMsg=Yn.join(`
`),dt}},{id:"2",type:"\u5224\u65AD\u9898",element:(dt,gn,vn)=>{var Bn,hn;const Yn=vn!==void 0;let Gn=(Bn=dt==null?void 0:dt.answer)==null?void 0:Bn[0];const en=oe.createElement(oe.Fragment,null,Tr(dt,gn,vn),br(dt,Gn,Yn),Wn(dt));let ri=Yn?dt:Me[gn];const Bi=["\u6B63\u786E","\u9519\u8BEF"];let dr=((hn=ri==null?void 0:ri.answer)==null?void 0:hn[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(dr)?dr="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(dr)&&(dr="\u9519\u8BEF");const Ki=oe.createElement(oe.Fragment,null,Ar(ri,gn,vn),Bi==null?void 0:Bi.map((sr,gr)=>oe.createElement("div",{key:gr,className:Ce.option},oe.createElement("aside",{style:{borderRadius:2},className:dr===sr?Ce.active:"",onClick:()=>pr("answer",gn,[sr],vn)},sr==="\u6B63\u786E"?"T":"F"),oe.createElement("div",{style:{pointerEvents:"none"},className:`${Ce.text}`},sr))),_r(ri,"",gn,vn),xr(ri));return Yn?[en,Ki]:$n(en,Ki,ri,gn)},deal:dt=>{var gn;dt.score=dt.score===void 0?2:dt.score;let vn=_i((gn=dt==null?void 0:dt.answer)==null?void 0:gn[0]);dt.answer=vn?[vn]:[];let Bn=[];return vn||Bn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),vn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(vn)&&Bn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),_i(dt==null?void 0:dt.question)||Bn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),dt.errorMsg=Bn.join(`
`),dt}},{id:"3",type:"\u586B\u7A7A\u9898",element:(dt,gn,vn)=>{var Bn,hn;const Yn=vn!==void 0,Gn=oe.createElement(oe.Fragment,null,Tr(dt,gn,vn),(Bn=dt==null?void 0:dt.answer)==null?void 0:Bn.map((Bi,dr)=>oe.createElement(Lt,{id:dt==null?void 0:dt.id,key:dr,tagName:"p",value:`\u7B54\u6848${dr+1}\uFF1A${Bi.text||""}`})),br(dt,"",Yn),Wn(dt));let en=Yn?dt:Me[gn];const ri=oe.createElement(oe.Fragment,null,Ar(en,gn,vn),(hn=en==null?void 0:en.answer)==null?void 0:hn.map((Bi,dr)=>oe.createElement("div",{key:dr,className:Ce.option},oe.createElement("aside",{className:Ce.fill},"\u586B\u7A7A\u9879",dr+1),Bi.model===1&&oe.createElement(Lt,{id:en==null?void 0:en.id,tagName:"div",onBlur:Ki=>{en.answer[dr].latex=Jn(Ki),pr("answer",gn,en.answer,vn)},className:`${Ce.text}`,value:Bi.latex}),Bi.model===2&&oe.createElement(Qe.Z,{value:Bi.latex,onChange:Ki=>{en.answer[dr].latex=Ki,pr("answer",gn,en.answer,vn)}}))),_r(en,"",gn,vn),xr(en));return Yn?[Gn,ri]:$n(Gn,ri,en,gn)},deal:dt=>{var gn,vn,Bn,hn;dt.score=dt.score===void 0?2:dt.score,dt.question=(gn=dt.question)==null?void 0:gn.replaceAll("\u2581","_");const Yn=(vn=dt.answer)==null?void 0:vn.map(en=>{if(Object.prototype.toString.call(en)==="[object Object]")return en;en=en==null?void 0:en.trim();const ri={model:1,text:en,latex:en};return en.startsWith("$$")&&en.endsWith("$$")||en.startsWith("`$$")&&en.endsWith("$$`")?(ri.model=2,ri.latex=en.slice(2,-2)):ri.latex=Jn(en),ri});dt.answer=Yn;let Gn=[];return Yn||Gn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),_i(dt==null?void 0:dt.question)?dt!=null&&dt.question.includes("_")?(Bn=dt==null?void 0:dt.answer)!=null&&Bn.length&&((dt==null?void 0:dt.question.match(/_+/g))||[]).length!==((hn=dt==null?void 0:dt.answer)==null?void 0:hn.length)&&Gn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Gn.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Gn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),dt.errorMsg=Gn.join(`
`),dt}},{id:"4",type:"\u7B80\u7B54\u9898",element:(dt,gn,vn)=>{var Bn,hn;const Yn=vn!==void 0;let Gn=(Bn=dt==null?void 0:dt.answer)==null?void 0:Bn[0];const en=oe.createElement(oe.Fragment,null,Tr(dt,gn,vn),br(dt,Gn,Yn),Wn(dt));let ri=Yn?dt:Me[gn];const Bi=oe.createElement(oe.Fragment,null,Ar(ri,gn,vn),_r(ri,(hn=ri==null?void 0:ri.answer)==null?void 0:hn[0],gn,vn),xr(ri));return Yn?[en,Bi]:$n(en,Bi,ri,gn)},deal:dt=>{dt.score=dt.score===void 0?5:dt.score;let gn=[];return _i(dt==null?void 0:dt.question)||gn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),dt.errorMsg=gn.join(`
`),dt}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(dt,gn)=>{var vn,Bn;const hn=Me[gn],Yn=Pi.slice(0,4).map(Gn=>({key:Gn,label:Gn,onClick:()=>pr("platform",gn,Gn)}));return oe.createElement("div",{className:Ce.row,style:{display:ti?hn!=null&&hn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(In,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},Tr(dt,gn),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(dt==null?void 0:dt.description)||""}`,tagName:"p"}),br(dt),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${dt==null?void 0:dt.timeLimit}`,tagName:"p"}),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(dt==null?void 0:dt.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:(dt==null?void 0:dt.code)||"",tagName:"div"}),(vn=dt==null?void 0:dt.inputs)==null?void 0:vn.map((Gn,en)=>{var ri;return oe.createElement(oe.Fragment,{key:en},oe.createElement("h4",null),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${en+1})\u8F93\u5165\uFF1A${Gn||""}`,tagName:"div"}),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${en+1})\u8F93\u51FA\uFF1A${((ri=dt==null?void 0:dt.outputs)==null?void 0:ri[en])||""}`,tagName:"div"}))}),Wn(dt)))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Dn,{className:hn!=null&&hn.errorMsg?Ce.error:""},Ar(hn,gn),oe.createElement("div",{className:Ce.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:hn==null?void 0:hn.description,tagName:"div",onBlur:Gn=>pr("description",gn,Gn)}))),_r(hn,"",gn),oe.createElement("div",{className:Ce.liWrap},oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:hn==null?void 0:hn.timeLimit,tagName:"div",onBlur:Gn=>pr("timeLimit",gn,Jn(Gn))})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(gt.Z,{menu:{items:Yn}},oe.createElement("span",{className:"c-light-primary"},hn==null?void 0:hn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Ce.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:(hn==null?void 0:hn.code)||"",onBlur:Gn=>pr("code",gn,Jn(Gn)),tagName:"div"}))),(Bn=hn==null?void 0:hn.inputs)==null?void 0:Bn.map((Gn,en)=>{var ri;return oe.createElement("div",{className:Ce.liWrap,key:en},oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",en+1,")\u8F93\u5165\uFF1A"),oe.createElement(Lt,{id:hn==null?void 0:hn.id,value:Gn||"",className:Ce.edit,onBlur:Bi=>{const dr=[...(hn==null?void 0:hn.inputs)||[]];dr[en]=Jn(Bi),pr("inputs",gn,dr)},tagName:"div"})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",en+1,")\u8F93\u51FA\uFF1A"),oe.createElement(Lt,{id:hn==null?void 0:hn.id,value:((ri=hn==null?void 0:hn.outputs)==null?void 0:ri[en])||"",className:Ce.edit,onBlur:Bi=>{const dr=[...(hn==null?void 0:hn.outputs)||[]];dr[en]=Jn(Bi),pr("outputs",gn,dr)},tagName:"div"})))}),xr(hn))))},deal:dt=>{var gn,vn,Bn;dt.score=dt.score===void 0?10:dt.score,dt.code=(gn=dt.code)==null?void 0:gn.trim();let hn=[];_i(dt==null?void 0:dt.question)?((vn=dt==null?void 0:dt.question)==null?void 0:vn.length)>60&&hn.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):hn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_i(dt==null?void 0:dt.description)||hn.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Yn=_i(String((dt==null?void 0:dt.timeLimit)||""));if(dt.timeLimit=Yn,(!Yn||Yn&&!["3","4","5","6","7","8","9","10"].includes(Yn))&&hn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),dt.platform=_i(dt==null?void 0:dt.platform),dt!=null&&dt.platform){const Gn=["c","c++","java","python"],en=(Bn=dt==null?void 0:dt.platform)==null?void 0:Bn.toLowerCase(),ri=Gn.findIndex(Bi=>Bi===en);ri>-1?dt.platform=Pi[ri]:hn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else hn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(dt!=null&&dt.inputs)||!(dt!=null&&dt.outputs))dt.inputs=[],dt.outputs=[],hn.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Gn=Math.min(dt.inputs.length,dt.outputs.length);dt.inputs=dt.inputs.slice(0,Gn),dt.outputs=dt.outputs.slice(0,Gn),dt.outputs.some(en=>!_i(en))&&hn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return dt.errorMsg=hn.join(`
`),dt}},{id:"7",type:"\u7EC4\u5408\u9898",element:(dt,gn)=>{var vn,Bn;const hn=Me[gn];return oe.createElement("div",{className:Ce.row,style:{display:ti?hn!=null&&hn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(In,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},Tr(dt,gn),br(dt),(vn=dt==null?void 0:dt.questions)==null?void 0:vn.map((Yn,Gn)=>{var en;const ri=(en=ci.find(Bi=>Bi.id===(Yn==null?void 0:Yn.type)))==null?void 0:en.element;return oe.createElement(oe.Fragment,{key:`left-${dt.id}-${Gn}`},ri(Yn,gn,Gn)[0])}),Wn(dt),oe.createElement("p",{contentEditable:!0},"}}")))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Dn,{className:hn!=null&&hn.errorMsg?Ce.error:""},Ar(hn,gn),_r(hn,"",gn),(Bn=hn==null?void 0:hn.questions)==null?void 0:Bn.map((Yn,Gn)=>{var en;const ri=(en=ci.find(Bi=>Bi.id===(Yn==null?void 0:Yn.type)))==null?void 0:en.element;return oe.createElement(oe.Fragment,{key:`right-${hn.id}-${Gn}`},ri(Yn,gn,Gn)[1])}),xr(hn))))},deal:dt=>{var gn,vn,Bn,hn,Yn;const Gn=ur,en=[...ci],ri=en.findIndex(sr=>sr.id==="0"),Bi=en.findIndex(sr=>sr.id==="1");if(ri!==-1){const sr=en[ri].deal;en[ri].deal=gr=>{const wr=sr(gr);return wr.errorMsg&&(wr.errorMsg=wr.errorMsg.split(`
`).filter(zr=>zr!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),wr}}if(Bi!==-1){const sr=en[Bi].deal;en[Bi].deal=gr=>{const wr=sr(gr);return wr.errorMsg&&(wr.errorMsg=wr.errorMsg.split(`
`).filter(zr=>zr!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),wr}}dt.questions=(gn=dt.questions)!=null&&gn.length?ur(dt.questions.slice(0,20)):[],dt.questions=(vn=dt.questions)==null?void 0:vn.map((sr,gr)=>{var wr;if(sr.type==="0"||sr.type==="1"){const zr=(wr=sr.options)==null?void 0:wr.map(eo=>eo==null?void 0:eo.trim().replace(/^\s+|\s+$/g,""));zr&&new Set(zr).size!==zr.length&&(sr.errorMsg=(sr.errorMsg?sr.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Nn(nn({},sr),{last:gr===dt.questions.length-1})});const dr=(Bn=dt.questions)==null?void 0:Bn.reduce((sr,gr)=>{const wr=parseFloat(gr.score);return isNaN(wr)?sr:sr+wr},0);dt.score=dr;let Ki=[];return(hn=dt.questions)!=null&&hn.length?dt.errorMsg=((Yn=dt.questions)==null?void 0:Yn.findIndex(sr=>!!sr.errorMsg))>-1:Ki.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),_i(dt==null?void 0:dt.question)||Ki.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ki.length&&(dt.errorMsg=Ki.join(`
`)),dt}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(dt,gn)=>{var vn,Bn;const hn=Me[gn],Yn=Pi.map(Gn=>({key:Gn,label:Gn,onClick:()=>pr("platform",gn,Gn)}));return oe.createElement("div",{className:Ce.row,style:{display:ti?hn!=null&&hn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Ce.leftLayout},oe.createElement(In,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ce.question},Tr(dt,gn),br(dt),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${dt==null?void 0:dt.timeLimit}`,tagName:"p"}),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(dt==null?void 0:dt.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:(dt==null?void 0:dt.code)||"",tagName:"div"}),oe.createElement("h4",null),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(dt==null?void 0:dt.input)||""}`,tagName:"p"}),oe.createElement(Lt,{id:dt==null?void 0:dt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(dt==null?void 0:dt.output)||""}`,tagName:"p"}),(vn=dt==null?void 0:dt.answer)==null?void 0:vn.map((Gn,en)=>oe.createElement(Lt,{key:en,id:dt==null?void 0:dt.id,value:`\u7B54\u6848${en+1}\uFF1A${Gn||""}`,tagName:"p"})),Wn(dt)))),oe.createElement("div",{className:Ce.rightLayout},oe.createElement(Dn,{className:hn!=null&&hn.errorMsg?Ce.error:""},Ar(hn,gn),_r(hn,"",gn),oe.createElement("div",{className:Ce.liWrap},oe.createElement("div",{className:Ce.li,onKeyDown:Zt},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:hn==null?void 0:hn.timeLimit,tagName:"div",onBlur:Gn=>pr("timeLimit",gn,Jn(Gn))})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(gt.Z,{menu:{items:Yn}},oe.createElement("span",{className:"c-light-primary"},hn==null?void 0:hn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Ce.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:(hn==null?void 0:hn.code)||"",onBlur:Gn=>pr("code",gn,Jn(Gn)),tagName:"div"})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:(hn==null?void 0:hn.input)||"",onBlur:Gn=>pr("input",gn,Jn(Gn)),tagName:"div"})),oe.createElement("div",{className:Ce.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),oe.createElement(Lt,{className:Ce.edit,id:hn==null?void 0:hn.id,value:(hn==null?void 0:hn.output)||"",onBlur:Gn=>pr("output",gn,Jn(Gn)),tagName:"div"}))),oe.createElement("div",{className:Ce.liWrap},(Bn=hn==null?void 0:hn.answer)==null?void 0:Bn.map((Gn,en)=>oe.createElement("div",{className:Ce.li,key:en},oe.createElement("aside",null,"\u7B54\u6848",en+1,"\uFF1A"),oe.createElement(Lt,{id:hn==null?void 0:hn.id,value:Gn||"",className:Ce.edit,onBlur:ri=>{const Bi=[...(hn==null?void 0:hn.answer)||[]];Bi[en]=Jn(ri),pr("output",gn,Bi)},tagName:"div"})))),xr(hn))))},deal:dt=>{var gn,vn,Bn,hn,Yn,Gn,en,ri;dt.score=dt.score===void 0?10:dt.score,dt.code=(Bn=(vn=(gn=dt.code)==null?void 0:gn.trim())==null?void 0:vn.replace(/@_@/g,"@\u2581@"))==null?void 0:Bn.replace(/@__@/g,"@\u2581\u2581@");let Bi=[];if(_i(dt==null?void 0:dt.question)||Bi.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_i(dt==null?void 0:dt.code)?/@▁@|@▁▁@/.test(dt==null?void 0:dt.code)?(hn=dt==null?void 0:dt.answer)!=null&&hn.length&&((Yn=dt==null?void 0:dt.code.match(/@▁@|@▁▁@/g))==null?void 0:Yn.length)!==((Gn=dt==null?void 0:dt.answer)==null?void 0:Gn.length)&&Bi.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Bi.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Bi.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),dt!=null&&dt.answer?(en=dt.answer)!=null&&en.some(Ki=>!_i(Ki))&&Bi.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Bi.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),dt.platform=_i(dt==null?void 0:dt.platform),dt!=null&&dt.platform){const Ki=["c","c++","java","python","javascript","ruby"],sr=(ri=dt==null?void 0:dt.platform)==null?void 0:ri.toLowerCase(),gr=Ki.findIndex(wr=>wr===sr);gr>-1?dt.platform=Pi[gr]:Bi.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Bi.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");_i(dt==null?void 0:dt.output)||Bi.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const dr=_i(String((dt==null?void 0:dt.timeLimit)||""));return dt.timeLimit=dr,(!dr||dr&&!["3","4","5","6","7","8","9","10"].includes(dr))&&Bi.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),dt.errorMsg=Bi.join(`
`),dt}}],yn=()=>oe.createElement(oe.Fragment,null,si.filter(dt=>{var gn;return!!((gn=ci.find(Bn=>Bn.id===(dt==null?void 0:dt.type)))==null?void 0:gn.element)}).map((dt,gn)=>{var vn;const Bn=(vn=ci.find(hn=>hn.id===(dt==null?void 0:dt.type)))==null?void 0:vn.element;return oe.createElement(oe.Fragment,{key:dt.id},Bn(dt,gn))})),rt=()=>Rt(void 0,null,function*(){const dt=Me.filter(gn=>!gn.checked);if(Ut!==3||!dt.length){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(jn){$t(!0),yield jn(Me),$t(!1);return}fi.setFieldsValue({sub_discipline_id:It}),tr(!0)}),Ii=(dt,gn=[])=>{if(typeof dt=="string")return dt.trim();if(Array.isArray(dt))return dt.map(vn=>Ii(vn,gn));if(typeof dt=="object"&&dt!==null){const vn={};for(const Bn in dt)dt.hasOwnProperty(Bn)&&(gn.includes(Bn)?vn[Bn]=dt[Bn]:vn[Bn]=Ii(dt[Bn],gn));return vn}return dt},Hi=dt=>Rt(void 0,null,function*(){const gn=ur(Ii(dt));li(gn),ii(JSON.parse(JSON.stringify(gn))),yi(3),Un(!1),On(!1)});(0,oe.useEffect)(()=>{if(Hn)return;const dt=()=>{kn(gn=>gn>=90?(clearInterval(Fi.current),90):gn+1)};return Fi.current=setInterval(dt,5e4/90),()=>clearInterval(Fi.current)},[Hn]);const nr=(dt,gn)=>{Di(!1);const vn=new FormData;Object.keys(gn).forEach(hn=>{vn.append(hn,gn[hn])});const Bn=new window.XMLHttpRequest;Bn.withCredentials=!0,Bn.addEventListener("load",function(hn){return Rt(this,null,function*(){var Yn,Gn;try{const en=JSON.parse((Yn=hn==null?void 0:hn.target)==null?void 0:Yn.response);if(Di(!0),kn(100),yield new Promise(ri=>setTimeout(()=>ri(),780)),en.status===0){if(!((Gn=en==null?void 0:en.data)!=null&&Gn.length)){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Un(!1);return}Hi((en==null?void 0:en.data)||[])}else Un(!1),Te.ZP.warning(en==null?void 0:en.message)}catch(en){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",en)}})}),Bn.addEventListener("error",()=>{Un(!1)}),Bn.open("POST",`${ue.Z.API_SERVER}${dt}`),Bn.send(vn)},qi=dt=>Rt(void 0,null,function*(){const gn=dt.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(gn)==-1?(Te.ZP.error(`${dt.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Un(!0),Qn("\u5904\u7406\u4E2D"),nr("/api/intelligent_imports/import.json",{file:dt}),Promise.reject())});let Zi=[{key:1,label:oe.createElement(Je.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:qi},oe.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,jt.Ny)()||(0,jt.$O)())&&Zi.push({key:2,label:oe.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Cn.current.onClick()}});const di=[Me.length,(Kn=Me.filter(dt=>!!(dt!=null&&dt.errorMsg)))==null?void 0:Kn.length];return oe.createElement("div",{className:Ie()(Ce.intelligentBox,"intelligent-body-curb",Ge),style:Nn(nn({},it),{width:De}),ref:pi},oe.createElement("div",{className:Ce.underpin},oe.createElement("b",{style:un}),oe.createElement("b",{style:un})),oe.createElement("div",{className:Ce.head,style:{top:Ft}},oe.createElement("div",{className:Ce.leftLayout},Pn||oe.createElement(oe.Fragment,null,oe.createElement(Ke.Z,{align:"middle"},oe.createElement("div",{className:Ce.title},"\u8BD5\u9898\u7F16\u8F91"),!Gt&&oe.createElement(he.op,{href:`${ue.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",oe.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),oe.createElement(he.op,{onClick:Ai,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Gt&&oe.createElement(gt.Z,{overlayClassName:Ce.menu,menu:{items:Zi}},oe.createElement(he.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Vn&&Vn),oe.createElement("div",{className:Ce.tip},oe.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),oe.createElement(Ke.Z,{className:Ce.rightLayout,style:{alignItems:"start"}},an||oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Ce.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Ut)&&oe.createElement(Be.default,{className:"ml20",checked:ti,onChange:dt=>On(dt.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Ut)&&oe.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",oe.createElement("span",{className:"ml5 mr5 c-light-primary"},di[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",oe.createElement("span",{className:"ml5 mr5 c-red-e53"},di[1]),"\u9898")),Kt&&oe.createElement("div",{className:Ce.tabs},si==null?void 0:si.map((dt,gn)=>oe.createElement("div",{onClick:()=>{mi(gn)},className:Yi===gn&&Ce.active,key:gn},"\u65B0\u9898",gn+1)))),oe.createElement("div",{className:Ce.centerBox},oe.createElement("img",{className:"mb10",src:Pe,width:56}),!Mn&&oe.createElement(he.op,{onClick:yr},"\u8BC6\u522B"))),[1,2].includes(Ut)&&ir(),[3].includes(Ut)&&yn(),oe.createElement("div",{className:"pb10"}),oe.createElement("div",{className:Ce.buttonFixed},oe.createElement("div",{className:Ce.buttonWrap},oe.createElement(wt.ZP,{size:"middle",className:`${Ce.button} mr20`,onClick:ht},"\u53D6\u6D88"),oe.createElement(wt.ZP,{size:"middle",type:"primary",loading:Ct,className:`${Ce.button}`,onClick:rt},mt))),oe.createElement(ze.default,{centered:!0,closable:!1,destroyOnClose:!0,open:ai,title:null,footer:null,width:320,afterClose:()=>kn(0)},oe.createElement(Ke.Z,{align:"middle",style:{flexDirection:"column"}},oe.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Vt,oe.createElement("span",{className:Ce.dotLoading},oe.createElement("span",null,"."),oe.createElement("span",null,"."),oe.createElement("span",null,"."))),oe.createElement(Fe.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Vi}),oe.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",oe.createElement("span",{className:"ml5 c-light-primary"},Vi,"%")))),oe.createElement(ze.default,{centered:!0,open:ui,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:ni,width:500,onCancel:()=>tr(!1),onOk:()=>fi.submit(),afterClose:()=>{fi.resetFields()}},oe.createElement(He.default,{style:{maxHeight:550},form:fi,layout:"horizontal",colon:!1,size:"large",onFinish:dt=>Rt(void 0,null,function*(){var gn,vn,Bn,hn,Yn;const Gn=Me.filter(Bi=>!Bi.checked&&!Bi.errorMsg);Ei(!0);const en=()=>Rt(void 0,null,function*(){var Bi,dr;const Ki=yield(0,Ne.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Nn(nn(nn({},An),dt),{list:Gn,mode:Zn})});Ki.status===0&&(bn&&((Bi=Ki==null?void 0:Ki.data)!=null&&Bi.success)&&window.location.pathname==="/problemset"&&(Bt.Z.publish("refresh-item-bank",dt.group_id),yield new Promise(sr=>setTimeout(()=>sr(),1500))),Te.ZP.success(`\u6210\u529F\u5BFC\u5165${(dr=Ki==null?void 0:Ki.data)==null?void 0:dr.success}\u9053\u8BD5\u9898`,3),on(Ki),tr(!1)),Ei(!1)});if(Zn!==1){yield en();return}const ri=yield(0,Ne.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Me,mode:Zn}});if(ri.status===0){if(!((gn=ri==null?void 0:ri.data)!=null&&gn.error_size)){yield en();return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Ei(!1)},title:"\u63D0\u793A",content:oe.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",oe.createElement("span",{className:"c-light-primary ml5 mr5"},(vn=ri==null?void 0:ri.data)==null?void 0:vn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",oe.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Bn=ri==null?void 0:ri.data)==null?void 0:Bn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",oe.createElement("span",{className:"ml5 mr5"},(Yn=(hn=ri==null?void 0:ri.data)==null?void 0:hn.index)==null?void 0:Yn.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:en})}})},oe.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),oe.createElement(He.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},oe.createElement(te.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:dn})),Zn===1&&oe.createElement(He.default.Item,{label:oe.createElement(Ke.Z,{align:"middle",style:{justifyContent:"space-between"}},oe.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),oe.createElement("div",{onClick:()=>sn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},oe.createElement("img",{className:"mr5 primary-hover",src:tt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},oe.createElement(We.Z,{key:Ri})))),oe.createElement(ze.default,{centered:!0,open:Sn,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Ni,onCancel:()=>sn(!1),onOk:()=>gi.submit(),afterClose:()=>{gi.resetFields()}},oe.createElement(He.default,{style:{maxHeight:550},form:gi,layout:"horizontal",colon:!1,size:"large",onFinish:dt=>Rt(void 0,null,function*(){var gn;mn(!0),(yield(0,Ne.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:dt.name,parent_id:(gn=dt==null?void 0:dt.parent_id)==null?void 0:gn[0]}})).status===0?(qn(Ri+1),setTimeout(()=>{Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),sn(!1),mn(!1)},1e3)):mn(!1)})},oe.createElement(He.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},oe.createElement(ee.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),oe.createElement(He.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},oe.createElement(We.Z,null)))),oe.createElement(cn.Z,{onSave:dt=>{Un(!0),Qn("\u5904\u7406\u4E2D"),nr("/api/intelligent_imports/import.json",{html:dt})},ref:Cn}))},Oe=fe;var Le=qe},1041:function(_e,be,ae){"use strict";ae.d(be,{N:function(){return ee}});var oe=ae(59301),Ce=ae(82326),ke=ae(62957),Ie=ae(37568),He=ae(6767),Te=ae(77019),ze=ae(5269),ot=ae(38986),Ke={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},Be=ae(92310),gt=ae.n(Be),Je=ae(87169),wt=ae(59301),Fe=(he,ue,fe)=>new Promise((me,Ee)=>{var Pe=tt=>{try{We(fe.next(tt))}catch(Ye){Ee(Ye)}},Ne=tt=>{try{We(fe.throw(tt))}catch(Ye){Ee(Ye)}},We=tt=>tt.done?me(tt.value):Promise.resolve(tt.value).then(Pe,Ne);We((fe=fe.apply(he,ue)).next())});const{Option:te}=Ce.default,ee=({subId:he,value:ue,selectvalues:fe,disabled:me,knowledgeOptions:Ee=[],className:Pe,height:Ne,onChange:We=()=>{},onAddKnowledgeFinish:tt=()=>{},zIndex:Ye=1e3})=>{const Qe=(0,oe.useRef)(),[lt,nt]=(0,oe.useState)([]);ue=ue||[];const yt=(St,Lt)=>{St?(nt([...Lt]),We([...Lt])):(nt([]),We([]))};(0,oe.useEffect)(()=>{(fe==null?void 0:fe.length)>0?(nt([...fe]),We([...fe])):(nt([]),We([]))},[Ee]),(0,oe.useEffect)(()=>{(ue==null?void 0:ue.length)>0&&We([...ue])},[Ee]);const vt=St=>{St.preventDefault(),Qe.current="",ke.default.confirm({centered:!0,width:585,zIndex:Ye,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:wt.createElement("div",{className:"font14"},wt.createElement("div",{className:Ke.public_tips},wt.createElement(Je.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),wt.createElement("div",{style:{display:"flex",alignItems:"center"}},wt.createElement("div",{style:{width:"95px"}},wt.createElement("span",{className:Ke.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),wt.createElement(Ie.default,{className:Ke.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Qe.current,onChange:Lt=>{Qe.current=Lt.target.value}}))),onOk:()=>new Promise((Lt,jt)=>Fe(void 0,null,function*(){if(!Qe.current)return He.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),jt();if(Qe.current.length>20)return He.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),jt();const Bt=yield(0,ot.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Qe.current,sub_discipline_id:he}});if((Bt==null?void 0:Bt.status)===0){tt({id:Bt.tag_discipline_id,name:Qe.current,type:"personal"});let cn=fe||[];cn.push(Bt.tag_discipline_id),We([...cn]),nt([...cn]),We([...cn])}return Lt()}))})};return wt.createElement(Te.Z,{wrap:!1,align:"middle",className:gt()(Ke.wrap,Pe)},wt.createElement(ze.Z,null,wt.createElement(Ce.default,{mode:"multiple",disabled:!he||me,className:Ke.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:yt,style:{width:Ne||490},showSearch:!0,allowClear:!0,value:lt,filterOption:(St,Lt)=>Lt.label.indexOf(St.toLowerCase())>=0},Ee==null?void 0:Ee.map(St=>wt.createElement(te,{key:St.id,value:St.id,label:St.name},wt.createElement("div",{style:{display:"flex",alignItems:"center"}},wt.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},St.name),(St==null?void 0:St.type)==="personal"&&wt.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),he&&wt.createElement(ze.Z,{className:`ml20 ${Ne&&Ke.add_style}`},wt.createElement("span",{className:Ke.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),wt.createElement("span",{className:Ke.linkBtn,onClick:vt},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},19105:function(_e,be,ae){"use strict";var oe=ae(59301),Ce=ae(99587),ke=ae(48136),Ie=ae(76562),He=ae(62957),Te=ae(59301);const ze=(0,oe.forwardRef)(({callback:ot,width:Ke,onChange:Be,disabled:gt,readOnly:Je,type:wt="",value:Fe="",style:te={}},ee)=>{const he=(0,oe.useRef)(),ue=(0,oe.useRef)(),[fe,me]=(0,oe.useState)(0),[Ee,Pe]=(0,oe.useState)(0),[Ne,We]=(0,oe.useState)(!1),tt=()=>{var nt=document.createElement("div");nt.innerHTML=he.current.getValue();var yt=nt.innerText;return ot&&ot(yt),yt};(0,oe.useImperativeHandle)(ee,()=>({getData:tt}));const Ye=nt=>{nt.preventDefault();const yt=nt.clientX-fe,vt=nt.clientY-Ee;document.body.onmousemove=St=>{let Lt=St.clientX-yt,jt=St.clientY-vt;const Bt=document.getElementsByClassName("markdown-popup-form")[0],cn=window.innerWidth-Bt.offsetWidth,pt=window.innerHeight-Bt.offsetHeight;Lt=Math.max(0,Math.min(Lt,cn)),jt=Math.max(0,Math.min(jt,pt)),Qe(St.clientX,St.clientY,yt,vt)&&(me(Lt),Pe(jt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Qe=(nt,yt,vt,St)=>{const Lt=document.body.clientHeight,jt=document.body.clientWidth;return nt<20&&vt>nt||nt>jt-20&&vt<nt||yt<20&&St>yt||yt>Lt-20&&St<yt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,oe.useEffect)(()=>{Ne&&setTimeout(()=>{const nt=document.getElementsByClassName("markdown-popup-form")[0],yt=window.innerWidth/2-nt.offsetWidth/2,vt=window.innerHeight/2-nt.offsetHeight/2;me(yt),Pe(vt)},0)},[Ne]);const lt=()=>{gt||Je||We(!0)};return Te.createElement("div",{style:te},Te.createElement("div",{style:{width:Ke||"100%",position:"relative"},className:`${Ce.Z.mathFillWrap} ${gt||Je?"cursorDefault":""}`,onClick:()=>lt()},Te.createElement("math-field",{disabled:gt,locale:"zh_cn",class:`${Ce.Z.mathField} ${wt}`,readOnly:Je,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:he,style:{width:"100%",fontSize:Fe?18:14},value:Fe||""})),Te.createElement(He.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:fe,top:Ee},title:Te.createElement("div",{style:{cursor:"move"},onMouseDown:Ye},"\u8F93\u5165\u516C\u5F0F"),open:Ne,onOk:()=>{const nt=ue.current.getData();he.current.setValue(nt),Be(nt),We(!1)},onCancel:()=>{We(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Te.createElement(Ie.Z,{value:Fe,ref:ue,onChange:Be,showSaveButton:!1})))});be.Z=ze},76562:function(_e,be,ae){"use strict";var oe=ae(59301),Ce=ae(77019),ke=ae(5269),Ie=ae(20554),He=ae(99571),Te=ae(76902),ze=ae(99587),ot=ae(48136),Ke=ae(59301);const Be=(0,oe.forwardRef)(({callback:gt,showSaveButton:Je,value:wt=""},Fe)=>{const te=(0,oe.useRef)(),ee=[{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}`}]}]}],ue=Ee=>{te.current.setValue(te.current.getValue()+" "+Ee.value+" ")},fe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ke.createElement(Ce.Z,{className:ze.Z.lists,gutter:[10,10]},ee.map((Ee,Pe)=>Ke.createElement(ke.Z,{flex:"110px",className:ze.Z.item},Ke.createElement("div",null,Ke.createElement(Te.Z,{value:`$$${Ee.value}$$`}),Ee.name),Ke.createElement("div",{className:ze.Z.children},Ee.children.map((Ne,We)=>Ke.createElement("div",{key:We},Ke.createElement("h1",null,Ne.name),Ke.createElement(Ce.Z,{gutter:[10,10]},Ne.data.map((tt,Ye)=>Ke.createElement(ke.Z,{key:Ye,onClick:()=>ue(tt),className:ze.Z.diamond},Ke.createElement(Te.Z,{value:"`$$"+tt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ke.createElement(Ce.Z,{className:ze.Z.lists,gutter:[10,10]},he.map((Ee,Pe)=>Ke.createElement(ke.Z,{flex:"110px",className:ze.Z.item},Ke.createElement("div",null,Ke.createElement(Te.Z,{value:"`$$"+Ee.value+"$$`"}),Ee.name),Ke.createElement("div",{className:ze.Z.children},Ee.children.map((Ne,We)=>Ke.createElement("div",{key:We},Ne.name&&Ke.createElement("h1",null,Ne.name),Ke.createElement(Ce.Z,{gutter:[10,10]},Ne.data.map((tt,Ye)=>Ke.createElement(ke.Z,{key:Ye,onClick:()=>ue(tt),className:ze.Z.diamond},Ke.createElement(Te.Z,{value:"`$$"+tt.value+"$$`"}))))))))))}],me=()=>{var Ee=document.createElement("div");Ee.innerHTML=te.current.getValue();var Pe=Ee.innerText;return gt&&gt(Pe),Pe};return(0,oe.useImperativeHandle)(Fe,()=>({getData:me})),Ke.createElement("div",{className:ze.Z.mathWrap},Ke.createElement(Ie.default,{defaultActiveKey:"1",items:fe}),Ke.createElement("math-field",{locale:"zh_cn",className:ze.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},wt||""),Je&&Ke.createElement("div",{className:ze.Z.button},Ke.createElement(He.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});be.Z=Be},28426:function(_e,be,ae){"use strict";var oe=ae(59301),Ce=ae(93314),ke=ae(99571),Ie=Object.defineProperty,He=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Be=(Fe,te,ee)=>te in Fe?Ie(Fe,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Fe[te]=ee,gt=(Fe,te)=>{for(var ee in te||(te={}))ot.call(te,ee)&&Be(Fe,ee,te[ee]);if(ze)for(var ee of ze(te))Ke.call(te,ee)&&Be(Fe,ee,te[ee]);return Fe},Je=(Fe,te)=>He(Fe,Te(te));const wt=({img:Fe,buttonProps:te={},styles:ee={},customText:he,ButtonText:ue,ButtonClick:fe,Buttonclass:me,ButtonTwo:Ee,imgStyles:Pe,loading:Ne=!1,className:We=""})=>oe.createElement("section",{className:`tc animated fadeIn ${We}`,style:gt({color:"#999",margin:"100px auto",visibility:Ne?"hidden":"visible"},ee)},oe.createElement("img",{src:Fe||Ce,style:Je(gt({},Pe),{pointerEvents:"none",userSelect:"none"})}),oe.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ue&&oe.createElement(ke.ZP,gt({className:me,onClick:fe},te),ue),Ee&&Ee);be.Z=wt},45677:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return me}});var oe=ae(59301),Ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ke=ae(99571),Ie=ae(70557),He=ae(75975),Te=ae(25399),ze=ae(51257),ot=ae(81722),Ke=ae(28426),Be=ae(346),gt=ae(44203),Je=ae(59301),wt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Ee,Pe,Ne)=>Pe in Ee?wt(Ee,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Ee[Pe]=Ne,ue=(Ee,Pe)=>{for(var Ne in Pe||(Pe={}))te.call(Pe,Ne)&&he(Ee,Ne,Pe[Ne]);if(Fe)for(var Ne of Fe(Pe))ee.call(Pe,Ne)&&he(Ee,Ne,Pe[Ne]);return Ee},fe=(Ee,Pe,Ne)=>new Promise((We,tt)=>{var Ye=nt=>{try{lt(Ne.next(nt))}catch(yt){tt(yt)}},Qe=nt=>{try{lt(Ne.throw(nt))}catch(yt){tt(yt)}},lt=nt=>nt.done?We(nt.value):Promise.resolve(nt.value).then(Ye,Qe);lt((Ne=Ne.apply(Ee,Pe)).next())}),me=({editOffice:Ee="view",data:Pe,issaver:Ne,onSaver:We,theme:tt,type:Ye,filename:Qe,monacoEditor:lt,className:nt,style:yt,close:vt,onClose:St,hasMask:Lt,disabledDownload:jt,onImgDimensions:Bt,showNodata:cn,recordInfo:pt})=>{const[ut,at]=(0,oe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Wt,rn]=(0,oe.useState)(""),[Tt,Xt]=(0,oe.useState)(),nn=window.ENV==="build"?"/react/build":"",Nn=location.host.startsWith("localhost")?Be.Z.PROXY_SERVER:Be.Z.API_SERVER,At=10*(1024*1024),Zt=(0,oe.useRef)();Pe!=null&&Pe.startsWith("/api")&&Ye!=="txt"&&(Pe=Be.Z.API_SERVER+Pe);const In=Ge=>Ge.substring(Ge.lastIndexOf("/")+1).split(".").pop();Qe&&lt&&(lt.filename=Qe),(0,oe.useEffect)(()=>{var Ge,it;const De=(it=(Ge=document.cookie)==null?void 0:Ge.replace(/\s/g,""))==null?void 0:it.split(";");De==null||De.map(ht=>{let on=ht.split("=");on[0]==="_educoder_session"&&rn(on[1])})},[]),(0,oe.useEffect)(()=>{Ye==="office"&&(Pe.indexOf("bigfilescdn.")>-1||Pe.indexOf("bigfiles1")>-1?Xt({url:Pe,fileType:In(Pe),model:Pe.indexOf("model=edit")?"edit":"view"}):qe())},[Ye,Pe]);function Dn(Ge){return fe(this,null,function*(){Ge.data.type==="pdfdata"&&(We(Ge.data.data),window.removeEventListener("message",Dn,!1)),console.log("mess---:",Ge.data)})}const qe=()=>fe(void 0,null,function*(){console.log("data:",Pe);let Ge=Pe;Pe.startsWith("http")||(Ge=location.origin+Ge);let it=new URL(Ge).pathname.split("/").pop();const De=yield(0,ot.gJ)({attachment_id:it});De.url=Nn+De.url,Xt(De)}),Oe=()=>{if(Pe.startsWith("http")||Pe.startsWith("blob:")){Le();return}(0,ze.Sv)(Qe||"educoder",Pe,Qe)},Le=()=>{pt&&(0,gt.fc)({id:pt==null?void 0:pt.id,watch_type:1,course_id:pt==null?void 0:pt.course_id}),(0,ze.Nd)(Qe||"educoder",decodeURIComponent(Pe))};return Je.createElement("div",{style:ue({},yt||{}),className:`${Lt&&Ce.bgBlack} ${Ye?Ce.wrp:"hide"}`},vt&&Je.createElement("div",{className:Ce.close,ref:Zt},!!Bt&&Je.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Zt.current},Je.createElement("span",{onClick:()=>{St(),Bt()}},Je.createElement("i",{className:"icon-yulanpizhu"}))),!jt&&Je.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Zt.current},Je.createElement("span",{onClick:Le},Je.createElement("i",{className:"icon-quxiaozhiding"}))),Ne&&Je.createElement(Te.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Zt.current},Je.createElement("span",{className:"",onClick:()=>{const Ge=document.getElementById("pdfiframe");window.addEventListener("message",Dn,!1),setTimeout(()=>{Ge.contentWindow.postMessage("getData","*")},300)}},Je.createElement("i",{className:"icon-baocun"}))),Je.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Zt.current},Je.createElement("span",{className:"",onClick:()=>{St()}},Je.createElement("i",{className:"icon-guanbi1"})))),Je.createElement("div",{className:`${Ce[nt]} ${nt} ${Ce.monaco} ${Ye==="txt"?"show":"hide"}`},Ye==="txt"&&Je.createElement(Je.Fragment,null,Je.createElement(He.ZP,ue({},lt)))),Ye==="audio"&&Je.createElement("audio",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Pe}`,autoPlay:!0}),Ye==="video"&&Je.createElement(Je.Fragment,null,(Pe==null?void 0:Pe.indexOf("http"))>-1?Je.createElement("video",{controls:!0,src:`${Pe}`,autoPlay:!0}):Je.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Pe}`,autoPlay:!0})),Ye==="office"&&Tt&&Je.createElement("iframe",{src:`${nn}/office.html?key=${Tt.key}&url=${btoa(Tt.url)}&callbackUrl=${Nn+(Tt.callbackUrl||"")}&fileType=${Tt.fileType}&title=${Tt.title||""}&model=${Ee}&officeServer=${Be.Z.ONLYOFFICE}&disabledDownload=${!!jt}`}),Ye==="html"&&Je.createElement("iframe",{src:Pe+"&disposition=inline"}),Ye==="pdf"&&Je.createElement("iframe",{id:"pdfiframe",src:`${nn}/js/pdfview/index.html?filename=${Qe||"educoder.pdf"}&url=${encodeURIComponent(Pe)}&disabledDownload=${!!jt}&model=${Ee}`}),Ye==="image"&&Je.createElement("img",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Pe}`}),(Ye==="other"||Ye==="download")&&Je.createElement(Je.Fragment,null,cn?Je.createElement(Ke.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Je.createElement(ke.ZP,{icon:Je.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Oe,disabled:jt},"\u4E0B\u8F7D")}):Je.createElement(ke.ZP,{type:"primary",size:"middle",onClick:Oe,disabled:jt},Je.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},68571:function(_e,be,ae){"use strict";ae.d(be,{t:function(){return Le}});var oe=ae(59301),Ce=ae(37568),ke=ae(28284),Ie=ae(62957),He=ae(77019),Te=ae(5269),ze=ae(71051),ot=ae(82326),Ke=ae(47889),Be=ae(31457),gt=ae(25690),Je=ae(8423),wt=ae(6767),Fe=ae(99571),te=ae(29787),ee=ae(24334),he={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},ue=ae(38986),fe=ae(81072),me=ae(39793),Ee=ae(56102),Pe=ae(37345),Ne=ae(59301),We=Object.defineProperty,tt=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,yt=(Ge,it,De)=>it in Ge?We(Ge,it,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ge[it]=De,vt=(Ge,it)=>{for(var De in it||(it={}))lt.call(it,De)&&yt(Ge,De,it[De]);if(Qe)for(var De of Qe(it))nt.call(it,De)&&yt(Ge,De,it[De]);return Ge},St=(Ge,it)=>tt(Ge,Ye(it)),Lt=(Ge,it,De)=>new Promise((ht,on)=>{var An=It=>{try{Ft(De.next(It))}catch(Gt){on(Gt)}},Zn=It=>{try{Ft(De.throw(It))}catch(Gt){on(Gt)}},Ft=It=>It.done?ht(It.value):Promise.resolve(It.value).then(An,Zn);Ft((De=De.apply(Ge,it)).next())}),Bt=({buttonProps:Ge,buttonText:it,form:De,hackIdentifier:ht="",answerKey:on,data:An})=>{const[Zn,Ft]=(0,oe.useState)(!1),[It,Gt]=(0,oe.useState)(!1),[fn,Pn]=(0,oe.useState)(!1),[an,Ot]=(0,oe.useState)({}),[Mn,Ht]=(0,oe.useState)(""),[Kt,un]=(0,oe.useState)(""),Vn=(0,oe.useRef)(ht),bn=(0,oe.useRef)(""),mt=(0,oe.useRef)(!1);(0,oe.useEffect)(()=>{fn&&yi()},[fn]),(0,oe.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const jn=()=>new Date().getTime(),Kn=An==null?void 0:An.code,Ut=()=>{var Vt,Qn;let ai=Kn?An==null?void 0:An.code:(Vt=De.getFieldValue("hack_codes"))==null?void 0:Vt.code,Un=Kn?An==null?void 0:An.answer_content:De.getFieldValue(on),si=Kn?An==null?void 0:An.input:(Qn=De.getFieldValue("hack_sets"))==null?void 0:Qn.input;Un==null||Un.forEach(li=>{const Me=li.value||li.answer_text||"";ai=ai.replace(/(@▁@|@▁▁@)/,Me)}),un(si),Ht(ai),Ot({}),Pn(!0)},yi=()=>Lt(void 0,null,function*(){var Vt,Qn,ai,Un;const si=jn(),li=Kn?An==null?void 0:An.time_limit:(Vt=De.getFieldsValue())==null?void 0:Vt.hack.time_limit,Me=Kn?(Qn=An==null?void 0:An.answer_content)==null?void 0:Qn.length:(Un=(ai=De.getFieldsValue())==null?void 0:ai.standard_answers)==null?void 0:Un.length;Ft(!0),yield(0,fe.bM)(bn.current,{test_hack_code:Mn,test_input:Kt});function ii(){return Lt(this,null,function*(){const{status:ti,data:On}=yield(0,fe.rX)(bn.current,"submit"),Ei=jn()-si>(li+3)*1e3*Me;if(mt.current){if(Ei){wt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Ft(!1);return}if(ti===0){Ft(!1),Ot(St(vt({},On),{showText:!0}));return}setTimeout(ii,1e3)}})}ii()}),Vi=()=>Lt(void 0,null,function*(){var Vt,Qn,ai,Un,si,li,Me;if(!An){try{yield De.validateFields()}catch(ni){(ai=(Qn=(Vt=ni==null?void 0:ni.errorFields)==null?void 0:Vt[0])==null?void 0:Qn.name)!=null&&ai.includes("standard_answers")?wt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):wt.ZP.error(ni.errorFields[0].errors[0]),De.scrollToField(ni.errorFields[0].name,{behavior:"smooth",block:"center"});return}Gt(!0);let ti="";const On=De.getFieldsValue();Vn.current?ti=yield(0,ue.ZP)(`/api/problems/${Vn.current}.json`,{method:"put",body:St(vt({},On),{hack:St(vt({},On==null?void 0:On.hack),{sub_discipline_id:(Me=(li=On==null?void 0:On.hack)==null?void 0:li.sub_discipline_id)==null?void 0:Me[1],difficult:On.difficulty,item_banks_group_id:On.item_banks_group_id}),hack_codes:St(vt({},On.hack_codes),{code:ee.Base64.encode(On.hack_codes.code)}),update_hack_sets:[vt({},On.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(ti=yield(0,ue.ZP)("/api/problems.json",{method:"post",body:St(vt({},On),{hack:St(vt({},On==null?void 0:On.hack),{sub_discipline_id:(si=(Un=On==null?void 0:On.hack)==null?void 0:Un.sub_discipline_id)==null?void 0:si[1],difficult:On.difficulty,item_banks_group_id:On.item_banks_group_id}),hack_codes:St(vt({},On.hack_codes),{code:ee.Base64.encode(On.hack_codes.code)}),hack_sets:[vt({},On.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),Vn.current=ti==null?void 0:ti.identifier,sessionStorage.projectFill=ti==null?void 0:ti.identifier)}const ii=yield(0,ue.ZP)(`/api/problems/${Vn.current}/start.json`,{method:"get"});if((ii==null?void 0:ii.status)===0){bn.current=ii==null?void 0:ii.identifier,mt.current=!0,Gt(!1),Ut();return}Gt(!1)}),kn=Vt=>{const{status:Qn,error_msg:ai,execute_time:Un,output:si,input:li,expected_output:Me}=Vt;let ii=null;switch(Qn){case Pe.h.OK:ii=Ne.createElement(Ne.Fragment,null,Ne.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Un/1e3,"\u79D2"),Ne.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Pe.h.NOMATCH:ii=Ne.createElement(Ne.Fragment,null,Ne.createElement("div",null,"\u8F93\u5165\uFF1A"),Ne.createElement("pre",{style:{fontFamily:"initial"}},li),Ne.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ne.createElement("pre",{style:{fontFamily:"initial"}},si&&ee.Base64.decode(si)),Ne.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ne.createElement("pre",{style:{fontFamily:"initial"}},Me&&ee.Base64.decode(Me)));break;case Pe.h.EXECUTEFAILURE:ii=Ne.createElement(Ne.Fragment,null,Ne.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ne.createElement("pre",null,li)),Ne.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ne.createElement("pre",{className:"error"},ee.Base64.decode(ai)));break;case Pe.h.COMPILEFAILURE:ii=Ne.createElement(Ne.Fragment,null,Ne.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ne.createElement("pre",null,li)),Ne.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ne.createElement("pre",{className:"error"},ee.Base64.decode(ai)));break;case Pe.h.PODFAILURE:ii=Ne.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Pe.h.TIMEOUT:ii=Ne.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ne.createElement(Ne.Fragment,null," ",ii," ")};return Ne.createElement("div",null,Ne.createElement(Fe.ZP,St(vt({loading:It},Ge),{onClick:Vi}),it),Ne.createElement(Ie.default,{open:fn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Zn,cancelButtonProps:{style:{display:"none"}},onOk:()=>yi(),onCancel:()=>{mt.current=!1,Pn(!1)}},Ne.createElement("div",{className:he.result},Ne.createElement("div",{className:he.left},Ne.createElement("div",{className:"mb20"},Ne.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!An&&Ne.createElement(Ee.CopyToClipboard,{text:Mn,onCopy:()=>wt.ZP.success("\u590D\u5236\u6210\u529F")},Ne.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ne.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ne.createElement(me.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Mn,onChange:Vt=>Ht(Vt)})),Ne.createElement("div",{className:he.right},Ne.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ne.createElement("div",{className:he.box},Ne.createElement("div",{className:he.li},Ne.createElement(Ce.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Kt,onChange:Vt=>un(Vt.target.value),bordered:!1,style:{height:180}}))),Ne.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ne.createElement("div",{className:he.box},Ne.createElement(te.Z,{spinning:Zn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ne.createElement("div",{className:he.li,style:{height:196,overflow:"auto",padding:10}},kn(an))))))))},cn=ae(87169),pt=ae(59301),ut=Object.defineProperty,at=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,nn=(Ge,it,De)=>it in Ge?ut(Ge,it,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ge[it]=De,Nn=(Ge,it)=>{for(var De in it||(it={}))Tt.call(it,De)&&nn(Ge,De,it[De]);if(rn)for(var De of rn(it))Xt.call(it,De)&&nn(Ge,De,it[De]);return Ge},Rt=(Ge,it)=>at(Ge,Wt(it)),At=(Ge,it)=>{var De={};for(var ht in Ge)Tt.call(Ge,ht)&&it.indexOf(ht)<0&&(De[ht]=Ge[ht]);if(Ge!=null&&rn)for(var ht of rn(Ge))it.indexOf(ht)<0&&Xt.call(Ge,ht)&&(De[ht]=Ge[ht]);return De};const{TextArea:Zt}=Ce.default,In=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],Dn=({value:Ge,onChange:it})=>pt.createElement(Switch,{checked:Ge,onChange:De=>{it(De)}}),qe="@\u2581@",Oe="@\u2581\u2581@",Le=({questionTitlePlaceholder:Ge,form:it,scoreByBlank:De=!1,hackidentifier:ht,answerKey:on})=>{const[An,Zn]=(0,oe.useState)(!1),[Ft,It]=(0,oe.useState)(!1),fn=(0,gt.useParams)().type==="edit",Pn=(bn,mt)=>{const jn=mt.line;let Kn=0;for(let yi=0;yi<jn;yi++)Kn+=bn.getLine(yi).split(qe).length-1;for(let yi=0;yi<jn;yi++)Kn+=bn.getLine(yi).split(Oe).length-1;const Ut=bn.getLine(jn).substring(0,mt.ch);return Kn+=Ut.split(qe).length-1,Kn+=Ut.split(Oe).length-1,Kn},an=(bn,mt,jn,Kn)=>{const Ut=bn.getRange(mt.from,mt.to);let yi=0;if(mt.text.forEach(Vi=>{yi+=Vi.split(qe).length-1}),mt.text.forEach(Vi=>{yi+=Vi.split(Oe).length-1}),mt.origin!=="setValue"){if(Ut&&(Ut.indexOf(qe)!==-1||Ut.indexOf(Oe)!==-1)){const Vi=Ut.split(qe).length-1+Ut.split(Oe).length-1,kn=Pn(bn,mt.from);if(console.log(`\u5220\u9664${Vi}\u4E2A\uFF0C \u524D\u9762\u6709${kn}\u4E2A\uFF0C\u65B0\u589E${yi}\u4E2A`),Vi>1){const Vt=Array.from({length:Vi},(Qn,ai)=>kn+ai);Kn(Vt)}else Kn(kn)}else if(yi>0){const Vi=Pn(bn,mt.from);console.log(`\u65B0\u589E${yi}\u4E2A\uFF0C\u4E4B\u524D\u6709${Vi}\u4E2A`),jn(yi,Vi)}}},Ot=()=>{const bn=it.getFieldValue(on);it.setFieldsValue({[on]:bn==null?void 0:bn.map((mt,jn)=>Rt(Nn({},mt),{position:jn+1}))})},Mn=(0,oe.useRef)(),Ht=(bn,mt)=>{for(let jn=0;jn<bn;jn++)Mn.current({position:null,answer_text:""},mt+jn);Ot()},Kt=(0,oe.useRef)(),un=bn=>{Kt.current(bn),Ot()},Vn=ke.default.useWatch(on,it);return pt.createElement("div",{className:Je.Z.wrap},pt.createElement(ke.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},pt.createElement(Be.h,{scrollId:"name",watch:!0,height:140})),pt.createElement("div",{className:Je.Z.questionTitleEditorWrap},pt.createElement(ke.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},pt.createElement(Be.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(bn,mt)=>{const jn=it.getFieldValue(on);console.log("--preAnswerData",jn,mt),it.setFieldsValue({[on]:jn==null?void 0:jn.map((Kn,Ut)=>{var yi;return Rt(Nn({},Kn),{position:Ut+1,multi_line:(yi=mt==null?void 0:mt[Ut])==null?void 0:yi.multiLine})})})},placeholder:Ge,onCMBeforeChange:(bn,mt)=>{an(bn,mt,Ht,un)}}))),pt.createElement(ke.default.List,{name:on,rules:[{validator(bn,mt){if(!(mt!=null&&mt.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const jn of mt){const{answer_text:Kn}=jn||{};if((Kn==null?void 0:Kn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(bn,{add:mt,remove:jn},{errors:Kn})=>(Mn.current=mt,Kt.current=jn,pt.createElement(pt.Fragment,null,pt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},pt.createElement(ke.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),pt.createElement("div",{onClick:()=>{Ie.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:pt.createElement("div",null,pt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",pt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),pt.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},pt.createElement(cn.Z,{style:{marginRight:3,color:"#3061D0"}}),pt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),bn.map((Ut,yi)=>{var Vi=Ut,{key:kn,name:Vt}=Vi,Qn=At(Vi,["key","name"]),ai,Un;return pt.createElement(He.Z,{className:"mb20",key:kn,align:"middle",wrap:!1},pt.createElement(Te.Z,{flex:"0 0 auto",className:`${Je.Z.blankIndex}`},"\u586B\u7A7A\u9879",yi+1),pt.createElement(Te.Z,{flex:1},pt.createElement(He.Z,{align:"top",justify:"space-between",wrap:!1},pt.createElement(Te.Z,null,pt.createElement(ke.default.Item,Rt(Nn({},Qn),{name:[Vt,"answer_text"],noStyle:!0}),(ai=Vn==null?void 0:Vn[Vt])!=null&&ai.multi_line||(Un=Vn==null?void 0:Vn[Vt])!=null&&Un.multiLine?pt.createElement(Zt,{spellCheck:!1,style:{marginLeft:10,width:550}}):pt.createElement(Ce.default,{style:{marginLeft:10,width:550},className:Je.Z.blankInput,size:"large",maxLength:1e3,onBlur:si=>{}}))),De&&pt.createElement(Te.Z,{flex:"224px"},pt.createElement(ke.default.Item,Rt(Nn({},Qn),{name:[Vt,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),pt.createElement(ze.Z,{size:"large",className:Je.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),pt.createElement("div",{onClick:()=>Zn(!0)},pt.createElement(ke.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},pt.createElement(Be.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:An}))),pt.createElement(ke.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},pt.createElement(ot.default,{size:"large"},In.map(bn=>pt.createElement(ot.default.Option,{key:bn.title,value:bn.key}," ",bn.title)))),pt.createElement(ke.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},pt.createElement(ke.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},pt.createElement(ze.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),pt.createElement("span",{className:"ml10 font14"},"\u79D2")),pt.createElement(ke.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},pt.createElement(Ke.ZP.Group,{style:{marginTop:-10}},pt.createElement(Ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),pt.createElement(Ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),pt.createElement(Ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),pt.createElement(ke.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),pt.createElement("div",{style:{background:"#F6F7F9",padding:15}},pt.createElement(ke.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},pt.createElement(Zt,{rows:4})),pt.createElement(ke.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},pt.createElement(Zt,{rows:4}))),pt.createElement(Bt,{form:it,answerKey:on,hackIdentifier:ht,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:pt.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},81727:function(_e,be,ae){"use strict";ae.d(be,{u:function(){return Ne}});var oe=ae(59301),Ce=ae(77019),ke=ae(5269),Ie=ae(25399),He=ae(28284),Te=ae(8423),ze=ae(32134),ot=ae(12893),Ke=ae(31457),Be=ae(59301),gt=Object.defineProperty,Je=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(We,tt,Ye)=>tt in We?gt(We,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):We[tt]=Ye,ue=(We,tt)=>{for(var Ye in tt||(tt={}))te.call(tt,Ye)&&he(We,Ye,tt[Ye]);if(Fe)for(var Ye of Fe(tt))ee.call(tt,Ye)&&he(We,Ye,tt[Ye]);return We},fe=(We,tt)=>Je(We,wt(tt)),me=(We,tt)=>{var Ye={};for(var Qe in We)te.call(We,Qe)&&tt.indexOf(Qe)<0&&(Ye[Qe]=We[Qe]);if(We!=null&&Fe)for(var Qe of Fe(We))tt.indexOf(Qe)<0&&ee.call(We,Qe)&&(Ye[Qe]=We[Qe]);return Ye};const Ee=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pe=({value:We,onChange:tt,choiceTextKey:Ye,answerKey:Qe,index:lt,isEdit:nt,setInputActive:yt,form:vt,choiceOptionsPath:St,allowChangeMode:Lt,showAddIcon:jt,addItem:Bt,deleteItem:cn})=>{console.log(We,"value");const pt=(We==null?void 0:We[Qe])===1,ut=()=>{const Wt=vt.getFieldValue(St);vt.setFieldValue(St,Wt.map(rn=>fe(ue({},rn),{[Qe]:0})))},at=()=>{pt?tt(fe(ue({},We),{[Qe]:0})):(Lt||ut(),tt(fe(ue({},We),{[Qe]:1})))};return Be.createElement(Ce.Z,{className:Te.Z.choiceWrap,align:"middle",wrap:!1},Be.createElement(ke.Z,{onClick:at,className:`${Te.Z.choiceIndex} ${pt?Te.Z.activeAnswer:""}`},Ee[lt]),Be.createElement(ke.Z,{flex:1,className:`${Te.Z.editorWrap} ml15`,onClick:yt},Be.createElement(Ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:nt,value:We==null?void 0:We[Ye],onChange:Wt=>{tt(fe(ue({},We),{[Ye]:Wt}))}})),Be.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},Be.createElement("div",{onClick:at,className:`${Te.Z.setAnswerBtn} ${pt?Te.Z.activeAnswer:""}`},pt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Be.createElement(ke.Z,{className:Te.Z.actionWrapper},Be.createElement(Ie.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Be.createElement(ze.Z,{className:Te.Z.addIcon,onClick:Bt,style:{visibility:jt?"visible":"hidden"}})),Be.createElement(Ie.Z,{title:"\u5220\u9664"},Be.createElement(ot.Z,{className:Te.Z.deleteIcon,onClick:cn,style:{visibility:lt>1?"visible":"hidden"}}))))},Ne=({questionTitlePlaceholder:We,titleKey:tt,choiceKey:Ye,analysisKey:Qe,choiceTextKey:lt,answerKey:nt,choiceOptionsPath:yt,allowChangeMode:vt=!0,form:St,showAnalysis:Lt=!0})=>{const[jt,Bt]=(0,oe.useState)(),[cn,pt]=(0,oe.useState)(!1);return Be.createElement("div",{className:Te.Z.wrap},Be.createElement("div",{className:Te.Z.questionTitleEditorWrap},Be.createElement(He.default.Item,{label:"\u9898\u5E72",name:tt,labelCol:{span:24},rules:[{required:!0}]},Be.createElement(Ke.h,{scrollId:Array.isArray(tt)?tt.join("_"):`${tt}`,watch:!0,height:140,placeholder:We}))),Be.createElement(He.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Be.createElement(He.default.List,{name:Ye,rules:[{validator(ut,at){const Wt=at.some(Tt=>Tt[nt]===1),rn=at.findIndex(Tt=>{var Xt;return((Xt=Tt[lt])==null?void 0:Xt.length)<=0});return rn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ee[rn]}\u9009\u9879\u7684\u5185\u5BB9`)):Wt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ut,{add:at,remove:Wt})=>Be.createElement("div",{id:Array.isArray(yt)?yt.join("_"):`${yt}`},ut.map((rn,Tt)=>{var Xt=rn,{key:nn,name:Nn}=Xt,Rt=me(Xt,["key","name"]);const At=jt===nn,Zt=()=>{Bt(nn)},In=Tt<7&&Tt===ut.length-1,Dn=()=>at({[lt]:"",[nt]:0}),qe=()=>Wt(Nn);return Be.createElement(He.default.Item,fe(ue({},Rt),{key:nn,name:Nn,className:Te.Z.choiceListWrap,rules:[{validator(Oe,Le){return Le!=null&&Le.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ee[Tt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Be.createElement(Pe,{choiceTextKey:lt,answerKey:nt,index:Tt,isEdit:At,setInputActive:Zt,form:St,choiceOptionsPath:yt,allowChangeMode:vt,showAddIcon:In,addItem:Dn,deleteItem:qe}))}),ut.length<8&&Be.createElement("div",{className:`${Te.Z.addBtn} mb30`,onClick:()=>at({[lt]:"",[nt]:0})},"\u6DFB\u52A0\u9009\u9879"))),Lt&&Be.createElement("div",{onClick:()=>pt(!0)},Be.createElement(He.default.Item,{name:Qe,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Be.createElement(Ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:cn}))))}},92046:function(_e,be,ae){"use strict";ae.d(be,{u:function(){return vt}});var oe=ae(59301),Ce=ae(62957),ke=ae(77019),Ie=ae(5269),He=ae(37568),Te=ae(25399),ze=ae(71411),ot=ae(28284),Ke=ae(47889),Be=ae(71051),gt=ae(31457),Je=ae(12893),wt=ae(61485),Fe=ae(8423),te=ae(19105),ee=ae(59301),he=Object.defineProperty,ue=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ne=(St,Lt,jt)=>Lt in St?he(St,Lt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):St[Lt]=jt,We=(St,Lt)=>{for(var jt in Lt||(Lt={}))Ee.call(Lt,jt)&&Ne(St,jt,Lt[jt]);if(me)for(var jt of me(Lt))Pe.call(Lt,jt)&&Ne(St,jt,Lt[jt]);return St},tt=(St,Lt)=>ue(St,fe(Lt)),Ye=(St,Lt)=>{var jt={};for(var Bt in St)Ee.call(St,Bt)&&Lt.indexOf(Bt)<0&&(jt[Bt]=St[Bt]);if(St!=null&&me)for(var Bt of me(St))Lt.indexOf(Bt)<0&&Pe.call(St,Bt)&&(jt[Bt]=St[Bt]);return jt};const Qe=({value:St,onChange:Lt})=>{const jt=cn=>{Ce.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.Z.modal,onOk:()=>{const pt=[...St];pt.splice(cn,1),Lt(pt)}})},Bt=()=>{const cn=[...St];cn.push(""),Lt(cn)};return ee.createElement(ke.Z,{className:"ml20"},ee.createElement(Ie.Z,{flex:1},St==null?void 0:St.map((cn,pt)=>ee.createElement(ke.Z,{key:`${cn}_${pt}`,className:"mb20"},ee.createElement(He.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:cn,autoSize:{maxRows:3},maxLength:1e3,onBlur:ut=>{const at=[...St],Wt=ut.target.value.trim();at[pt]=Wt,Lt(at)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement(Je.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:pt>0?"visible":"hidden"},onClick:()=>jt(pt)}))))),ee.createElement(Ie.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Bt()}},"\u65B0\u589E\u7B54\u6848")))},lt=({value:St,onChange:Lt})=>{const jt=cn=>{Ce.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.Z.modal,onOk:()=>{const pt=[...St];pt.splice(cn,1),Lt(pt)}})},Bt=()=>{const cn=[...St];cn.push(""),Lt(cn)};return ee.createElement(ke.Z,{className:"ml20"},ee.createElement(Ie.Z,{flex:1},St==null?void 0:St.map((cn,pt)=>ee.createElement(ke.Z,{key:`${cn}_${pt}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:cn,style:{flex:1},onChange:ut=>{const at=[...St];at[pt]=ut,Lt(at)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement(Je.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:pt>0?"visible":"hidden"},onClick:()=>jt(pt)}))))),ee.createElement(Ie.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Bt()}},"\u65B0\u589E\u7B54\u6848")))},nt=({value:St=!0,onChange:Lt})=>ee.createElement(ze.Z,{checked:!St,onChange:jt=>{Lt(!jt)}}),yt="\u2581",vt=({questionTitlePlaceholder:St,form:Lt,scoreByBlank:jt=!1,answerKey:Bt})=>{const[cn,pt]=(0,oe.useState)(!1),ut=(Rt,At)=>{const Zt=At.line;let In=0;for(let qe=0;qe<Zt;qe++)In+=Rt.getLine(qe).split(yt).length-1;const Dn=Rt.getLine(Zt).substring(0,At.ch);return In+=Dn.split(yt).length-1,In},at=(Rt,At,Zt,In)=>{const Dn=Rt.getRange(At.from,At.to);let qe=0;if(At.text.forEach(Oe=>{qe+=Oe.split(yt).length-1}),At.origin!=="setValue"){if(Dn&&Dn.indexOf(yt)!==-1){const Oe=Dn.split(yt).length-1,Le=ut(Rt,At.from);if(console.log(`\u5220\u9664${Oe}\u4E2A\uFF0C \u524D\u9762\u6709${Le}\u4E2A\uFF0C\u65B0\u589E${qe}\u4E2A`),Oe>1){const Ge=Array.from({length:Oe},(it,De)=>Le+De);In(Ge)}else In(Le)}else if(qe>0){const Oe=ut(Rt,At.from);console.log(`\u65B0\u589E${qe}\u4E2A\uFF0C\u4E4B\u524D\u6709${Oe}\u4E2A`),Zt(qe,Oe)}}},Wt=()=>{const Rt=Lt.getFieldValue(Bt);Lt.setFieldsValue({[Bt]:Rt.map((At,Zt)=>tt(We({},At),{position:Zt+1}))})},rn=(0,oe.useRef)(),Tt=(Rt,At)=>{for(let Zt=0;Zt<Rt;Zt++)rn.current({position:null,answer_text:[""],model:1},At+Zt);Wt()},Xt=(0,oe.useRef)(),nn=Rt=>{Xt.current(Rt),Wt()},Nn=ot.default.useWatch(Bt,Lt);return ee.createElement("div",{className:Fe.Z.wrap},ee.createElement("div",{className:Fe.Z.questionTitleEditorWrap},ee.createElement(ot.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(gt.h,{scrollId:"name",watch:!0,height:140,placeholder:St,showNullButton:!0,onCMBeforeChange:(Rt,At)=>{at(Rt,At,Tt,nn)}}))),ee.createElement(ot.default.List,{name:Bt,rules:[{validator(Rt,At){if(!(At!=null&&At.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Zt of At){const{answer_text:In}=Zt||{};if(In!=null&&In.some(Dn=>(Dn==null?void 0:Dn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Rt,{add:At,remove:Zt},{errors:In})=>(rn.current=At,Xt.current=Zt,ee.createElement(ee.Fragment,null,ee.createElement(ot.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Rt!=null&&Rt.length)&&ee.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Rt.map((Dn,qe)=>{var Oe=Dn,{key:Le,name:Ge}=Oe,it=Ye(Oe,["key","name"]),De,ht;return ee.createElement("div",{style:{marginBottom:10},key:Le},ee.createElement(ke.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(Ie.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Fe.Z.blankIndex}`},"\u586B\u7A7A\u9879",qe+1),ee.createElement(ot.default.Item,tt(We({},it),{name:[Ge,"model"],noStyle:!0}),ee.createElement(Ke.ZP.Group,{onChange:()=>{const on=Lt.getFieldValue(Bt);Lt.setFieldsValue({[Bt]:on.map((An,Zn)=>tt(We({},An),{answer_text:Ge===Zn?[""]:An.answer_text}))})}},ee.createElement(Ke.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",ee.createElement(Te.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},ee.createElement(wt.Z,null))),ee.createElement(Ke.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",ee.createElement(Te.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},ee.createElement(wt.Z,null)))))),ee.createElement(ke.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(Ie.Z,{flex:1},ee.createElement(ke.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(Ie.Z,{flex:1},ee.createElement(ot.default.Item,tt(We({},it),{name:[Ge,"answer_text"],noStyle:!0}),((ht=(De=Lt.getFieldValue(Bt))==null?void 0:De[Ge])==null?void 0:ht.model)===1?ee.createElement(Qe,null):ee.createElement(lt,null))),jt&&ee.createElement(Ie.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(ot.default.Item,tt(We({},it),{name:[Ge,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Fe.Z.blankInputNumberWrapper}),ee.createElement(Be.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(ot.default.Item,tt(We({},it),{name:[Ge,"position"],noStyle:!0}),ee.createElement(He.default,{type:"hidden"})))))})))),ee.createElement(ke.Z,{align:"middle"},ee.createElement(ot.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(ze.Z,null)),ee.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ee.createElement(ke.Z,{align:"middle"},ee.createElement(ot.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(ze.Z,null)),ee.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Nn==null?void 0:Nn.length)>1&&ee.createElement(ke.Z,{align:"middle",className:(Nn==null?void 0:Nn.length)>1?"mb30":`${Fe.Z.hide}`},ee.createElement(ot.default.Item,{name:"is_ordered"},ee.createElement(nt,null)),ee.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),ee.createElement("div",{onClick:()=>pt(!0)},ee.createElement(ot.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(gt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:cn}))))}},14289:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return me}});var oe=ae(59301),Ce=ae(77019),ke=ae(5269),Ie=ae(28284),He=ae(8423),Te=ae(31457),ze=ae(59301),ot=Object.defineProperty,Ke=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Fe=(Ee,Pe,Ne)=>Pe in Ee?ot(Ee,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Ee[Pe]=Ne,te=(Ee,Pe)=>{for(var Ne in Pe||(Pe={}))Je.call(Pe,Ne)&&Fe(Ee,Ne,Pe[Ne]);if(gt)for(var Ne of gt(Pe))wt.call(Pe,Ne)&&Fe(Ee,Ne,Pe[Ne]);return Ee},ee=(Ee,Pe)=>Ke(Ee,Be(Pe)),he=(Ee,Pe)=>{var Ne={};for(var We in Ee)Je.call(Ee,We)&&Pe.indexOf(We)<0&&(Ne[We]=Ee[We]);if(Ee!=null&&gt)for(var We of gt(Ee))Pe.indexOf(We)<0&&wt.call(Ee,We)&&(Ne[We]=Ee[We]);return Ne};const ue={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fe=({value:Ee,onChange:Pe,form:Ne})=>{const We=(Ee==null?void 0:Ee.is_answer)===1,tt=Ee==null?void 0:Ee.choice_text,Ye=()=>{const Qe=Ne.getFieldsValue().choices.map(lt=>({choice_text:lt.choice_text,is_answer:0}));Ne.setFieldsValue({choices:Qe}),Pe(ee(te({},Ee),{is_answer:1}))};return ze.createElement(Ce.Z,{className:He.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ze.createElement(ke.Z,{onClick:Ye,className:`${He.Z.choiceIndex} ${He.Z.judgementIndex} ${We?He.Z.activeAnswer:""}`},ue[tt]),ze.createElement(ke.Z,{flex:1,className:`${He.Z.editorWrap} ml15`},ze.createElement("div",{className:`${He.Z.inputBorder} ${He.Z.placeholder} ${We?He.Z.activeJudgementAnswer:""}`},tt)),ze.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},ze.createElement("div",{onClick:Ye,className:`${He.Z.setAnswerBtn} ${We?He.Z.activeAnswer:""}`},We?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:Ee,choiceKey:Pe,form:Ne})=>{const[We,tt]=(0,oe.useState)(!1);return ze.createElement("div",{className:He.Z.wrap},ze.createElement("div",{className:He.Z.questionTitleEditorWrap},ze.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ze.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:Ee}))),ze.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ze.createElement(Ie.default.List,{name:"choices",rules:[{validator(Ye,Qe){return Qe.some(nt=>(nt==null?void 0:nt.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ye=>ze.createElement("div",{id:"choices"},Ye.map(Qe=>{var lt=Qe,{key:nt,name:yt}=lt,vt=he(lt,["key","name"]);return ze.createElement(Ie.default.Item,ee(te({},vt),{key:nt,name:yt,noStyle:!0}),ze.createElement(fe,{form:Ne}))})))),ze.createElement("div",{onClick:()=>tt(!0)},ze.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ze.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:We}))))}},31457:function(_e,be,ae){"use strict";ae.d(be,{h:function(){return te},x:function(){return ee}});var oe=ae(39793),Ce=ae(8423),ke=ae(76902),Ie=ae(59301),He=Object.defineProperty,Te=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,gt=(he,ue,fe)=>ue in he?He(he,ue,{enumerable:!0,configurable:!0,writable:!0,value:fe}):he[ue]=fe,Je=(he,ue)=>{for(var fe in ue||(ue={}))Ke.call(ue,fe)&&gt(he,fe,ue[fe]);if(ot)for(var fe of ot(ue))Be.call(ue,fe)&&gt(he,fe,ue[fe]);return he},wt=(he,ue)=>Te(he,ze(ue)),Fe=(he,ue)=>{var fe={};for(var me in he)Ke.call(he,me)&&ue.indexOf(me)<0&&(fe[me]=he[me]);if(he!=null&&ot)for(var me of ot(he))ue.indexOf(me)<0&&Be.call(he,me)&&(fe[me]=he[me]);return fe};const te=he=>{var ue=he,{value:fe,onChange:me,scrollId:Ee}=ue,Pe=Fe(ue,["value","onChange","scrollId"]);return Ie.createElement("div",{id:Ee||""},Ie.createElement(oe.Z,wt(Je({},Pe),{defaultValue:fe,onChange:(Ne,We)=>{We!=null&&We.length?me(Ne,We):me(Ne)}})))},ee=({value:he,onChange:ue,placeholder:fe,height:me=140,isEdit:Ee,miniToolbar:Pe,watch:Ne=!0})=>Ee?Ie.createElement(oe.Z,{watch:Ne,isFocus:!0,height:me||void 0,placeholder:fe,defaultValue:he,onChange:ue,miniToolbar:Pe}):Ie.createElement("div",{style:{cursor:"pointer"}},he?Ie.createElement(ke.Z,{className:Ce.Z.inputBorder,value:he}):Ie.createElement("div",{className:`${Ce.Z.inputBorder} ${Ce.Z.placeholder} inputBorderError`},fe))},44272:function(_e,be,ae){"use strict";ae.d(be,{W:function(){return lt}});var oe=ae(59301),Ce=ae(6767),ke=ae(96599),Ie=ae(28284),He=ae(71411),Te=ae(77019),ze=ae(5269),ot=ae(25399),Ke=ae(37568),Be=ae(71051),gt=ae(8423),Je=ae(31457),wt=ae(39793),Fe=ae(61485),te=Object.defineProperty,ee=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ee=(nt,yt,vt)=>yt in nt?te(nt,yt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):nt[yt]=vt,Pe=(nt,yt)=>{for(var vt in yt||(yt={}))fe.call(yt,vt)&&Ee(nt,vt,yt[vt]);if(ue)for(var vt of ue(yt))me.call(yt,vt)&&Ee(nt,vt,yt[vt]);return nt},Ne=(nt,yt)=>ee(nt,he(yt)),We=(nt,yt)=>{var vt={};for(var St in nt)fe.call(nt,St)&&yt.indexOf(St)<0&&(vt[St]=nt[St]);if(nt!=null&&ue)for(var St of ue(nt))yt.indexOf(St)<0&&me.call(nt,St)&&(vt[St]=nt[St]);return vt};const tt=nt=>{var yt=nt,{value:vt,onChange:St}=yt,Lt=We(yt,["value","onChange"]);const jt=Bt=>{St([Bt])};return oe.createElement(wt.Z,Ne(Pe({},Lt),{defaultValue:vt==null?void 0:vt[0],onChange:jt}))},Ye=nt=>{if(!nt)return!1;if(/^s*$/.test(nt)||nt.trim()===""){Ce.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let yt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return nt==="|"?(Ce.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Qe=({value:nt=[],onClose:yt})=>oe.createElement(ke.default,{closable:!0,onClose:yt,className:gt.Z.keywordTag},oe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},nt.join(" \u6216 "))),lt=({questionTitlePlaceholder:nt,form:yt,showKeywords:vt,isMustKeyWords:St=vt})=>{const[Lt,jt]=(0,oe.useState)(!1),[Bt,cn]=(0,oe.useState)(""),pt=Ie.default.useWatch("use_keywords",yt),ut=Ie.default.useWatch("question_score",yt);return oe.createElement("div",{className:gt.Z.wrap},oe.createElement("div",{className:gt.Z.questionTitleEditorWrap},oe.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},oe.createElement(Je.h,{scrollId:"name",watch:!0,height:140,placeholder:nt}))),oe.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},oe.createElement(tt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),vt&&!St&&oe.createElement(Ie.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},oe.createElement(He.Z,{defaultChecked:!0})),vt&&St&&oe.createElement(Te.Z,{align:"middle",className:"mb30"},oe.createElement(Ie.default.Item,{name:"use_keywords",valuePropName:"checked"},oe.createElement(He.Z,null)),oe.createElement(ze.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),oe.createElement(ze.Z,null,oe.createElement(ot.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},oe.createElement(Fe.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(pt||!St)&&oe.createElement(Ie.default.List,{name:"keywords",rules:[{validator(at,Wt){return St?Wt!=null&&Wt.length?(Wt==null?void 0:Wt.reduce((Tt,Xt)=>Tt+Xt.score,0))>parseFloat(ut)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(at,{add:Wt,remove:rn})=>oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${gt.Z.title} mb10`},St?"\u5173\u952E\u8BCD":oe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),oe.createElement(Te.Z,{align:"middle",className:"font14 mb30"},oe.createElement(ze.Z,{flex:1},oe.createElement(Ke.default,{value:Bt,onChange:Tt=>{cn(Tt.target.value)},maxLength:50,allowClear:!0,onPressEnter:Tt=>{var Xt,nn,Nn,Rt;const At=`${(Xt=Tt.target)==null?void 0:Xt.value}`,Zt=(Nn=(nn=At==null?void 0:At.split("|"))==null?void 0:nn.filter(qe=>!!qe))==null?void 0:Nn.map(qe=>qe==null?void 0:qe.trim()),In=yt.getFieldValue("keywords"),Dn=((Rt=In==null?void 0:In.map(qe=>qe==null?void 0:qe.keyword))==null?void 0:Rt.flat())||[];for(const qe of Zt)if(Dn.includes(qe)){Ce.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ye(At)&&(Wt({keyword:Zt,score:1}),cn(""))},className:gt.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),oe.createElement(ze.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),at.map(Tt=>{var Xt=Tt,{key:nn,name:Nn}=Xt,Rt=We(Xt,["key","name"]);return oe.createElement(Te.Z,{key:nn,className:"mb20",style:{marginRight:148}},oe.createElement(ze.Z,{flex:1},oe.createElement(Te.Z,{align:"middle",justify:"space-between"},oe.createElement(Ie.default.Item,Ne(Pe({},Rt),{name:[Nn,"keyword"]}),oe.createElement(Qe,{onClose:()=>rn(Nn)})),St&&oe.createElement(Ie.default.Item,Ne(Pe({},Rt),{name:[Nn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:gt.Z.blankInputNumberWrapper}),oe.createElement(Be.Z,{className:gt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),oe.createElement("div",{onClick:()=>jt(!0)},oe.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},oe.createElement(Je.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Lt}))))}},77762:function(_e,be,ae){"use strict";ae.d(be,{tc:function(){return Vi.t},uh:function(){return oe.u},rL:function(){return yi},u8:function(){return ke.u},ZZ:function(){return Ce.Z},Wk:function(){return Ie.W}});var oe=ae(81727),Ce=ae(14289),ke=ae(92046),Ie=ae(44272),He=ae(59301),Te=ae(8848),ze=ae(28284),ot=ae(77019),Ke=ae(5269),Be=ae(71051),gt=ae(25399),Je=ae(75727),wt=ae(8423),Fe=ae(12893),te=ae(31457),ee=ae(62957),he=ae(37568),ue=ae(71411),fe=ae(59301),me=Object.defineProperty,Ee=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Ye=(kn,Vt,Qn)=>Vt in kn?me(kn,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):kn[Vt]=Qn,Qe=(kn,Vt)=>{for(var Qn in Vt||(Vt={}))We.call(Vt,Qn)&&Ye(kn,Qn,Vt[Qn]);if(Ne)for(var Qn of Ne(Vt))tt.call(Vt,Qn)&&Ye(kn,Qn,Vt[Qn]);return kn},lt=(kn,Vt)=>Ee(kn,Pe(Vt)),nt=(kn,Vt)=>{var Qn={};for(var ai in kn)We.call(kn,ai)&&Vt.indexOf(ai)<0&&(Qn[ai]=kn[ai]);if(kn!=null&&Ne)for(var ai of Ne(kn))Vt.indexOf(ai)<0&&tt.call(kn,ai)&&(Qn[ai]=kn[ai]);return Qn};const yt=({value:kn,onChange:Vt})=>{const Qn=Un=>{ee.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:wt.Z.modal,onOk:()=>{const si=[...kn];si.splice(Un,1),Vt(si)}})},ai=()=>{const Un=[...kn];Un.push(""),Vt(Un)};return fe.createElement(ot.Z,{className:"ml20"},fe.createElement(Ke.Z,{flex:1},kn==null?void 0:kn.map((Un,si)=>fe.createElement(ot.Z,{key:`${Un}_${si}`,align:"middle",className:"mb20"},fe.createElement(he.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Un,autoSize:{maxRows:3},maxLength:1e3,onBlur:li=>{const Me=[...kn],ii=li.target.value.trim();Me[si]=ii,Vt(Me)}}),fe.createElement(gt.Z,{title:"\u5220\u9664"},fe.createElement(Fe.Z,{className:wt.Z.deleteIcon,style:{marginLeft:15,visibility:si>0?"visible":"hidden"},onClick:()=>Qn(si)}))))),fe.createElement(Ke.Z,null,fe.createElement("div",{className:`${wt.Z.addBtn}`,onClick:()=>{ai()}},"\u65B0\u589E\u7B54\u6848")))},vt=({value:kn=!0,onChange:Vt})=>fe.createElement(ue.Z,{checked:!kn,onChange:Qn=>{Vt(!Qn)}}),St="\u2581",Lt=({questionTitlePlaceholder:kn,form:Vt,name:Qn,scoreByBlank:ai=!1,answerKey:Un,titleKey:si="name",analysisKey:li="analysis",isOrdered:Me="is_ordered"})=>{var ii,ti;const[On,ni]=(0,He.useState)(!1),Ei=(qn,Ni)=>{const mn=Ni.line;let Hn=0;for(let Yi=0;Yi<mn;Yi++)Hn+=qn.getLine(Yi).split(St).length-1;const Di=qn.getLine(mn).substring(0,Ni.ch);return Hn+=Di.split(St).length-1,Hn},ui=(qn,Ni,mn,Hn)=>{const Di=qn.getRange(Ni.from,Ni.to);let Yi=0;if(Ni.text.forEach(mi=>{Yi+=mi.split(St).length-1}),Ni.origin!=="setValue"){if(Di&&Di.indexOf(St)!==-1){const mi=Di.split(St).length-1,Ct=Ei(qn,Ni.from);if(console.log(`\u5220\u9664${mi}\u4E2A\uFF0C \u524D\u9762\u6709${Ct}\u4E2A\uFF0C\u65B0\u589E${Yi}\u4E2A`),mi>1){const $t=Array.from({length:mi},(fi,gi)=>Ct+gi);Hn($t)}else Hn(Ct)}else if(Yi>0){const mi=Ei(qn,Ni.from);console.log(`\u65B0\u589E${Yi}\u4E2A\uFF0C\u4E4B\u524D\u6709${mi}\u4E2A`),mn(Yi,mi)}}},tr=()=>{const qn=Vt.getFieldValue(["sub_item_banks",...Un]);Vt.setFieldValue(["sub_item_banks",...Un],qn==null?void 0:qn.map((Ni,mn)=>lt(Qe({},Ni),{position:mn+1})))},Sn=(0,He.useRef)(),sn=(qn,Ni)=>{for(let mn=0;mn<qn;mn++)Sn.current({position:null,answer_text:[""]},Ni+mn);tr()},dn=(0,He.useRef)(),_n=qn=>{dn.current(qn),tr()},Ri=(ti=(ii=Vt.getFieldValue("sub_item_banks"))==null?void 0:ii[Un==null?void 0:Un[0]])==null?void 0:ti[Un==null?void 0:Un[1]];return(0,He.useEffect)(()=>{console.log("========",Vt.getFieldsValue())},[Vt]),fe.createElement("div",{className:wt.Z.wrap},fe.createElement("div",{className:wt.Z.questionTitleEditorWrap},fe.createElement(ze.default.Item,{label:"\u9898\u5E72",name:si,labelCol:{span:24},rules:[{required:!0}]},fe.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:kn,showNullButton:!0,onCMBeforeChange:(qn,Ni)=>{ui(qn,Ni,sn,_n)}}))),fe.createElement(ze.default.List,{name:Un,rules:[{validator(qn,Ni){if((Ni==null?void 0:Ni.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const mn of Ni){const{answer_text:Hn}=mn||{};if(Hn!=null&&Hn.some(Di=>(Di==null?void 0:Di.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(qn,{add:Ni,remove:mn},{errors:Hn})=>(Sn.current=Ni,dn.current=mn,fe.createElement(fe.Fragment,null,fe.createElement(ze.default.Item,{label:fe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(qn!=null&&qn.length)&&fe.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),qn.map((Di,Yi)=>{var mi=Di,{key:Ct,name:$t}=mi,fi=nt(mi,["key","name"]);return fe.createElement(ot.Z,{align:"top",key:Ct},fe.createElement(Ke.Z,{className:`${wt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Yi+1),fe.createElement(Ke.Z,{flex:1},fe.createElement(ot.Z,{align:"top",justify:"space-between"},fe.createElement(Ke.Z,{flex:1},fe.createElement(ze.default.Item,lt(Qe({},fi),{name:[$t,"answer_text"],noStyle:!0}),fe.createElement(yt,null))),ai&&fe.createElement(Ke.Z,{flex:"224px"},fe.createElement(ze.default.Item,lt(Qe({},fi),{name:[$t,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:wt.Z.blankInputNumberWrapper}),fe.createElement(Be.Z,{className:wt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),fe.createElement(ze.default.Item,lt(Qe({},fi),{name:[$t,"position"],noStyle:!0}),fe.createElement(he.default,{type:"hidden"}))))})))),fe.createElement(ot.Z,{align:"middle"},fe.createElement(ze.default.Item,{name:[Qn,"downcase"],valuePropName:"checked"},fe.createElement(ue.Z,null)),fe.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),fe.createElement(ot.Z,{align:"middle"},fe.createElement(ze.default.Item,{name:[Qn,"no_space"],valuePropName:"checked"},fe.createElement(ue.Z,null)),fe.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ri==null?void 0:Ri.length)>1&&fe.createElement(ot.Z,{align:"middle",className:(Ri==null?void 0:Ri.length)>1?"mb30":`${wt.Z.hide}`},fe.createElement(ze.default.Item,{name:Me},fe.createElement(vt,null)),fe.createElement(Ke.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),fe.createElement("div",{className:"mt30",onClick:()=>ni(!0)},fe.createElement(ze.default.Item,{name:li,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},fe.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:On}))))};var jt=ae(59301),Bt=Object.defineProperty,cn=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,rn=(kn,Vt,Qn)=>Vt in kn?Bt(kn,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):kn[Vt]=Qn,Tt=(kn,Vt)=>{for(var Qn in Vt||(Vt={}))at.call(Vt,Qn)&&rn(kn,Qn,Vt[Qn]);if(ut)for(var Qn of ut(Vt))Wt.call(Vt,Qn)&&rn(kn,Qn,Vt[Qn]);return kn},Xt=(kn,Vt)=>cn(kn,pt(Vt)),nn=(kn,Vt)=>{var Qn={};for(var ai in kn)at.call(kn,ai)&&Vt.indexOf(ai)<0&&(Qn[ai]=kn[ai]);if(kn!=null&&ut)for(var ai of ut(kn))Vt.indexOf(ai)<0&&Wt.call(kn,ai)&&(Qn[ai]=kn[ai]);return Qn};const Nn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Rt=({value:kn,onChange:Vt,form:Qn,choiceKey:ai})=>{const Un=(kn==null?void 0:kn.is_answer)===1,si=kn==null?void 0:kn.choice_text,li=()=>{var Me;const ii=(Me=Qn==null?void 0:Qn.getFieldValue(["sub_item_banks",...ai]))==null?void 0:Me.map(ti=>({choice_text:ti.choice_text,is_answer:0}));Qn==null||Qn.setFieldValue(["sub_item_banks",...ai],ii),Vt(Xt(Tt({},kn),{is_answer:1}))};return jt.createElement(ot.Z,{className:wt.Z.choiceWrap,align:"middle",wrap:!1},jt.createElement(Ke.Z,{onClick:li,className:`${wt.Z.choiceIndex} ${wt.Z.judgementIndex} ${Un?wt.Z.activeAnswer:""}`},Nn[si]),jt.createElement(Ke.Z,{flex:1,className:`${wt.Z.editorWrap} ml15`},jt.createElement("div",{className:`${wt.Z.inputBorder} ${wt.Z.placeholder} ${Un?wt.Z.activeJudgementAnswer:""}`},si)),jt.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},jt.createElement("div",{onClick:li,className:`${wt.Z.setAnswerBtn} ${Un?wt.Z.activeAnswer:""}`},Un?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},At=({questionTitlePlaceholder:kn,choiceKey:Vt="choices",form:Qn,titleKey:ai="name",analysisKey:Un="analysis"})=>{const[si,li]=(0,He.useState)(!1);return jt.createElement("div",{className:wt.Z.wrap},jt.createElement("div",{className:wt.Z.questionTitleEditorWrap},jt.createElement(ze.default.Item,{label:"\u9898\u5E72",name:ai,labelCol:{span:24},rules:[{required:!0}]},jt.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:kn}))),jt.createElement(ze.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},jt.createElement(ze.default.List,{name:Vt,rules:[{validator(Me,ii){return ii.some(On=>(On==null?void 0:On.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Me=>jt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Me.map(ii=>{var ti=ii,{key:On,name:ni}=ti,Ei=nn(ti,["key","name"]);return jt.createElement(ze.default.Item,Xt(Tt({},Ei),{key:On,name:ni,noStyle:!0}),jt.createElement(Rt,{form:Qn,choiceKey:Vt}))})))),jt.createElement("div",{className:"mt30",onClick:()=>li(!0)},jt.createElement(ze.default.Item,{name:Un,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},jt.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:si}))))};var Zt=ae(6767),In=ae(96599),Dn=ae(39793),qe=ae(61485),Oe=Object.defineProperty,Le=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,on=(kn,Vt,Qn)=>Vt in kn?Oe(kn,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):kn[Vt]=Qn,An=(kn,Vt)=>{for(var Qn in Vt||(Vt={}))De.call(Vt,Qn)&&on(kn,Qn,Vt[Qn]);if(it)for(var Qn of it(Vt))ht.call(Vt,Qn)&&on(kn,Qn,Vt[Qn]);return kn},Zn=(kn,Vt)=>Le(kn,Ge(Vt)),Ft=(kn,Vt)=>{var Qn={};for(var ai in kn)De.call(kn,ai)&&Vt.indexOf(ai)<0&&(Qn[ai]=kn[ai]);if(kn!=null&&it)for(var ai of it(kn))Vt.indexOf(ai)<0&&ht.call(kn,ai)&&(Qn[ai]=kn[ai]);return Qn};const It=kn=>{var Vt=kn,{value:Qn,onChange:ai}=Vt,Un=Ft(Vt,["value","onChange"]);const si=li=>{ai([li])};return He.createElement(Dn.Z,Zn(An({},Un),{defaultValue:Qn==null?void 0:Qn[0],onChange:si}))},Gt=kn=>{if(!kn)return!1;let Vt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return kn==="|"?(Zt.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},fn=({value:kn=[],onClose:Vt})=>He.createElement(In.default,{closable:!0,onClose:Vt,className:wt.Z.keywordTag},He.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},kn.join(" \u6216 "))),Pn=({questionTitlePlaceholder:kn,form:Vt,showKeywords:Qn,isMustKeyWords:ai=Qn,titleKey:Un="name",analysisKey:si="analysis",answerTexts:li="answer_texts",keywords:Me="keywords",useKeywords:ii="use_keywords",indexs:ti})=>{const[On,ni]=(0,He.useState)(!1),[Ei,ui]=(0,He.useState)(""),[tr,Sn]=(0,He.useState)(!1),sn=ze.default.useWatch("question_score",Vt);return He.createElement("div",{className:wt.Z.wrap},He.createElement("div",{className:wt.Z.questionTitleEditorWrap},He.createElement(ze.default.Item,{label:"\u9898\u5E72",name:Un,labelCol:{span:24},rules:[{required:!0}]},He.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:kn}))),He.createElement(ze.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:li,labelCol:{span:24}},He.createElement(It,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Qn&&!ai&&He.createElement(ze.default.Item,{hidden:!0,name:ii,valuePropName:"checked"},He.createElement(ue.Z,{defaultChecked:!0})),Qn&&ai&&He.createElement(ot.Z,{align:"middle",className:"mb30"},He.createElement(ze.default.Item,{name:ii,valuePropName:"checked"},He.createElement(ue.Z,{onChange:()=>{var dn,_n,Ri,qn,Ni,mn;console.log(Vt.getFieldsValue()),Sn((Ri=(_n=(dn=Vt.getFieldsValue())==null?void 0:dn.sub_item_banks)==null?void 0:_n[ti])==null?void 0:Ri.use_keywords),console.log((mn=(Ni=(qn=Vt.getFieldsValue())==null?void 0:qn.sub_item_banks)==null?void 0:Ni[ti])==null?void 0:mn.use_keywords),console.log(tr)}})),He.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),He.createElement(Ke.Z,null,He.createElement(gt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},He.createElement(qe.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(tr||!ai)&&He.createElement(ze.default.List,{name:Me,rules:[{validator(dn,_n){return ai?_n!=null&&_n.length?(_n==null?void 0:_n.reduce((qn,Ni)=>qn+Ni.score,0))>parseFloat(sn)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(dn,{add:_n,remove:Ri})=>He.createElement(He.Fragment,null,He.createElement("div",{className:`${wt.Z.title} mb10`},ai?"\u5173\u952E\u8BCD":He.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),He.createElement(ot.Z,{align:"middle",className:"font14 mb30"},He.createElement(Ke.Z,{flex:1},He.createElement(he.default,{value:Ei,onChange:qn=>{ui(qn.target.value)},maxLength:50,allowClear:!0,onPressEnter:qn=>{var Ni,mn,Hn,Di;const Yi=`${(Ni=qn.target)==null?void 0:Ni.value}`,mi=(Hn=(mn=Yi==null?void 0:Yi.split("|"))==null?void 0:mn.filter(fi=>!!fi))==null?void 0:Hn.map(fi=>fi==null?void 0:fi.trim()),Ct=Vt.getFieldValue(["sub_item_banks",...Me]),$t=((Di=Ct==null?void 0:Ct.map(fi=>fi==null?void 0:fi.keyword))==null?void 0:Di.flat())||[];for(const fi of mi)if($t.includes(fi)){Zt.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Gt(Yi)&&(_n({keyword:mi,score:1}),ui(""))},className:wt.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),He.createElement(Ke.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),dn.map(qn=>{var Ni=qn,{key:mn,name:Hn}=Ni,Di=Ft(Ni,["key","name"]);return He.createElement(ot.Z,{key:mn,className:"mb20",style:{marginRight:148}},He.createElement(Ke.Z,{flex:1},He.createElement(ot.Z,{align:"middle",justify:"space-between"},He.createElement(ze.default.Item,Zn(An({},Di),{name:[Hn,"keyword"]}),He.createElement(fn,{onClose:()=>Ri(Hn)})),ai&&He.createElement(ze.default.Item,Zn(An({},Di),{name:[Hn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:wt.Z.blankInputNumberWrapper}),He.createElement(Be.Z,{className:wt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),He.createElement("div",{onClick:()=>ni(!0)},He.createElement(ze.default.Item,{name:si,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},He.createElement(te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:On}))))};var an=ae(59301),Ot=Object.defineProperty,Mn=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,bn=(kn,Vt,Qn)=>Vt in kn?Ot(kn,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):kn[Vt]=Qn,mt=(kn,Vt)=>{for(var Qn in Vt||(Vt={}))un.call(Vt,Qn)&&bn(kn,Qn,Vt[Qn]);if(Kt)for(var Qn of Kt(Vt))Vn.call(Vt,Qn)&&bn(kn,Qn,Vt[Qn]);return kn},jn=(kn,Vt)=>Mn(kn,Ht(Vt)),Kn=(kn,Vt)=>{var Qn={};for(var ai in kn)un.call(kn,ai)&&Vt.indexOf(ai)<0&&(Qn[ai]=kn[ai]);if(kn!=null&&Kt)for(var ai of Kt(kn))Vt.indexOf(ai)<0&&Vn.call(kn,ai)&&(Qn[ai]=kn[ai]);return Qn};const{Panel:Ut}=Te.default,yi=({questionTitlePlaceholder:kn,choiceKey:Vt,form:Qn,withScore:ai})=>{const[Un,si]=(0,He.useState)([]),li=Me=>{si(Me)};return an.createElement("div",{className:wt.Z.wrap},an.createElement("div",{className:wt.Z.questionTitleEditorWrap},an.createElement(ze.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},an.createElement(te.h,{scrollId:"name",watch:!0,height:140,placeholder:kn}))),an.createElement(ze.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),an.createElement(ze.default.List,{name:"sub_item_banks",rules:[{validator(Me,ii){return ii?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Me,{add:ii,remove:ti,move:On})=>{const ni=Qn.getFieldValue("sub_item_banks");return an.createElement(an.Fragment,null,an.createElement(Te.default,{className:Me.length>0?wt.Z.collapseWrapper:"",bordered:!1,activeKey:Un,onChange:li,expandIcon:({isActive:Ei})=>an.createElement("i",{className:`iconfont icon-weizhankai ${Ei?wt.Z.open:wt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Me.map((Ei,ui)=>{var tr=Ei,{key:Sn,name:sn}=tr,dn=Kn(tr,["key","name"]),_n,Ri,qn,Ni,mn,Hn,Di,Yi,mi,Ct;return an.createElement(Ut,{className:wt.Z.panel,forceRender:!0,header:an.createElement("div",{className:wt.Z.panelHeader},"\u7B2C",ui+1,"\u5C0F\u9898",an.createElement("span",null,"\uFF08",((_n=ni==null?void 0:ni[sn])==null?void 0:_n.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Ri=ni==null?void 0:ni[sn])==null?void 0:Ri.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((qn=ni==null?void 0:ni[sn])==null?void 0:qn.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((Ni=ni==null?void 0:ni[sn])==null?void 0:Ni.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:sn,extra:an.createElement(ot.Z,{align:"middle",onClick:$t=>$t.stopPropagation()},ai&&an.createElement(Ke.Z,null,an.createElement(ze.default.Item,jn(mt({},dn),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[sn,"question_score"],className:wt.Z.blankInputNumberWrapper}),an.createElement(Be.Z,{className:wt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),an.createElement(Ke.Z,null,an.createElement(ot.Z,{align:"middle",className:"pl40",justify:"end"},ui!==0&&an.createElement("div",{onClick:()=>{var $t;On(ui,ui-1);const fi=($t=Qn.getFieldValue("sub_item_banks"))==null?void 0:$t.map((gi,zt)=>(Me.map((pi,Fi)=>{zt===Fi&&(gi.q_position=Number(pi.name)+1)}),gi));Qn.setFieldValue("sub_item_banks",fi)}},an.createElement(gt.Z,{title:"\u4E0A\u79FB"},an.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),ui<Me.length-1&&an.createElement("div",{onClick:()=>{var $t;On(ui,ui+1);const fi=($t=Qn.getFieldValue("sub_item_banks"))==null?void 0:$t.map((gi,zt)=>(Me.map((pi,Fi)=>{zt===Fi&&(gi.q_position=Number(pi.name)+1)}),gi));Qn.setFieldValue("sub_item_banks",fi)},className:ui===0?"":"ml15"},an.createElement(gt.Z,{title:"\u4E0B\u79FB"},an.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),an.createElement(Ke.Z,null,an.createElement(gt.Z,{title:"\u5220\u9664"},an.createElement(Fe.Z,{className:`${wt.Z.deleteIcon} ml15`,onClick:()=>ti(sn)}))))},an.createElement(ze.default.Item,jn(mt({},dn),{name:sn}),(((mn=ni==null?void 0:ni[sn])==null?void 0:mn.item_type)=="SINGLE"||((Hn=ni==null?void 0:ni[sn])==null?void 0:Hn.item_type)=="MULTIPLE")&&an.createElement(oe.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Di=ni==null?void 0:ni[sn])==null?void 0:Di.item_type)=="MULTIPLE",form:Qn,choiceKey:[sn,"choices"],titleKey:[sn,"name"],analysisKey:[sn,"analysis"],choiceOptionsPath:["sub_item_banks",sn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Yi=ni==null?void 0:ni[sn])==null?void 0:Yi.item_type)=="COMPLETION"&&an.createElement(Lt,{form:Qn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,name:sn,titleKey:[sn,"name"],analysisKey:[sn,"analysis"],isOrdered:[sn,"is_ordered"],answerKey:[sn,"standard_answers"]}),((mi=ni==null?void 0:ni[sn])==null?void 0:mi.item_type)=="JUDGMENT"&&an.createElement(At,{form:Qn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[sn,"name"],analysisKey:[sn,"analysis"],choiceKey:[sn,"choices"]}),((Ct=ni==null?void 0:ni[sn])==null?void 0:Ct.item_type)=="SUBJECTIVE"&&an.createElement(Pn,{showKeywords:!0,isMustKeyWords:!1,form:Qn,titleKey:[sn,"name"],analysisKey:[sn,"analysis"],answerTexts:[sn,"answer_texts"],useKeywords:[sn,"use_keywords"],keywords:[sn,"keywords"],indexs:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Me.length<20&&an.createElement(Je.Z,{menu:{items:[{label:an.createElement("div",{onClick:()=>{ii({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),si([Me==null?void 0:Me.length,...Un])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:an.createElement("div",{onClick:()=>{ii({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),si([Me==null?void 0:Me.length,...Un])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:an.createElement("div",{onClick:()=>{ii({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),si([Me==null?void 0:Me.length,...Un])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:an.createElement("div",{onClick:()=>{ii({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),si([Me==null?void 0:Me.length,...Un])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:an.createElement("div",{onClick:()=>{ii({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),si([Me==null?void 0:Me.length,...Un])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Ei=>Ei.show).map(Ei=>({label:Ei.label,key:Ei.key}))}},an.createElement("div",{className:`${wt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Vi=ae(68571)},76902:function(_e,be,ae){"use strict";ae.d(be,{z:function(){return tt},Z:function(){return Ye}});var oe=ae(59301),Ce=ae(8944),ke=ae(81428),Ie=ae(64018),He=ae(81168),Te=ae(346),ze=ae(51257),ot=ae(15342),Ke=ae(1012),Be=ae(45677),gt=ae(59301),wt=({html:Qe})=>{const lt=(0,oe.useRef)(null),nt=(0,oe.useRef)(null),yt=`.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,oe.useEffect)(()=>{const vt=lt.current.attachShadow({mode:"open"});nt.current=document.createElement("div"),nt.current.className="markdown-body",nt.current.innerHTML=Qe,vt.appendChild(nt.current);const St=document.createElement("style");return St.textContent=yt,vt.appendChild(St),()=>{vt.innerHTML=""}},[]),(0,oe.useEffect)(()=>{nt.current&&(nt.current.innerHTML=Qe)},[Qe]),gt.createElement("div",{ref:lt})};function Fe(Qe){const lt=["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"],nt=new RegExp(`\\b(${lt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Qe.replace(nt,"").trim()}var te=Object.defineProperty,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(Qe,lt,nt)=>lt in Qe?te(Qe,lt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Qe[lt]=nt,me=(Qe,lt)=>{for(var nt in lt||(lt={}))he.call(lt,nt)&&fe(Qe,nt,lt[nt]);if(ee)for(var nt of ee(lt))ue.call(lt,nt)&&fe(Qe,nt,lt[nt]);return Qe};const Ee="@\u2581\u2581@",Pe="@\u2581@",Ne=/<pre[^>]*>/g;function We(Qe){let lt=document.createElement("div");return lt.innerHTML=Qe,lt.childNodes.length===0?"":lt.childNodes[0].nodeValue}const tt=(Qe,lt)=>{Qe=Qe||"";const nt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,yt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,vt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,St=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return lt?Qe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(nt,(Lt,jt,Bt,cn,pt,ut,at)=>{const Wt=jt||cn||ut,rn=Bt||pt||at||"?";return Te.Z.API_SERVER+"/api/attachments/"+Wt+rn+"&t="+(0,ze.Jn)(Wt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Qe=Qe.replace(St,(Lt,jt,Bt,cn,pt,ut,at)=>{const Wt=jt||cn||ut,rn=Bt||pt||at||"?";return Te.Z.API_SERVER+"/attachments/download/"+Wt+rn+"&t="+(0,ze.Jn)(Wt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replace(nt,(Lt,jt,Bt,cn,pt,ut,at)=>{const Wt=jt||cn||ut,rn=Bt||pt||at||"?";return Te.Z.API_SERVER+"/api/attachments/"+Wt+rn+"&t="+(0,ze.Jn)(Wt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replace(yt,(Lt,jt,Bt,cn,pt)=>{const ut=jt||cn,at=Bt||pt||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+ut+at+ut+at+"&t="+(0,ze.Jn)(ut,Date.now())}).replace(vt,(Lt,jt,Bt,cn,pt)=>{const ut=jt||cn,at=Bt||pt||"";return"("+Te.Z.API_SERVER+"/files/uploads/"+ut+at+ut+at+"&t="+(0,ze.Jn)(ut,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,`
`),Qe)};var Ye=({value:Qe="",className:lt,showTextOnly:nt,showLines:yt,style:vt={},stylesPrev:St={},highlightKeywords:Lt,showProgramFill:jt,isProgramFill:Bt,disabledFill:cn=!1,programFillValue:pt,onFillChange:ut=rn=>{},onFillBlur:at=()=>{},onFillFocus:Wt=()=>{}})=>{let rn=Fe(String(Qe||""));const[Tt,Xt]=(0,oe.useState)(""),[nn,Nn]=(0,oe.useState)("office"),[Rt,At]=(0,oe.useState)([]),Zt=(0,oe.useRef)("a"+(0,Ke.Z)()),In={},Dn=It=>/<style[\s\S]*?>/i.test(It||""),qe=(It,Gt,fn)=>{const Pn=document.createElement(It===Pe?"input":"textarea");Pn.style.width="100%",Pn.style.height=It===Pe?"40px":"151px",Pn.rows=5,Pn.spellcheck=!1,Pn.name="edu-program-fill",Pn.placeholder="\u8BF7\u8F93\u5165",Pn.dataset.id=Gt;const an=Object.keys(In).length;return In[an]=Pn,`<span class="edu-program-fill-wrap ${It===Pe?"":"show"}" style="width:${It===Pe?"600px":"100%"}" title=${fn||""}><span>${Pn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Oe(It){return It=It.replace(/!\[.*?\]\(.*?\)/g,""),It=It.replace(/\[.*?\]\(.*?\)/g,""),It=It.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),It=It.replace(/<embed.*?>/g,""),It=It.replace(/<img.*?>/g,""),It=It.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),It=It.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),It=It.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),It=It.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),It}const Le=It=>!nt&&Dn(rn)?It:It.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Gt,fn){let Pn=fn.replace(/(\n|\r)/g,"").split("}"),an=[];return Pn.map(Ot=>{Ot!=""&&an.push(`.${Zt.current} ${Ot}`)}),`<style>${an.join("}")}</style>`}),Ge=(0,oe.useMemo)(()=>{try{const Pn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,an=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ot=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Mn=/\(\/attachments\/download\//g;rn=rn.replace(Mn,"("+Te.Z.API_SERVER+"/attachments/download/").replace(Pn,"("+Te.Z.API_SERVER+"/api/attachments/").replace(an,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(Ot,'"'+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(Pn){}if(jt){let Pn=-1;return rn=rn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(an,Ot,Mn){var Ht;return++Pn,qe(an,Pn,(Ht=pt==null?void 0:pt[Pn])==null?void 0:Ht.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Le(rn||"")}</pre>`}let It=Le(rn);It=(0,ke.ZP)(It);const Gt=(0,ke.ez)();rn.match(/\[TOC\]/)&&(It=It.replace("<p>[TOC]</p>",(0,ke.Qv)()),(0,ke.Iy)()),It=It.replace(/(__special_katext_id_\d+__)/g,(Pn,an)=>{const{type:Ot,expression:Mn}=Gt[an];return(0,ot.renderToString)(We(Mn)||"",{displayMode:Ot==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ke.AL)();const fn=document.createElement("div");if(fn.innerHTML=It,nt)return fn.innerText;if(Lt){const Pn=Lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return on(fn,Pn),fn.innerHTML}return setTimeout(()=>Ft(),500),fn.innerHTML},[rn,Lt]);(0,oe.useEffect)(()=>{An.current&&An.current.querySelectorAll(["input","textarea"]).forEach(Gt=>{Gt.oninput=it,Gt.onblur=De,Gt.onfocus=ht})},[Rt]),(0,oe.useEffect)(()=>{var It,Gt,fn,Pn,an;if(pt!=null&&pt.length)try{const Ot=An.current.querySelectorAll(".edu-program-fill-score"),Mn=An.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ht,Kt]of Mn.entries())Kt.value=((It=pt==null?void 0:pt[Ht])==null?void 0:It.value)||"",((Gt=pt==null?void 0:pt[Ht])==null?void 0:Gt.type)==="warning"?Kt.className="program-fill-warning":((fn=pt==null?void 0:pt[Ht])==null?void 0:fn.type)==="success"?Kt.className="program-fill-success":Kt.className="";for(const[Ht,Kt]of Ot.entries())Kt.innerHTML=(Pn=pt==null?void 0:pt[Ht])!=null&&Pn.score?`${(an=pt==null?void 0:pt[Ht])==null?void 0:an.score}\u5206`:"";At(pt)}catch(Ot){console.log(Ot,"error")}},[pt]);const it=It=>{Rt[It.target.dataset.id]=Rt[It.target.dataset.id]||{},Rt[It.target.dataset.id].value=It.target.value,At([...Rt]),ut(Rt,It.target.dataset.id)},De=It=>{Rt[It.target.dataset.id]=Rt[It.target.dataset.id]||{},Rt[It.target.dataset.id].value=It.target.value,At([...Rt]),at(Rt,It.target.dataset.id)},ht=It=>{Rt[It.target.dataset.id]=Rt[It.target.dataset.id]||{},Rt[It.target.dataset.id].value=It.target.value,At([...Rt]),Wt(Rt,It.target.dataset.id)};function on(It,Gt){return It.childNodes.forEach(fn=>{var Pn;if(fn.childNodes.length>0)on(fn,Gt);else if(fn.nodeName!=="IMG")if(fn.innerHTML)fn.innerHTML=(Pn=fn.innerHTML)==null?void 0:Pn.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const an=document.createElement("span");an.innerHTML=fn.textContent.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),fn.replaceWith(an)}})}const An=(0,oe.useRef)();ke.jb.WebkitLineClamp=yt,yt&&(vt=me(me({},vt),ke.jb));function Zn(It){let Gt=It.target;if(Gt.tagName.toUpperCase()==="A"){let fn=Gt.getAttribute("href");if(fn.indexOf("office")>-1)It.preventDefault(),Xt(fn),Nn("office");else if(fn.indexOf("application/pdf")>-1)It.preventDefault(),Xt(fn),Nn("pdf");else if(fn.indexOf("text/html")>-1)It.preventDefault(),Xt(fn),Nn("html");else if(fn.startsWith("#")){It.preventDefault();let Pn=document.getElementById(fn.replace("#",""));Pn&&Pn.scrollIntoView(!0)}}}const Ft=()=>{var It;const Gt=(It=An.current)==null?void 0:It.querySelectorAll("video");Gt==null||Gt.forEach(fn=>{if(fn.oncontextmenu=()=>!1,fn.src.indexOf(".m3u8")>-1&&!fn.canPlayType("application/vnd.apple.mpegurl")){if(He.ZP.isSupported()){var Pn=new He.ZP;Pn.loadSource(fn.src),Pn.attachMedia(fn)}}})};return(0,oe.useEffect)(()=>{if(An.current&&Ge&&Ge.match(Ne)&&window.PR.prettyPrint(),An.current)return An.current.addEventListener("click",Zn),()=>{var It;(It=An.current)==null||It.removeEventListener("click",Zn),(0,ke.AL)(),(0,ke.Iy)()}},[Ge,An.current,Zn]),(0,oe.useEffect)(()=>{var It;const Gt=fn=>{fn.preventDefault(),fn.clipboardData.setData("text",window.getSelection().toString())};return(It=An.current)==null||It.addEventListener("copy",Gt),()=>{var fn;(fn=An.current)==null||fn.removeEventListener("copy",Gt)}},[An.current]),oe.createElement(oe.Fragment,null,nt&&oe.createElement("div",{ref:An},Ge),!nt&&!Dn(Ge)&&oe.createElement("div",{ref:An,style:me({},vt),className:`${lt||""} ${cn?"disabled-fill":""} markdown-body ${Zt.current}`,dangerouslySetInnerHTML:{__html:Ge}}),!nt&&Dn(Ge)&&oe.createElement(wt,{html:Ge}),oe.createElement(Be.Z,{close:!0,data:Tt,type:Tt!=null&&Tt.length?nn:"",style:me({},St),onClose:()=>Xt("")}))}},69720:function(_e,be,ae){"use strict";ae.d(be,{h:function(){return Ee}});var oe=ae(59301),Ce=ae(82326),ke=ae(28284),Ie=ae(99571),He=ae(89780),Te=ae.n(He),ze=ae(8336),ot=ae(12469),Ke=Object.defineProperty,Be=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,te=(Pe,Ne,We)=>Ne in Pe?Ke(Pe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:We}):Pe[Ne]=We,ee=(Pe,Ne)=>{for(var We in Ne||(Ne={}))wt.call(Ne,We)&&te(Pe,We,Ne[We]);if(Je)for(var We of Je(Ne))Fe.call(Ne,We)&&te(Pe,We,Ne[We]);return Pe},he=(Pe,Ne)=>Be(Pe,gt(Ne));const ue=Ce.default.Option,fe={labelCol:{span:4},wrapperCol:{span:20}},me={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"]};be.Z=({callback:Pe,onCancel:Ne})=>{const[We,tt]=(0,oe.useState)("python");function Ye(lt){tt(me[lt][1])}function Qe(lt){Pe(lt)}return oe.createElement(ke.default,he(ee({},fe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qe,style:{width:500}}),oe.createElement(ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(Ce.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ye},Object.keys(me).map(lt=>oe.createElement(ue,{key:lt,value:lt},me[lt][0])))),oe.createElement(ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(Ee,{mode:We})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ie.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))};function Ee({value:Pe,onChange:Ne,mode:We,options:tt={}}){const Ye=(0,oe.useRef)(),[Qe,lt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(Qe){let nt=function(yt){const vt=yt.getValue();Ne&&Ne(vt)};return Qe.on("change",nt),()=>{Qe.off("change",nt)}}},[Qe,Ne]),(0,oe.useEffect)(()=>{Qe&&Qe.setOption("mode",We)},[Qe,We]),(0,oe.useEffect)(()=>{Qe&&(Pe!==Qe.getValue()||Pe==="")&&setTimeout(()=>{Qe.setValue(Pe||"")},300)},[Qe,Pe]),(0,oe.useEffect)(()=>{if(Ye.current&&!Qe){const nt=Te().fromTextArea(Ye.current,ee({mode:We,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},tt));lt(nt)}},[Ye.current,Qe]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:Ye}))}},39793:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return tr}});var oe=ae(59301),Ce=ae(89780),ke=ae.n(Ce),Ie=ae(76374),He=ae(8336),Te=ae(6313),ze=ae(25717),ot=ae(99498),Ke=ae(25419),Be=ae(67549),gt=ae(76902),Je=({value:Sn="",className:sn,showTextOnly:dn,showLines:_n,style:Ri={}})=>{const qn=(0,oe.useMemo)(()=>"",[Sn]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:qn}}))},wt=Object.defineProperty,Fe=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(Sn,sn,dn)=>sn in Sn?wt(Sn,sn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Sn[sn]=dn,me=(Sn,sn)=>{for(var dn in sn||(sn={}))he.call(sn,dn)&&fe(Sn,dn,sn[dn]);if(ee)for(var dn of ee(sn))ue.call(sn,dn)&&fe(Sn,dn,sn[dn]);return Sn},Ee=(Sn,sn)=>Fe(Sn,te(sn));let Pe=[{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 Ne({onActionCallback:Sn,title:sn,icon:dn,actionName:_n,className:Ri="",children:qn}){function Ni(){Sn(_n)}return oe.createElement("a",{title:sn,className:Ri,onClick:Ni},oe.createElement("i",{className:`${dn}`}),qn)}var We=({watch:Sn,showNullButton:sn,showNullProgramButton:dn,onActionCallback:_n,fullScreen:Ri,insertTemp:qn,hidetoolBar:Ni,extraUse:mn})=>{const Hn=[...Pe,{title:`${Sn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Sn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!Ni&&Hn.map((Di,Yi)=>oe.createElement("li",{key:Yi},Di.actionName?oe.createElement(Ne,Ee(me({},Di),{onActionCallback:_n})):oe.createElement("span",{className:"v-line"}))),sn?oe.createElement("li",null,oe.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_n},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,dn?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_n},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_n},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,qn&&oe.createElement("li",null,oe.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qn}`,onActionCallback:_n},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mn&&oe.createElement("li",null,mn),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(Ne,{icon:`${Ri?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ri?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_n})))},tt=ae(91558),Ye=ae(28284),Qe=ae(37568),lt=ae(99571),nt=Object.defineProperty,yt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Bt=(Sn,sn,dn)=>sn in Sn?nt(Sn,sn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):Sn[sn]=dn,cn=(Sn,sn)=>{for(var dn in sn||(sn={}))Lt.call(sn,dn)&&Bt(Sn,dn,sn[dn]);if(St)for(var dn of St(sn))jt.call(sn,dn)&&Bt(Sn,dn,sn[dn]);return Sn},pt=(Sn,sn)=>yt(Sn,vt(sn));const ut={labelCol:{span:4},wrapperCol:{span:20}};var at=({callback:Sn,onCancel:sn})=>{function dn(_n){Sn(_n)}return oe.createElement(Ye.default,pt(cn({},ut),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:dn,style:{width:500}}),oe.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(Qe.default,null)),oe.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(Qe.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(lt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(lt.ZP,{type:"ghost",onClick:sn},"\u53D6\u6D88")))},Wt=ae(69720),rn=ae(17077),Tt=ae(62957),Xt=ae(77019),nn=ae(9507),Nn=ae(59301),Rt=({callback:Sn,onCancel:sn})=>{const dn=document.createElement("canvas"),_n=dn.getContext("2d");dn.width=1e3,dn.height=800,_n.fillStyle="#ffffff",_n.fillRect(0,0,dn.width,dn.height);const Ri=dn.toDataURL("image/png");return Nn.createElement(Tt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Nn.createElement(Xt.Z,{style:{height:"100vh"}},Nn.createElement(nn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ri,visible:!0,title:String(Date.now())},onOk:qn=>{Sn({src:qn.url})},onClose:sn})))},At=ae(12378);function Zt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Zt,go.CommandHandler),Zt.prototype.canAlignSelection=function(){var Sn=this.diagram;return!(Sn===null||Sn.isReadOnly||Sn.isModelReadOnly||Sn.selection.count<2)},Zt.prototype.alignLeft=function(){var Sn=this.diagram;Sn.startTransaction("aligning left");var sn=1/0;Sn.selection.each(function(dn){dn instanceof go.Link||(sn=Math.min(dn.position.x,sn))}),Sn.selection.each(function(dn){dn instanceof go.Link||dn.move(new go.Point(sn,dn.position.y))}),Sn.commitTransaction("aligning left")},Zt.prototype.alignRight=function(){var Sn=this.diagram;Sn.startTransaction("aligning right");var sn=-1/0;Sn.selection.each(function(dn){if(!(dn instanceof go.Link)){var _n=dn.actualBounds.x+dn.actualBounds.width;sn=Math.max(_n,sn)}}),Sn.selection.each(function(dn){dn instanceof go.Link||dn.move(new go.Point(sn-dn.actualBounds.width,dn.position.y))}),Sn.commitTransaction("aligning right")},Zt.prototype.alignTop=function(){var Sn=this.diagram;Sn.startTransaction("alignTop");var sn=1/0;Sn.selection.each(function(dn){dn instanceof go.Link||(sn=Math.min(dn.position.y,sn))}),Sn.selection.each(function(dn){dn instanceof go.Link||dn.move(new go.Point(dn.position.x,sn))}),Sn.commitTransaction("alignTop")},Zt.prototype.alignBottom=function(){var Sn=this.diagram;Sn.startTransaction("aligning bottom");var sn=-1/0;Sn.selection.each(function(dn){if(!(dn instanceof go.Link)){var _n=dn.actualBounds.y+dn.actualBounds.height;sn=Math.max(_n,sn)}}),Sn.selection.each(function(dn){dn instanceof go.Link||dn.move(new go.Point(dn.actualBounds.x,sn-dn.actualBounds.height))}),Sn.commitTransaction("aligning bottom")},Zt.prototype.alignCenterX=function(){var Sn=this.diagram,sn=Sn.selection.first();if(sn){Sn.startTransaction("aligning Center X");var dn=sn.actualBounds.x+sn.actualBounds.width/2;Sn.selection.each(function(_n){_n instanceof go.Link||_n.move(new go.Point(dn-_n.actualBounds.width/2,_n.actualBounds.y))}),Sn.commitTransaction("aligning Center X")}},Zt.prototype.alignCenterY=function(){var Sn=this.diagram,sn=Sn.selection.first();if(sn){Sn.startTransaction("aligning Center Y");var dn=sn.actualBounds.y+sn.actualBounds.height/2;Sn.selection.each(function(_n){_n instanceof go.Link||_n.move(new go.Point(_n.actualBounds.x,dn-_n.actualBounds.height/2))}),Sn.commitTransaction("aligning Center Y")}},Zt.prototype.alignColumn=function(Sn){var sn=this.diagram;sn.startTransaction("align Column"),Sn===void 0&&(Sn=0),Sn=parseFloat(Sn);var dn=new Array;sn.selection.each(function(mn){mn instanceof go.Link||dn.push(mn)});for(var _n=0;_n<dn.length-1;_n++){var Ri=dn[_n],qn=Ri.actualBounds.y+Ri.actualBounds.height+Sn,Ni=dn[_n+1];Ni.move(new go.Point(Ri.actualBounds.x,qn))}sn.commitTransaction("align Column")},Zt.prototype.alignRow=function(Sn){Sn===void 0&&(Sn=0),Sn=parseFloat(Sn);var sn=this.diagram;sn.startTransaction("align Row");var dn=new Array;sn.selection.each(function(mn){mn instanceof go.Link||dn.push(mn)});for(var _n=0;_n<dn.length-1;_n++){var Ri=dn[_n],qn=Ri.actualBounds.x+Ri.actualBounds.width+Sn,Ni=dn[_n+1];Ni.move(new go.Point(qn,Ri.actualBounds.y))}sn.commitTransaction("align Row")},Zt.prototype.canRotate=function(Sn){var sn=this.diagram;return!(sn===null||sn.isReadOnly||sn.isModelReadOnly||sn.selection.count<1)},Zt.prototype.rotate=function(Sn){Sn===void 0&&(Sn=90);var sn=this.diagram;sn.startTransaction("rotate "+Sn.toString());var sn=this.diagram;sn.selection.each(function(dn){dn instanceof go.Link||dn instanceof go.Group||(dn.angle+=Sn)}),sn.commitTransaction("rotate "+Sn.toString())},Zt.prototype.pullToFront=function(){var Sn=this.diagram;Sn.startTransaction("pullToFront");var sn=new go.Map;Sn.selection.each(function(dn){sn.set(dn.layer,0)}),sn.iteratorKeys.each(function(dn){var _n=0;dn.parts.each(function(Ri){if(!Ri.isSelected){var qn=Ri.zOrder;isNaN(qn)?Ri.zOrder=0:_n=Math.max(_n,qn)}}),sn.set(dn,_n)}),Sn.selection.each(function(dn){Zt._assignZOrder(dn,sn.get(dn.layer)+1)}),Sn.commitTransaction("pullToFront")},Zt.prototype.pushToBack=function(){var Sn=this.diagram;Sn.startTransaction("pushToBack");var sn=new go.Map;Sn.selection.each(function(dn){sn.set(dn.layer,0)}),sn.iteratorKeys.each(function(dn){var _n=0;dn.parts.each(function(Ri){if(!Ri.isSelected){var qn=Ri.zOrder;isNaN(qn)?Ri.zOrder=0:_n=Math.min(_n,qn)}}),sn.set(dn,_n)}),Sn.selection.each(function(dn){Zt._assignZOrder(dn,sn.get(dn.layer)-1-Zt._findGroupDepth(dn))}),Sn.commitTransaction("pushToBack")},Zt._assignZOrder=function(Sn,sn,dn){dn===void 0&&(dn=Sn),Sn.layer===dn.layer&&(Sn.zOrder=sn),Sn instanceof go.Group&&Sn.memberParts.each(function(_n){Zt._assignZOrder(_n,sn+1,dn)})},Zt._findGroupDepth=function(Sn){if(Sn instanceof go.Group){var sn=0;return Sn.memberParts.each(function(dn){sn=Math.max(sn,Zt._findGroupDepth(dn))}),sn+1}else return 0},Zt.prototype.doKeyDown=function(){var Sn=this.diagram;if(Sn!==null){var sn=Sn.lastInput;if(sn.key==="Up"||sn.key==="Down"||sn.key==="Left"||sn.key==="Right"){var dn=this.arrowKeyBehavior;if(dn==="none")return;if(dn==="select"){this._arrowKeySelect();return}else if(dn==="move"){this._arrowKeyMove();return}else if(dn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Zt.prototype._getAllParts=function(){var Sn=new Array;return this.diagram.nodes.each(function(sn){Sn.push(sn)}),this.diagram.parts.each(function(sn){Sn.push(sn)}),Sn},Zt.prototype._arrowKeyMove=function(){var Sn=this.diagram,sn=Sn.lastInput,dn=0,_n=0;if(sn.control||sn.meta)dn=1,_n=1;else if(Sn.grid!==null){var Ri=Sn.grid.gridCellSize;_n=Ri.width,dn=Ri.height}Sn.startTransaction("arrowKeyMove"),Sn.selection.each(function(qn){sn.key==="Up"?qn.move(new go.Point(qn.actualBounds.x,qn.actualBounds.y-dn)):sn.key==="Down"?qn.move(new go.Point(qn.actualBounds.x,qn.actualBounds.y+dn)):sn.key==="Left"?qn.move(new go.Point(qn.actualBounds.x-_n,qn.actualBounds.y)):sn.key==="Right"&&qn.move(new go.Point(qn.actualBounds.x+_n,qn.actualBounds.y))}),Sn.commitTransaction("arrowKeyMove")},Zt.prototype._arrowKeySelect=function(){var Sn=this.diagram,sn=Sn.lastInput,dn=null;sn.key==="Up"?dn=this._findNearestPartTowards(270):sn.key==="Down"?dn=this._findNearestPartTowards(90):sn.key==="Left"?dn=this._findNearestPartTowards(180):sn.key==="Right"&&(dn=this._findNearestPartTowards(0)),dn!==null&&(sn.shift?dn.isSelected=!0:sn.control||sn.meta?dn.isSelected=!dn.isSelected:Sn.select(dn))},Zt.prototype._findNearestPartTowards=function(Sn){var sn=this.diagram.selection.first();if(sn===null)return null;for(var dn=sn.actualBounds.center,_n=this._getAllParts(),Ri=1/0,qn=sn,Ni=0;Ni<_n.length;Ni++){var mn=_n[Ni];if(mn!==sn&&mn.canSelect()){var Hn=mn.actualBounds.center,Di=dn.directionPoint(Hn),Yi=this._angleCloseness(Di,Sn);if(Yi<=45){var mi=dn.distanceSquaredPoint(Hn);mi*=1+Math.sin(Yi*Math.PI/180),mi<Ri&&(Ri=mi,qn=mn)}}}return qn},Zt.prototype._angleCloseness=function(Sn,sn){return Math.min(Math.abs(sn-Sn),Math.min(Math.abs(sn+360-Sn),Math.abs(sn-360-Sn)))},Zt.prototype._arrowKeyTree=function(){var Sn=this.diagram,sn=Sn.selection.first();if(sn instanceof go.Node){var dn=Sn.lastInput;if(dn.key==="Right"){if(!sn.isTreeLeaf)if(!sn.isTreeExpanded)Sn.commandHandler.canExpandTree(sn)&&Sn.commandHandler.expandTree(sn);else{var _n=this._sortTreeChildrenByY(sn).first();_n!==null&&Sn.select(_n)}}else if(dn.key==="Left")if(!sn.isTreeLeaf&&sn.isTreeExpanded)Sn.commandHandler.canCollapseTree(sn)&&Sn.commandHandler.collapseTree(sn);else{var Ri=sn.findTreeParentNode();Ri!==null&&Sn.select(Ri)}else if(dn.key==="Up"){var Ri=sn.findTreeParentNode();if(Ri!==null){var qn=this._sortTreeChildrenByY(Ri),Ni=qn.indexOf(sn);if(Ni>0){for(var mn=qn.elt(Ni-1);mn!==null&&mn.isTreeExpanded&&!mn.isTreeLeaf;){var Hn=this._sortTreeChildrenByY(mn);mn=Hn.last()}mn!==null&&Sn.select(mn)}else Sn.select(Ri)}}else if(dn.key==="Down")if(sn.isTreeExpanded&&!sn.isTreeLeaf){var _n=this._sortTreeChildrenByY(sn).first();_n!==null&&Sn.select(_n)}else for(;sn!==null;){var Ri=sn.findTreeParentNode();if(Ri===null)break;var qn=this._sortTreeChildrenByY(Ri),Ni=qn.indexOf(sn);if(Ni<qn.length-1){Sn.select(qn.elt(Ni+1));break}else sn=Ri}var Di=Sn.selection.first();Di!==null&&Sn.scrollToRect(Di.actualBounds)}},Zt.prototype._sortTreeChildrenByY=function(Sn){var sn=new go.List().addAll(Sn.findTreeChildrenNodes());return sn.sort(function(dn,_n){var Ri=dn.location,qn=_n.location;return Ri.y<qn.y?-1:Ri.y>qn.y?1:Ri.x<qn.x?-1:Ri.x>qn.x?1:0}),sn},Zt.prototype.copyToClipboard=function(Sn){go.CommandHandler.prototype.copyToClipboard.call(this,Sn),this._lastPasteOffset.set(this.pasteOffset)},Zt.prototype.pasteFromClipboard=function(){var Sn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Sn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Sn},Object.defineProperty(Zt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Sn){if(Sn!=="move"&&Sn!=="select"&&Sn!=="scroll"&&Sn!=="tree"&&Sn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Sn);this._arrowKeyBehavior=Sn}}),Object.defineProperty(Zt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Sn){if(!(Sn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Sn);this._pasteOffset.set(Sn)}});var In=Zt,Dn=ae(63720),qe=ae(5269),Oe=ae(38986),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=ae(48790),it=ae(59301),De=(Sn,sn,dn)=>new Promise((_n,Ri)=>{var qn=Hn=>{try{mn(dn.next(Hn))}catch(Di){Ri(Di)}},Ni=Hn=>{try{mn(dn.throw(Hn))}catch(Di){Ri(Di)}},mn=Hn=>Hn.done?_n(Hn.value):Promise.resolve(Hn.value).then(qn,Ni);mn((dn=dn.apply(Sn,sn)).next())});function ht({onCancel:Sn,callback:sn}){let dn=(0,oe.useRef)(),_n=(0,oe.useRef)(),Ri=(0,oe.useRef)(),qn=(0,oe.useRef)(!1);const Ni=(0,oe.useRef)(!1),[mn,Hn]=(0,oe.useState)(0);function Di(){const mi=At.bx.make,Ct={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"};dn.current=new At.S0(_n.current,{padding:20,grid:mi(At.s_,"Grid",mi(At.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mi(At.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:pn=>{var ur=pn.diagram.commandHandler.addTopLevelParts(pn.diagram.selection,!0);ur||pn.diagram.currentTool.doCancel()},commandHandler:mi(In),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:pn=>{var ur=pn.subject;ur.location=ur.location.copy().snapToGridPoint(pn.diagram.grid.gridOrigin,pn.diagram.grid.gridCellSize),setTimeout(()=>{pn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:pn=>{var ur=pn.subject;setTimeout(()=>{pn.diagram.commandHandler.editTextBlock()})},LinkRelinked:pn=>{var ur=pn.parameter.part;ur.invalidateConnectedLinks();var yr=pn.subject;pn.diagram.toolManager.linkingTool.isForwards?yr.toNode.invalidateConnectedLinks():yr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),dn.current.nodeTemplate=mi(At.NB,"Auto",{locationSpot:At.z6.Center,locationObjectName:"SHAPE",desiredSize:new At.$u(120,60),minSize:new At.$u(40,40),resizable:!0,resizeCellSize:new At.$u(10,10),rotatable:!0},new At.KX("location","loc",At.E9.parse).makeTwoWay(At.E9.stringify),new At.KX("desiredSize","size",At.$u.parse).makeTwoWay(At.$u.stringify),mi(At.bn,{name:"SHAPE",fill:Ct.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:At.z6.AllSides,toSpot:At.z6.AllSides},new At.KX("figure"),new At.KX("fill"),new At.KX("stroke","borderColor"),new At.KX("strokeWidth","thickness"),new At.KX("strokeDashArray","dash")),mi(At.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mi(At.al,{margin:1,textAlign:"center",overflow:At.al.OverflowEllipsis,editable:!0},new At.KX("text").makeTwoWay(),new At.KX("stroke","color"))),dn.current.nodeTemplate.toolTip=mi("ToolTip",mi(At.s_,"Vertical",{maxSize:new At.$u(200,NaN)},mi(At.al,{font:"bold 10pt sans-serif",textAlign:"center"},new At.KX("text")),mi(At.al,{font:"10pt sans-serif",textAlign:"center"},new At.KX("text","details"))));function $t(pn,ur){var yr=(ir,pr)=>{ir.handled=!0,ir.diagram.model.commit(Tr=>{var Br=pr.part.adornedPart,Ar=new At.E9().setRectSpot(Br.actualBounds,pn);Ar.subtract(Br.location),Ar.scale(2,2),Ar.x+=Math.sign(Ar.x)*130,Ar.y+=Math.sign(Ar.y)*130,Ar.add(Br.location),Ar.snapToGridPoint(ir.diagram.grid.gridOrigin,ir.diagram.grid.gridCellSize);var br=Tr.copyNodeData(Br.data);Tr.setGroupKeyForNodeData(br,Tr.getGroupKeyForNodeData(Br.data)),Tr.addNodeData(br);var _r={from:Br.key,to:Tr.getKeyForNodeData(br)};Tr.addLinkData(_r);var Wn=ir.diagram.findNodeForData(br);Wn.location=Ar,ir.diagram.select(Wn),setTimeout(()=>{ir.diagram.commandHandler.editTextBlock()},20)})};return mi(At.bn,{figure:ur,alignment:pn,alignmentFocus:pn.opposite(),width:pn.equals(At.z6.Top)||pn.equals(At.z6.Bottom)?25:18,height:pn.equals(At.z6.Top)||pn.equals(At.z6.Bottom)?18:25,fill:"orange",stroke:Ct.white,strokeWidth:4,mouseEnter:(ir,pr)=>pr.fill="dodgerblue",mouseLeave:(ir,pr)=>pr.fill="orange",isActionable:!0,click:yr,contextClick:yr})}function fi(pn){return mi(At.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:(ur,yr)=>yr.fill="dodgerblue",mouseLeave:(ur,yr)=>yr.fill="orange",click:(ur,yr)=>{ur.diagram.commandHandler.showContextMenu(yr.part.adornedPart)}},pn||{})}dn.current.nodeTemplate.selectionAdornmentTemplate=mi(At.uz,"Spot",mi(At.Vm,{padding:10}),$t(At.z6.Top,"TriangleUp"),$t(At.z6.Left,"TriangleLeft"),$t(At.z6.Right,"TriangleRight"),$t(At.z6.Bottom,"TriangleDown"),fi({alignment:new At.z6(.75,0)}));function gi(pn,ur){return(yr,ir)=>{yr.handled=!0,yr.diagram.model.commit(pr=>{pr.set(ir.part.adornedPart.data,pn,ur)})}}function zt(pn,ur){return ur||(ur="color"),mi(At.bn,{width:16,height:16,stroke:"lightgray",fill:pn,margin:1,background:"transparent",mouseEnter:(yr,ir)=>ir.stroke="dodgerblue",mouseLeave:(yr,ir)=>ir.stroke="lightgray",click:gi(ur,pn),contextClick:gi(ur,pn)})}function pi(){return[mi("ContextMenuButton",mi(At.s_,"Horizontal",zt(Ct.white,"fill"),zt(Ct.beige,"fill"),zt(Ct.extralightblue,"fill"),zt(Ct.extralightred,"fill"))),mi("ContextMenuButton",mi(At.s_,"Horizontal",zt(Ct.lightgray,"fill"),zt(Ct.lightgreen,"fill"),zt(Ct.lightblue,"fill"),zt(Ct.lightred,"fill")))]}function Fi(){return[mi("ContextMenuButton",mi(At.s_,"Horizontal",zt(Ct.black),zt(Ct.green),zt(Ct.blue),zt(Ct.red))),mi("ContextMenuButton",mi(At.s_,"Horizontal",zt(Ct.white),zt(Ct.magenta),zt(Ct.purple),zt(Ct.orange)))]}function Cn(pn,ur){return ur||(ur="thickness"),mi(At.bn,"LineH",{width:16,height:16,strokeWidth:pn,margin:1,background:"transparent",mouseEnter:(yr,ir)=>ir.background="dodgerblue",mouseLeave:(yr,ir)=>ir.background="transparent",click:gi(ur,pn),contextClick:gi(ur,pn)})}function je(pn,ur){return ur||(ur="dash"),mi(At.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:pn,margin:1,background:"transparent",mouseEnter:(yr,ir)=>ir.background="dodgerblue",mouseLeave:(yr,ir)=>ir.background="transparent",click:gi(ur,pn),contextClick:gi(ur,pn)})}function Pi(){return[mi("ContextMenuButton",mi(At.s_,"Horizontal",Cn(1),Cn(2),Cn(3),Cn(4))),mi("ContextMenuButton",mi(At.s_,"Horizontal",je(null),je([2,4]),je([4,4])))]}function Ai(pn,ur){return ur||(ur="figure"),mi(At.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:pn,margin:1,background:"transparent",mouseEnter:(yr,ir)=>ir.fill="dodgerblue",mouseLeave:(yr,ir)=>ir.fill="lightgray",click:gi(ur,pn),contextClick:gi(ur,pn)})}dn.current.nodeTemplate.contextMenu=mi("ContextMenu",mi("ContextMenuButton",mi(At.s_,"Horizontal",Ai("Rectangle"),Ai("RoundedRectangle"),Ai("Ellipse"),Ai("Diamond"))),mi("ContextMenuButton",mi(At.s_,"Horizontal",Ai("Parallelogram2"),Ai("ManualOperation"),Ai("Procedure"),Ai("Cylinder1"))),mi("ContextMenuButton",mi(At.s_,"Horizontal",Ai("Terminator"),Ai("CreateRequest"),Ai("Document"),Ai("TriangleDown"))),pi(),Fi(),Pi()),dn.current.groupTemplate=mi(At.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:At.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(pn,ur)=>{var yr=ur.addMembers(ur.diagram.selection,!0);yr||ur.diagram.currentTool.doCancel()},avoidable:!1},new At.KX("location","loc",At.E9.parse).makeTwoWay(At.E9.stringify),mi(At.s_,"Auto",{name:"BODY"},mi(At.bn,{parameter1:10,fill:Ct.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:At.z6.AllSides,toSpot:At.z6.AllSides},new At.KX("fill"),new At.KX("stroke","color"),new At.KX("strokeWidth","thickness"),new At.KX("strokeDashArray","dash")),mi(At.Vm,{background:"transparent",margin:20})),mi(At.al,{alignment:At.z6.Top,alignmentFocus:At.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new At.KX("text"),new At.KX("stroke","color"))),dn.current.groupTemplate.selectionAdornmentTemplate=mi(At.uz,"Spot",mi(At.s_,"Auto",mi(At.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mi(At.Vm,{margin:1.5})),fi({alignment:At.z6.TopRight,alignmentFocus:At.z6.BottomRight})),dn.current.groupTemplate.contextMenu=mi("ContextMenu",pi(),Fi(),Pi()),dn.current.linkTemplate=mi(At.rU,{layerName:"Foreground",routing:At.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new At.KX("fromSpot","fromSpot",At.z6.parse),new At.KX("toSpot","toSpot",At.z6.parse),new At.KX("fromShortLength","dir",pn=>pn>=1?10:0),new At.KX("toShortLength","dir",pn=>pn>=1?10:0),new At.KX("points").makeTwoWay(),mi(At.bn,{strokeWidth:2},new At.KX("stroke","color"),new At.KX("strokeWidth","thickness"),new At.KX("strokeDashArray","dash")),mi(At.bn,{segmentIndex:0,segmentOffset:new At.E9(15,0),segmentOrientation:At.rU.OrientAlong,alignmentFocus:At.z6.Right,figure:"circle",width:10,strokeWidth:0},new At.KX("fill","color"),new At.KX("visible","dir",pn=>pn===1)),mi(At.bn,{segmentIndex:-1,segmentOffset:new At.E9(-10,6),segmentOrientation:At.rU.OrientPlus90,alignmentFocus:At.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new At.KX("fill","color"),new At.KX("visible","dir",pn=>pn>=1),new At.KX("width","thickness",pn=>7+3*pn),new At.KX("height","thickness",pn=>7+3*pn),new At.KX("segmentOffset","thickness",pn=>new At.E9(-15,4+1.5*pn))),mi(At.bn,{segmentIndex:0,segmentOffset:new At.E9(15,-6),segmentOrientation:At.rU.OrientMinus90,alignmentFocus:At.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new At.KX("fill","color"),new At.KX("visible","dir",pn=>pn===2),new At.KX("width","thickness",pn=>7+3*pn),new At.KX("height","thickness",pn=>7+3*pn),new At.KX("segmentOffset","thickness",pn=>new At.E9(-15,4+1.5*pn))),mi(At.al,{alignmentFocus:new At.z6(0,1,-4,0),editable:!0},new At.KX("text").makeTwoWay(),new At.KX("stroke","color"))),dn.current.linkTemplate.selectionAdornmentTemplate=mi(At.uz,mi(At.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Rn(2)},new At.KX("pathPattern","thickness",Rn)),fi({alignmentFocus:new At.z6(0,0,-6,-4)}));function Rn(pn){return mi(At.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(pn+4).toString()+" H3"})}function Ji(pn){var ur="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return pn===0?ur="M0 0 M16 16 M0 8 L16 8":pn===2&&(ur="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mi(At.bn,{geometryString:ur,margin:2,background:"transparent",mouseEnter:(yr,ir)=>ir.background="dodgerblue",mouseLeave:(yr,ir)=>ir.background="transparent",click:gi("dir",pn),contextClick:gi("dir",pn)})}function _i(pn){var ur=(yr,ir)=>{yr.handled=!0,yr.diagram.model.commit(pr=>{var Tr=ir.part.adornedPart;pr.set(Tr.data,pn?"toSpot":"fromSpot",At.z6.stringify(At.z6.AllSides)),(pn?Tr.toNode:Tr.fromNode).invalidateConnectedLinks()})};return mi(At.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yr,ir)=>ir.background="dodgerblue",mouseLeave:(yr,ir)=>ir.background="transparent",click:ur,contextClick:ur})}function Jn(pn,ur){var yr=0,ir=At.z6.RightSide;pn.equals(At.z6.Top)?(yr=270,ir=At.z6.TopSide):pn.equals(At.z6.Left)?(yr=180,ir=At.z6.LeftSide):pn.equals(At.z6.Bottom)&&(yr=90,ir=At.z6.BottomSide),ur||(yr-=180);var pr=(Tr,Br)=>{Tr.handled=!0,Tr.diagram.model.commit(Ar=>{var br=Br.part.adornedPart;Ar.set(br.data,ur?"toSpot":"fromSpot",At.z6.stringify(ir)),(ur?br.toNode:br.fromNode).invalidateConnectedLinks()})};return mi(At.bn,{alignment:pn,alignmentFocus:pn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yr,background:"transparent",mouseEnter:(Tr,Br)=>Br.background="dodgerblue",mouseLeave:(Tr,Br)=>Br.background="transparent",click:pr,contextClick:pr})}dn.current.linkTemplate.contextMenu=mi("ContextMenu",Fi(),Pi(),mi("ContextMenuButton",mi(At.s_,"Horizontal",Ji(0),Ji(1),Ji(2))),mi("ContextMenuButton",mi(At.s_,"Horizontal",mi(At.s_,"Spot",_i(!1),Jn(At.z6.Top,!1),Jn(At.z6.Left,!1),Jn(At.z6.Right,!1),Jn(At.z6.Bottom,!1)),mi(At.s_,"Spot",{margin:new At.Zt(0,0,0,2)},_i(!0),Jn(At.z6.Top,!0),Jn(At.z6.Left,!0),Jn(At.z6.Right,!0),Jn(At.z6.Bottom,!0)))));const ji=`{ "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 ln=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function vr(pn){return console.log("shapeName:",pn),ln.indexOf(pn)>=0}var Wr=new At.YI(Ri.current,{maxSelectionCount:1,linkTemplate:mi(At.rU,{locationSpot:At.z6.Center,selectionAdornmentTemplate:mi(At.uz,"Link",{locationSpot:At.z6.Center},mi(At.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mi(At.bn,{toArrow:"Standard",stroke:null}))},{routing:At.rU.AvoidsNodes,curve:At.rU.JumpOver,corner:5,toShortLength:4},new At.KX("points"),mi(At.bn,{isPanelMain:!0,strokeWidth:2}),mi(At.bn,{toArrow:"Standard",stroke:null})),model:new At.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...At.bn.getFigureGenerators().toArray().map(pn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:pn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return dn.current.addDiagramListener("TextEdited",function(pn){var ur;const yr=pn.subject.part;var ir=(ur=document.activeElement)==null?void 0:ur.value;typeof ir=="string"&&ir.trim()===""&&dn.current.model.commit(function(pr){pr.set(yr.data,"text","\u672A\u547D\u540D"),dn.current.commandHandler.stopCommand()},"increment")}),Wr.nodeTemplate=mi(At.NB,"Auto",{locationSpot:At.z6.Center},new At.KX("location","location",At.E9.parse).makeTwoWay(At.E9.stringify),mi(At.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 At.KX("stroke").makeTwoWay(),new At.KX("fill").makeTwoWay(),new At.KX("figure")),mi(At.al,{margin:new At.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new At.$u(16,16),maxSize:new At.$u(10,NaN),textAlign:"center",editable:!0},new At.KX("key").makeTwoWay())),setTimeout(()=>{dn.current.grid=mi(At.s_,"Grid",mi(At.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mi(At.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),dn.current.grid.visible=!0,dn.current.grid.gridCellStroke="darkgray",dn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=dn.current,dn.current}const Yi=()=>De(this,null,function*(){var mi,Ct=dn.current.makeImage();const $t=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ct.src,file_data:JSON.stringify({login:(mi=(0,Ge.eY)())==null?void 0:mi.login,data:JSON.parse(dn.current.model.toJson())})}});sn({src:$t.url})});return(0,oe.useEffect)(()=>(setTimeout(()=>{Di()},500),Hn(mn+1),()=>{dn.current=null}),[]),it.createElement("div",{ref:Ni,className:"body-overflow-initial"},it.createElement(Tt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!mn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:it.createElement(Xt.Z,null,it.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),it.createElement(qe.Z,{onClick:()=>{var mi,Ct,$t=dn.current.selection.first();if(qn.current=!qn.current,document.activeElement&&$t){let fi=(Ct=(mi=document.activeElement)==null?void 0:mi.value)==null?void 0:Ct.trim();typeof fi=="string"&&dn.current.model.commit(function(gi){gi.set($t.data,"text",fi||"\u672A\u547D\u540D"),dn.current.commandHandler.stopCommand()},"increment")}Hn(mn+1)}},it.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Sn},it.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:qn.current?"none":"block"},className:Le.flowChartWrp},it.createElement("div",{style:{display:"flex",height:"100%"}},it.createElement("div",{style:{width:"300px",height:"100%"}},it.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),it.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Ri})),it.createElement("div",{style:{flex:1,position:"relative"}},it.createElement("div",{ref:_n,style:{height:"80vh"}}))),it.createElement("div",{className:"tr"},it.createElement(lt.ZP,{size:"large",onClick:Yi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var on=ht,An=ae(47889),Zn=ae(71051);const Ft=An.ZP.Group,It={margin:"0 8px"};var Gt=({callback:Sn,onCancel:sn})=>{function dn(_n){Sn(_n)}return oe.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:dn},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:It},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:It},"\u884C\u6570"),oe.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Zn.Z,null)),oe.createElement("span",{style:It},"\u5217\u6570"),oe.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Zn.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:It},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(Ye.default.Item,{name:"align"},oe.createElement(Ft,null,oe.createElement(An.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(An.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(An.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(An.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(lt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(lt.ZP,{type:"ghost",onClick:sn},"\u53D6\u6D88")))},fn=ae(71411),Pn=ae(43001),an=ae.n(Pn),Mn=(0,oe.forwardRef)(({use3d:Sn,width:sn,height:dn,callback:_n,showSaveButton:Ri},qn)=>{const Ni=(0,oe.useRef)(),mn=(0,oe.useRef)(),[Hn,Di]=(0,oe.useState)(!1),Yi=(0,oe.useRef)({id:Ni,appName:"graphing",width:sn||1e3,height:dn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{mn.current=new(an())(Yi.current,!0),window.onload=function(){mn.current.inject("applet_container")}},[]);const mi=()=>{var Ct=window.ggbApplet.getPNGBase64(1,!0,72);return _n&&_n(Ct),Ct};return(0,oe.useEffect)(()=>{Yi.current.appName=Hn?"3D":"graphing",mn.current.inject("applet_container")},[Hn]),(0,oe.useEffect)(()=>{Di(Sn)},[Sn]),(0,oe.useImperativeHandle)(qn,()=>({getImgData:mi})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ni}),oe.createElement(Xt.Z,{align:"middle"},oe.createElement(qe.Z,{flex:1},oe.createElement(fn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Hn,onChange:Ct=>Di(Ct)})),oe.createElement(qe.Z,null,oe.createElement(lt.ZP,{size:"large",onClick:mi,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=ae(76562),Kt=ae(6767);const un="link",Vn="upload-image",bn="add-flowchart",mt="draw-image",jn="add-flowchart",Kn="code-block",Ut="add-table",yi="------------",Vi={default:yi,left:`:${yi}`,center:`:${yi}:`,right:`${yi}:`};var kn=ae(37808);function Vt(){}let Qn=0;const ai=1e4,Un="\u2581",si="@\u2581\u2581@",li="@\u2581@",Me=`
**\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`,ii=["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 ti(Sn){return/^\d+$/.test(Sn)?`${Sn}px`:Sn}const ni=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ei={[ni+"-B"]:"bold",[ni+"-I"]:"italic"},ui={[un]:"\u6DFB\u52A0\u94FE\u63A5",[Kn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Vn]:"\u6DFB\u52A0\u56FE\u7247",[mt]:"\u6DFB\u52A0\u753B\u56FE",[bn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var tr=({defaultValue:Sn="",onChange:sn,width:dn="100%",height:_n=400,miniToolbar:Ri=!1,isFocus:qn=!1,watch:Ni,insertTemp:mn,mode:Hn="markdown",id:Di="markdown-editor-id",showResizeBar:Yi=!1,noStorage:mi=!1,showNullButton:Ct=!1,showNullProgramButton:$t=!1,hidetoolBar:fi=!1,fullScreen:gi=!1,onBlur:zt,onCMBeforeChange:pi,onFullScreen:Fi,className:Cn="",disablePaste:je=!1,disabled:Pi=!1,disabledFill:Ai=!1,placeholder:Rn="",values:Ji="",extraUse:_i})=>{const[Jn,ji]=(0,oe.useState)(null),[ln,vr]=(0,oe.useState)(Sn),[Wr,pn]=(0,oe.useState)(Ni),[ur,yr]=(0,oe.useState)(gi),[ir,pr]=(0,oe.useState)(""),[Tr,Br]=(0,oe.useState)(0),[Ar,br]=(0,oe.useState)(_n),[_r,Wn]=(0,oe.useState)(!1),[xr,$n]=(0,oe.useState)(0),[ar,Nr]=(0,oe.useState)(0),Sr=(0,oe.useRef)(),Xr=(0,oe.useRef)(),Zr=(0,oe.useRef)(),Rr=(0,oe.useRef)();(0,oe.useEffect)(()=>{const hn=window.scrollY||window.pageYOffset;vr(Ji),Jn==null||Jn.setValue(Ji),window.scrollTo(0,hn)},[Ji]),(0,oe.useEffect)(()=>{Fi==null||Fi(ur)},[ur]),(0,oe.useEffect)(()=>{if(Sr.current){let hn=function(Gn,en){var ri;if(je){en.preventDefault();return}const Bi=en.clipboardData;if(Bi){const dr=Bi.types.toString(),Ki=Bi.items;if(dr==="Files"||Bi.types.indexOf("Files")>-1){if(en.preventDefault(),Hn=="stex")return;try{let sr=Ki[1];((ri=Ki[0])==null?void 0:ri.kind)==="file"&&(sr=Ki[0]);const gr=sr.getAsFile(),wr=gr.name.split(".").pop();(0,rn.I)(gr,zr=>{var eo,yo,xn;zr.id?((eo=gr==null?void 0:gr.type)==null?void 0:eo.indexOf("image"))>-1?Yn.replaceSelection(`<img width="100%" src="/api/attachments/${zr.id}?type=${zr.content_type})" alt="" />`):((yo=gr==null?void 0:gr.type)==null?void 0:yo.indexOf("video"))>-1?Yn.replaceSelection(`<video width="100%" controls src="/api/attachments/${zr.id}"></video>`):((xn=gr==null?void 0:gr.type)==null?void 0:xn.indexOf("pdf"))>-1?Yn.replaceSelection(`<a href="/api/attachments/${zr.id}?type=${gr.type}&disposition=inline" target="_blank">${gr.name}</a>`):ii.includes(wr)?Yn.replaceSelection(`<a href="/api/attachments/${zr.id}?type=office&disposition=inline" target="_blank">${gr.name}</a>`):Yn.replaceSelection(`[${gr.name}](/api/attachments/${zr.id}?type=${zr.content_type})`):(zr==null?void 0:zr.status)===401&&(document.location.href="/user/login")})}catch(sr){Kt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Yn=ke().fromTextArea(Sr.current,{mode:Hn,lineNumbers:!Ri,lineWrapping:!0,value:Sn,autoCloseTags:!0,autoCloseBrackets:!0});return Yn.on("keyup",function(Gn,en){en.keyCode===8&&(Gn.getValue()==""?Yn.setOption("placeholder",Rn):Yn.setOption("placeholder",null))}),Yn.on("keydown",function(Gn,en){if(en.keyCode===8){var ri=Ln(Gn);ri&&en.preventDefault()}}),qn&&Yn.focus(),Yn.on("paste",hn),Pi&&Yn.on("beforeChange",function(Gn,en){(en.origin==="paste"||en.origin==="+input")&&en.cancel()}),ji(Yn),()=>{Yn.off("paste",hn)}}},[]);const So=(0,oe.useCallback)(()=>{if(Xr.current)try{}catch(hn){console.log(hn,"---- to set md editor body height")}},[Ar,Xr,ur]);(0,oe.useEffect)(()=>{function hn(){let Yn=new Ie.Z(Gn=>{for(let en of Gn)(en.target.offsetHeight>0||en.target.offsetWidth>0)&&(So(),Jn.setSize("100%","100%"),Jn.refresh())});return Yn.observe(Sr.current.parentElement),Yn}if(Jn){const Yn=hn();return()=>{var Gn,en;(Gn=Sr.current)!=null&&Gn.parentElement&&Yn.unobserve((en=Sr.current)==null?void 0:en.parentElement)}}},[Jn,So]),(0,oe.useEffect)(()=>{if(Jn){let hn=[];for(const[Yn,Gn]of Object.entries(Ei)){let en={[Yn]:()=>{ci(Gn)}};hn.push(en),Jn.addKeyMap(en)}return()=>{for(let Yn of hn)Jn.removeKeyMap(Yn)}}},[Jn]),(0,oe.useEffect)(()=>{gi!==ur&&yr(gi)},[gi]),(0,kn.Z)(()=>{if(!mi&&Tr>0){let hn=new Date().getTime(),Yn=window.sessionStorage.getItem(Di);hn>=Tr+ai&&(!Yn||Yn!==ln)&&(window.sessionStorage.setItem(Di,ln),Wn(!0))}},ai),(0,oe.useEffect)(()=>{pn(Ni)},[Jn,Ni]),(0,oe.useEffect)(()=>{Jn&&qn&&Jn.focus()},[Jn,qn]),(0,oe.useEffect)(()=>{if(Wr&&Jn){let hn=function(Gn){let en=Gn.target;if(Rr.current){let ri=en.scrollTop/en.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*ri}};const Yn=Jn.getScrollerElement();return Yn.addEventListener("scroll",hn),()=>{Yn.removeEventListener("scroll",hn)}}},[Jn,Wr]),(0,oe.useEffect)(()=>{if(Jn&&pi){let hn=function(Yn,Gn){pi(Yn,Gn)};return Jn.on("beforeChange",hn),()=>{Jn.off("beforeChange",hn)}}},[Jn,pi]),(0,oe.useEffect)(()=>{if(Jn&&zt){let hn=function(){zt(Jn.getValue())};return Jn.on("blur",hn),()=>{Jn.off("blur",hn)}}},[Jn,zt]);function Ln(hn,Yn){var Gn=hn.getDoc(),en=Gn.getCursor(),ri=Gn.getLine(en.line),Bi=ri.charAt(en.ch-1),dr=ri.lastIndexOf("@\u2581@",en.ch),Ki=ri.lastIndexOf("@\u2581\u2581@",en.ch),sr=dr>Ki?dr:Ki,gr=dr>Ki?3:4;if(si.indexOf(Bi)===-1)return null;if(console.log("change1:",Yn,hn,ri,en,sr,dr,Ki,Bi),sr>=0&&en.ch-sr<5){var wr=sr+gr;return Gn.replaceRange("",{line:en.line,ch:sr},{line:en.line,ch:wr}),{line:en.line,ch:wr}}return null}(0,oe.useEffect)(()=>{if(Jn){let hn=function(Yn,Gn){const en=Yn.getValue();vr(en),Br(new Date().getTime()),Yn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),sn&&($t?sn(en,di(en)):sn(en))};return Jn.on("change",hn),()=>{Jn.off("change",hn)}}},[Jn,sn]),(0,oe.useEffect)(()=>{if(Jn)if(Sn==null)Jn.setValue(""),vr("");else{const hn=window.scrollY||window.pageYOffset;Sn!==Jn.getValue()&&(Jn.setValue(Sn),vr(Sn),Jn.setCursor(Pi?1:Jn.lineCount(),0),window.scrollTo(0,hn))}},[Jn,Sn]);const ci=(0,oe.useCallback)(hn=>{const Yn=Jn.getCursor(),Gn=Jn.getSelection();let en=Gn.split(`
`);switch(hn){case"bold":return Jn.replaceSelection("**"+Gn+"**"),Gn===""&&Jn.setCursor(Yn.line,Yn.ch+2),Jn.focus();case"italic":return Jn.replaceSelection("*"+Gn+"*"),Gn===""&&Jn.setCursor(Yn.line,Yn.ch+1),Jn.focus();case"code":return Jn.replaceSelection("`"+Gn+"`"),Gn===""&&Jn.setCursor(Yn.line,Yn.ch+1),Jn.focus();case"inline-latex":return pr("inline-latex"),Jn.focus();case"latex":return Jn.replaceSelection("```latex\n"+Gn+"\n```"),Jn.setCursor(Yn.line+1,Gn.length+1),Jn.focus();case"line-break":return Jn.replaceSelection(`<br/>
`),Jn.focus();case"list-ul":return Gn===""?Jn.replaceSelection("- "+Gn):Jn.replaceSelection(en.map(ri=>ri===""?"":`- ${ri}`).join(`
`)),Jn.focus();case"list-ol":return Gn===""?Jn.replaceSelection("1. "+Gn):Jn.replaceSelection(en.map((ri,Bi)=>ri===""?"":`${Bi+1}. ${ri}`).join(`
`)),Jn.focus();case"add-null-ch":return Gn===""&&Jn.setCursor(Yn.line,Yn.ch),Jn.replaceSelection(Un),Jn.focus();case"add-signal":return Gn===""&&Jn.setCursor(Yn.line,Yn.ch),Jn.replaceSelection(li),Jn.focus();case"add-multiple":return Gn===""&&Jn.setCursor(Yn.line,Yn.ch),Jn.replaceSelection(si),Jn.focus();case"inster-template-1":return Gn===""&&Jn.setCursor(Yn.line,Yn.ch),Jn.replaceSelection(Me),Jn.focus();case"eraser":return Jn.setValue(""),Jn.focus();case"trigger-watch":return pn(!Wr),Jn.focus();case"trigger-full-screen":return yr(!ur),Jn.focus();case un:pr(un);return;case Kn:pr(Kn);return;case Vn:pr(Vn);return;case mt:pr(mt);return;case"maths-latex":pr("maths-latex");return;case bn:pr(bn);return;case Ut:pr(Ut);return;default:throw new Error}},[Jn,Wr,ur]),yn=(0,oe.useCallback)((hn,Yn)=>{var Gn,en,ri,Bi,dr,Ki;switch(pr(""),ir){case un:const{title:eo,link:yo}=hn;return Jn.replaceSelection(`[${eo}](${yo})`),Jn.focus();case Kn:const{language:xn,content:so}=hn;return Jn.replaceSelection(["```"+xn,so,"```"].join(`
`)),Jn.focus();case"maths-latex":for(var sr=atob(hn),gr=new Uint8Array(sr.length),wr=0;wr<sr.length;wr++)gr[wr]=sr.charCodeAt(wr);var zr=new Blob([gr],{type:"image/png"});(0,rn.I)(zr,ma=>{ma.id?Jn.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Jn.replaceSelection("`$$"+hn+"$$`");break;case Vn:case mt:case jn:const{src:Qr,alt:Lr}=hn,Cr=Yn,fo=(ri=(en=(Gn=Cr==null?void 0:Cr.name)==null?void 0:Gn.split("."))==null?void 0:en.pop)==null?void 0:ri.call(en);return((Bi=Cr==null?void 0:Cr.type)==null?void 0:Bi.indexOf("image"))>-1||!(Cr!=null&&Cr.type)?Cr!=null&&Cr.align||Cr!=null&&Cr.width?Jn.replaceSelection(`<p style="text-align:${Cr.align||"initial"}"><img width="${Cr.width?Cr.width+"%":"initial"}" src="${Qr}" alt="${Lr||""}" /></p>`):Jn.replaceSelection(`<img width="100%" src="${Qr}" alt="${Lr||""}" />`):((dr=Cr==null?void 0:Cr.type)==null?void 0:dr.indexOf("video"))>-1?Jn.replaceSelection(`<video width="100%" controls src="${Qr}"></video>`):((Ki=Cr==null?void 0:Cr.type)==null?void 0:Ki.indexOf("pdf"))>-1?Jn.replaceSelection(`<a href="${Qr}?type=${Cr.type}&disposition=inline" target="_blank">${Cr.name}</a>`):ii.includes(fo)?Jn.replaceSelection(`<a href="${Qr}?type=office&disposition=inline" target="_blank">${Cr.name}</a>`):Jn.replaceSelection(`[${Cr.name}](${Qr})`),Jn.focus();case Ut:const{row:Co,col:Fn,align:Jr}=hn;let Do=`
`;for(let ma=0;ma<Co;ma++){let Ga=[],js=[];for(let as=0;as<Fn;as++)ma===1&&js.push(Vi[Jr]),Ga.push(" ");ma===1&&(Do+=`| ${js.join(" | ")} |
`),Do+=`| ${Ga.join(Fn===1?"":" | ")} |
`}return Jn.replaceSelection(Do+`
`),Jn.focus();default:throw new Error}},[Jn,ir]),rt=(0,oe.useMemo)(()=>{switch(ir){case un:return oe.createElement(at,{callback:yn,onCancel:Ii});case Kn:return oe.createElement(Wt.Z,{callback:yn,onCancel:Ii});case Vn:return oe.createElement(rn.Z,{callback:yn,onCancel:Ii});case bn:return oe.createElement(on,{callback:yn,onCancel:Ii});case Ut:return oe.createElement(Gt,{callback:yn,onCancel:Ii});case"maths-latex":return oe.createElement(Mn,{showSaveButton:!0,callback:yn});case"inline-latex":return oe.createElement(Ht.Z,{showSaveButton:!0,callback:yn});default:return null}},[ir]);function Ii(){pr("")}(0,oe.useEffect)(()=>{if(Zr.current){let hn=function(dr){ri=!0,Bi=dr.pageY},Yn=function(){ri=!1},Gn=function(dr){if(ri){let Ki=dr.pageY-Bi;Ki<0&&(Ki=0),Ki>300&&(Ki=300);let sr=_n+Ki+"px";br(sr)}},en=Zr.current,ri=!1,Bi=0;return en.addEventListener("mousedown",hn),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",Yn),()=>{en.removeEventListener("mousedown",hn),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",Yn)}}},[Jn,Zr]),(0,oe.useEffect)(()=>{br(_n)},[_n]);const Hi=ti(dn),nr=ti(Ar),qi={width:Hi,height:nr},Zi=(0,oe.useMemo)(()=>{if(Tr){let hn=new Date(Tr),Yn=hn.getHours(),Gn=hn.getMinutes(),en=hn.getSeconds();return Yn=Yn<10?"0"+Yn:Yn,Gn=Gn<10?"0"+Gn:Gn,en=en<10?"0"+en:en,`${Yn}:${Gn}:${en}`}return 0},[Tr]),di=hn=>{const Yn=[];if($t){let Gn=-1;hn=hn.replace(/(@▁▁@|@▁@)/g,function(en,ri,Bi){Yn.push({multiLine:en!==li})})}return Yn};function dt(){window.sessionStorage.removeItem(Di),Wn(!1),Br(0)}function gn(){Wn(!1),Br(0),Jn.setValue(window.sessionStorage.getItem(Di))}(0,oe.useEffect)(()=>{ui[ir]&&ir!==mt&&ir!==bn&&setTimeout(()=>{const hn=document.getElementsByClassName("markdown-popup-form")[0],Yn=window.innerWidth/2-hn.offsetWidth/2,Gn=window.innerHeight/2-hn.offsetHeight/2;$n(Yn),Nr(Gn)},0)},[ir]);const vn=hn=>{hn.preventDefault();const Yn=hn.clientX-xr,Gn=hn.clientY-ar;document.body.onmousemove=en=>{let ri=en.clientX-Yn,Bi=en.clientY-Gn;const dr=document.getElementsByClassName("markdown-popup-form")[0],Ki=window.innerWidth-dr.offsetWidth,sr=window.innerHeight-dr.offsetHeight;ri=Math.max(0,Math.min(ri,Ki)),Bi=Math.max(0,Math.min(Bi,sr)),Bn(en.clientX,en.clientY,Yn,Gn)&&($n(ri),Nr(Bi))},document.body.onmouseup=function(){document.body.onmousemove=null}},Bn=(hn,Yn,Gn,en)=>{const ri=document.body.clientHeight,Bi=document.body.clientWidth;return hn<20&&Gn>hn||hn>Bi-20&&Gn<hn||Yn<20&&en>Yn||Yn>ri-20&&en<Yn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:Xr},oe.createElement("div",{className:`markdown-editor-container ${Cn} ${Wr?"on-preview":""} ${Ri?"mini":""} ${ur?"full-screen":""}`,style:qi},oe.createElement(We,{insertTemp:mn,watch:Wr,fullScreen:ur,showNullButton:Ct,showNullProgramButton:$t,onActionCallback:ci,hidetoolBar:fi,extraUse:_i}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:Sr,placeholder:Rn})),Wr?oe.createElement("div",{ref:Rr,className:"preview-container"},Hn==="stex"&&oe.createElement(Je,{value:ln}),Hn!=="stex"&&oe.createElement(gt.Z,{disabledFill:Ai,showProgramFill:$t,value:ln})):null))),Yi?oe.createElement("a",{ref:Zr,className:"editor-resize"}):null,ir===mt&&oe.createElement(Rt,{callback:yn,onCancel:Ii}),ir===bn&&oe.createElement(on,{callback:yn,onCancel:Ii}),oe.createElement(tt.Z,null,ui[ir]&&ir!==mt&&ir!==bn?oe.createElement(Tt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xr,top:ar},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:vn},ui[ir]),open:!0,onCancel:Ii,footer:null,destroyOnClose:!0,width:ir===bn?"1200px":null,height:ir===bn?"80vh":null,className:"markdown-popup-form"},rt):null))}},17077:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Ne},I:function(){return tt}});var oe=ae(28284),Ce=ae(6767),ke=ae(37568),Ie=ae(77736),He=ae(71051),Te=ae(47889),ze=ae(99571),ot=ae(46699),Ke=ae(59301),Be=ae(59301),gt=Object.defineProperty,Je=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Ye,Qe,lt)=>Qe in Ye?gt(Ye,Qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Ye[Qe]=lt,ue=(Ye,Qe)=>{for(var lt in Qe||(Qe={}))te.call(Qe,lt)&&he(Ye,lt,Qe[lt]);if(Fe)for(var lt of Fe(Qe))ee.call(Qe,lt)&&he(Ye,lt,Qe[lt]);return Ye},fe=(Ye,Qe)=>Je(Ye,wt(Qe));const{useForm:me}=oe.default,Ee={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}};var Ne=({callback:Ye,onCancel:Qe})=>{const[lt]=me();let nt=(0,Ke.useRef)();function yt(Lt){nt.current.width=lt.getFieldValue("width"),nt.current.align=lt.getFieldValue("align"),Ye(Lt,nt.current)}function vt(Lt,jt){if(Lt.status===-1){Ce.ZP.error(Lt.message);return}lt.setFieldsValue({src:`/api/attachments/${Lt.id}`,type:jt.type})}function St(Lt){let jt=Lt.target.files[0];nt.current=jt,tt(jt,vt)}return Be.createElement(oe.default,fe(ue({form:lt},Pe),{className:"upload-image-panel",onFinish:yt,style:{width:470,overflow:"hidden"}}),Be.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Be.createElement("div",{className:"flex-container"},Be.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Be.createElement(ke.default,{style:Ee})),Be.createElement(We,{onFileChange:St}))),Be.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Be.createElement(ke.default,{style:{width:264}})),Be.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Be.createElement(Ie.Z,null,Be.createElement(oe.default.Item,{name:"width",style:{margin:0}},Be.createElement(He.Z,{style:{width:264}})),Be.createElement("span",{className:"ml8"},"%"))),Be.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Be.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"}]})),Be.createElement("aside",null,Be.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Be.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Be.createElement(ze.ZP,{type:"default",onClick:Qe},"\u53D6\u6D88"))))};function We({onFileChange:Ye}){return Be.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Be.createElement("input",{type:"file",onChange:Ye}))}function tt(Ye,Qe){if(!Ye)throw new String("\u6CA1\u6709\u6587\u4EF6");let lt=new FormData;lt.append("editormd-image-file",Ye),lt.append("file_param_name","editormd-image-file"),lt.append("byxhr","true");var nt=new window.XMLHttpRequest;nt.withCredentials=!0,nt.addEventListener("load",function(yt){Qe(JSON.parse(yt.target.responseText),Ye)},!1),nt.addEventListener("error",function(yt){console.error(yt)},!1),nt.open("POST",`${ot.KI}/api/attachments.json`),nt.send(lt)}},91558:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return ke}});var oe=ae(59301),Ce=ae(4676);class ke extends oe.Component{constructor(He){super(He);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:He}=this.props;return(0,Ce.createPortal)(He,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(_e,be,ae){"use strict";ae.d(be,{SV:function(){return At},ZP:function(){return Rt}});var oe=ae(59301),Ce=ae(76374);const ke={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"]},He={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(`
`)}]},ze={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 ot=ae(53184),Ke=ae.n(ot),Be=(Zt,In,Dn)=>new Promise((qe,Oe)=>{var Le=De=>{try{it(Dn.next(De))}catch(ht){Oe(ht)}},Ge=De=>{try{it(Dn.throw(De))}catch(ht){Oe(ht)}},it=De=>De.done?qe(De.value):Promise.resolve(De.value).then(Le,Ge);it((Dn=Dn.apply(Zt,In)).next())});const gt={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"]}},Je=(Zt,In,Dn,qe)=>{const Oe=In.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Dn.lineNumber,endColumn:Dn.column});return Array.from(new Set(Oe.match(/\b\w{2,}\b/g)||[])).map(Ge=>({label:Ge,kind:Zt.languages.CompletionItemKind.Text,insertText:Ge,range:qe}))},wt=(Zt,In,Dn,qe)=>{Zt.languages.registerCompletionItemProvider(In,{provideCompletionItems(Oe,Le){const Ge=Oe.getWordUntilPosition(Le),it={startLineNumber:Le.lineNumber,endLineNumber:Le.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},De=Oe.getLineContent(Le.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Je(Zt,Oe,Le,it),...Dn.map(on=>({label:on,kind:Zt.languages.CompletionItemKind.Keyword,documentation:on,insertText:on,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it})),...qe.map(on=>({label:on.label,kind:Zt.languages.CompletionItemKind.Snippet,documentation:on.content,insertText:De.startsWith("#")?on.content.replace(/#/,""):on.content,insertTextRules:Zt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}))]}}})};var Fe=Zt=>{gt.languages.forEach(In=>{Zt.languages.registerDocumentFormattingEditProvider(In,{provideDocumentFormattingEdits(Dn){return Be(this,null,function*(){const qe=Ke()(Dn.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:Dn.getFullModelRange(),text:qe}]})}})}),wt(Zt,"java",Ie.keywords,Ie.quickKey),wt(Zt,"cpp",He.keywords,He.quickKey),wt(Zt,"c",ke.keywords,[]),wt(Zt,"python",Te.keywords,Te.quickKey),wt(Zt,"scala",ze.keywords,ze.quickKey)};const te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ee=Object.defineProperty,he=(Zt,In,Dn)=>In in Zt?ee(Zt,In,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Zt[In]=Dn,ue=(Zt,In,Dn)=>he(Zt,typeof In!="symbol"?In+"":In,Dn);const fe=class TE{constructor(In,Dn,qe){this.placeholder=In,this.editor=Dn,this.monaco=qe,Dn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return TE.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)}};ue(fe,"ID","editor.widget.placeholderHint");var Ee=fe,Pe=ae(96236),Ne=ae(6767),We=ae(25399),tt=ae(89392),Ye=ae(49535),Qe=ae(56102),lt=Object.defineProperty,nt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,jt=(Zt,In,Dn)=>In in Zt?lt(Zt,In,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Zt[In]=Dn,Bt=(Zt,In)=>{for(var Dn in In||(In={}))St.call(In,Dn)&&jt(Zt,Dn,In[Dn]);if(vt)for(var Dn of vt(In))Lt.call(In,Dn)&&jt(Zt,Dn,In[Dn]);return Zt},cn=(Zt,In)=>nt(Zt,yt(In)),pt=(Zt,In)=>{var Dn={};for(var qe in Zt)St.call(Zt,qe)&&In.indexOf(qe)<0&&(Dn[qe]=Zt[qe]);if(Zt!=null&&vt)for(var qe of vt(Zt))In.indexOf(qe)<0&&Lt.call(Zt,qe)&&(Dn[qe]=Zt[qe]);return Dn},ut=(Zt,In,Dn)=>new Promise((qe,Oe)=>{var Le=De=>{try{it(Dn.next(De))}catch(ht){Oe(ht)}},Ge=De=>{try{it(Dn.throw(De))}catch(ht){Oe(ht)}},it=De=>De.done?qe(De.value):Promise.resolve(De.value).then(Le,Ge);it((Dn=Dn.apply(Zt,In)).next())});function at(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}function Wt(){}let rn=!1;const Tt={"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 Xt(Zt=[]){let In=Zt;if(Array.isArray(Zt)){for(let Dn=0;Dn<Zt.length;Dn++){let qe=Tt[Zt[Dn]];if(qe)return qe}return In[0]}return Tt[In]||In}let nn=null;const Nn=()=>ut(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Zt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Zt)}});var Rt=Zt=>{var In=Zt,{width:Dn="100%",height:qe="100%",value:Oe,language:Le="javascript",style:Ge={},options:it={},overrideServices:De={},theme:ht="vs-dark",onEditBlur:on,isCopy:An=!1,onSave:Zn,autoHeight:Ft=!1,forbidCopy:It=!1,onChange:Gt=Wt,editorDidMount:fn=Wt,onFocus:Pn=Wt,onBreakPoint:an=Wt,breakPointValue:Ot=[],filename:Mn="educoder.txt",errorLine:Ht,errorContent:Kt="",highlightLine:un,openBreakPoint:Vn=!1,placeholder:bn="",showMiniMap:mt=!0}=In,jn=pt(In,["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 Kn=(0,oe.useRef)(),Ut=(0,oe.useRef)({}),yi=(0,oe.useRef)(),Vi=(0,oe.useRef)(),kn=(0,oe.useRef)([]),Vt=(0,oe.useRef)(!1),Qn=(0,oe.useRef)(),ai=(0,oe.useRef)(),Un=(0,oe.useRef)(!1),[si,li]=(0,oe.useState)(!1);function Me(){let mn;return Kn.current&&(mn=new Ce.Z(Hn=>{for(let Di of Hn)(Di.target.offsetHeight>0||Di.target.offsetWidth>0)&&Ut.current.instance.layout()}),mn.observe(Kn.current)),mn}function ii(){Ne.ZP.warning({content:decodeURIComponent(te),key:"monaco-editor-tip"})}const ti=()=>{let mn=Ut.current.instance;if(Oe!=null&&mn&&si){const Hn=mn.getModel();Hn&&Oe!==Hn.getValue()&&(rn=!0,Hn.setValue(Oe),mn.layout(),rn=!1)}};(0,oe.useEffect)(()=>{const mn=Ye.Z.subscribe("formatDocument",Hn=>{var Di;let Yi=Ut.current.instance;(Di=Yi==null?void 0:Yi.getAction)==null||Di.call(Yi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Hn=>{Gt(Hn)},mn},[]),(0,oe.useEffect)(()=>{var mn;let Hn=Ut.current.instance;Vi.current&&clearTimeout(Vi.current),Vi.current=setTimeout(()=>{ti()},500),Oe&&(Oe!=null&&Oe.length)&&((mn=Hn==null?void 0:Hn.updateOptions)==null||mn.call(Hn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Oe,si,Ut.current]),(0,oe.useEffect)(()=>{if(Ht&&Ut.current&&Ut.current.instance){let Hn=Ut.current.instance;Hn.changeViewZones(function(Di){var Yi=document.createElement("div");Yi.style.padding="10px 20px",Yi.style.width="calc(100% - 20px)",Yi.className="my-error-line-wrp",Yi.innerHTML=Kt,Di.addZone({afterLineNumber:Ht||11,heightInLines:3,domNode:Yi})});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}};Hn.addOverlayWidget(mn),Hn.revealPositionInCenter({lineNumber:20,column:1})}},[Ht,Ut.current,si]);const On=(mn="",Hn)=>{if(!mn||mn.trim()==="")return!0;const Yi=Ut.current.instance.getModel().getLineTokens(Hn);let mi=!1;for(let Ct=0;Ct<2;Ct++)Yi.getStandardTokenType(Ct)===1&&(mi=!0);return mi};(0,oe.useEffect)(()=>{var mn;const Hn=(mn=Ut.current)==null?void 0:mn.instance;if(Hn&&si&&It){const Di=Hn.onDidBlurEditorWidget(()=>{Un.current=!1}),Yi=Hn.onDidFocusEditorText(()=>{Un.current=!0});return()=>{Di.dispose(),Yi.dispose()}}},[Ut.current,si,It]),(0,oe.useEffect)(()=>{var mn;if((mn=Ut.current)!=null&&mn.instance&&si&&Vn){let Hn=Ut.current.instance,Di=Hn.getModel();if(!Di)return;(()=>{var Pi;let Ai=[],Rn=[];const Ji=Di.getAllDecorations();for(let Jn of Ji)Jn.options.className==="highlighted-line"&&(Ai.push((Pi=Jn==null?void 0:Jn.range)==null?void 0:Pi.startLineNumber),Rn.push(Jn==null?void 0:Jn.id));if(un===Ai[0])return;Di.deltaDecorations(Rn,[]);const _i=Di.getLineCount();un&&un<=_i&&(Hn.deltaDecorations([],[{range:new nn.Range(un,1,un,Di.getLineMaxColumn(un)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Hn.revealLineInCenter(un))})();const mi=(Pi=!1)=>{var Ai;let Rn=[],Ji=[];const _i=Di.getAllDecorations();for(let Jn of _i)Jn.options.linesDecorationsClassName==="breakpoints-select"&&(Rn.push((Ai=Jn==null?void 0:Jn.range)==null?void 0:Ai.startLineNumber),Ji.push(Jn==null?void 0:Jn.id));if(Pi)return{lines:Rn,ids:Ji};an(Rn)},Ct=Pi=>ut(void 0,null,function*(){let Ai={range:new nn.Range(Pi,1,Pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Di.deltaDecorations([],[Ai]),mi()}),$t=Pi=>ut(void 0,null,function*(){let Ai=[];const Rn=Hn.getLineDecorations(Pi);for(let Ji of Rn)Ji.options.linesDecorationsClassName==="breakpoints-select"&&Ai.push(Ji.id);yield Di.deltaDecorations(Ai,[]),mi()}),fi=Pi=>{let Ai=Hn.getLineDecorations(Pi);for(let Rn of Ai)if(Rn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,tt.isEqual)(Ot,mi(!0).lines)){Di.deltaDecorations(mi(!0).ids,[]);const Pi=Ot.map(Ai=>({range:new nn.Range(Ai,1,Ai,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Di.deltaDecorations([],Pi)}const gi=Hn.onDidChangeModelContent(Pi=>{let Ai=Hn.getPosition();if(Ai){let Rn=Ai.lineNumber;clearTimeout(ai.current),ai.current=setTimeout(()=>{On(Di.getLineContent(Rn),Rn)?$t(Rn):fi(Rn)?($t(Rn),Ct(Rn)):mi()},100)}}),zt=Hn.onMouseDown(Pi=>{var Ai,Rn,Ji;if(Pi.target.detail&&((Ji=(Rn=(Ai=Pi.target)==null?void 0:Ai.element)==null?void 0:Rn.className)!=null&&Ji.includes("line-numbers"))){let _i=Pi.target.position.lineNumber;if(On(Di.getLineContent(_i),_i))return;fi(_i)?$t(_i):Ct(_i)}}),pi=Pi=>{let Ai={range:new nn.Range(Pi,1,Pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kn.current=Hn.deltaDecorations(kn.current,[Ai])},Fi=()=>{kn.current=Hn.deltaDecorations(kn.current,[])},Cn=Hn.onMouseMove(Pi=>{var Ai,Rn,Ji;if(Fi(),Pi.target.detail&&((Ji=(Rn=(Ai=Pi.target)==null?void 0:Ai.element)==null?void 0:Rn.className)!=null&&Ji.includes("line-numbers"))){let _i=Pi.target.position.lineNumber;if(On(Di.getLineContent(_i),_i))return;pi(_i)}}),je=Hn.onMouseLeave(()=>{Fi()});return()=>{gi.dispose(),zt.dispose(),Cn.dispose(),je.dispose()}}},[Ut.current,si,Ot,un,Vn,Le]),(0,oe.useEffect)(()=>{var mn;(mn=Ut.current)!=null&&mn.instance&&Vn&&Ut.current.instance.setPosition({lineNumber:0,column:0})},[un]);function ni(){let mn=Ut.current.instance;if(mn){const Hn=mn.getSelection(),Di=Ut.current.pastePos||{},Yi=new nn.Range(Di.startLineNumber||Hn.endLineNumber,Di.startColumn||Hn.endColumn,Di.endLineNumber||Hn.endLineNumber,Di.endColumn||Hn.endColumn);setTimeout(()=>{mn.executeEdits("",[{range:Yi,text:""}])},300)}}function Ei(mn){(window.navigator.platform.match("Mac")?mn.metaKey:mn.ctrlKey)&&mn.keyCode==83&&(mn.preventDefault(),Zn())}const ui=()=>{if(Ft&&Ut.current.instance){const mn=Ut.current.instance.getContentHeight();qn(mn<qe?qe:mn)}else qn(qe)};function tr(mn){var Hn=document.createEvent("MouseEvents");Hn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),mn.dispatchEvent(Hn)}const Sn=mn=>{if(!Un.current)return;const{keyCode:Hn,ctrlKey:Di,metaKey:Yi,target:mi,type:Ct}=mn;return(Ct==="paste"||(Hn===67||Hn===86)&&(Yi||Di))&&mi.nodeName==="TEXTAREA"&&(ii(),mn.preventDefault()),!1};function sn(mn,Hn){var Di=window.URL||window.webkitURL||window,Yi=new Blob([Hn]),mi=document.createElementNS("http://www.w3.org/1999/xhtml","a");mi.href=Di.createObjectURL(Yi),mi.download=mn,tr(mi)}(0,oe.useEffect)(()=>{ui()},[ui]),(0,oe.useEffect)(()=>{Kn.current&&!si&&Promise.all([ae.e(8909),ae.e(6656)]).then(ae.bind(ae,71448)).then(mn=>{try{nn=mn,Ut.current.instance=nn.editor.create(Kn.current,{value:Oe,language:Xt(Le),theme:ht,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:mt||!1}},De);const Hn=Ut.current.instance;let mi=[...Pe.BH._menuItems].find(gi=>gi[0]._debugName=="EditorContext")[1],Ct=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],$t=(gi,zt)=>{var pi,Fi;let Cn=gi._first;do zt.includes((Fi=(pi=Cn.element)==null?void 0:pi.command)==null?void 0:Fi.id)&&gi._remove(Cn);while(Cn=Cn.next)};if(fn(Hn,nn),setTimeout(()=>{ui(),Ut.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{sn(Mn||"educoder.txt",Hn.getValue())}})},500),Ut.current.subscription=Hn.onDidChangeModelContent(gi=>{Vt.current?clearTimeout(Qn.current):(ui(),Gt(Hn.getValue(),gi)),Qn.current=setTimeout(()=>{Vt.current=!1},500)}),window.Monaco||Fe(nn,Xt(Le)),It&&($t(mi,Ct),Kn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Sn),window.removeEventListener("paste",Sn),window.addEventListener("keydown",Sn),window.addEventListener("paste",Sn)),window.Monaco=nn,on&&Hn.onDidBlurEditorWidget(()=>{on(Hn.getValue())}),Pn&&Hn.onDidFocusEditorText(()=>{It&&Nn(),Pn(Hn.getValue())}),It){Nn();try{Hn.onDidPaste(gi=>{const zt=Hn.getSelection(),pi=Ut.current.pastePos||{},Fi=new nn.Range(pi.startLineNumber||zt.endLineNumber,pi.startColumn||zt.endColumn,pi.endLineNumber||zt.endLineNumber,pi.endColumn||zt.endColumn);Hn.executeEdits("",[{range:gi.range,text:""}])})}catch(gi){}}let fi=Me();return bn&&typeof bn=="string"&&new Ee(bn,Hn,nn),li(!0),()=>{const gi=Ut.current.instance;gi.dispose();const zt=gi.getModel();zt&&zt.dispose(),Ut.current.subscription&&Ut.current.subscription.dispose(),fi.unobserve(Kn.current)}}catch(Hn){}})},[]),(0,oe.useEffect)(()=>{if(Ut.current.instance&&si)return document.addEventListener("keydown",Ei,!1),()=>{document.removeEventListener("keydown",Ei)}},[Zn,si]),(0,oe.useEffect)(()=>{let mn=Ut.current.instance;if(mn&&si){let Hn=Xt(Le);nn.editor.setModelLanguage(mn.getModel(),Hn)}},[Le,si]),(0,oe.useEffect)(()=>{Ut.current.instance&&si&&nn.editor.setTheme(ht)},[ht,si]),(0,oe.useEffect)(()=>{let mn=Ut.current.instance;yi.current=it,mn&&si&&(mn.updateOptions(Bt({},it)),setTimeout(()=>{mn.getModel().updateOptions(Bt({},it))},200))},[JSON.stringify(it),si]),(0,oe.useEffect)(()=>{let mn=Ut.current.instance;mn&&si&&mn.layout()},[Dn,qe,si]);const[dn,_n]=(0,oe.useState)(at(Dn)),[Ri,qn]=(0,oe.useState)(at(qe)),Ni=cn(Bt({},Ge),{width:dn,height:Ri,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:Kn,style:Ni},An&&oe.createElement(Qe.CopyToClipboard,{text:Oe,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},oe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},oe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function At({width:Zt="100%",height:In="100%",original:Dn,modified:qe,language:Oe,options:Le={}}){const Ge=(0,oe.useRef)(),[it,De]=(0,oe.useState)(null);function ht(Ft){let It;return Ge.current&&(It=new Ce.Z(Gt=>{for(let fn of Gt)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&Ft.layout()}),It.observe(Ge.current)),It}(0,oe.useEffect)(()=>(Ge.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(Ft=>{nn=Ft;const It=nn.editor.createDiffEditor(Ge.current,cn(Bt({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},Le),{wordWrap:!0}));De(It);let Gt=ht(It);return()=>{It.dispose();const fn=It.getModel();fn&&fn.dispose(),Gt.unobserve(Ge.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{it&&it.setModel({original:nn.editor.createModel(Dn,Oe),modified:nn.editor.createModel(qe,Oe)})},[Dn,qe,Oe,it]);const on=at(Zt),An=at(In),Zn={width:on,height:An};return oe.createElement("div",{className:"my-diff-editor",ref:Ge,style:Zn})}},10661:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Je}});var oe={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"},Ce=ae(29787),ke=ae(25399),Ie=ae(60242),He=ae(92310),Te=ae.n(He),ze=ae(51257),ot=ae(28426),Ke=ae(48790),Be=ae(59301),Je=({className:wt,dataSource:Fe=[],col:te=4,right:ee,bottom:he=23,precision:ue=0,wrapWidth:fe=1200,trackEventItems:me,loading:Ee,onRemove:Pe=()=>{},isCurrent:Ne=!0,showProgress:We=!1,showAlias:tt=!1})=>{const Ye=Math.floor((fe-(te-1)*ee)/te),Qe=[{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 Be.createElement(Ce.Z,{spinning:Ee},Be.createElement("div",{className:Te()(oe.list,wt)},!!(Fe!=null&&Fe.length)&&(Fe==null?void 0:Fe.map((lt,nt)=>{var yt,vt,St,Lt,jt,Bt;const{name:cn,id:pt,identifier:ut,featured:at,school_name:Wt,image_url:rn,excellent:Tt,is_plan:Xt}=lt;return Be.createElement("div",{key:pt,className:Ne&&We?oe.wrapisCurrent:oe.wrap,style:{width:Ye,marginRight:(1+nt)%te===0?0:ee+ue,marginBottom:he}},Be.createElement("a",{className:oe.li,onClick:nn=>{nn.preventDefault(),nn.stopPropagation(),me&&(0,ze.L9)([me]),(0,ze.xg)(`/paths/${ut}`)}},Be.createElement("div",{className:oe.img},Be.createElement("img",{className:oe.cover,src:`${rn}`}),Ne&&(0,Ke.bg)()&&(lt==null?void 0:lt.studying)&&Be.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:nn=>{nn.stopPropagation(),Pe(lt)}},Be.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Be.createElement("span",{className:"c-red"},"\u79FB\u9664")),(yt=lt==null?void 0:lt.subject_tags)==null?void 0:yt.map((nn,Nn)=>{var Rt,At;if(Nn===0){const In=(Rt=Qe.find(Dn=>Dn.name==nn))==null?void 0:Rt.swimg;return Be.createElement("img",{className:oe.sign,src:In,style:{left:"-4px"}})}const Zt=(At=Qe.find(In=>In.name==nn))==null?void 0:At.ptimg;return Be.createElement("img",{className:oe.sign,src:Zt,style:{left:`${48+52*(Nn-1)+2*Nn}px`}})}),Be.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(lt==null?void 0:lt.excellent)&&Be.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Be.createElement("div",{className:oe.name},Be.createElement(ke.Z,{title:tt&&(lt!=null&&lt.excellent_alias_name)?Be.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${cn}`,Be.createElement("br",null),Be.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${lt==null?void 0:lt.excellent_alias_name}`)):cn},Be.createElement("span",{className:oe.e},tt&&(lt==null?void 0:lt.excellent_alias_name)||cn))),Ne&&We&&((vt=lt==null?void 0:lt.progress)==null?void 0:vt.all_score)!=0&&Be.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Be.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((St=lt==null?void 0:lt.progress)==null?void 0:St.my_score)/((Lt=lt==null?void 0:lt.progress)==null?void 0:Lt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(jt=lt==null?void 0:lt.progress)==null?void 0:jt.my_score,"/",(Bt=lt==null?void 0:lt.progress)==null?void 0:Bt.all_score),(!Ne||!We)&&Be.createElement(ke.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Wt}`},Be.createElement("div",{className:oe.unit},Be.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Wt)),(!Ne||!We)&&Be.createElement("div",{className:oe.tags},Be.createElement("div",null,Be.createElement(ke.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Be.createElement("span",null,lt.stages_count))),Be.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Be.createElement("span",null,lt.members_count)))))))})),!Fe.length&&Be.createElement(ot.Z,null)))}},9148:function(_e,be,ae){"use strict";ae.d(be,{jL:function(){return He},w9:function(){return at},QD:function(){return Ht},cQ:function(){return jt.Z},op:function(){return Gt},O5:function(){return ti},_b:function(){return jn},t7:function(){return ue},Gi:function(){return Nn},YG:function(){return Xt},qp:function(){return gt},vr:function(){return Vn},qE:function(){return an},Je:function(){return Ee},wb:function(){return Lt},cq:function(){return qe},tp:function(){return Fe}});var oe=ae(59301),Ce={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"},ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",He=({dataSource:On=[],img:ni,imgWidth:Ei=346,title:ui,sunTitle:tr,bannerExtraContent:Sn})=>oe.createElement("div",{className:Ce.banner},oe.createElement("div",{className:Ce.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,ui),oe.createElement("span",null,tr)),On.length>0&&oe.createElement("div",{className:Ce.btns},On.map((sn,dn)=>oe.createElement("div",{key:dn,onClick:sn.click},sn.name,sn.sign?oe.createElement("img",{src:ke,width:39}):null))),Sn),ni&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:ni,width:Ei}))),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"},ze=ae(92310),ot=ae.n(ze),Ke=ae(89392),gt=({dataSource:On=[],value:ni,onChange:Ei,onTitleChange:ui,className:tr,title:Sn,titleWidth:sn=41,style:dn={},fontColor:_n="#6A7283",showCount:Ri})=>{const[qn,Ni]=(0,oe.useState)(0),[mn,Hn]=(0,oe.useState)(!1),Di=(0,oe.useRef)(null),Yi=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var mi;On.length!==0&&(((mi=Di==null?void 0:Di.current)==null?void 0:mi.clientHeight)>97?Ni(1):Ni(0)),On.length===0&&Ni(0),Hn(!1)},[On]),oe.createElement("div",{className:ot()(Te.row,tr),style:dn},oe.createElement("div",{onClick:(0,Ke.throttle)(()=>ui==null?void 0:ui(),2e3),style:{width:sn,marginTop:mn?12:4},className:`${Te.title} ${ui?"current":""}`},Sn),oe.createElement("div",{className:mn?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},oe.createElement("div",{className:Te.bar,ref:Yi,style:qn>0?{height:qn===1?97:"auto",overflow:qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Te.tag,ref:Di},On==null?void 0:On.map(mi=>oe.createElement("span",{onClick:()=>Ei(mi.id),key:mi.id,style:{color:_n},className:ni===mi.id?Te.active:""},oe.createElement("span",{title:mi.name,className:Te.name},mi.name),!!Ri&&oe.createElement("span",{className:Te.num},mi.count))))),!!qn&&oe.createElement(oe.Fragment,null,qn===1?oe.createElement("div",{onClick:()=>{var mi;Ni(2),((mi=Di==null?void 0:Di.current)==null?void 0:mi.clientHeight)>245?Hn(!0):Hn(!1)},className:Te.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{Yi.current.scrollTop=0,Ni(1),Hn(!1)},className:Te.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={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:On=[],value:ni,onChange:Ei,className:ui,style:tr={}})=>oe.createElement("div",{style:tr,className:ot()(Je.tabs,ui)},On.map(Sn=>oe.createElement("span",{onClick:()=>Ei(Sn.id),className:ni===Sn.id?Je.active:"",key:Sn.id},Sn.name))),te={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=ae(37568),ue=({dataSource:On=[],value:ni="",onChange:Ei,onInputChange:ui=()=>{},className:tr,style:Sn={},placeholder:sn,allowClear:dn=!1})=>{var _n;const[Ri,qn]=(0,oe.useState)(""),[Ni,mn]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Yi;let mi=ni;(Yi=JSON.stringify(ni))!=null&&Yi.includes("{")&&(qn(ni.id),mi=ni.value||"");try{mn(decodeURIComponent(mi||""))}catch(Ct){mn(decodeURIComponent(mi||""))}},[ni]);const Hn=()=>{Ei(encodeURIComponent(Ni),Ri||null)},Di=Yi=>{Yi!==Ri&&(qn(Yi),Ei(encodeURIComponent(Ni),Yi))};return oe.createElement("div",{className:ot()(te.input,tr),style:Sn},!!On.length&&oe.createElement("div",{className:te.dropdown},oe.createElement("div",{className:te.text},(_n=On.find(Yi=>Yi.id===Ri))==null?void 0:_n.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:te.b1}),oe.createElement("b",{className:te.b2})),oe.createElement("div",{className:te.menu},On.map((Yi,mi)=>oe.createElement("div",{key:mi,onClick:()=>Di(Yi.id)},Yi.name)))),oe.createElement(ee.default,{onPressEnter:Hn,value:Ni,onChange:Yi=>{mn(Yi.target.value),ui(encodeURIComponent(Yi.target.value),Ri||null)},bordered:!1,placeholder:sn}),oe.createElement("i",{onClick:Hn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},fe={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"},Ee=({value:On,onChange:ni,className:Ei,total:ui,pageSize:tr,style:Sn={}})=>{const sn=On<2,dn=On>=Math.ceil(ui/tr);return ui<=tr?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:ot()(fe.quickPager,Ei),style:Sn},oe.createElement("div",{onClick:()=>{sn||ni(On-1,"prev")},className:sn?fe.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{dn||ni(On+1,"next")},className:dn?fe.disabled:""},"\u4E0B\u4E00\u9875"))},Pe={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"},Ne=ae(29787),We=ae(25399),tt=ae(58018),Ye=ae(346),Qe=ae(51257),lt=ae(96908),nt=ae(57177),yt=ae(81378),vt=ae(28426),Lt=({className:On,dataSource:ni=[],col:Ei=4,right:ui,bottom:tr=23,precision:Sn=0,wrapWidth:sn=1200,trackEventItems:dn,loading:_n})=>{const Ri=Math.floor((sn-(Ei-1)*ui)/Ei);return oe.createElement(Ne.Z,{spinning:_n},oe.createElement("div",{className:ot()(Pe.list,On)},!!ni.length&&ni.map((qn,Ni)=>{const{name:mn,id:Hn,identifier:Di,power:Yi,cover_image_id:mi,pic:Ct}=qn;return oe.createElement("div",{className:Pe.wrap,key:Hn,style:{width:Ri,marginRight:(1+Ni)%Ei===0?0:ui+Sn,marginBottom:tr}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Di}/challenges`,className:Pe.li,onClick:$t=>{$t.preventDefault(),dn&&(0,Qe.L9)([dn]),Yi&&(0,Qe.xg)(`/shixuns/${Di}/challenges`)}},oe.createElement("div",{className:Pe.img},oe.createElement("img",{className:Pe.cover,src:`${Ct}`}),qn.is_jupyter&&oe.createElement("img",{className:Pe.sign,src:lt}),qn.is_jupyter_lab&&oe.createElement("img",{className:Pe.sign,src:nt}),qn.is_unity_3d&&oe.createElement("img",{className:Pe.sign,src:yt})),oe.createElement("div",{className:Pe.name},oe.createElement(We.Z,{title:mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Pe.e},mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Pe.tags},oe.createElement(We.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,qn.challenges_count))),!!qn.myshixuns_count&&oe.createElement(We.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,qn.myshixuns_count))),oe.createElement(We.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,qn.level))),oe.createElement("div",{className:Pe.rate},oe.createElement(tt.Z,{allowHalf:!0,disabled:!0,defaultValue:qn.score_info}),oe.createElement("span",null,"\xA0",qn.score_info?`${qn.score_info}\u5206`:"5\u5206")))),!Yi&&oe.createElement("div",{className:Pe.lockWrap},oe.createElement("img",{src:`${Ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ni.length&&oe.createElement(vt.Z,null)))},jt=ae(10661),Bt={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"},cn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",pt=ae(59301),at=({className:On,dataSource:ni=[],col:Ei=4,right:ui,bottom:tr=23,precision:Sn=0,wrapWidth:sn=1200,trackEventItems:dn,loading:_n,handleVery:Ri=()=>!0})=>{const qn=Math.floor((sn-(Ei-1)*ui)/Ei);return pt.createElement(Ne.Z,{spinning:_n},pt.createElement("div",{className:ot()(Bt.list,On)},!!ni.length&&ni.map((Ni,mn)=>{const{subject_identifier:Hn,id:Di,identifier:Yi,power:mi}=Ni,Ct=Ni.is_public!=0&&Ni.is_public;return pt.createElement("div",{className:Bt.wrap,key:Di,style:{width:qn,marginRight:(1+mn)%Ei===0?0:ui+Sn,marginBottom:tr}},pt.createElement("a",{className:Bt.li,onClick:$t=>{$t.preventDefault(),Ri(Ni==null?void 0:Ni.first_category_url)&&(dn&&(0,Qe.L9)([dn]),(0,Qe.xg)(Ni.first_category_url))}},pt.createElement("div",{className:Bt.top},pt.createElement(We.Z,{title:Ni.name},pt.createElement("div",{className:Bt.name},Ni.name)),pt.createElement("img",{className:Bt.img,src:Ye.Z.IMG_SERVER+"/images/"+Ni.avatar_url}),pt.createElement("div",{className:Bt.text,title:Ni.creator},Ni.creator),Hn&&pt.createElement("div",{className:Bt.btns},pt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),pt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ct&&pt.createElement("div",{className:Bt.sign},"\u516C\u5F00")),pt.createElement("div",{className:Bt.bottom},Ni.visits>0&&pt.createElement(We.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},pt.createElement("span",null,pt.createElement("i",{className:"iconfont icon-liulanyan"}),pt.createElement("span",null,Ni.visits))),Ni.course_members_count>0&&pt.createElement(We.Z,{title:"\u6210\u5458",placement:"bottom"},pt.createElement("span",null,pt.createElement("i",{className:"iconfont icon-chengyuan"}),Ni.course_members_count)),Ni.tasks_count>0&&pt.createElement(We.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},pt.createElement("span",null,pt.createElement("i",{className:"iconfont icon-zuoye"}),Ni.tasks_count)),Ni.is_end?pt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):pt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ni.is_accessible&&pt.createElement("div",{className:Bt.lockWrap},pt.createElement("img",{src:`${Ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),pt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ni.length&&pt.createElement(vt.Z,null)))},Wt={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"},rn=ae(25690),Xt=({dataSource:On=[],value:ni,onChange:Ei,className:ui,style:tr={},tabBarExtraContent:Sn})=>oe.createElement("div",{className:ot()(Wt.tabs,ui),style:tr},oe.createElement("div",{className:Wt.tabsWrap},On.map((sn,dn)=>!(sn!=null&&sn.hide)&&oe.createElement("aside",{className:Wt.tab,onClick:()=>{Ei(sn.id),sn.link&&rn.history.push(sn.link)},key:dn},oe.createElement("div",{className:ni===sn.id?Wt.active:""},sn.name),(sn==null?void 0:sn.resetCount)==null&&(sn==null?void 0:sn.total)!==void 0&&oe.createElement("span",null,"\uFF08",sn==null?void 0:sn.total,"\uFF09"),(sn==null?void 0:sn.resetCount)!==void 0&&(sn==null?void 0:sn.total)!==void 0&&oe.createElement(We.Z,{title:(sn==null?void 0:sn.tip)!=null?sn==null?void 0:sn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},sn==null?void 0:sn.resetCount),"/",oe.createElement("span",null,sn==null?void 0:sn.total),"\uFF09"))))),oe.createElement("div",{className:Wt.tabBar},Sn)),Nn=({className:On,style:ni={},children:Ei})=>oe.createElement("div",{className:ot()(On),style:ni},Ei),Rt={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"},At=ae(75727),Zt=ae(93041);const In=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var qe=({sortValue:On,dropValue:ni,className:Ei,onSort:ui,onDrop:tr,dataSource:Sn=In})=>{var sn;return oe.createElement("div",{className:ot()(Rt.orderWrap,Ei)},oe.createElement(At.Z,{dropdownRender:()=>oe.createElement(Zt.default,null,Sn.map((dn,_n)=>oe.createElement(Zt.default.Item,{key:_n,onClick:()=>tr(dn.id)},dn.name)))},oe.createElement("span",{className:Rt.orderTextWrap},(sn=Sn.find(dn=>ni===dn.id))==null?void 0:sn.name)),oe.createElement("span",{className:Rt.orderIconWrap},oe.createElement("span",{className:Rt.orderAsc},oe.createElement("i",{className:On==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Rt.cursorPointer} ${Rt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Rt.cursorPointer}`,onClick:()=>ui(On==="asc"?"desc":"asc")})),oe.createElement("span",{className:Rt.orderDesc},oe.createElement("i",{className:On==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Rt.cursorPointer} ${Rt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Rt.cursorPointer}`,onClick:()=>ui(On==="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"},Le=ae(99571),Ge=Object.defineProperty,it=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,on=(On,ni,Ei)=>ni in On?Ge(On,ni,{enumerable:!0,configurable:!0,writable:!0,value:Ei}):On[ni]=Ei,An=(On,ni)=>{for(var Ei in ni||(ni={}))De.call(ni,Ei)&&on(On,Ei,ni[Ei]);if(it)for(var Ei of it(ni))ht.call(ni,Ei)&&on(On,Ei,ni[Ei]);return On},Zn=(On,ni)=>{var Ei={};for(var ui in On)De.call(On,ui)&&ni.indexOf(ui)<0&&(Ei[ui]=On[ui]);if(On!=null&&it)for(var ui of it(On))ni.indexOf(ui)<0&&ht.call(On,ui)&&(Ei[ui]=On[ui]);return Ei},Ft=(On,ni,Ei)=>new Promise((ui,tr)=>{var Sn=_n=>{try{dn(Ei.next(_n))}catch(Ri){tr(Ri)}},sn=_n=>{try{dn(Ei.throw(_n))}catch(Ri){tr(Ri)}},dn=_n=>_n.done?ui(_n.value):Promise.resolve(_n.value).then(Sn,sn);dn((Ei=Ei.apply(On,ni)).next())}),Gt=On=>{var ni=On,{className:Ei,style:ui,children:tr,loading:Sn=!1,openLoading:sn,onClick:dn=()=>{},size:_n="middle",shape:Ri="round"}=ni,qn=Zn(ni,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ni,mn]=(0,oe.useState)(!1);return oe.createElement(Le.ZP,An({onClick:(0,Ke.throttle)(Hn=>Ft(void 0,null,function*(){sn&&mn(!0);try{yield dn(Hn)}catch(Di){console.log("error",Di)}sn&&mn(!1)}),2e3,{leading:!0,trailing:!1}),className:ot()(Oe.btn,Oe[`${_n}-${Ri}`],Ei),style:ui,size:_n,shape:Ri,loading:Ni||Sn},qn),tr)},fn={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"},an=({className:On,style:ni,children:Ei=null,onClick:ui,title:tr})=>oe.createElement("div",{className:ot()(fn.head,On),style:ni},oe.createElement("span",{className:"primary-hover",onClick:ui},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:tr},tr),oe.createElement("div",{className:fn.node},Ei)),Ot={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"},Ht=({confirmShow:On=!0,confirmTitle:ni,confirmClick:Ei,cancelShow:ui=!0,cancelTitle:tr,cancelClick:Sn,className:sn,style:dn,confirmLoading:_n=!1})=>oe.createElement("div",{className:ot()(Ot.btns,sn),style:dn},On&&oe.createElement(Le.ZP,{loading:_n,onClick:Ei,type:"primary",className:Ot.confirm},ni),ui&&oe.createElement(Le.ZP,{onClick:Sn,className:Ot.cancel},tr)),Kt={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"},Vn=({className:On,style:ni={},LeftContent:Ei,children:ui,RightContent:tr})=>oe.createElement("div",{className:ot()(Kt.fixedBottom,On),style:ni},oe.createElement("div",{className:Kt.wrap},oe.createElement("div",{className:Kt.left},Ei),oe.createElement("div",{className:Kt.center},ui),oe.createElement("div",{className:Kt.right},tr))),bn={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"},jn=({className:On,style:ni={},dataSource:Ei=[]})=>oe.createElement("div",{className:ot()(bn.crumbs,On),style:ni},Ei.map((ui,tr)=>tr<Ei.length-1?oe.createElement(oe.Fragment,{key:tr},ui.path||ui.onClick?oe.createElement("span",{className:bn.hover,onClick:ui!=null&&ui.onClick?ui.onClick:()=>rn.history.push(ui.path)},ui.name):oe.createElement("span",null,ui.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:tr,style:{color:"#5F6368"}},ui.name))),Kn=ae(11938),Ut=Object.defineProperty,yi=Object.defineProperties,Vi=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,ai=(On,ni,Ei)=>ni in On?Ut(On,ni,{enumerable:!0,configurable:!0,writable:!0,value:Ei}):On[ni]=Ei,Un=(On,ni)=>{for(var Ei in ni||(ni={}))Vt.call(ni,Ei)&&ai(On,Ei,ni[Ei]);if(kn)for(var Ei of kn(ni))Qn.call(ni,Ei)&&ai(On,Ei,ni[Ei]);return On},si=(On,ni)=>yi(On,Vi(ni)),li=(On,ni)=>{var Ei={};for(var ui in On)Vt.call(On,ui)&&ni.indexOf(ui)<0&&(Ei[ui]=On[ui]);if(On!=null&&kn)for(var ui of kn(On))ni.indexOf(ui)<0&&Qn.call(On,ui)&&(Ei[ui]=On[ui]);return Ei};const{Countdown:Me}=Kn.default;var ti=On=>{var ni=On,{onChange:Ei}=ni,ui=li(ni,["onChange"]);const[tr,Sn]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof tr=="number"&&tr>=0&&Ei(tr)},[tr]);const sn=dn=>{const _n=Math.floor(dn/1e3);Sn(_n)};return oe.createElement(Me,si(Un({},ui),{onChange:sn}))}},37808:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Ce}});var oe=ae(59301);function Ce(ke,Ie){const He=(0,oe.useRef)();(0,oe.useEffect)(()=>{He.current=ke}),(0,oe.useEffect)(()=>{function Te(){He.current()}if(Ie!==null){let ze=setInterval(Te,Ie);return()=>clearInterval(ze)}},[Ie])}},37345:function(_e,be,ae){"use strict";ae.d(be,{h:function(){return oe}});var oe=(Ce=>(Ce[Ce.NOMATCH=-1]="NOMATCH",Ce[Ce.OK=0]="OK",Ce[Ce.TIMEOUT=2]="TIMEOUT",Ce[Ce.PODFAILURE=3]="PODFAILURE",Ce[Ce.COMPILEFAILURE=4]="COMPILEFAILURE",Ce[Ce.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ce[Ce.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ce))(oe||{})},81072:function(_e,be,ae){"use strict";ae.d(be,{H7:function(){return te},MK:function(){return Fe},MU:function(){return Be},X6:function(){return Je},bM:function(){return Ke},fi:function(){return ee},fu:function(){return ot},n4:function(){return he},rX:function(){return wt},vl:function(){return ue},zO:function(){return gt}});var oe=ae(38986),Ce=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Te=(fe,me,Ee)=>me in fe?Ce(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):fe[me]=Ee,ze=(fe,me)=>{for(var Ee in me||(me={}))Ie.call(me,Ee)&&Te(fe,Ee,me[Ee]);if(ke)for(var Ee of ke(me))He.call(me,Ee)&&Te(fe,Ee,me[Ee]);return fe};function ot(fe,me){return(0,oe.U2)(`myproblems/${fe}.json`,ze({hidePopLogin:!0},me||{}))}function Ke(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_submit.json`,me)}function Be(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_debug.json`,me)}function gt(fe,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,oe.U2)(`myproblems/${fe}/submit_records.json`,me)}function Je(fe){return(0,oe.U2)("myproblems/record_detail.json",{id:fe})}function wt(fe,me){return(0,oe.U2)(`myproblems/${fe}/result.json`,{mode:me})}function Fe(fe,me){return(0,oe.v_)(`myproblems/${fe}/add_notes.json`,me)}function te(fe,me){return(0,oe.v_)(`myproblems/${fe}/restore_initial_code.json`,me)}function ee(fe){return(0,oe.v_)(`myproblems/${fe}/sync_code.json`)}function he(fe,me){return(0,oe.v_)(`myproblems/${fe}/update_code.json`,me)}function ue(fe,me){return(0,oe.v_)(`discusses/${fe}/plus.json`,me)}},72937:function(_e,be,ae){"use strict";ae.d(be,{D0:function(){return ze},R8:function(){return Ie},jw:function(){return Te},y3:function(){return ot}});var oe=ae(82326),Ce=ae(59301);const{Option:ke}=oe.default;var Ie=(Ke=>(Ke[Ke.language=0]="language",Ke[Ke.difficult=1]="difficult",Ke[Ke.category=2]="category",Ke[Ke.openOrNot=3]="openOrNot",Ke))(Ie||{});const He={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function Te(Ke){return He[Ke].map(Be=>Ce.createElement(ke,{key:Be.title,value:Be.key}," ",Be.title," "))}function ze(Ke,Be){Ke.map(gt=>{const{id:Je,name:wt,sub_disciplines:Fe}=gt;let te={value:Je,label:wt};Be.push(te),Fe&&Fe.length>0&&(te.children=[],ze(Fe,te.children))})}function ot(Ke,Be){var gt;let Je=[];for(let wt=0;wt<Ke.length;wt++){const Fe=Ke[wt];if(((gt=Fe.sub_disciplines)==null?void 0:gt.length)>0){Je[0]=Fe.id;for(let te=0;te<Fe.sub_disciplines.length;te++){const ee=Fe.sub_disciplines[te];if(ee.id===Be)return Je[1]=ee.id,[Je,ee.tag_disciplines||ee.sub_disciplines||[]]}}}return[Je,[]]}},85953:function(_e,be,ae){"use strict";ae.r(be),ae.d(be,{default:function(){return Tt}});var oe=ae(59301),Ce=ae(25690),ke=ae(28284),Ie=ae(6767),He=ae(62957),Te=ae(91882),ze=ae(47889),ot=ae(77019),Ke=ae(17149),Be=ae(82326),gt=ae(69219),Je=ae(25399),wt=ae(14566),Fe=ae(54172),te=ae(99571),ee=ae(346),he={bgWrapper:"bgWrapper___yZrnF",bg:"bg___DMAyj",main:"main___l1oS8",addTypeRadio:"addTypeRadio___eH2zI",formWrap:"formWrap___ydPvR",questionTypeRadio:"questionTypeRadio___jQze1",difficultyWrapper:"difficultyWrapper___W9ML_",cascaderWrapper:"cascaderWrapper___AUd1O",courseCascader:"courseCascader___UEeI3",knowledgeWrapper:"knowledgeWrapper___sIao8",treeWrapper:"treeWrapper___t5heq",uploadTips:"uploadTips___v_XSU",uploadTipsIcon:"uploadTipsIcon___gfQUD",downloadBtn:"downloadBtn___BqNPb",uploadBtn:"uploadBtn___p7bAk",buttonFixed:"buttonFixed___j1UZJ",buttonWrap:"buttonWrap___FfqsJ",button:"button___TuRr2",topicWrap:"topicWrap___v5_lJ",cascaderPopup:"cascaderPopup___nXZ4B",unfold:"unfold____IJ2y"},ue=ae(77762),fe=ae(51257),me=ae(1041),Ee=ae(61485),Pe=ae(38986),Ne=ae(50043),We=ae(72937),tt=ae(24334),Ye=ae(46722),Qe=ae(59301),lt=Object.defineProperty,nt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,jt=(Xt,nn,Nn)=>nn in Xt?lt(Xt,nn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):Xt[nn]=Nn,Bt=(Xt,nn)=>{for(var Nn in nn||(nn={}))St.call(nn,Nn)&&jt(Xt,Nn,nn[Nn]);if(vt)for(var Nn of vt(nn))Lt.call(nn,Nn)&&jt(Xt,Nn,nn[Nn]);return Xt},cn=(Xt,nn)=>nt(Xt,yt(nn)),pt=(Xt,nn,Nn)=>new Promise((Rt,At)=>{var Zt=qe=>{try{Dn(Nn.next(qe))}catch(Oe){At(Oe)}},In=qe=>{try{Dn(Nn.throw(qe))}catch(Oe){At(Oe)}},Dn=qe=>qe.done?Rt(qe.value):Promise.resolve(qe.value).then(Zt,In);Dn((Nn=Nn.apply(Xt,nn)).next())});const ut=Xt=>Xt==="SINGLE"||Xt==="MULTIPLE"?"SELECT":Xt,at=Xt=>Xt.map(nn=>cn(Bt({},nn),{is_answer:nn.is_answer?1:0})),Wt=({form:Xt,currentItemType:nn,editId:Nn})=>({SELECT:Qe.createElement(ue.uh,{form:Xt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"is_answer",allowChangeMode:!0}),JUDGMENT:Qe.createElement(ue.ZZ,{form:Xt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:"choices"}),COMPLETION:Qe.createElement(ue.u8,{form:Xt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,answerKey:"standard_answers"}),SUBJECTIVE:Qe.createElement(ue.Wk,{showKeywords:!0,isMustKeyWords:!1,form:Xt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),COMBINATION:Qe.createElement(ue.rL,{form:Xt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:"choices",withScore:!1}),BPROGRAM:Qe.createElement(ue.tc,{form:Xt,hackidentifier:Nn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,answerKey:"standard_answers"})})[nn]||null,rn=({problemset:Xt,loading:nn,dispatch:Nn})=>{var Rt,At,Zt,In;const Dn=(0,Ce.useParams)(),[qe]=(0,Ce.useSearchParams)(),[Oe]=ke.default.useForm(),[Le,Ge]=(0,oe.useState)(),[it,De]=(0,oe.useState)([]),ht=(0,oe.useRef)(),[on,An]=(0,oe.useState)(1),[Zn,Ft]=(0,oe.useState)([]),[It,Gt]=(0,oe.useState)(),[fn,Pn]=(0,oe.useState)(!1),[an,Ot]=(0,oe.useState)(),[Mn,Ht]=(0,oe.useState)("SELECT"),Kt=ke.default.useWatch("knowledge",Oe),[un,Vn]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{mt()},[]);const bn=li=>li.map(Me=>({title:Me.name,value:Me.group_id,children:bn(Me.children)})),mt=()=>pt(void 0,null,function*(){const li=yield(0,Ye.NZ)({});if(li!=null&&li.data){const Me=[{title:"\u6839\u76EE\u5F55",value:0,children:bn(li.data||[])}];Vn(Me)}});(0,oe.useEffect)(()=>(Nn({type:"globalSetting/footerToggle",payload:!1}),()=>{Nn({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,oe.useEffect)(()=>(on===1&&window.addEventListener("beforeunload",Kn),()=>{window.removeEventListener("beforeunload",Kn)}),[on]),(0,oe.useEffect)(()=>{const li=qe.get("pages");Ge(li);const Me=Dn.id;ht.current=Me},[]);const jn=Dn.type==="edit";(0,oe.useEffect)(()=>{Nn({type:"problemset/getEditDisciplines",payload:{source:"new_question"}}),qe.get("type")==="1"?ht.current&&Nn({type:"problemset/getEditDataBprogram",payload:{id:ht.current}}):ht.current&&Nn({type:"problemset/getEditData",payload:{id:ht.current}})},[]),(0,oe.useEffect)(()=>{var li,Me,ii,ti,On,ni;if(!jn)Ot({item_type:"SELECT",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),difficulty:2,item_banks_group_id:[Number(qe.get("group_id"))||0]});else{if(!(Xt!=null&&Xt.editData))return;const{discipline:Ei,sub_discipline:ui,sub_discipline_id:tr,tag_disciplines:Sn,item_type:sn,choices:dn=[],sub_item_banks:_n=[]}=(Xt==null?void 0:Xt.editData)||{};if(qe.get("type")==="1"){if(Ht("BPROGRAM"),(li=Xt==null?void 0:Xt.disciplinesData)!=null&&li.disciplines){const[Ri,qn]=(0,We.y3)((Me=Xt==null?void 0:Xt.disciplinesData)==null?void 0:Me.disciplines,tr),Ni={item_type:"BPROGRAM",standard_answers:Xt.editData.standard_answer,difficulty:Xt.editData.difficult,item_banks_group_id:Xt.editData.item_banks_group_id,course:Ri,knowledge:(ii=Xt.editData)==null?void 0:ii.tag_discipline_ids,hack:Bt({},Xt.editData),hack_codes:cn(Bt({},Xt.editData),{code:tt.Base64.decode(((ti=Xt.editData)==null?void 0:ti.code)||"")}),hack_sets:Bt({},(ni=(On=Xt.editData)==null?void 0:On.hack_sets)==null?void 0:ni[0])};Ot(Ni),tr&&Un(tr).then(mn=>{})}}else{const Ri=cn(Bt({},Xt==null?void 0:Xt.editData),{item_type:ut(sn),choices:at(dn),course:[Ei==null?void 0:Ei.id,ui==null?void 0:ui.id],knowledge:Sn==null?void 0:Sn.map(qn=>qn.id),sub_item_banks:_n.map(qn=>cn(Bt({},qn),{choices:at(qn.choices)}))});Ot(Ri),Ht(ut(sn)),ui!=null&&ui.id&&Un(ui==null?void 0:ui.id).then(qn=>{var Ni;const mn=qn==null?void 0:qn.map(Hn=>Hn.id);mn!=null&&mn.includes((Ni=Sn==null?void 0:Sn[0])==null?void 0:Ni.id)||De(Hn=>[...Hn,...Sn])})}tr||Un(-1).then(Ri=>{var qn;const Ni=Ri==null?void 0:Ri.map(mn=>mn.id);Ni!=null&&Ni.includes((qn=Sn==null?void 0:Sn[0])==null?void 0:qn.id)||De(mn=>[...mn||[],...Sn||[]])})}},[Xt.editData,Xt==null?void 0:Xt.disciplinesData]);const Kn=li=>{li.preventDefault(),li.returnValue=""},Ut=li=>{const{course:Me,knowledge:ii,difficulty:ti,item_banks_group_id:On}=Oe.getFieldsValue(),ni={item_type:li,course:Me,knowledge:ii,difficulty:ti,item_banks_group_id:On};switch(Oe.resetFields(),Oe.setFieldsValue(ni),Ht(li),li){case"SELECT":Oe.setFieldsValue({choices:Array.from({length:4},()=>({choice_text:"",is_answer:0}))});break;case"JUDGMENT":Oe.setFieldsValue({choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}]});break;case"COMPLETION":Oe.setFieldsValue({standard_answers:[],downcase:!0,no_space:!0});break;case"SUBJECTIVE":Oe.setFieldsValue({answer_texts:[],use_keywords:!0});break;case"COMBINATION":break;case"PROGRAM":break;case"BPROGRAM":Oe.setFieldsValue({hack:{time_limit:3,allow_student_debug:!1,submit_rule:1}});break}},yi=(li,Me)=>{var ii;if(console.log(li,"changedValues"),li!=null&&li.item_type){if((li==null?void 0:li.item_type)==="PROGRAM"){const{course:ti,knowledge:On,difficulty:ni,item_banks_group_id:Ei}=Oe.getFieldsValue();console.log({course:ti,knowledge:On,difficulty:ni,item_banks_group_id:Ei},"resetInitValues"),(0,fe.xg)(`/problems/newcreate?discipline_id=${(ti==null?void 0:ti[0])||""}&sub_discipline_id=${(ti==null?void 0:ti[1])||""}&difficult=${ni||""}&banksIds=${Ei||""}&tagIds=${On==null?void 0:On.map(tr=>tr.value).join(",")}`)}Ut(li==null?void 0:li.item_type)}if(li!=null&&li.course){const[ti,On]=li.course;Un(On),Oe.setFieldsValue({knowledge:[]})}if((ii=li==null?void 0:li.hack)!=null&&ii.sub_discipline_id){const[ti,On]=li.hack.sub_discipline_id;Un(On),Oe.setFieldsValue({hack:{tag_discipline_ids:[]}})}},Vi=li=>{De([...it,Bt({},li)])},[kn,Vt]=(0,oe.useState)("");(0,oe.useEffect)(()=>{Vt(new Date)},[Oe.getFieldValue("course")]);const Qn=()=>pt(void 0,null,function*(){var li,Me,ii,ti;const On=Oe.getFieldsValue(),ni=Ri=>{if(!(Ri!=null&&Ri.length))return!1;const qn=Ri.map(mn=>{var Hn;return(Hn=mn.choice_text)==null?void 0:Hn.trim().replace(/^\s+|\s+$/g,"")});return new Set(qn).size!==qn.length};if(On.item_type==="SELECT"&&ni(On.choices)){Ie.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}if(On.item_type==="COMBINATION"&&((li=On.sub_item_banks)==null?void 0:li.some(qn=>qn.item_type==="SINGLE"||qn.item_type==="MULTIPLE"?ni(qn.choices):!1))){Ie.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}(On==null?void 0:On.item_type)=="COMPLETION"&&On.is_ordered==null&&(On.is_ordered=!0);let{course:Ei=[],item_type:ui,item_banks_group_id:tr,knowledge:Sn=[],choices:sn}=On||{};const[dn,_n]=Ei;if(on===1){if(ui==="PROGRAM"){(0,fe.xg)("/problems/newcreate");return}let Ri=[];(Sn==null?void 0:Sn.length)>0&&((Me=Sn==null?void 0:Sn[0])!=null&&Me.value?Sn==null||Sn.map(Hn=>{Ri.push(Hn==null?void 0:Hn.value)}):Ri=Sn);const qn=Array.isArray(tr)?tr:[tr];if(ui==="BPROGRAM"){let Hn=cn(Bt({},On),{knowledge:Ri,item_banks_group_ids:qn,hack:cn(Bt({},On==null?void 0:On.hack),{sub_discipline_id:_n,difficult:On.difficulty,item_banks_group_ids:qn,tag_discipline_ids:Ri}),hack_codes:cn(Bt({},On.hack_codes),{code:tt.Base64.encode(On.hack_codes.code)}),hack_sets:[Bt({},On.hack_sets)],update_hack_sets:[Bt({},On.hack_sets)],is_blank:!0});console.log(Hn,"datas"),jn||sessionStorage.projectFill?(yield(0,Pe.ZP)(`/api/problems/${ht.current||sessionStorage.projectFill}.json`,{method:"put",body:Bt({},Hn)})).status===0&&Ce.history.replace(`/problemset?tabs_key=${qe.get("tabs_key")||"0"}${qe.get("tabs_key")!=="3"?`&group_id=${On.item_banks_group_id}`:""}&page=${qe.get("page")}`):(yield(0,Pe.ZP)("/api/problems.json",{method:"post",body:Bt({},Hn)})).status===0&&He.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u8BD5\u9898\u65B0\u589E\u6210\u529F",okText:"\u7EE7\u7EED\u65B0\u589E",cancelText:"\u8FD4\u56DE\u5217\u8868",onOk(){Ut(Mn)},onCancel(){Ce.history.replace(`/problemset?group_id=${tr}`)}});return}if(ui==="SELECT"&&(ui=sn.filter(Hn=>Hn.is_answer===1).length>1?"MULTIPLE":"SINGLE"),ui==="COMBINATION"){let{sub_item_banks:Hn}=On||{};On.sub_item_banks=Hn==null?void 0:Hn.map(Di=>Bt({},Di))}const Ni=cn(Bt({},On),{discipline_id:dn,sub_discipline_id:_n,item_banks_group_ids:qn,tag_discipline_ids:Ri,knowledge:Ri,item_type:ui});let mn;jn?mn=yield Nn({type:"problemset/editProblemset",payload:cn(Bt({},Ni),{id:ht.current})}):mn=yield Nn({type:"problemset/addProblemset",payload:Ni}),mn.status===0&&(jn?Ce.history.replace(`/problemset?tabs_key=${qe.get("tabs_key")||"0"}${qe.get("tabs_key")!=="3"?`&group_id=${tr}`:""}&page=${qe.get("page")}`):He.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u8BD5\u9898\u65B0\u589E\u6210\u529F",okText:"\u7EE7\u7EED\u65B0\u589E",cancelText:"\u8FD4\u56DE\u5217\u8868",onOk(){Ut(Mn)},onCancel(){Ce.history.replace(`/problemset?group_id=${tr}`)}}))}else{if((Zn==null?void 0:Zn.length)<=0){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u8BD5\u9898\u6587\u4EF6");return}Pn(!0);const Ri=new FormData;Ri.append("file",Zn[0]),Ri.append("sub_discipline_id",_n);const qn=yield(0,Pe.ZP)("/api/item_banks/file_import.json",{method:"post",body:Ri},!0);if(Pn(!1),(qn==null?void 0:qn.status)===0){if(((ii=qn==null?void 0:qn.fail)==null?void 0:ii.length)>0){Gt(qn==null?void 0:qn.fail),Ie.ZP.error("\u4E0A\u4F20\u5931\u8D25\u9898\u6570\u4E3A"+((ti=qn==null?void 0:qn.fail)==null?void 0:ti.length)+"\uFF0C\u53EF\u5728\u5E95\u90E8\u8BD5\u9898\u5217\u8868\u67E5\u770B\u9519\u8BEF\u539F\u56E0\u3002");return}Oe.setFieldsValue({course:[]}),Ft([]),Gt([]),Ie.ZP.info("\u4E0A\u4F20\u6210\u529F")}}}),ai=li=>pt(void 0,null,function*(){var Me,ii,ti,On,ni;li.errorFields[0].name.includes("standard_answers")?((ti=(ii=(Me=li==null?void 0:li.errorFields)==null?void 0:Me[0])==null?void 0:ii.errors)==null?void 0:ti[0])==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"?((0,fe.pE)(),Ie.ZP.error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879")):Ie.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ie.ZP.error(li.errorFields[0].errors[0]),Oe.scrollToField((ni=(On=li==null?void 0:li.errorFields)==null?void 0:On[0])==null?void 0:ni.name,{behavior:"smooth",block:"center"})}),Un=li=>pt(void 0,null,function*(){const Me=yield Nn({type:"exercise/getTagDiscipline",payload:{sub_discipline_id:li==-1?"":li}});return De(Me.tag_disciplines),Me==null?void 0:Me.tag_disciplines}),si=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",key:"name"},{title:"\u9519\u8BEF\u539F\u56E0",dataIndex:"message",key:"message"}];return Qe.createElement("div",{className:he.bgWrapper},Qe.createElement("section",{className:he.bg},Qe.createElement(Te.Z,{className:"mb20",separator:">"},Qe.createElement(Te.Z.Item,{href:"/problemset"},"\u8BD5\u9898\u5E93"),Qe.createElement(Te.Z.Item,null,jn?"\u7F16\u8F91":"\u65B0\u589E","\u8BD5\u9898")),Qe.createElement("div",{className:he.main},!jn&&Qe.createElement(ze.ZP.Group,{className:he.addTypeRadio,optionType:"button",options:[{label:"\u5355\u4E2A\u6DFB\u52A0",value:1},{label:"\u6279\u91CF\u5BFC\u5165",value:2},{label:Qe.createElement("div",null,Qe.createElement("img",{width:26,style:{position:"absolute",top:-5},src:Ne.$}),Qe.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),value:3}],onChange:li=>{An(li.target.value),Ft([]),Gt([])},value:on}),on===1&&an&&Qe.createElement(ke.default,{form:Oe,className:he.formWrap,layout:"horizontal",colon:!1,onValuesChange:yi,onFinish:Qn,onFinishFailed:ai,initialValues:an},Qe.createElement(ke.default.Item,{label:"\u8BD5\u9898\u7C7B\u578B",name:"item_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9898\u578B"}]},Qe.createElement(ze.ZP.Group,{disabled:jn,optionType:"button",className:he.questionTypeRadio,options:[{label:"\u9009\u62E9\u9898",value:"SELECT"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}]})),Qe.createElement("div",{style:{display:Mn==="PROGRAM"?"none":"flex",background:"#F6F7F9",alignItems:"center",padding:"27px 20px"}},Qe.createElement(ot.Z,{align:"middle"},Qe.createElement(ke.default.Item,{label:"\u77E5\u8BC6\u70B9",labelCol:{flex:"62px"},className:he.cascaderWrapper,name:"course"},Qe.createElement(Ke.Z,{className:he.courseCascader,popupClassName:he.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",allowClear:!0,options:Xt.courseOptions,style:{width:177},onChange:li=>{li||Oe.setFieldsValue({knowledge:[]})}})),Qe.createElement(ke.default.Item,{label:"",name:"knowledge",className:"mb0"},Qe.createElement(me.N,{key:kn,height:260,selectvalues:Kt,subId:((Rt=Oe.getFieldsValue().course)==null?void 0:Rt[1])||((In=(Zt=(At=Oe.getFieldsValue())==null?void 0:At.hack)==null?void 0:Zt.sub_discipline_id)==null?void 0:In[1]),knowledgeOptions:it,onAddKnowledgeFinish:Vi,className:he.knowledgeWrapper}))),Qe.createElement(ke.default.Item,{name:"difficulty",label:"\u96BE\u5EA6",className:he.difficultyWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Qe.createElement(Be.default,{style:{width:120,height:46}},Qe.createElement(Be.default.Option,{value:1},"\u7B80\u5355"),Qe.createElement(Be.default.Option,{value:2},"\u9002\u4E2D"),Qe.createElement(Be.default.Option,{value:3},"\u56F0\u96BE"))),Qe.createElement(ke.default.Item,{label:"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55",className:he.difficultyWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"item_banks_group_id",style:{marginLeft:"auto"}},Qe.createElement(gt.default,{style:{width:270},treeDefaultExpandedKeys:[0],placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",popupClassName:he.treeWrapper,treeData:un}))),Qe.createElement("div",{className:he.topicWrap},Qe.createElement(Wt,{editId:ht.current,currentItemType:Mn,form:Oe}))),on===2&&Qe.createElement("div",null,Qe.createElement(ke.default,{form:Oe,className:he.formWrap,layout:"vertical",onValuesChange:yi,onFinish:Qn},Qe.createElement(ke.default.Item,{className:he.cascaderWrapper,label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"course",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},Qe.createElement(Ke.Z,{className:he.courseCascader,popupClassName:he.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",showArrow:!0,allowClear:!1,options:Xt.courseOptions,style:{width:490}})),Qe.createElement("div",{className:"mb30"},Qe.createElement("span",{className:he.uploadTips},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898",Qe.createElement(Je.Z,{title:Qe.createElement("div",null,Qe.createElement("div",null,"\u63D0\u793A:"),Qe.createElement("div",null,"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B"),Qe.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),Qe.createElement("div",null,"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),Qe.createElement("div",null,"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))},Qe.createElement(Ee.Z,{className:he.uploadTipsIcon}))),Qe.createElement("a",{className:`${he.downloadBtn} ml30`,href:ee.Z.API_SERVER+"/api/item_banks/down_template",download:!0},"\u4E0B\u8F7D\u8BD5\u9898\u6A21\u7248",Qe.createElement("i",{className:"iconfont icon-xiazai4 ml10",style:{fontSize:14}}))),Qe.createElement(wt.default,{onRemove:()=>{Ft([])},beforeUpload:li=>{if(console.log(li),(li==null?void 0:li.size)>1024*1024*50)return Ie.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let Me=[];return Me.push(li),Ft([...Me]),!1},fileList:Zn,accept:".xls,.xlsx",showUploadList:{removeIcon:Qe.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160"}})}},Qe.createElement("div",{className:he.uploadBtn},Qe.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}}),"\u70B9\u51FB\u4E0A\u4F20"))),Qe.createElement("br",null),(It==null?void 0:It.length)>0&&Qe.createElement("span",{style:{fontSize:"18px",display:"flex",width:"100%",justifyContent:"center"}},"\u9519\u8BEF\u5217\u8868"),(It==null?void 0:It.length)>0&&Qe.createElement(Fe.default,{style:{marginTop:"10px"},dataSource:It,columns:si})),on===3&&Qe.createElement(Ne.Z,{mode:1,onCancel:()=>Ce.history.push("/problemset")})),on!==3&&Qe.createElement("div",{className:he.buttonFixed},Qe.createElement("div",{className:he.buttonWrap},Qe.createElement(te.ZP,{size:"middle",className:`${he.button} mr20`,onClick:()=>Ce.history.push(`/problemset?page=${qe.get("page")}`)},"\u53D6\u6D88"),Qe.createElement(te.ZP,{size:"middle",type:"primary",className:`${he.button} mr20`,onClick:()=>Oe.submit(),loading:nn["problemset/editProblemset"]||nn["problemset/addProblemset"]||fn},Mn==="PROGRAM"&&on===1?"\u7ACB\u5373\u521B\u5EFA":"\u4FDD\u5B58\u9898\u76EE")))))};var Tt=(0,Ce.connect)(({problemset:Xt,loading:nn,globalSetting:Nn})=>({problemset:Xt,globalSetting:Nn,loading:nn.effects}))(rn)},81428:function(_e,be,ae){"use strict";ae.d(be,{AL:function(){return Ee},Iy:function(){return gt},Qv:function(){return Fe},ez:function(){return me},jb:function(){return Je}});var oe=ae(32834),Ce=ae.n(oe),ke=ae(11690),Ie=ae.n(ke);let He=1;function Te(Ye,Qe){const lt=Ye.match(/^(\s+)(?:```)/);if(lt===null)return Qe;const nt=lt[1];return Qe.split(`
`).map(yt=>{const vt=yt.match(/^\s+/);if(vt===null)return yt;const[St]=vt;return St.length>=nt.length?yt.slice(nt.length):yt}).join(`
`)}let ze=[],ot=["<ul>"];const Ke=new(Ce()).Renderer,Be=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function gt(){ze.length=0,ot=["<ul>"]}const Je={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function wt(Ye,Qe,lt,nt){if(Qe>=Ye.length||Ye[Qe].level<=lt)return Qe;var yt=Ye[Qe];nt.push("<li><a href='#"+He+yt.anchor+"'>"+yt.text+"</a>"),Qe++;var vt=[];return Qe=wt(Ye,Qe,yt.level,vt),vt.length>0&&(nt.push("<ul>"),vt.forEach(function(St){nt.push(St)}),nt.push("</ul>")),nt.push("</li>"),Qe=wt(Ye,Qe,lt,nt),Qe}function Fe(){return wt(ze,0,0,ot),ot.push("</ul>"),ot.join("")}const te={heading(Ye){const Qe=Be.exec(Ye);if(He+=1,Qe)return{type:"heading",raw:Qe[0],depth:Qe[1].length,text:Qe[2]}},fences(Ye){const Qe=this.rules.block.fences.exec(Ye);if(Qe){const lt=Qe[0];let nt=Te(lt,Qe[3]||"");const yt=Qe[2]?Qe[2].trim():Qe[2];if(["latex","katex","math"].indexOf(yt)>=0){const vt=ue(),St=nt;nt=vt,fe[vt]={type:"block",expression:St}}return{type:"code",raw:lt,lang:yt,text:nt}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const ue=()=>`__special_katext_id_${he++}__`;let fe={};function me(){return fe}function Ee(){he=0,fe={}}function Pe(Ye){return Ye=Ye.replace(ee,(Qe,lt)=>{const nt=ue();return fe[nt]={type:"inline",expression:lt},nt}),Ye}const Ne=Ke.listitem;Ke.listitem=function(Ye){return Ne(Pe(Ye))};const We=Ke.paragraph;Ke.paragraph=function(Ye){return We(Pe(Ye))};const tt=Ke.tablecell;Ke.tablecell=function(Ye,Qe){return tt(Pe(Ye),Qe)},Ke.code=function(Ye,Qe,lt){const nt=(Qe||"").match(/\S*/)[0];return nt?["latex","katex","math"].indexOf(nt)>=0?`<p class='editormd-tex'>${Ye}</p>`:`<pre class="prettyprint linenums"><code class="language-${Qe}">${lt?Ye:(0,ke.escape)(Ye,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(lt?Ye:(0,ke.escape)(Ye,!0))+"</code></pre>"},Ke.heading=function(Ye,Qe,lt){let nt=this.options.headerPrefix+lt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ze.push({anchor:nt,level:Qe,text:Ye}),"<h"+Qe+' id="'+He+nt+'">'+Ye+"</h"+Qe+">"},Ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ce().use({tokenizer:te,renderer:Ke}),be.ZP=Ce()},99498:function(_e,be,ae){(function(oe){oe(ae(89780))})(function(oe){oe.defineOption("placeholder","",function(ot,Ke,Be){var gt=Be&&Be!=oe.Init;if(Ke&&!gt)ot.on("blur",He),ot.on("change",Te),ot.on("swapDoc",Te),oe.on(ot.getInputField(),"compositionupdate",ot.state.placeholderCompose=function(){Ie(ot)}),Te(ot);else if(!Ke&&gt){ot.off("blur",He),ot.off("change",Te),ot.off("swapDoc",Te),oe.off(ot.getInputField(),"compositionupdate",ot.state.placeholderCompose),Ce(ot);var Je=ot.getWrapperElement();Je.className=Je.className.replace(" CodeMirror-empty","")}Ke&&!ot.hasFocus()&&He(ot)});function Ce(ot){ot.state.placeholder&&(ot.state.placeholder.parentNode.removeChild(ot.state.placeholder),ot.state.placeholder=null)}function ke(ot){Ce(ot);var Ke=ot.state.placeholder=document.createElement("pre");Ke.style.cssText="height: 0; overflow: visible",Ke.style.direction=ot.getOption("direction"),Ke.className="CodeMirror-placeholder CodeMirror-line-like";var Be=ot.getOption("placeholder");typeof Be=="string"&&(Be=document.createTextNode(Be)),Ke.appendChild(Be),ot.display.lineSpace.insertBefore(Ke,ot.display.lineSpace.firstChild)}function Ie(ot){setTimeout(function(){var Ke=!1,Be=ot.getInputField();Be.nodeName=="TEXTAREA"?Ke=!Be.value:ot.lineCount()==1&&(Ke=!/[^\u200b]/.test(Be.querySelector(".CodeMirror-line").textContent)),Ke?ke(ot):Ce(ot)},20)}function He(ot){ze(ot)&&ke(ot)}function Te(ot){var Ke=ot.getWrapperElement(),Be=ze(ot);Ke.className=Ke.className.replace(" CodeMirror-empty","")+(Be?" CodeMirror-empty":""),Be?ke(ot):Ce(ot)}function ze(ot){return ot.lineCount()===1&&ot.getLine(0)===""}})},25717:function(_e,be,ae){(function(oe){oe(ae(89780))})(function(oe){var Ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ke=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(te,ee,he){he&&he!=oe.Init&&(te.removeKeyMap(He),te.state.closeBrackets=null),ee&&(Te(Ie(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(He))});function Ie(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:Ce[ee]}var He={Backspace:Ke,Enter:Be};function Te(te){for(var ee=0;ee<te.length;ee++){var he=te.charAt(ee),ue="'"+he+"'";He[ue]||(He[ue]=ze(he))}}Te(Ce.pairs+"`");function ze(te){return function(ee){return Je(ee,te)}}function ot(te){var ee=te.state.closeBrackets;if(!ee||ee.override)return ee;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ee}function Ke(te){var ee=ot(te);if(!ee||te.getOption("disableInput"))return oe.Pass;for(var he=Ie(ee,"pairs"),ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=wt(te,ue[fe].head);if(!me||he.indexOf(me)%2!=0)return oe.Pass}for(var fe=ue.length-1;fe>=0;fe--){var Ee=ue[fe].head;te.replaceRange("",ke(Ee.line,Ee.ch-1),ke(Ee.line,Ee.ch+1),"+delete")}}function Be(te){var ee=ot(te),he=ee&&Ie(ee,"explode");if(!he||te.getOption("disableInput"))return oe.Pass;for(var ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=wt(te,ue[fe].head);if(!me||he.indexOf(me)%2!=0)return oe.Pass}te.operation(function(){var Ee=te.lineSeparator()||`
`;te.replaceSelection(Ee+Ee,null),te.execCommand("goCharLeft"),ue=te.listSelections();for(var Pe=0;Pe<ue.length;Pe++){var Ne=ue[Pe].head.line;te.indentLine(Ne,null,!0),te.indentLine(Ne+1,null,!0)}})}function gt(te){var ee=oe.cmpPos(te.anchor,te.head)>0;return{anchor:new ke(te.anchor.line,te.anchor.ch+(ee?-1:1)),head:new ke(te.head.line,te.head.ch+(ee?1:-1))}}function Je(te,ee){var he=ot(te);if(!he||te.getOption("disableInput"))return oe.Pass;var ue=Ie(he,"pairs"),fe=ue.indexOf(ee);if(fe==-1)return oe.Pass;for(var me=Ie(he,"closeBefore"),Ee=Ie(he,"triples"),Pe=ue.charAt(fe+1)==ee,Ne=te.listSelections(),We=fe%2==0,tt,Ye=0;Ye<Ne.length;Ye++){var Qe=Ne[Ye],lt=Qe.head,nt,yt=te.getRange(lt,ke(lt.line,lt.ch+1));if(We&&!Qe.empty())nt="surround";else if((Pe||!We)&&yt==ee)Pe&&Fe(te,lt)?nt="both":Ee.indexOf(ee)>=0&&te.getRange(lt,ke(lt.line,lt.ch+3))==ee+ee+ee?nt="skipThree":nt="skip";else if(Pe&&lt.ch>1&&Ee.indexOf(ee)>=0&&te.getRange(ke(lt.line,lt.ch-2),lt)==ee+ee){if(lt.ch>2&&/\bstring/.test(te.getTokenTypeAt(ke(lt.line,lt.ch-2))))return oe.Pass;nt="addFour"}else if(Pe){var vt=lt.ch==0?" ":te.getRange(ke(lt.line,lt.ch-1),lt);if(!oe.isWordChar(yt)&&vt!=ee&&!oe.isWordChar(vt))nt="both";else return oe.Pass}else if(We&&(yt.length===0||/\s/.test(yt)||me.indexOf(yt)>-1))nt="both";else return oe.Pass;if(!tt)tt=nt;else if(tt!=nt)return oe.Pass}var St=fe%2?ue.charAt(fe-1):ee,Lt=fe%2?ee:ue.charAt(fe+1);te.operation(function(){if(tt=="skip")te.execCommand("goCharRight");else if(tt=="skipThree")for(var jt=0;jt<3;jt++)te.execCommand("goCharRight");else if(tt=="surround"){for(var Bt=te.getSelections(),jt=0;jt<Bt.length;jt++)Bt[jt]=St+Bt[jt]+Lt;te.replaceSelections(Bt,"around"),Bt=te.listSelections().slice();for(var jt=0;jt<Bt.length;jt++)Bt[jt]=gt(Bt[jt]);te.setSelections(Bt)}else tt=="both"?(te.replaceSelection(St+Lt,null),te.triggerElectric(St+Lt),te.execCommand("goCharLeft")):tt=="addFour"&&(te.replaceSelection(St+St+St+St,"before"),te.execCommand("goCharRight"))})}function wt(te,ee){var he=te.getRange(ke(ee.line,ee.ch-1),ke(ee.line,ee.ch+1));return he.length==2?he:null}function Fe(te,ee){var he=te.getTokenAt(ke(ee.line,ee.ch+1));return/\bstring/.test(he.type)&&he.start==ee.ch&&(ee.ch==0||!/\bstring/.test(te.getTokenTypeAt(ee)))}})},6313:function(_e,be,ae){(function(oe){oe(ae(89780),ae(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Ke,Be,gt){if(gt!=oe.Init&&gt&&Ke.removeKeyMap("autoCloseTags"),!!Be){var Je={name:"autoCloseTags"};(typeof Be!="object"||Be.whenClosing!==!1)&&(Je["'/'"]=function(wt){return Te(wt)}),(typeof Be!="object"||Be.whenOpening!==!1)&&(Je["'>'"]=function(wt){return Ie(wt)}),Ke.addKeyMap(Je)}});var Ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ke=["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(Ke){if(Ke.getOption("disableInput"))return oe.Pass;for(var Be=Ke.listSelections(),gt=[],Je=Ke.getOption("autoCloseTags"),wt=0;wt<Be.length;wt++){if(!Be[wt].empty())return oe.Pass;var Fe=Be[wt].head,te=Ke.getTokenAt(Fe),ee=oe.innerMode(Ke.getMode(),te.state),he=ee.state,ue=ee.mode.xmlCurrentTag&&ee.mode.xmlCurrentTag(he),fe=ue&&ue.name;if(!fe)return oe.Pass;var me=ee.mode.configuration=="html",Ee=typeof Je=="object"&&Je.dontCloseTags||me&&Ce,Pe=typeof Je=="object"&&Je.indentTags||me&&ke;te.end>Fe.ch&&(fe=fe.slice(0,fe.length-te.end+Fe.ch));var Ne=fe.toLowerCase();if(!fe||te.type=="string"&&(te.end!=Fe.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&ue.close||te.string.indexOf("/")==Fe.ch-te.start-1||Ee&&ze(Ee,Ne)>-1||ot(Ke,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(he)||[],fe,Fe,!0))return oe.Pass;var We=typeof Je=="object"&&Je.emptyTags;if(We&&ze(We,fe)>-1){gt[wt]={text:"/>",newPos:oe.Pos(Fe.line,Fe.ch+2)};continue}var tt=Pe&&ze(Pe,Ne)>-1;gt[wt]={indent:tt,text:">"+(tt?`
`:"")+"</"+fe+">",newPos:tt?oe.Pos(Fe.line+1,0):oe.Pos(Fe.line,Fe.ch+1)}}for(var Ye=typeof Je=="object"&&Je.dontIndentOnAutoClose,wt=Be.length-1;wt>=0;wt--){var Qe=gt[wt];Ke.replaceRange(Qe.text,Be[wt].head,Be[wt].anchor,"+insert");var lt=Ke.listSelections().slice(0);lt[wt]={head:Qe.newPos,anchor:Qe.newPos},Ke.setSelections(lt),!Ye&&Qe.indent&&(Ke.indentLine(Qe.newPos.line,null,!0),Ke.indentLine(Qe.newPos.line+1,null,!0))}}function He(Ke,Be){for(var gt=Ke.listSelections(),Je=[],wt=Be?"/":"</",Fe=Ke.getOption("autoCloseTags"),te=typeof Fe=="object"&&Fe.dontIndentOnSlash,ee=0;ee<gt.length;ee++){if(!gt[ee].empty())return oe.Pass;var he=gt[ee].head,ue=Ke.getTokenAt(he),fe=oe.innerMode(Ke.getMode(),ue.state),me=fe.state;if(Be&&(ue.type=="string"||ue.string.charAt(0)!="<"||ue.start!=he.ch-1))return oe.Pass;var Ee,Pe=fe.mode.name!="xml"&&Ke.getMode().name=="htmlmixed";if(Pe&&fe.mode.name=="javascript")Ee=wt+"script";else if(Pe&&fe.mode.name=="css")Ee=wt+"style";else{var Ne=fe.mode.xmlCurrentContext&&fe.mode.xmlCurrentContext(me);if(!Ne||Ne.length&&ot(Ke,Ne,Ne[Ne.length-1],he))return oe.Pass;Ee=wt+Ne[Ne.length-1]}Ke.getLine(he.line).charAt(ue.end)!=">"&&(Ee+=">"),Je[ee]=Ee}if(Ke.replaceSelections(Je),gt=Ke.listSelections(),!te)for(var ee=0;ee<gt.length;ee++)(ee==gt.length-1||gt[ee].head.line<gt[ee+1].head.line)&&Ke.indentLine(gt[ee].head.line)}function Te(Ke){return Ke.getOption("disableInput")?oe.Pass:He(Ke,!0)}oe.commands.closeTag=function(Ke){return He(Ke)};function ze(Ke,Be){if(Ke.indexOf)return Ke.indexOf(Be);for(var gt=0,Je=Ke.length;gt<Je;++gt)if(Ke[gt]==Be)return gt;return-1}function ot(Ke,Be,gt,Je,wt){if(!oe.scanForClosingTag)return!1;var Fe=Math.min(Ke.lastLine()+1,Je.line+500),te=oe.scanForClosingTag(Ke,Je,null,Fe);if(!te||te.tag!=gt)return!1;for(var ee=wt?1:0,he=Be.length-1;he>=0&&Be[he]==gt;he--)++ee;Je=te.to;for(var he=1;he<ee;he++){var ue=oe.scanForClosingTag(Ke,Je,null,Fe);if(!ue||ue.tag!=gt)return!1;Je=ue.to}return!0}})},32855:function(_e,be,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Ce=oe.Pos;function ke(he,ue){return he.line-ue.line||he.ch-ue.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",He=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+Ie+"]["+He+"]*)","g");function ze(he,ue,fe,me){this.line=ue,this.ch=fe,this.cm=he,this.text=he.getLine(ue),this.min=me?Math.max(me.from,he.firstLine()):he.firstLine(),this.max=me?Math.min(me.to-1,he.lastLine()):he.lastLine()}function ot(he,ue){var fe=he.cm.getTokenTypeAt(Ce(he.line,ue));return fe&&/\btag\b/.test(fe)}function Ke(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function Be(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function gt(he){for(;;){var ue=he.text.indexOf(">",he.ch);if(ue==-1){if(Ke(he))continue;return}if(!ot(he,ue+1)){he.ch=ue+1;continue}var fe=he.text.lastIndexOf("/",ue),me=fe>-1&&!/\S/.test(he.text.slice(fe+1,ue));return he.ch=ue+1,me?"selfClose":"regular"}}function Je(he){for(;;){var ue=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(ue==-1){if(Be(he))continue;return}if(!ot(he,ue+1)){he.ch=ue;continue}Te.lastIndex=ue,he.ch=ue;var fe=Te.exec(he.text);if(fe&&fe.index==ue)return fe}}function wt(he){for(;;){Te.lastIndex=he.ch;var ue=Te.exec(he.text);if(!ue){if(Ke(he))continue;return}if(!ot(he,ue.index+1)){he.ch=ue.index+1;continue}return he.ch=ue.index+ue[0].length,ue}}function Fe(he){for(;;){var ue=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(ue==-1){if(Be(he))continue;return}if(!ot(he,ue+1)){he.ch=ue;continue}var fe=he.text.lastIndexOf("/",ue),me=fe>-1&&!/\S/.test(he.text.slice(fe+1,ue));return he.ch=ue+1,me?"selfClose":"regular"}}function te(he,ue){for(var fe=[];;){var me=wt(he),Ee,Pe=he.line,Ne=he.ch-(me?me[0].length:0);if(!me||!(Ee=gt(he)))return;if(Ee!="selfClose")if(me[1]){for(var We=fe.length-1;We>=0;--We)if(fe[We]==me[2]){fe.length=We;break}if(We<0&&(!ue||ue==me[2]))return{tag:me[2],from:Ce(Pe,Ne),to:Ce(he.line,he.ch)}}else fe.push(me[2])}}function ee(he,ue){for(var fe=[];;){var me=Fe(he);if(!me)return;if(me=="selfClose"){Je(he);continue}var Ee=he.line,Pe=he.ch,Ne=Je(he);if(!Ne)return;if(Ne[1])fe.push(Ne[2]);else{for(var We=fe.length-1;We>=0;--We)if(fe[We]==Ne[2]){fe.length=We;break}if(We<0&&(!ue||ue==Ne[2]))return{tag:Ne[2],from:Ce(he.line,he.ch),to:Ce(Ee,Pe)}}}}oe.registerHelper("fold","xml",function(he,ue){for(var fe=new ze(he,ue.line,0);;){var me=wt(fe);if(!me||fe.line!=ue.line)return;var Ee=gt(fe);if(!Ee)return;if(!me[1]&&Ee!="selfClose"){var Pe=Ce(fe.line,fe.ch),Ne=te(fe,me[2]);return Ne&&ke(Ne.from,Pe)>0?{from:Pe,to:Ne.from}:null}}}),oe.findMatchingTag=function(he,ue,fe){var me=new ze(he,ue.line,ue.ch,fe);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var Ee=gt(me),Pe=Ee&&Ce(me.line,me.ch),Ne=Ee&&Je(me);if(!(!Ee||!Ne||ke(me,ue)>0)){var We={from:Ce(me.line,me.ch),to:Pe,tag:Ne[2]};return Ee=="selfClose"?{open:We,close:null,at:"open"}:Ne[1]?{open:ee(me,Ne[2]),close:We,at:"close"}:(me=new ze(he,Pe.line,Pe.ch,fe),{open:We,close:te(me,Ne[2]),at:"open"})}}},oe.findEnclosingTag=function(he,ue,fe,me){for(var Ee=new ze(he,ue.line,ue.ch,fe);;){var Pe=ee(Ee,me);if(!Pe)break;var Ne=new ze(he,ue.line,ue.ch,fe),We=te(Ne,Pe.tag);if(We)return{open:Pe,close:We}}},oe.scanForClosingTag=function(he,ue,fe,me){var Ee=new ze(he,ue.line,ue.ch,me?{from:0,to:me}:null);return te(Ee,fe)}})},89780:function(_e){(function(be,ae){_e.exports=ae()})(this,function(){"use strict";var be=navigator.userAgent,ae=navigator.platform,oe=/gecko\/\d/i.test(be),Ce=/MSIE \d/.test(be),ke=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(be),Ie=/Edge\/(\d+)/.exec(be),He=Ce||ke||Ie,Te=He&&(Ce?document.documentMode||6:+(Ie||ke)[1]),ze=!Ie&&/WebKit\//.test(be),ot=ze&&/Qt\/\d+\.\d+/.test(be),Ke=!Ie&&/Chrome\//.test(be),Be=/Opera\//.test(be),gt=/Apple Computer/.test(navigator.vendor),Je=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(be),wt=/PhantomJS/.test(be),Fe=!Ie&&/AppleWebKit/.test(be)&&/Mobile\/\w+/.test(be),te=/Android/.test(be),ee=Fe||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(be),he=Fe||/Mac/.test(ae),ue=/\bCrOS\b/.test(be),fe=/win/i.test(ae),me=Be&&be.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(Be=!1,ze=!0);var Ee=he&&(ot||Be&&(me==null||me<12.11)),Pe=oe||He&&Te>=9;function Ne(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var We=function(ie,le){var ye=ie.className,ve=Ne(le).exec(ye);if(ve){var xe=ye.slice(ve.index+ve[0].length);ie.className=ye.slice(0,ve.index)+(xe?ve[1]+xe:"")}};function tt(ie){for(var le=ie.childNodes.length;le>0;--le)ie.removeChild(ie.firstChild);return ie}function Ye(ie,le){return tt(ie).appendChild(le)}function Qe(ie,le,ye,ve){var xe=document.createElement(ie);if(ye&&(xe.className=ye),ve&&(xe.style.cssText=ve),typeof le=="string")xe.appendChild(document.createTextNode(le));else if(le)for(var Ve=0;Ve<le.length;++Ve)xe.appendChild(le[Ve]);return xe}function lt(ie,le,ye,ve){var xe=Qe(ie,le,ye,ve);return xe.setAttribute("role","presentation"),xe}var nt;document.createRange?nt=function(ie,le,ye,ve){var xe=document.createRange();return xe.setEnd(ve||ie,ye),xe.setStart(ie,le),xe}:nt=function(ie,le,ye){var ve=document.body.createTextRange();try{ve.moveToElementText(ie.parentNode)}catch(xe){return ve}return ve.collapse(!0),ve.moveEnd("character",ye),ve.moveStart("character",le),ve};function yt(ie,le){if(le.nodeType==3&&(le=le.parentNode),ie.contains)return ie.contains(le);do if(le.nodeType==11&&(le=le.host),le==ie)return!0;while(le=le.parentNode)}function vt(){var ie;try{ie=document.activeElement}catch(le){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function St(ie,le){var ye=ie.className;Ne(le).test(ye)||(ie.className+=(ye?" ":"")+le)}function Lt(ie,le){for(var ye=ie.split(" "),ve=0;ve<ye.length;ve++)ye[ve]&&!Ne(ye[ve]).test(le)&&(le+=" "+ye[ve]);return le}var jt=function(ie){ie.select()};Fe?jt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:He&&(jt=function(ie){try{ie.select()}catch(le){}});function Bt(ie){var le=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,le)}}function cn(ie,le,ye){le||(le={});for(var ve in ie)ie.hasOwnProperty(ve)&&(ye!==!1||!le.hasOwnProperty(ve))&&(le[ve]=ie[ve]);return le}function pt(ie,le,ye,ve,xe){le==null&&(le=ie.search(/[^\s\u00a0]/),le==-1&&(le=ie.length));for(var Ve=ve||0,st=xe||0;;){var xt=ie.indexOf(" ",Ve);if(xt<0||xt>=le)return st+(le-Ve);st+=xt-Ve,st+=ye-st%ye,Ve=xt+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=Bt(this.onTimeout,this)};ut.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},ut.prototype.set=function(ie,le){this.f=le;var ye=+new Date+ie;(!this.id||ye<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ye)};function at(ie,le){for(var ye=0;ye<ie.length;++ye)if(ie[ye]==le)return ye;return-1}var Wt=50,rn={toString:function(){return"CodeMirror.Pass"}},Tt={scroll:!1},Xt={origin:"*mouse"},nn={origin:"+move"};function Nn(ie,le,ye){for(var ve=0,xe=0;;){var Ve=ie.indexOf(" ",ve);Ve==-1&&(Ve=ie.length);var st=Ve-ve;if(Ve==ie.length||xe+st>=le)return ve+Math.min(st,le-xe);if(xe+=Ve-ve,xe+=ye-xe%ye,ve=Ve+1,xe>=le)return ve}}var Rt=[""];function At(ie){for(;Rt.length<=ie;)Rt.push(Zt(Rt)+" ");return Rt[ie]}function Zt(ie){return ie[ie.length-1]}function In(ie,le){for(var ye=[],ve=0;ve<ie.length;ve++)ye[ve]=le(ie[ve],ve);return ye}function Dn(ie,le,ye){for(var ve=0,xe=ye(le);ve<ie.length&&ye(ie[ve])<=xe;)ve++;ie.splice(ve,0,le)}function qe(){}function Oe(ie,le){var ye;return Object.create?ye=Object.create(ie):(qe.prototype=ie,ye=new qe),le&&cn(le,ye),ye}var Le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ge(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Le.test(ie))}function it(ie,le){return le?le.source.indexOf("\\w")>-1&&Ge(ie)?!0:le.test(ie):Ge(ie)}function De(ie){for(var le in ie)if(ie.hasOwnProperty(le)&&ie[le])return!1;return!0}var ht=/[\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 on(ie){return ie.charCodeAt(0)>=768&&ht.test(ie)}function An(ie,le,ye){for(;(ye<0?le>0:le<ie.length)&&on(ie.charAt(le));)le+=ye;return le}function Zn(ie,le,ye){for(var ve=le>ye?-1:1;;){if(le==ye)return le;var xe=(le+ye)/2,Ve=ve<0?Math.ceil(xe):Math.floor(xe);if(Ve==le)return ie(Ve)?le:ye;ie(Ve)?ye=Ve:le=Ve+ve}}function Ft(ie,le,ye,ve){if(!ie)return ve(le,ye,"ltr",0);for(var xe=!1,Ve=0;Ve<ie.length;++Ve){var st=ie[Ve];(st.from<ye&&st.to>le||le==ye&&st.to==le)&&(ve(Math.max(st.from,le),Math.min(st.to,ye),st.level==1?"rtl":"ltr",Ve),xe=!0)}xe||ve(le,ye,"ltr")}var It=null;function Gt(ie,le,ye){var ve;It=null;for(var xe=0;xe<ie.length;++xe){var Ve=ie[xe];if(Ve.from<le&&Ve.to>le)return xe;Ve.to==le&&(Ve.from!=Ve.to&&ye=="before"?ve=xe:It=xe),Ve.from==le&&(Ve.from!=Ve.to&&ye!="before"?ve=xe:It=xe)}return ve!=null?ve:It}var fn=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",le="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye(_t){return _t<=247?ie.charAt(_t):1424<=_t&&_t<=1524?"R":1536<=_t&&_t<=1785?le.charAt(_t-1536):1774<=_t&&_t<=2220?"r":8192<=_t&&_t<=8203?"w":_t==8204?"b":"L"}var ve=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,Ve=/[LRr]/,st=/[Lb1n]/,xt=/[1n]/;function Et(_t,zn,qt){this.level=_t,this.from=zn,this.to=qt}return function(_t,zn){var qt=zn=="ltr"?"L":"R";if(_t.length==0||zn=="ltr"&&!ve.test(_t))return!1;for(var xi=_t.length,hi=[],rr=0;rr<xi;++rr)hi.push(ye(_t.charCodeAt(rr)));for(var lr=0,fr=qt;lr<xi;++lr){var Or=hi[lr];Or=="m"?hi[lr]=fr:fr=Or}for(var $r=0,Vr=qt;$r<xi;++$r){var oo=hi[$r];oo=="1"&&Vr=="r"?hi[$r]="n":Ve.test(oo)&&(Vr=oo,oo=="r"&&(hi[$r]="R"))}for(var No=1,Gr=hi[0];No<xi-1;++No){var Xo=hi[No];Xo=="+"&&Gr=="1"&&hi[No+1]=="1"?hi[No]="1":Xo==","&&Gr==hi[No+1]&&(Gr=="1"||Gr=="n")&&(hi[No]=Gr),Gr=Xo}for(var es=0;es<xi;++es){var Ks=hi[es];if(Ks==",")hi[es]="N";else if(Ks=="%"){var fs=void 0;for(fs=es+1;fs<xi&&hi[fs]=="%";++fs);for(var ru=es&&hi[es-1]=="!"||fs<xi&&hi[fs]=="1"?"1":"N",Ml=es;Ml<fs;++Ml)hi[Ml]=ru;es=fs-1}}for(var Us=0,vu=qt;Us<xi;++Us){var bl=hi[Us];vu=="L"&&bl=="1"?hi[Us]="L":Ve.test(bl)&&(vu=bl)}for(var Hs=0;Hs<xi;++Hs)if(xe.test(hi[Hs])){var ha=void 0;for(ha=Hs+1;ha<xi&&xe.test(hi[ha]);++ha);for(var vs=(Hs?hi[Hs-1]:qt)=="L",il=(ha<xi?hi[ha]:qt)=="L",xl=vs==il?vs?"L":"R":qt,cc=Hs;cc<ha;++cc)hi[cc]=xl;Hs=ha-1}for(var ps=[],Xu,xs=0;xs<xi;)if(st.test(hi[xs])){var rf=xs;for(++xs;xs<xi&&st.test(hi[xs]);++xs);ps.push(new Et(0,rf,xs))}else{var Iu=xs,yu=ps.length,ou=zn=="rtl"?1:0;for(++xs;xs<xi&&hi[xs]!="L";++xs);for(var Fa=Iu;Fa<xs;)if(xt.test(hi[Fa])){Iu<Fa&&(ps.splice(yu,0,new Et(1,Iu,Fa)),yu+=ou);var rl=Fa;for(++Fa;Fa<xs&&xt.test(hi[Fa]);++Fa);ps.splice(yu,0,new Et(2,rl,Fa)),yu+=ou,Iu=Fa}else++Fa;Iu<xs&&ps.splice(yu,0,new Et(1,Iu,xs))}return zn=="ltr"&&(ps[0].level==1&&(Xu=_t.match(/^\s+/))&&(ps[0].from=Xu[0].length,ps.unshift(new Et(0,0,Xu[0].length))),Zt(ps).level==1&&(Xu=_t.match(/\s+$/))&&(Zt(ps).to-=Xu[0].length,ps.push(new Et(0,xi-Xu[0].length,xi)))),zn=="rtl"?ps.reverse():ps}}();function Pn(ie,le){var ye=ie.order;return ye==null&&(ye=ie.order=fn(ie.text,le)),ye}var an=[],Ot=function(ie,le,ye){if(ie.addEventListener)ie.addEventListener(le,ye,!1);else if(ie.attachEvent)ie.attachEvent("on"+le,ye);else{var ve=ie._handlers||(ie._handlers={});ve[le]=(ve[le]||an).concat(ye)}};function Mn(ie,le){return ie._handlers&&ie._handlers[le]||an}function Ht(ie,le,ye){if(ie.removeEventListener)ie.removeEventListener(le,ye,!1);else if(ie.detachEvent)ie.detachEvent("on"+le,ye);else{var ve=ie._handlers,xe=ve&&ve[le];if(xe){var Ve=at(xe,ye);Ve>-1&&(ve[le]=xe.slice(0,Ve).concat(xe.slice(Ve+1)))}}}function Kt(ie,le){var ye=Mn(ie,le);if(ye.length)for(var ve=Array.prototype.slice.call(arguments,2),xe=0;xe<ye.length;++xe)ye[xe].apply(null,ve)}function un(ie,le,ye){return typeof le=="string"&&(le={type:le,preventDefault:function(){this.defaultPrevented=!0}}),Kt(ie,ye||le.type,ie,le),Ut(le)||le.codemirrorIgnore}function Vn(ie){var le=ie._handlers&&ie._handlers.cursorActivity;if(le)for(var ye=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),ve=0;ve<le.length;++ve)at(ye,le[ve])==-1&&ye.push(le[ve])}function bn(ie,le){return Mn(ie,le).length>0}function mt(ie){ie.prototype.on=function(le,ye){Ot(this,le,ye)},ie.prototype.off=function(le,ye){Ht(this,le,ye)}}function jn(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Kn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Ut(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function yi(ie){jn(ie),Kn(ie)}function Vi(ie){return ie.target||ie.srcElement}function kn(ie){var le=ie.which;return le==null&&(ie.button&1?le=1:ie.button&2?le=3:ie.button&4&&(le=2)),he&&ie.ctrlKey&&le==1&&(le=3),le}var Vt=function(){if(He&&Te<9)return!1;var ie=Qe("div");return"draggable"in ie||"dragDrop"in ie}(),Qn;function ai(ie){if(Qn==null){var le=Qe("span","\u200B");Ye(ie,Qe("span",[le,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Qn=le.offsetWidth<=1&&le.offsetHeight>2&&!(He&&Te<8))}var ye=Qn?Qe("span","\u200B"):Qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var Un;function si(ie){if(Un!=null)return Un;var le=Ye(ie,document.createTextNode("A\u062EA")),ye=nt(le,0,1).getBoundingClientRect(),ve=nt(le,1,2).getBoundingClientRect();return tt(ie),!ye||ye.left==ye.right?!1:Un=ve.right-ye.right<3}var li=`
b`.split(/\n/).length!=3?function(ie){for(var le=0,ye=[],ve=ie.length;le<=ve;){var xe=ie.indexOf(`
`,le);xe==-1&&(xe=ie.length);var Ve=ie.slice(le,ie.charAt(xe-1)=="\r"?xe-1:xe),st=Ve.indexOf("\r");st!=-1?(ye.push(Ve.slice(0,st)),le+=st+1):(ye.push(Ve),le=xe+1)}return ye}:function(ie){return ie.split(/\r\n?|\n/)},Me=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(le){return!1}}:function(ie){var le;try{le=ie.ownerDocument.selection.createRange()}catch(ye){}return!le||le.parentElement()!=ie?!1:le.compareEndPoints("StartToEnd",le)!=0},ii=function(){var ie=Qe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),ti=null;function On(ie){if(ti!=null)return ti;var le=Ye(ie,Qe("span","x")),ye=le.getBoundingClientRect(),ve=nt(le,0,1).getBoundingClientRect();return ti=Math.abs(ye.left-ve.left)>1}var ni={},Ei={};function ui(ie,le){arguments.length>2&&(le.dependencies=Array.prototype.slice.call(arguments,2)),ni[ie]=le}function tr(ie,le){Ei[ie]=le}function Sn(ie){if(typeof ie=="string"&&Ei.hasOwnProperty(ie))ie=Ei[ie];else if(ie&&typeof ie.name=="string"&&Ei.hasOwnProperty(ie.name)){var le=Ei[ie.name];typeof le=="string"&&(le={name:le}),ie=Oe(le,ie),ie.name=le.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Sn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Sn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function sn(ie,le){le=Sn(le);var ye=ni[le.name];if(!ye)return sn(ie,"text/plain");var ve=ye(ie,le);if(dn.hasOwnProperty(le.name)){var xe=dn[le.name];for(var Ve in xe)xe.hasOwnProperty(Ve)&&(ve.hasOwnProperty(Ve)&&(ve["_"+Ve]=ve[Ve]),ve[Ve]=xe[Ve])}if(ve.name=le.name,le.helperType&&(ve.helperType=le.helperType),le.modeProps)for(var st in le.modeProps)ve[st]=le.modeProps[st];return ve}var dn={};function _n(ie,le){var ye=dn.hasOwnProperty(ie)?dn[ie]:dn[ie]={};cn(le,ye)}function Ri(ie,le){if(le===!0)return le;if(ie.copyState)return ie.copyState(le);var ye={};for(var ve in le){var xe=le[ve];xe instanceof Array&&(xe=xe.concat([])),ye[ve]=xe}return ye}function qn(ie,le){for(var ye;ie.innerMode&&(ye=ie.innerMode(le),!(!ye||ye.mode==ie));)le=ye.state,ie=ye.mode;return ye||{mode:ie,state:le}}function Ni(ie,le,ye){return ie.startState?ie.startState(le,ye):!0}var mn=function(ie,le,ye){this.pos=this.start=0,this.string=ie,this.tabSize=le||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ye};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 le=this.string.charAt(this.pos),ye;if(typeof ie=="string"?ye=le==ie:ye=le&&(ie.test?ie.test(le):ie(le)),ye)return++this.pos,le},mn.prototype.eatWhile=function(ie){for(var le=this.pos;this.eat(ie););return this.pos>le},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 le=this.string.indexOf(ie,this.pos);if(le>-1)return this.pos=le,!0},mn.prototype.backUp=function(ie){this.pos-=ie},mn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=pt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?pt(this.string,this.lineStart,this.tabSize):0)},mn.prototype.indentation=function(){return pt(this.string,null,this.tabSize)-(this.lineStart?pt(this.string,this.lineStart,this.tabSize):0)},mn.prototype.match=function(ie,le,ye){if(typeof ie=="string"){var ve=function(st){return ye?st.toLowerCase():st},xe=this.string.substr(this.pos,ie.length);if(ve(xe)==ve(ie))return le!==!1&&(this.pos+=ie.length),!0}else{var Ve=this.string.slice(this.pos).match(ie);return Ve&&Ve.index>0?null:(Ve&&le!==!1&&(this.pos+=Ve[0].length),Ve)}},mn.prototype.current=function(){return this.string.slice(this.start,this.pos)},mn.prototype.hideFirstChars=function(ie,le){this.lineStart+=ie;try{return le()}finally{this.lineStart-=ie}},mn.prototype.lookAhead=function(ie){var le=this.lineOracle;return le&&le.lookAhead(ie)},mn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Hn(ie,le){if(le-=ie.first,le<0||le>=ie.size)throw new Error("There is no line "+(le+ie.first)+" in the document.");for(var ye=ie;!ye.lines;)for(var ve=0;;++ve){var xe=ye.children[ve],Ve=xe.chunkSize();if(le<Ve){ye=xe;break}le-=Ve}return ye.lines[le]}function Di(ie,le,ye){var ve=[],xe=le.line;return ie.iter(le.line,ye.line+1,function(Ve){var st=Ve.text;xe==ye.line&&(st=st.slice(0,ye.ch)),xe==le.line&&(st=st.slice(le.ch)),ve.push(st),++xe}),ve}function Yi(ie,le,ye){var ve=[];return ie.iter(le,ye,function(xe){ve.push(xe.text)}),ve}function mi(ie,le){var ye=le-ie.height;if(ye)for(var ve=ie;ve;ve=ve.parent)ve.height+=ye}function Ct(ie){if(ie.parent==null)return null;for(var le=ie.parent,ye=at(le.lines,ie),ve=le.parent;ve;le=ve,ve=ve.parent)for(var xe=0;ve.children[xe]!=le;++xe)ye+=ve.children[xe].chunkSize();return ye+le.first}function $t(ie,le){var ye=ie.first;e:do{for(var ve=0;ve<ie.children.length;++ve){var xe=ie.children[ve],Ve=xe.height;if(le<Ve){ie=xe;continue e}le-=Ve,ye+=xe.chunkSize()}return ye}while(!ie.lines);for(var st=0;st<ie.lines.length;++st){var xt=ie.lines[st],Et=xt.height;if(le<Et)break;le-=Et}return ye+st}function fi(ie,le){return le>=ie.first&&le<ie.first+ie.size}function gi(ie,le){return String(ie.lineNumberFormatter(le+ie.firstLineNumber))}function zt(ie,le,ye){if(ye===void 0&&(ye=null),!(this instanceof zt))return new zt(ie,le,ye);this.line=ie,this.ch=le,this.sticky=ye}function pi(ie,le){return ie.line-le.line||ie.ch-le.ch}function Fi(ie,le){return ie.sticky==le.sticky&&pi(ie,le)==0}function Cn(ie){return zt(ie.line,ie.ch)}function je(ie,le){return pi(ie,le)<0?le:ie}function Pi(ie,le){return pi(ie,le)<0?ie:le}function Ai(ie,le){return Math.max(ie.first,Math.min(le,ie.first+ie.size-1))}function Rn(ie,le){if(le.line<ie.first)return zt(ie.first,0);var ye=ie.first+ie.size-1;return le.line>ye?zt(ye,Hn(ie,ye).text.length):Ji(le,Hn(ie,le.line).text.length)}function Ji(ie,le){var ye=ie.ch;return ye==null||ye>le?zt(ie.line,le):ye<0?zt(ie.line,0):ie}function _i(ie,le){for(var ye=[],ve=0;ve<le.length;ve++)ye[ve]=Rn(ie,le[ve]);return ye}var Jn=function(ie,le){this.state=ie,this.lookAhead=le},ji=function(ie,le,ye,ve){this.state=le,this.doc=ie,this.line=ye,this.maxLookAhead=ve||0,this.baseTokens=null,this.baseTokenPos=1};ji.prototype.lookAhead=function(ie){var le=this.doc.getLine(this.line+ie);return le!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),le},ji.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var le=this.baseTokens[this.baseTokenPos+1];return{type:le&&le.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},ji.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ji.fromSaved=function(ie,le,ye){return le instanceof Jn?new ji(ie,Ri(ie.mode,le.state),ye,le.lookAhead):new ji(ie,Ri(ie.mode,le),ye)},ji.prototype.save=function(ie){var le=ie!==!1?Ri(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Jn(le,this.maxLookAhead):le};function ln(ie,le,ye,ve){var xe=[ie.state.modeGen],Ve={};Br(ie,le.text,ie.doc.mode,ye,function(_t,zn){return xe.push(_t,zn)},Ve,ve);for(var st=ye.state,xt=function(_t){ye.baseTokens=xe;var zn=ie.state.overlays[_t],qt=1,xi=0;ye.state=!0,Br(ie,le.text,zn.mode,ye,function(hi,rr){for(var lr=qt;xi<hi;){var fr=xe[qt];fr>hi&&xe.splice(qt,1,hi,xe[qt+1],fr),qt+=2,xi=Math.min(hi,fr)}if(rr)if(zn.opaque)xe.splice(lr,qt-lr,hi,"overlay "+rr),qt=lr+2;else for(;lr<qt;lr+=2){var Or=xe[lr+1];xe[lr+1]=(Or?Or+" ":"")+"overlay "+rr}},Ve),ye.state=st,ye.baseTokens=null,ye.baseTokenPos=1},Et=0;Et<ie.state.overlays.length;++Et)xt(Et);return{styles:xe,classes:Ve.bgClass||Ve.textClass?Ve:null}}function vr(ie,le,ye){if(!le.styles||le.styles[0]!=ie.state.modeGen){var ve=Wr(ie,Ct(le)),xe=le.text.length>ie.options.maxHighlightLength&&Ri(ie.doc.mode,ve.state),Ve=ln(ie,le,ve);xe&&(ve.state=xe),le.stateAfter=ve.save(!xe),le.styles=Ve.styles,Ve.classes?le.styleClasses=Ve.classes:le.styleClasses&&(le.styleClasses=null),ye===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return le.styles}function Wr(ie,le,ye){var ve=ie.doc,xe=ie.display;if(!ve.mode.startState)return new ji(ve,!0,le);var Ve=Ar(ie,le,ye),st=Ve>ve.first&&Hn(ve,Ve-1).stateAfter,xt=st?ji.fromSaved(ve,st,Ve):new ji(ve,Ni(ve.mode),Ve);return ve.iter(Ve,le,function(Et){pn(ie,Et.text,xt);var _t=xt.line;Et.stateAfter=_t==le-1||_t%5==0||_t>=xe.viewFrom&&_t<xe.viewTo?xt.save():null,xt.nextLine()}),ye&&(ve.modeFrontier=xt.line),xt}function pn(ie,le,ye,ve){var xe=ie.doc.mode,Ve=new mn(le,ie.options.tabSize,ye);for(Ve.start=Ve.pos=ve||0,le==""&&ur(xe,ye.state);!Ve.eol();)yr(xe,Ve,ye.state),Ve.start=Ve.pos}function ur(ie,le){if(ie.blankLine)return ie.blankLine(le);if(ie.innerMode){var ye=qn(ie,le);if(ye.mode.blankLine)return ye.mode.blankLine(ye.state)}}function yr(ie,le,ye,ve){for(var xe=0;xe<10;xe++){ve&&(ve[0]=qn(ie,ye).mode);var Ve=ie.token(le,ye);if(le.pos>le.start)return Ve}throw new Error("Mode "+ie.name+" failed to advance stream.")}var ir=function(ie,le,ye){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=le||null,this.state=ye};function pr(ie,le,ye,ve){var xe=ie.doc,Ve=xe.mode,st;le=Rn(xe,le);var xt=Hn(xe,le.line),Et=Wr(ie,le.line,ye),_t=new mn(xt.text,ie.options.tabSize,Et),zn;for(ve&&(zn=[]);(ve||_t.pos<le.ch)&&!_t.eol();)_t.start=_t.pos,st=yr(Ve,_t,Et.state),ve&&zn.push(new ir(_t,st,Ri(xe.mode,Et.state)));return ve?zn:new ir(_t,st,Et.state)}function Tr(ie,le){if(ie)for(;;){var ye=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ye)break;ie=ie.slice(0,ye.index)+ie.slice(ye.index+ye[0].length);var ve=ye[1]?"bgClass":"textClass";le[ve]==null?le[ve]=ye[2]:new RegExp("(?:^|\\s)"+ye[2]+"(?:$|\\s)").test(le[ve])||(le[ve]+=" "+ye[2])}return ie}function Br(ie,le,ye,ve,xe,Ve,st){var xt=ye.flattenSpans;xt==null&&(xt=ie.options.flattenSpans);var Et=0,_t=null,zn=new mn(le,ie.options.tabSize,ve),qt,xi=ie.options.addModeClass&&[null];for(le==""&&Tr(ur(ye,ve.state),Ve);!zn.eol();){if(zn.pos>ie.options.maxHighlightLength?(xt=!1,st&&pn(ie,le,ve,zn.pos),zn.pos=le.length,qt=null):qt=Tr(yr(ye,zn,ve.state,xi),Ve),xi){var hi=xi[0].name;hi&&(qt="m-"+(qt?hi+" "+qt:hi))}if(!xt||_t!=qt){for(;Et<zn.start;)Et=Math.min(zn.start,Et+5e3),xe(Et,_t);_t=qt}zn.start=zn.pos}for(;Et<zn.pos;){var rr=Math.min(zn.pos,Et+5e3);xe(rr,_t),Et=rr}}function Ar(ie,le,ye){for(var ve,xe,Ve=ie.doc,st=ye?-1:le-(ie.doc.mode.innerMode?1e3:100),xt=le;xt>st;--xt){if(xt<=Ve.first)return Ve.first;var Et=Hn(Ve,xt-1),_t=Et.stateAfter;if(_t&&(!ye||xt+(_t instanceof Jn?_t.lookAhead:0)<=Ve.modeFrontier))return xt;var zn=pt(Et.text,null,ie.options.tabSize);(xe==null||ve>zn)&&(xe=xt-1,ve=zn)}return xe}function br(ie,le){if(ie.modeFrontier=Math.min(ie.modeFrontier,le),!(ie.highlightFrontier<le-10)){for(var ye=ie.first,ve=le-1;ve>ye;ve--){var xe=Hn(ie,ve).stateAfter;if(xe&&(!(xe instanceof Jn)||ve+xe.lookAhead<le)){ye=ve+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ye)}}var _r=!1,Wn=!1;function xr(){_r=!0}function $n(){Wn=!0}function ar(ie,le,ye){this.marker=ie,this.from=le,this.to=ye}function Nr(ie,le){if(ie)for(var ye=0;ye<ie.length;++ye){var ve=ie[ye];if(ve.marker==le)return ve}}function Sr(ie,le){for(var ye,ve=0;ve<ie.length;++ve)ie[ve]!=le&&(ye||(ye=[])).push(ie[ve]);return ye}function Xr(ie,le){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([le]):[le],le.marker.attachLine(ie)}function Zr(ie,le,ye){var ve;if(ie)for(var xe=0;xe<ie.length;++xe){var Ve=ie[xe],st=Ve.marker,xt=Ve.from==null||(st.inclusiveLeft?Ve.from<=le:Ve.from<le);if(xt||Ve.from==le&&st.type=="bookmark"&&(!ye||!Ve.marker.insertLeft)){var Et=Ve.to==null||(st.inclusiveRight?Ve.to>=le:Ve.to>le);(ve||(ve=[])).push(new ar(st,Ve.from,Et?null:Ve.to))}}return ve}function Rr(ie,le,ye){var ve;if(ie)for(var xe=0;xe<ie.length;++xe){var Ve=ie[xe],st=Ve.marker,xt=Ve.to==null||(st.inclusiveRight?Ve.to>=le:Ve.to>le);if(xt||Ve.from==le&&st.type=="bookmark"&&(!ye||Ve.marker.insertLeft)){var Et=Ve.from==null||(st.inclusiveLeft?Ve.from<=le:Ve.from<le);(ve||(ve=[])).push(new ar(st,Et?null:Ve.from-le,Ve.to==null?null:Ve.to-le))}}return ve}function So(ie,le){if(le.full)return null;var ye=fi(ie,le.from.line)&&Hn(ie,le.from.line).markedSpans,ve=fi(ie,le.to.line)&&Hn(ie,le.to.line).markedSpans;if(!ye&&!ve)return null;var xe=le.from.ch,Ve=le.to.ch,st=pi(le.from,le.to)==0,xt=Zr(ye,xe,st),Et=Rr(ve,Ve,st),_t=le.text.length==1,zn=Zt(le.text).length+(_t?xe:0);if(xt)for(var qt=0;qt<xt.length;++qt){var xi=xt[qt];if(xi.to==null){var hi=Nr(Et,xi.marker);hi?_t&&(xi.to=hi.to==null?null:hi.to+zn):xi.to=xe}}if(Et)for(var rr=0;rr<Et.length;++rr){var lr=Et[rr];if(lr.to!=null&&(lr.to+=zn),lr.from==null){var fr=Nr(xt,lr.marker);fr||(lr.from=zn,_t&&(xt||(xt=[])).push(lr))}else lr.from+=zn,_t&&(xt||(xt=[])).push(lr)}xt&&(xt=Ln(xt)),Et&&Et!=xt&&(Et=Ln(Et));var Or=[xt];if(!_t){var $r=le.text.length-2,Vr;if($r>0&&xt)for(var oo=0;oo<xt.length;++oo)xt[oo].to==null&&(Vr||(Vr=[])).push(new ar(xt[oo].marker,null,null));for(var No=0;No<$r;++No)Or.push(Vr);Or.push(Et)}return Or}function Ln(ie){for(var le=0;le<ie.length;++le){var ye=ie[le];ye.from!=null&&ye.from==ye.to&&ye.marker.clearWhenEmpty!==!1&&ie.splice(le--,1)}return ie.length?ie:null}function ci(ie,le,ye){var ve=null;if(ie.iter(le.line,ye.line+1,function(hi){if(hi.markedSpans)for(var rr=0;rr<hi.markedSpans.length;++rr){var lr=hi.markedSpans[rr].marker;lr.readOnly&&(!ve||at(ve,lr)==-1)&&(ve||(ve=[])).push(lr)}}),!ve)return null;for(var xe=[{from:le,to:ye}],Ve=0;Ve<ve.length;++Ve)for(var st=ve[Ve],xt=st.find(0),Et=0;Et<xe.length;++Et){var _t=xe[Et];if(!(pi(_t.to,xt.from)<0||pi(_t.from,xt.to)>0)){var zn=[Et,1],qt=pi(_t.from,xt.from),xi=pi(_t.to,xt.to);(qt<0||!st.inclusiveLeft&&!qt)&&zn.push({from:_t.from,to:xt.from}),(xi>0||!st.inclusiveRight&&!xi)&&zn.push({from:xt.to,to:_t.to}),xe.splice.apply(xe,zn),Et+=zn.length-3}}return xe}function yn(ie){var le=ie.markedSpans;if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.detachLine(ie);ie.markedSpans=null}}function rt(ie,le){if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.attachLine(ie);ie.markedSpans=le}}function Ii(ie){return ie.inclusiveLeft?-1:0}function Hi(ie){return ie.inclusiveRight?1:0}function nr(ie,le){var ye=ie.lines.length-le.lines.length;if(ye!=0)return ye;var ve=ie.find(),xe=le.find(),Ve=pi(ve.from,xe.from)||Ii(ie)-Ii(le);if(Ve)return-Ve;var st=pi(ve.to,xe.to)||Hi(ie)-Hi(le);return st||le.id-ie.id}function qi(ie,le){var ye=Wn&&ie.markedSpans,ve;if(ye)for(var xe=void 0,Ve=0;Ve<ye.length;++Ve)xe=ye[Ve],xe.marker.collapsed&&(le?xe.from:xe.to)==null&&(!ve||nr(ve,xe.marker)<0)&&(ve=xe.marker);return ve}function Zi(ie){return qi(ie,!0)}function di(ie){return qi(ie,!1)}function dt(ie,le){var ye=Wn&&ie.markedSpans,ve;if(ye)for(var xe=0;xe<ye.length;++xe){var Ve=ye[xe];Ve.marker.collapsed&&(Ve.from==null||Ve.from<le)&&(Ve.to==null||Ve.to>le)&&(!ve||nr(ve,Ve.marker)<0)&&(ve=Ve.marker)}return ve}function gn(ie,le,ye,ve,xe){var Ve=Hn(ie,le),st=Wn&&Ve.markedSpans;if(st)for(var xt=0;xt<st.length;++xt){var Et=st[xt];if(Et.marker.collapsed){var _t=Et.marker.find(0),zn=pi(_t.from,ye)||Ii(Et.marker)-Ii(xe),qt=pi(_t.to,ve)||Hi(Et.marker)-Hi(xe);if(!(zn>=0&&qt<=0||zn<=0&&qt>=0)&&(zn<=0&&(Et.marker.inclusiveRight&&xe.inclusiveLeft?pi(_t.to,ye)>=0:pi(_t.to,ye)>0)||zn>=0&&(Et.marker.inclusiveRight&&xe.inclusiveLeft?pi(_t.from,ve)<=0:pi(_t.from,ve)<0)))return!0}}}function vn(ie){for(var le;le=Zi(ie);)ie=le.find(-1,!0).line;return ie}function Bn(ie){for(var le;le=di(ie);)ie=le.find(1,!0).line;return ie}function hn(ie){for(var le,ye;le=di(ie);)ie=le.find(1,!0).line,(ye||(ye=[])).push(ie);return ye}function Yn(ie,le){var ye=Hn(ie,le),ve=vn(ye);return ye==ve?le:Ct(ve)}function Gn(ie,le){if(le>ie.lastLine())return le;var ye=Hn(ie,le),ve;if(!en(ie,ye))return le;for(;ve=di(ye);)ye=ve.find(1,!0).line;return Ct(ye)+1}function en(ie,le){var ye=Wn&&le.markedSpans;if(ye){for(var ve=void 0,xe=0;xe<ye.length;++xe)if(ve=ye[xe],!!ve.marker.collapsed){if(ve.from==null)return!0;if(!ve.marker.widgetNode&&ve.from==0&&ve.marker.inclusiveLeft&&ri(ie,le,ve))return!0}}}function ri(ie,le,ye){if(ye.to==null){var ve=ye.marker.find(1,!0);return ri(ie,ve.line,Nr(ve.line.markedSpans,ye.marker))}if(ye.marker.inclusiveRight&&ye.to==le.text.length)return!0;for(var xe=void 0,Ve=0;Ve<le.markedSpans.length;++Ve)if(xe=le.markedSpans[Ve],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==ye.to&&(xe.to==null||xe.to!=ye.from)&&(xe.marker.inclusiveLeft||ye.marker.inclusiveRight)&&ri(ie,le,xe))return!0}function Bi(ie){ie=vn(ie);for(var le=0,ye=ie.parent,ve=0;ve<ye.lines.length;++ve){var xe=ye.lines[ve];if(xe==ie)break;le+=xe.height}for(var Ve=ye.parent;Ve;ye=Ve,Ve=ye.parent)for(var st=0;st<Ve.children.length;++st){var xt=Ve.children[st];if(xt==ye)break;le+=xt.height}return le}function dr(ie){if(ie.height==0)return 0;for(var le=ie.text.length,ye,ve=ie;ye=Zi(ve);){var xe=ye.find(0,!0);ve=xe.from.line,le+=xe.from.ch-xe.to.ch}for(ve=ie;ye=di(ve);){var Ve=ye.find(0,!0);le-=ve.text.length-Ve.from.ch,ve=Ve.to.line,le+=ve.text.length-Ve.to.ch}return le}function Ki(ie){var le=ie.display,ye=ie.doc;le.maxLine=Hn(ye,ye.first),le.maxLineLength=dr(le.maxLine),le.maxLineChanged=!0,ye.iter(function(ve){var xe=dr(ve);xe>le.maxLineLength&&(le.maxLineLength=xe,le.maxLine=ve)})}var sr=function(ie,le,ye){this.text=ie,rt(this,le),this.height=ye?ye(this):1};sr.prototype.lineNo=function(){return Ct(this)},mt(sr);function gr(ie,le,ye,ve){ie.text=le,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),yn(ie),rt(ie,ye);var xe=ve?ve(ie):1;xe!=ie.height&&mi(ie,xe)}function wr(ie){ie.parent=null,yn(ie)}var zr={},eo={};function yo(ie,le){if(!ie||/^\s*$/.test(ie))return null;var ye=le.addModeClass?eo:zr;return ye[ie]||(ye[ie]=ie.replace(/\S+/g,"cm-$&"))}function xn(ie,le){var ye=lt("span",null,null,ze?"padding-right: .1px":null),ve={pre:lt("pre",[ye],"CodeMirror-line"),content:ye,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};le.measure={};for(var xe=0;xe<=(le.rest?le.rest.length:0);xe++){var Ve=xe?le.rest[xe-1]:le.line,st=void 0;ve.pos=0,ve.addToken=Qr,si(ie.display.measure)&&(st=Pn(Ve,ie.doc.direction))&&(ve.addToken=Cr(ve.addToken,st)),ve.map=[];var xt=le!=ie.display.externalMeasured&&Ct(Ve);Co(Ve,ve,vr(ie,Ve,xt)),Ve.styleClasses&&(Ve.styleClasses.bgClass&&(ve.bgClass=Lt(Ve.styleClasses.bgClass,ve.bgClass||"")),Ve.styleClasses.textClass&&(ve.textClass=Lt(Ve.styleClasses.textClass,ve.textClass||""))),ve.map.length==0&&ve.map.push(0,0,ve.content.appendChild(ai(ie.display.measure))),xe==0?(le.measure.map=ve.map,le.measure.cache={}):((le.measure.maps||(le.measure.maps=[])).push(ve.map),(le.measure.caches||(le.measure.caches=[])).push({}))}if(ze){var Et=ve.content.lastChild;(/\bcm-tab\b/.test(Et.className)||Et.querySelector&&Et.querySelector(".cm-tab"))&&(ve.content.className="cm-tab-wrap-hack")}return Kt(ie,"renderLine",ie,le.line,ve.pre),ve.pre.className&&(ve.textClass=Lt(ve.pre.className,ve.textClass||"")),ve}function so(ie){var le=Qe("span","\u2022","cm-invalidchar");return le.title="\\u"+ie.charCodeAt(0).toString(16),le.setAttribute("aria-label",le.title),le}function Qr(ie,le,ye,ve,xe,Ve,st){if(le){var xt=ie.splitSpaces?Lr(le,ie.trailingSpace):le,Et=ie.cm.state.specialChars,_t=!1,zn;if(!Et.test(le))ie.col+=le.length,zn=document.createTextNode(xt),ie.map.push(ie.pos,ie.pos+le.length,zn),He&&Te<9&&(_t=!0),ie.pos+=le.length;else{zn=document.createDocumentFragment();for(var qt=0;;){Et.lastIndex=qt;var xi=Et.exec(le),hi=xi?xi.index-qt:le.length-qt;if(hi){var rr=document.createTextNode(xt.slice(qt,qt+hi));He&&Te<9?zn.appendChild(Qe("span",[rr])):zn.appendChild(rr),ie.map.push(ie.pos,ie.pos+hi,rr),ie.col+=hi,ie.pos+=hi}if(!xi)break;qt+=hi+1;var lr=void 0;if(xi[0]==" "){var fr=ie.cm.options.tabSize,Or=fr-ie.col%fr;lr=zn.appendChild(Qe("span",At(Or),"cm-tab")),lr.setAttribute("role","presentation"),lr.setAttribute("cm-text"," "),ie.col+=Or}else xi[0]=="\r"||xi[0]==`
`?(lr=zn.appendChild(Qe("span",xi[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),lr.setAttribute("cm-text",xi[0]),ie.col+=1):(lr=ie.cm.options.specialCharPlaceholder(xi[0]),lr.setAttribute("cm-text",xi[0]),He&&Te<9?zn.appendChild(Qe("span",[lr])):zn.appendChild(lr),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,lr),ie.pos++}}if(ie.trailingSpace=xt.charCodeAt(le.length-1)==32,ye||ve||xe||_t||Ve||st){var $r=ye||"";ve&&($r+=ve),xe&&($r+=xe);var Vr=Qe("span",[zn],$r,Ve);if(st)for(var oo in st)st.hasOwnProperty(oo)&&oo!="style"&&oo!="class"&&Vr.setAttribute(oo,st[oo]);return ie.content.appendChild(Vr)}ie.content.appendChild(zn)}}function Lr(ie,le){if(ie.length>1&&!/ /.test(ie))return ie;for(var ye=le,ve="",xe=0;xe<ie.length;xe++){var Ve=ie.charAt(xe);Ve==" "&&ye&&(xe==ie.length-1||ie.charCodeAt(xe+1)==32)&&(Ve="\xA0"),ve+=Ve,ye=Ve==" "}return ve}function Cr(ie,le){return function(ye,ve,xe,Ve,st,xt,Et){xe=xe?xe+" cm-force-border":"cm-force-border";for(var _t=ye.pos,zn=_t+ve.length;;){for(var qt=void 0,xi=0;xi<le.length&&(qt=le[xi],!(qt.to>_t&&qt.from<=_t));xi++);if(qt.to>=zn)return ie(ye,ve,xe,Ve,st,xt,Et);ie(ye,ve.slice(0,qt.to-_t),xe,Ve,null,xt,Et),Ve=null,ve=ve.slice(qt.to-_t),_t=qt.to}}}function fo(ie,le,ye,ve){var xe=!ve&&ye.widgetNode;xe&&ie.map.push(ie.pos,ie.pos+le,xe),!ve&&ie.cm.display.input.needsContentAttribute&&(xe||(xe=ie.content.appendChild(document.createElement("span"))),xe.setAttribute("cm-marker",ye.id)),xe&&(ie.cm.display.input.setUneditable(xe),ie.content.appendChild(xe)),ie.pos+=le,ie.trailingSpace=!1}function Co(ie,le,ye){var ve=ie.markedSpans,xe=ie.text,Ve=0;if(!ve){for(var st=1;st<ye.length;st+=2)le.addToken(le,xe.slice(Ve,Ve=ye[st]),yo(ye[st+1],le.cm.options));return}for(var xt=xe.length,Et=0,_t=1,zn="",qt,xi,hi=0,rr,lr,fr,Or,$r;;){if(hi==Et){rr=lr=fr=xi="",$r=null,Or=null,hi=1/0;for(var Vr=[],oo=void 0,No=0;No<ve.length;++No){var Gr=ve[No],Xo=Gr.marker;if(Xo.type=="bookmark"&&Gr.from==Et&&Xo.widgetNode)Vr.push(Xo);else if(Gr.from<=Et&&(Gr.to==null||Gr.to>Et||Xo.collapsed&&Gr.to==Et&&Gr.from==Et)){if(Gr.to!=null&&Gr.to!=Et&&hi>Gr.to&&(hi=Gr.to,lr=""),Xo.className&&(rr+=" "+Xo.className),Xo.css&&(xi=(xi?xi+";":"")+Xo.css),Xo.startStyle&&Gr.from==Et&&(fr+=" "+Xo.startStyle),Xo.endStyle&&Gr.to==hi&&(oo||(oo=[])).push(Xo.endStyle,Gr.to),Xo.title&&(($r||($r={})).title=Xo.title),Xo.attributes)for(var es in Xo.attributes)($r||($r={}))[es]=Xo.attributes[es];Xo.collapsed&&(!Or||nr(Or.marker,Xo)<0)&&(Or=Gr)}else Gr.from>Et&&hi>Gr.from&&(hi=Gr.from)}if(oo)for(var Ks=0;Ks<oo.length;Ks+=2)oo[Ks+1]==hi&&(lr+=" "+oo[Ks]);if(!Or||Or.from==Et)for(var fs=0;fs<Vr.length;++fs)fo(le,0,Vr[fs]);if(Or&&(Or.from||0)==Et){if(fo(le,(Or.to==null?xt+1:Or.to)-Et,Or.marker,Or.from==null),Or.to==null)return;Or.to==Et&&(Or=!1)}}if(Et>=xt)break;for(var ru=Math.min(xt,hi);;){if(zn){var Ml=Et+zn.length;if(!Or){var Us=Ml>ru?zn.slice(0,ru-Et):zn;le.addToken(le,Us,qt?qt+rr:rr,fr,Et+Us.length==hi?lr:"",xi,$r)}if(Ml>=ru){zn=zn.slice(ru-Et),Et=ru;break}Et=Ml,fr=""}zn=xe.slice(Ve,Ve=ye[_t++]),qt=yo(ye[_t++],le.cm.options)}}}function Fn(ie,le,ye){this.line=le,this.rest=hn(le),this.size=this.rest?Ct(Zt(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=en(ie,le)}function Jr(ie,le,ye){for(var ve=[],xe,Ve=le;Ve<ye;Ve=xe){var st=new Fn(ie.doc,Hn(ie.doc,Ve),Ve);xe=Ve+st.size,ve.push(st)}return ve}var Do=null;function ma(ie){Do?Do.ops.push(ie):ie.ownsGroup=Do={ops:[ie],delayedCallbacks:[]}}function Ga(ie){var le=ie.delayedCallbacks,ye=0;do{for(;ye<le.length;ye++)le[ye].call(null);for(var ve=0;ve<ie.ops.length;ve++){var xe=ie.ops[ve];if(xe.cursorActivityHandlers)for(;xe.cursorActivityCalled<xe.cursorActivityHandlers.length;)xe.cursorActivityHandlers[xe.cursorActivityCalled++].call(null,xe.cm)}}while(ye<le.length)}function js(ie,le){var ye=ie.ownsGroup;if(ye)try{Ga(ye)}finally{Do=null,le(ye)}}var as=null;function Fr(ie,le){var ye=Mn(ie,le);if(ye.length){var ve=Array.prototype.slice.call(arguments,2),xe;Do?xe=Do.delayedCallbacks:as?xe=as:(xe=as=[],setTimeout(la,0));for(var Ve=function(xt){xe.push(function(){return ye[xt].apply(null,ve)})},st=0;st<ye.length;++st)Ve(st)}}function la(){var ie=as;as=null;for(var le=0;le<ie.length;++le)ie[le]()}function ua(ie,le,ye,ve){for(var xe=0;xe<le.changes.length;xe++){var Ve=le.changes[xe];Ve=="text"?$i(ie,le):Ve=="gutter"?Kr(ie,le,ye,ve):Ve=="class"?Mr(ie,le):Ve=="widget"&&uo(ie,le,ve)}le.changes=null}function Ua(ie){return ie.node==ie.text&&(ie.node=Qe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),He&&Te<8&&(ie.node.style.zIndex=2)),ie.node}function ca(ie,le){var ye=le.bgClass?le.bgClass+" "+(le.line.bgClass||""):le.line.bgClass;if(ye&&(ye+=" CodeMirror-linebackground"),le.background)ye?le.background.className=ye:(le.background.parentNode.removeChild(le.background),le.background=null);else if(ye){var ve=Ua(le);le.background=ve.insertBefore(Qe("div",null,ye),ve.firstChild),ie.display.input.setUneditable(le.background)}}function Ea(ie,le){var ye=ie.display.externalMeasured;return ye&&ye.line==le.line?(ie.display.externalMeasured=null,le.measure=ye.measure,ye.built):xn(ie,le)}function $i(ie,le){var ye=le.text.className,ve=Ea(ie,le);le.text==le.node&&(le.node=ve.pre),le.text.parentNode.replaceChild(ve.pre,le.text),le.text=ve.pre,ve.bgClass!=le.bgClass||ve.textClass!=le.textClass?(le.bgClass=ve.bgClass,le.textClass=ve.textClass,Mr(ie,le)):ye&&(le.text.className=ye)}function Mr(ie,le){ca(ie,le),le.line.wrapClass?Ua(le).className=le.line.wrapClass:le.node!=le.text&&(le.node.className="");var ye=le.textClass?le.textClass+" "+(le.line.textClass||""):le.line.textClass;le.text.className=ye||""}function Kr(ie,le,ye,ve){if(le.gutter&&(le.node.removeChild(le.gutter),le.gutter=null),le.gutterBackground&&(le.node.removeChild(le.gutterBackground),le.gutterBackground=null),le.line.gutterClass){var xe=Ua(le);le.gutterBackground=Qe("div",null,"CodeMirror-gutter-background "+le.line.gutterClass,"left: "+(ie.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px; width: "+ve.gutterTotalWidth+"px"),ie.display.input.setUneditable(le.gutterBackground),xe.insertBefore(le.gutterBackground,le.text)}var Ve=le.line.gutterMarkers;if(ie.options.lineNumbers||Ve){var st=Ua(le),xt=le.gutter=Qe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(xt),st.insertBefore(xt,le.text),le.line.gutterClass&&(xt.className+=" "+le.line.gutterClass),ie.options.lineNumbers&&(!Ve||!Ve["CodeMirror-linenumbers"])&&(le.lineNumber=xt.appendChild(Qe("div",gi(ie.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ve.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ve)for(var Et=0;Et<ie.display.gutterSpecs.length;++Et){var _t=ie.display.gutterSpecs[Et].className,zn=Ve.hasOwnProperty(_t)&&Ve[_t];zn&&xt.appendChild(Qe("div",[zn],"CodeMirror-gutter-elt","left: "+ve.gutterLeft[_t]+"px; width: "+ve.gutterWidth[_t]+"px"))}}}function uo(ie,le,ye){le.alignable&&(le.alignable=null);for(var ve=Ne("CodeMirror-linewidget"),xe=le.node.firstChild,Ve=void 0;xe;xe=Ve)Ve=xe.nextSibling,ve.test(xe.className)&&le.node.removeChild(xe);jo(ie,le,ye)}function ho(ie,le,ye,ve){var xe=Ea(ie,le);return le.text=le.node=xe.pre,xe.bgClass&&(le.bgClass=xe.bgClass),xe.textClass&&(le.textClass=xe.textClass),Mr(ie,le),Kr(ie,le,ye,ve),jo(ie,le,ve),le.node}function jo(ie,le,ye){if(Dr(ie,le.line,le,ye,!0),le.rest)for(var ve=0;ve<le.rest.length;ve++)Dr(ie,le.rest[ve],le,ye,!1)}function Dr(ie,le,ye,ve,xe){if(le.widgets)for(var Ve=Ua(ye),st=0,xt=le.widgets;st<xt.length;++st){var Et=xt[st],_t=Qe("div",[Et.node],"CodeMirror-linewidget"+(Et.className?" "+Et.className:""));Et.handleMouseEvents||_t.setAttribute("cm-ignore-events","true"),Ya(Et,_t,ye,ve),ie.display.input.setUneditable(_t),xe&&Et.above?Ve.insertBefore(_t,ye.gutter||ye.text):Ve.appendChild(_t),Fr(Et,"redraw")}}function Ya(ie,le,ye,ve){if(ie.noHScroll){(ye.alignable||(ye.alignable=[])).push(le);var xe=ve.wrapperWidth;le.style.left=ve.fixedPos+"px",ie.coverGutter||(xe-=ve.gutterTotalWidth,le.style.paddingLeft=ve.gutterTotalWidth+"px"),le.style.width=xe+"px"}ie.coverGutter&&(le.style.zIndex=5,le.style.position="relative",ie.noHScroll||(le.style.marginLeft=-ve.gutterTotalWidth+"px"))}function va(ie){if(ie.height!=null)return ie.height;var le=ie.doc.cm;if(!le)return 0;if(!yt(document.body,ie.node)){var ye="position: relative;";ie.coverGutter&&(ye+="margin-left: -"+le.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ye+="width: "+le.display.wrapper.clientWidth+"px;"),Ye(le.display.measure,Qe("div",[ie.node],null,ye))}return ie.height=ie.node.parentNode.offsetHeight}function fa(ie,le){for(var ye=Vi(le);ye!=ie.wrapper;ye=ye.parentNode)if(!ye||ye.nodeType==1&&ye.getAttribute("cm-ignore-events")=="true"||ye.parentNode==ie.sizer&&ye!=ie.mover)return!0}function vo(ie){return ie.lineSpace.offsetTop}function Wo(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function gs(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var le=Ye(ie.measure,Qe("pre","x","CodeMirror-line-like")),ye=window.getComputedStyle?window.getComputedStyle(le):le.currentStyle,ve={left:parseInt(ye.paddingLeft),right:parseInt(ye.paddingRight)};return!isNaN(ve.left)&&!isNaN(ve.right)&&(ie.cachedPaddingH=ve),ve}function Jo(ie){return Wt-ie.display.nativeBarWidth}function ss(ie){return ie.display.scroller.clientWidth-Jo(ie)-ie.display.barWidth}function Os(ie){return ie.display.scroller.clientHeight-Jo(ie)-ie.display.barHeight}function ws(ie,le,ye){var ve=ie.options.lineWrapping,xe=ve&&ss(ie);if(!le.measure.heights||ve&&le.measure.width!=xe){var Ve=le.measure.heights=[];if(ve){le.measure.width=xe;for(var st=le.text.firstChild.getClientRects(),xt=0;xt<st.length-1;xt++){var Et=st[xt],_t=st[xt+1];Math.abs(Et.bottom-_t.bottom)>2&&Ve.push((Et.bottom+_t.top)/2-ye.top)}}Ve.push(ye.bottom-ye.top)}}function Pa(ie,le,ye){if(ie.line==le)return{map:ie.measure.map,cache:ie.measure.cache};for(var ve=0;ve<ie.rest.length;ve++)if(ie.rest[ve]==le)return{map:ie.measure.maps[ve],cache:ie.measure.caches[ve]};for(var xe=0;xe<ie.rest.length;xe++)if(Ct(ie.rest[xe])>ye)return{map:ie.measure.maps[xe],cache:ie.measure.caches[xe],before:!0}}function Al(ie,le){le=vn(le);var ye=Ct(le),ve=ie.display.externalMeasured=new Fn(ie.doc,le,ye);ve.lineN=ye;var xe=ve.built=xn(ie,ve);return ve.text=xe.pre,Ye(ie.display.lineMeasure,xe.pre),ve}function Uu(ie,le,ye,ve){return Ds(ie,Js(ie,le),ye,ve)}function Rs(ie,le){if(le>=ie.display.viewFrom&&le<ie.display.viewTo)return ie.display.view[Ls(ie,le)];var ye=ie.display.externalMeasured;if(ye&&le>=ye.lineN&&le<ye.lineN+ye.size)return ye}function Js(ie,le){var ye=Ct(le),ve=Rs(ie,ye);ve&&!ve.text?ve=null:ve&&ve.changes&&(ua(ie,ve,ye,gl(ie)),ie.curOp.forceUpdate=!0),ve||(ve=Al(ie,le));var xe=Pa(ve,le,ye);return{line:le,view:ve,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function Ds(ie,le,ye,ve,xe){le.before&&(ye=-1);var Ve=ye+(ve||""),st;return le.cache.hasOwnProperty(Ve)?st=le.cache[Ve]:(le.rect||(le.rect=le.view.text.getBoundingClientRect()),le.hasHeights||(ws(ie,le.view,le.rect),le.hasHeights=!0),st=Ia(ie,le,ye,ve),st.bogus||(le.cache[Ve]=st)),{left:st.left,right:st.right,top:xe?st.rtop:st.top,bottom:xe?st.rbottom:st.bottom}}var Ql={left:0,right:0,top:0,bottom:0};function rc(ie,le,ye){for(var ve,xe,Ve,st,xt,Et,_t=0;_t<ie.length;_t+=3)if(xt=ie[_t],Et=ie[_t+1],le<xt?(xe=0,Ve=1,st="left"):le<Et?(xe=le-xt,Ve=xe+1):(_t==ie.length-3||le==Et&&ie[_t+3]>le)&&(Ve=Et-xt,xe=Ve-1,le>=Et&&(st="right")),xe!=null){if(ve=ie[_t+2],xt==Et&&ye==(ve.insertLeft?"left":"right")&&(st=ye),ye=="left"&&xe==0)for(;_t&&ie[_t-2]==ie[_t-3]&&ie[_t-1].insertLeft;)ve=ie[(_t-=3)+2],st="left";if(ye=="right"&&xe==Et-xt)for(;_t<ie.length-3&&ie[_t+3]==ie[_t+4]&&!ie[_t+5].insertLeft;)ve=ie[(_t+=3)+2],st="right";break}return{node:ve,start:xe,end:Ve,collapse:st,coverStart:xt,coverEnd:Et}}function oc(ie,le){var ye=Ql;if(le=="left")for(var ve=0;ve<ie.length&&(ye=ie[ve]).left==ye.right;ve++);else for(var xe=ie.length-1;xe>=0&&(ye=ie[xe]).left==ye.right;xe--);return ye}function Ia(ie,le,ye,ve){var xe=rc(le.map,ye,ve),Ve=xe.node,st=xe.start,xt=xe.end,Et=xe.collapse,_t;if(Ve.nodeType==3){for(var zn=0;zn<4;zn++){for(;st&&on(le.line.text.charAt(xe.coverStart+st));)--st;for(;xe.coverStart+xt<xe.coverEnd&&on(le.line.text.charAt(xe.coverStart+xt));)++xt;if(He&&Te<9&&st==0&&xt==xe.coverEnd-xe.coverStart?_t=Ve.parentNode.getBoundingClientRect():_t=oc(nt(Ve,st,xt).getClientRects(),ve),_t.left||_t.right||st==0)break;xt=st,st=st-1,Et="right"}He&&Te<11&&(_t=Hu(ie.display.measure,_t))}else{st>0&&(Et=ve="right");var qt;ie.options.lineWrapping&&(qt=Ve.getClientRects()).length>1?_t=qt[ve=="right"?qt.length-1:0]:_t=Ve.getBoundingClientRect()}if(He&&Te<9&&!st&&(!_t||!_t.left&&!_t.right)){var xi=Ve.parentNode.getClientRects()[0];xi?_t={left:xi.left,right:xi.left+qs(ie.display),top:xi.top,bottom:xi.bottom}:_t=Ql}for(var hi=_t.top-le.rect.top,rr=_t.bottom-le.rect.top,lr=(hi+rr)/2,fr=le.view.measure.heights,Or=0;Or<fr.length-1&&!(lr<fr[Or]);Or++);var $r=Or?fr[Or-1]:0,Vr=fr[Or],oo={left:(Et=="right"?_t.right:_t.left)-le.rect.left,right:(Et=="left"?_t.left:_t.right)-le.rect.left,top:$r,bottom:Vr};return!_t.left&&!_t.right&&(oo.bogus=!0),ie.options.singleCursorHeightPerLine||(oo.rtop=hi,oo.rbottom=rr),oo}function Hu(ie,le){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!On(ie))return le;var ye=screen.logicalXDPI/screen.deviceXDPI,ve=screen.logicalYDPI/screen.deviceYDPI;return{left:le.left*ye,right:le.right*ye,top:le.top*ve,bottom:le.bottom*ve}}function ac(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var le=0;le<ie.rest.length;le++)ie.measure.caches[le]={}}function cu(ie){ie.display.externalMeasure=null,tt(ie.display.lineMeasure);for(var le=0;le<ie.display.view.length;le++)ac(ie.display.view[le])}function Pu(ie){cu(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ls(){return Ke&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Es(){return Ke&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Va(ie){var le=0;if(ie.widgets)for(var ye=0;ye<ie.widgets.length;++ye)ie.widgets[ye].above&&(le+=va(ie.widgets[ye]));return le}function is(ie,le,ye,ve,xe){if(!xe){var Ve=Va(le);ye.top+=Ve,ye.bottom+=Ve}if(ve=="line")return ye;ve||(ve="local");var st=Bi(le);if(ve=="local"?st+=vo(ie.display):st-=ie.display.viewOffset,ve=="page"||ve=="window"){var xt=ie.display.lineSpace.getBoundingClientRect();st+=xt.top+(ve=="window"?0:Es());var Et=xt.left+(ve=="window"?0:ls());ye.left+=Et,ye.right+=Et}return ye.top+=st,ye.bottom+=st,ye}function du(ie,le,ye){if(ye=="div")return le;var ve=le.left,xe=le.top;if(ye=="page")ve-=ls(),xe-=Es();else if(ye=="local"||!ye){var Ve=ie.display.sizer.getBoundingClientRect();ve+=Ve.left,xe+=Ve.top}var st=ie.display.lineSpace.getBoundingClientRect();return{left:ve-st.left,top:xe-st.top}}function Cs(ie,le,ye,ve,xe){return ve||(ve=Hn(ie.doc,le.line)),is(ie,ve,Uu(ie,ve,le.ch,xe),ye)}function $o(ie,le,ye,ve,xe,Ve){ve=ve||Hn(ie.doc,le.line),xe||(xe=Js(ie,ve));function st(rr,lr){var fr=Ds(ie,xe,rr,lr?"right":"left",Ve);return lr?fr.left=fr.right:fr.right=fr.left,is(ie,ve,fr,ye)}var xt=Pn(ve,ie.doc.direction),Et=le.ch,_t=le.sticky;if(Et>=ve.text.length?(Et=ve.text.length,_t="before"):Et<=0&&(Et=0,_t="after"),!xt)return st(_t=="before"?Et-1:Et,_t=="before");function zn(rr,lr,fr){var Or=xt[lr],$r=Or.level==1;return st(fr?rr-1:rr,$r!=fr)}var qt=Gt(xt,Et,_t),xi=It,hi=zn(Et,qt,_t=="before");return xi!=null&&(hi.other=zn(Et,xi,_t!="before")),hi}function Zo(ie,le){var ye=0;le=Rn(ie.doc,le),ie.options.lineWrapping||(ye=qs(ie.display)*le.ch);var ve=Hn(ie.doc,le.line),xe=Bi(ve)+vo(ie.display);return{left:ye,right:ye,top:xe,bottom:xe+ve.height}}function Ro(ie,le,ye,ve,xe){var Ve=zt(ie,le,ye);return Ve.xRel=xe,ve&&(Ve.outside=ve),Ve}function Ha(ie,le,ye){var ve=ie.doc;if(ye+=ie.display.viewOffset,ye<0)return Ro(ve.first,0,null,-1,-1);var xe=$t(ve,ye),Ve=ve.first+ve.size-1;if(xe>Ve)return Ro(ve.first+ve.size-1,Hn(ve,Ve).text.length,null,1,1);le<0&&(le=0);for(var st=Hn(ve,xe);;){var xt=Ti(ie,st,xe,le,ye),Et=dt(st,xt.ch+(xt.xRel>0||xt.outside>0?1:0));if(!Et)return xt;var _t=Et.find(1);if(_t.line==xe)return _t;st=Hn(ve,xe=_t.line)}}function mr(ie,le,ye,ve){ve-=Va(le);var xe=le.text.length,Ve=Zn(function(st){return Ds(ie,ye,st-1).bottom<=ve},xe,0);return xe=Zn(function(st){return Ds(ie,ye,st).top>ve},Ve,xe),{begin:Ve,end:xe}}function Xa(ie,le,ye,ve){ye||(ye=Js(ie,le));var xe=is(ie,le,Ds(ie,ye,ve),"line").top;return mr(ie,le,ye,xe)}function Qt(ie,le,ye,ve){return ie.bottom<=ye?!1:ie.top>ye?!0:(ve?ie.left:ie.right)>le}function Ti(ie,le,ye,ve,xe){xe-=Bi(le);var Ve=Js(ie,le),st=Va(le),xt=0,Et=le.text.length,_t=!0,zn=Pn(le,ie.doc.direction);if(zn){var qt=(ie.options.lineWrapping?Jl:pl)(ie,le,ye,Ve,zn,ve,xe);_t=qt.level!=1,xt=_t?qt.from:qt.to-1,Et=_t?qt.to:qt.from-1}var xi=null,hi=null,rr=Zn(function(No){var Gr=Ds(ie,Ve,No);return Gr.top+=st,Gr.bottom+=st,Qt(Gr,ve,xe,!1)?(Gr.top<=xe&&Gr.left<=ve&&(xi=No,hi=Gr),!0):!1},xt,Et),lr,fr,Or=!1;if(hi){var $r=ve-hi.left<hi.right-ve,Vr=$r==_t;rr=xi+(Vr?0:1),fr=Vr?"after":"before",lr=$r?hi.left:hi.right}else{!_t&&(rr==Et||rr==xt)&&rr++,fr=rr==0?"after":rr==le.text.length?"before":Ds(ie,Ve,rr-(_t?1:0)).bottom+st<=xe==_t?"after":"before";var oo=$o(ie,zt(ye,rr,fr),"line",le,Ve);lr=oo.left,Or=xe<oo.top?-1:xe>=oo.bottom?1:0}return rr=An(le.text,rr,1),Ro(ye,rr,fr,Or,ve-lr)}function pl(ie,le,ye,ve,xe,Ve,st){var xt=Zn(function(qt){var xi=xe[qt],hi=xi.level!=1;return Qt($o(ie,zt(ye,hi?xi.to:xi.from,hi?"before":"after"),"line",le,ve),Ve,st,!0)},0,xe.length-1),Et=xe[xt];if(xt>0){var _t=Et.level!=1,zn=$o(ie,zt(ye,_t?Et.from:Et.to,_t?"after":"before"),"line",le,ve);Qt(zn,Ve,st,!0)&&zn.top>st&&(Et=xe[xt-1])}return Et}function Jl(ie,le,ye,ve,xe,Ve,st){var xt=mr(ie,le,ve,st),Et=xt.begin,_t=xt.end;/\s/.test(le.text.charAt(_t-1))&&_t--;for(var zn=null,qt=null,xi=0;xi<xe.length;xi++){var hi=xe[xi];if(!(hi.from>=_t||hi.to<=Et)){var rr=hi.level!=1,lr=Ds(ie,ve,rr?Math.min(_t,hi.to)-1:Math.max(Et,hi.from)).right,fr=lr<Ve?Ve-lr+1e9:lr-Ve;(!zn||qt>fr)&&(zn=hi,qt=fr)}}return zn||(zn=xe[xe.length-1]),zn.from<Et&&(zn={from:Et,to:zn.to,level:zn.level}),zn.to>_t&&(zn={from:zn.from,to:_t,level:zn.level}),zn}var Ma;function Qa(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Ma==null){Ma=Qe("pre",null,"CodeMirror-line-like");for(var le=0;le<49;++le)Ma.appendChild(document.createTextNode("x")),Ma.appendChild(Qe("br"));Ma.appendChild(document.createTextNode("x"))}Ye(ie.measure,Ma);var ye=Ma.offsetHeight/50;return ye>3&&(ie.cachedTextHeight=ye),tt(ie.measure),ye||1}function qs(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var le=Qe("span","xxxxxxxxxx"),ye=Qe("pre",[le],"CodeMirror-line-like");Ye(ie.measure,ye);var ve=le.getBoundingClientRect(),xe=(ve.right-ve.left)/10;return xe>2&&(ie.cachedCharWidth=xe),xe||10}function gl(ie){for(var le=ie.display,ye={},ve={},xe=le.gutters.clientLeft,Ve=le.gutters.firstChild,st=0;Ve;Ve=Ve.nextSibling,++st){var xt=ie.display.gutterSpecs[st].className;ye[xt]=Ve.offsetLeft+Ve.clientLeft+xe,ve[xt]=Ve.clientWidth}return{fixedPos:zu(le),gutterTotalWidth:le.gutters.offsetWidth,gutterLeft:ye,gutterWidth:ve,wrapperWidth:le.wrapper.clientWidth}}function zu(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function ya(ie){var le=Qa(ie.display),ye=ie.options.lineWrapping,ve=ye&&Math.max(5,ie.display.scroller.clientWidth/qs(ie.display)-3);return function(xe){if(en(ie.doc,xe))return 0;var Ve=0;if(xe.widgets)for(var st=0;st<xe.widgets.length;st++)xe.widgets[st].height&&(Ve+=xe.widgets[st].height);return ye?Ve+(Math.ceil(xe.text.length/ve)||1)*le:Ve+le}}function no(ie){var le=ie.doc,ye=ya(ie);le.iter(function(ve){var xe=ye(ve);xe!=ve.height&&mi(ve,xe)})}function us(ie,le,ye,ve){var xe=ie.display;if(!ye&&Vi(le).getAttribute("cm-not-content")=="true")return null;var Ve,st,xt=xe.lineSpace.getBoundingClientRect();try{Ve=le.clientX-xt.left,st=le.clientY-xt.top}catch(qt){return null}var Et=Ha(ie,Ve,st),_t;if(ve&&Et.xRel>0&&(_t=Hn(ie.doc,Et.line).text).length==Et.ch){var zn=pt(_t,_t.length,ie.options.tabSize)-_t.length;Et=zt(Et.line,Math.max(0,Math.round((Ve-gs(ie.display).left)/qs(ie.display))-zn))}return Et}function Ls(ie,le){if(le>=ie.display.viewTo||(le-=ie.display.viewFrom,le<0))return null;for(var ye=ie.display.view,ve=0;ve<ye.length;ve++)if(le-=ye[ve].size,le<0)return ve}function Go(ie,le,ye,ve){le==null&&(le=ie.doc.first),ye==null&&(ye=ie.doc.first+ie.doc.size),ve||(ve=0);var xe=ie.display;if(ve&&ye<xe.viewTo&&(xe.updateLineNumbers==null||xe.updateLineNumbers>le)&&(xe.updateLineNumbers=le),ie.curOp.viewChanged=!0,le>=xe.viewTo)Wn&&Yn(ie.doc,le)<xe.viewTo&&ba(ie);else if(ye<=xe.viewFrom)Wn&&Gn(ie.doc,ye+ve)>xe.viewFrom?ba(ie):(xe.viewFrom+=ve,xe.viewTo+=ve);else if(le<=xe.viewFrom&&ye>=xe.viewTo)ba(ie);else if(le<=xe.viewFrom){var Ve=Fs(ie,ye,ye+ve,1);Ve?(xe.view=xe.view.slice(Ve.index),xe.viewFrom=Ve.lineN,xe.viewTo+=ve):ba(ie)}else if(ye>=xe.viewTo){var st=Fs(ie,le,le,-1);st?(xe.view=xe.view.slice(0,st.index),xe.viewTo=st.lineN):ba(ie)}else{var xt=Fs(ie,le,le,-1),Et=Fs(ie,ye,ye+ve,1);xt&&Et?(xe.view=xe.view.slice(0,xt.index).concat(Jr(ie,xt.lineN,Et.lineN)).concat(xe.view.slice(Et.index)),xe.viewTo+=ve):ba(ie)}var _t=xe.externalMeasured;_t&&(ye<_t.lineN?_t.lineN+=ve:le<_t.lineN+_t.size&&(xe.externalMeasured=null))}function To(ie,le,ye){ie.curOp.viewChanged=!0;var ve=ie.display,xe=ie.display.externalMeasured;if(xe&&le>=xe.lineN&&le<xe.lineN+xe.size&&(ve.externalMeasured=null),!(le<ve.viewFrom||le>=ve.viewTo)){var Ve=ve.view[Ls(ie,le)];if(Ve.node!=null){var st=Ve.changes||(Ve.changes=[]);at(st,ye)==-1&&st.push(ye)}}}function ba(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Fs(ie,le,ye,ve){var xe=Ls(ie,le),Ve,st=ie.display.view;if(!Wn||ye==ie.doc.first+ie.doc.size)return{index:xe,lineN:ye};for(var xt=ie.display.viewFrom,Et=0;Et<xe;Et++)xt+=st[Et].size;if(xt!=le){if(ve>0){if(xe==st.length-1)return null;Ve=xt+st[xe].size-le,xe++}else Ve=xt-le;le+=Ve,ye+=Ve}for(;Yn(ie.doc,ye)!=ye;){if(xe==(ve<0?0:st.length-1))return null;ye+=ve*st[xe-(ve<0?1:0)].size,xe+=ve}return{index:xe,lineN:ye}}function sa(ie,le,ye){var ve=ie.display,xe=ve.view;xe.length==0||le>=ve.viewTo||ye<=ve.viewFrom?(ve.view=Jr(ie,le,ye),ve.viewFrom=le):(ve.viewFrom>le?ve.view=Jr(ie,le,ve.viewFrom).concat(ve.view):ve.viewFrom<le&&(ve.view=ve.view.slice(Ls(ie,le))),ve.viewFrom=le,ve.viewTo<ye?ve.view=ve.view.concat(Jr(ie,ve.viewTo,ye)):ve.viewTo>ye&&(ve.view=ve.view.slice(0,Ls(ie,ye)))),ve.viewTo=ye}function Gs(ie){for(var le=ie.display.view,ye=0,ve=0;ve<le.length;ve++){var xe=le[ve];!xe.hidden&&(!xe.node||xe.changes)&&++ye}return ye}function Ja(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function hu(ie,le){le===void 0&&(le=!0);for(var ye=ie.doc,ve={},xe=ve.cursors=document.createDocumentFragment(),Ve=ve.selection=document.createDocumentFragment(),st=0;st<ye.sel.ranges.length;st++)if(!(!le&&st==ye.sel.primIndex)){var xt=ye.sel.ranges[st];if(!(xt.from().line>=ie.display.viewTo||xt.to().line<ie.display.viewFrom)){var Et=xt.empty();(Et||ie.options.showCursorWhenSelecting)&&Ko(ie,xt.head,xe),Et||Bo(ie,xt,Ve)}}return ve}function Ko(ie,le,ye){var ve=$o(ie,le,"div",null,null,!ie.options.singleCursorHeightPerLine),xe=ye.appendChild(Qe("div","\xA0","CodeMirror-cursor"));if(xe.style.left=ve.left+"px",xe.style.top=ve.top+"px",xe.style.height=Math.max(0,ve.bottom-ve.top)*ie.options.cursorHeight+"px",ve.other){var Ve=ye.appendChild(Qe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ve.style.display="",Ve.style.left=ve.other.left+"px",Ve.style.top=ve.other.top+"px",Ve.style.height=(ve.other.bottom-ve.other.top)*.85+"px"}}function cs(ie,le){return ie.top-le.top||ie.left-le.left}function Bo(ie,le,ye){var ve=ie.display,xe=ie.doc,Ve=document.createDocumentFragment(),st=gs(ie.display),xt=st.left,Et=Math.max(ve.sizerWidth,ss(ie)-ve.sizer.offsetLeft)-st.right,_t=xe.direction=="ltr";function zn(Vr,oo,No,Gr){oo<0&&(oo=0),oo=Math.round(oo),Gr=Math.round(Gr),Ve.appendChild(Qe("div",null,"CodeMirror-selected","position: absolute; left: "+Vr+`px;
top: `+oo+"px; width: "+(No==null?Et-Vr:No)+`px;
height: `+(Gr-oo)+"px"))}function qt(Vr,oo,No){var Gr=Hn(xe,Vr),Xo=Gr.text.length,es,Ks;function fs(Us,vu){return Cs(ie,zt(Vr,Us),"div",Gr,vu)}function ru(Us,vu,bl){var Hs=Xa(ie,Gr,null,Us),ha=vu=="ltr"==(bl=="after")?"left":"right",vs=bl=="after"?Hs.begin:Hs.end-(/\s/.test(Gr.text.charAt(Hs.end-1))?2:1);return fs(vs,ha)[ha]}var Ml=Pn(Gr,xe.direction);return Ft(Ml,oo||0,No==null?Xo:No,function(Us,vu,bl,Hs){var ha=bl=="ltr",vs=fs(Us,ha?"left":"right"),il=fs(vu-1,ha?"right":"left"),xl=oo==null&&Us==0,cc=No==null&&vu==Xo,ps=Hs==0,Xu=!Ml||Hs==Ml.length-1;if(il.top-vs.top<=3){var xs=(_t?xl:cc)&&ps,rf=(_t?cc:xl)&&Xu,Iu=xs?xt:(ha?vs:il).left,yu=rf?Et:(ha?il:vs).right;zn(Iu,vs.top,yu-Iu,vs.bottom)}else{var ou,Fa,rl,Fc;ha?(ou=_t&&xl&&ps?xt:vs.left,Fa=_t?Et:ru(Us,bl,"before"),rl=_t?xt:ru(vu,bl,"after"),Fc=_t&&cc&&Xu?Et:il.right):(ou=_t?ru(Us,bl,"before"):xt,Fa=!_t&&xl&&ps?Et:vs.right,rl=!_t&&cc&&Xu?xt:il.left,Fc=_t?ru(vu,bl,"after"):Et),zn(ou,vs.top,Fa-ou,vs.bottom),vs.bottom<il.top&&zn(xt,vs.bottom,null,il.top),zn(rl,il.top,Fc-rl,il.bottom)}(!es||cs(vs,es)<0)&&(es=vs),cs(il,es)<0&&(es=il),(!Ks||cs(vs,Ks)<0)&&(Ks=vs),cs(il,Ks)<0&&(Ks=il)}),{start:es,end:Ks}}var xi=le.from(),hi=le.to();if(xi.line==hi.line)qt(xi.line,xi.ch,hi.ch);else{var rr=Hn(xe,xi.line),lr=Hn(xe,hi.line),fr=vn(rr)==vn(lr),Or=qt(xi.line,xi.ch,fr?rr.text.length+1:null).end,$r=qt(hi.line,fr?0:null,hi.ch).start;fr&&(Or.top<$r.top-2?(zn(Or.right,Or.top,null,Or.bottom),zn(xt,$r.top,$r.left,$r.bottom)):zn(Or.right,Or.top,$r.left-Or.right,Or.bottom)),Or.bottom<$r.top&&zn(xt,Or.bottom,null,$r.top)}ye.appendChild(Ve)}function na(ie){if(ie.state.focused){var le=ie.display;clearInterval(le.blinker);var ye=!0;le.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?le.blinker=setInterval(function(){ie.hasFocus()||ju(ie),le.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(le.cursorDiv.style.visibility="hidden")}}function aa(ie){ie.state.focused||(ie.display.input.focus(),Lo(ie))}function Sa(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,ju(ie))},100)}function Lo(ie,le){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Kt(ie,"focus",ie,le),ie.state.focused=!0,St(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),ze&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),na(ie))}function ju(ie,le){ie.state.delayingBlurEvent||(ie.state.focused&&(Kt(ie,"blur",ie,le),ie.state.focused=!1,We(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function qr(ie){for(var le=ie.display,ye=le.lineDiv.offsetTop,ve=0;ve<le.view.length;ve++){var xe=le.view[ve],Ve=ie.options.lineWrapping,st=void 0,xt=0;if(!xe.hidden){if(He&&Te<8){var Et=xe.node.offsetTop+xe.node.offsetHeight;st=Et-ye,ye=Et}else{var _t=xe.node.getBoundingClientRect();st=_t.bottom-_t.top,!Ve&&xe.text.firstChild&&(xt=xe.text.firstChild.getBoundingClientRect().right-_t.left-1)}var zn=xe.line.height-st;if((zn>.005||zn<-.005)&&(mi(xe.line,st),Qc(xe.line),xe.rest))for(var qt=0;qt<xe.rest.length;qt++)Qc(xe.rest[qt]);if(xt>ie.display.sizerWidth){var xi=Math.ceil(xt/qs(ie.display));xi>ie.display.maxLineLength&&(ie.display.maxLineLength=xi,ie.display.maxLine=xe.line,ie.display.maxLineChanged=!0)}}}}function Qc(ie){if(ie.widgets)for(var le=0;le<ie.widgets.length;++le){var ye=ie.widgets[le],ve=ye.node.parentNode;ve&&(ye.height=ve.offsetHeight)}}function Fo(ie,le,ye){var ve=ye&&ye.top!=null?Math.max(0,ye.top):ie.scroller.scrollTop;ve=Math.floor(ve-vo(ie));var xe=ye&&ye.bottom!=null?ye.bottom:ve+ie.wrapper.clientHeight,Ve=$t(le,ve),st=$t(le,xe);if(ye&&ye.ensure){var xt=ye.ensure.from.line,Et=ye.ensure.to.line;xt<Ve?(Ve=xt,st=$t(le,Bi(Hn(le,xt))+ie.wrapper.clientHeight)):Math.min(Et,le.lastLine())>=st&&(Ve=$t(le,Bi(Hn(le,Et))-ie.wrapper.clientHeight),st=Et)}return{from:Ve,to:Math.max(st,Ve+1)}}function Lc(ie,le){if(!un(ie,"scrollCursorIntoView")){var ye=ie.display,ve=ye.sizer.getBoundingClientRect(),xe=null;if(le.top+ve.top<0?xe=!0:le.bottom+ve.top>(window.innerHeight||document.documentElement.clientHeight)&&(xe=!1),xe!=null&&!wt){var Ve=Qe("div","\u200B",null,`position: absolute;
top: `+(le.top-ye.viewOffset-vo(ie.display))+`px;
height: `+(le.bottom-le.top+Jo(ie)+ye.barHeight)+`px;
left: `+le.left+"px; width: "+Math.max(2,le.right-le.left)+"px;");ie.display.lineSpace.appendChild(Ve),Ve.scrollIntoView(xe),ie.display.lineSpace.removeChild(Ve)}}}function Au(ie,le,ye,ve){ve==null&&(ve=0);var xe;!ie.options.lineWrapping&&le==ye&&(le=le.ch?zt(le.line,le.sticky=="before"?le.ch-1:le.ch,"after"):le,ye=le.sticky=="before"?zt(le.line,le.ch+1,"before"):le);for(var Ve=0;Ve<5;Ve++){var st=!1,xt=$o(ie,le),Et=!ye||ye==le?xt:$o(ie,ye);xe={left:Math.min(xt.left,Et.left),top:Math.min(xt.top,Et.top)-ve,right:Math.max(xt.left,Et.left),bottom:Math.max(xt.bottom,Et.bottom)+ve};var _t=Ic(ie,xe),zn=ie.doc.scrollTop,qt=ie.doc.scrollLeft;if(_t.scrollTop!=null&&(Ll(ie,_t.scrollTop),Math.abs(ie.doc.scrollTop-zn)>1&&(st=!0)),_t.scrollLeft!=null&&(_l(ie,_t.scrollLeft),Math.abs(ie.doc.scrollLeft-qt)>1&&(st=!0)),!st)break}return xe}function ql(ie,le){var ye=Ic(ie,le);ye.scrollTop!=null&&Ll(ie,ye.scrollTop),ye.scrollLeft!=null&&_l(ie,ye.scrollLeft)}function Ic(ie,le){var ye=ie.display,ve=Qa(ie.display);le.top<0&&(le.top=0);var xe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ye.scroller.scrollTop,Ve=Os(ie),st={};le.bottom-le.top>Ve&&(le.bottom=le.top+Ve);var xt=ie.doc.height+Wo(ye),Et=le.top<ve,_t=le.bottom>xt-ve;if(le.top<xe)st.scrollTop=Et?0:le.top;else if(le.bottom>xe+Ve){var zn=Math.min(le.top,(_t?xt:le.bottom)-Ve);zn!=xe&&(st.scrollTop=zn)}var qt=ie.options.fixedGutter?0:ye.gutters.offsetWidth,xi=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ye.scroller.scrollLeft-qt,hi=ss(ie)-ye.gutters.offsetWidth,rr=le.right-le.left>hi;return rr&&(le.right=le.left+hi),le.left<10?st.scrollLeft=0:le.left<xi?st.scrollLeft=Math.max(0,le.left+qt-(rr?0:10)):le.right>hi+xi-3&&(st.scrollLeft=le.right+(rr?0:10)-hi),st}function Ec(ie,le){le!=null&&(Ts(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+le)}function Nl(ie){Ts(ie);var le=ie.getCursor();ie.curOp.scrollToPos={from:le,to:le,margin:ie.options.cursorScrollMargin}}function kl(ie,le,ye){(le!=null||ye!=null)&&Ts(ie),le!=null&&(ie.curOp.scrollLeft=le),ye!=null&&(ie.curOp.scrollTop=ye)}function _o(ie,le){Ts(ie),ie.curOp.scrollToPos=le}function Ts(ie){var le=ie.curOp.scrollToPos;if(le){ie.curOp.scrollToPos=null;var ye=Zo(ie,le.from),ve=Zo(ie,le.to);Gu(ie,ye,ve,le.margin)}}function Gu(ie,le,ye,ve){var xe=Ic(ie,{left:Math.min(le.left,ye.left),top:Math.min(le.top,ye.top)-ve,right:Math.max(le.right,ye.right),bottom:Math.max(le.bottom,ye.bottom)+ve});kl(ie,xe.scrollLeft,xe.scrollTop)}function Ll(ie,le){Math.abs(ie.doc.scrollTop-le)<2||(oe||et(ie,{top:le}),$l(ie,le,!0),oe&&et(ie),sc(ie,100))}function $l(ie,le,ye){le=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,le)),!(ie.display.scroller.scrollTop==le&&!ye)&&(ie.doc.scrollTop=le,ie.display.scrollbars.setScrollTop(le),ie.display.scroller.scrollTop!=le&&(ie.display.scroller.scrollTop=le))}function _l(ie,le,ye,ve){le=Math.max(0,Math.min(le,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ye?le==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-le)<2)&&!ve)&&(ie.doc.scrollLeft=le,tn(ie),ie.display.scroller.scrollLeft!=le&&(ie.display.scroller.scrollLeft=le),ie.display.scrollbars.setScrollLeft(le))}function Io(ie){var le=ie.display,ye=le.gutters.offsetWidth,ve=Math.round(ie.doc.height+Wo(ie.display));return{clientHeight:le.scroller.clientHeight,viewHeight:le.wrapper.clientHeight,scrollWidth:le.scroller.scrollWidth,clientWidth:le.scroller.clientWidth,viewWidth:le.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ye:0,docHeight:ve,scrollHeight:ve+Jo(ie)+le.barHeight,nativeBarWidth:le.nativeBarWidth,gutterWidth:ye}}var Yo=function(ie,le,ye){this.cm=ye;var ve=this.vert=Qe("div",[Qe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=Qe("div",[Qe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ve.tabIndex=xe.tabIndex=-1,ie(ve),ie(xe),Ot(ve,"scroll",function(){ve.clientHeight&&le(ve.scrollTop,"vertical")}),Ot(xe,"scroll",function(){xe.clientWidth&&le(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,He&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yo.prototype.update=function(ie){var le=ie.scrollWidth>ie.clientWidth+1,ye=ie.scrollHeight>ie.clientHeight+1,ve=ie.nativeBarWidth;if(ye){this.vert.style.display="block",this.vert.style.bottom=le?ve+"px":"0";var xe=ie.viewHeight-(le?ve: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(le){this.horiz.style.display="block",this.horiz.style.right=ye?ve+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ve=ie.viewWidth-ie.barLeft-(ye?ve:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ve)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(ve==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ye?ve:0,bottom:le?ve:0}},Yo.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yo.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yo.prototype.zeroWidthHack=function(){var ie=he&&!Je?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},Yo.prototype.enableZeroWidthBar=function(ie,le,ye){ie.style.pointerEvents="auto";function ve(){var xe=ie.getBoundingClientRect(),Ve=ye=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);Ve!=ie?ie.style.pointerEvents="none":le.set(1e3,ve)}le.set(1e3,ve)},Yo.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var xa=function(){};xa.prototype.update=function(){return{bottom:0,right:0}},xa.prototype.setScrollLeft=function(){},xa.prototype.setScrollTop=function(){},xa.prototype.clear=function(){};function ds(ie,le){le||(le=Io(ie));var ye=ie.display.barWidth,ve=ie.display.barHeight;qa(ie,le);for(var xe=0;xe<4&&ye!=ie.display.barWidth||ve!=ie.display.barHeight;xe++)ye!=ie.display.barWidth&&ie.options.lineWrapping&&qr(ie),qa(ie,Io(ie)),ye=ie.display.barWidth,ve=ie.display.barHeight}function qa(ie,le){var ye=ie.display,ve=ye.scrollbars.update(le);ye.sizer.style.paddingRight=(ye.barWidth=ve.right)+"px",ye.sizer.style.paddingBottom=(ye.barHeight=ve.bottom)+"px",ye.heightForcer.style.borderBottom=ve.bottom+"px solid transparent",ve.right&&ve.bottom?(ye.scrollbarFiller.style.display="block",ye.scrollbarFiller.style.height=ve.bottom+"px",ye.scrollbarFiller.style.width=ve.right+"px"):ye.scrollbarFiller.style.display="",ve.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ye.gutterFiller.style.display="block",ye.gutterFiller.style.height=ve.bottom+"px",ye.gutterFiller.style.width=le.gutterWidth+"px"):ye.gutterFiller.style.display=""}var ml={native:Yo,null:xa};function vl(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&We(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new ml[ie.options.scrollbarStyle](function(le){ie.display.wrapper.insertBefore(le,ie.display.scrollbarFiller),Ot(le,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),le.setAttribute("cm-not-content","true")},function(le,ye){ye=="horizontal"?_l(ie,le):Ll(ie,le)},ie),ie.display.scrollbars.addClass&&St(ie.display.wrapper,ie.display.scrollbars.addClass)}var yl=0;function $s(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:++yl},ma(ie.curOp)}function Ul(ie){var le=ie.curOp;le&&js(le,function(ye){for(var ve=0;ve<ye.ops.length;ve++)ye.ops[ve].cm.curOp=null;dd(ye)})}function dd(ie){for(var le=ie.ops,ye=0;ye<le.length;ye++)mh(le[ye]);for(var ve=0;ve<le.length;ve++)vh(le[ve]);for(var xe=0;xe<le.length;xe++)yh(le[xe]);for(var Ve=0;Ve<le.length;Ve++)Wa(le[Ve]);for(var st=0;st<le.length;st++)Vu(le[st])}function mh(ie){var le=ie.cm,ye=le.display;hd(le),ie.updateMaxLine&&Ki(le),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ye.viewFrom||ie.scrollToPos.to.line>=ye.viewTo)||ye.maxLineChanged&&le.options.lineWrapping,ie.update=ie.mustUpdate&&new Wu(le,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 le=ie.cm,ye=le.display;ie.updatedDisplay&&qr(le),ie.barMeasure=Io(le),ye.maxLineChanged&&!le.options.lineWrapping&&(ie.adjustWidthTo=Uu(le,ye.maxLine,ye.maxLine.text.length).left+3,le.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ye.scroller.clientWidth,ye.sizer.offsetLeft+ie.adjustWidthTo+Jo(le)+le.display.barWidth),ie.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+ie.adjustWidthTo-ss(le))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ye.input.prepareSelection())}function Wa(ie){var le=ie.cm;ie.adjustWidthTo!=null&&(le.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<le.doc.scrollLeft&&_l(le,Math.min(le.display.scroller.scrollLeft,ie.maxScrollLeft),!0),le.display.maxLineChanged=!1);var ye=ie.focus&&ie.focus==vt();ie.preparedSelection&&le.display.input.showSelection(ie.preparedSelection,ye),(ie.updatedDisplay||ie.startHeight!=le.doc.height)&&ds(le,ie.barMeasure),ie.updatedDisplay&&Mt(le,ie.barMeasure),ie.selectionChanged&&na(le),le.state.focused&&ie.updateInput&&le.display.input.reset(ie.typing),ye&&aa(ie.cm)}function Vu(ie){var le=ie.cm,ye=le.display,ve=le.doc;if(ie.updatedDisplay&&Ze(le,ie.update),ye.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),ie.scrollTop!=null&&$l(le,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&_l(le,ie.scrollLeft,!0,!0),ie.scrollToPos){var xe=Au(le,Rn(ve,ie.scrollToPos.from),Rn(ve,ie.scrollToPos.to),ie.scrollToPos.margin);Lc(le,xe)}var Ve=ie.maybeHiddenMarkers,st=ie.maybeUnhiddenMarkers;if(Ve)for(var xt=0;xt<Ve.length;++xt)Ve[xt].lines.length||Kt(Ve[xt],"hide");if(st)for(var Et=0;Et<st.length;++Et)st[Et].lines.length&&Kt(st[Et],"unhide");ye.wrapper.offsetHeight&&(ve.scrollTop=le.display.scroller.scrollTop),ie.changeObjs&&Kt(le,"changes",le,ie.changeObjs),ie.update&&ie.update.finish()}function ra(ie,le){if(ie.curOp)return le();$s(ie);try{return le()}finally{Ul(ie)}}function ms(ie,le){return function(){if(ie.curOp)return le.apply(ie,arguments);$s(ie);try{return le.apply(ie,arguments)}finally{Ul(ie)}}}function Ps(ie){return function(){if(this.curOp)return ie.apply(this,arguments);$s(this);try{return ie.apply(this,arguments)}finally{Ul(this)}}}function bs(ie){return function(){var le=this.cm;if(!le||le.curOp)return ie.apply(this,arguments);$s(le);try{return ie.apply(this,arguments)}finally{Ul(le)}}}function sc(ie,le){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(le,Bt(Is,ie))}function Is(ie){var le=ie.doc;if(!(le.highlightFrontier>=ie.display.viewTo)){var ye=+new Date+ie.options.workTime,ve=Wr(ie,le.highlightFrontier),xe=[];le.iter(ve.line,Math.min(le.first+le.size,ie.display.viewTo+500),function(Ve){if(ve.line>=ie.display.viewFrom){var st=Ve.styles,xt=Ve.text.length>ie.options.maxHighlightLength?Ri(le.mode,ve.state):null,Et=ln(ie,Ve,ve,!0);xt&&(ve.state=xt),Ve.styles=Et.styles;var _t=Ve.styleClasses,zn=Et.classes;zn?Ve.styleClasses=zn:_t&&(Ve.styleClasses=null);for(var qt=!st||st.length!=Ve.styles.length||_t!=zn&&(!_t||!zn||_t.bgClass!=zn.bgClass||_t.textClass!=zn.textClass),xi=0;!qt&&xi<st.length;++xi)qt=st[xi]!=Ve.styles[xi];qt&&xe.push(ve.line),Ve.stateAfter=ve.save(),ve.nextLine()}else Ve.text.length<=ie.options.maxHighlightLength&&pn(ie,Ve.text,ve),Ve.stateAfter=ve.line%5==0?ve.save():null,ve.nextLine();if(+new Date>ye)return sc(ie,ie.options.workDelay),!0}),le.highlightFrontier=ve.line,le.modeFrontier=Math.max(le.modeFrontier,ve.line),xe.length&&ra(ie,function(){for(var Ve=0;Ve<xe.length;Ve++)To(ie,xe[Ve],"text")})}}var Wu=function(ie,le,ye){var ve=ie.display;this.viewport=le,this.visible=Fo(ve,ie.doc,le),this.editorIsHidden=!ve.wrapper.offsetWidth,this.wrapperHeight=ve.wrapper.clientHeight,this.wrapperWidth=ve.wrapper.clientWidth,this.oldDisplayWidth=ss(ie),this.force=ye,this.dims=gl(ie),this.events=[]};Wu.prototype.signal=function(ie,le){bn(ie,le)&&this.events.push(arguments)},Wu.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Kt.apply(null,this.events[ie])};function hd(ie){var le=ie.display;!le.scrollbarsClipped&&le.scroller.offsetWidth&&(le.nativeBarWidth=le.scroller.offsetWidth-le.scroller.clientWidth,le.heightForcer.style.height=Jo(ie)+"px",le.sizer.style.marginBottom=-le.nativeBarWidth+"px",le.sizer.style.borderRightWidth=Jo(ie)+"px",le.scrollbarsClipped=!0)}function fd(ie){if(ie.hasFocus())return null;var le=vt();if(!le||!yt(ie.display.lineDiv,le))return null;var ye={activeElt:le};if(window.getSelection){var ve=window.getSelection();ve.anchorNode&&ve.extend&&yt(ie.display.lineDiv,ve.anchorNode)&&(ye.anchorNode=ve.anchorNode,ye.anchorOffset=ve.anchorOffset,ye.focusNode=ve.focusNode,ye.focusOffset=ve.focusOffset)}return ye}function el(ie){if(!(!ie||!ie.activeElt||ie.activeElt==vt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&yt(document.body,ie.anchorNode)&&yt(document.body,ie.focusNode))){var le=window.getSelection(),ye=document.createRange();ye.setEnd(ie.anchorNode,ie.anchorOffset),ye.collapse(!1),le.removeAllRanges(),le.addRange(ye),le.extend(ie.focusNode,ie.focusOffset)}}function we(ie,le){var ye=ie.display,ve=ie.doc;if(le.editorIsHidden)return ba(ie),!1;if(!le.force&&le.visible.from>=ye.viewFrom&&le.visible.to<=ye.viewTo&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo)&&ye.renderedView==ye.view&&Gs(ie)==0)return!1;En(ie)&&(ba(ie),le.dims=gl(ie));var xe=ve.first+ve.size,Ve=Math.max(le.visible.from-ie.options.viewportMargin,ve.first),st=Math.min(xe,le.visible.to+ie.options.viewportMargin);ye.viewFrom<Ve&&Ve-ye.viewFrom<20&&(Ve=Math.max(ve.first,ye.viewFrom)),ye.viewTo>st&&ye.viewTo-st<20&&(st=Math.min(xe,ye.viewTo)),Wn&&(Ve=Yn(ie.doc,Ve),st=Gn(ie.doc,st));var xt=Ve!=ye.viewFrom||st!=ye.viewTo||ye.lastWrapHeight!=le.wrapperHeight||ye.lastWrapWidth!=le.wrapperWidth;sa(ie,Ve,st),ye.viewOffset=Bi(Hn(ie.doc,ye.viewFrom)),ie.display.mover.style.top=ye.viewOffset+"px";var Et=Gs(ie);if(!xt&&Et==0&&!le.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var _t=fd(ie);return Et>4&&(ye.lineDiv.style.display="none"),ct(ie,ye.updateLineNumbers,le.dims),Et>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,el(_t),tt(ye.cursorDiv),tt(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,xt&&(ye.lastWrapHeight=le.wrapperHeight,ye.lastWrapWidth=le.wrapperWidth,sc(ie,400)),ye.updateLineNumbers=null,!0}function Ze(ie,le){for(var ye=le.viewport,ve=!0;;ve=!1){if(!ve||!ie.options.lineWrapping||le.oldDisplayWidth==ss(ie)){if(ye&&ye.top!=null&&(ye={top:Math.min(ie.doc.height+Wo(ie.display)-Os(ie),ye.top)}),le.visible=Fo(ie.display,ie.doc,ye),le.visible.from>=ie.display.viewFrom&&le.visible.to<=ie.display.viewTo)break}else ve&&(le.visible=Fo(ie.display,ie.doc,ye));if(!we(ie,le))break;qr(ie);var xe=Io(ie);Ja(ie),ds(ie,xe),Mt(ie,xe),le.force=!1}le.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(le.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function et(ie,le){var ye=new Wu(ie,le);if(we(ie,ye)){qr(ie),Ze(ie,ye);var ve=Io(ie);Ja(ie),ds(ie,ve),Mt(ie,ve),ye.finish()}}function ct(ie,le,ye){var ve=ie.display,xe=ie.options.lineNumbers,Ve=ve.lineDiv,st=Ve.firstChild;function xt(rr){var lr=rr.nextSibling;return ze&&he&&ie.display.currentWheelTarget==rr?rr.style.display="none":rr.parentNode.removeChild(rr),lr}for(var Et=ve.view,_t=ve.viewFrom,zn=0;zn<Et.length;zn++){var qt=Et[zn];if(!qt.hidden)if(!qt.node||qt.node.parentNode!=Ve){var xi=ho(ie,qt,_t,ye);Ve.insertBefore(xi,st)}else{for(;st!=qt.node;)st=xt(st);var hi=xe&&le!=null&&le<=_t&&qt.lineNumber;qt.changes&&(at(qt.changes,"gutter")>-1&&(hi=!1),ua(ie,qt,_t,ye)),hi&&(tt(qt.lineNumber),qt.lineNumber.appendChild(document.createTextNode(gi(ie.options,_t)))),st=qt.node.nextSibling}_t+=qt.size}for(;st;)st=xt(st)}function kt(ie){var le=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=le+"px"}function Mt(ie,le){ie.display.sizer.style.minHeight=le.docHeight+"px",ie.display.heightForcer.style.top=le.docHeight+"px",ie.display.gutters.style.height=le.docHeight+ie.display.barHeight+Jo(ie)+"px"}function tn(ie){var le=ie.display,ye=le.view;if(!(!le.alignWidgets&&(!le.gutters.firstChild||!ie.options.fixedGutter))){for(var ve=zu(le)-le.scroller.scrollLeft+ie.doc.scrollLeft,xe=le.gutters.offsetWidth,Ve=ve+"px",st=0;st<ye.length;st++)if(!ye[st].hidden){ie.options.fixedGutter&&(ye[st].gutter&&(ye[st].gutter.style.left=Ve),ye[st].gutterBackground&&(ye[st].gutterBackground.style.left=Ve));var xt=ye[st].alignable;if(xt)for(var Et=0;Et<xt.length;Et++)xt[Et].style.left=Ve}ie.options.fixedGutter&&(le.gutters.style.left=ve+xe+"px")}}function En(ie){if(!ie.options.lineNumbers)return!1;var le=ie.doc,ye=gi(ie.options,le.first+le.size-1),ve=ie.display;if(ye.length!=ve.lineNumChars){var xe=ve.measure.appendChild(Qe("div",[Qe("div",ye)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ve=xe.firstChild.offsetWidth,st=xe.offsetWidth-Ve;return ve.lineGutter.style.width="",ve.lineNumInnerWidth=Math.max(Ve,ve.lineGutter.offsetWidth-st)+1,ve.lineNumWidth=ve.lineNumInnerWidth+st,ve.lineNumChars=ve.lineNumInnerWidth?ye.length:-1,ve.lineGutter.style.width=ve.lineNumWidth+"px",kt(ie.display),!0}return!1}function vi(ie,le){for(var ye=[],ve=!1,xe=0;xe<ie.length;xe++){var Ve=ie[xe],st=null;if(typeof Ve!="string"&&(st=Ve.style,Ve=Ve.className),Ve=="CodeMirror-linenumbers")if(le)ve=!0;else continue;ye.push({className:Ve,style:st})}return le&&!ve&&ye.push({className:"CodeMirror-linenumbers",style:null}),ye}function bi(ie){var le=ie.gutters,ye=ie.gutterSpecs;tt(le),ie.lineGutter=null;for(var ve=0;ve<ye.length;++ve){var xe=ye[ve],Ve=xe.className,st=xe.style,xt=le.appendChild(Qe("div",null,"CodeMirror-gutter "+Ve));st&&(xt.style.cssText=st),Ve=="CodeMirror-linenumbers"&&(ie.lineGutter=xt,xt.style.width=(ie.lineNumWidth||1)+"px")}le.style.display=ye.length?"":"none",kt(ie)}function Xn(ie){bi(ie.display),Go(ie),tn(ie)}function Ui(ie,le,ye,ve){var xe=this;this.input=ye,xe.scrollbarFiller=Qe("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=Qe("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=lt("div",null,"CodeMirror-code"),xe.selectionDiv=Qe("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=Qe("div",null,"CodeMirror-cursors"),xe.measure=Qe("div",null,"CodeMirror-measure"),xe.lineMeasure=Qe("div",null,"CodeMirror-measure"),xe.lineSpace=lt("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var Ve=lt("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=Qe("div",[Ve],null,"position: relative"),xe.sizer=Qe("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=Qe("div",null,null,"position: absolute; height: "+Wt+"px; width: 1px;"),xe.gutters=Qe("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=Qe("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=Qe("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),He&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!ze&&!(oe&&ee)&&(xe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(xe.wrapper):ie(xe.wrapper)),xe.viewFrom=xe.viewTo=le.first,xe.reportedViewFrom=xe.reportedViewTo=le.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=vi(ve.gutters,ve.lineNumbers),bi(xe),ye.init(xe)}var Oi=0,ei=null;He?ei=-.53:oe?ei=15:Ke?ei=-.7:gt&&(ei=-1/3);function ro(ie){var le=ie.wheelDeltaX,ye=ie.wheelDeltaY;return le==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(le=ie.detail),ye==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ye=ie.detail:ye==null&&(ye=ie.wheelDelta),{x:le,y:ye}}function Eo(ie){var le=ro(ie);return le.x*=ei,le.y*=ei,le}function Mo(ie,le){var ye=ro(le),ve=ye.x,xe=ye.y,Ve=ie.display,st=Ve.scroller,xt=st.scrollWidth>st.clientWidth,Et=st.scrollHeight>st.clientHeight;if(ve&&xt||xe&&Et){if(xe&&he&&ze){e:for(var _t=le.target,zn=Ve.view;_t!=st;_t=_t.parentNode)for(var qt=0;qt<zn.length;qt++)if(zn[qt].node==_t){ie.display.currentWheelTarget=_t;break e}}if(ve&&!oe&&!Be&&ei!=null){xe&&Et&&Ll(ie,Math.max(0,st.scrollTop+xe*ei)),_l(ie,Math.max(0,st.scrollLeft+ve*ei)),(!xe||xe&&Et)&&jn(le),Ve.wheelStartX=null;return}if(xe&&ei!=null){var xi=xe*ei,hi=ie.doc.scrollTop,rr=hi+Ve.wrapper.clientHeight;xi<0?hi=Math.max(0,hi+xi-50):rr=Math.min(ie.doc.height,rr+xi+50),et(ie,{top:hi,bottom:rr})}Oi<20&&(Ve.wheelStartX==null?(Ve.wheelStartX=st.scrollLeft,Ve.wheelStartY=st.scrollTop,Ve.wheelDX=ve,Ve.wheelDY=xe,setTimeout(function(){if(Ve.wheelStartX!=null){var lr=st.scrollLeft-Ve.wheelStartX,fr=st.scrollTop-Ve.wheelStartY,Or=fr&&Ve.wheelDY&&fr/Ve.wheelDY||lr&&Ve.wheelDX&&lr/Ve.wheelDX;Ve.wheelStartX=Ve.wheelStartY=null,Or&&(ei=(ei*Oi+Or)/(Oi+1),++Oi)}},200)):(Ve.wheelDX+=ve,Ve.wheelDY+=xe))}}var jr=function(ie,le){this.ranges=ie,this.primIndex=le};jr.prototype.primary=function(){return this.ranges[this.primIndex]},jr.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var le=0;le<this.ranges.length;le++){var ye=this.ranges[le],ve=ie.ranges[le];if(!Fi(ye.anchor,ve.anchor)||!Fi(ye.head,ve.head))return!1}return!0},jr.prototype.deepCopy=function(){for(var ie=[],le=0;le<this.ranges.length;le++)ie[le]=new ao(Cn(this.ranges[le].anchor),Cn(this.ranges[le].head));return new jr(ie,this.primIndex)},jr.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},jr.prototype.contains=function(ie,le){le||(le=ie);for(var ye=0;ye<this.ranges.length;ye++){var ve=this.ranges[ye];if(pi(le,ve.from())>=0&&pi(ie,ve.to())<=0)return ye}return-1};var ao=function(ie,le){this.anchor=ie,this.head=le};ao.prototype.from=function(){return Pi(this.anchor,this.head)},ao.prototype.to=function(){return je(this.anchor,this.head)},ao.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function po(ie,le,ye){var ve=ie&&ie.options.selectionsMayTouch,xe=le[ye];le.sort(function(xi,hi){return pi(xi.from(),hi.from())}),ye=at(le,xe);for(var Ve=1;Ve<le.length;Ve++){var st=le[Ve],xt=le[Ve-1],Et=pi(xt.to(),st.from());if(ve&&!st.empty()?Et>0:Et>=0){var _t=Pi(xt.from(),st.from()),zn=je(xt.to(),st.to()),qt=xt.empty()?st.from()==st.head:xt.from()==xt.head;Ve<=ye&&--ye,le.splice(--Ve,2,new ao(qt?zn:_t,qt?_t:zn))}}return new jr(le,ye)}function wa(ie,le){return new jr([new ao(ie,le||ie)],0)}function Ca(ie){return ie.text?zt(ie.from.line+ie.text.length-1,Zt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Pr(ie,le){if(pi(ie,le.from)<0)return ie;if(pi(ie,le.to)<=0)return Ca(le);var ye=ie.line+le.text.length-(le.to.line-le.from.line)-1,ve=ie.ch;return ie.line==le.to.line&&(ve+=Ca(le).ch-le.to.ch),zt(ye,ve)}function Aa(ie,le){for(var ye=[],ve=0;ve<ie.sel.ranges.length;ve++){var xe=ie.sel.ranges[ve];ye.push(new ao(Pr(xe.anchor,le),Pr(xe.head,le)))}return po(ie.cm,ye,ie.sel.primIndex)}function $a(ie,le,ye){return ie.line==le.line?zt(ye.line,ie.ch-le.ch+ye.ch):zt(ye.line+(ie.line-le.line),ie.ch)}function pa(ie,le,ye){for(var ve=[],xe=zt(ie.first,0),Ve=xe,st=0;st<le.length;st++){var xt=le[st],Et=$a(xt.from,xe,Ve),_t=$a(Ca(xt),xe,Ve);if(xe=xt.to,Ve=_t,ye=="around"){var zn=ie.sel.ranges[st],qt=pi(zn.head,zn.anchor)<0;ve[st]=new ao(qt?_t:Et,qt?Et:_t)}else ve[st]=new ao(Et,Et)}return new jr(ve,ie.sel.primIndex)}function io(ie){ie.doc.mode=sn(ie.options,ie.doc.modeOption),tl(ie)}function tl(ie){ie.doc.iter(function(le){le.stateAfter&&(le.stateAfter=null),le.styles&&(le.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,sc(ie,100),ie.state.modeGen++,ie.curOp&&Go(ie)}function Ra(ie,le){return le.from.ch==0&&le.to.ch==0&&Zt(le.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function ko(ie,le,ye,ve){function xe($r){return ye?ye[$r]:null}function Ve($r,Vr,oo){gr($r,Vr,oo,ve),Fr($r,"change",$r,le)}function st($r,Vr){for(var oo=[],No=$r;No<Vr;++No)oo.push(new sr(_t[No],xe(No),ve));return oo}var xt=le.from,Et=le.to,_t=le.text,zn=Hn(ie,xt.line),qt=Hn(ie,Et.line),xi=Zt(_t),hi=xe(_t.length-1),rr=Et.line-xt.line;if(le.full)ie.insert(0,st(0,_t.length)),ie.remove(_t.length,ie.size-_t.length);else if(Ra(ie,le)){var lr=st(0,_t.length-1);Ve(qt,qt.text,hi),rr&&ie.remove(xt.line,rr),lr.length&&ie.insert(xt.line,lr)}else if(zn==qt)if(_t.length==1)Ve(zn,zn.text.slice(0,xt.ch)+xi+zn.text.slice(Et.ch),hi);else{var fr=st(1,_t.length-1);fr.push(new sr(xi+zn.text.slice(Et.ch),hi,ve)),Ve(zn,zn.text.slice(0,xt.ch)+_t[0],xe(0)),ie.insert(xt.line+1,fr)}else if(_t.length==1)Ve(zn,zn.text.slice(0,xt.ch)+_t[0]+qt.text.slice(Et.ch),xe(0)),ie.remove(xt.line+1,rr);else{Ve(zn,zn.text.slice(0,xt.ch)+_t[0],xe(0)),Ve(qt,xi+qt.text.slice(Et.ch),hi);var Or=st(1,_t.length-1);rr>1&&ie.remove(xt.line+1,rr-1),ie.insert(xt.line+1,Or)}Fr(ie,"change",ie,le)}function Po(ie,le,ye){function ve(xe,Ve,st){if(xe.linked)for(var xt=0;xt<xe.linked.length;++xt){var Et=xe.linked[xt];if(Et.doc!=Ve){var _t=st&&Et.sharedHist;ye&&!_t||(le(Et.doc,_t),ve(Et.doc,xe,_t))}}}ve(ie,null,!0)}function ea(ie,le){if(le.cm)throw new Error("This document is already in use.");ie.doc=le,le.cm=ie,no(ie),io(ie),Za(ie),ie.options.lineWrapping||Ki(ie),ie.options.mode=le.modeOption,Go(ie)}function Za(ie){(ie.doc.direction=="rtl"?St:We)(ie.display.lineDiv,"CodeMirror-rtl")}function Ms(ie){ra(ie,function(){Za(ie),Go(ie)})}function Vs(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 Il(ie,le){var ye={from:Cn(le.from),to:Ca(le),text:Di(ie,le.from,le.to)};return fu(ie,ye,le.from.line,le.to.line+1),Po(ie,function(ve){return fu(ve,ye,le.from.line,le.to.line+1)},!0),ye}function Ci(ie){for(;ie.length;){var le=Zt(ie);if(le.ranges)ie.pop();else break}}function nl(ie,le){if(le)return Ci(ie.done),Zt(ie.done);if(ie.done.length&&!Zt(ie.done).ranges)return Zt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Zt(ie.done)}function Hl(ie,le,ye,ve){var xe=ie.history;xe.undone.length=0;var Ve=+new Date,st,xt;if((xe.lastOp==ve||xe.lastOrigin==le.origin&&le.origin&&(le.origin.charAt(0)=="+"&&xe.lastModTime>Ve-(ie.cm?ie.cm.options.historyEventDelay:500)||le.origin.charAt(0)=="*"))&&(st=nl(xe,xe.lastOp==ve)))xt=Zt(st.changes),pi(le.from,le.to)==0&&pi(le.from,xt.to)==0?xt.to=Ca(le):st.changes.push(Il(ie,le));else{var Et=Zt(xe.done);for((!Et||!Et.ranges)&&eu(ie.sel,xe.done),st={changes:[Il(ie,le)],generation:xe.generation},xe.done.push(st);xe.done.length>xe.undoDepth;)xe.done.shift(),xe.done[0].ranges||xe.done.shift()}xe.done.push(ye),xe.generation=++xe.maxGeneration,xe.lastModTime=xe.lastSelTime=Ve,xe.lastOp=xe.lastSelOp=ve,xe.lastOrigin=xe.lastSelOrigin=le.origin,xt||Kt(ie,"historyAdded")}function Mi(ie,le,ye,ve){var xe=le.charAt(0);return xe=="*"||xe=="+"&&ye.ranges.length==ve.ranges.length&&ye.somethingSelected()==ve.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Ws(ie,le,ye,ve){var xe=ie.history,Ve=ve&&ve.origin;ye==xe.lastSelOp||Ve&&xe.lastSelOrigin==Ve&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==Ve||Mi(ie,Ve,Zt(xe.done),le))?xe.done[xe.done.length-1]=le:eu(le,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=Ve,xe.lastSelOp=ye,ve&&ve.clearRedo!==!1&&Ci(xe.undone)}function eu(ie,le){var ye=Zt(le);ye&&ye.ranges&&ye.equals(ie)||le.push(ie)}function fu(ie,le,ye,ve){var xe=le["spans_"+ie.id],Ve=0;ie.iter(Math.max(ie.first,ye),Math.min(ie.first+ie.size,ve),function(st){st.markedSpans&&((xe||(xe=le["spans_"+ie.id]={}))[Ve]=st.markedSpans),++Ve})}function As(ie){if(!ie)return null;for(var le,ye=0;ye<ie.length;++ye)ie[ye].marker.explicitlyCleared?le||(le=ie.slice(0,ye)):le&&le.push(ie[ye]);return le?le.length?le:null:ie}function Ka(ie,le){var ye=le["spans_"+ie.id];if(!ye)return null;for(var ve=[],xe=0;xe<le.text.length;++xe)ve.push(As(ye[xe]));return ve}function zl(ie,le){var ye=Ka(ie,le),ve=So(ie,le);if(!ye)return ve;if(!ve)return ye;for(var xe=0;xe<ye.length;++xe){var Ve=ye[xe],st=ve[xe];if(Ve&&st)e:for(var xt=0;xt<st.length;++xt){for(var Et=st[xt],_t=0;_t<Ve.length;++_t)if(Ve[_t].marker==Et.marker)continue e;Ve.push(Et)}else st&&(ye[xe]=st)}return ye}function Bs(ie,le,ye){for(var ve=[],xe=0;xe<ie.length;++xe){var Ve=ie[xe];if(Ve.ranges){ve.push(ye?jr.prototype.deepCopy.call(Ve):Ve);continue}var st=Ve.changes,xt=[];ve.push({changes:xt});for(var Et=0;Et<st.length;++Et){var _t=st[Et],zn=void 0;if(xt.push({from:_t.from,to:_t.to,text:_t.text}),le)for(var qt in _t)(zn=qt.match(/^spans_(\d+)$/))&&at(le,Number(zn[1]))>-1&&(Zt(xt)[qt]=_t[qt],delete _t[qt])}}return ve}function Nu(ie,le,ye,ve){if(ve){var xe=ie.anchor;if(ye){var Ve=pi(le,xe)<0;Ve!=pi(ye,xe)<0?(xe=le,le=ye):Ve!=pi(le,ye)<0&&(le=ye)}return new ao(xe,le)}else return new ao(ye||le,le)}function Zu(ie,le,ye,ve,xe){xe==null&&(xe=ie.cm&&(ie.cm.display.shift||ie.extend)),ge(ie,new jr([Nu(ie.sel.primary(),le,ye,xe)],0),ve)}function pd(ie,le,ye){for(var ve=[],xe=ie.cm&&(ie.cm.display.shift||ie.extend),Ve=0;Ve<ie.sel.ranges.length;Ve++)ve[Ve]=Nu(ie.sel.ranges[Ve],le[Ve],null,xe);var st=po(ie.cm,ve,ie.sel.primIndex);ge(ie,st,ye)}function tu(ie,le,ye,ve){var xe=ie.sel.ranges.slice(0);xe[le]=ye,ge(ie,po(ie.cm,xe,ie.sel.primIndex),ve)}function lc(ie,le,ye,ve){ge(ie,wa(le,ye),ve)}function Hd(ie,le,ye){var ve={ranges:le.ranges,update:function(xe){this.ranges=[];for(var Ve=0;Ve<xe.length;Ve++)this.ranges[Ve]=new ao(Rn(ie,xe[Ve].anchor),Rn(ie,xe[Ve].head))},origin:ye&&ye.origin};return Kt(ie,"beforeSelectionChange",ie,ve),ie.cm&&Kt(ie.cm,"beforeSelectionChange",ie.cm,ve),ve.ranges!=le.ranges?po(ie.cm,ve.ranges,ve.ranges.length-1):le}function ce(ie,le,ye){var ve=ie.history.done,xe=Zt(ve);xe&&xe.ranges?(ve[ve.length-1]=le,$e(ie,le,ye)):ge(ie,le,ye)}function ge(ie,le,ye){$e(ie,le,ye),Ws(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ye)}function $e(ie,le,ye){(bn(ie,"beforeSelectionChange")||ie.cm&&bn(ie.cm,"beforeSelectionChange"))&&(le=Hd(ie,le,ye));var ve=ye&&ye.bias||(pi(le.primary().head,ie.sel.primary().head)<0?-1:1);Jt(ie,Qi(ie,le,ve,!0)),!(ye&&ye.scroll===!1)&&ie.cm&&Nl(ie.cm)}function Jt(ie,le){le.equals(ie.sel)||(ie.sel=le,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,Vn(ie.cm)),Fr(ie,"cursorActivity",ie))}function Si(ie){Jt(ie,Qi(ie,ie.sel,null,!1))}function Qi(ie,le,ye,ve){for(var xe,Ve=0;Ve<le.ranges.length;Ve++){var st=le.ranges[Ve],xt=le.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ve],Et=lo(ie,st.anchor,xt&&xt.anchor,ye,ve),_t=lo(ie,st.head,xt&&xt.head,ye,ve);(xe||Et!=st.anchor||_t!=st.head)&&(xe||(xe=le.ranges.slice(0,Ve)),xe[Ve]=new ao(Et,_t))}return xe?po(ie.cm,xe,le.primIndex):le}function hr(ie,le,ye,ve,xe){var Ve=Hn(ie,le.line);if(Ve.markedSpans)for(var st=0;st<Ve.markedSpans.length;++st){var xt=Ve.markedSpans[st],Et=xt.marker,_t="selectLeft"in Et?!Et.selectLeft:Et.inclusiveLeft,zn="selectRight"in Et?!Et.selectRight:Et.inclusiveRight;if((xt.from==null||(_t?xt.from<=le.ch:xt.from<le.ch))&&(xt.to==null||(zn?xt.to>=le.ch:xt.to>le.ch))){if(xe&&(Kt(Et,"beforeCursorEnter"),Et.explicitlyCleared))if(Ve.markedSpans){--st;continue}else break;if(!Et.atomic)continue;if(ye){var qt=Et.find(ve<0?1:-1),xi=void 0;if((ve<0?zn:_t)&&(qt=Ao(ie,qt,-ve,qt&&qt.line==le.line?Ve:null)),qt&&qt.line==le.line&&(xi=pi(qt,ye))&&(ve<0?xi<0:xi>0))return hr(ie,qt,le,ve,xe)}var hi=Et.find(ve<0?-1:1);return(ve<0?_t:zn)&&(hi=Ao(ie,hi,ve,hi.line==le.line?Ve:null)),hi?hr(ie,hi,le,ve,xe):null}}return le}function lo(ie,le,ye,ve,xe){var Ve=ve||1,st=hr(ie,le,ye,Ve,xe)||!xe&&hr(ie,le,ye,Ve,!0)||hr(ie,le,ye,-Ve,xe)||!xe&&hr(ie,le,ye,-Ve,!0);return st||(ie.cantEdit=!0,zt(ie.first,0))}function Ao(ie,le,ye,ve){return ye<0&&le.ch==0?le.line>ie.first?Rn(ie,zt(le.line-1)):null:ye>0&&le.ch==(ve||Hn(ie,le.line)).text.length?le.line<ie.first+ie.size-1?zt(le.line+1,0):null:new zt(le.line,le.ch+ye)}function Wi(ie){ie.setSelection(zt(ie.firstLine(),0),zt(ie.lastLine()),Tt)}function Ur(ie,le,ye){var ve={canceled:!1,from:le.from,to:le.to,text:le.text,origin:le.origin,cancel:function(){return ve.canceled=!0}};return ye&&(ve.update=function(xe,Ve,st,xt){xe&&(ve.from=Rn(ie,xe)),Ve&&(ve.to=Rn(ie,Ve)),st&&(ve.text=st),xt!==void 0&&(ve.origin=xt)}),Kt(ie,"beforeChange",ie,ve),ie.cm&&Kt(ie.cm,"beforeChange",ie.cm,ve),ve.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:ve.from,to:ve.to,text:ve.text,origin:ve.origin}}function Oo(ie,le,ye){if(ie.cm){if(!ie.cm.curOp)return ms(ie.cm,Oo)(ie,le,ye);if(ie.cm.state.suppressEdits)return}if(!((bn(ie,"beforeChange")||ie.cm&&bn(ie.cm,"beforeChange"))&&(le=Ur(ie,le,!0),!le))){var ve=_r&&!ye&&ci(ie,le.from,le.to);if(ve)for(var xe=ve.length-1;xe>=0;--xe)ia(ie,{from:ve[xe].from,to:ve[xe].to,text:xe?[""]:le.text,origin:le.origin});else ia(ie,le)}}function ia(ie,le){if(!(le.text.length==1&&le.text[0]==""&&pi(le.from,le.to)==0)){var ye=Aa(ie,le);Hl(ie,le,ye,ie.cm?ie.cm.curOp.id:NaN),ku(ie,le,ye,So(ie,le));var ve=[];Po(ie,function(xe,Ve){!Ve&&at(ve,xe.history)==-1&&(Mc(xe.history,le),ve.push(xe.history)),ku(xe,le,null,So(xe,le))})}}function Oa(ie,le,ye){var ve=ie.cm&&ie.cm.state.suppressEdits;if(!(ve&&!ye)){for(var xe=ie.history,Ve,st=ie.sel,xt=le=="undo"?xe.done:xe.undone,Et=le=="undo"?xe.undone:xe.done,_t=0;_t<xt.length&&(Ve=xt[_t],!(ye?Ve.ranges&&!Ve.equals(ie.sel):!Ve.ranges));_t++);if(_t!=xt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(Ve=xt.pop(),Ve.ranges){if(eu(Ve,Et),ye&&!Ve.equals(ie.sel)){ge(ie,Ve,{clearRedo:!1});return}st=Ve}else if(ve){xt.push(Ve);return}else break;var zn=[];eu(st,Et),Et.push({changes:zn,generation:xe.generation}),xe.generation=Ve.generation||++xe.maxGeneration;for(var qt=bn(ie,"beforeChange")||ie.cm&&bn(ie.cm,"beforeChange"),xi=function(lr){var fr=Ve.changes[lr];if(fr.origin=le,qt&&!Ur(ie,fr,!1))return xt.length=0,{};zn.push(Il(ie,fr));var Or=lr?Aa(ie,fr):Zt(xt);ku(ie,fr,Or,zl(ie,fr)),!lr&&ie.cm&&ie.cm.scrollIntoView({from:fr.from,to:Ca(fr)});var $r=[];Po(ie,function(Vr,oo){!oo&&at($r,Vr.history)==-1&&(Mc(Vr.history,fr),$r.push(Vr.history)),ku(Vr,fr,null,zl(Vr,fr))})},hi=Ve.changes.length-1;hi>=0;--hi){var rr=xi(hi);if(rr)return rr.v}}}}function pu(ie,le){if(le!=0&&(ie.first+=le,ie.sel=new jr(In(ie.sel.ranges,function(xe){return new ao(zt(xe.anchor.line+le,xe.anchor.ch),zt(xe.head.line+le,xe.head.ch))}),ie.sel.primIndex),ie.cm)){Go(ie.cm,ie.first,ie.first-le,le);for(var ye=ie.cm.display,ve=ye.viewFrom;ve<ye.viewTo;ve++)To(ie.cm,ve,"gutter")}}function ku(ie,le,ye,ve){if(ie.cm&&!ie.cm.curOp)return ms(ie.cm,ku)(ie,le,ye,ve);if(le.to.line<ie.first){pu(ie,le.text.length-1-(le.to.line-le.from.line));return}if(!(le.from.line>ie.lastLine())){if(le.from.line<ie.first){var xe=le.text.length-1-(ie.first-le.from.line);pu(ie,xe),le={from:zt(ie.first,0),to:zt(le.to.line+xe,le.to.ch),text:[Zt(le.text)],origin:le.origin}}var Ve=ie.lastLine();le.to.line>Ve&&(le={from:le.from,to:zt(Ve,Hn(ie,Ve).text.length),text:[le.text[0]],origin:le.origin}),le.removed=Di(ie,le.from,le.to),ye||(ye=Aa(ie,le)),ie.cm?uc(ie.cm,le,ve):ko(ie,le,ve),$e(ie,ye,Tt),ie.cantEdit&&lo(ie,zt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function uc(ie,le,ye){var ve=ie.doc,xe=ie.display,Ve=le.from,st=le.to,xt=!1,Et=Ve.line;ie.options.lineWrapping||(Et=Ct(vn(Hn(ve,Ve.line))),ve.iter(Et,st.line+1,function(hi){if(hi==xe.maxLine)return xt=!0,!0})),ve.sel.contains(le.from,le.to)>-1&&Vn(ie),ko(ve,le,ye,ya(ie)),ie.options.lineWrapping||(ve.iter(Et,Ve.line+le.text.length,function(hi){var rr=dr(hi);rr>xe.maxLineLength&&(xe.maxLine=hi,xe.maxLineLength=rr,xe.maxLineChanged=!0,xt=!1)}),xt&&(ie.curOp.updateMaxLine=!0)),br(ve,Ve.line),sc(ie,400);var _t=le.text.length-(st.line-Ve.line)-1;le.full?Go(ie):Ve.line==st.line&&le.text.length==1&&!Ra(ie.doc,le)?To(ie,Ve.line,"text"):Go(ie,Ve.line,st.line+1,_t);var zn=bn(ie,"changes"),qt=bn(ie,"change");if(qt||zn){var xi={from:Ve,to:st,text:le.text,removed:le.removed,origin:le.origin};qt&&Fr(ie,"change",ie,xi),zn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(xi)}ie.display.selForContextMenu=null}function Ku(ie,le,ye,ve,xe){var Ve;ve||(ve=ye),pi(ve,ye)<0&&(Ve=[ve,ye],ye=Ve[0],ve=Ve[1]),typeof le=="string"&&(le=ie.splitLines(le)),Oo(ie,{from:ye,to:ve,text:le,origin:xe})}function Sl(ie,le,ye,ve){ye<ie.line?ie.line+=ve:le<ie.line&&(ie.line=le,ie.ch=0)}function nu(ie,le,ye,ve){for(var xe=0;xe<ie.length;++xe){var Ve=ie[xe],st=!0;if(Ve.ranges){Ve.copied||(Ve=ie[xe]=Ve.deepCopy(),Ve.copied=!0);for(var xt=0;xt<Ve.ranges.length;xt++)Sl(Ve.ranges[xt].anchor,le,ye,ve),Sl(Ve.ranges[xt].head,le,ye,ve);continue}for(var Et=0;Et<Ve.changes.length;++Et){var _t=Ve.changes[Et];if(ye<_t.from.line)_t.from=zt(_t.from.line+ve,_t.from.ch),_t.to=zt(_t.to.line+ve,_t.to.ch);else if(le<=_t.to.line){st=!1;break}}st||(ie.splice(0,xe+1),xe=0)}}function Mc(ie,le){var ye=le.from.line,ve=le.to.line,xe=le.text.length-(ve-ye)-1;nu(ie.done,ye,ve,xe),nu(ie.undone,ye,ve,xe)}function jl(ie,le,ye,ve){var xe=le,Ve=le;return typeof le=="number"?Ve=Hn(ie,Ai(ie,le)):xe=Ct(le),xe==null?null:(ve(Ve,xe)&&ie.cm&&To(ie.cm,xe,ye),Ve)}function Sh(ie){this.lines=ie,this.parent=null;for(var le=0,ye=0;ye<ie.length;++ye)ie[ye].parent=this,le+=ie[ye].height;this.height=le}Sh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,le){for(var ye=ie,ve=ie+le;ye<ve;++ye){var xe=this.lines[ye];this.height-=xe.height,wr(xe),Fr(xe,"delete")}this.lines.splice(ie,le)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,le,ye){this.height+=ye,this.lines=this.lines.slice(0,ie).concat(le).concat(this.lines.slice(ie));for(var ve=0;ve<le.length;++ve)le[ve].parent=this},iterN:function(ie,le,ye){for(var ve=ie+le;ie<ve;++ie)if(ye(this.lines[ie]))return!0}};function hs(ie){this.children=ie;for(var le=0,ye=0,ve=0;ve<ie.length;++ve){var xe=ie[ve];le+=xe.chunkSize(),ye+=xe.height,xe.parent=this}this.size=le,this.height=ye,this.parent=null}hs.prototype={chunkSize:function(){return this.size},removeInner:function(ie,le){this.size-=le;for(var ye=0;ye<this.children.length;++ye){var ve=this.children[ye],xe=ve.chunkSize();if(ie<xe){var Ve=Math.min(le,xe-ie),st=ve.height;if(ve.removeInner(ie,Ve),this.height-=st-ve.height,xe==Ve&&(this.children.splice(ye--,1),ve.parent=null),(le-=Ve)==0)break;ie=0}else ie-=xe}if(this.size-le<25&&(this.children.length>1||!(this.children[0]instanceof Sh))){var xt=[];this.collapse(xt),this.children=[new Sh(xt)],this.children[0].parent=this}},collapse:function(ie){for(var le=0;le<this.children.length;++le)this.children[le].collapse(ie)},insertInner:function(ie,le,ye){this.size+=le.length,this.height+=ye;for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ve=xe.chunkSize();if(ie<=Ve){if(xe.insertInner(ie,le,ye),xe.lines&&xe.lines.length>50){for(var st=xe.lines.length%25+25,xt=st;xt<xe.lines.length;){var Et=new Sh(xe.lines.slice(xt,xt+=25));xe.height-=Et.height,this.children.splice(++ve,0,Et),Et.parent=this}xe.lines=xe.lines.slice(0,st),this.maybeSpill()}break}ie-=Ve}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var le=ie.children.splice(ie.children.length-5,5),ye=new hs(le);if(ie.parent){ie.size-=ye.size,ie.height-=ye.height;var xe=at(ie.parent.children,ie);ie.parent.children.splice(xe+1,0,ye)}else{var ve=new hs(ie.children);ve.parent=ie,ie.children=[ve,ye],ie=ve}ye.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,le,ye){for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ve=xe.chunkSize();if(ie<Ve){var st=Math.min(le,Ve-ie);if(xe.iterN(ie,st,ye))return!0;if((le-=st)==0)break;ie=0}else ie-=Ve}}};var Jc=function(ie,le,ye){if(ye)for(var ve in ye)ye.hasOwnProperty(ve)&&(this[ve]=ye[ve]);this.doc=ie,this.node=le};Jc.prototype.clear=function(){var ie=this.doc.cm,le=this.line.widgets,ye=this.line,ve=Ct(ye);if(!(ve==null||!le)){for(var xe=0;xe<le.length;++xe)le[xe]==this&&le.splice(xe--,1);le.length||(ye.widgets=null);var Ve=va(this);mi(ye,Math.max(0,ye.height-Ve)),ie&&(ra(ie,function(){Qg(ie,ye,-Ve),To(ie,ve,"widget")}),Fr(ie,"lineWidgetCleared",ie,this,ve))}},Jc.prototype.changed=function(){var ie=this,le=this.height,ye=this.doc.cm,ve=this.line;this.height=null;var xe=va(this)-le;xe&&(en(this.doc,ve)||mi(ve,ve.height+xe),ye&&ra(ye,function(){ye.curOp.forceUpdate=!0,Qg(ye,ve,xe),Fr(ye,"lineWidgetChanged",ye,ie,Ct(ve))}))},mt(Jc);function Qg(ie,le,ye){Bi(le)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Ec(ie,ye)}function Nf(ie,le,ye,ve){var xe=new Jc(ie,ye,ve),Ve=ie.cm;return Ve&&xe.noHScroll&&(Ve.display.alignWidgets=!0),jl(ie,le,"widget",function(st){var xt=st.widgets||(st.widgets=[]);if(xe.insertAt==null?xt.push(xe):xt.splice(Math.min(xt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=st,Ve&&!en(ie,st)){var Et=Bi(st)<ie.scrollTop;mi(st,st.height+va(xe)),Et&&Ec(Ve,xe.height),Ve.curOp.forceUpdate=!0}return!0}),Ve&&Fr(Ve,"lineWidgetAdded",Ve,xe,typeof le=="number"?le:Ct(le)),xe}var Jg=0,Tn=function(ie,le){this.lines=[],this.type=le,this.doc=ie,this.id=++Jg};Tn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,le=ie&&!ie.curOp;if(le&&$s(ie),bn(this,"clear")){var ye=this.find();ye&&Fr(this,"clear",ye.from,ye.to)}for(var ve=null,xe=null,Ve=0;Ve<this.lines.length;++Ve){var st=this.lines[Ve],xt=Nr(st.markedSpans,this);ie&&!this.collapsed?To(ie,Ct(st),"text"):ie&&(xt.to!=null&&(xe=Ct(st)),xt.from!=null&&(ve=Ct(st))),st.markedSpans=Sr(st.markedSpans,xt),xt.from==null&&this.collapsed&&!en(this.doc,st)&&ie&&mi(st,Qa(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Et=0;Et<this.lines.length;++Et){var _t=vn(this.lines[Et]),zn=dr(_t);zn>ie.display.maxLineLength&&(ie.display.maxLine=_t,ie.display.maxLineLength=zn,ie.display.maxLineChanged=!0)}ve!=null&&ie&&this.collapsed&&Go(ie,ve,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Si(ie.doc)),ie&&Fr(ie,"markerCleared",ie,this,ve,xe),le&&Ul(ie),this.parent&&this.parent.clear()}},Tn.prototype.find=function(ie,le){ie==null&&this.type=="bookmark"&&(ie=1);for(var ye,ve,xe=0;xe<this.lines.length;++xe){var Ve=this.lines[xe],st=Nr(Ve.markedSpans,this);if(st.from!=null&&(ye=zt(le?Ve:Ct(Ve),st.from),ie==-1))return ye;if(st.to!=null&&(ve=zt(le?Ve:Ct(Ve),st.to),ie==1))return ve}return ye&&{from:ye,to:ve}},Tn.prototype.changed=function(){var ie=this,le=this.find(-1,!0),ye=this,ve=this.doc.cm;!le||!ve||ra(ve,function(){var xe=le.line,Ve=Ct(le.line),st=Rs(ve,Ve);if(st&&(ac(st),ve.curOp.selectionChanged=ve.curOp.forceUpdate=!0),ve.curOp.updateMaxLine=!0,!en(ye.doc,xe)&&ye.height!=null){var xt=ye.height;ye.height=null;var Et=va(ye)-xt;Et&&mi(xe,xe.height+Et)}Fr(ve,"markerChanged",ve,ie)})},Tn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var le=this.doc.cm.curOp;(!le.maybeHiddenMarkers||at(le.maybeHiddenMarkers,this)==-1)&&(le.maybeUnhiddenMarkers||(le.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Tn.prototype.detachLine=function(ie){if(this.lines.splice(at(this.lines,ie),1),!this.lines.length&&this.doc.cm){var le=this.doc.cm.curOp;(le.maybeHiddenMarkers||(le.maybeHiddenMarkers=[])).push(this)}},mt(Tn);function zd(ie,le,ye,ve,xe){if(ve&&ve.shared)return qg(ie,le,ye,ve,xe);if(ie.cm&&!ie.cm.curOp)return ms(ie.cm,zd)(ie,le,ye,ve,xe);var Ve=new Tn(ie,xe),st=pi(le,ye);if(ve&&cn(ve,Ve,!1),st>0||st==0&&Ve.clearWhenEmpty!==!1)return Ve;if(Ve.replacedWith&&(Ve.collapsed=!0,Ve.widgetNode=lt("span",[Ve.replacedWith],"CodeMirror-widget"),ve.handleMouseEvents||Ve.widgetNode.setAttribute("cm-ignore-events","true"),ve.insertLeft&&(Ve.widgetNode.insertLeft=!0)),Ve.collapsed){if(gn(ie,le.line,le,ye,Ve)||le.line!=ye.line&&gn(ie,ye.line,le,ye,Ve))throw new Error("Inserting collapsed marker partially overlapping an existing one");$n()}Ve.addToHistory&&Hl(ie,{from:le,to:ye,origin:"markText"},ie.sel,NaN);var xt=le.line,Et=ie.cm,_t;if(ie.iter(xt,ye.line+1,function(qt){Et&&Ve.collapsed&&!Et.options.lineWrapping&&vn(qt)==Et.display.maxLine&&(_t=!0),Ve.collapsed&&xt!=le.line&&mi(qt,0),Xr(qt,new ar(Ve,xt==le.line?le.ch:null,xt==ye.line?ye.ch:null)),++xt}),Ve.collapsed&&ie.iter(le.line,ye.line+1,function(qt){en(ie,qt)&&mi(qt,0)}),Ve.clearOnEnter&&Ot(Ve,"beforeCursorEnter",function(){return Ve.clear()}),Ve.readOnly&&(xr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ve.collapsed&&(Ve.id=++Jg,Ve.atomic=!0),Et){if(_t&&(Et.curOp.updateMaxLine=!0),Ve.collapsed)Go(Et,le.line,ye.line+1);else if(Ve.className||Ve.startStyle||Ve.endStyle||Ve.css||Ve.attributes||Ve.title)for(var zn=le.line;zn<=ye.line;zn++)To(Et,zn,"text");Ve.atomic&&Si(Et.doc),Fr(Et,"markerAdded",Et,Ve)}return Ve}var Oc=function(ie,le){this.markers=ie,this.primary=le;for(var ye=0;ye<ie.length;++ye)ie[ye].parent=this};Oc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Fr(this,"clear")}},Oc.prototype.find=function(ie,le){return this.primary.find(ie,le)},mt(Oc);function qg(ie,le,ye,ve,xe){ve=cn(ve),ve.shared=!1;var Ve=[zd(ie,le,ye,ve,xe)],st=Ve[0],xt=ve.widgetNode;return Po(ie,function(Et){xt&&(ve.widgetNode=xt.cloneNode(!0)),Ve.push(zd(Et,Rn(Et,le),Rn(Et,ye),ve,xe));for(var _t=0;_t<Et.linked.length;++_t)if(Et.linked[_t].isParent)return;st=Zt(Ve)}),new Oc(Ve,st)}function Ap(ie){return ie.findMarks(zt(ie.first,0),ie.clipPos(zt(ie.lastLine())),function(le){return le.parent})}function $g(ie,le){for(var ye=0;ye<le.length;ye++){var ve=le[ye],xe=ve.find(),Ve=ie.clipPos(xe.from),st=ie.clipPos(xe.to);if(pi(Ve,st)){var xt=zd(ie,Ve,st,ve.primary,ve.primary.type);ve.markers.push(xt),xt.parent=ve}}}function Np(ie){for(var le=function(ve){var xe=ie[ve],Ve=[xe.primary.doc];Po(xe.primary.doc,function(Et){return Ve.push(Et)});for(var st=0;st<xe.markers.length;st++){var xt=xe.markers[st];at(Ve,xt.doc)==-1&&(xt.parent=null,xe.markers.splice(st--,1))}},ye=0;ye<ie.length;ye++)le(ye)}var iv=0,El=function(ie,le,ye,ve,xe){if(!(this instanceof El))return new El(ie,le,ye,ve,xe);ye==null&&(ye=0),hs.call(this,[new Sh([new sr("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var Ve=zt(ye,0);this.sel=wa(Ve),this.history=new Vs(null),this.id=++iv,this.modeOption=le,this.lineSep=ve,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),ko(this,{from:Ve,to:Ve,text:ie}),ge(this,wa(Ve),Tt)};El.prototype=Oe(hs.prototype,{constructor:El,iter:function(ie,le,ye){ye?this.iterN(ie-this.first,le-ie,ye):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,le){for(var ye=0,ve=0;ve<le.length;++ve)ye+=le[ve].height;this.insertInner(ie-this.first,le,ye)},remove:function(ie,le){this.removeInner(ie-this.first,le)},getValue:function(ie){var le=Yi(this,this.first,this.first+this.size);return ie===!1?le:le.join(ie||this.lineSeparator())},setValue:bs(function(ie){var le=zt(this.first,0),ye=this.first+this.size-1;Oo(this,{from:le,to:zt(ye,Hn(this,ye).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&kl(this.cm,0,0),ge(this,wa(le),Tt)}),replaceRange:function(ie,le,ye,ve){le=Rn(this,le),ye=ye?Rn(this,ye):le,Ku(this,ie,le,ye,ve)},getRange:function(ie,le,ye){var ve=Di(this,Rn(this,ie),Rn(this,le));return ye===!1?ve:ve.join(ye||this.lineSeparator())},getLine:function(ie){var le=this.getLineHandle(ie);return le&&le.text},getLineHandle:function(ie){if(fi(this,ie))return Hn(this,ie)},getLineNumber:function(ie){return Ct(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Hn(this,ie)),vn(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Rn(this,ie)},getCursor:function(ie){var le=this.sel.primary(),ye;return ie==null||ie=="head"?ye=le.head:ie=="anchor"?ye=le.anchor:ie=="end"||ie=="to"||ie===!1?ye=le.to():ye=le.from(),ye},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:bs(function(ie,le,ye){lc(this,Rn(this,typeof ie=="number"?zt(ie,le||0):ie),null,ye)}),setSelection:bs(function(ie,le,ye){lc(this,Rn(this,ie),Rn(this,le||ie),ye)}),extendSelection:bs(function(ie,le,ye){Zu(this,Rn(this,ie),le&&Rn(this,le),ye)}),extendSelections:bs(function(ie,le){pd(this,_i(this,ie),le)}),extendSelectionsBy:bs(function(ie,le){var ye=In(this.sel.ranges,ie);pd(this,_i(this,ye),le)}),setSelections:bs(function(ie,le,ye){if(ie.length){for(var ve=[],xe=0;xe<ie.length;xe++)ve[xe]=new ao(Rn(this,ie[xe].anchor),Rn(this,ie[xe].head));le==null&&(le=Math.min(ie.length-1,this.sel.primIndex)),ge(this,po(this.cm,ve,le),ye)}}),addSelection:bs(function(ie,le,ye){var ve=this.sel.ranges.slice(0);ve.push(new ao(Rn(this,ie),Rn(this,le||ie))),ge(this,po(this.cm,ve,ve.length-1),ye)}),getSelection:function(ie){for(var le=this.sel.ranges,ye,ve=0;ve<le.length;ve++){var xe=Di(this,le[ve].from(),le[ve].to());ye=ye?ye.concat(xe):xe}return ie===!1?ye:ye.join(ie||this.lineSeparator())},getSelections:function(ie){for(var le=[],ye=this.sel.ranges,ve=0;ve<ye.length;ve++){var xe=Di(this,ye[ve].from(),ye[ve].to());ie!==!1&&(xe=xe.join(ie||this.lineSeparator())),le[ve]=xe}return le},replaceSelection:function(ie,le,ye){for(var ve=[],xe=0;xe<this.sel.ranges.length;xe++)ve[xe]=ie;this.replaceSelections(ve,le,ye||"+input")},replaceSelections:bs(function(ie,le,ye){for(var ve=[],xe=this.sel,Ve=0;Ve<xe.ranges.length;Ve++){var st=xe.ranges[Ve];ve[Ve]={from:st.from(),to:st.to(),text:this.splitLines(ie[Ve]),origin:ye}}for(var xt=le&&le!="end"&&pa(this,ve,le),Et=ve.length-1;Et>=0;Et--)Oo(this,ve[Et]);xt?ce(this,xt):this.cm&&Nl(this.cm)}),undo:bs(function(){Oa(this,"undo")}),redo:bs(function(){Oa(this,"redo")}),undoSelection:bs(function(){Oa(this,"undo",!0)}),redoSelection:bs(function(){Oa(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,le=0,ye=0,ve=0;ve<ie.done.length;ve++)ie.done[ve].ranges||++le;for(var xe=0;xe<ie.undone.length;xe++)ie.undone[xe].ranges||++ye;return{undo:le,redo:ye}},clearHistory:function(){var ie=this;this.history=new Vs(this.history.maxGeneration),Po(this,function(le){return le.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:Bs(this.history.done),undone:Bs(this.history.undone)}},setHistory:function(ie){var le=this.history=new Vs(this.history.maxGeneration);le.done=Bs(ie.done.slice(0),null,!0),le.undone=Bs(ie.undone.slice(0),null,!0)},setGutterMarker:bs(function(ie,le,ye){return jl(this,ie,"gutter",function(ve){var xe=ve.gutterMarkers||(ve.gutterMarkers={});return xe[le]=ye,!ye&&De(xe)&&(ve.gutterMarkers=null),!0})}),clearGutter:bs(function(ie){var le=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[ie]&&jl(le,ye,"gutter",function(){return ye.gutterMarkers[ie]=null,De(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(ie){var le;if(typeof ie=="number"){if(!fi(this,ie)||(le=ie,ie=Hn(this,ie),!ie))return null}else if(le=Ct(ie),le==null)return null;return{line:le,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:bs(function(ie,le,ye){return jl(this,ie,le=="gutter"?"gutter":"class",function(ve){var xe=le=="text"?"textClass":le=="background"?"bgClass":le=="gutter"?"gutterClass":"wrapClass";if(!ve[xe])ve[xe]=ye;else{if(Ne(ye).test(ve[xe]))return!1;ve[xe]+=" "+ye}return!0})}),removeLineClass:bs(function(ie,le,ye){return jl(this,ie,le=="gutter"?"gutter":"class",function(ve){var xe=le=="text"?"textClass":le=="background"?"bgClass":le=="gutter"?"gutterClass":"wrapClass",Ve=ve[xe];if(Ve)if(ye==null)ve[xe]=null;else{var st=Ve.match(Ne(ye));if(!st)return!1;var xt=st.index+st[0].length;ve[xe]=Ve.slice(0,st.index)+(!st.index||xt==Ve.length?"":" ")+Ve.slice(xt)||null}else return!1;return!0})}),addLineWidget:bs(function(ie,le,ye){return Nf(this,ie,le,ye)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,le,ye){return zd(this,Rn(this,ie),Rn(this,le),ye,ye&&ye.type||"range")},setBookmark:function(ie,le){var ye={replacedWith:le&&(le.nodeType==null?le.widget:le),insertLeft:le&&le.insertLeft,clearWhenEmpty:!1,shared:le&&le.shared,handleMouseEvents:le&&le.handleMouseEvents};return ie=Rn(this,ie),zd(this,ie,ie,ye,"bookmark")},findMarksAt:function(ie){ie=Rn(this,ie);var le=[],ye=Hn(this,ie.line).markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve){var xe=ye[ve];(xe.from==null||xe.from<=ie.ch)&&(xe.to==null||xe.to>=ie.ch)&&le.push(xe.marker.parent||xe.marker)}return le},findMarks:function(ie,le,ye){ie=Rn(this,ie),le=Rn(this,le);var ve=[],xe=ie.line;return this.iter(ie.line,le.line+1,function(Ve){var st=Ve.markedSpans;if(st)for(var xt=0;xt<st.length;xt++){var Et=st[xt];!(Et.to!=null&&xe==ie.line&&ie.ch>=Et.to||Et.from==null&&xe!=ie.line||Et.from!=null&&xe==le.line&&Et.from>=le.ch)&&(!ye||ye(Et.marker))&&ve.push(Et.marker.parent||Et.marker)}++xe}),ve},getAllMarks:function(){var ie=[];return this.iter(function(le){var ye=le.markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve)ye[ve].from!=null&&ie.push(ye[ve].marker)}),ie},posFromIndex:function(ie){var le,ye=this.first,ve=this.lineSeparator().length;return this.iter(function(xe){var Ve=xe.text.length+ve;if(Ve>ie)return le=ie,!0;ie-=Ve,++ye}),Rn(this,zt(ye,le))},indexFromPos:function(ie){ie=Rn(this,ie);var le=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ye=this.lineSeparator().length;return this.iter(this.first,ie.line,function(ve){le+=ve.text.length+ye}),le},copy:function(ie){var le=new El(Yi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return le.scrollTop=this.scrollTop,le.scrollLeft=this.scrollLeft,le.sel=this.sel,le.extend=!1,ie&&(le.history.undoDepth=this.history.undoDepth,le.setHistory(this.getHistory())),le},linkedDoc:function(ie){ie||(ie={});var le=this.first,ye=this.first+this.size;ie.from!=null&&ie.from>le&&(le=ie.from),ie.to!=null&&ie.to<ye&&(ye=ie.to);var ve=new El(Yi(this,le,ye),ie.mode||this.modeOption,le,this.lineSep,this.direction);return ie.sharedHist&&(ve.history=this.history),(this.linked||(this.linked=[])).push({doc:ve,sharedHist:ie.sharedHist}),ve.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],$g(ve,Ap(this)),ve},unlinkDoc:function(ie){if(ie instanceof da&&(ie=ie.doc),this.linked)for(var le=0;le<this.linked.length;++le){var ye=this.linked[le];if(ye.doc==ie){this.linked.splice(le,1),ie.unlinkDoc(this),Np(Ap(this));break}}if(ie.history==this.history){var ve=[ie.id];Po(ie,function(xe){return ve.push(xe.id)},!0),ie.history=new Vs(null),ie.history.done=Bs(this.history.done,ve),ie.history.undone=Bs(this.history.undone,ve)}},iterLinkedDocs:function(ie){Po(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):li(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:bs(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(le){return le.order=null}),this.cm&&Ms(this.cm))})}),El.prototype.eachLine=El.prototype.iter;var Yh=0;function kp(ie){var le=this;if(nm(le),!(un(le,ie)||fa(le.display,ie))){jn(ie),He&&(Yh=+new Date);var ye=us(le,ie,!0),ve=ie.dataTransfer.files;if(!(!ye||le.isReadOnly()))if(ve&&ve.length&&window.FileReader&&window.File)for(var xe=ve.length,Ve=Array(xe),st=0,xt=function(){++st==xe&&ms(le,function(){ye=Rn(le.doc,ye);var hi={from:ye,to:ye,text:le.doc.splitLines(Ve.filter(function(rr){return rr!=null}).join(le.doc.lineSeparator())),origin:"paste"};Oo(le.doc,hi),ce(le.doc,wa(Rn(le.doc,ye),Rn(le.doc,Ca(hi))))})()},Et=function(hi,rr){if(le.options.allowDropFileTypes&&at(le.options.allowDropFileTypes,hi.type)==-1){xt();return}var lr=new FileReader;lr.onerror=function(){return xt()},lr.onload=function(){var fr=lr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(fr)){xt();return}Ve[rr]=fr,xt()},lr.readAsText(hi)},_t=0;_t<ve.length;_t++)Et(ve[_t],_t);else{if(le.state.draggingText&&le.doc.sel.contains(ye)>-1){le.state.draggingText(ie),setTimeout(function(){return le.display.input.focus()},20);return}try{var zn=ie.dataTransfer.getData("Text");if(zn){var qt;if(le.state.draggingText&&!le.state.draggingText.copy&&(qt=le.listSelections()),$e(le.doc,wa(ye,ye)),qt)for(var xi=0;xi<qt.length;++xi)Ku(le.doc,"",qt[xi].anchor,qt[xi].head,"drag");le.replaceSelection(zn,"around","paste"),le.display.input.focus()}}catch(hi){}}}}function em(ie,le){if(He&&(!ie.state.draggingText||+new Date-Yh<100)){yi(le);return}if(!(un(ie,le)||fa(ie.display,le))&&(le.dataTransfer.setData("Text",ie.getSelection()),le.dataTransfer.effectAllowed="copyMove",le.dataTransfer.setDragImage&&!gt)){var ye=Qe("img",null,null,"position: fixed; left: 0; top: 0;");ye.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Be&&(ye.width=ye.height=1,ie.display.wrapper.appendChild(ye),ye._top=ye.offsetTop),le.dataTransfer.setDragImage(ye,0,0),Be&&ye.parentNode.removeChild(ye)}}function tm(ie,le){var ye=us(ie,le);if(ye){var ve=document.createDocumentFragment();Ko(ie,ye,ve),ie.display.dragCursor||(ie.display.dragCursor=Qe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Ye(ie.display.dragCursor,ve)}}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 le=document.getElementsByClassName("CodeMirror"),ye=[],ve=0;ve<le.length;ve++){var xe=le[ve].CodeMirror;xe&&ye.push(xe)}ye.length&&ye[0].operation(function(){for(var Ve=0;Ve<ye.length;Ve++)ie(ye[Ve])})}}var Lp=!1;function Lu(){Lp||(Eh(),Lp=!0)}function Eh(){var ie;Ot(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,im(Ip)},100))}),Ot(window,"blur",function(){return im(ju)})}function Ip(ie){var le=ie.display;le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.scrollbarsClipped=!1,ie.setSize()}for(var Rc={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++)Rc[Xh+48]=Rc[Xh+96]=String(Xh);for(var kf=65;kf<=90;kf++)Rc[kf]=String.fromCharCode(kf);for(var Qh=1;Qh<=12;Qh++)Rc[Qh+111]=Rc[Qh+63235]="F"+Qh;var gu={};gu.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"},gu.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"},gu.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"},gu.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"]},gu.default=he?gu.macDefault:gu.pcDefault;function Mp(ie){var le=ie.split(/-(?!$)/);ie=le[le.length-1];for(var ye,ve,xe,Ve,st=0;st<le.length-1;st++){var xt=le[st];if(/^(cmd|meta|m)$/i.test(xt))Ve=!0;else if(/^a(lt)?$/i.test(xt))ye=!0;else if(/^(c|ctrl|control)$/i.test(xt))ve=!0;else if(/^s(hift)?$/i.test(xt))xe=!0;else throw new Error("Unrecognized modifier name: "+xt)}return ye&&(ie="Alt-"+ie),ve&&(ie="Ctrl-"+ie),Ve&&(ie="Cmd-"+ie),xe&&(ie="Shift-"+ie),ie}function Op(ie){var le={};for(var ye in ie)if(ie.hasOwnProperty(ye)){var ve=ie[ye];if(/^(name|fallthrough|(de|at)tach)$/.test(ye))continue;if(ve=="..."){delete ie[ye];continue}for(var xe=In(ye.split(" "),Mp),Ve=0;Ve<xe.length;Ve++){var st=void 0,xt=void 0;Ve==xe.length-1?(xt=xe.join(" "),st=ve):(xt=xe.slice(0,Ve+1).join(" "),st="...");var Et=le[xt];if(!Et)le[xt]=st;else if(Et!=st)throw new Error("Inconsistent bindings for "+xt)}delete ie[ye]}for(var _t in le)ie[_t]=le[_t];return ie}function Yu(ie,le,ye,ve){le=jd(le);var xe=le.call?le.call(ie,ve):le[ie];if(xe===!1)return"nothing";if(xe==="...")return"multi";if(xe!=null&&ye(xe))return"handled";if(le.fallthrough){if(Object.prototype.toString.call(le.fallthrough)!="[object Array]")return Yu(ie,le.fallthrough,ye,ve);for(var Ve=0;Ve<le.fallthrough.length;Ve++){var st=Yu(ie,le.fallthrough[Ve],ye,ve);if(st)return st}}}function bh(ie){var le=typeof ie=="string"?ie:Rc[ie.keyCode];return le=="Ctrl"||le=="Alt"||le=="Shift"||le=="Mod"}function Rp(ie,le,ye){var ve=ie;return le.altKey&&ve!="Alt"&&(ie="Alt-"+ie),(Ee?le.metaKey:le.ctrlKey)&&ve!="Ctrl"&&(ie="Ctrl-"+ie),(Ee?le.ctrlKey:le.metaKey)&&ve!="Mod"&&(ie="Cmd-"+ie),!ye&&le.shiftKey&&ve!="Shift"&&(ie="Shift-"+ie),ie}function rm(ie,le){if(Be&&ie.keyCode==34&&ie.char)return!1;var ye=Rc[ie.keyCode];return ye==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ye=ie.code),Rp(ye,ie,le))}function jd(ie){return typeof ie=="string"?gu[ie]:ie}function mu(ie,le){for(var ye=ie.doc.sel.ranges,ve=[],xe=0;xe<ye.length;xe++){for(var Ve=le(ye[xe]);ve.length&&pi(Ve.from,Zt(ve).to)<=0;){var st=ve.pop();if(pi(st.from,Ve.from)<0){Ve.from=st.from;break}}ve.push(Ve)}ra(ie,function(){for(var xt=ve.length-1;xt>=0;xt--)Ku(ie.doc,"",ve[xt].from,ve[xt].to,"+delete");Nl(ie)})}function Dp(ie,le,ye){var ve=An(ie.text,le+ye,ye);return ve<0||ve>ie.text.length?null:ve}function Ns(ie,le,ye){var ve=Dp(ie,le.ch,ye);return ve==null?null:new zt(le.line,ve,ye<0?"after":"before")}function Jh(ie,le,ye,ve,xe){if(ie){le.doc.direction=="rtl"&&(xe=-xe);var Ve=Pn(ye,le.doc.direction);if(Ve){var st=xe<0?Zt(Ve):Ve[0],xt=xe<0==(st.level==1),Et=xt?"after":"before",_t;if(st.level>0||le.doc.direction=="rtl"){var zn=Js(le,ye);_t=xe<0?ye.text.length-1:0;var qt=Ds(le,zn,_t).top;_t=Zn(function(xi){return Ds(le,zn,xi).top==qt},xe<0==(st.level==1)?st.from:st.to-1,_t),Et=="before"&&(_t=Dp(ye,_t,1))}else _t=xe<0?st.to:st.from;return new zt(ve,_t,Et)}}return new zt(ve,xe<0?ye.text.length:0,xe<0?"before":"after")}function Lf(ie,le,ye,ve){var xe=Pn(le,ie.doc.direction);if(!xe)return Ns(le,ye,ve);ye.ch>=le.text.length?(ye.ch=le.text.length,ye.sticky="before"):ye.ch<=0&&(ye.ch=0,ye.sticky="after");var Ve=Gt(xe,ye.ch,ye.sticky),st=xe[Ve];if(ie.doc.direction=="ltr"&&st.level%2==0&&(ve>0?st.to>ye.ch:st.from<ye.ch))return Ns(le,ye,ve);var xt=function(Or,$r){return Dp(le,Or instanceof zt?Or.ch:Or,$r)},Et,_t=function(Or){return ie.options.lineWrapping?(Et=Et||Js(ie,le),Xa(ie,le,Et,Or)):{begin:0,end:le.text.length}},zn=_t(ye.sticky=="before"?xt(ye,-1):ye.ch);if(ie.doc.direction=="rtl"||st.level==1){var qt=st.level==1==ve<0,xi=xt(ye,qt?1:-1);if(xi!=null&&(qt?xi<=st.to&&xi<=zn.end:xi>=st.from&&xi>=zn.begin)){var hi=qt?"before":"after";return new zt(ye.line,xi,hi)}}var rr=function(Or,$r,Vr){for(var oo=function(es,Ks){return Ks?new zt(ye.line,xt(es,1),"before"):new zt(ye.line,es,"after")};Or>=0&&Or<xe.length;Or+=$r){var No=xe[Or],Gr=$r>0==(No.level!=1),Xo=Gr?Vr.begin:xt(Vr.end,-1);if(No.from<=Xo&&Xo<No.to||(Xo=Gr?No.from:xt(No.to,-1),Vr.begin<=Xo&&Xo<Vr.end))return oo(Xo,Gr)}},lr=rr(Ve+ve,ve,zn);if(lr)return lr;var fr=ve>0?zn.end:xt(zn.begin,-1);return fr!=null&&!(ve>0&&fr==le.text.length)&&(lr=rr(ve>0?0:xe.length-1,ve,_t(fr)),lr)?lr:null}var gd={selectAll:Wi,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Tt)},killLine:function(ie){return mu(ie,function(le){if(le.empty()){var ye=Hn(ie.doc,le.head.line).text.length;return le.head.ch==ye&&le.head.line<ie.lastLine()?{from:le.head,to:zt(le.head.line+1,0)}:{from:le.head,to:zt(le.head.line,ye)}}else return{from:le.from(),to:le.to()}})},deleteLine:function(ie){return mu(ie,function(le){return{from:zt(le.from().line,0),to:Rn(ie.doc,zt(le.to().line+1,0))}})},delLineLeft:function(ie){return mu(ie,function(le){return{from:zt(le.from().line,0),to:le.from()}})},delWrappedLineLeft:function(ie){return mu(ie,function(le){var ye=ie.charCoords(le.head,"div").top+5,ve=ie.coordsChar({left:0,top:ye},"div");return{from:ve,to:le.from()}})},delWrappedLineRight:function(ie){return mu(ie,function(le){var ye=ie.charCoords(le.head,"div").top+5,ve=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ye},"div");return{from:le.from(),to:ve}})},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(zt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(zt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(le){return xh(ie,le.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(le){return Fp(ie,le.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(le){return wh(ie,le.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(le){var ye=ie.cursorCoords(le.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ye},"div")},nn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(le){var ye=ie.cursorCoords(le.head,"div").top+5;return ie.coordsChar({left:0,top:ye},"div")},nn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(le){var ye=ie.cursorCoords(le.head,"div").top+5,ve=ie.coordsChar({left:0,top:ye},"div");return ve.ch<ie.getLine(ve.line).search(/\S/)?Fp(ie,le.head):ve},nn)},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 le=[],ye=ie.listSelections(),ve=ie.options.tabSize,xe=0;xe<ye.length;xe++){var Ve=ye[xe].from(),st=pt(ie.getLine(Ve.line),Ve.ch,ve);le.push(At(ve-st%ve))}ie.replaceSelections(le)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return ra(ie,function(){for(var le=ie.listSelections(),ye=[],ve=0;ve<le.length;ve++)if(le[ve].empty()){var xe=le[ve].head,Ve=Hn(ie.doc,xe.line).text;if(Ve){if(xe.ch==Ve.length&&(xe=new zt(xe.line,xe.ch-1)),xe.ch>0)xe=new zt(xe.line,xe.ch+1),ie.replaceRange(Ve.charAt(xe.ch-1)+Ve.charAt(xe.ch-2),zt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>ie.doc.first){var st=Hn(ie.doc,xe.line-1).text;st&&(xe=new zt(xe.line,1),ie.replaceRange(Ve.charAt(0)+ie.doc.lineSeparator()+st.charAt(st.length-1),zt(xe.line-1,st.length-1),xe,"+transpose"))}}ye.push(new ao(xe,xe))}ie.setSelections(ye)})},newlineAndIndent:function(ie){return ra(ie,function(){for(var le=ie.listSelections(),ye=le.length-1;ye>=0;ye--)ie.replaceRange(ie.doc.lineSeparator(),le[ye].anchor,le[ye].head,"+input");le=ie.listSelections();for(var ve=0;ve<le.length;ve++)ie.indentLine(le[ve].from().line,null,!0);Nl(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function xh(ie,le){var ye=Hn(ie.doc,le),ve=vn(ye);return ve!=ye&&(le=Ct(ve)),Jh(!0,ie,ve,le,1)}function wh(ie,le){var ye=Hn(ie.doc,le),ve=Bn(ye);return ve!=ye&&(le=Ct(ve)),Jh(!0,ie,ye,le,-1)}function Fp(ie,le){var ye=xh(ie,le.line),ve=Hn(ie.doc,ye.line),xe=Pn(ve,ie.doc.direction);if(!xe||xe[0].level==0){var Ve=Math.max(ye.ch,ve.text.search(/\S/)),st=le.line==ye.line&&le.ch<=Ve&&le.ch;return zt(ye.line,st?0:Ve,ye.sticky)}return ye}function Ch(ie,le,ye){if(typeof le=="string"&&(le=gd[le],!le))return!1;ie.display.input.ensurePolled();var ve=ie.display.shift,xe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ye&&(ie.display.shift=!1),xe=le(ie)!=rn}finally{ie.display.shift=ve,ie.state.suppressEdits=!1}return xe}function Bp(ie,le,ye){for(var ve=0;ve<ie.state.keyMaps.length;ve++){var xe=Yu(le,ie.state.keyMaps[ve],ye,ie);if(xe)return xe}return ie.options.extraKeys&&Yu(le,ie.options.extraKeys,ye,ie)||Yu(le,ie.options.keyMap,ye,ie)}var Dc=new ut;function Gd(ie,le,ye,ve){var xe=ie.state.keySeq;if(xe){if(bh(le))return"handled";if(/\'$/.test(le)?ie.state.keySeq=null:Dc.set(50,function(){ie.state.keySeq==xe&&(ie.state.keySeq=null,ie.display.input.reset())}),If(ie,xe+" "+le,ye,ve))return!0}return If(ie,le,ye,ve)}function If(ie,le,ye,ve){var xe=Bp(ie,le,ve);return xe=="multi"&&(ie.state.keySeq=le),xe=="handled"&&Fr(ie,"keyHandled",ie,le,ye),(xe=="handled"||xe=="multi")&&(jn(ye),na(ie)),!!xe}function Mf(ie,le){var ye=rm(le,!0);return ye?le.shiftKey&&!ie.state.keySeq?Gd(ie,"Shift-"+ye,le,function(ve){return Ch(ie,ve,!0)})||Gd(ie,ye,le,function(ve){if(typeof ve=="string"?/^go[A-Z]/.test(ve):ve.motion)return Ch(ie,ve)}):Gd(ie,ye,le,function(ve){return Ch(ie,ve)}):!1}function Of(ie,le,ye){return Gd(ie,"'"+ye+"'",le,function(ve){return Ch(ie,ve,!0)})}var Vd=null;function _p(ie){var le=this;if(!(ie.target&&ie.target!=le.display.input.getField())&&(le.curOp.focus=vt(),!un(le,ie))){He&&Te<11&&ie.keyCode==27&&(ie.returnValue=!1);var ye=ie.keyCode;le.display.shift=ye==16||ie.shiftKey;var ve=Mf(le,ie);Be&&(Vd=ve?ye:null,!ve&&ye==88&&!ii&&(he?ie.metaKey:ie.ctrlKey)&&le.replaceSelection("",null,"cut")),oe&&!he&&!ve&&ye==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ye==18&&!/\bCodeMirror-crosshair\b/.test(le.display.lineDiv.className)&&Up(le)}}function Up(ie){var le=ie.display.lineDiv;St(le,"CodeMirror-crosshair");function ye(ve){(ve.keyCode==18||!ve.altKey)&&(We(le,"CodeMirror-crosshair"),Ht(document,"keyup",ye),Ht(document,"mouseover",ye))}Ot(document,"keyup",ye),Ot(document,"mouseover",ye)}function Hp(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),un(this,ie)}function bc(ie){var le=this;if(!(ie.target&&ie.target!=le.display.input.getField())&&!(fa(le.display,ie)||un(le,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ye=ie.keyCode,ve=ie.charCode;if(Be&&ye==Vd){Vd=null,jn(ie);return}if(!(Be&&(!ie.which||ie.which<10)&&Mf(le,ie))){var xe=String.fromCharCode(ve==null?ye:ve);xe!="\b"&&(Of(le,ie,xe)||le.display.input.onKeyPress(ie))}}}var om=400,zp=function(ie,le,ye){this.time=ie,this.pos=le,this.button=ye};zp.prototype.compare=function(ie,le,ye){return this.time+om>ie&&pi(le,this.pos)==0&&ye==this.button};var Th,Wd;function jp(ie,le){var ye=+new Date;return Wd&&Wd.compare(ye,ie,le)?(Th=Wd=null,"triple"):Th&&Th.compare(ye,ie,le)?(Wd=new zp(ye,ie,le),Th=null,"double"):(Th=new zp(ye,ie,le),Wd=null,"single")}function xc(ie){var le=this,ye=le.display;if(!(un(le,ie)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=ie.shiftKey,fa(ye,ie)){ze||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!Ff(le,ie)){var ve=us(le,ie),xe=kn(ie),Ve=ve?jp(ve,xe):"single";window.focus(),xe==1&&le.state.selectingText&&le.state.selectingText(ie),!(ve&&Gp(le,xe,ve,Ve,ie))&&(xe==1?ve?am(le,ve,Ve,ie):Vi(ie)==ye.scroller&&jn(ie):xe==2?(ve&&Zu(le.doc,ve),setTimeout(function(){return ye.input.focus()},20)):xe==3&&(Pe?le.display.input.onContextMenu(ie):Sa(le)))}}}function Gp(ie,le,ye,ve,xe){var Ve="Click";return ve=="double"?Ve="Double"+Ve:ve=="triple"&&(Ve="Triple"+Ve),Ve=(le==1?"Left":le==2?"Middle":"Right")+Ve,Gd(ie,Rp(Ve,xe),xe,function(st){if(typeof st=="string"&&(st=gd[st]),!st)return!1;var xt=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),xt=st(ie,ye)!=rn}finally{ie.state.suppressEdits=!1}return xt})}function Rf(ie,le,ye){var ve=ie.getOption("configureMouse"),xe=ve?ve(ie,le,ye):{};if(xe.unit==null){var Ve=ue?ye.shiftKey&&ye.metaKey:ye.altKey;xe.unit=Ve?"rectangle":le=="single"?"char":le=="double"?"word":"line"}return(xe.extend==null||ie.doc.extend)&&(xe.extend=ie.doc.extend||ye.shiftKey),xe.addNew==null&&(xe.addNew=he?ye.metaKey:ye.ctrlKey),xe.moveOnDrag==null&&(xe.moveOnDrag=!(he?ye.altKey:ye.ctrlKey)),xe}function am(ie,le,ye,ve){He?setTimeout(Bt(aa,ie),0):ie.curOp.focus=vt();var xe=Rf(ie,ye,ve),Ve=ie.doc.sel,st;ie.options.dragDrop&&Vt&&!ie.isReadOnly()&&ye=="single"&&(st=Ve.contains(le))>-1&&(pi((st=Ve.ranges[st]).from(),le)<0||le.xRel>0)&&(pi(st.to(),le)>0||le.xRel<0)?Vp(ie,ve,le,xe):rv(ie,ve,le,xe)}function Vp(ie,le,ye,ve){var xe=ie.display,Ve=!1,st=ms(ie,function(_t){ze&&(xe.scroller.draggable=!1),ie.state.draggingText=!1,Ht(xe.wrapper.ownerDocument,"mouseup",st),Ht(xe.wrapper.ownerDocument,"mousemove",xt),Ht(xe.scroller,"dragstart",Et),Ht(xe.scroller,"drop",st),Ve||(jn(_t),ve.addNew||Zu(ie.doc,ye,null,null,ve.extend),ze&&!gt||He&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),xt=function(_t){Ve=Ve||Math.abs(le.clientX-_t.clientX)+Math.abs(le.clientY-_t.clientY)>=10},Et=function(){return Ve=!0};ze&&(xe.scroller.draggable=!0),ie.state.draggingText=st,st.copy=!ve.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Ot(xe.wrapper.ownerDocument,"mouseup",st),Ot(xe.wrapper.ownerDocument,"mousemove",xt),Ot(xe.scroller,"dragstart",Et),Ot(xe.scroller,"drop",st),Sa(ie),setTimeout(function(){return xe.input.focus()},20)}function Wp(ie,le,ye){if(ye=="char")return new ao(le,le);if(ye=="word")return ie.findWordAt(le);if(ye=="line")return new ao(zt(le.line,0),Rn(ie.doc,zt(le.line+1,0)));var ve=ye(ie,le);return new ao(ve.from,ve.to)}function rv(ie,le,ye,ve){var xe=ie.display,Ve=ie.doc;jn(le);var st,xt,Et=Ve.sel,_t=Et.ranges;if(ve.addNew&&!ve.extend?(xt=Ve.sel.contains(ye),xt>-1?st=_t[xt]:st=new ao(ye,ye)):(st=Ve.sel.primary(),xt=Ve.sel.primIndex),ve.unit=="rectangle")ve.addNew||(st=new ao(ye,ye)),ye=us(ie,le,!0,!0),xt=-1;else{var zn=Wp(ie,ye,ve.unit);ve.extend?st=Nu(st,zn.anchor,zn.head,ve.extend):st=zn}ve.addNew?xt==-1?(xt=_t.length,ge(Ve,po(ie,_t.concat([st]),xt),{scroll:!1,origin:"*mouse"})):_t.length>1&&_t[xt].empty()&&ve.unit=="char"&&!ve.extend?(ge(Ve,po(ie,_t.slice(0,xt).concat(_t.slice(xt+1)),0),{scroll:!1,origin:"*mouse"}),Et=Ve.sel):tu(Ve,xt,st,Xt):(xt=0,ge(Ve,new jr([st],0),Xt),Et=Ve.sel);var qt=ye;function xi(Vr){if(pi(qt,Vr)!=0)if(qt=Vr,ve.unit=="rectangle"){for(var oo=[],No=ie.options.tabSize,Gr=pt(Hn(Ve,ye.line).text,ye.ch,No),Xo=pt(Hn(Ve,Vr.line).text,Vr.ch,No),es=Math.min(Gr,Xo),Ks=Math.max(Gr,Xo),fs=Math.min(ye.line,Vr.line),ru=Math.min(ie.lastLine(),Math.max(ye.line,Vr.line));fs<=ru;fs++){var Ml=Hn(Ve,fs).text,Us=Nn(Ml,es,No);es==Ks?oo.push(new ao(zt(fs,Us),zt(fs,Us))):Ml.length>Us&&oo.push(new ao(zt(fs,Us),zt(fs,Nn(Ml,Ks,No))))}oo.length||oo.push(new ao(ye,ye)),ge(Ve,po(ie,Et.ranges.slice(0,xt).concat(oo),xt),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Vr)}else{var vu=st,bl=Wp(ie,Vr,ve.unit),Hs=vu.anchor,ha;pi(bl.anchor,Hs)>0?(ha=bl.head,Hs=Pi(vu.from(),bl.anchor)):(ha=bl.anchor,Hs=je(vu.to(),bl.head));var vs=Et.ranges.slice(0);vs[xt]=sm(ie,new ao(Rn(Ve,Hs),ha)),ge(Ve,po(ie,vs,xt),Xt)}}var hi=xe.wrapper.getBoundingClientRect(),rr=0;function lr(Vr){var oo=++rr,No=us(ie,Vr,!0,ve.unit=="rectangle");if(No)if(pi(No,qt)!=0){ie.curOp.focus=vt(),xi(No);var Gr=Fo(xe,Ve);(No.line>=Gr.to||No.line<Gr.from)&&setTimeout(ms(ie,function(){rr==oo&&lr(Vr)}),150)}else{var Xo=Vr.clientY<hi.top?-20:Vr.clientY>hi.bottom?20:0;Xo&&setTimeout(ms(ie,function(){rr==oo&&(xe.scroller.scrollTop+=Xo,lr(Vr))}),50)}}function fr(Vr){ie.state.selectingText=!1,rr=1/0,Vr&&(jn(Vr),xe.input.focus()),Ht(xe.wrapper.ownerDocument,"mousemove",Or),Ht(xe.wrapper.ownerDocument,"mouseup",$r),Ve.history.lastSelOrigin=null}var Or=ms(ie,function(Vr){Vr.buttons===0||!kn(Vr)?fr(Vr):lr(Vr)}),$r=ms(ie,fr);ie.state.selectingText=$r,Ot(xe.wrapper.ownerDocument,"mousemove",Or),Ot(xe.wrapper.ownerDocument,"mouseup",$r)}function sm(ie,le){var ye=le.anchor,ve=le.head,xe=Hn(ie.doc,ye.line);if(pi(ye,ve)==0&&ye.sticky==ve.sticky)return le;var Ve=Pn(xe);if(!Ve)return le;var st=Gt(Ve,ye.ch,ye.sticky),xt=Ve[st];if(xt.from!=ye.ch&&xt.to!=ye.ch)return le;var Et=st+(xt.from==ye.ch==(xt.level!=1)?0:1);if(Et==0||Et==Ve.length)return le;var _t;if(ve.line!=ye.line)_t=(ve.line-ye.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var zn=Gt(Ve,ve.ch,ve.sticky),qt=zn-st||(ve.ch-ye.ch)*(xt.level==1?-1:1);zn==Et-1||zn==Et?_t=qt<0:_t=qt>0}var xi=Ve[Et+(_t?-1:0)],hi=_t==(xi.level==1),rr=hi?xi.from:xi.to,lr=hi?"after":"before";return ye.ch==rr&&ye.sticky==lr?le:new ao(new zt(ye.line,rr,lr),ve)}function Df(ie,le,ye,ve){var xe,Ve;if(le.touches)xe=le.touches[0].clientX,Ve=le.touches[0].clientY;else try{xe=le.clientX,Ve=le.clientY}catch(xi){return!1}if(xe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;ve&&jn(le);var st=ie.display,xt=st.lineDiv.getBoundingClientRect();if(Ve>xt.bottom||!bn(ie,ye))return Ut(le);Ve-=xt.top-st.viewOffset;for(var Et=0;Et<ie.display.gutterSpecs.length;++Et){var _t=st.gutters.childNodes[Et];if(_t&&_t.getBoundingClientRect().right>=xe){var zn=$t(ie.doc,Ve),qt=ie.display.gutterSpecs[Et];return Kt(ie,ye,ie,zn,qt.className,le),Ut(le)}}}function Ff(ie,le){return Df(ie,le,"gutterClick",!0)}function Bf(ie,le){fa(ie.display,le)||lm(ie,le)||un(ie,le,"contextmenu")||Pe||ie.display.input.onContextMenu(le)}function lm(ie,le){return bn(ie,"gutterContextMenu")?Df(ie,le,"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-"),Pu(ie)}var md={toString:function(){return"CodeMirror.Init"}},Zp={},qh={};function um(ie){var le=ie.optionHandlers;function ye(ve,xe,Ve,st){ie.defaults[ve]=xe,Ve&&(le[ve]=st?function(xt,Et,_t){_t!=md&&Ve(xt,Et,_t)}:Ve)}ie.defineOption=ye,ie.Init=md,ye("value","",function(ve,xe){return ve.setValue(xe)},!0),ye("mode",null,function(ve,xe){ve.doc.modeOption=xe,io(ve)},!0),ye("indentUnit",2,io,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(ve){tl(ve),Pu(ve),Go(ve)},!0),ye("lineSeparator",null,function(ve,xe){if(ve.doc.lineSep=xe,!!xe){var Ve=[],st=ve.doc.first;ve.doc.iter(function(Et){for(var _t=0;;){var zn=Et.text.indexOf(xe,_t);if(zn==-1)break;_t=zn+xe.length,Ve.push(zt(st,zn))}st++});for(var xt=Ve.length-1;xt>=0;xt--)Ku(ve.doc,xe,Ve[xt],zt(Ve[xt].line,Ve[xt].ch+xe.length))}}),ye("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ve,xe,Ve){ve.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),Ve!=md&&ve.refresh()}),ye("specialCharPlaceholder",so,function(ve){return ve.refresh()},!0),ye("electricChars",!0),ye("inputStyle",ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ye("spellcheck",!1,function(ve,xe){return ve.getInputField().spellcheck=xe},!0),ye("autocorrect",!1,function(ve,xe){return ve.getInputField().autocorrect=xe},!0),ye("autocapitalize",!1,function(ve,xe){return ve.getInputField().autocapitalize=xe},!0),ye("rtlMoveVisually",!fe),ye("wholeLineUpdateBefore",!0),ye("theme","default",function(ve){_f(ve),Xn(ve)},!0),ye("keyMap","default",function(ve,xe,Ve){var st=jd(xe),xt=Ve!=md&&jd(Ve);xt&&xt.detach&&xt.detach(ve,st),st.attach&&st.attach(ve,xt||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,cm,!0),ye("gutters",[],function(ve,xe){ve.display.gutterSpecs=vi(xe,ve.options.lineNumbers),Xn(ve)},!0),ye("fixedGutter",!0,function(ve,xe){ve.display.gutters.style.left=xe?zu(ve.display)+"px":"0",ve.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(ve){return ds(ve)},!0),ye("scrollbarStyle","native",function(ve){vl(ve),ds(ve),ve.display.scrollbars.setScrollTop(ve.doc.scrollTop),ve.display.scrollbars.setScrollLeft(ve.doc.scrollLeft)},!0),ye("lineNumbers",!1,function(ve,xe){ve.display.gutterSpecs=vi(ve.options.gutters,xe),Xn(ve)},!0),ye("firstLineNumber",1,Xn,!0),ye("lineNumberFormatter",function(ve){return ve},Xn,!0),ye("showCursorWhenSelecting",!1,Ja,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(ve,xe){xe=="nocursor"&&(ju(ve),ve.display.input.blur()),ve.display.input.readOnlyChanged(xe)}),ye("screenReaderLabel",null,function(ve,xe){xe=xe===""?null:xe,ve.display.input.screenReaderLabelChanged(xe)}),ye("disableInput",!1,function(ve,xe){xe||ve.display.input.reset()},!0),ye("dragDrop",!0,Uf),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,Ja,!0),ye("singleCursorHeightPerLine",!0,Ja,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,tl,!0),ye("addModeClass",!1,tl,!0),ye("pollInterval",100),ye("undoDepth",200,function(ve,xe){return ve.doc.history.undoDepth=xe}),ye("historyEventDelay",1250),ye("viewportMargin",10,function(ve){return ve.refresh()},!0),ye("maxHighlightLength",1e4,tl,!0),ye("moveInputWithCursor",!0,function(ve,xe){xe||ve.display.input.resetPosition()}),ye("tabindex",null,function(ve,xe){return ve.display.input.getField().tabIndex=xe||""}),ye("autofocus",null),ye("direction","ltr",function(ve,xe){return ve.doc.setDirection(xe)},!0),ye("phrases",null)}function Uf(ie,le,ye){var ve=ye&&ye!=md;if(!le!=!ve){var xe=ie.display.dragFunctions,Ve=le?Ot:Ht;Ve(ie.display.scroller,"dragstart",xe.start),Ve(ie.display.scroller,"dragenter",xe.enter),Ve(ie.display.scroller,"dragover",xe.over),Ve(ie.display.scroller,"dragleave",xe.leave),Ve(ie.display.scroller,"drop",xe.drop)}}function cm(ie){ie.options.lineWrapping?(St(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(We(ie.display.wrapper,"CodeMirror-wrap"),Ki(ie)),no(ie),Go(ie),Pu(ie),setTimeout(function(){return ds(ie)},100)}function da(ie,le){var ye=this;if(!(this instanceof da))return new da(ie,le);this.options=le=le?cn(le):{},cn(Zp,le,!1);var ve=le.value;typeof ve=="string"?ve=new El(ve,le.mode,null,le.lineSeparator,le.direction):le.mode&&(ve.modeOption=le.mode),this.doc=ve;var xe=new da.inputStyles[le.inputStyle](this),Ve=this.display=new Ui(ie,ve,xe,le);Ve.wrapper.CodeMirror=this,_f(this),le.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vl(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 ut,keySeq:null,specialChars:null},le.autofocus&&!ee&&Ve.input.focus(),He&&Te<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),Ph(this),Lu(),$s(this),this.curOp.forceUpdate=!0,ea(this,ve),le.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&Lo(ye)},20):ju(this);for(var st in qh)qh.hasOwnProperty(st)&&qh[st](this,le[st],md);En(this),le.finishInit&&le.finishInit(this);for(var xt=0;xt<Zd.length;++xt)Zd[xt](this);Ul(this),ze&&le.lineWrapping&&getComputedStyle(Ve.lineDiv).textRendering=="optimizelegibility"&&(Ve.lineDiv.style.textRendering="auto")}da.defaults=Zp,da.optionHandlers=qh;function Ph(ie){var le=ie.display;Ot(le.scroller,"mousedown",ms(ie,xc)),He&&Te<11?Ot(le.scroller,"dblclick",ms(ie,function(Et){if(!un(ie,Et)){var _t=us(ie,Et);if(!(!_t||Ff(ie,Et)||fa(ie.display,Et))){jn(Et);var zn=ie.findWordAt(_t);Zu(ie.doc,zn.anchor,zn.head)}}})):Ot(le.scroller,"dblclick",function(Et){return un(ie,Et)||jn(Et)}),Ot(le.scroller,"contextmenu",function(Et){return Bf(ie,Et)}),Ot(le.input.getField(),"contextmenu",function(Et){le.scroller.contains(Et.target)||Bf(ie,Et)});var ye,ve={end:0};function xe(){le.activeTouch&&(ye=setTimeout(function(){return le.activeTouch=null},1e3),ve=le.activeTouch,ve.end=+new Date)}function Ve(Et){if(Et.touches.length!=1)return!1;var _t=Et.touches[0];return _t.radiusX<=1&&_t.radiusY<=1}function st(Et,_t){if(_t.left==null)return!0;var zn=_t.left-Et.left,qt=_t.top-Et.top;return zn*zn+qt*qt>20*20}Ot(le.scroller,"touchstart",function(Et){if(!un(ie,Et)&&!Ve(Et)&&!Ff(ie,Et)){le.input.ensurePolled(),clearTimeout(ye);var _t=+new Date;le.activeTouch={start:_t,moved:!1,prev:_t-ve.end<=300?ve:null},Et.touches.length==1&&(le.activeTouch.left=Et.touches[0].pageX,le.activeTouch.top=Et.touches[0].pageY)}}),Ot(le.scroller,"touchmove",function(){le.activeTouch&&(le.activeTouch.moved=!0)}),Ot(le.scroller,"touchend",function(Et){var _t=le.activeTouch;if(_t&&!fa(le,Et)&&_t.left!=null&&!_t.moved&&new Date-_t.start<300){var zn=ie.coordsChar(le.activeTouch,"page"),qt;!_t.prev||st(_t,_t.prev)?qt=new ao(zn,zn):!_t.prev.prev||st(_t,_t.prev.prev)?qt=ie.findWordAt(zn):qt=new ao(zt(zn.line,0),Rn(ie.doc,zt(zn.line+1,0))),ie.setSelection(qt.anchor,qt.head),ie.focus(),jn(Et)}xe()}),Ot(le.scroller,"touchcancel",xe),Ot(le.scroller,"scroll",function(){le.scroller.clientHeight&&(Ll(ie,le.scroller.scrollTop),_l(ie,le.scroller.scrollLeft,!0),Kt(ie,"scroll",ie))}),Ot(le.scroller,"mousewheel",function(Et){return Mo(ie,Et)}),Ot(le.scroller,"DOMMouseScroll",function(Et){return Mo(ie,Et)}),Ot(le.wrapper,"scroll",function(){return le.wrapper.scrollTop=le.wrapper.scrollLeft=0}),le.dragFunctions={enter:function(Et){un(ie,Et)||yi(Et)},over:function(Et){un(ie,Et)||(tm(ie,Et),yi(Et))},start:function(Et){return em(ie,Et)},drop:ms(ie,kp),leave:function(Et){un(ie,Et)||nm(ie)}};var xt=le.input.getField();Ot(xt,"keyup",function(Et){return Hp.call(ie,Et)}),Ot(xt,"keydown",ms(ie,_p)),Ot(xt,"keypress",ms(ie,bc)),Ot(xt,"focus",function(Et){return Lo(ie,Et)}),Ot(xt,"blur",function(Et){return ju(ie,Et)})}var Zd=[];da.defineInitHook=function(ie){return Zd.push(ie)};function Zs(ie,le,ye,ve){var xe=ie.doc,Ve;ye==null&&(ye="add"),ye=="smart"&&(xe.mode.indent?Ve=Wr(ie,le).state:ye="prev");var st=ie.options.tabSize,xt=Hn(xe,le),Et=pt(xt.text,null,st);xt.stateAfter&&(xt.stateAfter=null);var _t=xt.text.match(/^\s*/)[0],zn;if(!ve&&!/\S/.test(xt.text))zn=0,ye="not";else if(ye=="smart"&&(zn=xe.mode.indent(Ve,xt.text.slice(_t.length),xt.text),zn==rn||zn>150)){if(!ve)return;ye="prev"}ye=="prev"?le>xe.first?zn=pt(Hn(xe,le-1).text,null,st):zn=0:ye=="add"?zn=Et+ie.options.indentUnit:ye=="subtract"?zn=Et-ie.options.indentUnit:typeof ye=="number"&&(zn=Et+ye),zn=Math.max(0,zn);var qt="",xi=0;if(ie.options.indentWithTabs)for(var hi=Math.floor(zn/st);hi;--hi)xi+=st,qt+=" ";if(xi<zn&&(qt+=At(zn-xi)),qt!=_t)return Ku(xe,qt,zt(le,0),zt(le,_t.length),"+input"),xt.stateAfter=null,!0;for(var rr=0;rr<xe.sel.ranges.length;rr++){var lr=xe.sel.ranges[rr];if(lr.head.line==le&&lr.head.ch<_t.length){var fr=zt(le,_t.length);tu(xe,rr,new ao(fr,fr));break}}}var iu=null;function Kd(ie){iu=ie}function $h(ie,le,ye,ve,xe){var Ve=ie.doc;ie.display.shift=!1,ve||(ve=Ve.sel);var st=+new Date-200,xt=xe=="paste"||ie.state.pasteIncoming>st,Et=li(le),_t=null;if(xt&&ve.ranges.length>1)if(iu&&iu.text.join(`
`)==le){if(ve.ranges.length%iu.text.length==0){_t=[];for(var zn=0;zn<iu.text.length;zn++)_t.push(Ve.splitLines(iu.text[zn]))}}else Et.length==ve.ranges.length&&ie.options.pasteLinesPerSelection&&(_t=In(Et,function(Or){return[Or]}));for(var qt=ie.curOp.updateInput,xi=ve.ranges.length-1;xi>=0;xi--){var hi=ve.ranges[xi],rr=hi.from(),lr=hi.to();hi.empty()&&(ye&&ye>0?rr=zt(rr.line,rr.ch-ye):ie.state.overwrite&&!xt?lr=zt(lr.line,Math.min(Hn(Ve,lr.line).text.length,lr.ch+Zt(Et).length)):xt&&iu&&iu.lineWise&&iu.text.join(`
`)==Et.join(`
`)&&(rr=lr=zt(rr.line,0)));var fr={from:rr,to:lr,text:_t?_t[xi%_t.length]:Et,origin:xe||(xt?"paste":ie.state.cutIncoming>st?"cut":"+input")};Oo(ie.doc,fr),Fr(ie,"inputRead",ie,fr)}le&&!xt&&Yp(ie,le),Nl(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=qt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Kp(ie,le){var ye=ie.clipboardData&&ie.clipboardData.getData("Text");if(ye)return ie.preventDefault(),!le.isReadOnly()&&!le.options.disableInput&&ra(le,function(){return $h(le,ye,0,null,"paste")}),!0}function Yp(ie,le){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ye=ie.doc.sel,ve=ye.ranges.length-1;ve>=0;ve--){var xe=ye.ranges[ve];if(!(xe.head.ch>100||ve&&ye.ranges[ve-1].head.line==xe.head.line)){var Ve=ie.getModeAt(xe.head),st=!1;if(Ve.electricChars){for(var xt=0;xt<Ve.electricChars.length;xt++)if(le.indexOf(Ve.electricChars.charAt(xt))>-1){st=Zs(ie,xe.head.line,"smart");break}}else Ve.electricInput&&Ve.electricInput.test(Hn(ie.doc,xe.head.line).text.slice(0,xe.head.ch))&&(st=Zs(ie,xe.head.line,"smart"));st&&Fr(ie,"electricInput",ie,xe.head.line)}}}function Xp(ie){for(var le=[],ye=[],ve=0;ve<ie.doc.sel.ranges.length;ve++){var xe=ie.doc.sel.ranges[ve].head.line,Ve={anchor:zt(xe,0),head:zt(xe+1,0)};ye.push(Ve),le.push(ie.getRange(Ve.anchor,Ve.head))}return{text:le,ranges:ye}}function Qp(ie,le,ye,ve){ie.setAttribute("autocorrect",ye?"":"off"),ie.setAttribute("autocapitalize",ve?"":"off"),ie.setAttribute("spellcheck",!!le)}function Jp(){var ie=Qe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),le=Qe("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ze?ie.style.width="1000px":ie.setAttribute("wrap","off"),Fe&&(ie.style.border="1px solid black"),Qp(ie),le}function vd(ie){var le=ie.optionHandlers,ye=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ve,xe){var Ve=this.options,st=Ve[ve];Ve[ve]==xe&&ve!="mode"||(Ve[ve]=xe,le.hasOwnProperty(ve)&&ms(this,le[ve])(this,xe,st),Kt(this,"optionChange",this,ve))},getOption:function(ve){return this.options[ve]},getDoc:function(){return this.doc},addKeyMap:function(ve,xe){this.state.keyMaps[xe?"push":"unshift"](jd(ve))},removeKeyMap:function(ve){for(var xe=this.state.keyMaps,Ve=0;Ve<xe.length;++Ve)if(xe[Ve]==ve||xe[Ve].name==ve)return xe.splice(Ve,1),!0},addOverlay:Ps(function(ve,xe){var Ve=ve.token?ve:ie.getMode(this.options,ve);if(Ve.startState)throw new Error("Overlays may not be stateful.");Dn(this.state.overlays,{mode:Ve,modeSpec:ve,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(st){return st.priority}),this.state.modeGen++,Go(this)}),removeOverlay:Ps(function(ve){for(var xe=this.state.overlays,Ve=0;Ve<xe.length;++Ve){var st=xe[Ve].modeSpec;if(st==ve||typeof ve=="string"&&st.name==ve){xe.splice(Ve,1),this.state.modeGen++,Go(this);return}}}),indentLine:Ps(function(ve,xe,Ve){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),fi(this.doc,ve)&&Zs(this,ve,xe,Ve)}),indentSelection:Ps(function(ve){for(var xe=this.doc.sel.ranges,Ve=-1,st=0;st<xe.length;st++){var xt=xe[st];if(xt.empty())xt.head.line>Ve&&(Zs(this,xt.head.line,ve,!0),Ve=xt.head.line,st==this.doc.sel.primIndex&&Nl(this));else{var Et=xt.from(),_t=xt.to(),zn=Math.max(Ve,Et.line);Ve=Math.min(this.lastLine(),_t.line-(_t.ch?0:1))+1;for(var qt=zn;qt<Ve;++qt)Zs(this,qt,ve);var xi=this.doc.sel.ranges;Et.ch==0&&xe.length==xi.length&&xi[st].from().ch>0&&tu(this.doc,st,new ao(Et,xi[st].to()),Tt)}}}),getTokenAt:function(ve,xe){return pr(this,ve,xe)},getLineTokens:function(ve,xe){return pr(this,zt(ve),xe,!0)},getTokenTypeAt:function(ve){ve=Rn(this.doc,ve);var xe=vr(this,Hn(this.doc,ve.line)),Ve=0,st=(xe.length-1)/2,xt=ve.ch,Et;if(xt==0)Et=xe[2];else for(;;){var _t=Ve+st>>1;if((_t?xe[_t*2-1]:0)>=xt)st=_t;else if(xe[_t*2+1]<xt)Ve=_t+1;else{Et=xe[_t*2+2];break}}var zn=Et?Et.indexOf("overlay "):-1;return zn<0?Et:zn==0?null:Et.slice(0,zn-1)},getModeAt:function(ve){var xe=this.doc.mode;return xe.innerMode?ie.innerMode(xe,this.getTokenAt(ve).state).mode:xe},getHelper:function(ve,xe){return this.getHelpers(ve,xe)[0]},getHelpers:function(ve,xe){var Ve=[];if(!ye.hasOwnProperty(xe))return Ve;var st=ye[xe],xt=this.getModeAt(ve);if(typeof xt[xe]=="string")st[xt[xe]]&&Ve.push(st[xt[xe]]);else if(xt[xe])for(var Et=0;Et<xt[xe].length;Et++){var _t=st[xt[xe][Et]];_t&&Ve.push(_t)}else xt.helperType&&st[xt.helperType]?Ve.push(st[xt.helperType]):st[xt.name]&&Ve.push(st[xt.name]);for(var zn=0;zn<st._global.length;zn++){var qt=st._global[zn];qt.pred(xt,this)&&at(Ve,qt.val)==-1&&Ve.push(qt.val)}return Ve},getStateAfter:function(ve,xe){var Ve=this.doc;return ve=Ai(Ve,ve==null?Ve.first+Ve.size-1:ve),Wr(this,ve+1,xe).state},cursorCoords:function(ve,xe){var Ve,st=this.doc.sel.primary();return ve==null?Ve=st.head:typeof ve=="object"?Ve=Rn(this.doc,ve):Ve=ve?st.from():st.to(),$o(this,Ve,xe||"page")},charCoords:function(ve,xe){return Cs(this,Rn(this.doc,ve),xe||"page")},coordsChar:function(ve,xe){return ve=du(this,ve,xe||"page"),Ha(this,ve.left,ve.top)},lineAtHeight:function(ve,xe){return ve=du(this,{top:ve,left:0},xe||"page").top,$t(this.doc,ve+this.display.viewOffset)},heightAtLine:function(ve,xe,Ve){var st=!1,xt;if(typeof ve=="number"){var Et=this.doc.first+this.doc.size-1;ve<this.doc.first?ve=this.doc.first:ve>Et&&(ve=Et,st=!0),xt=Hn(this.doc,ve)}else xt=ve;return is(this,xt,{top:0,left:0},xe||"page",Ve||st).top+(st?this.doc.height-Bi(xt):0)},defaultTextHeight:function(){return Qa(this.display)},defaultCharWidth:function(){return qs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ve,xe,Ve,st,xt){var Et=this.display;ve=$o(this,Rn(this.doc,ve));var _t=ve.bottom,zn=ve.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),Et.sizer.appendChild(xe),st=="over")_t=ve.top;else if(st=="above"||st=="near"){var qt=Math.max(Et.wrapper.clientHeight,this.doc.height),xi=Math.max(Et.sizer.clientWidth,Et.lineSpace.clientWidth);(st=="above"||ve.bottom+xe.offsetHeight>qt)&&ve.top>xe.offsetHeight?_t=ve.top-xe.offsetHeight:ve.bottom+xe.offsetHeight<=qt&&(_t=ve.bottom),zn+xe.offsetWidth>xi&&(zn=xi-xe.offsetWidth)}xe.style.top=_t+"px",xe.style.left=xe.style.right="",xt=="right"?(zn=Et.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(xt=="left"?zn=0:xt=="middle"&&(zn=(Et.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=zn+"px"),Ve&&ql(this,{left:zn,top:_t,right:zn+xe.offsetWidth,bottom:_t+xe.offsetHeight})},triggerOnKeyDown:Ps(_p),triggerOnKeyPress:Ps(bc),triggerOnKeyUp:Hp,triggerOnMouseDown:Ps(xc),execCommand:function(ve){if(gd.hasOwnProperty(ve))return gd[ve].call(null,this)},triggerElectric:Ps(function(ve){Yp(this,ve)}),findPosH:function(ve,xe,Ve,st){var xt=1;xe<0&&(xt=-1,xe=-xe);for(var Et=Rn(this.doc,ve),_t=0;_t<xe&&(Et=ef(this.doc,Et,xt,Ve,st),!Et.hitSide);++_t);return Et},moveH:Ps(function(ve,xe){var Ve=this;this.extendSelectionsBy(function(st){return Ve.display.shift||Ve.doc.extend||st.empty()?ef(Ve.doc,st.head,ve,xe,Ve.options.rtlMoveVisually):ve<0?st.from():st.to()},nn)}),deleteH:Ps(function(ve,xe){var Ve=this.doc.sel,st=this.doc;Ve.somethingSelected()?st.replaceSelection("",null,"+delete"):mu(this,function(xt){var Et=ef(st,xt.head,ve,xe,!1);return ve<0?{from:Et,to:xt.head}:{from:xt.head,to:Et}})}),findPosV:function(ve,xe,Ve,st){var xt=1,Et=st;xe<0&&(xt=-1,xe=-xe);for(var _t=Rn(this.doc,ve),zn=0;zn<xe;++zn){var qt=$o(this,_t,"div");if(Et==null?Et=qt.left:qt.left=Et,_t=yd(this,qt,xt,Ve),_t.hitSide)break}return _t},moveV:Ps(function(ve,xe){var Ve=this,st=this.doc,xt=[],Et=!this.display.shift&&!st.extend&&st.sel.somethingSelected();if(st.extendSelectionsBy(function(zn){if(Et)return ve<0?zn.from():zn.to();var qt=$o(Ve,zn.head,"div");zn.goalColumn!=null&&(qt.left=zn.goalColumn),xt.push(qt.left);var xi=yd(Ve,qt,ve,xe);return xe=="page"&&zn==st.sel.primary()&&Ec(Ve,Cs(Ve,xi,"div").top-qt.top),xi},nn),xt.length)for(var _t=0;_t<st.sel.ranges.length;_t++)st.sel.ranges[_t].goalColumn=xt[_t]}),findWordAt:function(ve){var xe=this.doc,Ve=Hn(xe,ve.line).text,st=ve.ch,xt=ve.ch;if(Ve){var Et=this.getHelper(ve,"wordChars");(ve.sticky=="before"||xt==Ve.length)&&st?--st:++xt;for(var _t=Ve.charAt(st),zn=it(_t,Et)?function(qt){return it(qt,Et)}:/\s/.test(_t)?function(qt){return/\s/.test(qt)}:function(qt){return!/\s/.test(qt)&&!it(qt)};st>0&&zn(Ve.charAt(st-1));)--st;for(;xt<Ve.length&&zn(Ve.charAt(xt));)++xt}return new ao(zt(ve.line,st),zt(ve.line,xt))},toggleOverwrite:function(ve){ve!=null&&ve==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?St(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),Kt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==vt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ps(function(ve,xe){kl(this,ve,xe)}),getScrollInfo:function(){var ve=this.display.scroller;return{left:ve.scrollLeft,top:ve.scrollTop,height:ve.scrollHeight-Jo(this)-this.display.barHeight,width:ve.scrollWidth-Jo(this)-this.display.barWidth,clientHeight:Os(this),clientWidth:ss(this)}},scrollIntoView:Ps(function(ve,xe){ve==null?(ve={from:this.doc.sel.primary().head,to:null},xe==null&&(xe=this.options.cursorScrollMargin)):typeof ve=="number"?ve={from:zt(ve,0),to:null}:ve.from==null&&(ve={from:ve,to:null}),ve.to||(ve.to=ve.from),ve.margin=xe||0,ve.from.line!=null?_o(this,ve):Gu(this,ve.from,ve.to,ve.margin)}),setSize:Ps(function(ve,xe){var Ve=this,st=function(Et){return typeof Et=="number"||/^\d+$/.test(String(Et))?Et+"px":Et};ve!=null&&(this.display.wrapper.style.width=st(ve)),xe!=null&&(this.display.wrapper.style.height=st(xe)),this.options.lineWrapping&&cu(this);var xt=this.display.viewFrom;this.doc.iter(xt,this.display.viewTo,function(Et){if(Et.widgets){for(var _t=0;_t<Et.widgets.length;_t++)if(Et.widgets[_t].noHScroll){To(Ve,xt,"widget");break}}++xt}),this.curOp.forceUpdate=!0,Kt(this,"refresh",this)}),operation:function(ve){return ra(this,ve)},startOperation:function(){return $s(this)},endOperation:function(){return Ul(this)},refresh:Ps(function(){var ve=this.display.cachedTextHeight;Go(this),this.curOp.forceUpdate=!0,Pu(this),kl(this,this.doc.scrollLeft,this.doc.scrollTop),kt(this.display),(ve==null||Math.abs(ve-Qa(this.display))>.5||this.options.lineWrapping)&&no(this),Kt(this,"refresh",this)}),swapDoc:Ps(function(ve){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),ea(this,ve),Pu(this),this.display.input.reset(),kl(this,ve.scrollLeft,ve.scrollTop),this.curOp.forceScroll=!0,Fr(this,"swapDoc",this,xe),xe}),phrase:function(ve){var xe=this.options.phrases;return xe&&Object.prototype.hasOwnProperty.call(xe,ve)?xe[ve]:ve},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}},mt(ie),ie.registerHelper=function(ve,xe,Ve){ye.hasOwnProperty(ve)||(ye[ve]=ie[ve]={_global:[]}),ye[ve][xe]=Ve},ie.registerGlobalHelper=function(ve,xe,Ve,st){ie.registerHelper(ve,xe,st),ye[ve]._global.push({pred:Ve,val:st})}}function ef(ie,le,ye,ve,xe){var Ve=le,st=ye,xt=Hn(ie,le.line),Et=xe&&ie.direction=="rtl"?-ye:ye;function _t(){var $r=le.line+Et;return $r<ie.first||$r>=ie.first+ie.size?!1:(le=new zt($r,le.ch,le.sticky),xt=Hn(ie,$r))}function zn($r){var Vr;if(ve=="codepoint"){var oo=xt.text.charCodeAt(le.ch+(ve>0?0:-1));isNaN(oo)?Vr=null:Vr=new zt(le.line,Math.max(0,Math.min(xt.text.length,le.ch+ye*(oo>=55296&&oo<56320?2:1))),-ye)}else xe?Vr=Lf(ie.cm,xt,le,ye):Vr=Ns(xt,le,ye);if(Vr==null)if(!$r&&_t())le=Jh(xe,ie.cm,xt,le.line,Et);else return!1;else le=Vr;return!0}if(ve=="char"||ve=="codepoint")zn();else if(ve=="column")zn(!0);else if(ve=="word"||ve=="group")for(var qt=null,xi=ve=="group",hi=ie.cm&&ie.cm.getHelper(le,"wordChars"),rr=!0;!(ye<0&&!zn(!rr));rr=!1){var lr=xt.text.charAt(le.ch)||`
`,fr=it(lr,hi)?"w":xi&&lr==`
`?"n":!xi||/\s/.test(lr)?null:"p";if(xi&&!rr&&!fr&&(fr="s"),qt&&qt!=fr){ye<0&&(ye=1,zn(),le.sticky="after");break}if(fr&&(qt=fr),ye>0&&!zn(!rr))break}var Or=lo(ie,le,Ve,st,!0);return Fi(Ve,Or)&&(Or.hitSide=!0),Or}function yd(ie,le,ye,ve){var xe=ie.doc,Ve=le.left,st;if(ve=="page"){var xt=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Et=Math.max(xt-.5*Qa(ie.display),3);st=(ye>0?le.bottom:le.top)+ye*Et}else ve=="line"&&(st=ye>0?le.bottom+3:le.top-3);for(var _t;_t=Ha(ie,Ve,st),!!_t.outside;){if(ye<0?st<=0:st>=xe.height){_t.hitSide=!0;break}st+=ye*5}return _t}var Da=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Da.prototype.init=function(ie){var le=this,ye=this,ve=ye.cm,xe=ye.div=ie.lineDiv;Qp(xe,ve.options.spellcheck,ve.options.autocorrect,ve.options.autocapitalize);function Ve(xt){for(var Et=xt.target;Et;Et=Et.parentNode){if(Et==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Et.className))break}return!1}Ot(xe,"paste",function(xt){!Ve(xt)||un(ve,xt)||Kp(xt,ve)||Te<=11&&setTimeout(ms(ve,function(){return le.updateFromDOM()}),20)}),Ot(xe,"compositionstart",function(xt){le.composing={data:xt.data,done:!1}}),Ot(xe,"compositionupdate",function(xt){le.composing||(le.composing={data:xt.data,done:!1})}),Ot(xe,"compositionend",function(xt){le.composing&&(xt.data!=le.composing.data&&le.readFromDOMSoon(),le.composing.done=!0)}),Ot(xe,"touchstart",function(){return ye.forceCompositionEnd()}),Ot(xe,"input",function(){le.composing||le.readFromDOMSoon()});function st(xt){if(!(!Ve(xt)||un(ve,xt))){if(ve.somethingSelected())Kd({lineWise:!1,text:ve.getSelections()}),xt.type=="cut"&&ve.replaceSelection("",null,"cut");else if(ve.options.lineWiseCopyCut){var Et=Xp(ve);Kd({lineWise:!0,text:Et.text}),xt.type=="cut"&&ve.operation(function(){ve.setSelections(Et.ranges,0,Tt),ve.replaceSelection("",null,"cut")})}else return;if(xt.clipboardData){xt.clipboardData.clearData();var _t=iu.text.join(`
`);if(xt.clipboardData.setData("Text",_t),xt.clipboardData.getData("Text")==_t){xt.preventDefault();return}}var zn=Jp(),qt=zn.firstChild;ve.display.lineSpace.insertBefore(zn,ve.display.lineSpace.firstChild),qt.value=iu.text.join(`
`);var xi=document.activeElement;jt(qt),setTimeout(function(){ve.display.lineSpace.removeChild(zn),xi.focus(),xi==xe&&ye.showPrimarySelection()},50)}}Ot(xe,"copy",st),Ot(xe,"cut",st)},Da.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var ie=hu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Da.prototype.showSelection=function(ie,le){!ie||!this.cm.display.view.length||((ie.focus||le)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Da.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Da.prototype.showPrimarySelection=function(){var ie=this.getSelection(),le=this.cm,ye=le.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(le.display.viewTo==le.display.viewFrom||ve.line>=le.display.viewTo||xe.line<le.display.viewFrom){ie.removeAllRanges();return}var Ve=tf(le,ie.anchorNode,ie.anchorOffset),st=tf(le,ie.focusNode,ie.focusOffset);if(!(Ve&&!Ve.bad&&st&&!st.bad&&pi(Pi(Ve,st),ve)==0&&pi(je(Ve,st),xe)==0)){var xt=le.display.view,Et=ve.line>=le.display.viewFrom&&Hf(le,ve)||{node:xt[0].measure.map[2],offset:0},_t=xe.line<le.display.viewTo&&Hf(le,xe);if(!_t){var zn=xt[xt.length-1].measure,qt=zn.maps?zn.maps[zn.maps.length-1]:zn.map;_t={node:qt[qt.length-1],offset:qt[qt.length-2]-qt[qt.length-3]}}if(!Et||!_t){ie.removeAllRanges();return}var xi=ie.rangeCount&&ie.getRangeAt(0),hi;try{hi=nt(Et.node,Et.offset,_t.offset,_t.node)}catch(rr){}hi&&(!oe&&le.state.focused?(ie.collapse(Et.node,Et.offset),hi.collapsed||(ie.removeAllRanges(),ie.addRange(hi))):(ie.removeAllRanges(),ie.addRange(hi)),xi&&ie.anchorNode==null?ie.addRange(xi):oe&&this.startGracePeriod()),this.rememberSelection()}},Da.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)},Da.prototype.showMultipleSelections=function(ie){Ye(this.cm.display.cursorDiv,ie.cursors),Ye(this.cm.display.selectionDiv,ie.selection)},Da.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Da.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var le=ie.getRangeAt(0).commonAncestorContainer;return yt(this.div,le)},Da.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Da.prototype.blur=function(){this.div.blur()},Da.prototype.getField=function(){return this.div},Da.prototype.supportsTouch=function(){return!0},Da.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():ra(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function le(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,le))}this.polling.set(this.cm.options.pollInterval,le)},Da.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Da.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),le=this.cm;if(te&&Ke&&this.cm.display.gutterSpecs.length&&qp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ye=tf(le,ie.anchorNode,ie.anchorOffset),ve=tf(le,ie.focusNode,ie.focusOffset);ye&&ve&&ra(le,function(){ge(le.doc,wa(ye,ve),Tt),(ye.bad||ve.bad)&&(le.curOp.selectionChanged=!0)})}}},Da.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,le=ie.display,ye=ie.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(ve.ch==0&&ve.line>ie.firstLine()&&(ve=zt(ve.line-1,Hn(ie.doc,ve.line-1).length)),xe.ch==Hn(ie.doc,xe.line).text.length&&xe.line<ie.lastLine()&&(xe=zt(xe.line+1,0)),ve.line<le.viewFrom||xe.line>le.viewTo-1)return!1;var Ve,st,xt;ve.line==le.viewFrom||(Ve=Ls(ie,ve.line))==0?(st=Ct(le.view[0].line),xt=le.view[0].node):(st=Ct(le.view[Ve].line),xt=le.view[Ve-1].node.nextSibling);var Et=Ls(ie,xe.line),_t,zn;if(Et==le.view.length-1?(_t=le.viewTo-1,zn=le.lineDiv.lastChild):(_t=Ct(le.view[Et+1].line)-1,zn=le.view[Et+1].node.previousSibling),!xt)return!1;for(var qt=ie.doc.splitLines(Nh(ie,xt,zn,st,_t)),xi=Di(ie.doc,zt(st,0),zt(_t,Hn(ie.doc,_t).text.length));qt.length>1&&xi.length>1;)if(Zt(qt)==Zt(xi))qt.pop(),xi.pop(),_t--;else if(qt[0]==xi[0])qt.shift(),xi.shift(),st++;else break;for(var hi=0,rr=0,lr=qt[0],fr=xi[0],Or=Math.min(lr.length,fr.length);hi<Or&&lr.charCodeAt(hi)==fr.charCodeAt(hi);)++hi;for(var $r=Zt(qt),Vr=Zt(xi),oo=Math.min($r.length-(qt.length==1?hi:0),Vr.length-(xi.length==1?hi:0));rr<oo&&$r.charCodeAt($r.length-rr-1)==Vr.charCodeAt(Vr.length-rr-1);)++rr;if(qt.length==1&&xi.length==1&&st==ve.line)for(;hi&&hi>ve.ch&&$r.charCodeAt($r.length-rr-1)==Vr.charCodeAt(Vr.length-rr-1);)hi--,rr++;qt[qt.length-1]=$r.slice(0,$r.length-rr).replace(/^\u200b+/,""),qt[0]=qt[0].slice(hi).replace(/\u200b+$/,"");var No=zt(st,hi),Gr=zt(_t,xi.length?Zt(xi).length-rr:0);if(qt.length>1||qt[0]||pi(No,Gr))return Ku(ie.doc,qt,No,Gr,"+input"),!0},Da.prototype.ensurePolled=function(){this.forceCompositionEnd()},Da.prototype.reset=function(){this.forceCompositionEnd()},Da.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Da.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))},Da.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&ra(this.cm,function(){return Go(ie.cm)})},Da.prototype.setUneditable=function(ie){ie.contentEditable="false"},Da.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||ms(this.cm,$h)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Da.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Da.prototype.onContextMenu=function(){},Da.prototype.resetPosition=function(){},Da.prototype.needsContentAttribute=!0;function Hf(ie,le){var ye=Rs(ie,le.line);if(!ye||ye.hidden)return null;var ve=Hn(ie.doc,le.line),xe=Pa(ye,ve,le.line),Ve=Pn(ve,ie.doc.direction),st="left";if(Ve){var xt=Gt(Ve,le.ch);st=xt%2?"right":"left"}var Et=rc(xe.map,le.ch,st);return Et.offset=Et.collapse=="right"?Et.end:Et.start,Et}function qp(ie){for(var le=ie;le;le=le.parentNode)if(/CodeMirror-gutter-wrapper/.test(le.className))return!0;return!1}function Ah(ie,le){return le&&(ie.bad=!0),ie}function Nh(ie,le,ye,ve,xe){var Ve="",st=!1,xt=ie.doc.lineSeparator(),Et=!1;function _t(hi){return function(rr){return rr.id==hi}}function zn(){st&&(Ve+=xt,Et&&(Ve+=xt),st=Et=!1)}function qt(hi){hi&&(zn(),Ve+=hi)}function xi(hi){if(hi.nodeType==1){var rr=hi.getAttribute("cm-text");if(rr){qt(rr);return}var lr=hi.getAttribute("cm-marker"),fr;if(lr){var Or=ie.findMarks(zt(ve,0),zt(xe+1,0),_t(+lr));Or.length&&(fr=Or[0].find(0))&&qt(Di(ie.doc,fr.from,fr.to).join(xt));return}if(hi.getAttribute("contenteditable")=="false")return;var $r=/^(pre|div|p|li|table|br)$/i.test(hi.nodeName);if(!/^br$/i.test(hi.nodeName)&&hi.textContent.length==0)return;$r&&zn();for(var Vr=0;Vr<hi.childNodes.length;Vr++)xi(hi.childNodes[Vr]);/^(pre|p)$/i.test(hi.nodeName)&&(Et=!0),$r&&(st=!0)}else hi.nodeType==3&&qt(hi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;xi(le),le!=ye;)le=le.nextSibling,Et=!1;return Ve}function tf(ie,le,ye){var ve;if(le==ie.display.lineDiv){if(ve=ie.display.lineDiv.childNodes[ye],!ve)return Ah(ie.clipPos(zt(ie.display.viewTo-1)),!0);le=null,ye=0}else for(ve=le;;ve=ve.parentNode){if(!ve||ve==ie.display.lineDiv)return null;if(ve.parentNode&&ve.parentNode==ie.display.lineDiv)break}for(var xe=0;xe<ie.display.view.length;xe++){var Ve=ie.display.view[xe];if(Ve.node==ve)return dm(Ve,le,ye)}}function dm(ie,le,ye){var ve=ie.text.firstChild,xe=!1;if(!le||!yt(ve,le))return Ah(zt(Ct(ie.line),0),!0);if(le==ve&&(xe=!0,le=ve.childNodes[ye],ye=0,!le)){var Ve=ie.rest?Zt(ie.rest):ie.line;return Ah(zt(Ct(Ve),Ve.text.length),xe)}var st=le.nodeType==3?le:null,xt=le;for(!st&&le.childNodes.length==1&&le.firstChild.nodeType==3&&(st=le.firstChild,ye&&(ye=st.nodeValue.length));xt.parentNode!=ve;)xt=xt.parentNode;var Et=ie.measure,_t=Et.maps;function zn(fr,Or,$r){for(var Vr=-1;Vr<(_t?_t.length:0);Vr++)for(var oo=Vr<0?Et.map:_t[Vr],No=0;No<oo.length;No+=3){var Gr=oo[No+2];if(Gr==fr||Gr==Or){var Xo=Ct(Vr<0?ie.line:ie.rest[Vr]),es=oo[No]+$r;return($r<0||Gr!=fr)&&(es=oo[No+($r?1:0)]),zt(Xo,es)}}}var qt=zn(st,xt,ye);if(qt)return Ah(qt,xe);for(var xi=xt.nextSibling,hi=st?st.nodeValue.length-ye:0;xi;xi=xi.nextSibling){if(qt=zn(xi,xi.firstChild,0),qt)return Ah(zt(qt.line,qt.ch-hi),xe);hi+=xi.textContent.length}for(var rr=xt.previousSibling,lr=ye;rr;rr=rr.previousSibling){if(qt=zn(rr,rr.firstChild,-1),qt)return Ah(zt(qt.line,qt.ch+lr),xe);lr+=rr.textContent.length}}var _s=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};_s.prototype.init=function(ie){var le=this,ye=this,ve=this.cm;this.createField(ie);var xe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Fe&&(xe.style.width="0px"),Ot(xe,"input",function(){He&&Te>=9&&le.hasSelection&&(le.hasSelection=null),ye.poll()}),Ot(xe,"paste",function(st){un(ve,st)||Kp(st,ve)||(ve.state.pasteIncoming=+new Date,ye.fastPoll())});function Ve(st){if(!un(ve,st)){if(ve.somethingSelected())Kd({lineWise:!1,text:ve.getSelections()});else if(ve.options.lineWiseCopyCut){var xt=Xp(ve);Kd({lineWise:!0,text:xt.text}),st.type=="cut"?ve.setSelections(xt.ranges,null,Tt):(ye.prevInput="",xe.value=xt.text.join(`
`),jt(xe))}else return;st.type=="cut"&&(ve.state.cutIncoming=+new Date)}}Ot(xe,"cut",Ve),Ot(xe,"copy",Ve),Ot(ie.scroller,"paste",function(st){if(!(fa(ie,st)||un(ve,st))){if(!xe.dispatchEvent){ve.state.pasteIncoming=+new Date,ye.focus();return}var xt=new Event("paste");xt.clipboardData=st.clipboardData,xe.dispatchEvent(xt)}}),Ot(ie.lineSpace,"selectstart",function(st){fa(ie,st)||jn(st)}),Ot(xe,"compositionstart",function(){var st=ve.getCursor("from");ye.composing&&ye.composing.range.clear(),ye.composing={start:st,range:ve.markText(st,ve.getCursor("to"),{className:"CodeMirror-composing"})}}),Ot(xe,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},_s.prototype.createField=function(ie){this.wrapper=Jp(),this.textarea=this.wrapper.firstChild},_s.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},_s.prototype.prepareSelection=function(){var ie=this.cm,le=ie.display,ye=ie.doc,ve=hu(ie);if(ie.options.moveInputWithCursor){var xe=$o(ie,ye.sel.primary().head,"div"),Ve=le.wrapper.getBoundingClientRect(),st=le.lineDiv.getBoundingClientRect();ve.teTop=Math.max(0,Math.min(le.wrapper.clientHeight-10,xe.top+st.top-Ve.top)),ve.teLeft=Math.max(0,Math.min(le.wrapper.clientWidth-10,xe.left+st.left-Ve.left))}return ve},_s.prototype.showSelection=function(ie){var le=this.cm,ye=le.display;Ye(ye.cursorDiv,ie.cursors),Ye(ye.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},_s.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var le=this.cm;if(le.somethingSelected()){this.prevInput="";var ye=le.getSelection();this.textarea.value=ye,le.state.focused&&jt(this.textarea),He&&Te>=9&&(this.hasSelection=ye)}else ie||(this.prevInput=this.textarea.value="",He&&Te>=9&&(this.hasSelection=null))}},_s.prototype.getField=function(){return this.textarea},_s.prototype.supportsTouch=function(){return!1},_s.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||vt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},_s.prototype.blur=function(){this.textarea.blur()},_s.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},_s.prototype.receivedFocus=function(){this.slowPoll()},_s.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},_s.prototype.fastPoll=function(){var ie=!1,le=this;le.pollingFast=!0;function ye(){var ve=le.poll();!ve&&!ie?(ie=!0,le.polling.set(60,ye)):(le.pollingFast=!1,le.slowPoll())}le.polling.set(20,ye)},_s.prototype.poll=function(){var ie=this,le=this.cm,ye=this.textarea,ve=this.prevInput;if(this.contextMenuPending||!le.state.focused||Me(ye)&&!ve&&!this.composing||le.isReadOnly()||le.options.disableInput||le.state.keySeq)return!1;var xe=ye.value;if(xe==ve&&!le.somethingSelected())return!1;if(He&&Te>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return le.display.input.reset(),!1;if(le.doc.sel==le.display.selForContextMenu){var Ve=xe.charCodeAt(0);if(Ve==8203&&!ve&&(ve="\u200B"),Ve==8666)return this.reset(),this.cm.execCommand("undo")}for(var st=0,xt=Math.min(ve.length,xe.length);st<xt&&ve.charCodeAt(st)==xe.charCodeAt(st);)++st;return ra(le,function(){$h(le,xe.slice(st),ve.length-st,null,ie.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
`)>-1?ye.value=ie.prevInput="":ie.prevInput=xe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=le.markText(ie.composing.start,le.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},_s.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},_s.prototype.onKeyPress=function(){He&&Te>=9&&(this.hasSelection=null),this.fastPoll()},_s.prototype.onContextMenu=function(ie){var le=this,ye=le.cm,ve=ye.display,xe=le.textarea;le.contextMenuPending&&le.contextMenuPending();var Ve=us(ye,ie),st=ve.scroller.scrollTop;if(!Ve||Be)return;var xt=ye.options.resetSelectionOnContextMenu;xt&&ye.doc.sel.contains(Ve)==-1&&ms(ye,ge)(ye.doc,wa(Ve),Tt);var Et=xe.style.cssText,_t=le.wrapper.style.cssText,zn=le.wrapper.offsetParent.getBoundingClientRect();le.wrapper.style.cssText="position: static",xe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-zn.top-5)+"px; left: "+(ie.clientX-zn.left-5)+`px;
z-index: 1000; background: `+(He?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qt;ze&&(qt=window.scrollY),ve.input.focus(),ze&&window.scrollTo(null,qt),ve.input.reset(),ye.somethingSelected()||(xe.value=le.prevInput=" "),le.contextMenuPending=hi,ve.selForContextMenu=ye.doc.sel,clearTimeout(ve.detectingSelectAll);function xi(){if(xe.selectionStart!=null){var lr=ye.somethingSelected(),fr="\u200B"+(lr?xe.value:"");xe.value="\u21DA",xe.value=fr,le.prevInput=lr?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=fr.length,ve.selForContextMenu=ye.doc.sel}}function hi(){if(le.contextMenuPending==hi&&(le.contextMenuPending=!1,le.wrapper.style.cssText=_t,xe.style.cssText=Et,He&&Te<9&&ve.scrollbars.setScrollTop(ve.scroller.scrollTop=st),xe.selectionStart!=null)){(!He||He&&Te<9)&&xi();var lr=0,fr=function(){ve.selForContextMenu==ye.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&le.prevInput=="\u200B"?ms(ye,Wi)(ye):lr++<10?ve.detectingSelectAll=setTimeout(fr,500):(ve.selForContextMenu=null,ve.input.reset())};ve.detectingSelectAll=setTimeout(fr,200)}}if(He&&Te>=9&&xi(),Pe){yi(ie);var rr=function(){Ht(window,"mouseup",rr),setTimeout(hi,20)};Ot(window,"mouseup",rr)}else setTimeout(hi,50)},_s.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},_s.prototype.setUneditable=function(){},_s.prototype.needsContentAttribute=!1;function hm(ie,le){if(le=le?cn(le):{},le.value=ie.value,!le.tabindex&&ie.tabIndex&&(le.tabindex=ie.tabIndex),!le.placeholder&&ie.placeholder&&(le.placeholder=ie.placeholder),le.autofocus==null){var ye=vt();le.autofocus=ye==ie||ie.getAttribute("autofocus")!=null&&ye==document.body}function ve(){ie.value=xt.getValue()}var xe;if(ie.form&&(Ot(ie.form,"submit",ve),!le.leaveSubmitMethodAlone)){var Ve=ie.form;xe=Ve.submit;try{var st=Ve.submit=function(){ve(),Ve.submit=xe,Ve.submit(),Ve.submit=st}}catch(Et){}}le.finishInit=function(Et){Et.save=ve,Et.getTextArea=function(){return ie},Et.toTextArea=function(){Et.toTextArea=isNaN,ve(),ie.parentNode.removeChild(Et.getWrapperElement()),ie.style.display="",ie.form&&(Ht(ie.form,"submit",ve),!le.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=xe))}},ie.style.display="none";var xt=da(function(Et){return ie.parentNode.insertBefore(Et,ie.nextSibling)},le);return xt}function kh(ie){ie.off=Ht,ie.on=Ot,ie.wheelEventPixels=Eo,ie.Doc=El,ie.splitLines=li,ie.countColumn=pt,ie.findColumn=Nn,ie.isWordChar=Ge,ie.Pass=rn,ie.signal=Kt,ie.Line=sr,ie.changeEnd=Ca,ie.scrollbarModel=ml,ie.Pos=zt,ie.cmpPos=pi,ie.modes=ni,ie.mimeModes=Ei,ie.resolveMode=Sn,ie.getMode=sn,ie.modeExtensions=dn,ie.extendMode=_n,ie.copyState=Ri,ie.startState=Ni,ie.innerMode=qn,ie.commands=gd,ie.keyMap=gu,ie.keyName=rm,ie.isModifierKey=bh,ie.lookupKey=Yu,ie.normalizeKeyMap=Op,ie.StringStream=mn,ie.SharedTextMarker=Oc,ie.TextMarker=Tn,ie.LineWidget=Jc,ie.e_preventDefault=jn,ie.e_stopPropagation=Kn,ie.e_stop=yi,ie.addClass=St,ie.contains=yt,ie.rmClass=We,ie.keyNames=Rc}um(da),vd(da);var qc="iter insert remove copy getEditor constructor".split(" ");for(var nf in El.prototype)El.prototype.hasOwnProperty(nf)&&at(qc,nf)<0&&(da.prototype[nf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(El.prototype[nf]));return mt(El),da.inputStyles={textarea:_s,contenteditable:Da},da.defineMode=function(ie){!da.defaults.mode&&ie!="null"&&(da.defaults.mode=ie),ui.apply(this,arguments)},da.defineMIME=tr,da.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),da.defineMIME("text/plain","null"),da.defineExtension=function(ie,le){da.prototype[ie]=le},da.defineDocExtension=function(ie,le){El.prototype[ie]=le},da.fromTextArea=hm,kh(da),da.version="5.58.2",da})},25419:function(_e,be,ae){(function(oe){oe(ae(89780),ae(15525),ae(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(Ce,ke){var Ie=oe.getMode(Ce,"text/html"),He=Ie.name=="null";function Te(pt){if(oe.findModeByName){var ut=oe.findModeByName(pt);ut&&(pt=ut.mime||ut.mimes[0])}var at=oe.getMode(Ce,pt);return at.name=="null"?null:at}ke.highlightFormatting===void 0&&(ke.highlightFormatting=!1),ke.maxBlockquoteDepth===void 0&&(ke.maxBlockquoteDepth=0),ke.taskLists===void 0&&(ke.taskLists=!1),ke.strikethrough===void 0&&(ke.strikethrough=!1),ke.emoji===void 0&&(ke.emoji=!1),ke.fencedCodeBlockHighlighting===void 0&&(ke.fencedCodeBlockHighlighting=!0),ke.fencedCodeBlockDefaultMode===void 0&&(ke.fencedCodeBlockDefaultMode="text/plain"),ke.xml===void 0&&(ke.xml=!0),ke.tokenTypeOverrides===void 0&&(ke.tokenTypeOverrides={});var ze={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 ot in ze)ze.hasOwnProperty(ot)&&ke.tokenTypeOverrides[ot]&&(ze[ot]=ke.tokenTypeOverrides[ot]);var Ke=/^([*\-_])(?:\s*\1){2,}\s*$/,Be=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,gt=/^\[(x| )\](?=\s)/i,Je=ke.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,wt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Fe=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ee=/^\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]/,ue=" ";function fe(pt,ut,at){return ut.f=ut.inline=at,at(pt,ut)}function me(pt,ut,at){return ut.f=ut.block=at,at(pt,ut)}function Ee(pt){return!pt||!/\S/.test(pt.string)}function Pe(pt){if(pt.linkTitle=!1,pt.linkHref=!1,pt.linkText=!1,pt.em=!1,pt.strong=!1,pt.strikethrough=!1,pt.quote=0,pt.indentedCode=!1,pt.f==We){var ut=He;if(!ut){var at=oe.innerMode(Ie,pt.htmlState);ut=at.mode.name=="xml"&&at.state.tagStart===null&&!at.state.context&&at.state.tokenize.isInText}ut&&(pt.f=lt,pt.block=Ne,pt.htmlState=null)}return pt.trailingSpace=0,pt.trailingSpaceNewLine=!1,pt.prevLine=pt.thisLine,pt.thisLine={stream:null},null}function Ne(pt,ut){var at=pt.column()===ut.indentation,Wt=Ee(ut.prevLine.stream),rn=ut.indentedCode,Tt=ut.prevLine.hr,Xt=ut.list!==!1,nn=(ut.listStack[ut.listStack.length-1]||0)+3;ut.indentedCode=!1;var Nn=ut.indentation;if(ut.indentationDiff===null&&(ut.indentationDiff=ut.indentation,Xt)){for(ut.list=null;Nn<ut.listStack[ut.listStack.length-1];)ut.listStack.pop(),ut.listStack.length?ut.indentation=ut.listStack[ut.listStack.length-1]:ut.list=!1;ut.list!==!1&&(ut.indentationDiff=Nn-ut.listStack[ut.listStack.length-1])}var Rt=!Wt&&!Tt&&!ut.prevLine.header&&(!Xt||!rn)&&!ut.prevLine.fencedCodeEnd,At=(ut.list===!1||Tt||Wt)&&ut.indentation<=nn&&pt.match(Ke),Zt=null;if(ut.indentationDiff>=4&&(rn||ut.prevLine.fencedCodeEnd||ut.prevLine.header||Wt))return pt.skipToEnd(),ut.indentedCode=!0,ze.code;if(pt.eatSpace())return null;if(at&&ut.indentation<=nn&&(Zt=pt.match(Je))&&Zt[1].length<=6)return ut.quote=0,ut.header=Zt[1].length,ut.thisLine.header=!0,ke.highlightFormatting&&(ut.formatting="header"),ut.f=ut.inline,Ye(ut);if(ut.indentation<=nn&&pt.eat(">"))return ut.quote=at?1:ut.quote+1,ke.highlightFormatting&&(ut.formatting="quote"),pt.eatSpace(),Ye(ut);if(!At&&!ut.setext&&at&&ut.indentation<=nn&&(Zt=pt.match(Be))){var In=Zt[1]?"ol":"ul";return ut.indentation=Nn+pt.current().length,ut.list=!0,ut.quote=0,ut.listStack.push(ut.indentation),ut.em=!1,ut.strong=!1,ut.code=!1,ut.strikethrough=!1,ke.taskLists&&pt.match(gt,!1)&&(ut.taskList=!0),ut.f=ut.inline,ke.highlightFormatting&&(ut.formatting=["list","list-"+In]),Ye(ut)}else{if(at&&ut.indentation<=nn&&(Zt=pt.match(te,!0)))return ut.quote=0,ut.fencedEndRE=new RegExp(Zt[1]+"+ *$"),ut.localMode=ke.fencedCodeBlockHighlighting&&Te(Zt[2]||ke.fencedCodeBlockDefaultMode),ut.localMode&&(ut.localState=oe.startState(ut.localMode)),ut.f=ut.block=tt,ke.highlightFormatting&&(ut.formatting="code-block"),ut.code=-1,Ye(ut);if(ut.setext||(!Rt||!Xt)&&!ut.quote&&ut.list===!1&&!ut.code&&!At&&!ee.test(pt.string)&&(Zt=pt.lookAhead(1))&&(Zt=Zt.match(wt)))return ut.setext?(ut.header=ut.setext,ut.setext=0,pt.skipToEnd(),ke.highlightFormatting&&(ut.formatting="header")):(ut.header=Zt[0].charAt(0)=="="?1:2,ut.setext=ut.header),ut.thisLine.header=!0,ut.f=ut.inline,Ye(ut);if(At)return pt.skipToEnd(),ut.hr=!0,ut.thisLine.hr=!0,ze.hr;if(pt.peek()==="[")return fe(pt,ut,Lt)}return fe(pt,ut,ut.inline)}function We(pt,ut){var at=Ie.token(pt,ut.htmlState);if(!He){var Wt=oe.innerMode(Ie,ut.htmlState);(Wt.mode.name=="xml"&&Wt.state.tagStart===null&&!Wt.state.context&&Wt.state.tokenize.isInText||ut.md_inside&&pt.current().indexOf(">")>-1)&&(ut.f=lt,ut.block=Ne,ut.htmlState=null)}return at}function tt(pt,ut){var at=ut.listStack[ut.listStack.length-1]||0,Wt=ut.indentation<at,rn=at+3;if(ut.fencedEndRE&&ut.indentation<=rn&&(Wt||pt.match(ut.fencedEndRE))){ke.highlightFormatting&&(ut.formatting="code-block");var Tt;return Wt||(Tt=Ye(ut)),ut.localMode=ut.localState=null,ut.block=Ne,ut.f=lt,ut.fencedEndRE=null,ut.code=0,ut.thisLine.fencedCodeEnd=!0,Wt?me(pt,ut,ut.block):Tt}else return ut.localMode?ut.localMode.token(pt,ut.localState):(pt.skipToEnd(),ze.code)}function Ye(pt){var ut=[];if(pt.formatting){ut.push(ze.formatting),typeof pt.formatting=="string"&&(pt.formatting=[pt.formatting]);for(var at=0;at<pt.formatting.length;at++)ut.push(ze.formatting+"-"+pt.formatting[at]),pt.formatting[at]==="header"&&ut.push(ze.formatting+"-"+pt.formatting[at]+"-"+pt.header),pt.formatting[at]==="quote"&&(!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=pt.quote?ut.push(ze.formatting+"-"+pt.formatting[at]+"-"+pt.quote):ut.push("error"))}if(pt.taskOpen)return ut.push("meta"),ut.length?ut.join(" "):null;if(pt.taskClosed)return ut.push("property"),ut.length?ut.join(" "):null;if(pt.linkHref?ut.push(ze.linkHref,"url"):(pt.strong&&ut.push(ze.strong),pt.em&&ut.push(ze.em),pt.strikethrough&&ut.push(ze.strikethrough),pt.emoji&&ut.push(ze.emoji),pt.linkText&&ut.push(ze.linkText),pt.code&&ut.push(ze.code),pt.image&&ut.push(ze.image),pt.imageAltText&&ut.push(ze.imageAltText,"link"),pt.imageMarker&&ut.push(ze.imageMarker)),pt.header&&ut.push(ze.header,ze.header+"-"+pt.header),pt.quote&&(ut.push(ze.quote),!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=pt.quote?ut.push(ze.quote+"-"+pt.quote):ut.push(ze.quote+"-"+ke.maxBlockquoteDepth)),pt.list!==!1){var Wt=(pt.listStack.length-1)%3;Wt?Wt===1?ut.push(ze.list2):ut.push(ze.list3):ut.push(ze.list1)}return pt.trailingSpaceNewLine?ut.push("trailing-space-new-line"):pt.trailingSpace&&ut.push("trailing-space-"+(pt.trailingSpace%2?"a":"b")),ut.length?ut.join(" "):null}function Qe(pt,ut){if(pt.match(Fe,!0))return Ye(ut)}function lt(pt,ut){var at=ut.text(pt,ut);if(typeof at!="undefined")return at;if(ut.list)return ut.list=null,Ye(ut);if(ut.taskList){var Wt=pt.match(gt,!0)[1]===" ";return Wt?ut.taskOpen=!0:ut.taskClosed=!0,ke.highlightFormatting&&(ut.formatting="task"),ut.taskList=!1,Ye(ut)}if(ut.taskOpen=!1,ut.taskClosed=!1,ut.header&&pt.match(/^#+$/,!0))return ke.highlightFormatting&&(ut.formatting="header"),Ye(ut);var rn=pt.next();if(ut.linkTitle){ut.linkTitle=!1;var Tt=rn;rn==="("&&(Tt=")"),Tt=(Tt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xt="^\\s*(?:[^"+Tt+"\\\\]+|\\\\\\\\|\\\\.)"+Tt;if(pt.match(new RegExp(Xt),!0))return ze.linkHref}if(rn==="`"){var nn=ut.formatting;ke.highlightFormatting&&(ut.formatting="code"),pt.eatWhile("`");var Nn=pt.current().length;if(ut.code==0&&(!ut.quote||Nn==1))return ut.code=Nn,Ye(ut);if(Nn==ut.code){var Rt=Ye(ut);return ut.code=0,Rt}else return ut.formatting=nn,Ye(ut)}else if(ut.code)return Ye(ut);if(rn==="\\"&&(pt.next(),ke.highlightFormatting)){var At=Ye(ut),Zt=ze.formatting+"-escape";return At?At+" "+Zt:Zt}if(rn==="!"&&pt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ut.imageMarker=!0,ut.image=!0,ke.highlightFormatting&&(ut.formatting="image"),Ye(ut);if(rn==="["&&ut.imageMarker&&pt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ut.imageMarker=!1,ut.imageAltText=!0,ke.highlightFormatting&&(ut.formatting="image"),Ye(ut);if(rn==="]"&&ut.imageAltText){ke.highlightFormatting&&(ut.formatting="image");var At=Ye(ut);return ut.imageAltText=!1,ut.image=!1,ut.inline=ut.f=yt,At}if(rn==="["&&!ut.image)return ut.linkText&&pt.match(/^.*?\]/)||(ut.linkText=!0,ke.highlightFormatting&&(ut.formatting="link")),Ye(ut);if(rn==="]"&&ut.linkText){ke.highlightFormatting&&(ut.formatting="link");var At=Ye(ut);return ut.linkText=!1,ut.inline=ut.f=pt.match(/\(.*?\)| ?\[.*?\]/,!1)?yt:lt,At}if(rn==="<"&&pt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ut.f=ut.inline=nt,ke.highlightFormatting&&(ut.formatting="link");var At=Ye(ut);return At?At+=" ":At="",At+ze.linkInline}if(rn==="<"&&pt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ut.f=ut.inline=nt,ke.highlightFormatting&&(ut.formatting="link");var At=Ye(ut);return At?At+=" ":At="",At+ze.linkEmail}if(ke.xml&&rn==="<"&&pt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var In=pt.string.indexOf(">",pt.pos);if(In!=-1){var Dn=pt.string.substring(pt.start,In);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Dn)&&(ut.md_inside=!0)}return pt.backUp(1),ut.htmlState=oe.startState(Ie),me(pt,ut,We)}if(ke.xml&&rn==="<"&&pt.match(/^\/\w*?>/))return ut.md_inside=!1,"tag";if(rn==="*"||rn==="_"){for(var qe=1,Oe=pt.pos==1?" ":pt.string.charAt(pt.pos-2);qe<3&&pt.eat(rn);)qe++;var Le=pt.peek()||" ",Ge=!/\s/.test(Le)&&(!he.test(Le)||/\s/.test(Oe)||he.test(Oe)),it=!/\s/.test(Oe)&&(!he.test(Oe)||/\s/.test(Le)||he.test(Le)),De=null,ht=null;if(qe%2&&(!ut.em&&Ge&&(rn==="*"||!it||he.test(Oe))?De=!0:ut.em==rn&&it&&(rn==="*"||!Ge||he.test(Le))&&(De=!1)),qe>1&&(!ut.strong&&Ge&&(rn==="*"||!it||he.test(Oe))?ht=!0:ut.strong==rn&&it&&(rn==="*"||!Ge||he.test(Le))&&(ht=!1)),ht!=null||De!=null){ke.highlightFormatting&&(ut.formatting=De==null?"strong":ht==null?"em":"strong em"),De===!0&&(ut.em=rn),ht===!0&&(ut.strong=rn);var Rt=Ye(ut);return De===!1&&(ut.em=!1),ht===!1&&(ut.strong=!1),Rt}}else if(rn===" "&&(pt.eat("*")||pt.eat("_"))){if(pt.peek()===" ")return Ye(ut);pt.backUp(1)}if(ke.strikethrough){if(rn==="~"&&pt.eatWhile(rn)){if(ut.strikethrough){ke.highlightFormatting&&(ut.formatting="strikethrough");var Rt=Ye(ut);return ut.strikethrough=!1,Rt}else if(pt.match(/^[^\s]/,!1))return ut.strikethrough=!0,ke.highlightFormatting&&(ut.formatting="strikethrough"),Ye(ut)}else if(rn===" "&&pt.match(/^~~/,!0)){if(pt.peek()===" ")return Ye(ut);pt.backUp(2)}}if(ke.emoji&&rn===":"&&pt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ut.emoji=!0,ke.highlightFormatting&&(ut.formatting="emoji");var on=Ye(ut);return ut.emoji=!1,on}return rn===" "&&(pt.match(/^ +$/,!1)?ut.trailingSpace++:ut.trailingSpace&&(ut.trailingSpaceNewLine=!0)),Ye(ut)}function nt(pt,ut){var at=pt.next();if(at===">"){ut.f=ut.inline=lt,ke.highlightFormatting&&(ut.formatting="link");var Wt=Ye(ut);return Wt?Wt+=" ":Wt="",Wt+ze.linkInline}return pt.match(/^[^>]+/,!0),ze.linkInline}function yt(pt,ut){if(pt.eatSpace())return null;var at=pt.next();return at==="("||at==="["?(ut.f=ut.inline=St(at==="("?")":"]"),ke.highlightFormatting&&(ut.formatting="link-string"),ut.linkHref=!0,Ye(ut)):"error"}var vt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function St(pt){return function(ut,at){var Wt=ut.next();if(Wt===pt){at.f=at.inline=lt,ke.highlightFormatting&&(at.formatting="link-string");var rn=Ye(at);return at.linkHref=!1,rn}return ut.match(vt[pt]),at.linkHref=!0,Ye(at)}}function Lt(pt,ut){return pt.match(/^([^\]\\]|\\.)*\]:/,!1)?(ut.f=jt,pt.next(),ke.highlightFormatting&&(ut.formatting="link"),ut.linkText=!0,Ye(ut)):fe(pt,ut,lt)}function jt(pt,ut){if(pt.match(/^\]:/,!0)){ut.f=ut.inline=Bt,ke.highlightFormatting&&(ut.formatting="link");var at=Ye(ut);return ut.linkText=!1,at}return pt.match(/^([^\]\\]|\\.)+/,!0),ze.linkText}function Bt(pt,ut){return pt.eatSpace()?null:(pt.match(/^[^\s]+/,!0),pt.peek()===void 0?ut.linkTitle=!0:pt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ut.f=ut.inline=lt,ze.linkHref+" url")}var cn={startState:function(){return{f:Ne,prevLine:{stream:null},thisLine:{stream:null},block:Ne,htmlState:null,indentation:0,inline:lt,text:Qe,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(pt){return{f:pt.f,prevLine:pt.prevLine,thisLine:pt.thisLine,block:pt.block,htmlState:pt.htmlState&&oe.copyState(Ie,pt.htmlState),indentation:pt.indentation,localMode:pt.localMode,localState:pt.localMode?oe.copyState(pt.localMode,pt.localState):null,inline:pt.inline,text:pt.text,formatting:!1,linkText:pt.linkText,linkTitle:pt.linkTitle,linkHref:pt.linkHref,code:pt.code,em:pt.em,strong:pt.strong,strikethrough:pt.strikethrough,emoji:pt.emoji,header:pt.header,setext:pt.setext,hr:pt.hr,taskList:pt.taskList,list:pt.list,listStack:pt.listStack.slice(0),quote:pt.quote,indentedCode:pt.indentedCode,trailingSpace:pt.trailingSpace,trailingSpaceNewLine:pt.trailingSpaceNewLine,md_inside:pt.md_inside,fencedEndRE:pt.fencedEndRE}},token:function(pt,ut){if(ut.formatting=!1,pt!=ut.thisLine.stream){if(ut.header=0,ut.hr=!1,pt.match(/^\s*$/,!0))return Pe(ut),null;if(ut.prevLine=ut.thisLine,ut.thisLine={stream:pt},ut.taskList=!1,ut.trailingSpace=0,ut.trailingSpaceNewLine=!1,!ut.localState&&(ut.f=ut.block,ut.f!=We)){var at=pt.match(/^\s*/,!0)[0].replace(/\t/g,ue).length;if(ut.indentation=at,ut.indentationDiff=null,at>0)return null}}return ut.f(pt,ut)},innerMode:function(pt){return pt.block==We?{state:pt.htmlState,mode:Ie}:pt.localState?{state:pt.localState,mode:pt.localMode}:{state:pt,mode:cn}},indent:function(pt,ut,at){return pt.block==We&&Ie.indent?Ie.indent(pt.htmlState,ut,at):pt.localState&&pt.localMode.indent?pt.localMode.indent(pt.localState,ut,at):oe.Pass},blankLine:Pe,getType:Ye,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return cn},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(_e,be,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.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 Ce=0;Ce<oe.modeInfo.length;Ce++){var ke=oe.modeInfo[Ce];ke.mimes&&(ke.mime=ke.mimes[0])}oe.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var He=0;He<oe.modeInfo.length;He++){var Te=oe.modeInfo[He];if(Te.mime==Ie)return Te;if(Te.mimes){for(var ze=0;ze<Te.mimes.length;ze++)if(Te.mimes[ze]==Ie)return Te}}if(/\+xml$/.test(Ie))return oe.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var He=0;He<oe.modeInfo.length;He++){var Te=oe.modeInfo[He];if(Te.ext){for(var ze=0;ze<Te.ext.length;ze++)if(Te.ext[ze]==Ie)return Te}}},oe.findModeByFileName=function(Ie){for(var He=0;He<oe.modeInfo.length;He++){var Te=oe.modeInfo[He];if(Te.file&&Te.file.test(Ie))return Te}var ze=Ie.lastIndexOf("."),ot=ze>-1&&Ie.substring(ze+1,Ie.length);if(ot)return oe.findModeByExtension(ot)},oe.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var He=0;He<oe.modeInfo.length;He++){var Te=oe.modeInfo[He];if(Te.name.toLowerCase()==Ie)return Te;if(Te.alias){for(var ze=0;ze<Te.alias.length;ze++)if(Te.alias[ze].toLowerCase()==Ie)return Te}}}})},67549:function(_e,be,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.defineMode("stex",function(Ce,ke){"use strict";function Ie(Fe,te){Fe.cmdState.push(te)}function He(Fe){return Fe.cmdState.length>0?Fe.cmdState[Fe.cmdState.length-1]:null}function Te(Fe){var te=Fe.cmdState.pop();te&&te.closeBracket()}function ze(Fe){for(var te=Fe.cmdState,ee=te.length-1;ee>=0;ee--){var he=te[ee];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function ot(Fe,te,ee){return function(){this.name=Fe,this.bracketNo=0,this.style=te,this.styles=ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ke={};Ke.importmodule=ot("importmodule","tag",["string","builtin"]),Ke.documentclass=ot("documentclass","tag",["","atom"]),Ke.usepackage=ot("usepackage","tag",["atom"]),Ke.begin=ot("begin","tag",["atom"]),Ke.end=ot("end","tag",["atom"]),Ke.label=ot("label","tag",["atom"]),Ke.ref=ot("ref","tag",["atom"]),Ke.eqref=ot("eqref","tag",["atom"]),Ke.cite=ot("cite","tag",["atom"]),Ke.bibitem=ot("bibitem","tag",["atom"]),Ke.Bibitem=ot("Bibitem","tag",["atom"]),Ke.RBibitem=ot("RBibitem","tag",["atom"]),Ke.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Be(Fe,te){Fe.f=te}function gt(Fe,te){var ee;if(Fe.match(/^\\[a-zA-Z@]+/)){var he=Fe.current().slice(1);return ee=Ke.hasOwnProperty(he)?Ke[he]:Ke.DEFAULT,ee=new ee,Ie(te,ee),Be(te,wt),ee.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return Be(te,function(fe,me){return Je(fe,me,"\\]")}),"keyword";if(Fe.match("\\("))return Be(te,function(fe,me){return Je(fe,me,"\\)")}),"keyword";if(Fe.match("$$"))return Be(te,function(fe,me){return Je(fe,me,"$$")}),"keyword";if(Fe.match("$"))return Be(te,function(fe,me){return Je(fe,me,"$")}),"keyword";var ue=Fe.next();if(ue=="%")return Fe.skipToEnd(),"comment";if(ue=="}"||ue=="]"){if(ee=He(te),ee)ee.closeBracket(ue),Be(te,wt);else return"error";return"bracket"}else return ue=="{"||ue=="["?(ee=Ke.DEFAULT,ee=new ee,Ie(te,ee),"bracket"):/\d/.test(ue)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),ee=ze(te),ee.name=="begin"&&(ee.argument=Fe.current()),ee.styleIdentifier())}function Je(Fe,te,ee){if(Fe.eatSpace())return null;if(ee&&Fe.match(ee))return Be(te,gt),"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 wt(Fe,te){var ee=Fe.peek(),he;return ee=="{"||ee=="["?(he=He(te),he.openBracket(ee),Fe.eat(ee),Be(te,gt),"bracket"):/[ \t\r]/.test(ee)?(Fe.eat(ee),null):(Be(te,gt),Te(te),gt(Fe,te))}return{startState:function(){var Fe=ke.inMathMode?function(te,ee){return Je(te,ee)}:gt;return{cmdState:[],f:Fe}},copyState:function(Fe){return{cmdState:Fe.cmdState.slice(),f:Fe.f}},token:function(Fe,te){return te.f(Fe,te)},blankLine:function(Fe){Fe.f=gt,Fe.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(_e,be,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Ce={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},ke={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(Ie,He){var Te=Ie.indentUnit,ze={},ot=He.htmlMode?Ce:ke;for(var Ke in ot)ze[Ke]=ot[Ke];for(var Ke in He)ze[Ke]=He[Ke];var Be,gt;function Je(nt,yt){function vt(jt){return yt.tokenize=jt,jt(nt,yt)}var St=nt.next();if(St=="<")return nt.eat("!")?nt.eat("[")?nt.match("CDATA[")?vt(te("atom","]]>")):null:nt.match("--")?vt(te("comment","-->")):nt.match("DOCTYPE",!0,!0)?(nt.eatWhile(/[\w\._\-]/),vt(ee(1))):null:nt.eat("?")?(nt.eatWhile(/[\w\._\-]/),yt.tokenize=te("meta","?>"),"meta"):(Be=nt.eat("/")?"closeTag":"openTag",yt.tokenize=wt,"tag bracket");if(St=="&"){var Lt;return nt.eat("#")?nt.eat("x")?Lt=nt.eatWhile(/[a-fA-F\d]/)&&nt.eat(";"):Lt=nt.eatWhile(/[\d]/)&&nt.eat(";"):Lt=nt.eatWhile(/[\w\.\-:]/)&&nt.eat(";"),Lt?"atom":"error"}else return nt.eatWhile(/[^&<]/),null}Je.isInText=!0;function wt(nt,yt){var vt=nt.next();if(vt==">"||vt=="/"&&nt.eat(">"))return yt.tokenize=Je,Be=vt==">"?"endTag":"selfcloseTag","tag bracket";if(vt=="=")return Be="equals",null;if(vt=="<"){yt.tokenize=Je,yt.state=me,yt.tagName=yt.tagStart=null;var St=yt.tokenize(nt,yt);return St?St+" tag error":"tag error"}else return/[\'\"]/.test(vt)?(yt.tokenize=Fe(vt),yt.stringStartCol=nt.column(),yt.tokenize(nt,yt)):(nt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(nt){var yt=function(vt,St){for(;!vt.eol();)if(vt.next()==nt){St.tokenize=wt;break}return"string"};return yt.isInAttribute=!0,yt}function te(nt,yt){return function(vt,St){for(;!vt.eol();){if(vt.match(yt)){St.tokenize=Je;break}vt.next()}return nt}}function ee(nt){return function(yt,vt){for(var St;(St=yt.next())!=null;){if(St=="<")return vt.tokenize=ee(nt+1),vt.tokenize(yt,vt);if(St==">")if(nt==1){vt.tokenize=Je;break}else return vt.tokenize=ee(nt-1),vt.tokenize(yt,vt)}return"meta"}}function he(nt,yt,vt){this.prev=nt.context,this.tagName=yt,this.indent=nt.indented,this.startOfLine=vt,(ze.doNotIndent.hasOwnProperty(yt)||nt.context&&nt.context.noIndent)&&(this.noIndent=!0)}function ue(nt){nt.context&&(nt.context=nt.context.prev)}function fe(nt,yt){for(var vt;;){if(!nt.context||(vt=nt.context.tagName,!ze.contextGrabbers.hasOwnProperty(vt)||!ze.contextGrabbers[vt].hasOwnProperty(yt)))return;ue(nt)}}function me(nt,yt,vt){return nt=="openTag"?(vt.tagStart=yt.column(),Ee):nt=="closeTag"?Pe:me}function Ee(nt,yt,vt){return nt=="word"?(vt.tagName=yt.current(),gt="tag",tt):ze.allowMissingTagName&&nt=="endTag"?(gt="tag bracket",tt(nt,yt,vt)):(gt="error",Ee)}function Pe(nt,yt,vt){if(nt=="word"){var St=yt.current();return vt.context&&vt.context.tagName!=St&&ze.implicitlyClosed.hasOwnProperty(vt.context.tagName)&&ue(vt),vt.context&&vt.context.tagName==St||ze.matchClosing===!1?(gt="tag",Ne):(gt="tag error",We)}else return ze.allowMissingTagName&&nt=="endTag"?(gt="tag bracket",Ne(nt,yt,vt)):(gt="error",We)}function Ne(nt,yt,vt){return nt!="endTag"?(gt="error",Ne):(ue(vt),me)}function We(nt,yt,vt){return gt="error",Ne(nt,yt,vt)}function tt(nt,yt,vt){if(nt=="word")return gt="attribute",Ye;if(nt=="endTag"||nt=="selfcloseTag"){var St=vt.tagName,Lt=vt.tagStart;return vt.tagName=vt.tagStart=null,nt=="selfcloseTag"||ze.autoSelfClosers.hasOwnProperty(St)?fe(vt,St):(fe(vt,St),vt.context=new he(vt,St,Lt==vt.indented)),me}return gt="error",tt}function Ye(nt,yt,vt){return nt=="equals"?Qe:(ze.allowMissing||(gt="error"),tt(nt,yt,vt))}function Qe(nt,yt,vt){return nt=="string"?lt:nt=="word"&&ze.allowUnquoted?(gt="string",tt):(gt="error",tt(nt,yt,vt))}function lt(nt,yt,vt){return nt=="string"?lt:tt(nt,yt,vt)}return{startState:function(nt){var yt={tokenize:Je,state:me,indented:nt||0,tagName:null,tagStart:null,context:null};return nt!=null&&(yt.baseIndent=nt),yt},token:function(nt,yt){if(!yt.tagName&&nt.sol()&&(yt.indented=nt.indentation()),nt.eatSpace())return null;Be=null;var vt=yt.tokenize(nt,yt);return(vt||Be)&&vt!="comment"&&(gt=null,yt.state=yt.state(Be||vt,nt,yt),gt&&(vt=gt=="error"?vt+" error":gt)),vt},indent:function(nt,yt,vt){var St=nt.context;if(nt.tokenize.isInAttribute)return nt.tagStart==nt.indented?nt.stringStartCol+1:nt.indented+Te;if(St&&St.noIndent)return oe.Pass;if(nt.tokenize!=wt&&nt.tokenize!=Je)return vt?vt.match(/^(\s*)/)[0].length:0;if(nt.tagName)return ze.multilineTagIndentPastTag!==!1?nt.tagStart+nt.tagName.length+2:nt.tagStart+Te*(ze.multilineTagIndentFactor||1);if(ze.alignCDATA&&/<!\[CDATA\[/.test(yt))return 0;var Lt=yt&&/^<(\/)?([\w_:\.-]*)/.exec(yt);if(Lt&&Lt[1])for(;St;)if(St.tagName==Lt[2]){St=St.prev;break}else if(ze.implicitlyClosed.hasOwnProperty(St.tagName))St=St.prev;else break;else if(Lt)for(;St;){var jt=ze.contextGrabbers[St.tagName];if(jt&&jt.hasOwnProperty(Lt[2]))St=St.prev;else break}for(;St&&St.prev&&!St.startOfLine;)St=St.prev;return St?St.indent+Te:nt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ze.htmlMode?"html":"xml",helperType:ze.htmlMode?"html":"xml",skipAttribute:function(nt){nt.state==Qe&&(nt.state=tt)},xmlCurrentTag:function(nt){return nt.tagName?{name:nt.tagName,close:nt.type=="closeTag"}:null},xmlCurrentContext:function(nt){for(var yt=[],vt=nt.context;vt;vt=vt.prev)vt.tagName&&yt.push(vt.tagName);return yt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(_e,be){"use strict";var ae;be.Q=Ie,ae=He;var oe=",",Ce=" ",ke="";function Ie(Te){for(var ze=[],ot=String(Te||ke),Ke=ot.indexOf(oe),Be=0,gt=!1,Je;!gt;)Ke===-1&&(Ke=ot.length,gt=!0),Je=ot.slice(Be,Ke).trim(),(Je||!gt)&&ze.push(Je),Be=Ke+1,Ke=ot.indexOf(oe,Be);return ze}function He(Te,ze){var ot=ze||{},Ke=ot.padLeft===!1?ke:Ce,Be=ot.padRight?Ce:ke;return Te[Te.length-1]===ke&&(Te=Te.concat(ke)),Te.join(Be+oe+Ke).trim()}},86204:function(_e){"use strict";var be=typeof Reflect=="object"?Reflect:null,ae=be&&typeof be.apply=="function"?be.apply:function(me,Ee,Pe){return Function.prototype.apply.call(me,Ee,Pe)},oe;be&&typeof be.ownKeys=="function"?oe=be.ownKeys:Object.getOwnPropertySymbols?oe=function(me){return Object.getOwnPropertyNames(me).concat(Object.getOwnPropertySymbols(me))}:oe=function(me){return Object.getOwnPropertyNames(me)};function Ce(fe){console&&console.warn&&console.warn(fe)}var ke=Number.isNaN||function(me){return me!==me};function Ie(){Ie.init.call(this)}_e.exports=Ie,_e.exports.once=ee,Ie.EventEmitter=Ie,Ie.prototype._events=void 0,Ie.prototype._eventsCount=0,Ie.prototype._maxListeners=void 0;var He=10;function Te(fe){if(typeof fe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof fe)}Object.defineProperty(Ie,"defaultMaxListeners",{enumerable:!0,get:function(){return He},set:function(fe){if(typeof fe!="number"||fe<0||ke(fe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+fe+".");He=fe}}),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(me){if(typeof me!="number"||me<0||ke(me))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+me+".");return this._maxListeners=me,this};function ze(fe){return fe._maxListeners===void 0?Ie.defaultMaxListeners:fe._maxListeners}Ie.prototype.getMaxListeners=function(){return ze(this)},Ie.prototype.emit=function(me){for(var Ee=[],Pe=1;Pe<arguments.length;Pe++)Ee.push(arguments[Pe]);var Ne=me==="error",We=this._events;if(We!==void 0)Ne=Ne&&We.error===void 0;else if(!Ne)return!1;if(Ne){var tt;if(Ee.length>0&&(tt=Ee[0]),tt instanceof Error)throw tt;var Ye=new Error("Unhandled error."+(tt?" ("+tt.message+")":""));throw Ye.context=tt,Ye}var Qe=We[me];if(Qe===void 0)return!1;if(typeof Qe=="function")ae(Qe,this,Ee);else for(var lt=Qe.length,nt=wt(Qe,lt),Pe=0;Pe<lt;++Pe)ae(nt[Pe],this,Ee);return!0};function ot(fe,me,Ee,Pe){var Ne,We,tt;if(Te(Ee),We=fe._events,We===void 0?(We=fe._events=Object.create(null),fe._eventsCount=0):(We.newListener!==void 0&&(fe.emit("newListener",me,Ee.listener?Ee.listener:Ee),We=fe._events),tt=We[me]),tt===void 0)tt=We[me]=Ee,++fe._eventsCount;else if(typeof tt=="function"?tt=We[me]=Pe?[Ee,tt]:[tt,Ee]:Pe?tt.unshift(Ee):tt.push(Ee),Ne=ze(fe),Ne>0&&tt.length>Ne&&!tt.warned){tt.warned=!0;var Ye=new Error("Possible EventEmitter memory leak detected. "+tt.length+" "+String(me)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ye.name="MaxListenersExceededWarning",Ye.emitter=fe,Ye.type=me,Ye.count=tt.length,Ce(Ye)}return fe}Ie.prototype.addListener=function(me,Ee){return ot(this,me,Ee,!1)},Ie.prototype.on=Ie.prototype.addListener,Ie.prototype.prependListener=function(me,Ee){return ot(this,me,Ee,!0)};function Ke(){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 Be(fe,me,Ee){var Pe={fired:!1,wrapFn:void 0,target:fe,type:me,listener:Ee},Ne=Ke.bind(Pe);return Ne.listener=Ee,Pe.wrapFn=Ne,Ne}Ie.prototype.once=function(me,Ee){return Te(Ee),this.on(me,Be(this,me,Ee)),this},Ie.prototype.prependOnceListener=function(me,Ee){return Te(Ee),this.prependListener(me,Be(this,me,Ee)),this},Ie.prototype.removeListener=function(me,Ee){var Pe,Ne,We,tt,Ye;if(Te(Ee),Ne=this._events,Ne===void 0)return this;if(Pe=Ne[me],Pe===void 0)return this;if(Pe===Ee||Pe.listener===Ee)--this._eventsCount===0?this._events=Object.create(null):(delete Ne[me],Ne.removeListener&&this.emit("removeListener",me,Pe.listener||Ee));else if(typeof Pe!="function"){for(We=-1,tt=Pe.length-1;tt>=0;tt--)if(Pe[tt]===Ee||Pe[tt].listener===Ee){Ye=Pe[tt].listener,We=tt;break}if(We<0)return this;We===0?Pe.shift():Fe(Pe,We),Pe.length===1&&(Ne[me]=Pe[0]),Ne.removeListener!==void 0&&this.emit("removeListener",me,Ye||Ee)}return this},Ie.prototype.off=Ie.prototype.removeListener,Ie.prototype.removeAllListeners=function(me){var Ee,Pe,Ne;if(Pe=this._events,Pe===void 0)return this;if(Pe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Pe[me]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Pe[me]),this;if(arguments.length===0){var We=Object.keys(Pe),tt;for(Ne=0;Ne<We.length;++Ne)tt=We[Ne],tt!=="removeListener"&&this.removeAllListeners(tt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ee=Pe[me],typeof Ee=="function")this.removeListener(me,Ee);else if(Ee!==void 0)for(Ne=Ee.length-1;Ne>=0;Ne--)this.removeListener(me,Ee[Ne]);return this};function gt(fe,me,Ee){var Pe=fe._events;if(Pe===void 0)return[];var Ne=Pe[me];return Ne===void 0?[]:typeof Ne=="function"?Ee?[Ne.listener||Ne]:[Ne]:Ee?te(Ne):wt(Ne,Ne.length)}Ie.prototype.listeners=function(me){return gt(this,me,!0)},Ie.prototype.rawListeners=function(me){return gt(this,me,!1)},Ie.listenerCount=function(fe,me){return typeof fe.listenerCount=="function"?fe.listenerCount(me):Je.call(fe,me)},Ie.prototype.listenerCount=Je;function Je(fe){var me=this._events;if(me!==void 0){var Ee=me[fe];if(typeof Ee=="function")return 1;if(Ee!==void 0)return Ee.length}return 0}Ie.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function wt(fe,me){for(var Ee=new Array(me),Pe=0;Pe<me;++Pe)Ee[Pe]=fe[Pe];return Ee}function Fe(fe,me){for(;me+1<fe.length;me++)fe[me]=fe[me+1];fe.pop()}function te(fe){for(var me=new Array(fe.length),Ee=0;Ee<me.length;++Ee)me[Ee]=fe[Ee].listener||fe[Ee];return me}function ee(fe,me){return new Promise(function(Ee,Pe){function Ne(tt){fe.removeListener(me,We),Pe(tt)}function We(){typeof fe.removeListener=="function"&&fe.removeListener("error",Ne),Ee([].slice.call(arguments))}ue(fe,me,We,{once:!0}),me!=="error"&&he(fe,Ne,{once:!0})})}function he(fe,me,Ee){typeof fe.on=="function"&&ue(fe,"error",me,Ee)}function ue(fe,me,Ee,Pe){if(typeof fe.on=="function")Pe.once?fe.once(me,Ee):fe.on(me,Ee);else if(typeof fe.addEventListener=="function")fe.addEventListener(me,function Ne(We){Pe.once&&fe.removeEventListener(me,Ne),Ee(We)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof fe)}},58847:function(_e){"use strict";var be=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,oe=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,ke=function(ot){return typeof Array.isArray=="function"?Array.isArray(ot):ae.call(ot)==="[object Array]"},Ie=function(ot){if(!ot||ae.call(ot)!=="[object Object]")return!1;var Ke=be.call(ot,"constructor"),Be=ot.constructor&&ot.constructor.prototype&&be.call(ot.constructor.prototype,"isPrototypeOf");if(ot.constructor&&!Ke&&!Be)return!1;var gt;for(gt in ot);return typeof gt=="undefined"||be.call(ot,gt)},He=function(ot,Ke){oe&&Ke.name==="__proto__"?oe(ot,Ke.name,{enumerable:!0,configurable:!0,value:Ke.newValue,writable:!0}):ot[Ke.name]=Ke.newValue},Te=function(ot,Ke){if(Ke==="__proto__")if(be.call(ot,Ke)){if(Ce)return Ce(ot,Ke).value}else return;return ot[Ke]};_e.exports=function ze(){var ot,Ke,Be,gt,Je,wt,Fe=arguments[0],te=1,ee=arguments.length,he=!1;for(typeof Fe=="boolean"&&(he=Fe,Fe=arguments[1]||{},te=2),(Fe==null||typeof Fe!="object"&&typeof Fe!="function")&&(Fe={});te<ee;++te)if(ot=arguments[te],ot!=null)for(Ke in ot)Be=Te(Fe,Ke),gt=Te(ot,Ke),Fe!==gt&&(he&&gt&&(Ie(gt)||(Je=ke(gt)))?(Je?(Je=!1,wt=Be&&ke(Be)?Be:[]):wt=Be&&Ie(Be)?Be:{},He(Fe,{name:Ke,newValue:ze(he,wt,gt)})):typeof gt!="undefined"&&He(Fe,{name:Ke,newValue:gt}));return Fe}},12378:function(_e,be,ae){"use strict";ae.d(be,{$u:function(){return Ke},BD:function(){return qe},E9:function(){return ot},FF:function(){return Qn},FJ:function(){return me},Hn:function(){return fe},KX:function(){return Pe},NB:function(){return Ft},S0:function(){return Zt},UL:function(){return Be},Vk:function(){return ue},Vm:function(){return Gt},YI:function(){return In},ZA:function(){return ke},Zt:function(){return gt},al:function(){return De},bn:function(){return it},bx:function(){return Oe},g2:function(){return Dn},h1:function(){return Qe},hD:function(){return mt},l4:function(){return Te},rU:function(){return It},s_:function(){return Le},uz:function(){return Zn},z6:function(){return Je}}),_e=ae.hmd(_e),function(){var Me;function ii(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ti(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ii(a)}}function On(a){for(var y,E=[];!(y=a.next()).done;)E.push(y.value);return E}var ni=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ei;if(typeof Object.setPrototypeOf=="function")Ei=Object.setPrototypeOf;else{var ui;e:{var tr={a:!0},Sn={};try{Sn.__proto__=tr,ui=Sn.a;break e}catch(a){}ui=!1}Ei=ui?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var sn=Ei;function dn(a,y){if(a.prototype=ni(y.prototype),a.prototype.constructor=a,sn)sn(a,y);else for(var E in y)if(E!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,E);b&&Object.defineProperty(a,E,b)}else a[E]=y[E];a.QA=y.prototype}var _n=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,Ri=typeof Object.assign=="function"?Object.assign:function(a,y){for(var E=1;E<arguments.length;E++){var b=arguments[E];if(b)for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(a[x]=b[x])}return a},qn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,E){a!=Array.prototype&&a!=Object.prototype&&(a[y]=E.value)};function Ni(a,y){if(y){var E=_n;a=a.split(".");for(var b=0;b<a.length-1;b++){var x=a[b];x in E||(E[x]={}),E=E[x]}a=a[a.length-1],b=E[a],y=y(b),y!=b&&y!=null&&qn(E,a,{writable:!0,value:y})}}Ni("Object.assign",function(a){return a||Ri}),Ni("Array.prototype.fill",function(a){return a||function(y,E,b){var x=this.length||0;for(0>E&&(E=Math.max(0,x+E)),(b==null||b>x)&&(b=x),b=Number(b),0>b&&(b=Math.max(0,x+b)),E=Number(E||0);E<b;E++)this[E]=y;return this}});var mn=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.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 Hn(){}function Di(a,y){var E=-1;return function(){var b=this,x=arguments;E!==-1&&mn.clearTimeout(E),E=Yi(function(){E=-1,a.apply(b,x)},y)}}function Yi(a,y){return mn.setTimeout(a,y)}function mi(a){return mn.document.createElement(a)}function Ct(a){throw Error(a)}function $t(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ct(a)}function fi(a,y,E,b){E=E===null?"*":typeof E=="string"?E:typeof E=="function"&&typeof E.className=="string"?E.className:"",b!==void 0&&(E+="."+b),Ct(E+" is not in the range "+y+": "+a)}function gi(a){mn.console&&mn.console.log(a)}function zt(a){return typeof a=="object"&&a!==null}function pi(a){return Array.isArray(a)||mn.NodeList&&a instanceof mn.NodeList||mn.HTMLCollection&&a instanceof mn.HTMLCollection}function Fi(a){return Array.prototype.slice.call(a)}function Cn(a,y,E){Array.isArray(a)?y>=a.length?a.push(E):a.splice(y,0,E):Ct("Cannot insert an object into an HTMLCollection or NodeList: "+E+" at "+y)}function je(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ct("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Pi(){var a=Wr.pop();return a===void 0?[]:a}function Ai(a){a.length=0,Wr.push(a)}function Rn(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(zt(a)&&a.constructor)return Rn(a.constructor);return typeof a}function Ji(a){var y=a;return zt(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 _i(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var E=a.CA;if(E&&E[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Jn(a,y,E){Object.defineProperty(Fo.prototype,a,{get:y,set:E})}function ji(a){for(var y=[],E=0;256>E;E++)y["0123456789abcdef".charAt(E>>4)+"0123456789abcdef".charAt(E&15)]=String.fromCharCode(E);a.length%2&&(a="0"+a),E=[];for(var b=0,x=0;x<a.length;x+=2)E[b++]=y[a.substr(x,2)];for(a=E.join(""),a=a===""?"0":a,y=[],E=0;256>E;E++)y[E]=E;for(E=b=0;256>E;E++)b=(b+y[E]+119)%256,x=y[E],y[E]=y[b],y[b]=x;b=E=0;for(var z="",ne=0;ne<a.length;ne++)E=(E+1)%256,b=(b+y[E])%256,x=y[E],y[E]=y[b],y[b]=x,z+=String.fromCharCode(a.charCodeAt(ne)^y[(y[E]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var ln=mn.navigator!==void 0&&0<mn.navigator.userAgent.indexOf("Trident/7"),vr=mn.navigator!==void 0&&mn.navigator.platform!==void 0&&mn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Wr=[];Object.freeze([]),Hn.className="Util",Hn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Hn.adym="gojs.net",Hn.vfo="28e645fdb266",Hn.className="Util";function pn(a,y,E){ar(this),this.j=a,this.xa=y,this.o=E}pn.prototype.toString=function(){return"EnumValue."+this.xa};function ur(a,y){return y==null||y===""?null:a[y]}_n.Object.defineProperties(pn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),pn.className="EnumValue";function yr(){this.ew=[]}yr.prototype.toString=function(){return this.ew.join("")},yr.prototype.add=function(a){a!==""&&this.ew.push(a)},yr.className="StringBuilder";function ir(){}ir.className="PropertyCollection";var pr={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,E,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(E,E),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},E;for(E in a){if(y.x=E,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var x={Tj:0};x.Tj<y.Zl.length;x={Tj:x.Tj},x.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[x.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[x.Tj],{set:function(ne,re){return function(){throw Error("Property "+ne.Zl[re.Tj]+" of "+ne.x+" is read-only.")}}(y,x)})}}}y={Zl:y.Zl,x:y.x}}}};function Tr(){}Tr.prototype.reset=function(){},Tr.prototype.next=function(){return!1},Tr.prototype.Ad=function(){return!1},Tr.prototype.first=function(){return null},Tr.prototype.any=function(){return!1},Tr.prototype.all=function(){return!0},Tr.prototype.each=function(){return this},Tr.prototype.map=function(){return this},Tr.prototype.filter=function(){return this},Tr.prototype.de=function(){},Tr.prototype.toString=function(){return"EmptyIterator"},_n.Object.defineProperties(Tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Tr.prototype.first=Tr.prototype.first,Tr.prototype.hasNext=Tr.prototype.Ad,Tr.prototype.next=Tr.prototype.next,Tr.prototype.reset=Tr.prototype.reset;var Br=null;Tr.className="EmptyIterator",Br=new Tr;function Ar(a){this.key=-1,this.value=a}Ar.prototype.reset=function(){this.key=-1},Ar.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Ar.prototype.Ad=function(){return this.next()},Ar.prototype.first=function(){return this.key=0,this.value},Ar.prototype.any=function(a){return this.key=-1,a(this.value)},Ar.prototype.all=function(a){return this.key=-1,a(this.value)},Ar.prototype.each=function(a){return this.key=-1,a(this.value),this},Ar.prototype.map=function(a){return new Ar(a(this.value))},Ar.prototype.filter=function(a){return a(this.value)?new Ar(this.value):Br},Ar.prototype.de=function(){this.value=null},Ar.prototype.toString=function(){return"SingletonIterator("+this.value+")"},_n.Object.defineProperties(Ar.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Ar.prototype.first=Ar.prototype.first,Ar.prototype.hasNext=Ar.prototype.Ad,Ar.prototype.next=Ar.prototype.next,Ar.prototype.reset=Ar.prototype.reset,Ar.className="SingletonIterator";function br(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}br.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},br.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,E=++this.Za,b=this.qf;if(b!==null)for(;E<y;){var x=a[E];if(b(x))return this.key=this.Za=E,this.value=x,!0;E++}else{if(E<y)return this.key=E,this.value=a[E],!0;this.de()}return!1},br.prototype.Ad=function(){return this.next()},br.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,E=this.qf;if(E!==null){for(var b=0;b<y;){var x=a[b];if(E(x))return this.key=this.Za=b,this.value=x;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},br.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,b=this.qf,x=0;x<E;x++){var z=y[x];if((b===null||b(z))&&a(z))return!0}return!1},br.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,b=this.qf,x=0;x<E;x++){var z=y[x];if((b===null||b(z))&&!a(z))return!1}return!0},br.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var E=y.length,b=this.qf,x=0;x<E;x++){var z=y[x];(b===null||b(z))&&a(z)}return this},br.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var b=y.length,x=this.qf,z=0;z<b;z++){var ne=y[z];(x===null||x(ne))&&E.push(a(ne))}return a=new Wn,a.s=E,a.xb(),a.iterator},br.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var E=[];y=y.s;for(var b=y.length,x=this.qf,z=0;z<b;z++){var ne=y[z];(x===null||x(ne))&&a(ne)&&E.push(ne)}return a=new Wn,a.s=E,a.xb(),a.iterator},br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},br.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},_n.Object.defineProperties(br.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,E=this.Bb.s,b=E.length,x=0;x<b;x++)a(E[x])&&y++;return y}return this.Bb.s.length}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset,br.className="ListIterator";function _r(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}_r.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},_r.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)},_r.prototype.Ad=function(){return this.next()},_r.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},_r.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(a(y[E]))return!0;return!1},_r.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)if(!a(y[E]))return!1;return!0},_r.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)a(y[E]);return this},_r.prototype.map=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)E.push(a(y[b]));return a=new Wn,a.s=E,a.xb(),a.iterator},_r.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var E=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var x=y[b];a(x)&&E.push(x)}return a=new Wn,a.s=E,a.xb(),a.iterator},_r.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},_r.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},_n.Object.defineProperties(_r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),_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="ListIteratorBackwards";function Wn(a){ar(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ct("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=Wn.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"List()#"+Sr(this)},Me.add=function(a){return a===null?this:(this._isFrozen&&$t(this,a),this.s.push(a),this.xb(),this)},Me.push=function(a){this.add(a)},Me.addAll=function(a){if(a===null)return this;this._isFrozen&&$t(this);var y=this.s;if(pi(a))for(var E=a.length,b=0;b<E;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Me.clear=function(){this._isFrozen&&$t(this),this.s.length=0,this.xb()},Me.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Me.has=function(a){return this.contains(a)},Me.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Me.M=function(a){var y=this.s;return(0>a||a>=y.length)&&fi(a,"0 <= i < length",Wn,"elt:i"),y[a]},Me.get=function(a){return this.M(a)},Me.cd=function(a,y){var E=this.s;(0>a||a>=E.length)&&fi(a,"0 <= i < length",Wn,"setElt:i"),this._isFrozen&&$t(this,a),E[a]=y},Me.set=function(a,y){this.cd(a,y)},Me.first=function(){var a=this.s;return a.length===0?null:a[0]},Me.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Me.pop=function(){this._isFrozen&&$t(this);var a=this.s;return 0<a.length?a.pop():null},Wn.prototype.any=function(a){for(var y=this.s,E=y.length,b=0;b<E;b++)if(a(y[b]))return!0;return!1},Wn.prototype.all=function(a){for(var y=this.s,E=y.length,b=0;b<E;b++)if(!a(y[b]))return!1;return!0},Wn.prototype.each=function(a){for(var y=this.s,E=y.length,b=0;b<E;b++)a(y[b]);return this},Wn.prototype.map=function(a){for(var y=new Wn,E=[],b=this.s,x=b.length,z=0;z<x;z++)E.push(a(b[z]));return y.s=E,y.xb(),y},Wn.prototype.filter=function(a){for(var y=new Wn,E=[],b=this.s,x=b.length,z=0;z<x;z++){var ne=b[z];a(ne)&&E.push(ne)}return y.s=E,y.xb(),y},Me=Wn.prototype,Me.Gb=function(a,y){0>a&&fi(a,">= 0",Wn,"insertAt:i"),this._isFrozen&&$t(this,a);var E=this.s;a>=E.length?E.push(y):E.splice(a,0,y),this.xb()},Me.remove=function(a){if(a===null)return!1;this._isFrozen&&$t(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)},Me.delete=function(a){return this.remove(a)},Me.mb=function(a){var y=this.s;(0>a||a>=y.length)&&fi(a,"0 <= i < length",Wn,"removeAt:i"),this._isFrozen&&$t(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Me.removeRange=function(a,y){var E=this.s,b=E.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&$t(this);for(var x=a,z=y+1;z<b;)E[x++]=E[z++];return E.length=b-(y-a+1),this.xb(),this},Wn.prototype.copy=function(){var a=new Wn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Me=Wn.prototype,Me.Fa=function(){for(var a=this.s,y=this.count,E=Array(y),b=0;b<y;b++)E[b]=a[b];return E},Me.Iv=function(){for(var a=new $n,y=this.s,E=this.count,b=0;b<E;b++)a.add(y[b]);return a},Me.sort=function(a){return this._isFrozen&&$t(this),this.s.sort(a),this.xb(),this},Me.zi=function(a,y,E){var b=this.s,x=b.length;y===void 0&&(y=0),E===void 0&&(E=x),this._isFrozen&&$t(this);var z=E-y;if(1>=z)return this;if((0>y||y>=x-1)&&fi(y,"0 <= from < length",Wn,"sortRange:from"),z===2)return E=b[y],x=b[y+1],0<a(E,x)&&(b[y]=x,b[y+1]=E,this.xb()),this;if(y===0)if(E>=x)b.sort(a);else for(y=b.slice(0,E),y.sort(a),a=0;a<E;a++)b[a]=y[a];else if(E>=x)for(E=b.slice(y),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];else for(x=b.slice(y,E),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];return this.xb(),this},Me.reverse=function(){return this._isFrozen&&$t(this),this.s.reverse(),this.xb(),this},_n.Object.defineProperties(Wn.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 Br;var a=this.Sa;return a!==null?(a.reset(),a):new br(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Br;var a=this.Hg;return a!==null?(a.reset(),a):new _r(this)}}}),Wn.prototype.reverse=Wn.prototype.reverse,Wn.prototype.sortRange=Wn.prototype.zi,Wn.prototype.sort=Wn.prototype.sort,Wn.prototype.toSet=Wn.prototype.Iv,Wn.prototype.toArray=Wn.prototype.Fa,Wn.prototype.removeRange=Wn.prototype.removeRange,Wn.prototype.removeAt=Wn.prototype.mb,Wn.prototype.delete=Wn.prototype.delete,Wn.prototype.remove=Wn.prototype.remove,Wn.prototype.insertAt=Wn.prototype.Gb,Wn.prototype.pop=Wn.prototype.pop,Wn.prototype.last=Wn.prototype.jc,Wn.prototype.first=Wn.prototype.first,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setElt=Wn.prototype.cd,Wn.prototype.get=Wn.prototype.get,Wn.prototype.elt=Wn.prototype.M,Wn.prototype.indexOf=Wn.prototype.indexOf,Wn.prototype.has=Wn.prototype.has,Wn.prototype.contains=Wn.prototype.contains,Wn.prototype.clear=Wn.prototype.clear,Wn.prototype.addAll=Wn.prototype.addAll,Wn.prototype.push=Wn.prototype.push,Wn.prototype.add=Wn.prototype.add,Wn.prototype.thaw=Wn.prototype.ka,Wn.prototype.freeze=Wn.prototype.freeze,Wn.className="List";function xr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}xr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},xr.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)},xr.prototype.Ad=function(){return this.next()},xr.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},xr.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},xr.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},xr.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},xr.prototype.map=function(a){var y=this.eg;y.Sa=null;var E=new Wn;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},xr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var E=new Wn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&E.add(b),y=y.va}return E.iterator},xr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},xr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},_n.Object.defineProperties(xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),xr.prototype.first=xr.prototype.first,xr.prototype.hasNext=xr.prototype.Ad,xr.prototype.next=xr.prototype.next,xr.prototype.reset=xr.prototype.reset,xr.className="SetIterator";function $n(a){ar(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ct("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=$n.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"Set()#"+Sr(this)},Me.add=function(a){if(a===null)return this;this._isFrozen&&$t(this,a);var y=a;return zt(a)&&(y=Nr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ln(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},Me.addAll=function(a){if(a===null)return this;if(this._isFrozen&&$t(this),pi(a))for(var y=a.length,E=0;E<y;E++)this.add(a[E]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Me.contains=function(a){if(a===null)return!1;var y=a;return zt(a)&&(y=Sr(a),y===void 0)?!1:this.Tb[y]!==void 0},Me.has=function(a){return this.contains(a)},Me.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Me.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Me.first=function(){var a=this.ea;return a===null?null:a.value},$n.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},$n.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},$n.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},$n.prototype.map=function(a){for(var y=new $n,E=this.ea;E!==null;)y.add(a(E.value)),E=E.va;return y},$n.prototype.filter=function(a){for(var y=new $n,E=this.ea;E!==null;){var b=E.value;a(b)&&y.add(b),E=E.va}return y},Me=$n.prototype,Me.remove=function(a){if(a===null)return!1;this._isFrozen&&$t(this,a);var y=a;if(zt(a)&&(y=Sr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,b=a.ll;return E!==null&&(E.ll=b),b!==null&&(b.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Me.delete=function(a){return this.remove(a)},Me.hp=function(a){if(a===null)return this;if(this._isFrozen&&$t(this),pi(a))for(var y=a.length,E=0;E<y;E++)this.remove(a[E]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Me.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&$t(this);var y=new $n;y.addAll(a),a=[];for(var E=this.iterator;E.next();){var b=E.value;y.contains(b)||a.push(b)}return this.hp(a),this},Me.clear=function(){this._isFrozen&&$t(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},$n.prototype.copy=function(){var a=new $n,y=this.Tb,E;for(E in y)a.add(y[E].value);return a},$n.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,E=0,b;for(b in y)a[E]=y[b].value,E++;return a},$n.prototype.Hv=function(){var a=new Wn,y=this.Tb,E;for(E in y)a.add(y[E].value);return a};function ar(a){a.__gohashid=Xr++}function Nr(a){var y=a.__gohashid;return y===void 0&&(y=Xr++,a.__gohashid=y),y}function Sr(a){return a.__gohashid}_n.Object.defineProperties($n.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Br;var a=this.Sa;return a!==null?(a.reset(),a):new xr(this)}}}),$n.prototype.toList=$n.prototype.Hv,$n.prototype.toArray=$n.prototype.Fa,$n.prototype.clear=$n.prototype.clear,$n.prototype.retainAll=$n.prototype.pA,$n.prototype.removeAll=$n.prototype.hp,$n.prototype.delete=$n.prototype.delete,$n.prototype.remove=$n.prototype.remove,$n.prototype.first=$n.prototype.first,$n.prototype.containsAny=$n.prototype.Ty,$n.prototype.containsAll=$n.prototype.Sy,$n.prototype.has=$n.prototype.has,$n.prototype.contains=$n.prototype.contains,$n.prototype.addAll=$n.prototype.addAll,$n.prototype.add=$n.prototype.add,$n.prototype.thaw=$n.prototype.ka,$n.prototype.freeze=$n.prototype.freeze;var Xr=1;$n.className="Set",$n.uniqueHash=ar,$n.hashIdUnique=Nr,$n.hashId=Sr;function Zr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Zr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Zr.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)},Zr.prototype.Ad=function(){return this.next()},Zr.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},Zr.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},Zr.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},Zr.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},Zr.prototype.map=function(a){var y=this.ma;this.sa=null;var E=new Wn;for(y=y.ea;y!==null;)E.add(a(y.key)),y=y.va;return E.iterator},Zr.prototype.filter=function(a){var y=this.ma;this.sa=null;var E=new Wn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&E.add(b),y=y.va}return E.iterator},Zr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Zr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},_n.Object.defineProperties(Zr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset,Zr.className="MapKeySetIterator";function Rr(a){$n.call(this),ar(this),this._isFrozen=!0,this.ma=a}dn(Rr,$n),Me=Rr.prototype,Me.freeze=function(){return this},Me.ka=function(){return this},Me.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Me.add=function(){Ct("This Set is read-only: "+this.toString())},Me.contains=function(a){return this.ma.contains(a)},Me.has=function(a){return this.contains(a)},Me.remove=function(){Ct("This Set is read-only: "+this.toString())},Me.delete=function(a){return this.remove(a)},Me.clear=function(){Ct("This Set is read-only: "+this.toString())},Me.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Rr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Rr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Rr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Rr.prototype.map=function(a){for(var y=new $n,E=this.ma.ea;E!==null;)y.add(a(E.key)),E=E.va;return y},Rr.prototype.filter=function(a){for(var y=new $n,E=this.ma.ea;E!==null;){var b=E.key;a(b)&&y.add(b),E=E.va}return y},Rr.prototype.copy=function(){return new Rr(this.ma)},Rr.prototype.Iv=function(){var a=new $n,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},Rr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),E=0,b;for(b in a)y[E]=a[b].key,E++;return y},Rr.prototype.Hv=function(){var a=new Wn,y=this.ma.Tb,E;for(E in y)a.add(y[E].key);return a},_n.Object.defineProperties(Rr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Br:new Zr(this.ma)}}}),Rr.prototype.toList=Rr.prototype.Hv,Rr.prototype.toArray=Rr.prototype.Fa,Rr.prototype.toSet=Rr.prototype.Iv,Rr.prototype.first=Rr.prototype.first,Rr.prototype.clear=Rr.prototype.clear,Rr.prototype.delete=Rr.prototype.delete,Rr.prototype.remove=Rr.prototype.remove,Rr.prototype.has=Rr.prototype.has,Rr.prototype.contains=Rr.prototype.contains,Rr.prototype.add=Rr.prototype.add,Rr.prototype.thaw=Rr.prototype.ka,Rr.prototype.freeze=Rr.prototype.freeze,Rr.className="MapKeySet";function So(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}So.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},So.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)},So.prototype.Ad=function(){return this.next()},So.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},So.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},So.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},So.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},So.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Wn;for(y=y.ea;y!==null;)E.add(a(y.value)),y=y.va;return E.iterator},So.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var E=new Wn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&E.add(b),y=y.va}return E.iterator},So.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},So.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},_n.Object.defineProperties(So.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),So.prototype.first=So.prototype.first,So.prototype.hasNext=So.prototype.Ad,So.prototype.next=So.prototype.next,So.prototype.reset=So.prototype.reset,So.className="MapValueSetIterator";function Ln(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ln.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ln.className="KeyValuePair";function ci(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ci.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ci.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)},ci.prototype.Ad=function(){return this.next()},ci.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},ci.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},ci.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},ci.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},ci.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Wn;for(y=y.ea;y!==null;)E.add(a(y)),y=y.va;return E.iterator},ci.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var E=new Wn;for(y=y.ea;y!==null;)a(y)&&E.add(y),y=y.va;return E.iterator},ci.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ci.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},_n.Object.defineProperties(ci.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ci.prototype.first=ci.prototype.first,ci.prototype.hasNext=ci.prototype.Ad,ci.prototype.next=ci.prototype.next,ci.prototype.reset=ci.prototype.reset,ci.className="MapIterator";function yn(a){ar(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"&&Ct("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=yn.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"Map()#"+Sr(this)},Me.add=function(a,y){this._isFrozen&&$t(this,a);var E=a;zt(a)&&(E=Nr(a));var b=this.Tb[E];return b===void 0?(this.Sb++,a=new Ln(a,y),this.Tb[E]=a,E=this.kf,E===null?this.ea=a:(a.ll=E,E.va=a),this.kf=a,this.xb()):b.value=y,this},Me.set=function(a,y){return this.add(a,y)},Me.addAll=function(a){if(a===null)return this;if(pi(a))for(var y=a.length,E=0;E<y;E++){var b=a[E];this.add(b.key,b.value)}else if(a instanceof yn)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},Me.first=function(){return this.ea},yn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},yn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},yn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},yn.prototype.map=function(a){for(var y=new yn,E=this.ea;E!==null;)y.add(E.key,a(E)),E=E.va;return y},yn.prototype.filter=function(a){for(var y=new yn,E=this.ea;E!==null;)a(E)&&y.add(E.key,E.value),E=E.va;return y},Me=yn.prototype,Me.contains=function(a){var y=a;return zt(a)&&(y=Sr(a),y===void 0)?!1:this.Tb[y]!==void 0},Me.has=function(a){return this.contains(a)},Me.I=function(a){var y=a;return zt(a)&&(y=Sr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Me.get=function(a){return this.I(a)},Me.remove=function(a){if(a===null)return!1;this._isFrozen&&$t(this,a);var y=a;if(zt(a)&&(y=Sr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var E=a.va,b=a.ll;return E!==null&&(E.ll=b),b!==null&&(b.va=E),this.ea===a&&(this.ea=E),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Me.delete=function(a){return this.remove(a)},Me.clear=function(){this._isFrozen&&$t(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()},yn.prototype.copy=function(){var a=new yn,y=this.Tb,E;for(E in y){var b=y[E];a.add(b.key,b.value)}return a},yn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),E=0,b;for(b in a){var x=a[b];y[E]=new Ln(x.key,x.value),E++}return y},yn.prototype.Lf=function(){return new Rr(this)},_n.Object.defineProperties(yn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Br;var a=this.Sa;return a!==null?(a.reset(),a):new ci(this)}},iteratorKeys:{get:function(){return 0>=this.count?Br:new Zr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Br;var a=this.jf;return a!==null?(a.reset(),a):new So(this)}}}),yn.prototype.toKeySet=yn.prototype.Lf,yn.prototype.toArray=yn.prototype.Fa,yn.prototype.clear=yn.prototype.clear,yn.prototype.delete=yn.prototype.delete,yn.prototype.remove=yn.prototype.remove,yn.prototype.get=yn.prototype.get,yn.prototype.getValue=yn.prototype.I,yn.prototype.has=yn.prototype.has,yn.prototype.contains=yn.prototype.contains,yn.prototype.first=yn.prototype.first,yn.prototype.addAll=yn.prototype.addAll,yn.prototype.set=yn.prototype.set,yn.prototype.add=yn.prototype.add,yn.prototype.thaw=yn.prototype.ka,yn.prototype.freeze=yn.prototype.freeze,yn.className="Map";function rt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ct("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Ii,Hi,nr,qi,Zi;rt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},rt.prototype.h=function(a,y){return this.x=a,this.y=y,this},rt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},rt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},rt.prototype.copy=function(){var a=new rt;return a.x=this.x,a.y=this.y,a},Me=rt.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function di(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;return(b=a[y++])&&(x=parseFloat(b)),new rt(E,x)}return new rt}function dt(a){return a.x.toString()+" "+a.y.toString()}Me.toString=function(){return"Point("+this.x+","+this.y+")"},Me.D=function(a){return a instanceof rt?this.x===a.x&&this.y===a.y:!1},Me.hi=function(a,y){return this.x===a&&this.y===y},Me.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)},Me.add=function(a){return this.x+=a.x,this.y+=a.y,this},Me.re=function(a){return this.x-=a.x,this.y-=a.y,this},Me.offset=function(a,y){return this.x+=a,this.y+=y,this},rt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,E=this.y;if(y===0&&E===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*E,this.y=b*y+a*E,this},Me=rt.prototype,Me.scale=function(a,y){return this.x*=a,this.y*=y,this},Me.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Me.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Me.normalize=function(){var a=this.x,y=this.y,E=Math.sqrt(a*a+y*y);return 0<E&&(this.x=a/E,this.y=y/E),this},Me.ab=function(a){return gn(a.x-this.x,a.y-this.y)},Me.direction=function(a,y){return gn(a-this.x,y-this.y)};function gn(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 E=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E}Me.Ry=function(a,y){return Qt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Me.fA=function(a,y,E,b){return Qt.qh(a,y,E,b,this.x,this.y,this),this},Me.gA=function(a,y){return Qt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Me.uA=function(a,y,E,b){return Qt.No(this.x,this.y,a,y,E,b,this),this},Me.vA=function(a,y){return Qt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Me.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},Me.yi=function(a,y,E,b,x){return this.x=a+x.x*E+x.offsetX,this.y=y+x.y*b+x.offsetY,this},Me.transform=function(a){return a.Ga(this),this};function vn(a,y){return y.Cd(a),a}function Bn(a,y,E,b,x,z){var ne=x-E,re=z-b,se=ne*ne+re*re;E-=a,b-=y;var de=-E*ne-b*re;return 0>=de||de>=se?(ne=x-a,re=z-y,Math.min(E*E+b*b,ne*ne+re*re)):(a=ne*b-re*E,a*a/se)}function hn(a,y,E,b){return a=E-a,y=b-y,a*a+y*y}function Yn(a,y,E,b){return a=E-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Me.w=function(){return isFinite(this.x)&&isFinite(this.y)},rt.alloc=function(){var a=Gn.pop();return a===void 0?new rt:a},rt.allocAt=function(a,y){var E=Gn.pop();return E===void 0?new rt(a,y):(E.x=a,E.y=y,E)},rt.free=function(a){Gn.push(a)},rt.prototype.isReal=rt.prototype.w,rt.prototype.setSpot=rt.prototype.yi,rt.prototype.setRectSpot=rt.prototype.xi,rt.prototype.snapToGridPoint=rt.prototype.vA,rt.prototype.snapToGrid=rt.prototype.uA,rt.prototype.projectOntoLineSegmentPoint=rt.prototype.gA,rt.prototype.projectOntoLineSegment=rt.prototype.fA,rt.intersectingLineSegments=function(a,y,E,b,x,z,ne,re){return Qt.Rl(a,y,E,b,x,z,ne,re)},rt.prototype.compareWithLineSegmentPoint=rt.prototype.Ry,rt.compareWithLineSegment=function(a,y,E,b,x,z){return Qt.Fl(a,y,E,b,x,z)},rt.prototype.direction=rt.prototype.direction,rt.prototype.directionPoint=rt.prototype.ab,rt.prototype.normalize=rt.prototype.normalize,rt.prototype.distanceSquared=rt.prototype.zd,rt.prototype.distanceSquaredPoint=rt.prototype.Bf,rt.prototype.scale=rt.prototype.scale,rt.prototype.rotate=rt.prototype.rotate,rt.prototype.offset=rt.prototype.offset,rt.prototype.subtract=rt.prototype.re,rt.prototype.add=rt.prototype.add,rt.prototype.equalsApprox=rt.prototype.Xa,rt.prototype.equalTo=rt.prototype.hi,rt.prototype.equals=rt.prototype.D,rt.prototype.set=rt.prototype.set,rt.prototype.setTo=rt.prototype.sg;var Gn=[];rt.className="Point",rt.parse=di,rt.stringify=dt,rt.distanceLineSegmentSquared=Bn,rt.distanceSquared=hn,rt.direction=Yn,rt.Origin=Ii=new rt(0,0).ja(),rt.InfiniteTopLeft=Hi=new rt(-1/0,-1/0).ja(),rt.InfiniteBottomRight=nr=new rt(1/0,1/0).ja(),rt.SixPoint=qi=new rt(6,6).ja(),rt.NoPoint=Zi=new rt(NaN,NaN).ja(),rt.parse=di,rt.stringify=dt,rt.distanceLineSegmentSquared=Bn,rt.distanceSquared=hn,rt.direction=Yn;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):Ct("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ri,Bi,dr,Ki,sr,gr,wr;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},Me=en.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function zr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;return(b=a[y++])&&(x=parseFloat(b)),new en(E,x)}return new en}function eo(a){return a.width.toString()+" "+a.height.toString()}Me.toString=function(){return"Size("+this.width+","+this.height+")"},Me.D=function(a){return a instanceof en?this.width===a.width&&this.height===a.height:!1},Me.hi=function(a,y){return this.width===a&&this.height===y},Me.Xa=function(a){return Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)},Me.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},Me.w=function(){return isFinite(this.width)&&isFinite(this.height)},en.alloc=function(){var a=yo.pop();return a===void 0?new en:a},en.free=function(a){yo.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 yo=[];en.className="Size",en.parse=zr,en.stringify=eo,en.ZeroSize=ri=new en(0,0).ja(),en.OneSize=Bi=new en(1,1).ja(),en.SixSize=dr=new en(6,6).ja(),en.EightSize=Ki=new en(8,8).ja(),en.TenSize=sr=new en(10,10).ja(),en.InfiniteSize=gr=new en(1/0,1/0).ja(),en.NoSize=wr=new en(NaN,NaN).ja(),en.parse=zr,en.stringify=eo;function xn(a,y,E,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof E=="number"&&(0<=E||isNaN(E))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=E,this.height=b):a instanceof rt?(E=a.x,a=a.y,y instanceof rt?(b=y.x,y=y.y,this.x=Math.min(E,b),this.y=Math.min(a,y),this.width=Math.abs(E-b),this.height=Math.abs(a-y)):y instanceof en?(this.x=E,this.y=a,this.width=y.width,this.height=y.height):Ct("Incorrect second argument supplied to Rect constructor "+y)):Ct("Invalid arguments to Rect constructor: "+a+", "+y+", "+E+", "+b),this._isFrozen=!1}Me=xn.prototype,Me.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Me.h=function(a,y,E,b){return this.x=a,this.y=y,this.width=E,this.height=b,this};function so(a,y,E){a.width=y,a.height=E}Me.sg=function(a,y,E,b){return this.x=a,this.y=y,this.width=E,this.height=b,this},Me.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Me.dd=function(a){return this.x=a.x,this.y=a.y,this},Me.tA=function(a){return this.width=a.width,this.height=a.height,this},xn.prototype.copy=function(){var a=new xn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Me=xn.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;(b=a[y++])&&(x=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var ne=0;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),new xn(E,x,z,ne)}return new xn}function Lr(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Me.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Me.D=function(a){return a instanceof xn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Me.hi=function(a,y,E,b){return this.x===a&&this.y===y&&this.width===E&&this.height===b},Me.Xa=function(a){return Qt.B(this.x,a.x)&&Qt.B(this.y,a.y)&&Qt.B(this.width,a.width)&&Qt.B(this.height,a.height)};function Cr(a,y){return Qt.$(a.x,y.x)&&Qt.$(a.y,y.y)&&Qt.$(a.width,y.width)&&Qt.$(a.height,y.height)}Me.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Me.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},Me.contains=function(a,y,E,b){return E===void 0&&(E=0),b===void 0&&(b=0),this.x<=a&&a+E<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Me.offset=function(a,y){return this.x+=a,this.y+=y,this},Me.Bc=function(a,y){return fo(this,y,a,y,a)},Me.Co=function(a){return fo(this,a.top,a.right,a.bottom,a.left)},Me.Fv=function(a){return fo(this,-a.top,-a.right,-a.bottom,-a.left)},Me.Hz=function(a,y,E,b){return fo(this,a,y,E,b)};function fo(a,y,E,b,x){var z=a.width;return E+x<=-z?(a.x+=z/2,a.width=0):(a.x-=x,a.width+=E+x),E=a.height,y+b<=-E?(a.y+=E/2,a.height=0):(a.y-=y,a.height+=y+b),a}Me.Ex=function(a){return Co(this,a.x,a.y,a.width,a.height)},Me.Uu=function(a,y,E,b){return Co(this,a,y,E,b)};function Co(a,y,E,b,x){var z=Math.max(a.x,y),ne=Math.max(a.y,E);return y=Math.min(a.x+a.width,y+b),E=Math.min(a.y+a.height,E+x),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,E-ne),a}Me.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Me.Vu=function(a,y,E,b){var x=this.width,z=this.x;return x!==1/0&&E!==1/0&&(x+=z,E+=a,isNaN(E)||isNaN(x)||z>E||a>x)?!1:(a=this.height,E=this.y,!(a!==1/0&&b!==1/0&&(a+=E,b+=y,isNaN(b)||isNaN(a)||E>b||y>a)))};function Fn(a,y){var E=a.width,b=a.x,x=y.x-10;return b>y.width+10+10+x||x>E+b?!1:(E=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>E+a))}Me.Ye=function(a){return Jr(this,a.x,a.y,0,0)},Me.ed=function(a){return Jr(this,a.x,a.y,a.width,a.height)},Me.Kv=function(a,y,E,b){return E===void 0&&(E=0),b===void 0&&(b=0),Jr(this,a,y,E,b)};function Jr(a,y,E,b,x){var z=Math.min(a.x,y),ne=Math.min(a.y,E);return y=Math.max(a.x+a.width,y+b),E=Math.max(a.y+a.height,E+x),a.x=z,a.y=ne,a.width=y-z,a.height=E-ne,a}Me.yi=function(a,y,E){return this.x=a-E.offsetX-E.x*this.width,this.y=y-E.offsetY-E.y*this.height,this};function Do(a,y,E,b,x,z,ne,re){return ne===void 0&&(ne=0),re===void 0&&(re=0),a<=x&&x+ne<=a+E&&y<=z&&z+re<=y+b}function ma(a,y,E,b,x,z,ne,re){return a>ne+x||x>E+a?!1:!(y>re+z||z>b+y)}Me.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Me.Mz=function(){return this.width===0&&this.height===0},xn.alloc=function(){var a=as.pop();return a===void 0?new xn:a},xn.allocAt=function(a,y,E,b){var x=as.pop();return x===void 0?new xn(a,y,E,b):x.h(a,y,E,b)},xn.free=function(a){as.push(a)},_n.Object.defineProperties(xn.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 rt(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 rt(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}}}),xn.prototype.isEmpty=xn.prototype.Mz,xn.prototype.isReal=xn.prototype.w,xn.intersectsLineSegment=function(a,y,E,b,x,z,ne,re){return Qt.Fx(a,y,E,b,x,z,ne,re)},xn.prototype.setSpot=xn.prototype.yi,xn.prototype.union=xn.prototype.Kv,xn.prototype.unionRect=xn.prototype.ed,xn.prototype.unionPoint=xn.prototype.Ye,xn.prototype.intersects=xn.prototype.Vu,xn.prototype.intersectsRect=xn.prototype.Yc,xn.prototype.intersect=xn.prototype.Uu,xn.prototype.intersectRect=xn.prototype.Ex,xn.prototype.grow=xn.prototype.Hz,xn.prototype.subtractMargin=xn.prototype.Fv,xn.prototype.addMargin=xn.prototype.Co,xn.prototype.inflate=xn.prototype.Bc,xn.prototype.offset=xn.prototype.offset,xn.prototype.contains=xn.prototype.contains,xn.prototype.containsRect=xn.prototype.Re,xn.prototype.containsPoint=xn.prototype.ca,xn.prototype.equalsApprox=xn.prototype.Xa,xn.prototype.equalTo=xn.prototype.hi,xn.prototype.equals=xn.prototype.D,xn.prototype.setSize=xn.prototype.tA,xn.prototype.setPoint=xn.prototype.dd,xn.prototype.set=xn.prototype.set,xn.prototype.setTo=xn.prototype.sg;var Ga=null,js=null,as=[];xn.className="Rect",xn.parse=Qr,xn.stringify=Lr,xn.contains=Do,xn.intersects=ma,xn.ZeroRect=Ga=new xn(0,0,0,0).ja(),xn.NoRect=js=new xn(NaN,NaN,NaN,NaN).ja(),xn.parse=Qr,xn.stringify=Lr,xn.contains=Do,xn.intersects=ma;function Fr(a,y,E,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:E===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=E,this.left=b):Ct("Invalid arguments to Margin constructor: "+a+", "+y+", "+E+", "+b),this._isFrozen=!1}Fr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Fr.prototype.sg=function(a,y,E,b){return this.top=a,this.right=y,this.bottom=E,this.left=b,this},Fr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Fr.prototype.copy=function(){var a=new Fr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Me=Fr.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function la(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,E=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(E=parseFloat(b)),isNaN(E))return new Fr;for(var x=NaN;a[y]==="";)y++;if((b=a[y++])&&(x=parseFloat(b)),isNaN(x))return new Fr(E);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Fr(E,x);for(var ne=NaN;a[y]==="";)y++;return(b=a[y++])&&(ne=parseFloat(b)),isNaN(ne)?new Fr(E,x):new Fr(E,x,z,ne)}return new Fr}function ua(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Me.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Me.D=function(a){return a instanceof Fr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Me.hi=function(a,y,E,b){return this.top===a&&this.right===y&&this.bottom===E&&this.left===b},Me.Xa=function(a){return Qt.B(this.top,a.top)&&Qt.B(this.right,a.right)&&Qt.B(this.bottom,a.bottom)&&Qt.B(this.left,a.left)},Me.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Fr.alloc=function(){var a=Ea.pop();return a===void 0?new Fr:a},Fr.free=function(a){Ea.push(a)},Fr.prototype.isReal=Fr.prototype.w,Fr.prototype.equalsApprox=Fr.prototype.Xa,Fr.prototype.equalTo=Fr.prototype.hi,Fr.prototype.equals=Fr.prototype.D,Fr.prototype.set=Fr.prototype.set,Fr.prototype.setTo=Fr.prototype.sg;var Ua=null,ca=null,Ea=[];Fr.className="Margin",Fr.parse=la,Fr.stringify=ua,Fr.ZeroMargin=Ua=new Fr(0,0,0,0).ja(),Fr.TwoMargin=ca=new Fr(2,2,2,2).ja(),Fr.parse=la,Fr.stringify=ua;function $i(a,y,E,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),E===void 0&&(E=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=E,this.offsetY=b),this._isFrozen=!1}var Mr,Kr,uo,ho,jo,Dr,Ya,va,fa,vo,Wo,gs,Jo,ss,Os,ws,Pa,Al,Uu,Rs,Js,Ds,Ql,rc,oc,Ia,Hu,ac,cu,Pu,ls,Es,Va,is,du,Cs;$i.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},$i.prototype.sg=function(a,y,E,b){return this.x=a,this.y=y,this.offsetX=E,this.offsetY=b,this},$i.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},$i.prototype.copy=function(){var a=new $i;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Me=$i.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this};function $o(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Zo(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Mr;if(a==="TopLeft")return Kr;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return uo;if(a==="TopRight")return ho;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return jo;if(a==="Center")return Dr;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ya;if(a==="BottomLeft")return va;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return fa;if(a==="BottomRight")return vo;if(a==="TopSide")return Wo;if(a==="LeftSide")return gs;if(a==="RightSide")return Jo;if(a==="BottomSide")return ss;if(a==="TopBottomSides")return Os;if(a==="LeftRightSides")return ws;if(a==="TopLeftSides")return Pa;if(a==="TopRightSides")return Al;if(a==="BottomLeftSides")return Uu;if(a==="BottomRightSides")return Rs;if(a==="NotTopSide")return Js;if(a==="NotLeftSide")return Ds;if(a==="NotRightSide")return Ql;if(a==="NotBottomSide")return rc;if(a==="AllSides")return oc;if(a==="Default")return Ia;a=a.split(" ");for(var y=0,E=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(E=parseFloat(b));for(var x=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(x=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var ne=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(ne=parseFloat(b)),new $i(E,x,z,ne)}return new $i}function Ro(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Me.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(Mr)?"None":this.D(Kr)?"TopLeft":this.D(uo)?"Top":this.D(ho)?"TopRight":this.D(jo)?"Left":this.D(Dr)?"Center":this.D(Ya)?"Right":this.D(va)?"BottomLeft":this.D(fa)?"Bottom":this.D(vo)?"BottomRight":this.D(Wo)?"TopSide":this.D(gs)?"LeftSide":this.D(Jo)?"RightSide":this.D(ss)?"BottomSide":this.D(Os)?"TopBottomSides":this.D(ws)?"LeftRightSides":this.D(Pa)?"TopLeftSides":this.D(Al)?"TopRightSides":this.D(Uu)?"BottomLeftSides":this.D(Rs)?"BottomRightSides":this.D(Js)?"NotTopSide":this.D(Ds)?"NotLeftSide":this.D(Ql)?"NotRightSide":this.D(rc)?"NotBottomSide":this.D(oc)?"AllSides":this.D(Ia)?"Default":"None"},Me.D=function(a){return a instanceof $i?(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},Me.gv=function(){return new $i(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Me.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Hu))a=gs;else if(a.D(ac))a=Jo;else if(a.D(cu))a=Wo;else if(a.D(Pu))a=ss;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Me.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Me.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Me.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Me.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Me.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},$i.alloc=function(){var a=Ha.pop();return a===void 0?new $i:a},$i.free=function(a){Ha.push(a)},$i.prototype.isDefault=$i.prototype.Xb,$i.prototype.isNone=$i.prototype.ys,$i.prototype.isSide=$i.prototype.$c,$i.prototype.isNoSpot=$i.prototype.Mc,$i.prototype.isSpot=$i.prototype.sb,$i.prototype.includesSide=$i.prototype.Hf,$i.prototype.opposite=$i.prototype.gv,$i.prototype.equals=$i.prototype.D,$i.prototype.set=$i.prototype.set,$i.prototype.setTo=$i.prototype.sg;var Ha=[];$i.className="Spot",$i.parse=Zo,$i.stringify=Ro,$i.None=Mr=$o(new $i(0,0,0,0),0).ja(),$i.Default=Ia=$o(new $i(0,0,-1,0),-1).ja(),$i.TopLeft=Kr=new $i(0,0,0,0).ja(),$i.TopCenter=uo=new $i(.5,0,0,0).ja(),$i.TopRight=ho=new $i(1,0,0,0).ja(),$i.LeftCenter=jo=new $i(0,.5,0,0).ja(),$i.Center=Dr=new $i(.5,.5,0,0).ja(),$i.RightCenter=Ya=new $i(1,.5,0,0).ja(),$i.BottomLeft=va=new $i(0,1,0,0).ja(),$i.BottomCenter=fa=new $i(.5,1,0,0).ja(),$i.BottomRight=vo=new $i(1,1,0,0).ja(),$i.MiddleTop=ls=uo,$i.MiddleLeft=Es=jo,$i.MiddleRight=Va=Ya,$i.MiddleBottom=is=fa,$i.Top=cu=uo,$i.Left=Hu=jo,$i.Right=ac=Ya,$i.Bottom=Pu=fa,$i.TopSide=Wo=$o(new $i(0,0,1,1),1).ja(),$i.LeftSide=gs=$o(new $i(0,0,1,2),1).ja(),$i.RightSide=Jo=$o(new $i(0,0,1,4),1).ja(),$i.BottomSide=ss=$o(new $i(0,0,1,8),1).ja(),$i.TopBottomSides=Os=$o(new $i(0,0,1,9),1).ja(),$i.LeftRightSides=ws=$o(new $i(0,0,1,6),1).ja(),$i.TopLeftSides=Pa=$o(new $i(0,0,1,3),1).ja(),$i.TopRightSides=Al=$o(new $i(0,0,1,5),1).ja(),$i.BottomLeftSides=Uu=$o(new $i(0,0,1,10),1).ja(),$i.BottomRightSides=Rs=$o(new $i(0,0,1,12),1).ja(),$i.NotTopSide=Js=$o(new $i(0,0,1,14),1).ja(),$i.NotLeftSide=Ds=$o(new $i(0,0,1,13),1).ja(),$i.NotRightSide=Ql=$o(new $i(0,0,1,11),1).ja(),$i.NotBottomSide=rc=$o(new $i(0,0,1,7),1).ja(),$i.AllSides=oc=$o(new $i(0,0,1,15),1).ja(),du=new $i(.156,.156).ja(),Cs=new $i(.844,.844).ja(),$i.parse=Zo,$i.stringify=Ro;function mr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}mr.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},mr.prototype.setTransform=function(a,y,E,b,x,z){return this.m11=a,this.m12=y,this.m21=E,this.m22=b,this.dx=x,this.dy=z,this},mr.prototype.copy=function(){var a=new mr;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},mr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},mr.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},mr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},mr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},mr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,E=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,x=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=E,this.m21=b,this.m22=x,this},mr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),E=a.m22*y,b=-a.m12*y,x=-a.m21*y,z=a.m11*y,ne=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*E+this.m21*b,E=this.m12*E+this.m22*b,b=this.m11*x+this.m21*z,x=this.m12*x+this.m22*z,this.dx=this.m11*ne+this.m21*a+this.dx,this.dy=this.m12*ne+this.m22*a+this.dy,this.m11=y,this.m12=E,this.m21=b,this.m22=x,this},mr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,E=-this.m21*a,b=this.m11*a,x=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=E,this.m22=b,this.dx=x,this.dy=z,this},mr.prototype.rotate=function(a,y,E){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,E),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var x=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,ne=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=x,this.m21=z,this.m22=ne,this.translate(-y,-E),this},Me=mr.prototype,Me.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Me.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Me.Ga=function(a){var y=a.x,E=a.y;return a.h(y*this.m11+E*this.m21+this.dx,y*this.m12+E*this.m22+this.dy)},Me.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=a.x,b=a.y;return a.h(E*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Me.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),E=1.25*a.x,b=1.2*a.y;return a.h(E*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),E*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Me.pp=function(a){var y=a.x,E=a.y,b=y+a.width,x=E+a.height,z=this.m11,ne=this.m12,re=this.m21,se=this.m22,de=this.dx,pe=this.dy,Se=y*z+E*re+de,Ae=y*ne+E*se+pe,Re=b*z+E*re+de,Ue=b*ne+E*se+pe;return E=y*z+x*re+de,y=y*ne+x*se+pe,z=b*z+x*re+de,b=b*ne+x*se+pe,x=Math.min(Se,Re),Se=Math.max(Se,Re),Re=Math.min(Ae,Ue),Ae=Math.max(Ae,Ue),x=Math.min(x,E),Se=Math.max(Se,E),Re=Math.min(Re,y),Ae=Math.max(Ae,y),x=Math.min(x,z),Se=Math.max(Se,z),Re=Math.min(Re,b),Ae=Math.max(Ae,b),a.h(x,Re,Se-x,Ae-Re),a},mr.alloc=function(){var a=Xa.pop();return a===void 0?new mr:a},mr.free=function(a){Xa.push(a)},mr.prototype.transformRect=mr.prototype.pp,mr.prototype.transformPoint=mr.prototype.Ga,mr.prototype.scale=mr.prototype.scale,mr.prototype.translate=mr.prototype.translate,mr.prototype.rotate=mr.prototype.rotate,mr.prototype.invert=mr.prototype.Vj,mr.prototype.multiplyInverted=mr.prototype.bv,mr.prototype.multiply=mr.prototype.multiply,mr.prototype.reset=mr.prototype.reset,mr.prototype.isIdentity=mr.prototype.ws,mr.prototype.equals=mr.prototype.D,mr.prototype.setTransform=mr.prototype.setTransform,mr.prototype.set=mr.prototype.set;var Xa=[];mr.className="Transform",mr.xF="54a702f3e53909c447824c6706603faf4c";var Qt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Qt.Uv;if(y===null){y=[];for(var E=0;2e3>=E;E++)y[E]=Math.sqrt(E);Qt.Uv=y}return 1>a?(E=1/a,2e3>=E?1/y[E|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,E,b,x,z,ne){if(0>=x&&(x=1e-6),a<E)var re=a,se=E;else re=E,se=a;if(y<b)var de=y,pe=b;else de=b,pe=y;if(a===E)return de<=ne&&ne<=pe&&a-x<=z&&z<=a+x;if(y===b)return re<=z&&z<=se&&y-x<=ne&&ne<=y+x;if(se+=x,re-=x,re<=z&&z<=se&&(pe+=x,de-=x,de<=ne&&ne<=pe))if(se-re>pe-de)if(a-E>x||E-a>x){if(z=(b-y)/(E-a)*(z-a)+y,z-x<=ne&&ne<=z+x)return!0}else return!0;else if(y-b>x||b-y>x){if(ne=(E-a)/(b-y)*(ne-y)+a,ne-x<=z&&z<=ne+x)return!0}else return!0;return!1},cs:function(a,y,E,b,x,z,ne,re,se,de,pe,Se){if(Qt.Yb(a,y,ne,re,Se,E,b)&&Qt.Yb(a,y,ne,re,Se,x,z))return Qt.Yb(a,y,ne,re,Se,de,pe);var Ae=(a+E)/2,Re=(y+b)/2,Ue=(E+x)/2,Xe=(b+z)/2;x=(x+ne)/2,z=(z+re)/2,b=(Ae+Ue)/2,E=(Re+Xe)/2,Ue=(Ue+x)/2,Xe=(Xe+z)/2;var bt=(b+Ue)/2,ft=(E+Xe)/2;return Qt.cs(a,y,Ae,Re,b,E,bt,ft,se,de,pe,Se)||Qt.cs(bt,ft,Ue,Xe,x,z,ne,re,se,de,pe,Se)},ax:function(a,y,E,b,x,z,ne,re,se){var de=(E+x)/2,pe=(b+z)/2;return se.h((((a+E)/2+de)/2+(de+(x+ne)/2)/2)/2,(((y+b)/2+pe)/2+(pe+(z+re)/2)/2)/2),se},My:function(a,y,E,b,x,z,ne,re){var se=(E+x)/2,de=(b+z)/2;return Yn(((a+E)/2+se)/2,((y+b)/2+de)/2,(se+(x+ne)/2)/2,(de+(z+re)/2)/2)},Dl:function(a,y,E,b,x,z,ne,re,se,de){if(Qt.Yb(a,y,ne,re,se,E,b)&&Qt.Yb(a,y,ne,re,se,x,z))Jr(de,a,y,0,0),Jr(de,ne,re,0,0);else{var pe=(a+E)/2,Se=(y+b)/2,Ae=(E+x)/2,Re=(b+z)/2;x=(x+ne)/2,z=(z+re)/2,b=(pe+Ae)/2,E=(Se+Re)/2,Ae=(Ae+x)/2,Re=(Re+z)/2;var Ue=(b+Ae)/2,Xe=(E+Re)/2;Qt.Dl(a,y,pe,Se,b,E,Ue,Xe,se,de),Qt.Dl(Ue,Xe,Ae,Re,x,z,ne,re,se,de)}return de},Qe:function(a,y,E,b,x,z,ne,re,se,de){if(Qt.Yb(a,y,ne,re,se,E,b)&&Qt.Yb(a,y,ne,re,se,x,z))de.length===0&&(de.push(a),de.push(y)),de.push(ne),de.push(re);else{var pe=(a+E)/2,Se=(y+b)/2,Ae=(E+x)/2,Re=(b+z)/2;x=(x+ne)/2,z=(z+re)/2,b=(pe+Ae)/2,E=(Se+Re)/2,Ae=(Ae+x)/2,Re=(Re+z)/2;var Ue=(b+Ae)/2,Xe=(E+Re)/2;Qt.Qe(a,y,pe,Se,b,E,Ue,Xe,se,de),Qt.Qe(Ue,Xe,Ae,Re,x,z,ne,re,se,de)}return de},jv:function(a,y,E,b,x,z,ne,re,se,de){if(Qt.Yb(a,y,x,z,de,E,b))return Qt.Yb(a,y,x,z,de,re,se);var pe=(a+E)/2,Se=(y+b)/2;E=(E+x)/2,b=(b+z)/2;var Ae=(pe+E)/2,Re=(Se+b)/2;return Qt.jv(a,y,pe,Se,Ae,Re,ne,re,se,de)||Qt.jv(Ae,Re,E,b,x,z,ne,re,se,de)},OA:function(a,y,E,b,x,z,ne){return ne.h(((a+E)/2+(E+x)/2)/2,((y+b)/2+(b+z)/2)/2),ne},iv:function(a,y,E,b,x,z,ne,re){if(Qt.Yb(a,y,x,z,ne,E,b))Jr(re,a,y,0,0),Jr(re,x,z,0,0);else{var se=(a+E)/2,de=(y+b)/2;E=(E+x)/2,b=(b+z)/2;var pe=(se+E)/2,Se=(de+b)/2;Qt.iv(a,y,se,de,pe,Se,ne,re),Qt.iv(pe,Se,E,b,x,z,ne,re)}return re},ep:function(a,y,E,b,x,z,ne,re){if(Qt.Yb(a,y,x,z,ne,E,b))re.length===0&&(re.push(a),re.push(y)),re.push(x),re.push(z);else{var se=(a+E)/2,de=(y+b)/2;E=(E+x)/2,b=(b+z)/2;var pe=(se+E)/2,Se=(de+b)/2;Qt.ep(a,y,se,de,pe,Se,ne,re),Qt.ep(pe,Se,E,b,x,z,ne,re)}return re},Eo:function(a,y,E,b,x,z,ne,re,se,de,pe,Se,Ae,Re){if(Qt.Yb(a,y,ne,re,Ae,E,b)&&Qt.Yb(a,y,ne,re,Ae,x,z))return!Qt.Rl(a,y,ne,re,se,de,pe,Se)||(Ae=(a-ne)*(de-Se)-(y-re)*(se-pe),Ae===0)?!1:(Re.h(((a*re-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Ae,((a*re-y*ne)*(de-Se)-(y-re)*(se*Se-de*pe))/Ae),!0);var Ue=(a+E)/2,Xe=(y+b)/2,bt=(E+x)/2,ft=(b+z)/2;x=(x+ne)/2,z=(z+re)/2,b=(Ue+bt)/2,E=(Xe+ft)/2,bt=(bt+x)/2,ft=(ft+z)/2;var Pt=(b+bt)/2,Nt=(E+ft)/2,Dt=1/0,Yt=!1,wn=0,zi=0;return Qt.Eo(a,y,Ue,Xe,b,E,Pt,Nt,se,de,pe,Se,Ae,Re)&&(a=(Re.x-se)*(Re.x-se)+(Re.y-de)*(Re.y-de),a<Dt&&(Dt=a,Yt=!0,wn=Re.x,zi=Re.y)),Qt.Eo(Pt,Nt,bt,ft,x,z,ne,re,se,de,pe,Se,Ae,Re)&&(Re.x-se)*(Re.x-se)+(Re.y-de)*(Re.y-de)<Dt&&(Yt=!0,wn=Re.x,zi=Re.y),Yt&&(Re.x=wn,Re.y=zi),Yt},Fo:function(a,y,E,b,x,z,ne,re,se,de,pe,Se,Ae){var Re=0;if(Qt.Yb(a,y,ne,re,Ae,E,b)&&Qt.Yb(a,y,ne,re,Ae,x,z)){if(Ae=(a-ne)*(de-Se)-(y-re)*(se-pe),Ae===0)return Re;var Ue=((a*re-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Ae,Xe=((a*re-y*ne)*(de-Se)-(y-re)*(se*Se-de*pe))/Ae;if(Ue>=pe)return Re;if((se>pe?se-pe:pe-se)<(de>Se?de-Se:Se-de)){if(y<re?(se=y,a=re):(se=re,a=y),Xe<se||Xe>a)return Re}else if(a<ne?(se=a,a=ne):se=ne,Ue<se||Ue>a)return Re;0<Ae?Re++:0>Ae&&Re--}else{Ue=(a+E)/2,Xe=(y+b)/2;var bt=(E+x)/2,ft=(b+z)/2;x=(x+ne)/2,z=(z+re)/2,b=(Ue+bt)/2,E=(Xe+ft)/2,bt=(bt+x)/2,ft=(ft+z)/2;var Pt=(b+bt)/2,Nt=(E+ft)/2;Re+=Qt.Fo(a,y,Ue,Xe,b,E,Pt,Nt,se,de,pe,Se,Ae),Re+=Qt.Fo(Pt,Nt,bt,ft,x,z,ne,re,se,de,pe,Se,Ae)}return Re},qh:function(a,y,E,b,x,z,ne){return Qt.$(a,E)?(y<b?(E=y,y=b):E=b,z<E?(ne.h(a,E),!1):z>y?(ne.h(a,y),!1):(ne.h(a,z),!0)):Qt.$(y,b)?(a<E?(b=a,a=E):b=E,x<b?(ne.h(b,y),!1):x>a?(ne.h(a,y),!1):(ne.h(x,y),!0)):(x=((a-x)*(a-E)+(y-z)*(y-b))/((E-a)*(E-a)+(b-y)*(b-y)),-5e-6>x?(ne.h(a,y),!1):1.000005<x?(ne.h(E,b),!1):(ne.h(a+x*(E-a),y+x*(b-y)),!0))},Ve:function(a,y,E,b,x,z,ne,re,se){return Qt.B(a,E)&&Qt.B(y,b)?(se.h(a,y),!1):Qt.$(x,ne)?Qt.$(a,E)?(Qt.qh(a,y,E,b,x,z,se),!1):Qt.qh(a,y,E,b,x,(b-y)/(E-a)*(x-a)+y,se):(re=(re-z)/(ne-x),Qt.$(a,E)?(E=re*(a-x)+z,y<b?(x=y,y=b):x=b,E<x?(se.h(a,x),!1):E>y?(se.h(a,y),!1):(se.h(a,E),!0)):(ne=(b-y)/(E-a),Qt.$(re,ne)?(Qt.qh(a,y,E,b,x,z,se),!1):(x=(ne*a-re*x+z-y)/(ne-re),Qt.$(ne,0)?(a<E?(b=a,a=E):b=E,x<b?(se.h(b,y),!1):x>a?(se.h(a,y),!1):(se.h(x,y),!0)):Qt.qh(a,y,E,b,x,ne*(x-a)+y,se))))},MA:function(a,y,E,b,x){return Qt.Ve(E.x,E.y,b.x,b.y,a.x,a.y,y.x,y.y,x)},KA:function(a,y,E,b,x,z,ne,re,se,de){function pe(bt,ft){var Pt=(bt-a)*(bt-a)+(ft-y)*(ft-y);Pt<Se&&(Se=Pt,se.h(bt,ft))}var Se=1/0;pe(se.x,se.y);var Ae=0,Re=0,Ue=0,Xe=0;if(x<ne?(Ae=x,Re=ne):(Ae=ne,Re=x),z<re?(Ue=x,Xe=ne):(Ue=ne,Xe=x),Ae=(Re-Ae)/2+de,de=(Xe-Ue)/2+de,x=(x+ne)/2,z=(z+re)/2,Ae===0||de===0)return se;if(.5>(E>a?E-a:a-E)){if(Ae=1-(E-x)*(E-x)/(Ae*Ae),0>Ae)return se;Ae=Math.sqrt(Ae),b=-de*Ae+z,pe(E,de*Ae+z),pe(E,b)}else{if(E=(b-y)/(E-a),b=1/(Ae*Ae)+E*E/(de*de),re=2*E*(y-E*a)/(de*de)-2*E*z/(de*de)-2*x/(Ae*Ae),Ae=re*re-4*b*(2*E*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+x*x/(Ae*Ae)-1+(y-E*a)*(y-E*a)/(de*de)),0>Ae)return se;Ae=Math.sqrt(Ae),de=(-re+Ae)/(2*b),pe(de,E*de-E*a+y),Ae=(-re-Ae)/(2*b),pe(Ae,E*Ae-E*a+y)}return se},Ff:function(a,y,E,b,x,z,ne,re,se){var de=1e21,pe=a,Se=y;if(Qt.Ve(a,y,a,b,x,z,ne,re,se)){var Ae=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z);Ae<de&&(de=Ae,pe=se.x,Se=se.y)}return Qt.Ve(E,y,E,b,x,z,ne,re,se)&&(Ae=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),Ae<de&&(de=Ae,pe=se.x,Se=se.y)),Qt.Ve(a,y,E,y,x,z,ne,re,se)&&(y=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),y<de&&(de=y,pe=se.x,Se=se.y)),Qt.Ve(a,b,E,b,x,z,ne,re,se)&&(a=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),a<de&&(de=a,pe=se.x,Se=se.y)),se.h(pe,Se),1e21>de},us:function(a,y,E){return Qt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,E.x,E.y)},Fx:function(a,y,E,b,x,z,ne,re){var se=a+E,de=y+b;return x===ne?(z<re?(ne=z,z=re):ne=re,a<=x&&x<=se&&ne<=de&&z>=y):z===re?(x<ne?(re=x,x=ne):re=ne,y<=z&&z<=de&&re<=se&&x>=a):!!(Do(a,y,E,b,x,z)||Do(a,y,E,b,ne,re)||Qt.Rl(a,y,se,y,x,z,ne,re)||Qt.Rl(se,y,se,de,x,z,ne,re)||Qt.Rl(se,de,a,de,x,z,ne,re)||Qt.Rl(a,de,a,y,x,z,ne,re))},Rl:function(a,y,E,b,x,z,ne,re){return a===E&&y===b&&x===ne&&z===re?a===x&&y===z:0>=Qt.Fl(a,y,E,b,x,z)*Qt.Fl(a,y,E,b,ne,re)&&0>=Qt.Fl(x,z,ne,re,a,y)*Qt.Fl(x,z,ne,re,E,b)},Fl:function(a,y,E,b,x,z){return E-=a,b-=y,a=x-a,y=z-y,z=a*b-y*E,z===0&&(z=a*E+y*b,0<z&&(z=(a-E)*E+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,E,b,x,z){var ne=Math.PI;z||(b*=ne/180,x*=ne/180);var re=b>x?-1:1;z=[];var se=ne/2,de=b;if(b=Math.min(2*ne,Math.abs(x-b)),1e-5>b)return se=de+re*Math.min(b,se),re=a+E*Math.cos(de),de=y+E*Math.sin(de),a+=E*Math.cos(se),y+=E*Math.sin(se),E=(re+a)/2,se=(de+y)/2,z.push([re,de,E,se,E,se,a,y]),z;for(;1e-5<b;)x=de+re*Math.min(b,se),z.push(Qt.Vy(E,de,x,a,y)),b-=Math.abs(x-de),de=x;return z},Vy:function(a,y,E,b,x){var z=(E-y)/2,ne=a*Math.cos(z),re=a*Math.sin(z),se=-re,de=ne*ne+se*se,pe=de+ne*ne+se*re;return de=4/3*(Math.sqrt(2*de*pe)-pe)/(ne*re-se*ne),re=ne-de*se,ne=se+de*ne,se=-ne,de=z+y,z=Math.cos(de),de=Math.sin(de),[b+a*Math.cos(y),x+a*Math.sin(y),b+re*z-ne*de,x+re*de+ne*z,b+re*z-se*de,x+re*de+se*z,b+a*Math.cos(E),x+a*Math.sin(E)]},No:function(a,y,E,b,x,z,ne){E=Math.floor((a-E)/x)*x+E,b=Math.floor((y-b)/z)*z+b;var re=E;return E+x-a<x/2&&(re=E+x),a=b,b+z-y<z/2&&(a=b+z),ne.h(re,a),ne},vx:function(a,y){var E=Math.max(a,y);a=Math.min(a,y);var b;do y=E%a,E=b=a,a=y;while(0<y);return b},$y:function(a,y,E,b){var x=0>E,z=0>b;if(a<y)var ne=1,re=0;else ne=0,re=1;var se=ne===0?a:y,de=ne===0?E:b;return(ne===0?x:z)&&(de=-de),ne=re,E=ne===0?E:b,(ne===0?x:z)&&(E=-E),Qt.az(se,ne===0?a:y,de,E,0,0)},az:function(a,y,E,b,x,z){if(0<b)if(0<E){x=a*a,z=y*y,a*=E;var ne=y*b,re=-z+ne,se=-z+Math.sqrt(a*a+ne*ne);y=re;for(var de=0;9999999999>de&&(y=.5*(re+se),!(y===re||y===se));++de){var pe=a/(y+x),Se=ne/(y+z);if(pe=pe*pe+Se*Se-1,0<pe)re=y;else if(0>pe)se=y;else break}E=x*E/(y+x)-E,b=z*b/(y+z)-b,E=Math.sqrt(E*E+b*b)}else E=Math.abs(b-y);else b=a*a-y*y,z=a*E,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),E=a*b-E,E=Math.sqrt(E*E+z*z)):E=Math.abs(E-a);return E},Ze:new ir,um:new ir,Mf:new ir,Nf:0,vm:100};Qt.za=Qt.AA;function Ti(a){ar(this),this.l=2,a===void 0&&(a=Ti.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Ti.o?this.ee=new Wn:(Ti.V===null&&(Ti.V=new Wn().freeze()),this.ee=Ti.V),this.aq=this.ee.Ja,this.Ip=new xn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Kr,this.gg=vo,this.Rk=this.Sk=NaN,this.Uf=xi}Ti.prototype.copy=function(){var a=new Ti;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===Ti.o){for(var y=this.ee.s,E=a.ee,b=0;b<y.length;b++)E.add(y[b].copy());a.ee=E}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},Ti.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Ti.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Ti.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].freeze();return this},Ti.prototype.ka=function(){if(Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Ti.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},Ti.prototype.Xa=function(a){if(!(a instanceof Ti))return!1;if(this.type!==a.type)return this.type===Ti.j&&a.type===Ti.o?pl(this,a):a.type===Ti.j&&this.type===Ti.o?pl(a,this):!1;if(this.type===Ti.o){var y=this.figures.s;a=a.figures.s;var E=y.length;if(E!==a.length)return!1;for(var b=0;b<E;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Qt.B(this.startX,a.startX)&&Qt.B(this.startY,a.startY)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)};function pl(a,y){return a.type!==Ti.j||y.type!==Ti.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Qt.B(a.startX,y.startX)&&Qt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===To&&Qt.B(a.endX,y.endX)&&Qt.B(a.endY,y.endY))))}Ti.ia=function(a){return a.toString()},Ti.prototype.qb=function(a){a.classType===Ti&&(this.type=a)},Ti.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ti.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 Ti.u:var y=new xn(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 Ti.F:if(y=new xn(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 E=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+E+"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 "+E;case Ti.o:y="",E=this.figures.s;for(var b=E.length,x=0;x<b;x++){var z=E[x];0<x&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Ti.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,E="",b=0;b<y;b++){var x=a[b];E=x.match(/[Ff]/)!==null?b===0?E+x:E+("X"+(x[0]===" "?"":" ")+x):E+((b===0?"":"X ")+"F"+(x[0]===" "?"":" ")+x)}return E},Ti.parse=function(a,y){function E(){return Xe>=Dt-1?!0:de[Xe+1].match(Yt)!==null}function b(){return Xe++,de[Xe]}function x(kr){var Er=parseFloat(b()),mo=parseFloat(b());bt===bt.toLowerCase()&&(Er=Nt.x+Er,mo=Nt.y+mo),kr.h(Er,mo)}function z(){return x(Nt),Nt}function ne(){return x(Pt),Pt}function re(){var kr=ft.toLowerCase();return kr!=="c"&&kr!=="s"&&kr!=="q"&&kr!=="t"?Nt:new rt(2*Nt.x-Pt.x,2*Nt.y-Pt.y)}y===void 0&&(y=!1);var se=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(se,"$1 $2"),a=a.replace(se,"$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 pe=de[a];if(pe.match(/(\.[0-9]*)(\.)/gm)!==null){se=Pi();for(var Se="",Ae=!1,Re=0;Re<pe.length;Re++){var Ue=pe[Re];Ue!=="."||Ae?Ue==="."?(se.push(Se),Se="."):Se+=Ue:(Ae=!0,Se+=Ue)}for(se.push(Se),de.splice(a,1),pe=0;pe<se.length;pe++)de.splice(a+pe,0,se[pe]);a+=se.length-1,Ai(se)}}var Xe=-1,bt="",ft="";se=new rt(0,0);var Pt=new rt(0,0),Nt=new rt(0,0),Dt=de.length;a=FS(null),Ae=Se=pe=!1,Re=!0,Ue=null;for(var Yt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Xe>=Dt-1);)if(ft=bt,bt=b(),bt!=="")switch(bt.toUpperCase()){case"X":Re=!0,Se=pe=!1;break;case"M":for(Ue=z(),a.mc===null||Re===!0?(ep(a,Ue.x,Ue.y,pe,!Se,Ae),Re=!1):a.moveTo(Ue.x,Ue.y),se.assign(Nt);!E();)Ue=z(),a.lineTo(Ue.x,Ue.y);break;case"L":for(;!E();)Ue=z(),a.lineTo(Ue.x,Ue.y);break;case"H":for(;!E();)Nt=new rt((bt===bt.toLowerCase()?Nt.x:0)+parseFloat(b()),Nt.y),a.lineTo(Nt.x,Nt.y);break;case"V":for(;!E();)Nt=new rt(Nt.x,(bt===bt.toLowerCase()?Nt.y:0)+parseFloat(b())),a.lineTo(Nt.x,Nt.y);break;case"C":for(;!E();){Ue=new rt,x(Ue);var wn=ne(),zi=z();xd(a,Ue.x,Ue.y,wn.x,wn.y,zi.x,zi.y)}break;case"S":for(;!E();)Ue=re(),wn=ne(),zi=z(),xd(a,Ue.x,Ue.y,wn.x,wn.y,zi.x,zi.y);break;case"Q":for(;!E();)Ue=ne(),wn=z(),jm(a,Ue.x,Ue.y,wn.x,wn.y);break;case"T":for(;!E();)Pt=Ue=re(),wn=z(),jm(a,Ue.x,Ue.y,wn.x,wn.y);break;case"B":for(;!E();){Ue=parseFloat(b()),wn=parseFloat(b()),zi=parseFloat(b());var er=parseFloat(b()),Xi=parseFloat(b()),ki=Xi,oi=!1;E()||(ki=parseFloat(b()),E()||(oi=parseFloat(b())!==0)),bt===bt.toLowerCase()&&(zi+=Nt.x,er+=Nt.y),a.arcTo(Ue,wn,zi,er,Xi,ki,oi)}break;case"A":for(;!E();)Ue=Math.abs(parseFloat(b())),wn=Math.abs(parseFloat(b())),zi=parseFloat(b()),Xi=er=!1,oi=ki=0,ki=b(),ki.length===1?(er=!!parseFloat(ki),Xi=!!parseFloat(b()),ki=parseFloat(b())):ki.length===2?(er=!!parseFloat(ki[0]),Xi=!!parseFloat(ki[1]),ki=parseFloat(b())):(er=!!parseFloat(ki[0]),Xi=!!parseFloat(ki[1]),ki=parseFloat(ki.slice(2))),oi=parseFloat(b()),bt===bt.toLowerCase()&&(ki=Nt.x+ki,oi=Nt.y+oi),Nt.h(ki,oi),ME(a,Ue,wn,zi,er,Xi,ki,oi);break;case"Z":IE(a),Nt.assign(se);break;case"F":for(Ue="",wn=1;de[Xe+wn];)if(de[Xe+wn]==="0")Ae=!0,wn++;else if(de[Xe+wn].match(/[Uu]/)!==null)wn++;else if(de[Xe+wn].match(Yt)===null)wn++;else{Ue=de[Xe+wn];break}Ue.match(/[Mm]/)?pe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ue="",wn=1;de[Xe+wn];)if(de[Xe+wn].match(/[Ff]/)!==null)wn++;else if(de[Xe+wn].match(Yt)===null)wn++;else{Ue=de[Xe+wn];break}Ue.match(/[Mm]/)?Se=!0:a.mc.isShadowed=!1}if(se=a.os,Gm=a,y)for(y=se.figures.iterator;y.next();)y.value.isFilled=!0;return se},Ti.Ha=function(a,y){for(var E=a.length,b=rt.alloc(),x=0;x<E;x++){var z=a[x];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}rt.free(b)},Ti.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Ti.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,E=0;E<y;E++)if(a[E].Zu())return!0}return!1},Ti.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Ti.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,E=0;E<y;E++){var b=a[E];b._isInvalidBounds=!1;var x=b.segments;b.sr=x.Ja,b=x.s,x=b.length;for(var z=0;z<x;z++){var ne=b[z];ne._isInvalidBounds=!1,ne.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),Jl(this,a,!1),Jr(a,0,0,0,0),a.freeze()},Ti.prototype.ix=function(){var a=new xn;return Jl(this,a,!0),a};function Jl(a,y,E){switch(a.type){case Ti.j:case Ti.u:case Ti.F:E?y.h(a.od,a.pd,0,0):Jr(y,a.od,a.pd,0,0),Jr(y,a.Dc,a.Ec,0,0);break;case Ti.o:var b=a.figures;a=b.s,b=b.length;for(var x=0;x<b;x++){var z=a[x];E&&x===0?y.h(z.startX,z.startY,0,0):Jr(y,z.startX,z.startY,0,0);for(var ne=z.segments.s,re=ne.length,se=z.startX,de=z.startY,pe=0;pe<re;pe++){var Se=ne[pe];switch(Se.type){case To:case Go:se=Se.endX,de=Se.endY,Jr(y,se,de,0,0);break;case ba:Qt.Dl(se,de,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case Fs:Qt.iv(se,de,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case sa:case Gs:var Ae=Se.type===sa?us(Se,z):Ls(Se,z,se,de),Re=Ae.length;if(Re===0){se=Se.type===sa?Se.centerX:Se.endX,de=Se.type===sa?Se.centerY:Se.endY,Jr(y,se,de,0,0);break}Se=null;for(var Ue=0;Ue<Re;Ue++)Se=Ae[Ue],Qt.Dl(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,y);Se!==null&&(se=Se[6],de=Se[7]);break;default:Ct("Unknown Segment type: "+Se.type)}}}break;default:Ct("Unknown Geometry type: "+a.type)}}Ti.prototype.normalize=function(){this._isFrozen&&$t(this);var a=this.ix();return this.offset(-a.x,-a.y),new rt(-a.x,-a.y)},Ti.prototype.offset=function(a,y){return this._isFrozen&&$t(this),this.transform(1,0,0,1,a,y),this},Ti.prototype.scale=function(a,y){return this._isFrozen&&$t(this),this.transform(a,0,0,y,0,0),this},Ti.prototype.rotate=function(a,y,E){this._isFrozen&&$t(this),y===void 0&&(y=0),E===void 0&&(E=0);var b=mr.alloc();return b.reset(),b.rotate(a,y,E),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),mr.free(b),this},Me=Ti.prototype,Me.transform=function(a,y,E,b,x,z){switch(this.type){case Ti.j:case Ti.u:case Ti.F:var ne=this.od,re=this.pd;this.od=ne*a+re*E+x,this.pd=ne*y+re*b+z,ne=this.Dc,re=this.Ec,this.Dc=ne*a+re*E+x,this.Ec=ne*y+re*b+z;break;case Ti.o:for(var se=this.figures.s,de=se.length,pe=0;pe<de;pe++){var Se=se[pe];ne=Se.startX,re=Se.startY,Se.startX=ne*a+re*E+x,Se.startY=ne*y+re*b+z,Se=Se.segments.s;for(var Ae=Se.length,Re=0;Re<Ae;Re++){var Ue=Se[Re];switch(Ue.type){case To:case Go:ne=Ue.endX,re=Ue.endY,Ue.endX=ne*a+re*E+x,Ue.endY=ne*y+re*b+z;break;case ba:ne=Ue.point1X,re=Ue.point1Y,Ue.point1X=ne*a+re*E+x,Ue.point1Y=ne*y+re*b+z,ne=Ue.point2X,re=Ue.point2Y,Ue.point2X=ne*a+re*E+x,Ue.point2Y=ne*y+re*b+z,ne=Ue.endX,re=Ue.endY,Ue.endX=ne*a+re*E+x,Ue.endY=ne*y+re*b+z;break;case Fs:ne=Ue.point1X,re=Ue.point1Y,Ue.point1X=ne*a+re*E+x,Ue.point1Y=ne*y+re*b+z,ne=Ue.endX,re=Ue.endY,Ue.endX=ne*a+re*E+x,Ue.endY=ne*y+re*b+z;break;case sa:ne=Ue.centerX,re=Ue.centerY,Ue.centerX=ne*a+re*E+x,Ue.centerY=ne*y+re*b+z,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),Ue.startAngle+=ne),0>a&&(Ue.startAngle=180-Ue.startAngle,Ue.sweepAngle=-Ue.sweepAngle),0>b&&(Ue.startAngle=-Ue.startAngle,Ue.sweepAngle=-Ue.sweepAngle),Ue.radiusX*=Math.sqrt(a*a+E*E),Ue.radiusY!==void 0&&(Ue.radiusY*=Math.sqrt(y*y+b*b));break;case Gs:if(ne=Ue.endX,re=Ue.endY,Ue.endX=ne*a+re*E+x,Ue.endY=ne*y+re*b+z,Ue.radiusX===0||Ue.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),Ue.xAxisRotation+=ne),0>a&&(Ue.xAxisRotation=180-Ue.xAxisRotation,Ue.isClockwiseArc=!Ue.isClockwiseArc),0>b&&(Ue.xAxisRotation=-Ue.xAxisRotation,Ue.isClockwiseArc=!Ue.isClockwiseArc),Ue.radiusX*=Math.sqrt(a*a+E*E),Ue.radiusY*=Math.sqrt(y*y+b*b);break;default:Ct("Unknown Segment type: "+Ue.type)}}}}return this._isInvalidBounds=!0,this},Me.ca=function(a,y){y===void 0&&(y=0);var E=this.od,b=this.pd,x=this.Dc,z=this.Ec;switch(this.type){case Ti.j:return Qt.Yb(E,b,x,z,y,a.x,a.y);case Ti.u:var ne=xn.allocAt(Math.min(E,x)-y,Math.min(b,z)-y,Math.abs(x-E)+2*y,Math.abs(z-b)+2*y);return a=ne.ca(a),xn.free(ne),a;case Ti.F:ne=Math.min(E,x)-y;var re=Math.min(b,z)-y;return E=(Math.abs(x-E)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=E||0>=y?!1:(ne=a.x-(ne+E),re=a.y-(re+y),1>=ne*ne/(E*E)+re*re/(y*y));case Ti.o:return Ma(this,a,y,!0,!1);default:return!1}};function Ma(a,y,E,b,x){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,re=0,se,de,pe,Se,Ae=a.figures.s,Re=Ae.length,Ue=0;Ue<Re;Ue++){var Xe=Ae[Ue],bt=!Xe.isEvenOdd;if(Xe.isFilled){if(b&&Xe.ca(z,y,E))return!0;var ft=Xe.segments;se=Xe.startX,de=Xe.startY;for(var Pt=se,Nt=de,Dt=ft.s,Yt=0;Yt<=ft.length;Yt++){var wn=void 0;if(Yt!==ft.length){wn=Dt[Yt];var zi=wn.type;a=wn.endX,Se=wn.endY}else zi=To,a=Pt,Se=Nt;switch(zi){case Go:if(Pt=Qa(z,y,ne,y,se,de,Pt,Nt),isNaN(Pt))return!0;re+=Pt,Pt=a,Nt=Se;break;case To:if(se=Qa(z,y,ne,y,se,de,a,Se),isNaN(se))return!0;re+=se;break;case ba:pe=Qt.Fo(se,de,wn.point1X,wn.point1Y,wn.point2X,wn.point2Y,a,Se,ne,y,z,y,.5),re+=pe;break;case Fs:pe=Qt.Fo(se,de,(se+2*wn.point1X)/3,(de+2*wn.point1Y)/3,(2*wn.point1X+a)/3,(2*wn.point1Y+Se)/3,a,Se,ne,y,z,y,.5),re+=pe;break;case sa:case Gs:zi=wn.type===sa?us(wn,Xe):Ls(wn,Xe,se,de);var er=zi.length;if(er===0){if(se=Qa(z,y,ne,y,se,de,wn.type===sa?wn.centerX:wn.endX,wn.type===sa?wn.centerY:wn.endY),isNaN(se))return!0;re+=se;break}wn=null;for(var Xi=0;Xi<er;Xi++){if(wn=zi[Xi],Xi===0){if(pe=Qa(z,y,ne,y,se,de,wn[0],wn[1]),isNaN(pe))return!0;re+=pe}pe=Qt.Fo(wn[0],wn[1],wn[2],wn[3],wn[4],wn[5],wn[6],wn[7],ne,y,z,y,.5),re+=pe}wn!==null&&(a=wn[6],Se=wn[7]);break;default:Ct("Unknown Segment type: "+wn.type)}se=a,de=Se}if(bt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Xe.ca(z,y,x?E:E+2))return!0}return!1}function Qa(a,y,E,b,x,z,ne,re){if(Qt.Yb(x,z,ne,re,.05,a,y))return NaN;var se=(a-E)*(z-re);if(se===0)return 0;var de=((a*b-y*E)*(x-ne)-(a-E)*(x*re-z*ne))/se;if(y=(a*b-y*E)*(z-re)/se,de>=a)return 0;if((x>ne?x-ne:ne-x)<(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(x<ne){if(de<x||de>ne)return 0}else if(de<ne||de>x)return 0;return 0<se?1:-1}function qs(a,y,E,b){a=a.figures.s;for(var x=a.length,z=0;z<x;z++)if(a[z].ca(y,E,b))return!0;return!1}Me.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new rt),this.type===Ti.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var E=this.flattenedSegments,b=this.flattenedLengths,x=E.length,z=this.flattenedTotalLength*a,ne=0,re=0;re<x;re++){var se=b[re],de=se.length;for(a=0;a<de;a++){var pe=se[a];if(ne+pe>=z)return b=z-ne,b=pe===0?0:b/pe,E=E[re],re=E[2*a],x=E[2*a+1],y.h(re+(E[2*a+2]-re)*b,x+(E[2*a+3]-x)*b),y;ne+=pe}}return y},Me.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Ti.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,E=this.flattenedLengths,b=y.length,x=this.flattenedTotalLength*a,z=0,ne=0;ne<b;ne++){var re=E[ne],se=re.length;for(a=0;a<se;a++){var de=re[a];if(z+de>=x)return x=y[ne],y=x[2*a],E=x[2*a+1],b=x[2*a+2],a=x[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-E)?0:1>Math.abs(b-y)?0<=a-E?90:270:1>Math.abs(a-E)?0<=b-y?0:180:180*Math.atan2(a-E,b-y)/Math.PI;z+=de}}return NaN},Me.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Ti.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 E=this.flattenedSegments,b=this.flattenedLengths,x=E.length,z=this.flattenedTotalLength*a,ne=0,re=0;re<x;re++){var se=b[re],de=se.length;for(a=0;a<de;a++){var pe=se[a];if(ne+pe>=z)return b=z-ne,b=pe===0?0:b/pe,pe=E[re],E=pe[2*a],re=pe[2*a+1],x=pe[2*a+2],a=pe[2*a+3],y[0]=E+(x-E)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(x-E)&&1>Math.abs(a-re)?0:1>Math.abs(x-E)?0<=a-re?90:270:1>Math.abs(a-re)?0<=x-E?0:180:180*Math.atan2(a-re,x-E)/Math.PI,y;ne+=pe}}return y},Me.xx=function(a){if(this.type===Ti.j){var y=this.startX,E=this.startY,b=this.endX,x=this.endY;if(y!==b||E!==x){var z=a.x;if(a=a.y,y===b){if(E<x){var ne=E;b=x}else ne=x,b=E;return a<=ne?ne===E?0:1:a>=b?b===E?0:1:Math.abs(a-E)/(b-ne)}if(E===x)return y<b?ne=y:(ne=b,b=y),z<=ne?ne===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-ne);ne=(b-y)*(b-y)+(x-E)*(x-E);var re=rt.alloc();return Qt.qh(y,E,b,x,z,a,re),a=re.x,z=re.y,rt.free(re),Math.sqrt(((a-y)*(a-y)+(z-E)*(z-E))/ne)}}else if(this.type===Ti.u){ne=this.startX,re=this.startY;var se=this.endX;if(x=this.endY,ne!==se||re!==x){y=se-ne,E=x-re,z=2*y+2*E,b=a.x,a=a.y,b=Math.min(Math.max(b,ne),se),a=Math.min(Math.max(a,re),x),ne=Math.abs(b-ne),se=Math.abs(b-se),re=Math.abs(a-re),x=Math.abs(a-x);var de=Math.min(ne,se,re,x);if(de===re)return b/z;if(de===se)return(y+a)/z;if(de===x)return(2*y+E-b)/z;if(de===ne)return(2*y+2*E-a)/z}}else{y=this.flattenedSegments,E=this.flattenedLengths,z=this.flattenedTotalLength,b=rt.alloc(),x=1/0,re=ne=0,se=y.length;for(var pe=de=0,Se=0;Se<se;Se++)for(var Ae=y[Se],Re=E[Se],Ue=Ae.length,Xe=0;Xe<Ue;Xe+=2){var bt=Ae[Xe],ft=Ae[Xe+1];if(Xe!==0){Qt.qh(de,pe,bt,ft,a.x,a.y,b);var Pt=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Pt<x&&(x=Pt,ne=re,ne+=Math.sqrt((b.x-de)*(b.x-de)+(b.y-pe)*(b.y-pe))),re+=Re[(Xe-2)/2]}de=bt,pe=ft}return rt.free(b),a=ne/z,0>a?0:1<a?1:a}return 0};function gl(a){if(a.tk===null){var y=a.tk=[],E=a.ym=[],b=[],x=[];if(a.type===Ti.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),x.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),E.push(x);else if(a.type===Ti.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),x.push(Math.abs(a.startX-a.endX)),x.push(Math.abs(a.startY-a.endY)),x.push(Math.abs(a.startX-a.endX)),x.push(Math.abs(a.startY-a.endY)),E.push(x);else if(a.type===Ti.F){var z=new ya;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new no(sa);if(ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(a.startX+a.endX)/2,ne.centerY=(a.startY+a.endY)/2,ne.radiusX=Math.abs(a.startX-a.endX)/2,ne.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ne),a=us(ne,z),x=a.length,x===0)b.push(ne.centerX),b.push(ne.centerY);else{ne=z.startX,z=z.startY;for(var re=0;re<x;re++){var se=a[re];Qt.Qe(ne,z,se[2],se[3],se[4],se[5],se[6],se[7],.5,b),ne=se[6],z=se[7]}}y.push(b),E.push(zu(b))}else for(a=a.figures.iterator;a.next();){x=a.value,b=[],b.push(x.startX),b.push(x.startY),ne=x.startX,z=x.startY,re=ne,se=z;for(var de=x.segments.s,pe=de.length,Se=0;Se<pe;Se++){var Ae=de[Se];switch(Ae.type){case Go:4<=b.length&&(y.push(b),E.push(zu(b))),b=[],b.push(Ae.endX),b.push(Ae.endY),ne=Ae.endX,z=Ae.endY,re=ne,se=z;break;case To:b.push(Ae.endX),b.push(Ae.endY),ne=Ae.endX,z=Ae.endY;break;case ba:Qt.Qe(ne,z,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,b),ne=Ae.endX,z=Ae.endY;break;case Fs:Qt.ep(ne,z,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,b),ne=Ae.endX,z=Ae.endY;break;case sa:var Re=us(Ae,x),Ue=Re.length;if(Ue===0){b.push(Ae.centerX),b.push(Ae.centerY),ne=Ae.centerX,z=Ae.centerY;break}for(var Xe=0;Xe<Ue;Xe++){var bt=Re[Xe];Qt.Qe(ne,z,bt[2],bt[3],bt[4],bt[5],bt[6],bt[7],.5,b),ne=bt[6],z=bt[7]}break;case Gs:if(Re=Ls(Ae,x,ne,z),Ue=Re.length,Xe=Ae.endX,bt=Ae.endY,Ue===0){b.push(Xe),b.push(bt),ne=Xe,z=bt;break}for(Xe=0;Xe<Ue;Xe++)bt=Re[Xe],Qt.Qe(ne,z,bt[2],bt[3],bt[4],bt[5],bt[6],bt[7],.5,b),ne=bt[6],z=bt[7];break;default:Ct("Segment not of valid type: "+Ae.type)}Ae.isClosed&&(b.push(re),b.push(se))}4<=b.length&&(y.push(b),E.push(zu(b)))}}}function zu(a){for(var y=[],E=0,b=0,x=a.length,z=0;z<x;z+=2){var ne=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(hn(E,b,ne,re))),E=ne,b=re}return y}Me.add=function(a){return this.ee.add(a),this},Me.pm=function(a,y,E,b,x,z,ne,re){return this._isFrozen&&$t(this),this.fg=new $i(a,y,x,z).freeze(),this.gg=new $i(E,b,ne,re).freeze(),this},_n.Object.defineProperties(Ti.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 gl(this),this.tk}},flattenedLengths:{get:function(){return gl(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Ti.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===Ti.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var E=y.length,b=a=0;b<E;b++)for(var x=y[b],z=x.length,ne=0;ne<z;ne++)a+=x[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&$t(this,a),this.na=a,a===Ti.o?this.ee=new Wn:(Ti.V===null&&(Ti.V=new Wn().freeze()),this.ee=Ti.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&$t(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&$t(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&$t(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&$t(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&$t(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&$t(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&$t(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&$t(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Ti.prototype.setSpots=Ti.prototype.pm,Ti.prototype.add=Ti.prototype.add,Ti.prototype.getFractionForPoint=Ti.prototype.xx,Ti.prototype.getPointAndAngleAlongPath=Ti.prototype.Qu,Ti.prototype.getAngleAlongPath=Ti.prototype.wx,Ti.prototype.getPointAlongPath=Ti.prototype.Pu,Ti.prototype.containsPoint=Ti.prototype.ca,Ti.prototype.transform=Ti.prototype.transform,Ti.prototype.rotate=Ti.prototype.rotate,Ti.prototype.scale=Ti.prototype.scale,Ti.prototype.offset=Ti.prototype.offset,Ti.prototype.normalize=Ti.prototype.normalize,Ti.prototype.computeBoundsWithoutOrigin=Ti.prototype.ix,Ti.prototype.equalsApprox=Ti.prototype.Xa,Ti.className="Geometry",Ti.j=new pn(Ti,"Line",0),Ti.u=new pn(Ti,"Rectangle",1),Ti.F=new pn(Ti,"Ellipse",2),Ti.o=new pn(Ti,"Path",3),Ti.V=null,Ti.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Ti.className="Geometry",Ti.stringify=Ti.ia,Ti.fillPath=Ti.nb,Ti.parse=Ti.parse,Ti.Line=Ti.j,Ti.Rectangle=Ti.u,Ti.Ellipse=Ti.F,Ti.Path=Ti.o;function ya(a,y,E,b,x){ar(this),E===void 0&&(E=!0),b===void 0&&(b=!0),x===void 0&&(x=!1),this.l=2|(E?4:0)|(b?8:0)|(x?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Wn,this.sr=this.pl.Ja,this.fw=null}ya.prototype.copy=function(){var a=new ya;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,E=y.length,b=a.pl,x=0;x<E;x++){var z=y[x].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Me=ya.prototype,Me.Xa=function(a){if(!(a instanceof ya&&Qt.B(this.startX,a.startX)&&Qt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var E=y.length;if(E!==a.length)return!1;for(var b=0;b<E;b++)if(!y[b].Xa(a[b]))return!1;return!0},Me.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),E=this.segments.s,b=E.length,x=0;x<b;x++)y+=" "+E[x].toString(a);return y},Me.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var E=0;E<a;E++)y[E].freeze();return this},Me.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,E=0;E<y;E++)a[E].ka();return this},Me.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,E=0;E<y;E++)if(a[E]._isInvalidBounds)return!0;return!1},Me.add=function(a){return this.pl.add(a),this},Me.ca=function(a,y,E){for(var b=this.startX,x=this.startY,z=b,ne=x,re=this.segments.s,se=re.length,de=0;de<se;de++){var pe=re[de];switch(pe.type){case Go:z=pe.endX,ne=pe.endY,b=pe.endX,x=pe.endY;break;case To:if(Qt.Yb(b,x,pe.endX,pe.endY,E,a,y))return!0;b=pe.endX,x=pe.endY;break;case ba:if(Qt.cs(b,x,pe.point1X,pe.point1Y,pe.point2X,pe.point2Y,pe.endX,pe.endY,.5,a,y,E))return!0;b=pe.endX,x=pe.endY;break;case Fs:if(Qt.jv(b,x,pe.point1X,pe.point1Y,pe.endX,pe.endY,.5,a,y,E))return!0;b=pe.endX,x=pe.endY;break;case sa:case Gs:var Se=pe.type===sa?us(pe,this):Ls(pe,this,b,x),Ae=Se.length,Re=pe.type===sa?pe.centerX:pe.endX,Ue=pe.type===sa?pe.centerY:pe.endY;if(Ae===0){if(Qt.Yb(b,x,Re,Ue,E,a,y))return!0;b=Re,x=Ue;break}for(Re=null,Ue=0;Ue<Ae;Ue++)if(Re=Se[Ue],Ue===0&&Qt.Yb(b,x,Re[0],Re[1],E,a,y)||Qt.cs(Re[0],Re[1],Re[2],Re[3],Re[4],Re[5],Re[6],Re[7],.5,a,y,E))return!0;Re!==null&&(b=Re[6],x=Re[7]);break;default:Ct("Unknown Segment type: "+pe.type)}if(pe.isClosed&&(b!==z||x!==ne)&&Qt.Yb(b,x,z,ne,E,a,y))return!0}return!1},_n.Object.defineProperties(ya.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&&$t(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&$t(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&$t(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&$t(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&$t(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&$t(this,a),this.pl=a,this._isInvalidBounds=!0}}}),ya.prototype.add=ya.prototype.add,ya.prototype.equalsApprox=ya.prototype.Xa,ya.className="PathFigure";function no(a,y,E,b,x,z,ne,re){ar(this),a===void 0&&(a=To),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,E!==void 0?this.Ec=E:this.Ec=0,b===void 0&&(b=0),x===void 0&&(x=0),z===void 0&&(z=0),ne===void 0&&(ne=0),a===Gs?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(x,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=x,a===sa&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===sa&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}no.prototype.copy=function(){var a=new no;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},Me=no.prototype,Me.Xa=function(a){if(!(a instanceof no)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Go:case To:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY);case ba:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y)&&Qt.B(this.point2X,a.point2X)&&Qt.B(this.point2Y,a.point2Y);case Fs:return Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.point1X,a.point1X)&&Qt.B(this.point1Y,a.point1Y);case sa:return Qt.B(this.startAngle,a.startAngle)&&Qt.B(this.sweepAngle,a.sweepAngle)&&Qt.B(this.centerX,a.centerX)&&Qt.B(this.centerY,a.centerY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);case Gs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Qt.B(this.xAxisRotation,a.xAxisRotation)&&Qt.B(this.endX,a.endX)&&Qt.B(this.endY,a.endY)&&Qt.B(this.radiusX,a.radiusX)&&Qt.B(this.radiusY,a.radiusY);default:return!1}},Me.qb=function(a){a.classType===no&&(this.type=a)},Me.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Go:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case To:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ba: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 Fs: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 sa: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 Gs: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":"")},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.close=function(){return this.isClosed=!0,this};function us(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var E=a.radiusX,b=a.radiusY;if(b===void 0&&(b=E),E===0||b===0)return a.ae=[],a.ae;y=a.Ne;var x=a.Vh,z=Qt.jx(0,0,E<b?E:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(E!==b){var ne=mr.alloc();ne.reset(),E<b?ne.scale(1,b/E):ne.scale(E/b,1),Ti.Ha(z,ne),mr.free(ne)}for(E=z.length,b=0;b<E;b++)ne=z[b],ne[0]+=y,ne[1]+=x,ne[2]+=y,ne[3]+=x,ne[4]+=y,ne[5]+=x,ne[6]+=y,ne[7]+=x;return a.ae=z,a.ae}function Ls(a,y,E,b){function x(Xe,bt,ft,Pt){return(Xe*Pt<bt*ft?-1:1)*Math.acos((Xe*ft+bt*Pt)/(Math.sqrt(Xe*Xe+bt*bt)*Math.sqrt(ft*ft+Pt*Pt)))}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 ne=Math.PI/180*a.Ne,re=a.isLargeArc,se=a.isClockwiseArc,de=a.Dc,pe=a.Ec,Se=Math.cos(ne),Ae=Math.sin(ne),Re=Se*(E-de)/2+Ae*(b-pe)/2;ne=-Ae*(E-de)/2+Se*(b-pe)/2;var Ue=Re*Re/(y*y)+ne*ne/(z*z);return 1<Ue&&(y*=Math.sqrt(Ue),z*=Math.sqrt(Ue)),Ue=(re===se?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Re*Re)/(y*y*ne*ne+z*z*Re*Re)),isNaN(Ue)&&(Ue=0),re=Ue*y*ne/z,Ue=Ue*-z*Re/y,isNaN(re)&&(re=0),isNaN(Ue)&&(Ue=0),E=(E+de)/2+Se*re-Ae*Ue,b=(b+pe)/2+Ae*re+Se*Ue,pe=x(1,0,(Re-re)/y,(ne-Ue)/z),Se=(Re-re)/y,de=(ne-Ue)/z,Re=(-Re-re)/y,re=(-ne-Ue)/z,ne=x(Se,de,Re,re),Re=(Se*Re+de*re)/(Math.sqrt(Se*Se+de*de)*Math.sqrt(Re*Re+re*re)),-1>=Re?ne=Math.PI:1<=Re&&(ne=0),!se&&0<ne&&(ne-=2*Math.PI),se&&0>ne&&(ne+=2*Math.PI),se=y>z?1:y/z,Re=y>z?z/y:1,y=Qt.jx(0,0,y>z?y:z,pe,pe+ne,!0),z=mr.alloc(),z.reset(),z.translate(E,b),z.rotate(a.Ne,0,0),z.scale(se,Re),Ti.Ha(y,z),mr.free(z),a.ae=y,a.ae}_n.Object.defineProperties(no.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&&$t(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&$t(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&$t(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&$t(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&$t(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&$t(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&$t(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&$t(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&$t(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&fi(a,">= zero",no,"radiusX"),this._isFrozen&&$t(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&fi(a,">= zero",no,"radiusY"),this._isFrozen&&$t(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&$t(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&&$t(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&&$t(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&&$t(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&&$t(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),no.prototype.equalsApprox=no.prototype.Xa;var Go=new pn(no,"Move",0),To=new pn(no,"Line",1),ba=new pn(no,"Bezier",2),Fs=new pn(no,"QuadraticBezier",3),sa=new pn(no,"Arc",4),Gs=new pn(no,"SvgArc",4);no.className="PathSegment",no.Move=Go,no.Line=To,no.Bezier=ba,no.QuadraticBezier=Fs,no.Arc=sa,no.SvgArc=Gs;function Ja(){this.H=null,this.xu=new rt(0,0).freeze(),this.mt=new rt(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}Ja.prototype.copy=function(){var a=new Ja;return this.clone(a)},Ja.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},Ja.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},Ja.prototype.So=function(a,y){var E=this.diagram;return E===null||Rp(E,a,y),y},Ja.prototype.Bz=function(a,y){var E=this.diagram;return E===null||(Rp(E,a,y),y.assign(E.Ps(y))),y},_n.Object.defineProperties(Ja.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}}}),Ja.prototype.getMultiTouchDocumentPoint=Ja.prototype.Bz,Ja.prototype.getMultiTouchViewPoint=Ja.prototype.So,Ja.className="InputEvent";function hu(){this.H=null,this.xa="",this.ar=this.Lr=null}hu.prototype.copy=function(){var a=new hu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},hu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},_n.Object.defineProperties(hu.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}}}),hu.className="DiagramEvent";function Ko(){this.Fm=Bo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ko.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ko.prototype.copy=function(){var a=new Ko;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=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=zt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=zt(y)&&typeof y.J=="function"?y.J():y,a},Ko.prototype.qb=function(a){a.classType===Ko&&(this.change=a)},Ko.prototype.toString=function(){var a="";return a=this.change===cs?a+"* ":this.change===Bo?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===cs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ji(this.object)),this.oldValue!==null&&(a+=" old: "+Ji(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ji(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ko.prototype.I=function(a){return a?this.oldValue:this.newValue},Ko.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ko.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ko.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ko.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ko.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},_n.Object.defineProperties(Ko.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===cs&&(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}}}),Ko.prototype.redo=Ko.prototype.redo,Ko.prototype.canRedo=Ko.prototype.canRedo,Ko.prototype.undo=Ko.prototype.undo,Ko.prototype.canUndo=Ko.prototype.canUndo,Ko.prototype.getParam=Ko.prototype.Dz,Ko.prototype.getValue=Ko.prototype.I,Ko.prototype.clear=Ko.prototype.clear;var cs=new pn(Ko,"Transaction",-1),Bo=new pn(Ko,"Property",0),na=new pn(Ko,"Insert",1),aa=new pn(Ko,"Remove",2);Ko.className="ChangedEvent",Ko.Transaction=cs,Ko.Property=Bo,Ko.Insert=na,Ko.Remove=aa;function Sa(){this.o=new Wn().freeze(),this.xa="",this.j=!1}Sa.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 E=0;E<a;E++){var b=this.changes.M(E);b!==null&&(y+=`
`+b.toString())}}return y},Sa.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.clear()}a.clear(),a.freeze()},Sa.prototype.canUndo=function(){return this.isComplete},Sa.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()}},Sa.prototype.canRedo=function(){return this.isComplete},Sa.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var E=this.changes.M(y);E!==null&&E.redo()}},Sa.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new yn,E=0;E<a.count;E++){var b=a.M(E);if(b!==null&&b.change===Bo&&b.object){var x=y.get(b.object);x||(x=new yn,y.set(b.object,x));var z=x.get(b.propertyName);z===null?x.set(b.propertyName,-1):(0<z&&a.cd(z,null),x.set(b.propertyName,E))}}for(E=y=0;E<a.count;E++)b=a.M(E),b!==null&&(E>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},_n.Object.defineProperties(Sa.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}}}),Sa.prototype.optimize=Sa.prototype.ak,Sa.prototype.redo=Sa.prototype.redo,Sa.prototype.canRedo=Sa.prototype.canRedo,Sa.prototype.undo=Sa.prototype.undo,Sa.prototype.canUndo=Sa.prototype.canUndo,Sa.prototype.clear=Sa.prototype.clear,Sa.className="Transaction";function Lo(){this.Pt=new $n,this.Jd=!1,this.u=new Wn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Wn().freeze(),this.hl=new Wn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Lo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var E=this.nestedTransactionNames.count,b=0;b<E;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(E=this.history.count,b=0;b<E;b++)y+=`
`+this.history.M(b).toString(a-1);return y},Lo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var E=a.M(y);E!==null&&E.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},Lo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Me=Lo.prototype,Me.Xw=function(a){this.Pt.add(a)},Me.Rx=function(a){this.Pt.remove(a)},Me.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},Me.eb=function(a){return a===void 0&&(a=""),ju(this,!0,a)},Me.Kf=function(){return ju(this,!1,"")};function ju(a,y,E){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&gi("Ending transaction without having started a transaction: "+E);var b=a.transactionLevel===1,x=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",E,x));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(E===""&&(E=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(z=a.hl.M(ne-1),a.hl.mb(ne-1))}if(b){if(y)a.rq=!1,x===null&&E!==""&&(x=a.currentTransaction),a.isEnabled&&x!==null&&(x.isComplete||(x.isComplete=!0,x.name=E),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===x||(y.add(x),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",E,x);else{a.Fe=!0;try{a.isEnabled&&x!==null&&(x.isComplete=!0,x.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",E,x),a.Fe=!1}x!==null&&x.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&x!==null){for(a=z,E=x.changes,x=E.count-1;x>=a;x--)y=E.M(x),y!==null&&y.undo(),E.ka(),E.mb(x);E.freeze()}return!1}Me.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var E=a.M(y);E!==null&&E.clear(),a.mb(y),this.rq=!0}a.freeze()}},Lo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Lo.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){gi("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Lo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Lo.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){gi("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Lo.prototype.Ob=function(a,y,E){E===void 0&&(E=null);var b=new Ko;for(b.change=cs,b.propertyName=a,b.object=E,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Lo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Sa);var E=a.copy();y=y.changes,y.ka(),y.add(E),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||gi("Change not within a transaction: "+E.toString()))}},Lo.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},_n.Object.defineProperties(Lo.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}}}),Lo.prototype.handleChanged=Lo.prototype.Tu,Lo.prototype.redo=Lo.prototype.redo,Lo.prototype.undo=Lo.prototype.undo,Lo.prototype.canUndo=Lo.prototype.canUndo,Lo.prototype.discardHistoryAfterIndex=Lo.prototype.lx,Lo.prototype.rollbackTransaction=Lo.prototype.Kf,Lo.prototype.commitTransaction=Lo.prototype.eb,Lo.prototype.startTransaction=Lo.prototype.Ea,Lo.prototype.removeModel=Lo.prototype.Rx,Lo.prototype.addModel=Lo.prototype.Xw,Lo.prototype.clear=Lo.prototype.clear,Lo.className="UndoManager";function qr(){ar(this),this.H=Oc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ja,this.Zr=-1}qr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Rn(this.constructor)},qr.prototype.updateAdornments=function(){},qr.prototype.canStart=function(){return this.isEnabled},qr.prototype.doStart=function(){},qr.prototype.doActivate=function(){this.isActive=!0},qr.prototype.doDeactivate=function(){this.isActive=!1},qr.prototype.doStop=function(){},qr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},qr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},qr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},qr.prototype.doMouseMove=function(){},qr.prototype.doMouseUp=function(){this.stopTool()},qr.prototype.doMouseWheel=function(){},qr.prototype.canStartMultiTouch=function(){return!0},qr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,rt.allocAt(NaN,NaN)),b=y.So(1,rt.allocAt(NaN,NaN));if(E.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var x=b.x-E.x,z=b.y-E.y;a.Jw=Math.sqrt(x*x+z*z),y.bubbles=!1}rt.free(E),rt.free(b)},qr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,E=y.So(0,rt.allocAt(NaN,NaN)),b=y.So(1,rt.allocAt(NaN,NaN));if(E.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var x=b.x-E.x,z=b.y-E.y;z=Math.sqrt(x*x+z*z)/a.Jw,x=new rt((Math.min(b.x,E.x)+Math.max(b.x,E.x))/2,(Math.min(b.y,E.y)+Math.max(b.y,E.y))/2),z*=a.Bw;var ne=a.commandHandler;if(z!==a.scale&&ne.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=x,ne.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}rt.free(E),rt.free(b)},qr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},qr.prototype.doKeyUp=function(){},qr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},qr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},qr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,E=a.Ol(y.documentPoint,!1);if(E!==null){if(vr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!E.isSelected){for(a.R("ChangingSelection",a.selection),y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!E.isSelected){for(y=E;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(vr?y.meta:y.control)||y.shift||a.clearSelection()}},qr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(x){return!x.layer.isTemporary});var E=this.diagram,b=E.lastInput;return a=E.ic(b.documentPoint,a,y),b.targetObject=a,Qc(a,b,E),b.handled};function Qc(a,y,E){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var x="ObjectSingleClicked";if(a!==null){switch(b){case 1:x="ObjectSingleClicked";break;case 2:x="ObjectDoubleClicked";break;case 3:x="ObjectContextClicked"}b!==0&&E.R(x,a)}else{switch(b){case 1:x="BackgroundSingleClicked";break;case 2:x="BackgroundDoubleClicked";break;case 3:x="BackgroundContextClicked"}b!==0&&E.R(x)}if(a!==null)for(;a!==null;){switch(E=null,b){case 1:E=a.click;break;case 2:E=a.doubleClick?a.doubleClick:a.click;break;case 3:E=a.contextClick}if(E!==null&&(E(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=E.click;break;case 2:a=E.doubleClick?E.doubleClick:E.click;break;case 3:a=E.contextClick}a!==null&&a(y)}}}qr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var E=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var x=!1;if(b!==a.Ck){var z=a.Ck,ne=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),x=!0,y.handled)))break;z=z.panel}for(z=ne,y.handled=!1;b!==null&&(ne=b.mouseEnter,!(ne!==null&&(z===b||z!==null&&z.rg(b)||(ne(y,b,z),x=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,ne="";z!==null&&(ne=z.cursor,ne==="");)z=z.panel;for(a.currentCursor=ne,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),x=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),x=!0);x&&a.$b(),a.skipsUndoManager=E}},qr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},qr.prototype.doCurrentObjectChanged=function(){},qr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,E=y.delta;if(E!==0&&a.documentBounds.w()){var b=a.commandHandler,x=a.toolManager.mouseWheelBehavior;if(b!==null&&(x===ql&&!y.shift||x===Au&&y.control))(0<E?b.canIncreaseZoom():b.canDecreaseZoom())&&(x=a.zoomPoint,a.zoomPoint=y.viewPoint,0<E?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=x),y.bubbles=!1;else if(x===ql&&y.shift||x===Au&&!y.control){b=a.position.copy();var z=y.event;x=z.deltaMode;var ne=z.deltaX;z=z.deltaY;var re="pixel";if(ne===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(E=3*E*a.scrollVerticalLineChange,a.scroll(re,0<E?"up":"down",Math.abs(E))):y.shift&&a.allowHorizontalScroll&&(E=3*E*a.scrollHorizontalLineChange,a.scroll(re,0<E?"left":"right",Math.abs(E)));else{switch(x){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ne?"right":"left",Math.abs(ne))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},qr.prototype.doWheelChange=function(a,y,E){a.position.D(y)&&E.event.wheelDeltaX===0||(E.bubbles=!1)},qr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var E=this,b=y.clone(this.yy);this.Zr=Yi(function(){E.doWaitAfter(b)},a)},qr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&mn.clearTimeout(this.Zr),this.Zr=-1},qr.prototype.doWaitAfter=function(){},qr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(E){for(;E!==null&&!(E.panel instanceof co);)E=E.panel;return E}),a===null?null:a.part.category===y?a:null},qr.prototype.isBeyondDragSize=function(a,y){var E=this.diagram;a===void 0&&(a=E.firstInput.viewPoint),y===void 0&&(y=E.lastInput.viewPoint);var b=E.toolManager.dragSize,x=b.width;return b=b.height,E.firstInput.isTouchEvent&&(x+=6,b+=6),Math.abs(y.x-a.x)>x||Math.abs(y.y-a.y)>b},_n.Object.defineProperties(qr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Tn&&(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}}}),qr.prototype.startTransaction=qr.prototype.Ea,qr.className="Tool";function Fo(){qr.call(this),this.name="ToolManager",this.hb=new Wn,this.ob=new Wn,this.Hb=new Wn,this.F=this.V=850,this.o=new en(2,2).ja(),this.Ha=5e3,this.ia=Au,this.u=Ec,this.Mp=this.j=null,this.zj=-1}dn(Fo,qr),Fo.prototype.initializeStandardTools=function(){},Fo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof co&&this.Mp===a){var E=y.adornedObject;(a!==null?E.part===a:E===null)?this.showToolTip(y,E):this.hideToolTip()}},Fo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Nl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===kl){y.bubbles=!0;return}if(this.gestureBehavior===Nl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var E=this.mouseDownTools.length,b=0;b<E;b++){var x=this.mouseDownTools.M(b);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Au?this.mouseWheelBehavior=ql:this.mouseWheelBehavior===ql&&(this.mouseWheelBehavior=Au)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Fo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===kl){y.bubbles=!0;return}if(this.gestureBehavior===Nl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var E=this.mouseMoveTools.length,b=0;b<E;b++){var x=this.mouseMoveTools.M(b);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.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)}Fo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof co&&(y===a||y.rg(a))||this.hideToolTip()},Fo.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()))},Fo.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var E=y.targetObject;if(E!==null)for(y.handled=!1;E!==null&&(a=this.isActive?E.mouseHold:E.mouseHover,!(a!==null&&(a(y,E),y.handled)));)E=E.panel;else E=this.isActive?a.mouseHold:a.mouseHover,E!==null&&E(y)},Fo.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 co)||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()},Fo.prototype.showToolTip=function(a,y){var E=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof co){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=E.scale);var b=a.diagram;b!==null&&b!==E&&b.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionToolTip(a,y)}else a instanceof ro&&a!==this.currentToolTip&&a.show(y,E,this);if(this.currentToolTip=a,this.zj!==-1&&(mn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var x=this;this.zj=Yi(function(){x.hideToolTip()},a)}},Fo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),b=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=b.width),E.x+b.width>x.right&&(E.x-=b.width+5/y.scale),E.x<x.x&&(E.x=x.x),E.y=E.y+20/y.scale+b.height>x.bottom?E.y-(b.height+5/y.scale):E.y+20/y.scale,E.y<x.y&&(E.y=x.y),a.position=E}},Fo.prototype.hideToolTip=function(){this.zj!==-1&&(mn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof co?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ro&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Fo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,E=0;E<y;E++){var b=this.mouseUpTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Fo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Fo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Fo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Fo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,E=0;E<y;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return b}for(y=this.mouseMoveTools.length,E=0;E<y;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return b;for(y=this.mouseUpTools.length,E=0;E<y;E++)if(b=this.mouseUpTools.M(E),b.name===a)return b;return null},Fo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var E=this.mouseDownTools.length,b=0;b<E;b++){var x=this.mouseDownTools.M(b);if(x.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),x}for(E=this.mouseMoveTools.length,b=0;b<E;b++)if(x=this.mouseMoveTools.M(b),x.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),x;for(E=this.mouseUpTools.length,b=0;b<E;b++)if(x=this.mouseUpTools.M(b),x.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),x;return null},Fo.prototype.gb=function(a,y,E){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&E.add(y)},_n.Object.defineProperties(Fo.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 co?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}}}),Fo.prototype.replaceStandardTool=Fo.prototype.gb;var Au=new pn(Fo,"WheelScroll",0),ql=new pn(Fo,"WheelZoom",1),Ic=new pn(Fo,"WheelNone",2),Ec=new pn(Fo,"GestureZoom",3),Nl=new pn(Fo,"GestureCancel",4),kl=new pn(Fo,"GestureNone",5);Fo.className="ToolManager",Fo.WheelScroll=Au,Fo.WheelZoom=ql,Fo.WheelNone=Ic,Fo.GestureZoom=Ec,Fo.GestureCancel=Nl,Fo.GestureNone=kl;function _o(){qr.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 rt(NaN,NaN),this.Fr=new rt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new $n().freeze(),this.ia=new le,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ts;dn(_o,qr),_o.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},_o.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},_o.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,(vr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},_o.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),Wa=null,this.isActive=!0,this.tl.set(a.position),Gu(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&&El(a),Of(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Wa=this,Vu=this.diagram,this.doSimulatedDragOut()))};function Gu(a,y){if(a.dragsLink){var E=a.diagram;E.allowRelink&&(E.model.Wj()&&y.count===1&&y.first()instanceof Li?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=E.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new el,a.Oe.diagram=E),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}_o.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},_o.prototype.Pd=function(a){return a===void 0?new qc(Ii):this.isGridSnapEnabled?new qc(new rt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new qc(a.copy())},_o.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Ll(this),Vd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ts.count){for(var y=Ts,E=y.length,b=0;b<E;b++){var x=y.M(b);Yo(x),Io(x),Ll(x),x.diagram.ug()}y.clear()}Yo(this),this.tl.h(NaN,NaN),Vu!==null&&(Vu.currentCursor=""),Wa=Vu=null,Io(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Yh(a,!0)},_o.prototype.stopTransaction=function(){var a=this.diagram,y=qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Ll(a){var y=a.diagram,E=y.skipsUndoManager;y.skipsUndoManager=!0,ml(a,y.lastInput,null),y.skipsUndoManager=E,a.Cg.length=0}function $l(){var a=Wa;Io(a),ds(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}_o.prototype.doCancel=function(){Io(this),ds(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},_o.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},_o.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function _l(a,y){if(a.copiedParts===null){var E=a.diagram;if((!y||!E.isReadOnly&&!E.isModelReadOnly)&&a.draggedParts!==null){var b=E.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(E.undoManager.Kf(),E.Ea("Drag")):ds(a),E.skipsUndoManager=!y,E.partManager.addsToTemporaryLayer=!y,a.startPoint=E.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():E.selection,y=E.Kj(y,E,!0),E=new yn,b=a.draggedParts.iterator;b.next();){var x=b.key;if(x.Zc()&&x.canCopy()){var z=y.I(x);z!==null&&(z.location=x.location,z.Va(),E.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Li&&b.canCopy()&&E.add(b,a.Pd());a.copiedParts=E,Gu(a,E.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,Td(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Io(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var E=a.draggedParts.iterator;E.next();)E.key instanceof Li&&(E.value.point=new rt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Yo(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 xa(a,y,E){var b=a.diagram,x=a.startPoint,z=rt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(x),E),rt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(El(b),b.hk())}_o.prototype.moveParts=function(a,y,E){E===void 0&&(E=!1);var b=this.diagram;b!==null&&Gd(b,a,y,this.dragOptions,E)};function ds(a){if(a.draggedParts!==null){for(var y=a.diagram,E=a.draggedParts.iterator;E.next();){var b=E.key;b.Zc()&&(b.location=E.value.point)}for(E=a.draggedParts.iterator;E.next();)if(b=E.key,b instanceof Li&&b.suspendsRouting){var x=E.value.point;a.draggedParts.add(b,a.Pd()),Td(b,-x.x,-x.y)}y.bd()}}function qa(a,y){var E=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),$s(a,!1));var b=a.findDragOverObject(y),x=E.lastInput;x.targetObject=b,a.doUpdateCursor(b);var z=E.skipsUndoManager,ne=!1;try{if(E.skipsUndoManager=!0,ne=ml(a,x,b),!a.isActive&&Wa===null)return;var re=b!==null?b.part:null;if(re===null||E.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Ir)){var se=E.mouseDragOver;se!==null&&(se(x),ne=!0)}if(!a.isActive&&Wa===null||(a.doDragOver(y,b),!a.isActive&&Wa===null))return}finally{E.skipsUndoManager=z,ne&&E.bd()}a.Bn=b,E.isReadOnly||!E.allowMove&&!E.allowCopy||!E.allowHorizontalScroll&&!E.allowVerticalScroll||E.gs(x.viewPoint)}_o.prototype.findDragOverObject=function(a){var y=this;return Rc(this.diagram,a,null,function(E){return E===null?E=!0:(E=E.part,E=!!(E===null||E instanceof co||E.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(E)||y.copiedParts&&y.copiedParts.contains(E))),!E})},_o.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 ml(a,y,E){var b=!1,x=a.Cg.length,z=0<x?a.Cg[0]:null;if(E===z)return!1;y.handled=!1;for(var ne=0;ne<x;ne++){var re=a.Cg[ne],se=re.mouseDragLeave;if(se!==null&&(se(y,re,E),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Wa===null||E===null)return b;for(y.handled=!1,x=E;x!==null;)a.Cg.push(x),x=vl(x);for(x=a.Cg.length,E=0;E<x&&(ne=a.Cg[E],re=ne.mouseDragEnter,re===null||(re(y,ne,z),b=!0,!y.handled));E++);return b}function vl(a){var y=a.panel;return y!==null?y:a instanceof cr&&!(a instanceof Ir)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function yl(a,y,E){var b=a.Oe;if(b===null)return null;var x=a.diagram.og(y,b.portGravity,function(de){return b.findValidLinkablePort(de,E)});a=rt.alloc();var z=1/0,ne=null;for(x=x.iterator;x.next();){var re=x.value;if(re.part!==null){var se=re.ga(Dr,a);se=y.Bf(se),se<z&&(ne=re,z=se)}}return rt.free(a),ne}function $s(a,y){var E=a.draggedLink;if(E!==null&&!(2>E.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var x=a.Oe;if(x!==null){var z=null,ne=null;E.fromNode===null&&(z=yl(a,E.i(0),!1),z!==null&&(ne=z.part));var re=null,se=null;E.toNode===null&&(re=yl(a,E.i(E.pointsCount-1),!0),re!==null&&(se=re.part)),x.isValidLink(ne,z,se,re)?y?(E.defaultFromPoint=E.i(0),E.defaultToPoint=E.i(E.pointsCount-1),E.suspendsRouting=!1,E.fromNode=ne,z!==null&&(E.fromPortId=z.portId),E.toNode=se,re!==null&&(E.toPortId=re.portId),E.fromPort!==b.Mx&&b.R("LinkRelinked",E,b.Mx),E.toPort!==b.Nx&&b.R("LinkRelinked",E,b.Nx)):we(x,ne,z,se,re):we(x,null,null,null,null)}}}}_o.prototype.doDragOver=function(){};function Ul(a,y){var E=a.diagram;a.dragsLink&&$s(a,!0),Ll(a);var b=a.findDragOverObject(y),x=E.lastInput;if(x.targetObject=b,b!==null){x.handled=!1;for(var z=b;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(x,z),x.handled))break;dd(a,x,z),z=vl(z)}}else z=E.mouseDrop,z!==null&&z(x);if(a.isActive||Wa!==null){for(x=(a.copiedParts||a.draggedParts).iterator;x.next();)z=x.key,z instanceof Gi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Wa!==null){for(a=xn.alloc(),y=E.selection.iterator;y.next();)b=y.value,b instanceof Gi&&mh(E,b,a);xn.free(a)}}}function dd(a,y,E){a=a.diagram,E=E.part,!a.handlesDragDropForTopLevelParts||!E.isTopLevel||E instanceof Ir||(E=a.mouseDrop,E!==null&&E(y))}function mh(a,y,E){var b=!1;if(E=y.getAvoidableRect(E),a.viewportBounds.Re(E)&&(b=!0),a=a.Nu(E,function(x){return x.part},function(x){return x instanceof Li},!0,function(x){return x instanceof Li},b),a.count!==0)for(a=a.iterator;a.next();)E=a.value,!E.Td(y)&&E.isAvoiding&&E.bb()}_o.prototype.doDropOnto=function(){},_o.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()?(_l(this,!1),Of(a,this.copiedParts),xa(this,this.copiedParts,!1),Vd(a,this.copiedParts)):this.mayMove()?(Io(this),xa(this,this.draggedParts,!0)):this.mayDragOut()?(_l(this,!1),xa(this,this.copiedParts,!1)):Io(this),qa(this,a.lastInput.documentPoint))}},_o.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 E=this.mayCopy();if(E&&this.copiedParts!==null?(Io(this),_l(this,!0),Of(a,this.copiedParts),xa(this,this.copiedParts,!1),Vd(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0}))):(y=!0,Io(this),this.mayMove()&&(xa(this,this.draggedParts,!0),qa(this,a.lastInput.documentPoint))),this.Ym=!0,Ul(this,a.lastInput.documentPoint),this.isActive){var b=E?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&vh(this),a.Ya(),Vd(a,this.draggedParts),this.transactionResult=E?"Copy":"Move",a.R(E?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),E&&a.R("ChangedSelection",a.selection)}}},_o.prototype.simulatedMouseMove=function(a,y,E){if(Wa===null)return!1;var b=Wa.diagram;E instanceof Tn||(E=null);var x=Vu;return E!==x&&(x!==null&&x!==b&&(x.ug(),Wa.isDragOutStarted=!1,x=x.toolManager.findTool("Dragging"),x!==null&&x.doSimulatedDragLeave()),Vu=E,E!==null&&E!==b&&($l(),x=E.toolManager.findTool("Dragging"),x!==null&&(Ts.contains(x)||Ts.add(x),x.doSimulatedDragEnter())),this.doUpdateCursor(null)),E===null||E===b||!E.allowDrop||E.isReadOnly||!E.allowInsert?!1:(b=E.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=E.getMouse(a)),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!1,b.doSimulatedDragOver()),!0)},_o.prototype.simulatedMouseUp=function(a,y,E){if(Wa===null)return!1;var b=Vu,x=Wa.diagram;if(E===null)return Wa.doCancel(),!0;if(E!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==x&&z!==null)return b.ug(),Wa.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Vu=E,b=E.toolManager.findTool("Dragging"),b!==null&&($l(),Ts.contains(b)||Ts.add(b),b.doSimulatedDragEnter())}return E!==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=E.getMouse(a)):y===null&&(y=new rt),E.lastInput.documentPoint=y,E.lastInput.viewPoint=E.op(y),E.lastInput.down=!1,E.lastInput.up=!0,a=E.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Wa,a!==null&&(E=a.mayCopy(),a.transactionResult=E?"Copy":"Move",a.stopTool()),!0):!1};function vh(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var E=y.key;E instanceof Gi&&(E=E.containingGroup,E===null||E.placeholder===null||a.draggedParts.contains(E)||E.placeholder.v())}}_o.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(vr?!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())},_o.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())},_o.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())},_o.prototype.computeBorder=function(a,y,E){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:E.assign(y)},_o.prototype.Az=function(){return Wa},_o.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Wa;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},_o.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),mu(a),a.animationManager.Cc(),a=Wa,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},_o.prototype.doSimulatedDragLeave=function(){var a=Wa;a!==null&&a.doSimulatedDragOut(),this.doCancel()},_o.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Wa;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yh(this,y.draggedParts.Lf(),!1,a.firstInput),xa(this,this.copiedParts,!1),qa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},_o.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Wa;if(y!==null){var E=y.diagram;if(y.Ym=!0,Io(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yh(this,y.draggedParts.Lf(),!0,a.lastInput),xa(this,this.copiedParts,!1);var b=new $n;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0,b.add(x)})),Ul(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,E),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function yh(a,y,E,b){if(a.copiedParts===null){var x=a.diagram;if(!x.isReadOnly&&!x.isModelReadOnly){x.skipsUndoManager=!E,x.partManager.addsToTemporaryLayer=!E,a.startPoint=b.documentPoint,E=x.Kj(y,x,!0);var z=xn.alloc();x=b=1/0;for(var ne=-1/0,re=-1/0,se=y.iterator;se.next();){var de=se.value;if(de.isVisible()){var pe=de.location;de=pe.x,pe=pe.y,isNaN(de)||isNaN(pe)||(de<b&&(b=de),pe<x&&(x=pe),de>ne&&(ne=de),pe>re&&(re=pe))}}for(b===1/0?z.h(0,0,0,0):z.h(b,x,ne-b,re-x),b=z.x+z.width/2,x=z.y+z.height/2,xn.free(z),z=a.Fr,ne=new yn,re=rt.alloc(),se=y.iterator;se.next();)de=se.value,de instanceof Li&&de.canCopy()&&(pe=E.I(de),pe!==null&&(pe.points=de.points,Td(pe,z.x-b,z.y-x),pe.suspendsRouting=!0,ne.add(pe,a.Pd())));for(y=y.iterator;y.next();)de=y.value,de.Zc()&&de.canCopy()&&(se=E.I(de),se!==null&&(de=de.location,re.h(z.x-(b-de.x),z.y-(x-de.y)),se.location=re,se.Va(),ne.add(se,a.Pd(re))));rt.free(re),a.copiedParts=ne,Gu(a,ne.Lf()),a.draggedLink!==null&&(E=a.draggedLink,y=E.routeBounds,Td(E,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}_o.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},_o.prototype.computeMove=function(a,y,E,b){return E=this.diagram,E!==null?E.computeMove(a,y,this.dragOptions,b):new rt},_n.Object.defineProperties(_o.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}}}),_o.prototype.getDraggingSource=_o.prototype.Az;var Wa=null,Vu=null;_o.className="DraggingTool",Ts=new Wn,Jn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Fo.prototype.doCancel=function(){Wa!==null&&Wa.doCancel(),qr.prototype.doCancel.call(this)};function ra(){qr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Li,y=new Hr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Hr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Gi,y=new Hr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Bi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Gi,y=new Hr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Bi,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 yn,this.Of=this.gj=this.Pf=null}dn(ra,qr),ra.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ra.prototype.copyPortProperties=function(a,y,E,b,x){if(a!==null&&y!==null&&E!==null&&b!==null){var z=y.Df(),ne=en.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,b.desiredSize=ne,en.free(ne),x?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),E.locationSpot=Dr,z=rt.alloc(),E.location=y.ga(Dr,z),rt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,E,b,x)}},ra.prototype.setNoTargetPortProperties=function(a,y,E){y!==null&&(y.desiredSize=Bi,y.fromSpot=Mr,y.toSpot=Mr),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,E)},ra.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ra.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Gi){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)}},ra.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var E=a.part;if(!(E instanceof Gi))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Gi)&&(y?this.isValidTo(E,a):this.isValidFrom(E,a)))return a;if(b===!1)break;a=a.panel}return null},ra.prototype.findTargetPort=function(a){var y=this.diagram,E=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var x=this,z=y.og(E,b,function(Se){return x.findValidLinkablePort(Se,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,re=ne.part;if(re instanceof Gi){var se=ne.ga(Dr,rt.alloc()),de=E.x-se.x,pe=E.y-se.y;rt.free(se),se=de*de+pe*pe,se<b&&(de=this.validPortsCache.I(ne),de!==null?de&&(y=ne,b=se):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ne)||!a&&this.isValidLink(re,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,b=se):this.validPortsCache.add(ne,!1))}}return y!==null&&(E=y.part,E instanceof Gi&&(E.layer===null||E.layer.allowLink))?y:null},ra.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 E=y.fromMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=E)return!1}return!0},ra.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 E=y.toMaxLinks;if(1/0>E){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=E)return!1}return!0},ra.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},ra.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var E=a.part;if(!(E instanceof Gi))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Gi))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===E&&b.fromPortId===a)return!0;return!1},ra.prototype.isValidLink=function(a,y,E,b){if(!this.isValidFrom(a,y)||!this.isValidTo(E,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||E!==null&&this.isLabelDependentOnLink(E,this.originalLink))||a!==null&&E!==null&&(a.data===null&&E.data!==null||a.data!==null&&E.data===null)||!this.isValidCycle(a,E,this.originalLink))return!1;if(a!==null){var x=a.linkValidation;if(x!==null&&!x(a,y,E,b,this.originalLink))return!1}return E!==null&&(x=E.linkValidation,x!==null&&!x(a,y,E,b,this.originalLink))?!1:(x=this.linkValidation,x!==null?x(a,y,E,b,this.originalLink):!0)},ra.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var E=a.labeledLink;if(E===null)return!1;if(E===y)return!0;var b=new $n;return b.add(a),ms(this,E,y,b)};function ms(a,y,E,b){if(y===E)return!0;var x=y.fromNode;return x!==null&&x.isLinkLabel&&(b.add(x),ms(a,x.labeledLink,E,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ms(a,y.labeledLink,E,b))))}ra.prototype.isValidCycle=function(a,y,E){if(E===void 0&&(E=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==$h){if(b===Qp){if(b=E||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var x=b.value;if(x!==E&&x.isTreeLink&&x.toNode===y)return!1}return!Ps(this,a,y,E,!0)}if(b===Jp){if(b=E||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(x=b.value,x!==E&&x.isTreeLink&&x.fromNode===a)return!1;return!Ps(this,a,y,E,!0)}if(b===Kp)return a===y?a=!0:(b=new $n,b.add(y),a=bs(this,b,a,y,E)),!a;if(b===Yp)return!Ps(this,a,y,E,!1);if(b===Xp)return a===y?a=!0:(b=new $n,b.add(y),a=sc(this,b,a,y,E)),!a}return!0};function Ps(a,y,E,b,x){if(y===E)return!0;if(y===null||E===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==b&&(!x||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&Ps(a,ne,E,b,x)))return!0}return!1}function bs(a,y,E,b,x){if(E===b)return!0;if(E===null||b===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ne=z.value;if(ne!==x&&ne.toNode===E&&(ne=ne.fromNode,ne!==E&&bs(a,y,ne,b,x)))return!0}return!1}function sc(a,y,E,b,x){if(E===b)return!0;if(E===null||b===null||y.contains(E))return!1;y.add(E);for(var z=E.linksConnected;z.next();){var ne=z.value;if(ne!==x){var re=ne.fromNode;if(ne=ne.toNode,re=re===E?ne:re,re!==E&&sc(a,y,re,b,x))return!0}}return!1}_n.Object.defineProperties(ra.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 E=y.O.indexOf(this.j);y.mb(E),y.Gb(E,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 E=y.O.indexOf(this.o);y.mb(E),y.Gb(E,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}}}),ra.className="LinkingBaseTool";function Is(){ra.call(this),this.name="Linking",this.V={},this.F=null,this.K=Wu,this.Xd=null}dn(Is,ra),Is.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},Is.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 Gi)))return null;var E=this.direction;if(E===Wu||E===hd){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(E===Wu||E===fd)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Is.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 Gi&&(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 Gi&&(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)},Is.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()},Is.prototype.doStop=function(){ra.prototype.doStop.call(this),this.startObject=null},Is.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,E=null,b=null,x=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var re=ne.part;re instanceof Gi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,E=this.originalFromPort),b=re,x=ne):(y=re,E=ne,this.originalToNode!==null&&(b=this.originalToNode,x=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,E=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,x=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,E,b,x),z!==null?(ne===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,E,b,x)):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)}}},Is.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Li)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)},Is.prototype.insertLink=function(a,y,E,b){return this.diagram.partManager.insertLink(a,y,E,b)},Is.prototype.doNoLink=function(){},_n.Object.defineProperties(Is.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 Wu=new pn(Is,"Either",0),hd=new pn(Is,"ForwardsOnly",0),fd=new pn(Is,"BackwardsOnly",0);Is.className="LinkingTool",Is.Either=Wu,Is.ForwardsOnly=hd,Is.BackwardsOnly=fd;function el(){ra.call(this),this.name="Relinking";var a=new Hr;a.figure="Diamond",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Hr,a.figure="Diamond",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new xn}dn(el,ra),el.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Li){var y="RelinkFrom",E=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(E=a.Pj(y),E===null&&(E=this.makeAdornment(b,!1),a.bh(y,E)))}E===null&&a.Jf(y),y="RelinkTo",E=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(E=a.Pj(y),E===null?(E=this.makeAdornment(b,!0),a.bh(y,E)):E.v())),E===null&&a.Jf(y)}},el.prototype.makeAdornment=function(a,y){var E=new co;return E.type=wi.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&E.add(y.copy()),E.adornedObject=a,E},el.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},el.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 E=y.part;if(!(E instanceof co&&E.adornedPart instanceof Li))return;this.handle=y,this.isForwards=E===null||E.category==="RelinkTo",this.originalLink=E.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=ri),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ri),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},el.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var E=a.curve;(E===ip||E===Pd)&&(E=sl),y.curve=E,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}},el.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()},el.prototype.doStop=function(){ra.prototype.doStop.call(this),this.handle=null},el.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,E=this.originalFromPort,b=this.originalToNode,x=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof Gi&&(this.isForwards?(b=ne,x=this.targetPort):(y=ne,E=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?x=b=null:E=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?x:E,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()}}},el.prototype.reconnectLink=function(a,y,E,b){return E=E!==null&&E.portId!==null?E.portId:"",b?(a.toNode=y,a.toPortId=E):(a.fromNode=y,a.fromPortId=E),!0},el.prototype.doNoRelink=function(){};function we(a,y,E,b,x){y!==null?(a.copyPortProperties(y,E,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,x,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}_n.Object.defineProperties(el.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 co))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),el.className="RelinkingTool",Jn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Jn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ze(){qr.call(this),this.name="LinkReshaping";var a=new Hr;a.figure="Rectangle",a.desiredSize=dr,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Hr,a.figure="Diamond",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new rt,this.Yq=new Wn}dn(Ze,qr),Ze.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ct},Ze.prototype.om=function(a,y){a.reshapingBehavior=y},Ze.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Li){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.path;E!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(E),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Ze.prototype.makeAdornment=function(a){var y=a.part,E=y.pointsCount,b=y.isOrthogonal,x=null;if(y.points!==null&&1<E){x=new co,x.type=wi.Link,E=y.firstPickIndex;var z=y.lastPickIndex,ne=b?1:0;if(y.resegmentable&&y.computeCurve()!==su)for(var re=E+ne;re<z-ne;re++){var se=this.makeResegmentHandle(a,re);se!==null&&(se.segmentIndex=re,se.segmentFraction=.5,se.fromMaxLinks=999,x.add(se))}for(ne=E+1;ne<z;ne++)if(re=this.makeHandle(a,ne),re!==null){if(re.segmentIndex=ne,ne!==E)if(ne===E+1&&b){se=y.i(E);var de=y.i(E+1);Qt.B(se.x,de.x)&&Qt.B(se.y,de.y)&&(de=y.i(E-1)),Qt.B(se.x,de.x)?(this.om(re,Mt),re.cursor="n-resize"):Qt.B(se.y,de.y)&&(this.om(re,kt),re.cursor="w-resize")}else ne===z-1&&b?(se=y.i(z-1),de=y.i(z),Qt.B(se.x,de.x)&&Qt.B(se.y,de.y)&&(se=y.i(z+1)),Qt.B(se.x,de.x)?(this.om(re,Mt),re.cursor="n-resize"):Qt.B(se.y,de.y)&&(this.om(re,kt),re.cursor="w-resize")):ne!==z&&(this.om(re,tn),re.cursor="move");x.add(re)}x.adornedObject=a}return x},Ze.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ze.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ze.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},Ze.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 Li){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var E=y.points.copy(),b=this.getResegmentingPoint();if(E.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&E.Gb(this.handle.segmentIndex+1,b),y.points=E,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}}},Ze.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ze.prototype.stopTransaction=function(){var a=this.diagram,y=qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ze.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ze.prototype.getResegmentingPoint=function(){return this.handle.ga(Dr)},Ze.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ze.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 E=this.handle.segmentIndex,b=y.i(E-1),x=y.i(E),z=y.i(E+1);if(y.isOrthogonal){if(E>y.firstPickIndex+1&&E<y.lastPickIndex-1){var ne=y.i(E-2);if(Math.abs(b.x-x.x)<this.resegmentingDistance&&Math.abs(b.y-x.y)<this.resegmentingDistance&&(et(this,ne,b,x,z,!0)||et(this,ne,b,x,z,!1))){var re=y.points.copy();et(this,ne,b,x,z,!0)?(re.cd(E-2,new rt(ne.x,(z.y+ne.y)/2)),re.cd(E+1,new rt(z.x,(z.y+ne.y)/2))):(re.cd(E-2,new rt((z.x+ne.x)/2,ne.y)),re.cd(E+1,new rt((z.x+ne.x)/2,z.y))),re.mb(E),re.mb(E-1),y.points=re,y.Wb()}else ne=y.i(E+2),Math.abs(x.x-z.x)<this.resegmentingDistance&&Math.abs(x.y-z.y)<this.resegmentingDistance&&(et(this,b,x,z,ne,!0)||et(this,b,x,z,ne,!1))&&(re=y.points.copy(),et(this,b,x,z,ne,!0)?(re.cd(E-1,new rt(b.x,(b.y+ne.y)/2)),re.cd(E+2,new rt(ne.x,(b.y+ne.y)/2))):(re.cd(E-1,new rt((b.x+ne.x)/2,b.y)),re.cd(E+2,new rt((b.x+ne.x)/2,ne.y))),re.mb(E+1),re.mb(E),y.points=re,y.Wb())}}else ne=rt.alloc(),Qt.qh(b.x,b.y,z.x,z.y,x.x,x.y,ne)&&ne.Bf(x)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(E),y.points=b,y.Wb()),rt.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function et(a,y,E,b,x,z){return z?Math.abs(y.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-x.y)<a.resegmentingDistance:Math.abs(y.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-x.x)<a.resegmentingDistance}Ze.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var E=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(E===y.firstPickIndex+1)E=y.firstPickIndex+1,b===Mt?(y.L(E,y.i(E-1).x,a.y),y.L(E+1,y.i(E+2).x,a.y)):b===kt&&(y.L(E,a.x,y.i(E-1).y),y.L(E+1,a.x,y.i(E+2).y));else if(E===y.lastPickIndex-1)E=y.lastPickIndex-1,b===Mt?(y.L(E-1,y.i(E-2).x,a.y),y.L(E,y.i(E+1).x,a.y)):b===kt&&(y.L(E-1,a.x,y.i(E-2).y),y.L(E,a.x,y.i(E+1).y));else{b=E;var x=y.i(b),z=y.i(b-1),ne=y.i(b+1);Qt.B(z.x,x.x)&&Qt.B(x.y,ne.y)?(Qt.B(z.x,y.i(b-2).x)&&!Qt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),E++,b++):y.L(b-1,a.x,z.y),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)):Qt.B(z.y,x.y)&&Qt.B(x.x,ne.x)?(Qt.B(z.y,y.i(b-2).y)&&!Qt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),E++,b++):y.L(b-1,z.x,a.y),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(z.x,x.x)&&Qt.B(x.x,ne.x)?(Qt.B(z.x,y.i(b-2).x)&&!Qt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),E++,b++):y.L(b-1,a.x,z.y),Qt.B(ne.x,y.i(b+2).x)&&!Qt.B(ne.y,y.i(b+2).y)?y.m(b+1,a.x,ne.y):y.L(b+1,a.x,ne.y)):Qt.B(z.y,x.y)&&Qt.B(x.y,ne.y)&&(Qt.B(z.y,y.i(b-2).y)&&!Qt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),E++,b++):y.L(b-1,z.x,a.y),Qt.B(ne.y,y.i(b+2).y)&&!Qt.B(ne.x,y.i(b+2).x)?y.m(b+1,ne.x,a.y):y.L(b+1,ne.x,a.y)),y.L(E,a.x,a.y)}else y.L(E,a.x,a.y),b=y.fromNode,x=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,x=b.port)),E===1&&y.computeSpot(!0,x).Mc()&&(z=x.ga(Dr,rt.alloc()),b=y.getLinkPointFromPoint(b,x,z,a,!0,rt.alloc()),y.L(0,b.x,b.y),rt.free(z),rt.free(b)),b=y.toNode,x=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,x=b.port)),E===y.pointsCount-2&&y.computeSpot(!1,x).Mc()&&(E=x.ga(Dr,rt.alloc()),a=y.getLinkPointFromPoint(b,x,E,a,!1,rt.alloc()),y.L(y.pointsCount-1,a.x,a.y),rt.free(E),rt.free(a));y.zf()},Ze.prototype.computeReshape=function(a){var y=this.adornedLink,E=this.handle.segmentIndex;switch(this.Ru(this.handle)){case tn:return a;case Mt:return new rt(y.i(E).x,a.y);case kt:return new rt(a.x,y.i(E).y);default:case ct:return y.i(E)}},_n.Object.defineProperties(Ze.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 co))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}}}),Ze.prototype.setReshapingBehavior=Ze.prototype.om,Ze.prototype.getReshapingBehavior=Ze.prototype.Ru;var ct=new pn(Ze,"None",0),kt=new pn(Ze,"Horizontal",1),Mt=new pn(Ze,"Vertical",2),tn=new pn(Ze,"All",3);Ze.className="LinkReshapingTool",Ze.None=ct,Ze.Horizontal=kt,Ze.Vertical=Mt,Ze.All=tn,Jn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function En(){qr.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 Hr;a.alignmentFocus=Dr,a.figure="Rectangle",a.desiredSize=dr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new rt,this.Dw=new en,this.Tn=new rt,this.rt=new en(0,0),this.qt=new en(1/0,1/0),this.pt=new en(1,1)}dn(En,qr),En.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Li)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,E=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null)){y=y.li(),Qd(a)&&this.updateResizeHandles(E,y),a.bh(this.name,E);return}}a.Jf(this.name)}},En.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new co,y.type=wi.Spot,y.locationSpot=Dr;var E=new al;E.isPanelMain=!0,y.add(E),y.add(this.makeHandle(a,Kr)),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,vo)),y.add(this.makeHandle(a,va)),y.add(this.makeHandle(a,ls)),y.add(this.makeHandle(a,Va)),y.add(this.makeHandle(a,is)),y.add(this.makeHandle(a,Es))}else if(Ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},En.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},En.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var E=a.alignment;if(E.Mc()&&(E=Dr),0>=E.x)y=0>=E.y?y+225:1<=E.y?y+135:y+180;else if(1<=E.x)0>=E.y?y+=315:1<=E.y&&(y+=45);else if(0>=E.y)y+=270;else if(1<=E.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 wi)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},En.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},En.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))},En.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},En.prototype.stopTransaction=function(){var a=this.diagram,y=qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},En.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},En.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,b=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,rt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,E,b,z),this.resize(y),a.bd(),rt.free(x)}},En.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,E=this.qt,b=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,rt.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,E,b,z),this.resize(y),rt.free(x),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},En.prototype.resize=function(a){var y=this.diagram,E=this.adornedObject;if(E!==null){if(E.desiredSize=a.size,a=E.part,a.Va(),E=E.ga(this.handle.alignment.gv()),a instanceof Ir){var b=new Wn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var x=new le;x.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(E),!0,x)}else a.location=a.location.copy().re(E).add(this.oppositePoint);y.bd()}},En.prototype.computeResize=function(a,y,E,b,x,z){y.Mc()&&(y=Dr);var ne=this.adornedObject.naturalBounds,re=ne.x,se=ne.y,de=ne.x+ne.width,pe=ne.y+ne.height,Se=1;if(!z){Se=ne.width;var Ae=ne.height;0>=Se&&(Se=1),0>=Ae&&(Ae=1),Se=Ae/Se}return Ae=rt.alloc(),Qt.No(a.x,a.y,re,se,x.width,x.height,Ae),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ae.x,de-b.width),a.x=Math.min(a.x,de-E.width),a.width=Math.max(de-a.x,E.width),a.y=Math.max(Ae.y,pe-b.height),a.y=Math.min(a.y,pe-E.height),a.height=Math.max(pe-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,b.height),E.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,b.width),E.width),a.height=Se*a.width),a.x=de-a.width,a.y=pe-a.height)):1<=y.y?(a.x=Math.max(Ae.x,de-b.width),a.x=Math.min(a.x,de-E.width),a.width=Math.max(de-a.x,E.width),a.height=Math.max(Math.min(Ae.y-se,b.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,b.height),E.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,b.width),E.width),a.height=Se*a.width),a.x=de-a.width)):(a.x=Math.max(Ae.x,de-b.width),a.x=Math.min(a.x,de-E.width),a.width=de-a.x,z||(a.height=Math.max(Math.min(Se*a.width,b.height),E.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ae.x-re,b.width),E.width),a.y=Math.max(Ae.y,pe-b.height),a.y=Math.min(a.y,pe-E.height),a.height=Math.max(pe-a.y,E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,b.height),E.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,b.width),E.width),a.height=Se*a.width),a.y=pe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ae.x-re,b.width),E.width),a.height=Math.max(Math.min(Ae.y-se,b.height),E.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,b.height),E.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,b.width),E.width),a.height=Se*a.width))):(a.width=Math.max(Math.min(Ae.x-re,b.width),E.width),z||(a.height=Math.max(Math.min(Se*a.width,b.height),E.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):0>=y.y?(a.y=Math.max(Ae.y,pe-b.height),a.y=Math.min(a.y,pe-E.height),a.height=pe-a.y,z||(a.width=Math.max(Math.min(a.height/Se,b.width),E.width),a.height=Se*a.width,a.x=re+.5*(de-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ae.y-se,b.height),E.height),z||(a.width=Math.max(Math.min(a.height/Se,b.width),E.width),a.height=Se*a.width,a.x=re+.5*(de-re-a.width))),rt.free(Ae),a},En.prototype.computeReshape=function(){var a=hi;return this.adornedObject instanceof Hr&&(a=Av(this.adornedObject)),!(a===rr||this.diagram.lastInput.shift)},En.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},En.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},En.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},_n.Object.defineProperties(En.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 co))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 co)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}}}),En.className="ResizingTool",Jn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function vi(){qr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new rt,this.ue=null;var a=new Hr;a.figure="Ellipse",a.desiredSize=Ki,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new rt(NaN,NaN),this.u=0,this.F=50}dn(vi,qr),vi.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 E=a.Pj(this.name);if((E===null||E.adornedObject!==y)&&(E=this.makeAdornment(y)),E!==null){E.angle=y.li(),E.placeholder===null&&(E.location=this.computeAdornmentLocation(y)),a.bh(this.name,E);return}}a.Jf(this.name)}},vi.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new co,y.type=wi.Position,y.locationSpot=Dr;var E=this.handleArchetype;E!==null&&y.add(E.copy())}else if(Ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},vi.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},vi.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)},vi.prototype.computeRotationPoint=function(a){var y=a.part,E=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===E?E.ga(y.locationSpot):a.ga(Dr)},vi.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var E=this.handleAngle;0>E?E+=360:360<=E&&(E-=360),E=Math.round(45*Math.round(E/45));var b=this.handleDistance;return E===0?y.x=a.naturalBounds.width+b:E===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):E===90?y.y=a.naturalBounds.height+b:E===135?(y.x=-b,y.y=a.naturalBounds.height+b):E===180?y.x=-b:E===225?(y.x=-b,y.y=-b):E===270?y.y=-b:E===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},vi.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new rt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},vi.prototype.stopTransaction=function(){var a=this.diagram,y=qr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},vi.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},vi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},vi.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()},vi.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var E=y.locationObject,b=y.rotateObject;(E===b||E.rg(b))&&(E=this.Tn.copy(),y.location=E.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},vi.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 E=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<E&&(a%y<E?a=Math.floor(a/y)*y:a%y>y-E&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},_n.Object.defineProperties(vi.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 co))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 co)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}}}),vi.className="RotatingTool",Jn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bi(){qr.call(this),this.name="ClickSelecting"}dn(bi,qr),bi.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},bi.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},bi.className="ClickSelectingTool";function Xn(){qr.call(this),this.name="Action",this.pk=null}dn(Xn,qr),Xn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,E=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return E!==null&&E.isActionable?(this.pk=E,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Xn.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()},Xn.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))}},Xn.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(E){for(;E.panel!==null&&(!E.isActionable||E!==y);)E=E.panel;return E},function(E){return E===y})}this.stopTool()},Xn.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())},Xn.prototype.doStop=function(){this.pk=null},Xn.className="ActionTool";function Ui(){qr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new rt(0,0)}dn(Ui,qr),Ui.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)},Ui.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Ui.prototype.insertPart=function(a){var y=this.diagram,E=this.archetypeNodeData;if(E===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),E instanceof cr)E.Zc()&&(Ou(E),b=E.copy(),b!==null&&y.add(b));else if(E!==null){var x=y.model.copyNodeData(E);zt(x)&&(y.model.xf(x),b=y.Lc(x))}if(b!==null){var z=rt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Mf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),rt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},_n.Object.defineProperties(Ui.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}}}),Ui.className="ClickCreatingTool";function Oi(){qr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new cr;a.layerName="Tool",a.selectable=!1;var y=new Hr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}dn(Oi,qr),Oi.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))},Oi.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Oi.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Oi.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),E=this.box.fb("SHAPE");E===null&&(E=this.box.Pb());var b=en.alloc().h(y.width,y.height);E.desiredSize=b,this.box.mm(y.x,y.y,!1),en.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Oi.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()},Oi.prototype.computeBoxBounds=function(){var a=this.diagram;return new xn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Oi.prototype.selectInRect=function(a){var y=this.diagram,E=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),vr?E.meta:E.control)if(E.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(E.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(E=new Wn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||E.add(b)}for(y=E.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},_n.Object.defineProperties(Oi.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}}}),Oi.className="DragSelectingTool";function ei(){qr.call(this),this.name="Panning",this.Xt=new rt,this.xy=new rt,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()}}dn(ei,qr),ei.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())},ei.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},ei.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ei.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ei.prototype.doMouseMove=function(){this.move()},ei.prototype.doMouseUp=function(){this.move(),this.stopTool()},ei.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,E=a.firstInput.documentPoint,b=a.lastInput.documentPoint,x=y.x+E.x-b.x;E=y.y+E.y-b.y,a.allowHorizontalScroll||(x=y.x),a.allowVerticalScroll||(E=y.y),a.position=this.xy.h(x,E)}},_n.Object.defineProperties(ei.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ei.className="PanningTool",Jn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Jn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Jn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Jn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Jn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function ro(){this.F=this.u=this.j=this.o=null}_n.Object.defineProperties(ro.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}}}),ro.className="HTMLInfo";function Eo(a,y,E){this.text=a,this.hx=y,this.visible=E}Eo.className="ContextMenuButtonInfo";function Mo(){qr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new rt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}dn(Mo,qr);function jr(a){var y=new ro;y.show=function(x,z,ne){ne.showDefaultContextMenu()},y.hide=function(x,z){z.hideDefaultContextMenu()},Pr=y,a.tu=function(){a.stopTool()},y=mi("div");var E=mi("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",E.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=mi("style");mn.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",ao,!1),b.addEventListener(y,"selectstart",ao,!1),b.addEventListener(E,"contextmenu",ao,!1)),y.className="goCXforeground",E.className="goCXbackground",mn.document.body&&(mn.document.body.appendChild(y),mn.document.body.appendChild(E)),pa=y,$a=E,Aa=!0}function ao(a){return a.preventDefault(),!1}Mo.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)},Mo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Mo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Mo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.lastInput,b=null;if(a instanceof Tn||(a instanceof qt?b=a:b=y.ic(E.documentPoint,null,function(x){return!x.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Mo.prototype.doActivate=function(){},Mo.prototype.doMouseDown=function(){if(qr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof co){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&po(this)},Mo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof co){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}po(this)};function po(a){var y=a.diagram;if(a.isActive){var E=a.currentContextMenu;if(E!==null){var b=null;E instanceof ro||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(E)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(wa(a,!0),a.isActive||a.stopTool())}Mo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function wa(a,y,E){if(E===void 0&&(E=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Pr,E===null&&(E=a.findObjectWithContextMenu()),E!==null){var b=E.contextMenu;b!==null?(a.currentObject=E instanceof qt?E:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof co&&!a.currentContextMenu.visible&&a.stopTool()}}Mo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Mo.prototype.showContextMenu=function(a,y){var E=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof co){a.layerName="Tool",a.selectable=!1,a.scale=1/E.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=E.scale);var b=a.diagram;b!==null&&b!==E&&b.remove(a),E.add(a),y!==null?a.adornedObject=y:a.data=E.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof ro&&a.show(y,E,this);this.currentContextMenu=a},Mo.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,E=y.lastInput.documentPoint.copy(),b=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(E.x-=b.width),E.x+b.width>x.right&&(E.x-=b.width+5/y.scale),E.x<x.x&&(E.x=x.x),E.y+b.height>x.bottom&&(E.y-=b.height+5/y.scale),E.y<x.y&&(E.y=x.y),a.position=E}},Mo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof co?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ro&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ca(a){var y=new Wn;return y.add(new Eo("Copy",function(E){E.commandHandler.copySelection()},function(E){return E.commandHandler.canCopySelection()})),y.add(new Eo("Cut",function(E){E.commandHandler.cutSelection()},function(E){return E.commandHandler.canCutSelection()})),y.add(new Eo("Delete",function(E){E.commandHandler.deleteSelection()},function(E){return E.commandHandler.canDeleteSelection()})),y.add(new Eo("Paste",function(E){E.commandHandler.pasteSelection(a.mouseDownPoint)},function(E){return E.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Eo("Select All",function(E){E.commandHandler.selectAll()},function(E){return E.commandHandler.canSelectAll()})),y.add(new Eo("Undo",function(E){E.commandHandler.undo()},function(E){return E.commandHandler.canUndo()})),y.add(new Eo("Redo",function(E){E.commandHandler.redo()},function(E){return E.commandHandler.canRedo()})),y.add(new Eo("Scroll To Part",function(E){E.commandHandler.scrollToPart()},function(E){return E.commandHandler.canScrollToPart()})),y.add(new Eo("Zoom To Fit",function(E){E.commandHandler.zoomToFit()},function(E){return E.commandHandler.canZoomToFit()})),y.add(new Eo("Reset Zoom",function(E){E.commandHandler.resetZoom()},function(E){return E.commandHandler.canResetZoom()})),y.add(new Eo("Group Selection",function(E){E.commandHandler.groupSelection()},function(E){return E.commandHandler.canGroupSelection()})),y.add(new Eo("Ungroup Selection",function(E){E.commandHandler.ungroupSelection()},function(E){return E.commandHandler.canUngroupSelection()})),y.add(new Eo("Edit Text",function(E){E.commandHandler.editTextBlock()},function(E){return E.commandHandler.canEditTextBlock()})),y}Mo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ca(this)),pa.innerHTML="",$a.addEventListener("pointerdown",this.tu,!1);var y=this,E=mi("ul");E.className="goCXul",pa.appendChild(E),E.innerHTML="";for(var b=this.jt.iterator;b.next();){var x=b.value,z=x.visible;if(typeof x.hx=="function"&&(typeof z!="function"||z(a))){z=mi("li"),z.className="goCXli";var ne=mi("a");ne.className="goCXa",ne.href="#",ne.ky=x.hx,ne.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ne.textContent=x.text,z.appendChild(ne),E.appendChild(z)}}pa.style.display="block",$a.style.display="block"},Mo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Pr){pa.style.display="none",$a.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener($a,"pointerdown",this.tu,!1),this.currentContextMenu=null}},_n.Object.defineProperties(Mo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof co?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Aa===!1&&Pr===null&&da&&jr(this),Pr},set:function(a){a===null&&(Aa=!0),Pr=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Pr=null,Aa=!1,$a=null,pa=null;Mo.className="ContextMenuTool",Jn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function io(){qr.call(this),this.name="TextEditing",this.Zh=new Ho,this.ia=null,this.V=Vs,this.vj=null,this.qa=Ci,this.u=1,this.F=!0,this.o=null,this.j=new ro,this.kt=null,tl(this,this.j)}dn(io,qr);function tl(a,y){if(da){var E=mi("textarea");a.kt=E,E.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),E.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var x=b.key;x==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Za)):x==="Tab"?(a.acceptText(ea),b.preventDefault()):x==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),E.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ci){var b=a.kt;a.qa===nl&&(a.qa=Hl),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),E.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ci){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return E.value},y.mainElement=E,y.show=function(b,x,z){if(b instanceof Ho&&z instanceof io)if(z.state===Ws)E.style.border="3px solid red",E.focus();else{var ne=b.ga(Dr),re=x.position,se=x.scale,de=b.Df()*se;de<z.minimumEditorScale&&(de=z.minimumEditorScale);var pe=b.naturalBounds.width*de+6,Se=b.naturalBounds.height*de+2,Ae=(ne.x-re.x)*se;ne=(ne.y-re.y)*se,re=b.verticalAlignment,se=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*de,Se=re.y*Se-re.y*se+re.offsetY-(.5*Se-.5*se)-se/2,E.value=b.text,x.div.style.font=b.font,E.style.position="absolute",E.style.zIndex="100",E.style.font="inherit",E.style.fontSize=100*de+"%",E.style.lineHeight="normal",E.style.width=pe+"px",E.style.left=(Ae-pe/2|0)-1+"px",E.style.top=(ne+Se|0)-1+"px",E.style.textAlign=b.textAlign,E.style.margin="0",E.style.padding="1px",E.style.border="0",E.style.outline="none",E.style.whiteSpace="pre-wrap",E.style.overflow="hidden",E.rows=b.lineCount,E.wA=de,E.className="goTXarea",x.div.appendChild(E),E.focus(),z.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(E)}}}io.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||fu&&fu!==this&&(fu.acceptText(Po),fu&&fu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ho&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Vs&&!y.isSelected||this.starting===Il&&2>a.lastInput.clickCount)):!1},io.prototype.doStart=function(){fu=this,this.textBlock!==null&&this.doActivate()},io.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 Ho&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=nl;var E=this.defaultTextEditor;y.textEditor!==null&&(E=y.textEditor),this.Zh=this.textBlock.copy();var b=new xn(this.textBlock.ga(Kr),this.textBlock.ga(vo));a.tv(b),E.show(y,a,this),this.currentTextEditor=E}}}},io.prototype.doCancel=function(){this.stopTool()},io.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},io.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Po)},io.prototype.acceptText=function(a){switch(a){case Po:this.qa===eu?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===nl||this.qa===Ws||this.qa===Hl)&&(this.qa=Mi,Ra(this));break;case ko:case Za:case ea:(Za!==a||this.textBlock.isMultiline!==!0)&&(this.qa===nl||this.qa===Ws||this.qa===Hl)&&(this.qa=Mi,Ra(this))}};function Ra(a){var y=a.textBlock,E=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var x=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,x,z)?(a.Ea(a.name),a.qa=eu,a.transactionResult=a.name,y.text=z,a.doSuccess(x,z),E!==null&&E.R("TextEdited",y,x),a.stopTransaction(),a.stopTool(),E!==null&&E.doFocus()):(a.qa=Ws,a.doError(x,z))}}io.prototype.doError=function(a,y){var E=this.textBlock;E.errorFunction!==null&&E.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(E,this.diagram,this)},io.prototype.doSuccess=function(a,y){var E=this.textBlock;E.textEdited!==null&&E.textEdited(E,a,y)},io.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ci,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},io.prototype.doStop=function(){fu=null},io.prototype.isValidText=function(a,y,E){var b=this.textValidation;return b!==null&&!b(a,y,E)?!1:(b=a.textValidation,!!(b===null||b(a,y,E)))},io.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},_n.Object.defineProperties(io.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)}}}),io.prototype.measureTemporaryTextBlock=io.prototype.Lx;var ko=new pn(io,"LostFocus",0),Po=new pn(io,"MouseDown",1),ea=new pn(io,"Tab",2),Za=new pn(io,"Enter",3),Ms=new pn(io,"SingleClick",0),Vs=new pn(io,"SingleClickSelected",1),Il=new pn(io,"DoubleClick",2),Ci=new pn(io,"StateNone",0),nl=new pn(io,"StateActive",1),Hl=new pn(io,"StateEditing",2),Mi=new pn(io,"StateValidating",3),Ws=new pn(io,"StateInvalid",4),eu=new pn(io,"StateValidated",5),fu=null;io.className="TextEditingTool",io.LostFocus=ko,io.MouseDown=Po,io.Tab=ea,io.Enter=Za,io.SingleClick=Ms,io.SingleClickSelected=Vs,io.DoubleClick=Il,io.StateNone=Ci,io.StateActive=nl,io.StateEditing=Hl,io.StateValidating=Mi,io.StateInvalid=Ws,io.StateValidated=eu,Jn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function As(a){Qi||(Jt(),Qi=!0),this.H=Oc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=hr,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new $n,this.ce=new Wi,this.ce.Yd=this,this.Ei=new $n,this.pu=new $n,this.Sr=new $n,this.pr=new $n,a&&Object.assign(this,a)}As.prototype.Xe=function(a){this.H=a},As.prototype.canStart=function(){return!0};function Ka(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ns(a.H),a.zb=!0)}function zl(a){if(a.Jd&&a.zb){var y=a.ce,E=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===hr?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(E,"position",E.position.copy().offset(0,-200),E.position),y.add(E,"opacity",0,1)):a.Pk===Ao&&y.vc.clear(),a.Qw=!!(a.Pk===lo&&E.du.D(E.pa)),E.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Ur(y,E),a.Ok=!1,E.N()):(a.Zd.clear(),E.kg=!1,b=y.vc.get(E),E.autoScale!==Zs&&b!==null&&(delete b.start.scale,delete b.end.scale),mn.requestAnimationFrame(function(){a.zb===!1||y.bc||(E.Gf("temporaryPixelRatio")&&El(E),kp(E),a.zb=!1,y.start(),y.bc&&(tu(a),E.Ya(),pu(y,0),mu(E,!0),lc(a),E.R("AnimationStarting",a)))}))}}function Bs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Nu(a,y,E,b){a.isTicking||Bs(a)||y instanceof Li&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",E,b,!1)}Me=As.prototype,Me.fv=function(a){return this.ce.fv(a)},Me.Xu=function(a){return this.ce.Xu(a)};function Zu(a,y){function E(){if(0<x.Sr.count&&(b.addAll(x.Sr),x.Sr.clear(),x.bc=!0),x.bc!==!1&&b.count!==0){x.pu.addAll(b);for(var z=x.pu.iterator;z.next();){var ne=z.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var re=!0;else{for(re=ne.vc.iterator;re.next();){var se=re.key;if(se instanceof qt&&se.diagram!==null||se instanceof Tn){re=!0;break e}}re=!1}re?Oa(ne,!1):ne.Xk=!0}}x.pu.clear(),x.bc!==!1&&(tu(x),mu(x.H),lc(x)),mn.requestAnimationFrame(E)}}var b=a.Ei,x=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),mn.requestAnimationFrame(function(){E()}))}function pd(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function tu(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}Me.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(),Ur(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ur(y,this.H)},Me.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))},Me.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ge(this,a))},Me.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Oo(this.ce,y,"position",y.position,y.position),ge(this,a))};function Hd(a,y,E){!a.zb||y.D(E)||Bs(a)||(a.H.pi||(y=E.copy()),Oo(a.ce,a.H,"position",y,E))}function ce(a,y,E){y.fd&&(y.Tg=E,a.pr.add(y))}function ge(a,y){for(y=y.findLinksConnected();y.next();){var E=y.value;E.fd&&(E.Tg=E.points.copy(),a.pr.add(E))}}function $e(a,y,E,b,x){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ne=a[1],re=a[2];a=a[3];var se=y[0],de=y[1],pe=y[2];return y=y[3],re===0||re===100?(z=se,ne=de):(pe===0||pe===100)&&(se=z,de=ne),180<Math.abs(se-z)&&(se>z?z+=360:se+=360),z=x(E,z,se-z,b)%360,ne=x(E,ne,de-ne,b),re=x(E,re,pe-re,b),E=x(E,a,y-a,b),"hsla("+z+", "+ne+"%, "+re+"%, "+E+")"}function Jt(){function a(E,b,x,z,ne,re){E.position=new rt(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re))}var y=new yn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(E,b,x,z,ne,re){ne<re?E.mm(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re),!1):E.position=new rt(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re))}),y.add("location",function(E,b,x,z,ne,re){ne<re?E.mm(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re),!0):E.location=new rt(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re))}),y.add("position:placeholder",function(E,b,x,z,ne,re){ne<re?E.mm(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re),!1):E.position=new rt(z(ne,b.x,x.x-b.x,re),z(ne,b.y,x.y-b.y,re))}),y.add("position:nodeCollapse",function(E,b,x,z,ne,re){var se=E.actualBounds,de=x.actualBounds;x=de.x+de.width/2-se.width/2,se=de.y+de.height/2-se.height/2,ne<re?E.mm(z(ne,b.x,x-b.x,re),z(ne,b.y,se-b.y,re),!1):E.position=new rt(z(ne,b.x,x-b.x,re),z(ne,b.y,se-b.y,re))}),y.add("desiredSize",function(E,b,x,z,ne,re){E.desiredSize=new xn(z(ne,b.width,x.width-b.width,re),z(ne,b.height,x.height-b.height,re))}),y.add("width",function(E,b,x,z,ne,re){E.width=z(ne,b,x-b,re)}),y.add("height",function(E,b,x,z,ne,re){E.height=z(ne,b,x-b,re)}),y.add("fill",function(E,b,x,z,ne,re){E.fill=$e(b,x,ne,re,z)}),y.add("stroke",function(E,b,x,z,ne,re){E.stroke=$e(b,x,ne,re,z)}),y.add("strokeWidth",function(E,b,x,z,ne,re){E.strokeWidth=z(ne,b,x-b,re)}),y.add("strokeDashOffset",function(E,b,x,z,ne,re){E.strokeDashOffset=z(ne,b,x-b,re)}),y.add("background",function(E,b,x,z,ne,re){E.background=$e(b,x,ne,re,z)}),y.add("areaBackground",function(E,b,x,z,ne,re){E.areaBackground=$e(b,x,ne,re,z)}),y.add("opacity",function(E,b,x,z,ne,re){E.opacity=z(ne,b,x-b,re)}),y.add("scale",function(E,b,x,z,ne,re){E.scale=z(ne,b,x-b,re)}),y.add("angle",function(E,b,x,z,ne,re){E.angle=z(ne,b,x-b,re)}),Si=y}_n.Object.defineProperties(As.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&&fi(a,">= 1",As,"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}}}),As.prototype.stopAnimation=As.prototype.Cc;var Si=null,Qi=!1,hr=new pn(As,"Default",1),lo=new pn(As,"AnimateLocations",2),Ao=new pn(As,"None",3);As.className="AnimationManager",As.defineAnimationEffect=function(a,y){Qi||(Jt(),Qi=!0),Si.add(a,y)},As.Default=hr,As.AnimateLocations=lo,As.None=Ao;function Wi(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=ku,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Ii,this.vc=new yn,this.Tt=new yn,this.yl=new $n,this.Ut=new $n,this.dw=vd,a&&Object.assign(this,a)}Wi.prototype.suspend=function(){this.Xk=!0},Wi.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Oa(this,!0),tu(this.Yd),mu(this.H),lc(this.Yd),this.H.redraw()};function Ur(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}Me=Wi.prototype,Me.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var E=y.key;a===null&&(E instanceof Tn?a=E:E instanceof qt&&(a=E.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===hr&&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),tu(y),this.yl.each(function(b){b.data=null,a.add(b)}),lc(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Zu(y,this),this)},Me.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Me.add=function(a,y,E,b,x){if(y==="position"&&E.Xa(b))return this;if(this.H===null&&(a instanceof Tn?this.H=a:a instanceof qt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof cr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Oo(this,a,y,E,b,x),this};function Oo(a,y,E,b,x,z){var ne=a.vc;if(y instanceof Tn&&E==="position"&&(E="position:diagram"),(E==="fill"||E==="stroke"||E==="background"||E==="areaBackground")&&(ed(b),uv(),b=[au.j,au.u,au.o,au.F],ed(x),uv(),x=[au.j,au.u,au.o,au.F]),ne.contains(y)){var re=ne.I(y),se=re.start,de=re.end;se[E]===void 0&&(se[E]=ia(b)),de[E]=ia(x)}else se={},de={},se[E]=ia(b),de[E]=ia(x),re=se.position,y instanceof qt&&re instanceof rt&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(de.position),re=new Ku(se,de,z),ne.add(y,re);ne=se[E],ne instanceof rt&&!ne.w()&&ne.assign(a.o),z&&E.indexOf("position:")===0&&y instanceof cr?re.Ku.location=ia(y.location):z&&(re.Ku[E]=ia(b))}function ia(a){return a instanceof rt||a instanceof en?a.copy():a}Me.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Me.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Oa(a,y){if(!a.Xk||y){var E=a.Yd;if(a.bc!==!1){var b=+new Date,x=b>a.cn?a.Gd:b-a.Qd;y&&(x=a.gw,x<a.Gd?(a.Qd=+new Date-x,a.cn=a.Qd+a.Gd):x=a.Gd),tu(E),pu(a,x),mu(a.H,!0),lc(E),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function pu(a,y){for(var E=a.Gd,b=a.vc.iterator,x=a.Wk;b.next();){var z=b.key;if(!(z instanceof qt&&z.diagram===null)){var ne=b.value,re=x?ne.end:ne.start;ne=x?ne.start:ne.end;var se=Si,de;for(de in ne)de==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||se.get(de)===null||se.get(de)(z,re[de],ne[de],a.Lp,y,E,a)}}}Me.stop=function(){return this.bc?(this.Ml(!0),this):this},Me.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,E=this.Yd;this.Xk=this.bc=E.Ok=!1,tu(E);for(var b=this.vc,x=this.yl.iterator;x.next();)y.remove(x.value);for(x=this.Ut.iterator;x.next();)x.value.v();x=this.ho,b=b.iterator;for(var z=Si;b.next();){var ne=b.key,re=b.value,se=x?re.end:re.start,de=x?re.start:re.end,pe=re.Ku,Se;for(Se in de)if(z.get(Se)!==null){var Ae=Se;!re.Hu||Ae!=="position:nodeCollapse"&&Ae!=="position:placeholder"||(Ae="position"),z.get(Ae)(ne,se[Se],pe[Se]!==void 0?pe[Se]:re.Hu?se[Se]:de[Se],this.Lp,this.Gd,this.Gd,this)}re.Hu&&pe.location!==void 0&&ne instanceof cr&&(ne.location=pe.location),re.nv&&ne instanceof cr&&ne.Zb(!1)}if(y.As.clear(),Yh(y,!1),y.Ya(),y.N(),mu(y,!0),E.defaultAnimation===this){for(Se=E.pr.iterator;Se.next();)x=Se.value,x.Tg!==null&&(x.points=x.Tg,x.Tg=null);E.pr.clear()}mu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),lc(E),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ur(this,null),E.Ml(this),y.$b())}},Me.Cj=function(a,y){var E=y.actualBounds,b=null;if(y instanceof Ir&&(b=y.placeholder),b!==null?(E=b.ga(Kr),b=b.padding,E.x+=b.left,E.y+=b.top,this.add(a,"position",E,a.position,!1)):this.add(a,"position",new rt(E.x+E.width/2,E.y+E.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ir)for(a=a.memberParts;a.next();)b=a.value,b instanceof Gi&&this.Cj(b,y)},Me.Aj=function(a,y){if(a.isVisible()){var E=null;if(y instanceof Ir&&(E=y.placeholder),E!==null){var b=E.ga(Kr);E=E.padding,b.x+=E.left,b.y+=E.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Ir)for(a=a.memberParts;a.next();)b=a.value,b instanceof Gi&&this.Aj(b,y)}},Me.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},_n.Object.defineProperties(Wi.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&fi(a,">= 1",Wi,"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:Ct("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}}}),Wi.prototype.getTemporaryState=Wi.prototype.Ez,Wi.prototype.stop=Wi.prototype.stop,Wi.prototype.add=Wi.prototype.add,Wi.prototype.addTemporaryPart=Wi.prototype.Iy;function ku(a,y,E,b){return a/=b/2,1>a?E/2*a*a+y:-E/2*(--a*(a-2)-1)+y}function uc(a,y,E,b){return a===b?y+E:E*(-Math.pow(2,-10*a/b)+1)+y}Wi.className="Animation",Wi.EaseLinear=function(a,y,E,b){return E*a/b+y},Wi.EaseInOutQuad=ku,Wi.EaseInQuad=function(a,y,E,b){return E*(a/=b)*a+y},Wi.EaseOutQuad=function(a,y,E,b){return-E*(a/=b)*(a-2)+y},Wi.EaseInExpo=function(a,y,E,b){return a===0?y:E*Math.pow(2,10*(a/b-1))+y},Wi.EaseOutExpo=uc;function Ku(a,y,E){this.start=a,this.end=y,this.Ku={},this.Hu=E,this.nv=!1}Ku.className="AnimationState";function Sl(a,y,E){this.xd=null,this.rf=a,this.so=E||Mc,this.uk=null,y!==void 0&&(this.uk=y,E===void 0&&(this.so=jl))}Sl.prototype.copy=function(){var a=new Sl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var E={};y.duration!==void 0&&(E.duration=y.duration),y.finished!==void 0&&(E.finished=y.finished),y.easing!==void 0&&(E.easing=y.easing),a.uk=E}return a};function nu(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))}_n.Object.defineProperties(Sl.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 pn(Sl,"Default",1),jl=new pn(Sl,"Immediate",2),Sh=new pn(Sl,"Bundled",3);Sl.className="AnimationTrigger",Sl.Default=Mc,Sl.Immediate=jl,Sl.Bundled=Sh;function hs(a){ar(this),this.H=null,this.Pa=new Wn,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)}Me=hs.prototype,Me.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var E=a.s[y];E.Ig=null,Hs(E)}a.clear(),this.Zq.length=0},Me.Xe=function(a){this.H=a},Me.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var E=0,b=0,x=0,z=0,ne=0,re=this.Pa.iterator;re.next();){var se=re.value;se instanceof Ir?x++:se instanceof Gi?b++:se instanceof Li?z++:se instanceof co?ne++:E++}if(re="",0<E&&(re+=E+" Parts "),0<b&&(re+=b+" Nodes "),0<x&&(re+=x+" Groups "),0<z&&(re+=z+" Links "),0<ne&&(re+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)E=a.value,re+=`
`+E.toString(),b=E.data,b!==null&&Sr(b)&&(re+=" #"+Sr(b)),E instanceof Gi?re+=" "+Ji(b):E instanceof Li&&(re+=" "+Ji(E.fromNode)+" "+Ji(E.toNode));return y+" "+this.Pa.count+": "+re},Me.ic=function(a,y,E){if(y===void 0&&(y=null),E===void 0&&(E=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var x=rt.alloc(),z=this.Pa.s,ne=z.length;ne--;){var re=z[ne];if((b!==!0||Qd(re)!==!1)&&re.isVisible()&&(x.assign(a),vn(x,re.oe),re=re.ic(x,y,E),re!==null&&(y!==null&&(re=y(re)),re!==null&&(E===null||E(re)))))return rt.free(x),re}return rt.free(x),null},Me.ji=function(a,y,E,b){if(y===void 0&&(y=null),E===void 0&&(E=null),b instanceof Wn||b instanceof $n||(b=new $n),this.Uh===!1)return b;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var z=rt.alloc(),ne=this.Pa.s,re=ne.length;re--;){var se=ne[re];if((x!==!0||Qd(se)!==!1)&&se.isVisible()){z.assign(a),vn(z,se.oe);var de=se;se.ji(z,y,E,b)&&(y!==null&&(de=y(de)),de===null||E!==null&&!E(de)||b.add(de))}}return rt.free(z),b},Me.Cf=function(a,y,E,b,x){if(y===void 0&&(y=null),E===void 0&&(E=null),b===void 0&&(b=!1),x instanceof Wn||x instanceof $n||(x=new $n),this.Uh===!1)return x;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ne=this.Pa.s,re=ne.length;re--;){var se=ne[re];if((z!==!0||Qd(se)!==!1)&&se.isVisible()){var de=se;se.Cf(a,y,E,b,x)&&(y!==null&&(de=y(de)),de===null||E!==null&&!E(de)||x.add(de))}}return x},Me.Nu=function(a,y,E,b,x,z,ne){if(this.Uh===!1)return x;for(var re=this.Pa.s,se=re.length;se--;){var de=re[se];if((ne!==!0||Qd(de)!==!1)&&z(de)&&de.isVisible()){var pe=de;de.Cf(a,y,E,b,x)&&(y!==null&&(pe=y(pe)),pe===null||E!==null&&!E(pe)||x.add(pe))}}return x},Me.og=function(a,y,E,b,x,z){if(E===void 0&&(E=null),b===void 0&&(b=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Wn||x instanceof $n)&&(z=x),x=!0),z instanceof Wn||z instanceof $n||(z=new $n),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var re=rt.alloc(),se=rt.alloc(),de=this.Pa.s,pe=de.length;pe--;){var Se=de[pe];if((ne!==!0||Qd(Se)!==!1)&&Se.isVisible()){re.assign(a),vn(re,Se.oe),se.h(a.x+y,a.y),vn(se,Se.oe);var Ae=Se;Se.og(re,se,E,b,x,z)&&(E!==null&&(Ae=E(Ae)),Ae===null||b!==null&&!b(Ae)||z.add(Ae))}}return rt.free(re),rt.free(se),z},Me.Fd=function(a,y){if(this.visible){var E=this.Pa.s,b=E.length;if(b!==0){a=Pi();for(var x=Pi(),z=0;z<b;z++){var ne=E[z];if(ne.vw=z,ne instanceof Li){if(ne.fd===!1)continue}else if(ne instanceof co&&ne.adornedPart!==null)continue;var re=ne.actualBounds;ne.isVisible()&&Fn(re,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&x.push(ne))}for(y=0;y<a.length;y++)for(E=a[y],_v(E),E=E.adornments;E.next();)b=E.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<x.length;y++)_v(x[y]);Ai(a),Ai(x)}}};function Jc(a,y){var E=1;return a.pb!==1&&(E=y.globalAlpha,y.globalAlpha=E*a.pb),E}Me.gc=function(a,y,E){if(this.visible&&this.pb!==0&&(E===void 0&&(E=!0),E||!this.isTemporary)){E=this.Pa.s;var b=E.length;if(b!==0){if(a.isTemporary)for(var x=0;x<b;x++)E[x].Gj();x=Jc(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,re=xn.alloc(),se=0;se<b;se++)this.Oj(a,E[se],y,z,ne,re,!0);if(xn.free(re),a.isTemporary)for(y=0;y<b;y++)E[y].Gj();a.globalAlpha=x}}};function Qg(a,y,E,b,x){if(a.visible&&a.pb!==0&&(x||!a.isTemporary)){x=a.Pa.s;var z=x.length;if(z!==0){var ne=Jc(a,y),re=a.Zq;re.length=0;for(var se=E.scale,de=xn.alloc(),pe=0;pe<z;pe++){var Se=x[pe];b.contains(Se)&&a.Oj(y,Se,E,re,se,de,!1)}xn.free(de),y.globalAlpha=ne}}}Me.Oj=function(a,y,E,b,x,z,ne){if(ne&&!Qd(y))a.Hs(y);else{if(b!==null&&y instanceof Li&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,b=y.containingGroup;b!==null;)ne?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(ne=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,ne&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Gl?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*x>E.Oq||re.height*x>E.Oq?y.gc(a,E):(x=y.actualBounds,z=y.naturalBounds,x.width===0||x.height===0||isNaN(x.x)||isNaN(x.y)||!y.isVisible()||(E=y.transform,y.areaBackground!==null&&(ha(y,a,y.areaBackground,!0,!0,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.areaBackground===null&&y.background===null&&(ha(y,a,"rgba(0,0,0,0.3)",!0,!1,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.background!==null&&(a.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),ha(y,a,y.background,!0,!1,z,x),a.fillRect(0,0,z.width/2,z.height/2),E.ws()||(y=1/(E.m11*E.m22-E.m12*E.m21),a.transform(E.m22*y,-E.m12*y,-E.m21*y,E.m11*y,y*(E.m21*E.dy-E.m22*E.dx),y*(E.m12*E.dx-E.m11*E.dy)))))),b&&(a.restore(),a.Vc(!0))}},Me.g=function(a,y,E,b,x){var z=this.diagram;z!==null&&z.cb(Bo,a,this,y,E,b,x)},Me.oi=function(a,y,E){var b=this.Pa;if(y.Ig=this,this===null&&Hs(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(E),b=this.diagram,b!==null&&(E?b.N():b.oi(y)),Nf(this,a,y),a},Me.pc=function(a,y,E){if(!E&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,E);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(E),b.mb(a),b=this.diagram,b!==null&&(E?b.N():b.pc(y)),y.Ig=null,Hs(y),a};function Nf(a,y,E){if(y=Jg(a,y,E),E instanceof Ir&&E!==null&&isNaN(E.zOrder)){if(E.memberParts.count!==0){for(var b=-1,x=a.Pa.s,z=x.length,ne=0;ne<z;ne++){var re=x[ne];if(re===E&&(y=ne,0<=b)||0>b&&re.containingGroup===E&&(b=ne,0<=y))break}!(0>b)&&b<y&&(x=a.Pa,x.mb(y),x.Gb(b,E))}y=E.containingGroup,y!==null&&Nf(a,-1,y)}E.svg!==null&&E.svg.remove()}function Jg(a,y,E){var b=E.zOrder;if(isNaN(b))return y;a=a.Pa;var x=a.count;if(1>=x)return y;if(0>y&&(y=a.indexOf(E)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var re=y+1,se=NaN;re<x&&(se=a.M(re).zOrder,!!isNaN(se));)re++;if(!isNaN(ne)&&ne>b)for(;;){if(z===-1||ne<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,E),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(se)&&se<b)for(;;){if(re===x||se>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,E),re}for(se=NaN;++re<x&&(se=a.M(re).zOrder,isNaN(se)););}return y}_n.Object.defineProperties(hs.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 E=this.diagram;if(E!==null)for(y===""&&Ct("Cannot rename default Layer to: "+a),E=E.layers;E.next();)E.value.name===a&&Ct("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)&&fi(a,"0 <= value <= 1",hs,"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))}}}),hs.prototype.findObjectsNear=hs.prototype.og,hs.prototype.findObjectsIn=hs.prototype.Cf,hs.prototype.findObjectsAt=hs.prototype.ji,hs.prototype.findObjectAt=hs.prototype.ic,hs.className="Layer";function Tn(a,y){if(dm||(_s(),dm=!0),ar(this),Oc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,da){var E=this,b=function(){E.removeEventListener(mn.document,"DOMContentLoaded",b,!1),E.setRTL()};mn.document.body!==null?this.setRTL():E.addEventListener(mn.document,"DOMContentLoaded",b,!1)}this.ol=null,Uf.add("Model",xo);var x=this;return this.Hb=function(z){var ne=x.partManager;if(z.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Bo&&ne.updateDataBindings(z.object,z.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(z){x.partManager.doModelChanged(z)},this.hu=this.ku=null,qg(this),this.model=fy(),this.Wg=!0,em(this),this.layout=new ta,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?Np(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var zd,Oc;function qg(a){a.Yd=new As,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Wn,a.pj=new yn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new rt(NaN,NaN).freeze(),a.du=new rt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new rt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new mr,a.zu=new rt(NaN,NaN).freeze(),a.ut=new xn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Fr(0,0,0,0).freeze(),a.sj=vd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Zs,a.zk=Ia,a.Fg=Zs,a.pq=Ia,a.yt=Kr,a.Bt=Kr,a.Fc=!0,a.pn=!1,a.De=new $n,a.Eh=new yn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Fr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Ja,a.bq.diagram=a,a.Qg=new Ja,a.Qg.diagram=a,a.cj=new Ja,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,rv(a),a.ai=new $n,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 yn,a.Xn=new Wn,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 Fr(5).freeze(),a.Hw=new $n().freeze(),a.Nt=999999999,a.nw=new $n().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 $n,a.ow=new $n,a.Xh=null,a.aw=new en(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new rt,bounds:new xn,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 xn(NaN,NaN,NaN,NaN).freeze(),a.wo=new en(NaN,NaN).freeze(),a.Sp=new xn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new yn;var y=new Gi,E=new Ho;E.bind(new Na("text","",Ji)),y.add(E),a.ny=y,a.Lg.add("",y),y=new Gi,E=new Ho,E.stroke="brown",E.bind(new Na("text","",Ji)),y.add(E),a.Lg.add("Comment",y),y=new Gi,y.selectable=!1,y.avoidable=!1,E=new Hr,E.figure="Ellipse",E.fill="black",E.stroke=null,E.desiredSize=new en(3,3).ja(),y.add(E),a.Lg.add("LinkLabel",y),a.Yi=new yn,y=new Ir,y.selectionObjectName="GROUPPANEL",y.type=wi.Vertical,E=new Ho,E.font="bold 12pt sans-serif",E.bind(new Na("text","",Ji)),y.add(E),E=new wi(wi.Auto),E.name="GROUPPANEL";var b=new Hr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",E.add(b),b=new al,b.padding=new Fr(5,5,5,5).ja(),E.add(b),y.add(E),a.ly=y,a.Yi.add("",y),a.Kh=new yn,y=new Li,E=new Hr,E.isPanelMain=!0,y.add(E),E=new Hr,E.toArrow="Standard",E.fill="black",E.stroke=null,E.strokeWidth=0,y.add(E),a.my=y,a.Kh.add("",y),y=new Li,E=new Hr,E.isPanelMain=!0,E.stroke="brown",y.add(E),a.Kh.add("Comment",y),y=new co,y.type=wi.Auto,E=new Hr,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),E=new al,E.margin=new Fr(1.5,1.5,1.5,1.5).ja(),y.add(E),a.St=y,a.wt=y,y=new co,y.type=wi.Link,E=new Hr,E.isPanelMain=!0,E.fill=null,E.stroke="dodgerblue",E.strokeWidth=3,y.add(E),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new xo,a.toolManager=new Fo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new le,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=$g(),a.eq=null,a.fq=Zi,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 rt,a.zy=500,a.wp=new rt,a.wq=!1}Tn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ph=null,Zd="",Ap(this,!1),this.Xn.clear(),qf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Ap(a,y){a.animationManager.Cc(!0),a.Hw=new $n().freeze(),a.nw=new $n().freeze();var E=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var x=null;a.fe!==null&&(x=a.fe.part,x!==null&&a.remove(x));var z=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var re=a.Wa.s[y].parts;re.next();){var se=re.value;se!==x&&se.data===null&&z.push(se)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ne;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(),Wr=[],x!==null&&(a.add(x),a.partManager.parts.remove(x)),b&&(a.skipsUndoManager=E),z}function $g(){return null}Tn.prototype.reset=function(){this.clear(),this.vb=!0,qg(this),xc(this),this.Wg=!0,em(this),this.layout=new ta,this.Wg=!1,this.model=fy(),this.model.undoManager=new Lo,this.vb=this.rn=!1,this.N()},Tn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=mn.document.body);var y=mi("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 E="reverse";0<y.scrollLeft?E="default":(y.scrollLeft=1,y.scrollLeft===0&&(E="negative")),a.removeChild(y),this.bu=E},Tn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=mn.document.body);var y=0;if(da){var E=cm;y=zd,E===null&&(E=cm=mi("p"),E.style.width="100%",E.style.height="200px",E.style.boxSizing="content-box",y=zd=mi("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(E)),y.style.overflow="hidden",a.appendChild(y);var b=E.offsetWidth;y.style.overflow="scroll",E=E.offsetWidth,b===E&&(E=y.clientWidth),a.removeChild(y),y=b-E,y!==0||vr||(y=11)}this.Db=y,this.Gw=!0},Tn.prototype.qb=function(a){a.classType===Tn&&(this.autoScale=a)},Tn.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 E=this.Wa.iterator;E.next();)y+=`
`+E.value.toString(a-1);return y};function Np(a,y){if(da){if(y!=null||Ct("Diagram setup requires an argument DIV."),a.Ka!==null&&Ct("Diagram has already completed setup."),typeof y=="string"?a.Ka=mn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ct("No DIV or DIV id supplied: "+y),a.Ka===null&&Ct("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ct("Invalid div id; div already has a Diagram associated with it."),!a.ol&&mn.ResizeObserver){var E=Di(function(){a.$b()},250);a.ol=new mn.ResizeObserver(function(){E()}),a.ol.observe(a.Ka)}mn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=mn.go;var x=new Mu(a);if(x.style!==void 0&&(x.style.position="absolute",x.style.top="0px",x.style.left="0px",mn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),x.style.zIndex="2",x.style.userSelect="none",x.style.MozUserSelect="none",x.style.touchAction="none",x.style.letterSpacing="normal !important",x.style.wordSpacing="normal !important"),a.ta=x,a.ib=x.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Fp(a,a.Aa,a.ya),a.Ka.insertBefore(x.Oa,a.Ka.firstChild),x=new Mu(null),x.width=1,x.height=1,a.jw=x,a.oy=x.context,da){x=mi("div");var z=mi("div");x.style.position="absolute",x.style.overflow="auto",x.style.width=a.Aa+"px",x.style.height=a.ya+"px",x.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(x),x.appendChild(z),x.onscroll=nm,x.addEventListener("pointerdown",im),x.H=a,x.uy=!0,x.vy=!0,a.ku=x,a.hu=z}a.hk=Di(function(){a.Yh=null,a.N()},300),a.Ov=Di(function(){kp(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var re=gu(a,ne,!0);re.bubbles=!0;var se=0,de=0;re.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(se=0<ne.deltaX?1:-1),ne.deltaY!==0&&(de=0<ne.deltaY?1:-1),re.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-se:-de):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(se=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(de=0<ne.wheelDeltaY?-1:1),re.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-se:-de):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(re.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),Yu(re,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,gu(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ne.pointerId]===void 0&&(re[ne.pointerId]=ne),re=a.oj;var se=!1;if(re[0]===null||re[0].pointerId!==ne.pointerId&&re[0].pointerType===ne.pointerType)if(re[1]!==null&&re[1].pointerId===ne.pointerId)re[1]=ne,se=!0;else if(re[0]===null)re[0]=ne;else if(re[1]===null)re[1]=ne,se=!0;else{ne.preventDefault();return}else re[0]=ne;(re=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var de=se;se=Op(a,ne,!0,!1,!0,de),bh(a,ne,se),se.targetDiagram=Mp(ne,ne.target),se.targetObject=null,de||se.clone(a.bq),de=a.uw,re=re?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(de.x-ne.screenX)>re||Math.abs(de.y-ne.screenY)>re)?a.yq++:a.yq=1,se.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():Yu(se,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ne.pointerId&&re[0].pointerType===ne.pointerType){if(re[1]!==null&&re[1].pointerId===ne.pointerId){re[1]=ne;return}if(re[0]===null)re[0]=ne;else return}else re[0]=ne;if(re[0].pointerId===ne.pointerId){re=Op(a,ne,!1,!1,!1,re[1]!==null);var se=mn.document.elementFromPoint(ne.clientX,ne.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var de=a,pe=ne;se&&se.H&&(pe=ne,de=se.H),re.targetDiagram=de,bh(a,pe,re),re.targetObject=null,a.doMouseMove(),Yu(re,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var re=ne.pointerType==="touch"||ne.pointerType==="pen",se=a.Yt;if(re&&a.qu)delete se[ne.pointerId],ne.preventDefault();else if(se=a.oj,se[0]===null||se[0].pointerId!==ne.pointerId&&se[0].pointerType===ne.pointerType)se[1]!==null&&se[1].pointerId===ne.pointerId&&(se[1]=null);else{se[0]=null,se=Op(a,ne,!1,!0,!0,!1);var de=mn.document.elementFromPoint(ne.clientX,ne.clientY)||null;de!==null&&de.shadowRoot!==void 0&&de.shadowRoot!==null&&(de=de.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),de!==null&&de.H instanceof Tn&&de.H!==a&&bh(de.H,ne,se),de===null&&(de=ne.target),bh(a,ne,se),se.clickCount=a.yq,se.targetDiagram=Mp(ne,de),se.targetObject=null,a.doMouseUp(),Yu(se,ne),re&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ne.pointerId]&&delete re[ne.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ne.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var re=a.oj;re[0]!==null&&re[0].pointerId===ne.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null)},a.Vp=b.Z["d"+nf[1]+nf[2]+"wI"+Nh.slice(1,5)]["b"+jE.slice(1,y)](b.Z,tf,y,y),b.Vc(!0),iv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Tn.prototype.addEventListener=function(a,y,E,b){a.addEventListener(y,E,{capture:b,passive:!1})},Tn.prototype.removeEventListener=function(a,y,E,b){a.removeEventListener(y,E,{capture:b})};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(E){return E.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(E){return E.preventDefault(),!1},!1),a.addEventListener(mn,"resize",a.Ov,!1)}function El(a){30<a.Sq&&(a.Yh=1)}function Yh(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),pr&&pr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Tn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:mn.devicePixelRatio||1},Tn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Tn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Tn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Tn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Tn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Tn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Tn.prototype.doFocus=function(){this.focus()},Tn.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)}},Tn.prototype.Oy=function(){this.H.R("GainedFocus")},Tn.prototype.Ny=function(){this.H.R("LostFocus")};function kp(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var E=a.gf?a.Db:0,b=a.Be?a.Db:0,x=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==x&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+E||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Zs&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function em(a){var y=new hs;y.name="Background",a.Al(y),y=new hs,y.name="",a.Al(y),y=new hs,y.name="Foreground",a.Al(y),y=new hs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new hs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new hs,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 wi(wi.Grid);y.name="GRID";var E=new Hr;return E.figure="LineH",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new Hr,E.figure="LineH",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new Hr,E.figure="LineH",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new Hr,E.figure="LineV",E.stroke="lightgray",E.strokeWidth=.5,E.interval=1,y.add(E),E=new Hr,E.figure="LineV",E.stroke="gray",E.strokeWidth=.5,E.interval=5,y.add(E),E=new Hr,E.figure="LineV",E.stroke="gray",E.strokeWidth=1,E.interval=10,y.add(E),E=new cr,E.add(y),E.layerName="Grid",E.zOrder=0,E.isInDocumentBounds=!1,E.isAnimated=!1,E.pickable=!1,E.locationObjectName="GRID",a.add(E),a.partManager.parts.remove(E),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)}Tn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,E=this.hu;this.qr=!0;var b=this.documentBounds,x=this.viewportBounds,z=this.rj,ne=b.x-z.left,re=b.y-z.top,se=b.width+z.left+z.right,de=b.height+z.top+z.bottom,pe=b.right+z.right;z=b.bottom+z.bottom;var Se=x.x;b=x.y;var Ae=x.width,Re=x.height,Ue=x.right,Xe=x.bottom;x=this.scale;var bt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":bt=bt+a.scrollWidth-a.clientWidth;break;case"reverse":bt=a.scrollWidth-bt-a.clientWidth}var ft=bt;Ae<se||Re<de?(bt=rt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ft&&(bt.x=ft/x+ne,this.ju=ft),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(bt.y=a.scrollTop/x+re,this.lu=a.scrollTop),this.position=bt,rt.free(bt),this.Ee=this.qr=!1):(bt=rt.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Se&&(this.position=bt.h(ft+ne,this.position.y)),pe>Ue&&(this.position=bt.h(-(y.scrollWidth-this.Aa)+ft-this.Aa/x+pe,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=bt.h(this.position.x,a.scrollTop+re)),z>Xe&&(this.position=bt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/x+z))),rt.free(bt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,x=this.viewportBounds,pe=b.right,Ue=x.right,z=b.bottom,Xe=x.bottom,ne=b.x,Se=x.x,re=b.y,b=x.y,Ae>=se&&ne>=Se&&pe<=Ue&&(E.style.width="1px"),Re>=de&&re>=b&&z<=Xe&&(E.style.height="1px"))}},Tn.prototype.computeBounds=function(a){return a===void 0&&(a=new xn),Ns(this),Lp(this,a)};function Lp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var E=!0,b=a.Wa.s,x=b.length,z=0;z<x;z++){var ne=b[z];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var re=ne.length,se=0;se<re;se++){var de=ne[se];de.isInDocumentBounds&&de.isVisible()&&(de=de.actualBounds,de.w()&&(E?(E=!1,y.assign(de)):y.ed(de)))}}}return E&&y.h(0,0,0,0),y.Co(a.yb),y}Tn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var E=null;if(pi(a))for(var b=0;b<a.length;b++){var x=a[b];!y&&x instanceof Li||(x.Va(),E===null?E=x.actualBounds.copy():E.ed(x.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Li||(b.Va(),E===null?E=b.actualBounds.copy():E.ed(b.actualBounds));return E===null?new xn(NaN,NaN,0,0):E};function Lu(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var E=a.initialPosition;if(E.w()){a.vb=!1,a.position=E;return}E=rt.alloc(),E.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=xn.allocAt(0,0,b.width,b.height);var x=rt.alloc();x.xi(b,a.initialViewportSpot),x.h(E.x-x.x,E.y-x.y),a.position=x,xn.free(b),rt.free(x),rt.free(E)}E=a.yh,y&&a.Fg!==Zs&&(E=a.Fg);var z=E!==Zs?Eh(a,E):a.scale;E=a.pa.x,b=a.pa.y,x=a.Aa/z;var ne=a.ya/z,re=a.zk,se=a.pq;y&&!re.sb()&&(se.sb()||se.Xb())&&(re=se.Xb()?Dr:se),Ip(a,a.documentBounds,x,ne,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Qt.B(z.x,E)&&Qt.B(z.y,b)&&Qt.B(z.width,x)&&Qt.B(z.height,ne)||a.onViewportBoundsChanged(new xn(E,b,x,ne),z,y,!1)}}function Eh(a,y){var E=a.Pp;if(a.ta===null)return E;a.Va();var b=a.documentBounds;if(!b.w())return E;var x=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),re=z/x,se=ne/b;return y===iu?(y=Math.min(se,re),y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Kd?(y=se>re?(ne-a.Db)/b:(z-a.Db)/x,y>E&&(y=E),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Tn.prototype.zoomToFit=function(){var a=this.sj;this.sj=vd,this.scale=Eh(this,iu),a!==vd&&(Lu(this,!1),Ip(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Me=Tn.prototype,Me.BA=function(a,y){y===void 0&&(y=iu);var E=a.width,b=a.height;if(!(E===0||b===0||isNaN(E)&&isNaN(b))){var x=1;if(y===iu||y===Kd)if(isNaN(E))x=this.viewportBounds.height*this.scale/b;else if(isNaN(b))x=this.viewportBounds.width*this.scale/E;else{x=this.Aa;var z=this.ya;x=y===Kd?z/b>x/E?(z-(this.Be?this.Db:0))/b:(x-(this.gf?this.Db:0))/E:Math.min(z/b,x/E)}this.scale=x,this.position=new rt(a.x,a.y)}},Me.Jy=function(a,y){this.Va();var E=this.documentBounds,b=this.viewportBounds;this.position=new rt(E.x+(a.x*E.width+a.offsetX)-(y.x*b.width-y.offsetX),E.y+(a.y*E.height+a.offsetY)-(y.y*b.height-y.offsetY))},Me.zz=function(a){if(a instanceof qt){this.eq=a;var y=rt.alloc();this.fq=this.op(a.ga(Kr,y)),rt.free(y)}else this.eq=null,this.fq=Zi};function Ip(a,y,E,b,x,z){var ne=rt.allocAt(a.pa.x,a.pa.y),re=ne.x,se=ne.y;if(a.eq!==null){var de=rt.alloc();de=a.eq.ga(Kr,de),re=de.x-a.fq.x/a.scale,se=de.y-a.fq.y/a.scale,x=Mr,rt.free(de)}(z||a.scrollMode===vd)&&(x.sb()&&(E>y.width&&(re=y.x+(x.x*y.width+x.offsetX)-(x.x*E-x.offsetX)),b>y.height&&(se=y.y+(x.y*y.height+x.offsetY)-(x.y*b-x.offsetY))),x=a.rj,z=E-y.width,E<y.width+x.left+x.right?(re=Math.min(re+E/2,y.right+Math.max(z,x.right)-E/2),re=Math.max(re,y.left-Math.max(z,x.left)+E/2),re-=E/2):re>y.left?re=y.left:re<y.right-E&&(re=y.right-E),E=b-y.height,b<y.height+x.top+x.bottom?(se=Math.min(se+b/2,y.bottom+Math.max(E,x.bottom)-b/2),se=Math.max(se,y.top-Math.max(E,x.top)+b/2),se-=b/2):se>y.top?se=y.top:se<y.bottom-b&&(se=y.bottom-b)),ne.x=isFinite(re)?re:-a.yb.left,ne.y=isFinite(se)?se:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),Hd(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),xc(a),rt.free(ne)}Me.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Rc(this,a,function(E){return E.part},function(E){return E.canSelect()}),a instanceof cr)return a}else if(a=Rc(this,a,function(E){return E.part}),a instanceof cr)return a;return null},Me.ic=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null),Ns(this);for(var b=this.Wa.iteratorBackwards;b.next();){var x=b.value;if(x.visible&&(x=x.ic(a,y,E),x!==null))return x}return null};function Rc(a,y,E,b){for(E===void 0&&(E=null),b===void 0&&(b=null),Ns(a),a=a.Wa.iteratorBackwards;a.next();){var x=a.value;if(x.visible&&!x.isTemporary&&(x=x.ic(y,E,b),x!==null))return x}return null}Me.lz=function(a,y,E){return y===void 0&&(y=!0),Xh(this,a,function(b){return b.part},y?function(b){return b instanceof cr&&b.canSelect()}:null,E)};function Xh(a,y,E,b,x){for(E===void 0&&(E=null),b===void 0&&(b=null),x instanceof Wn||x instanceof $n||(x=new $n),Ns(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,E,b,x)}return x}Me.ji=function(a,y,E,b){y===void 0&&(y=null),E===void 0&&(E=null),b instanceof Wn||b instanceof $n||(b=new $n),Ns(this);for(var x=this.Wa.iteratorBackwards;x.next();){var z=x.value;z.visible&&z.ji(a,y,E,b)}return b},Me.ux=function(a,y,E,b){return y===void 0&&(y=!1),E===void 0&&(E=!0),kf(this,a,function(x){return x instanceof cr&&(!E||x.canSelect())},y,b)},Me.Cf=function(a,y,E,b,x){y===void 0&&(y=null),E===void 0&&(E=null),b===void 0&&(b=!1),x instanceof Wn||x instanceof $n||(x=new $n),Ns(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,E,b,x)}return x},Me.Nu=function(a,y,E,b,x,z){var ne=new $n;Ns(this);for(var re=this.Wa.iteratorBackwards;re.next();){var se=re.value;se.visible&&se.Nu(a,y,E,b,ne,x,z)}return ne};function kf(a,y,E,b,x){var z=null;for(z===void 0&&(z=null),E===void 0&&(E=null),b===void 0&&(b=!1),x instanceof Wn||x instanceof $n||(x=new $n),Ns(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,E,b,x)}return x}Me.mz=function(a,y,E,b,x){return E===void 0&&(E=!0),b===void 0&&(b=!0),Qh(this,a,y,function(z){return z instanceof cr&&(!b||z.canSelect())},E,x)},Me.og=function(a,y,E,b,x,z){E===void 0&&(E=null),b===void 0&&(b=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Wn||x instanceof $n)&&(z=x),x=!0),z instanceof Wn||z instanceof $n||(z=new $n),Ns(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var re=ne.value;re.visible&&re.og(a,y,E,b,x,z)}return z};function Qh(a,y,E,b,x,z){var ne=null;for(ne===void 0&&(ne=null),b===void 0&&(b=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Wn||x instanceof $n)&&(z=x),x=!0),z instanceof Wn||z instanceof $n||(z=new $n),Ns(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,E,ne,b,x,z)}return z}Tn.prototype.acceptEvent=function(a){return gu(this,a,a instanceof MouseEvent)};function gu(a,y,E){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,E?bh(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),vr&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Mp(y,y.target),b.targetObject=null,b}function Mp(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 Op(a,y,E,b,x,z){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,vr&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=E,ne.up=b,ne.handled=!1,ne.bubbles=x,ne.isMultiTouch=z,ne}function Yu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Tn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var E=gu(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.down=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del";break;case 48:E.key="0";break;case 187:case 61:case 107:E.key="Add";break;case 189:case 173:case 109:E.key="Subtract";break;case 27:E.key="Esc"}return y.doKeyDown(),Yu(E,a)},Tn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=gu(y,a,!1);switch(E.key=String.fromCharCode(a.which),E.up=!0,a.which){case 8:E.key="Backspace";break;case 33:E.key="PageUp";break;case 34:E.key="PageDown";break;case 35:E.key="End";break;case 36:E.key="Home";break;case 37:E.key="Left";break;case 38:E.key="Up";break;case 39:E.key="Right";break;case 40:E.key="Down";break;case 45:E.key="Insert";break;case 46:E.key="Del"}return y.doKeyUp(),Yu(E,a)},Tn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=gu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(E),y.currentTool.standardMouseOver(),Yu(E,a)},Tn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var E=gu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(E),Yu(E,a)},Tn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new rt(0,0);var E=y.getBoundingClientRect();return y=a.clientX-this.Aa/E.width*E.left,a=a.clientY-this.ya/E.height*E.top,this.Ab!==null?vn(new rt(y,a),this.Ab):new rt(y,a)};function bh(a,y,E){var b=a.ta,x=a.Aa,z=a.ya,ne=0,re=0;b!==null&&(b=b.getBoundingClientRect(),ne=y.clientX-x/b.width*b.left,re=y.clientY-z/b.height*b.top),E.viewPoint.h(ne,re),a.Ab!==null?(y=rt.allocAt(ne,re),a.Ab.Cd(y),E.documentPoint.assign(y),rt.free(y)):E.documentPoint.h(ne,re)}function Rp(a,y,E){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),E.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}Tn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function rm(a){a.ld||Ns(a),a.Va()}Tn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Me=Tn.prototype,Me.Pz=function(){return this.kg},Me.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,E=y.isEnabled;y.Cc(),y.isEnabled=!1,mu(this),this.hf=!1,this.du=new rt(NaN,NaN),y.isEnabled=E,this.ld=!0;var b=this;a!==null&&Yi(function(){b.ld=!1,Ka(y,"Model"),a(b)},1)},Me.$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()})}},Me.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),mu(this))};function jd(a,y,E){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Ch(a)||(y&&Ns(a),E&&Lu(a,!1))}function mu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var E=a.animationManager,b=a.Xn;if(!E.isAnimating&&b.length!==0){for(var x=b.s,z=x.length,ne=0;ne<z;ne++){var re=x[ne];Fa(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(se){se.Nv()}),b.clear()),x=b=!1,E.defaultAnimation.isAnimating&&(x=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),E.zb||kp(a),jd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(bc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ns(a),z=!1,(!a.hf||a.xh)&&(a.hf?Vp(a,!a.Jk):(a.Ea("Initial Layout"),E.isEnabled===!1&&E.Cc(),Vp(a,!1)),z=!0),a.Jk=!1,Ns(a),a.ou||rm(a),jd(a,!0,!1),ne=!1,z?(E=xn.alloc(),E.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Dp(a)),a.R("LayoutCompleted"),jd(a,!0,!1),xn.free(E)):E.Ok&&E.Qw&&(a.Fg!==Zs?a.scale=Eh(a,a.Fg):a.yh!==Zs?a.scale=Eh(a,a.yh):(E=a.initialScale,isFinite(E)&&0<E&&(a.scale=E)),Lu(a,!0)),z&&ne&&a.eb("Initial Layout"),Ns(a),y||a.gc(a.ib),x&&(a.skipsUndoManager=b),a.ld=!1}}function Dp(a){if(a.Fg!==Zs)a.scale=Eh(a,a.Fg);else if(a.yh!==Zs)a.scale=Eh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Lu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),bc(a)}function Ns(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var E=a.De.iterator;if(E===null||a.De.count===0)break;a.De=new $n,a.Nv(E,a.De)}a.nodes.each(function(b){b instanceof Ir&&b.U&65536&&(b.U=b.U^65536)})}}Me.Nv=function(a,y){for(a.reset();a.next();){var E=a.value;!E.Zc()||E instanceof Ir||(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))}for(a.reset();a.next();)E=a.value,E instanceof Ir&&E.isVisible()&&Jh(this,E);for(a.reset();a.next();)E=a.value,E instanceof Li&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E));for(a.reset();a.next();)E=a.value,E instanceof co&&E.isVisible()&&(E.si()?(E.measure(1/0,1/0),E.arrange()):y.add(E))};function Jh(a,y){for(var E=Pi(),b=Pi(),x=y.memberParts;x.next();){var z=x.value;z.isVisible()&&(z instanceof Ir?(ou(z)||rl(z)||Xd(z))&&Jh(a,z):z instanceof Li?z.fromNode===y||z.toNode===y?b.push(z):E.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=E.length,x=0;x<a;x++)z=E[x],z.measure(1/0,1/0),z.arrange();for(Ai(E),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)E=b[y],E.measure(1/0,1/0),E.arrange();Ai(b)}Me.Fd=function(a,y,E,b){if(this.vd||this.animationManager.isAnimating)for(var x=0;x<y;x++)a[x].Fd(E,b)},Me.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ct("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){wh(this);var E=this.Aa,b=this.ya;if(a.Gv.resize(E,b,E,b),E=this.Wa.s,b=E.length,this.Fd(E,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var x=this.Ca,z=Math.round(y.x*x)/x,ne=Math.round(y.y*x)/x,re=this.Ab;for(re.reset(),x!==1&&re.scale(x),y.x===0&&y.y===0||re.translate(-z,-ne),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),gd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)E[y].gc(a,this);a=!1,this.Yf?kh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(mr.prototype.Cd=mr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(E=new Date,wh(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,x=y.length,this.Fd(y,x,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ne=this.Mb,re=this.pa;var se=this.Ca,de=Math.round(re.x*se)/se,pe=Math.round(re.y*se)/se;for(se!==1&&z.scale(se),re.x===0&&re.y===0||z.translate(-de,-pe),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),gd(this,a),re=0;re<x;re++)a.setTransform(ne,0,0,ne,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?kh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(mr.prototype.Cd=mr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+E,b=pr&&pr.nx,E=this.zw,b||this.Yh===null){for(E[this.Tq]=y,this.Tq=(this.Tq+1)%E.length,x=y=0;x<E.length;x++)y+=E[x];this.Sq=y/E.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<E.length;b++)a.fillText(E[b].toString(),20,150+ +(20*b))}}};function Lf(a,y,E,b,x,z,ne,re,se,de){if(a.Ka!==null){a.ta===null&&Ct("No canvas specified"),ne===void 0&&(ne=null),re===void 0&&(re=null),se===void 0&&(se=!1),de===void 0&&(de=!1),wh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var pe=a.Ca;a.Ca=x;var Se=a.Wa.s,Ae=Se.length;try{var Re=new xn(z.x,z.y,b.width/x,b.height/x),Ue=Re.copy();Ue.Co(E),bc(a,Ue),Ns(a),a.Fd(Se,Ae,a,Re),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var Xe=a.Mb;y.scale(Xe,Xe);var bt=mr.alloc();bt.reset(),bt.translate(E.left,E.top),bt.scale(x),z.x===0&&z.y===0||bt.translate(-z.x,-z.y),y.setTransform(bt.m11,bt.m12,bt.m21,bt.m22,bt.dx,bt.dy),y.yc(),y instanceof Gl&&$y(y,bt.m11,bt.m12,bt.m21,bt.m22,bt.dx,bt.dy),mr.free(bt),gd(a,y),y.globalAlpha=a.pb;var ft=a.Qj("Grid");if(ne){var Pt=new $n,Nt=ne.iterator;for(Nt.reset();Nt.next();){var Dt=Nt.value;Dt instanceof cr&&(de||Dt.layer!==ft)&&(Dt.Gj(),Pt.add(Dt))}for(de=0;de<Ae;de++)Qg(Se[de],y,a,Pt,se);Pt.each(function(wn){return wn.Gj()})}else for(Pt=0;Pt<Ae;Pt++){var Yt=Se[Pt];Yt===ft?de&&Yt.gc(y,a,!0):Yt.gc(y,a,se)}a.$i=!1,a.Yf&&kh(a.Yf,a)&&a.Vp()}finally{a.Ca=pe,a.ib.Vc(!0),a.vd=!0,a.Fd(Se,Ae,a,a.viewportBounds),bc(a),a.ib instanceof Gl&&(a.ib.Nj.PA(),a.redraw())}}}Me.Gf=function(a){return this.Rg[a]},Me.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Me.Tx=function(){this.Rg=new ir,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(vr||ln),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function gd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Me.Ql=function(a){return this.on[a]},Me.sA=function(a,y){this.on[a]=y},Me.Sx=function(){this.on=new ir,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Me.set=function(a){return Object.assign(this,a),this},Me.Du=function(a){return this.nm(a)},Me.nm=function(a){return xh(this,a),this};function xh(a,y){var E=a instanceof wi,b=a instanceof Tn,x;for(x in y){x===""&&Ct("Setting properties requires non-empty property names");var z=a,ne=x;if(E||b){var re=x.indexOf(".");if(0<re){var se=x.substring(0,re);E?z=a.fb(se):(z=a[se],z==null&&(z=a.toolManager[se])),zt(z)?ne=x.substr(re+1):Ct("Unable to find object named: "+se+" in "+a.toString()+" when trying to set property: "+x)}}if(ne[0]!=="_"&&!_i(z,ne))if(b&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(b&&ne==="Changed"){a.Pe(y[ne]);continue}else if(b&&_i(a.toolManager,ne))z=a.toolManager;else if(b&&sm(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof or&&ne==="Changed"){a.Pe(y[ne]);continue}else Ct('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[x],ne[0]==="_"&&z instanceof qt&&z.Vw(ne)}}Me.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new yn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Me.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")},Tn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var E=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 b=this.scale,x=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-x)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=xn.alloc(),Gp(this,this.computeBounds(b)),xn.free(b)),b=this.ta,b===null||b instanceof wc)))){var ne=this.Mb;x=this.Aa*ne;var re=this.ya*ne,se=this.scale*ne;z=Math.round(Math.round(y.x*se)-Math.round(a.x*se)),y=Math.round(Math.round(y.y*se)-Math.round(a.y*se)),se=this.jw,a=this.oy,se.width!==x&&(se.width=x),se.height!==re&&(se.height=re),a.clearRect(0,0,x,re),se=190*ne;var de=70*ne,pe=Math.max(z,0),Se=Math.max(y,0),Ae=Math.floor(x-pe),Re=Math.floor(re-Se);a.drawImage(b.Oa,pe,Se,Ae,Re,0,0,Ae,Re),kh(this.Yf,this)&&a.clearRect(0,0,se,de),b=Pi(),a=Pi(),Re=Math.abs(z),Ae=Math.abs(y);var Ue=pe===0?0:x-Re;pe=rt.allocAt(Ue,0),Re=rt.allocAt(Re+Ue,re),a.push(new xn(Math.min(pe.x,Re.x),Math.min(pe.y,Re.y),Math.abs(pe.x-Re.x),Math.abs(pe.y-Re.y)));var Xe=this.Ab;if(Xe.reset(),Xe.scale(ne,ne),this.Ca!==1&&Xe.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&Xe.translate(-ne.x,-ne.y),vn(pe,Xe),vn(Re,Xe),b.push(new xn(Math.min(pe.x,Re.x),Math.min(pe.y,Re.y),Math.abs(pe.x-Re.x),Math.abs(pe.y-Re.y))),Ue=Se===0?0:re-Ae,pe.h(0,Ue),Re.h(x,Ae+Ue),a.push(new xn(Math.min(pe.x,Re.x),Math.min(pe.y,Re.y),Math.abs(pe.x-Re.x),Math.abs(pe.y-Re.y))),vn(pe,Xe),vn(Re,Xe),b.push(new xn(Math.min(pe.x,Re.x),Math.min(pe.y,Re.y),Math.abs(pe.x-Re.x),Math.abs(pe.y-Re.y))),kh(this.Yf,this)&&(x=0<z?0:-z,re=0<y?0:-y,pe.h(x,re),Re.h(se+x,de+re),a.push(new xn(Math.min(pe.x,Re.x),Math.min(pe.y,Re.y),Math.abs(pe.x-Re.x),Math.abs(pe.y-Re.y))),vn(pe,Xe),vn(Re,Xe),b.push(new xn(Math.min(pe.x,Re.x),Math.min(pe.y,Re.y),Math.abs(pe.x-Re.x),Math.abs(pe.y-Re.y)))),rt.free(pe),rt.free(Re),jd(this,!1,!0),this.Ka===null&&Ct("No div specified"),this.ta===null&&Ct("No canvas specified"),!this.animationManager.zb&&(x=this.ib,this.Fc)){for(wh(this),re=this.Mb,x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.Aa*re,this.ya*re),x.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ne=this.Ca,se=Math.round(z.x*ne)/ne,de=Math.round(z.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),z.x===0&&z.y===0||y.translate(-se,-de),x.save(),x.beginPath(),z=a.length,ne=0;ne<z;ne++)se=a[ne],se.width!==0&&se.height!==0&&x.rect(Math.floor(se.x),Math.floor(se.y),Math.ceil(se.width),Math.ceil(se.height));for(x.clip(),x.setTransform(re,0,0,re,0,0),x.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),x.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),gd(this,x),x.globalAlpha=this.pb,re=0;re<z;re++)if(ne=y[re],se=b,ne.visible&&ne.pb!==0){de=Jc(ne,x),Se=ne.Zq,Se.length=0,pe=this.scale,Ae=xn.alloc(),Re=ne.Pa.s,Xe=Re.length,Ue=se.length;for(var bt=0;bt<Xe;bt++){var ft=Re[bt],Pt=Fh(ft,ft.actualBounds);e:{for(var Nt=2/pe,Dt=4/pe,Yt=0;Yt<Ue;Yt++){var wn=se[Yt];if(wn.width!==0&&wn.height!==0&&Pt.Vu(wn.x-Nt,wn.y-Nt,wn.width+Dt,wn.height+Dt)){Pt=!0;break e}}Pt=!1}Pt&&ne.Oj(x,ft,this,Se,pe,Ae,!0)}xn.free(Ae),x.globalAlpha=de}x.restore(),x.Vc(!0),this.Yf&&kh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Ai(b),Ai(a),this.ld=!1}}else this.bd();E&&(El(this),this.bd(),Yh(this,!0))}else E?(El(this),this.bd(),Yh(this,!0)):this.bd()}};function wh(a){a.pn!==!1&&(a.pn=!1,Fp(a,a.Aa,a.ya))}function Fp(a,y,E){xc(a);var b=a.Mb;a.ta.resize(y*b,E*b,y,E)&&(a.Fc=!0,a.ib.Vc(!0))}function Ch(a){var y=a.ta;if(y===null||a.wo.w())return!0;var E=a.Aa,b=a.ya,x=a.Ka,z=!1,ne=a.gf?a.Db:0,re=a.Be?a.Db:0,se=x.clientWidth||E+ne,de=x.clientHeight||b+re,pe=a.viewportBounds;x=pe.x;var Se=pe.y,Ae=pe.width,Re=pe.height;if((se!==E+ne||de!==b+re)&&(a.gf=!1,a.Be=!1,re=ne=0,a.Aa=se,a.ya=de,z=a.pn=!0,xc(a)),!a.hf||!a.viewportBounds.w())return!0;var Ue=a.ku,Xe=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var bt=a.documentBounds,ft=0,Pt=0,Nt=0,Dt=0,Yt=pe.width,wn=pe.height,zi=a.rj;a.contentAlignment.sb()?(bt.width>Yt&&(ft=zi.left,Pt=zi.right),bt.height>wn&&(Nt=zi.top,Dt=zi.bottom)):(ft=zi.left,Pt=zi.right,Nt=zi.top,Dt=zi.bottom);var er=bt.width+ft+Pt,Xi=bt.height+Nt+Dt;zi=a.scale;var ki=er>se/zi,oi=Xi>de/zi;if(!(z||a.gf||a.Be||ki||oi))return!0;ft=bt.x-ft,se=pe.x,Pt=bt.right+Pt,de=pe.right+ne,Nt=bt.y-Nt;var kr=pe.y;bt=bt.bottom+Dt,pe=pe.bottom+re;var Er="1px";if(Dt="1px",a.scrollMode===vd&&(ki||oi)&&(ki&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ki=1,ft+1<se&&(ki=Math.max((se-ft)*zi+a.Aa,ki)),Pt>de+1&&(ki=Math.max((Pt-de)*zi+a.Aa,ki)),Yt+ne+1<er&&(ki=Math.max((er-Yt)*zi+a.Aa,ki)),Er=ki.toString()+"px"),oi&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ki=1,Nt+1<kr&&(ki=Math.max((kr-Nt)*zi+a.ya,ki)),bt>pe+1&&(ki=Math.max((bt-pe)*zi+a.ya,ki)),wn+re+1<Xi&&(ki=Math.max((Xi-wn)*zi+a.ya,ki)),Dt=ki.toString()+"px")),ki=Er!=="1px",oi=Dt!=="1px",ki&&oi||!ki&&!oi||(oi&&(de-=a.Db),ki&&(pe-=a.Db),er<Yt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,ft+1<se&&(ne=Math.max((se-ft)*zi+a.Aa,ne)),Pt>de+1&&(ne=Math.max((Pt-de)*zi+a.Aa,ne)),Yt+1<er&&(ne=Math.max((er-Yt)*zi+a.Aa,ne)),Er=ne.toString()+"px"),ki=Er!=="1px",ne=a.ya,ki!==a.Be&&(ne=ki?a.ya-a.Db:a.ya+a.Db),Xi<wn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,Nt+1<kr&&(re=Math.max((kr-Nt)*zi+ne,re)),bt>pe+1&&(re=Math.max((bt-pe)*zi+ne,re)),wn+1<Xi&&(re=Math.max((Xi-wn)*zi+ne,re)),Dt=re.toString()+"px"),oi=Dt!=="1px"),a.qr&&ki===a.Be&&oi===a.gf)return E===a.Aa&&b===a.ya||a.bd(),!1;if(ki!==a.Be&&(Er==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=ki,Xe.style.width=Er,oi!==a.gf&&(Dt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=rt.alloc(),oi?(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)),rt.free(re))),z&&xc(a),a.gf=oi,Xe.style.height=Dt,a.gu=!0,z&&(a.pn=!0),y=Ue.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Yt+1<er?y=(a.position.x-ft)*zi:ft+1<se?y=Ue.scrollWidth-Ue.clientWidth:Pt>de+1&&(y=a.position.x*zi)),a.tn)switch(a.bu){case"negative":y=-(Ue.scrollWidth-y-Ue.clientWidth);break;case"reverse":y=Ue.scrollWidth-y-Ue.clientWidth}return Ue.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(wn+1<Xi?Ue.scrollTop=(a.position.y-Nt)*zi:Nt+1<kr?Ue.scrollTop=Ue.scrollHeight-Ue.clientHeight:bt>pe+1&&(Ue.scrollTop=a.position.y*zi)),se=a.Aa,de=a.ya,Ue.style.width=se+(a.gf?a.Db:0)+"px",Ue.style.height=de+(a.Be?a.Db:0)+"px",E!==se||b!==de||a.animationManager.zb?(E=xn.allocAt(x,Se,Ae,Re),a.onViewportBoundsChanged(E,a.viewportBounds,zi,z),xn.free(E),!1):!0}Me=Tn.prototype,Me.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ct("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&&Ct('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var E=y.oi(99999999,a,a.diagram===this);0<=E&&this.cb(na,"parts",y,null,a,null,E),y.isTemporary||this.Ya(),a.C(1),E=a.layerChanged,E!==null&&E(a,null,y)}},Me.oi=function(a){this.partManager.oi(a);var y=this;Oh(a,function(E){Th(y,E)}),(a instanceof co||a instanceof Ir&&a.placeholder!==null)&&a.v(),a.data!==null&&Oh(a,function(E){cy(y.partManager,E)}),rl(a)!==!0&&Xd(a)!==!0||this.De.add(a),GS(a,!0,this),WS(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()},Me.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Oh(a,function(E){dy(y.partManager,E,y)}),this.De.remove(a),WS(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()},Me.remove=function(a){Bp(this,a,!0)};function Bp(a,y,E){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),E&&y.Lj(),E=b.pc(-1,y,!1),0<=E&&a.cb(aa,"parts",b,y,null,E,null),a=y.layerChanged,a!==null&&a(y,b,null))}Me.Is=function(a,y){if(y===void 0&&(y=!1),pi(a))for(var E=a.length,b=0;b<E;b++){var x=a[b];y&&!x.canDelete()||this.remove(x)}else for(E=new $n,E.addAll(a),a=E.iterator;a.next();)E=a.value,y&&!E.canDelete()||this.remove(E)},Me.Kj=function(a,y,E){return E===void 0&&(E=!1),this.partManager.Kj(a,y,E)},Tn.prototype.moveParts=function(a,y,E,b){if(E===void 0&&(E=!1),b===void 0&&(b=If(this)),this.toolManager!==null){var x=new yn;if(a!==null)if(pi(a))for(var z=0;z<a.length;z++)Dc(this,x,a[z],E,b);else for(a=a.iterator;a.next();)Dc(this,x,a.value,E,b);else{for(a=this.parts;a.next();)Dc(this,x,a.value,E,b);for(a=this.nodes;a.next();)Dc(this,x,a.value,E,b);for(a=this.links;a.next();)Dc(this,x,a.value,E,b)}Gd(this,x,y,b,E)}};function Dc(a,y,E,b,x,z){if(!y.contains(E)&&(z===void 0&&(z=!1),!b||z||E.canMove()||E.canCopy()))if(x===void 0&&(x=If(a)),E instanceof Gi){if(y.add(E,a.Pd(x,E,E.location)),E instanceof Ir&&(E.placeholder!==null||x.dragsMembers))for(z=E.memberParts;z.next();)Dc(a,y,z.value,b,x,x.groupsAlwaysMove);for(z=E.linksConnected;z.next();){var ne=z.value;if(!y.contains(ne)){var re=ne.fromNode,se=ne.toNode;re!==null&&y.contains(re)&&se!==null&&y.contains(se)&&Dc(a,y,ne,b,x)}}if(x.dragsTree)for(E=E.Ou();E.next();)Dc(a,y,E.value,b,x)}else if(E instanceof Li)for(y.add(E,a.Pd(x,E)),E=E.labelNodes;E.next();)Dc(a,y,E.value,b,x);else E instanceof co||y.add(E,a.Pd(x,E,E.location))}function Gd(a,y,E,b,x){if(y!==null&&y.count!==0){var z=rt.alloc(),ne=rt.alloc();ne.assign(E),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(E=a.Mr)||Of(a,y);for(var re=Pi(),se=Pi(),de=y.iterator,pe=rt.alloc();de.next();){var Se=de.key,Ae=de.value;if(Se.Zc()){var Re=_p(a,Se,y);Re!==null?re.push(new ie(Se,Ae,Re)):(!x||Se.canMove())&&(Re=Ae.point,z.assign(Re),a.computeMove(Se,z.add(ne),b,pe),Se.location=pe,Ae.shifted===void 0&&(Ae.shifted=new rt),Ae.shifted.assign(pe.re(Re)))}else de.key instanceof Li&&se.push(de.sa)}for(rt.free(pe),x=re.length,de=0;de<x;de++)Se=re[de],z.assign(Se.info.point),Se.Su.shifted===void 0&&(Se.Su.shifted=new rt),Se.node.location=z.add(Se.Su.shifted);for(x=rt.alloc(),de=rt.alloc(),Se=se.length,Ae=0;Ae<Se;Ae++){var Ue=se[Ae];if(Re=Ue.key,Re instanceof Li)if(Re.suspendsRouting){Re.Tg=null,pe=Re.fromNode;var Xe=Re.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Xe=Ue.value.point,Re.dragComputation===null)y.add(Re,a.Pd(b,Re,ne)),Td(Re,ne.x-Xe.x,ne.y-Xe.y);else{Ue=rt.allocAt(0,0),(pe=Re.i(0))&&pe.w()&&Ue.assign(pe);var bt=pe=rt.alloc().assign(Ue).add(ne);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(bt=rt.alloc(),Mf(a,Re,pe,bt,b)),pe.assign(Re.dragComputation(Re,pe,bt)).re(Ue),y.add(Re,a.Pd(b,Re,pe)),Td(Re,pe.x-Xe.x,pe.y-Xe.y),rt.free(Ue),rt.free(pe),bt!==pe&&rt.free(bt)}else pe!==null&&(x.assign(pe.location),bt=y.I(pe),bt!==null&&x.re(bt.point)),Xe!==null&&(de.assign(Xe.location),bt=y.I(Xe),bt!==null&&de.re(bt.point)),pe!==null&&Xe!==null?x.Xa(de)?(pe=Ue.value.point,Xe=z,Xe.assign(x),Xe.re(pe),y.add(Re,a.Pd(b,Re,x)),Td(Re,Xe.x,Xe.y)):(Re.suspendsRouting=!1,Re.bb()):(Ue=Ue.value.point,pe=pe!==null?x:Xe!==null?de:ne,y.add(Re,a.Pd(b,Re,pe)),Td(Re,pe.x-Ue.x,pe.y-Ue.y))}else(Re.fromNode===null||Re.toNode===null)&&(pe=Ue.value.point,y.add(Re,a.Pd(b,Re,ne)),Td(Re,ne.x-pe.x,ne.y-pe.y))}rt.free(z),rt.free(ne),rt.free(x),rt.free(de),Ai(re),Ai(se),E||(Ns(a),Vd(a,y))}}Tn.prototype.computeMove=function(a,y,E,b){if(b===void 0&&(b=new rt),b.assign(y),a===null)return b;var x=y,z=E.isGridSnapEnabled;z&&(E.isGridSnapRealtime||this.lastInput.up)&&(x=rt.alloc(),Mf(this,a,y,x,E)),E=a.dragComputation!==null?a.dragComputation(a,y,x):x;var ne=a.minLocation,re=ne.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var se=a.maxLocation,de=se.x;return isNaN(de)&&(de=z?Math.round(1e3*a.location.x)/1e3:a.location.x),se=se.y,isNaN(se)&&(se=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(E.x,de)),Math.max(ne,Math.min(E.y,se))),x!==y&&rt.free(x),b};function If(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Mf(a,y,E,b,x){if(x===void 0&&(x=If(a)),b.assign(E),y!==null){var z=a.grid;y=x.gridSnapCellSize,a=y.width,y=y.height;var ne=x.gridSnapOrigin,re=ne.x;if(ne=ne.y,x=x.gridSnapCellSpot,z!==null){var se=z.gridCellSize;isNaN(a)&&(a=se.width),isNaN(y)&&(y=se.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ne)&&(ne=z.y)}z=rt.allocAt(0,0),z.yi(0,0,a,y,x),Qt.No(E.x,E.y,re+z.x,ne+z.y,a,y,b),rt.free(z)}}function Of(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Li&&(y.suspendsRouting=!0)}function Vd(a,y){if(y!==null){for(y=y.iterator;y.next();){var E=y.key;E instanceof Li&&(E.suspendsRouting=!1,Qv(E)&&E.bb())}a.Mr=!1}}function _p(a,y,E){return y=y.containingGroup,y!==null&&(a=_p(a,y,E),a!==null||(a=E.I(y),a!==null))?a:null}Me=Tn.prototype,Me.Pd=function(a,y,E){if(E===void 0)return new qc(Ii);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new qc(new rt(Math.round(1e3*E.x)/1e3,Math.round(1e3*E.y)/1e3)):new qc(E.copy())};function Up(a,y,E){if(y.diagram!==null&&y.diagram!==a&&Ct("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),E===null?y.diagram!==null&&Ct("Cannot add an existing Layer to this Diagram again: "+y):(E.diagram!==a&&Ct("Existing Layer must be in this Diagram: "+E+" not in "+E.diagram),y===E&&Ct("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,E=a.count;for(var b=0;b<E;b++)a.M(b).name===y&&Ct("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Me.Al=function(a){Up(this,a,null),a.Xe(this);var y=this.Wa,E=y.count-1;if(!a.isTemporary)for(;0<=E&&y.M(E).isTemporary;)E--;return y.Gb(E+1,a),this.cc!==null&&this.cb(na,"layers",this,null,a,null,E+1),this.N(),this.Ya(),this},Me.Ww=function(a,y){Up(this,a,y),a.Xe(this);var E=this.Wa,b=E.indexOf(a);0<=b&&(E.remove(a),this.cc!==null&&this.cb(aa,"layers",this,a,null,b,null));var x=E.count,z;for(z=0;z<x;z++)if(E.M(z)===y){E.Gb(z,a);break}return this.cc!==null&&this.cb(na,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Me.Cy=function(a,y){Up(this,a,y),a.Xe(this);var E=this.Wa,b=E.indexOf(a);0<=b&&(E.remove(a),this.cc!==null&&this.cb(aa,"layers",this,a,null,b,null));var x=E.count,z;for(z=0;z<x;z++)if(E.M(z)===y){E.Gb(z+1,a);break}return this.cc!==null&&this.cb(na,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Me.kA=function(a){if(a.diagram!==this&&Ct("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,E=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,x=b.layerName;x!==a.name?b.layerName=x:b.layerName=""}this.cc!==null&&this.cb(aa,"layers",this,a,null,E,null),this.N(),this.Ya()}}},Me.Qj=function(a){for(var y=this.layers;y.next();){var E=y.value;if(E.name===a)return E}return null},Me.Yw=function(a){return this.pf===null&&(this.pf=new Wn),this.pf.add(a),this.model.Pe(a),this},Me.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Me.Pe=function(a){return this.zg===null&&(this.zg=new Wn),this.zg.add(a),this},Me.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Me.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==cs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,E=y.length,b=0;b<E;b++)y.M(b)(a)},Me.cb=function(a,y,E,b,x,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var re=new Ko;re.diagram=this,re.change=a,re.propertyName=y,re.object=E,re.oldValue=b,re.oldParam=z,re.newValue=x,re.newParam=ne,this.ds(re)},Me.g=function(a,y,E,b,x){this.cb(Bo,a,this,y,E,b,x)},Tn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var E=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Bo){var x=a.object;if(qo(x,a.propertyName,a.I(y)),x instanceof qt){var z=x.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===na){var ne=a.object,re=a.newParam,se=a.newValue;if(ne instanceof wi)if(typeof re=="number"&&se instanceof qt){y?ne.pc(re):ne.Gb(re,se);var de=ne.part;de!==null&&de.Wb()}else typeof re=="number"&&se instanceof Ba&&(se.isRow?gS(ne,re,y?void 0:se):mS(ne,re,y?void 0:se));else if(ne instanceof hs){var pe=a.oldParam===!0;typeof re=="number"&&se instanceof cr&&(y?(se.isSelected=!1,se.isHighlighted=!1,se.Wb(),ne.pc(pe?re:-1,se,pe)):ne.oi(re,se,pe))}else ne instanceof Tn?typeof re=="number"&&se instanceof hs&&(y?this.Wa.mb(re):(se.Xe(this),this.Wa.Gb(re,se))):Ct("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===aa){var Se=a.object,Ae=a.oldParam,Re=a.oldValue;if(Se instanceof wi)typeof Ae=="number"&&Re instanceof qt?y?Se.Gb(Ae,Re):Se.pc(Ae):typeof Ae=="number"&&Re instanceof Ba&&(Re.isRow?gS(Se,Ae,y?Re:void 0):mS(Se,Ae,y?Re:void 0));else if(Se instanceof hs){var Ue=a.newParam===!0;typeof Ae=="number"&&Re instanceof cr&&(y?0>Se.Pa.indexOf(Re)&&Se.oi(Ae,Re,Ue):(Re.isSelected=!1,Re.isHighlighted=!1,Re.Wb(),Se.pc(Ue?Ae:-1,Re,Ue)))}else Se instanceof Tn?typeof Ae=="number"&&Re instanceof hs&&(y?(Re.Xe(this),this.Wa.Gb(Ae,Re)):this.Wa.mb(Ae)):Ct("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==cs&&Ct("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=E}}},Tn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Tn.prototype.eb=function(a){return this.undoManager.eb(a)},Tn.prototype.Kf=function(){return this.undoManager.Kf()},Tn.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},Tn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Tn.prototype.rp=function(){this.partManager.rp()};function Hp(a,y,E){var b=a.animationManager;if(a.vb||a.ld)a.Ca=E,xc(a),a.N(),a.Ee=!0,b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=E,xc(a);else{a.vb=!0;var x=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,re=a.zoomPoint.x,se=a.zoomPoint.y,de=a.contentAlignment;isNaN(re)&&(de.$c()?de.Hf(gs)?re=0:de.Hf(Jo)&&(re=z-1):re=de.sb()?de.x*(z-1):z/2),isNaN(se)&&(de.$c()?de.Hf(Wo)?se=0:de.Hf(ss)&&(se=ne-1):se=de.sb()?de.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(E=a.scaleComputation(a,E)),E<a.minScale&&(E=a.minScale),E>a.maxScale&&(E=a.maxScale),z=rt.allocAt(a.pa.x+re/y-re/E,a.pa.y+se/y-se/E),a.position=z,rt.free(z),a.Ca=E,xc(a),a.vb=!1,a.onViewportBoundsChanged(x,a.viewportBounds,y,!1),Lu(a,!1),b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Tn.prototype.onViewportBoundsChanged=function(a,y,E,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var x=this.layout;x===null||!x.isViewportSized||this.autoScale!==Zs||a.width===y.width&&a.height===y.height||x.C(),x=this.currentTool,this.Vk===!0&&x instanceof Fo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Lc(x,this)),this.vb||this.invalidateViewport(a,y),bc(this),this.fc.scale=E,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*E),this.fc.canvasSize.height=Math.round(a.height*E),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function bc(a,y){var E=a.fe;if(E!==null&&E.visible){for(var b=en.alloc(),x=1,z=1,ne=E.O.s,re=ne.length,se=0;se<re;se++){var de=ne[se],pe=Math.abs(de.interval);2>pe||(yv(de.figure)?z=z*pe/Qt.vx(z,pe):x=x*pe/Qt.vx(x,pe))}if(ne=E.gridCellSize,b.h(z*ne.width,x*ne.height),y!==void 0)x=y.width,z=y.height,a=y.x,ne=y.y;else{if(y=xn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){xn.free(y);return}x=y.width,z=y.height,a=y.x,ne=y.y,xn.free(y)}E.width=x+2*b.width,E.height=z+2*b.height,y=rt.alloc(),Qt.No(a,ne,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),en.free(b),E.part.location=y,rt.free(y)}}Tn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var E=y.Fa(),b=E.length,x=0;x<b;x++)E[x].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Tn.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))},Tn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),pi(a))for(var y=a.length,E=0;E<y;E++){var b=a[E];b instanceof cr||Ct("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof cr||Ct("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Tn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),E=y.length,b=0;b<E;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Me=Tn.prototype,Me.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Me.Jz=function(a){a=new $n().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 cr||Ct("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Me.scroll=function(a,y,E){E===void 0&&(E=1);var b=y==="up"||y==="down",x=0,z=rt.alloc();if(a==="pixel")x=E;else if(a==="line")x=E*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(x=E*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){x=this.documentBounds,E=this.viewportBounds,y==="up"?this.position=z.h(E.x,x.y):y==="left"?this.position=z.h(x.x,E.y):y==="down"?this.position=z.h(E.x,x.bottom-E.height):y==="right"&&(this.position=z.h(x.right-E.width,E.y)),rt.free(z);return}Ct("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}x/=this.scale,E=this.position,y==="up"?this.position=z.h(E.x,E.y-x):y==="down"?this.position=z.h(E.x,E.y+x):y==="left"?this.position=z.h(E.x-x,E.y):y==="right"?this.position=z.h(E.x+x,E.y):Ct("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),rt.free(z)},Me.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)},Me.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Me.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),a.copy().transform(this.Ab)},Me.zA=function(a){var y=this.Ab,E=a.x,b=a.y,x=E+a.width,z=b+a.height,ne=y.m11,re=y.m12,se=y.m21,de=y.m22,pe=y.dx,Se=y.dy,Ae=E*ne+b*se+pe;y=E*re+b*de+Se;var Re=x*ne+b*se+pe;return a=x*re+b*de+Se,b=E*ne+z*se+pe,E=E*re+z*de+Se,ne=x*ne+z*se+pe,x=x*re+z*de+Se,z=Math.min(Ae,Re),Ae=Math.max(Ae,Re),Re=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Ae=Math.max(Ae,b),Re=Math.min(Re,E),y=Math.max(y,E),z=Math.min(z,ne),Ae=Math.max(Ae,ne),Re=Math.min(Re,x),y=Math.max(y,x),new xn(z,Re,Ae-z,y-Re)},Me.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var E=this.pa;return(E.x!==0||E.y!==0)&&isFinite(E.x)&&isFinite(E.y)&&y.translate(-E.x,-E.y),vn(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function zp(a){return a=Uf.get(a),a!==null?new a:new xo}Tn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var E=a.change,b=a.propertyName;if(E===cs&&b[0]==="S")if(b==="StartingFirstTransaction"){var x=this;a=this.toolManager,a.mouseDownTools.each(function(se){return se.diagram=x}),a.mouseMoveTools.each(function(se){return se.diagram=x}),a.mouseUpTools.each(function(se){return se.diagram=x}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&E===cs){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ns(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||zl(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(om(this),this.As.clear(),pd(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Yi(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Th(a,y){y=y.O.s;for(var E=y.length,b=0;b<E;b++)Wd(a,y[b])}function Wd(a,y){if(y instanceof Cl){var E=y.element;if(E!==null&&E instanceof HTMLImageElement){E.Bg instanceof $n&&E.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),E.hn)if(E=E.getAttribute("src")||"",b=a.Og.I(E),b===null)b=[],b.push(y),a.Og.add(E,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function jp(a,y){if(y instanceof Cl){var E=y.element;if(E!==null&&E instanceof HTMLImageElement&&E.hn){var b=E.getAttribute("src")||"",x=a.Og.I(b);if(x!==null){for(var z=0;z<x.length;z++)if(x[z]===y){x.splice(z,1),x.length===0&&(a.Og.remove(b),E.Fq&&E.removeEventListener("load",E.Fq),E.Yp&&E.removeEventListener("error",E.Yp),delete E.Fq,delete E.Yp,E.Bg instanceof $n&&E.Bg.remove(a),qf(b));break}}}}}Tn.prototype.Wd=function(){this.partManager.Wd()},Tn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Tn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Tn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Tn.prototype.Vb=function(a){return this.partManager.Vb(a)},Tn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Me=Tn.prototype,Me.Lc=function(a){return this.partManager.Lc(a)},Me.ii=function(a){return this.partManager.ii(a)},Me.Kc=function(a){return this.partManager.Kc(a)},Me.ms=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:On(ti(y)))},Me.ls=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:On(ti(y)))};function xc(a){var y=a.pa,E=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/E,Math.max(a.ya,0)/E),a.vd=!0}function Gp(a,y){a.Zi=!1;var E=a.Sp;E.D(y)||(E=E.copy(),a.Sp.assign(y),Lu(a,!1),a.R("DocumentBoundsChanged",void 0,E),a.Ee=!0,a.N())}Me.Va=function(){if(this.Zi){var a=xn.alloc();Gp(this,this.computeBounds(a)),xn.free(a)}},Me.rz=function(){for(var a=new $n,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&a.add(E)}for(y=this.links;y.next();)E=y.value,E.isTopLevel&&a.add(E);return a.iterator},Me.qz=function(){return this.ai.iterator},Me.Uz=function(a){Ns(this),a&&Rf(this,!0),this.ld?Vp(this,!1):(this.Jk=!0,mu(this))};function Rf(a,y){for(var E=a.ai.iterator;E.next();)am(a,E.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function am(a,y,E){if(y!==null){for(var b=y.gl.iterator;b.next();)am(a,b.value,E);y.layout!==null&&(E?y.layout.isValidLayout=!1:y.layout.C())}}function Vp(a,y){if(a.xh&&!a.lt){var E=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,x=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ka(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)Wp(a,ne.value,y,b);x.isValidLayout||(!y||x.isRealtime||x.isRealtime===null||b===0?(x.doLayout(a),Ns(a),x.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||zl(z),a.aa=E}}}function Wp(a,y,E,b){if(y!==null){for(var x=y.gl.iterator;x.next();)Wp(a,x.value,E,b);x=y.layout,x===null||x.isValidLayout||(!E||x.isRealtime||b===0?(y.rh=!y.location.w(),x.doLayout(y),y.C(32),Jh(a,y),x.isValidLayout=!0):a.xh=!0)}}Me.yz=function(){for(var a=new Wn,y=this.nodes;y.next();){var E=y.value;E.isTopLevel&&E.kh()===null&&a.add(E)}return a.iterator};function rv(a){function y(x){var z=x.toLowerCase(),ne=new Wn;E.add(x,ne),E.add(z,ne),b.add(x,x),b.add(z,x)}var E=new yn,b=new yn;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=E,a.hw=b}function sm(a,y){var E=a.hw.I(y);return E!==null?E:a.hw.I(y.toLowerCase())}function Df(a,y){var E=a.iw.I(y);if(E!==null||(E=a.iw.I(y.toLowerCase()),E!==null))return E;Ct("Unknown DiagramEvent name: "+y)}Me.Bj=function(a,y){return a=Df(this,a),a!==null&&a.add(y),this},Me.am=function(a,y){a=Df(this,a),a!==null&&a.remove(y)},Me.R=function(a,y,E){var b=Df(this,a),x=new hu;if(x.diagram=this,a=sm(this,a),a!==null&&(x.name=a),y!==void 0&&(x.subject=y),E!==void 0&&(x.parameter=E),y=b.length,y===1)b.M(0)(x);else if(y!==0)for(b=b.Fa(),E=0;E<y;E++)(0,b[E])(x)};function Ff(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Me.Yj=function(a,y){return Bf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Tn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Lp(this,a):a.assign(this.documentBounds)};function Bf(a,y,E,b){var x=a.Xh;if(x===null&&(a.Xh=x=new Eg(a.avoidanceCellSize)),x.vs||x.group!==E||x.Yx!==b){if(x.Hx=Math.max(x.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),x.Ix=Math.max(x.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),E!==null&&(E=lm(a,E)),E===null){y=xn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),x.initialize(y);for(var z=a.nodes;z.next();){var ne=z.value,re=ne.layer;re!==null&&re.visible&&!re.isTemporary&&_f(a,ne,b,y)}xn.free(y)}else{for(0<E.memberParts.count&&(y=a.computePartsBounds(E.memberParts,!1),y.Bc(20,20),x.initialize(y)),y=xn.alloc(),z=E.memberParts;z.next();)ne=z.value,ne instanceof Gi&&_f(a,ne,b,y);xn.free(y)}x.group=E,x.Yx=b,x.vs=!1}else y&&c1(x);return x}function lm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?lm(a,y.containingGroup):null}function _f(a,y,E,b){if(y!==E&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var x=y.x,z=y.y;if(rp(a,x,z))for(E=(z-a.Od)/a.sc|0,b=Math.min((x+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),x=(x-a.Nd)/a.rc|0;x<=b;x++)if(z=a.ac[x],z.fill)z.fill(Ad,E,y+1);else for(var ne=E;ne<=y;ne++)z[ne]=Ad}else if(y instanceof Ir)for(y=y.memberParts;y.next();)x=y.value,x instanceof Gi&&_f(a,x,E,b)}}function md(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Tn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Zp(this)};function Zp(a){a.vk===-1&&(a.vk=Yi(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=xn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Gp(a,y),xn.free(y),a.Fc=!0,a.bd(),Zp(a))}},a.vp))}Tn.prototype.ug=function(){this.vk!==-1&&(mn.clearTimeout(this.vk),this.vk=-1)},Tn.prototype.computeAutoScrollPosition=function(a){var y=this.position,E=this.xp;if(0>=E.top&&0>=E.left&&0>=E.right&&0>=E.bottom)return y;var b=this.viewportBounds,x=this.scale;b=xn.allocAt(0,0,b.width*x,b.height*x);var z=rt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+E.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,z.x-=ne,a.x<b.x+E.left/2&&(z.x-=ne),a.x<b.x+E.left/4&&(z.x-=4*ne)}else a.x<=b.x+b.width&&a.x>b.x+b.width-E.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>b.x+b.width-E.right/2&&(z.x+=ne),a.x>b.x+b.width-E.right/4&&(z.x+=4*ne));return a.y>=b.y&&a.y<b.y+E.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y-=ne,a.y<b.y+E.top/2&&(z.y-=ne),a.y<b.y+E.top/4&&(z.y-=4*ne)):a.y<=b.y+b.height&&a.y>b.y+b.height-E.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>b.y+b.height-E.bottom/2&&(z.y+=ne),a.y>b.y+b.height-E.bottom/4&&(z.y+=4*ne)),z.Xa(Ii)||(y=new rt(y.x+z.x/x,y.y+z.y/x)),xn.free(b),rt.free(z),y},Me=Tn.prototype,Me.Cs=function(){return null},Me.av=function(){return null},Me.bs=function(a,y){this.pj.add(a,y)},Me.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ir&&(y.$p=null)})};function qh(a,y,E){function b(){var pe=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||pe-de>se?y(E,x,re):mn.requestAnimationFrame(b)}for(var x=E.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof x!="function"||z)return y(E,x,a);var re=a,se=E.callbackTimeout||300,de=+new Date;return mn.requestAnimationFrame(function(){b()}),null}Me.Wz=function(a){return da?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Me.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},Me.Xz=function(a,y,E){var b=um(E,a,"canvas",null);if(b===null)return null;E=b.Z.canvas;var x=null;if(E!==null)switch(x=a.returnType,x===void 0?x="string":x=x.toLowerCase(),x){case Nh+"data":x=b.getImageData(0,0,E.width,E.height);break;case Nh:b=(a.document||document).createElement("img"),b.src=E.toDataURL(a.type,a.details),x=b;break;case"blob":return typeof y!="function"&&Ct('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof E.toBlob=="function"?(E.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:x=E.toDataURL(a.type,a.details)}return typeof y=="function"?(y(x),null):x};function um(a,y,E,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ct("properties argument must be an Object.");var x=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=E==="SVG"?new en(1/0,1/0):new en(2e3,2e3));var re=y.position||null,se=y.parts||null,de=y.padding===void 0?1:y.padding,pe=y.background||null,Se=y.omitTemporary;Se===void 0&&(Se=!0);var Ae=y.document||document,Re=y.elementFinished||null,Ue=y.showTemporary;Ue===void 0&&(Ue=!Se),y=y.showGrid,y===void 0&&(y=Ue),x!==null&&isNaN(x.width)&&isNaN(x.height)&&(x=null),typeof de=="number"?de=new Fr(de):de instanceof Fr||Ct("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 Mu(null,Ae,void 0,!0);var Xe=Se.context;if(!(x||z||se||re))return Se.width=a.Aa+Math.ceil(de.left+de.right),Se.height=a.ya+Math.ceil(de.top+de.bottom),E==="SVG"?b===null?null:(b.resize(Se.width,Se.height,Se.width,Se.height),b.ownerDocument=Ae,b.hs=Re,Lf(a,b.context,de,new en(Se.width,Se.height),a.Ca,a.pa,se,pe,Ue,y),b.context):(a.Xm=!1,Lf(a,Xe,de,new en(Se.width,Se.height),a.Ca,a.pa,se,pe,Ue,y),a.Xm=!0,Se.context);var bt=a.Pp,ft=a.documentBounds.copy();if(ft.Fv(a.yb),Ue)for(var Pt=a.Wa.s,Nt=Pt.length,Dt=0;Dt<Nt;Dt++){var Yt=Pt[Dt];if(Yt.visible&&Yt.isTemporary){Yt=Yt.Pa.s;for(var wn=Yt.length,zi=0;zi<wn;zi++){var er=Yt[zi];er.isInDocumentBounds&&er.isVisible()&&(er=er.actualBounds,er.w()&&ft.ed(er))}}}if(Pt=new rt(ft.x,ft.y),se!==null){for(Nt=new xn(0,0,0,0),Dt=!0,Yt=se.iterator,Yt.reset();Yt.next();)wn=Yt.value,wn instanceof cr&&(zi=wn.layer,zi!==null&&!zi.visible||zi!==null&&!Ue&&zi.isTemporary||!wn.isVisible()||(wn=wn.actualBounds,wn.w()&&(Dt?(Dt=!1,Nt.assign(wn)):Nt.ed(wn))));ft.width=Nt.width,ft.height=Nt.height,Pt.x=Nt.x,Pt.y=Nt.y}return re!==null&&re.w()&&(Pt=re,z||(z=bt)),Nt=re=0,de!==null&&(re=de.left+de.right,Nt=de.top+de.bottom),Dt=Yt=0,x!==null&&(Yt=x.width,Dt=x.height,isFinite(Yt)&&(Yt=Math.max(0,Yt-re)),isFinite(Dt)&&(Dt=Math.max(0,Dt-Nt))),x!==null&&z!==null?(z==="NaN"&&(z=bt),x.w()?(x=Yt,ft=Dt):isNaN(Dt)?(x=Yt,ft=ft.height*z):(x=ft.width*z,ft=Dt)):x!==null?x.w()?(z=Math.min(Yt/ft.width,Dt/ft.height),x=Yt,ft=Dt):isNaN(Dt)?(z=Yt/ft.width,x=Yt,ft=ft.height*z):(z=Dt/ft.height,x=ft.width*z,ft=Dt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-re)/ft.width,(ne.height-Nt)/ft.height),z>bt?(z=bt,x=ft.width,ft=ft.height):(x=ne.width,ft=ne.height)):(x=ft.width*z,ft=ft.height*z):(z=bt,x=ft.width,ft=ft.height),de!==null?(x+=re,ft+=Nt):de=new Fr(0),ne!==null&&(bt=ne.width,ne=ne.height,isNaN(bt)&&(bt=2e3),isNaN(ne)&&(ne=2e3),isFinite(bt)&&(x=Math.min(x,bt)),isFinite(ne)&&(ft=Math.min(ft,ne))),Se.width=Math.ceil(x),Se.height=Math.ceil(ft),E==="SVG"?b===null?null:(b.resize(Se.width,Se.height,Se.width,Se.height),b.ownerDocument=Ae,b.hs=Re,Lf(a,b.context,de,new en(Math.ceil(x),Math.ceil(ft)),z,Pt,se,pe,Ue,y),b.context):(a.Xm=!1,Lf(a,Xe,de,new en(Math.ceil(x),Math.ceil(ft)),z,Pt,se,pe,Ue,y),a.Xm=!0,Se.context)}_n.Object.defineProperties(Tn.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(E){E.cancelWaitAfter()}),y.mouseMoveTools.each(function(E){E.cancelWaitAfter()}),y.mouseUpTools.each(function(E){E.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(mn,"resize",this.Ov,!1),this.removeEventListener(mn,"wheel",this.$j,!0),Oc===this&&(Oc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Np(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)&&fi(a,"0 <= value <= 1",Tn,"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),Lu(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),Lu(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),Lu(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),Lu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&fi(a,">= 0",Tn,"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&&fi(a,">= 0",Tn,"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,E=this.Ka;if(y!==null&&E!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,E.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,E.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,E.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,E.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 E=0;E<a;E++)y[E].isSelected=!1;this.R("ChangedSelection",this.selection)}}else fi(a,">= 0",Tn,"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&&Ct("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var E=Ap(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ka(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=zp(this.cc.type);for(var x=0;x<E.length;x++)this.add(E[x]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(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=rt.alloc().assign(this.pa);if(!y.D(a)){var E=this.viewportBounds.copy();this.pa.assign(a),Hd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?xc(this):(this.vb=!0,a=this.scale,Ip(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(E,this.viewportBounds,this.Ca,!1)}rt.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!==wi.Grid&&Ct("Diagram.grid must be a Panel of type Panel.Grid");var E=y.panel;E!==null&&E.remove(y),this.fe=a,a.name="GRID",E!==null&&E.add(a),bc(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),xc(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||Ct("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 Fr(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&&Lu(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,Lu(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,Hp(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&&Hp(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!==Zs&&Lu(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()||Ct("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()||Ct("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)):fi(a,"> 0",Tn,"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)):fi(a,"> 0",Tn,"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),Lu(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 Fr(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&&Ct("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();)cg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==yd&&a!==Da&&a!==Hf&&Ct("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 Fr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),_n.Object.defineProperties(Tn,{licenseKey:{get:function(){return qp.jc()},set:function(a){qp.add(a.replace(/\s/g,""))}},version:{get:function(){return Ah}}}),Tn.prototype.makeImageData=Tn.prototype.Jx,Tn.prototype.makeImage=Tn.prototype.Wz,Tn.prototype.cacheGroupExternalLinks=Tn.prototype.Fu,Tn.prototype.addRenderer=Tn.prototype.bs,Tn.prototype.makeSVG=Tn.prototype.av,Tn.prototype.makeSvg=Tn.prototype.Cs,Tn.prototype.stopAutoScroll=Tn.prototype.ug,Tn.prototype.doAutoScroll=Tn.prototype.gs,Tn.prototype.isUnoccupied=Tn.prototype.Yj,Tn.prototype.raiseDiagramEvent=Tn.prototype.R,Tn.prototype.removeDiagramListener=Tn.prototype.am,Tn.prototype.addDiagramListener=Tn.prototype.Bj,Tn.prototype.findTreeRoots=Tn.prototype.yz,Tn.prototype.layoutDiagram=Tn.prototype.Uz,Tn.prototype.findTopLevelGroups=Tn.prototype.qz,Tn.prototype.findTopLevelNodesAndLinks=Tn.prototype.rz,Tn.prototype.ensureBounds=Tn.prototype.Va,Tn.prototype.findLinksByExample=Tn.prototype.ls,Tn.prototype.findNodesByExample=Tn.prototype.ms,Tn.prototype.findLinkForData=Tn.prototype.Kc,Tn.prototype.findNodeForData=Tn.prototype.ii,Tn.prototype.findPartForData=Tn.prototype.Lc,Tn.prototype.findLinkForKey=Tn.prototype.findLinkForKey,Tn.prototype.findNodeForKey=Tn.prototype.Vb,Tn.prototype.findPartForKey=Tn.prototype.findPartForKey,Tn.prototype.rebuildParts=Tn.prototype.Wd,Tn.prototype.transformViewToDoc=Tn.prototype.Ps,Tn.prototype.transformRectDocToView=Tn.prototype.zA,Tn.prototype.transformDocToView=Tn.prototype.op,Tn.prototype.centerRect=Tn.prototype.es,Tn.prototype.scrollToRect=Tn.prototype.tv,Tn.prototype.scroll=Tn.prototype.scroll,Tn.prototype.highlightCollection=Tn.prototype.Jz,Tn.prototype.highlight=Tn.prototype.Iz,Tn.prototype.selectCollection=Tn.prototype.rA,Tn.prototype.select=Tn.prototype.select,Tn.prototype.updateAllRelationshipsFromData=Tn.prototype.rp,Tn.prototype.updateAllTargetBindings=Tn.prototype.updateAllTargetBindings,Tn.prototype.commit=Tn.prototype.commit,Tn.prototype.rollbackTransaction=Tn.prototype.Kf,Tn.prototype.commitTransaction=Tn.prototype.eb,Tn.prototype.startTransaction=Tn.prototype.Ea,Tn.prototype.raiseChanged=Tn.prototype.g,Tn.prototype.raiseChangedEvent=Tn.prototype.cb,Tn.prototype.removeChangedListener=Tn.prototype.ik,Tn.prototype.addChangedListener=Tn.prototype.Pe,Tn.prototype.removeModelChangedListener=Tn.prototype.mA,Tn.prototype.addModelChangedListener=Tn.prototype.Yw,Tn.prototype.findLayer=Tn.prototype.Qj,Tn.prototype.removeLayer=Tn.prototype.kA,Tn.prototype.addLayerAfter=Tn.prototype.Cy,Tn.prototype.addLayerBefore=Tn.prototype.Ww,Tn.prototype.addLayer=Tn.prototype.Al,Tn.prototype.moveParts=Tn.prototype.moveParts,Tn.prototype.copyParts=Tn.prototype.Kj,Tn.prototype.removeParts=Tn.prototype.Is,Tn.prototype.remove=Tn.prototype.remove,Tn.prototype.add=Tn.prototype.add,Tn.prototype.clearDelayedGeometries=Tn.prototype.bx,Tn.prototype.setProperties=Tn.prototype.nm,Tn.prototype.attach=Tn.prototype.Du,Tn.prototype.set=Tn.prototype.set,Tn.prototype.resetInputOptions=Tn.prototype.Sx,Tn.prototype.setInputOption=Tn.prototype.sA,Tn.prototype.getInputOption=Tn.prototype.Ql,Tn.prototype.resetRenderingHints=Tn.prototype.Tx,Tn.prototype.setRenderingHint=Tn.prototype.Xx,Tn.prototype.getRenderingHint=Tn.prototype.Gf,Tn.prototype.maybeUpdate=Tn.prototype.bd,Tn.prototype.requestUpdate=Tn.prototype.$b,Tn.prototype.delayInitialization=Tn.prototype.Xy,Tn.prototype.isUpdateRequested=Tn.prototype.Pz,Tn.prototype.invalidateDocumentBounds=Tn.prototype.Ya,Tn.prototype.findObjectsNear=Tn.prototype.og,Tn.prototype.findPartsNear=Tn.prototype.mz,Tn.prototype.findObjectsIn=Tn.prototype.Cf,Tn.prototype.findPartsIn=Tn.prototype.ux,Tn.prototype.findObjectsAt=Tn.prototype.ji,Tn.prototype.findPartsAt=Tn.prototype.lz,Tn.prototype.findObjectAt=Tn.prototype.ic,Tn.prototype.findPartAt=Tn.prototype.Ol,Tn.prototype.focusObject=Tn.prototype.zz,Tn.prototype.alignDocument=Tn.prototype.Jy,Tn.prototype.zoomToRect=Tn.prototype.BA,Tn.prototype.zoomToFit=Tn.prototype.zoomToFit,Tn.prototype.diagramScroll=Tn.prototype.kx,Tn.prototype.focus=Tn.prototype.focus;var Uf=new yn,cm=null,da=mn.document!==void 0,Ph=null,Zd="",Zs=new pn(Tn,"None",0),iu=new pn(Tn,"Uniform",1),Kd=new pn(Tn,"UniformToFill",2),$h=new pn(Tn,"CycleAll",10),Kp=new pn(Tn,"CycleNotDirected",11),Yp=new pn(Tn,"CycleNotDirectedFast",12),Xp=new pn(Tn,"CycleNotUndirected",13),Qp=new pn(Tn,"CycleDestinationTree",14),Jp=new pn(Tn,"CycleSourceTree",15),vd=new pn(Tn,"DocumentScroll",1),ef=new pn(Tn,"InfiniteScroll",2),yd=new pn(Tn,"TreeParentCollapsed",21),Da=new pn(Tn,"AllParentsCollapsed",22),Hf=new pn(Tn,"AnyParentsCollapsed",23),qp=new Wn,Ah="2.3.10",Nh="image",tf=null,dm=!1;function _s(){if(da){var a=mn.document.createElement("canvas"),y=a.getContext("2d"),E=ji("7ca11abfd022028846");y[E]=ji("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Hn.Dx+"4ae6247590da4bb21c324ba3a84e385776",mr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Qt.za],x=1;5>x;x++)y[ji("7ca11abfd7330390")](ji(b[x-1]),10,15*x);for(y[E]=ji("39f046ebb36e4b"),E=1;5>E;E++)y[ji("7ca11abfd7330390")](ji(b[E-1]),10,15*E);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(mr.prototype.Cd=mr.prototype.Eu),tf=a}}Tn.className="Diagram",Tn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=mn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Tn?y.H:null},Tn.inherit=function(a,y){function E(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);E.prototype=y.prototype,a.prototype=new E,a.prototype.constructor=a},Tn.useDOM=function(a){da=a?mn.document!==void 0:!1},Tn.isUsingDOM=function(){return da},Tn.None=Zs,Tn.Uniform=iu,Tn.UniformToFill=Kd,Tn.CycleAll=$h,Tn.CycleNotDirected=Kp,Tn.CycleNotDirectedFast=Yp,Tn.CycleNotUndirected=Xp,Tn.CycleDestinationTree=Qp,Tn.CycleSourceTree=Jp,Tn.DocumentScroll=vd,Tn.InfiniteScroll=ef,Tn.TreeParentCollapsed=yd,Tn.AllParentsCollapsed=Da,Tn.AnyParentsCollapsed=Hf;function hm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function kh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var E=mn[ji("76a715b2f73f148a")][ji("72ba13b5")]||"";if(a.Rc=!0,da){var b=Tn[ji("76a115b6ed251eaf4692")];if(b)for(var x=qp.iterator;x.next()&&(b=x.value,b=ji(b).split(ji("39e9")),!(6>b.length));){var z=ji(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ne=ji(Hn[ji("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var re=mn[ji("74a900bae4370f8b51")][ji("6fbb13a1c2311e8a57")].toLowerCase();if(ne=re[ji("73a612b6fb191d")](ji("3aad1ab6e022098b4dc4")),z=ji(b[2]),-1<ne&&(re=re[ji("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ne),!a.Rc))break;for(ne=E[ji("76ad18b4f73e")],re=E[ji("73a612b6fb191d")](ji("35e7"))+2;re<ne;re++)y+=E[re];if(ne=y[ji("73a612b6fb191d")](z),0>ne&&z!==ji("7da71ca0ad381e90")&&(ne=y[ji("73a612b6fb191d")](ji("76a715b2ef3e149757"))),0>ne&&(ne=y[ji("73a612b6fb191d")](ji("76a715b2ef3e149757"))),0>ne&&(ne=y[ji("73a612b6fb191d")](ji("2bfa41fdb3784bca12"))),0>ne&&(ne=E[ji("73a612b6fb191d")](ji("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[ji("73a612b6fb191d")](ji("35"))||y[ji("73a612b6fb191d")](ji("35"))===-1),!a.Rc||E[ji("73a612b6fb191d")](ji("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<E[ji("73a612b6fb191d")](z)),!a.Rc)||(ne=mn[ji("76a715b2f73f148a")][ji("69ad17a1e03e")],re=ne[ji("73a612b6fb191d")](ji("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ne[ji("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ne=mn.document.createElement("div");for(var se=b[0].replace(/[A-Za-z]/g,"");4>se.length;)se+="9";if(re=se,se=se.substr(se.length-4),b="",b+=["gsh","gsf"][parseInt(se.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(se.substr(0,1),10)%4],ne[ji("79a417a0f0181a8946")]=b,mn.document[ji("78a712aa")]){mn.document[ji("78a712aa")][ji("7bb806b6ed32388c4a875b")](ne),se=mn.getComputedStyle(ne).getPropertyValue(ji("78a704b7e62456904c9b12701b6532a8"));var de=mn.getComputedStyle(ne).getPropertyValue(ji("75b817b0ea2202"));if(mn.document[ji("78a712aa")][ji("68ad1bbcf533388c4a875b")](ne),se){if(ne=mn[ji("77a902b0eb1b1e804a8a")],de==="0."+parseInt(re,10)%100||se.indexOf(parseInt(z[1]+z[2],16))!==-1&&se.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(ji("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){ne=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var pe in ne)if(b===ne[pe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(pe=E[ji("76ad18b4f73e")],x=E[ji("73a612b6fb191d")](ji("35e7"))+2;x<pe;x++)y+=E[x];E=y[ji("73a612b6fb191d")](ji("7da71ca0ad381e90")),a.Rc=!(0<=E&&E<y[ji("73a612b6fb191d")](ji("35")))}}}return 0<a.Rc&&a!==a.wy}hm.className="DiagramHelper";function qc(a){this.j=a===void 0?new rt:a,this.o=new rt}_n.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,E){this.node=a,this.info=y,this.Su=E}ie.className="DraggingNodeInfoPair";function le(){this.reset()}le.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new en(NaN,NaN).freeze(),this.gridSnapCellSpot=Kr,this.gridSnapOrigin=new rt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},le.className="DraggingOptions";function ye(a,y){if(typeof a=="string"||mn.Element&&a instanceof Element)var E=Tn.call(this,a)||this;else E=Tn.call(this)||this,y=a;return ve(E),y&&E.nm(y),E}dn(ye,Tn);function ve(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=uo,a.layout=new ys}ye.prototype.reset=function(){Tn.prototype.reset.call(this),ve(this)},ye.className="Palette";function xe(a,y){if(typeof a=="string"||mn.Element&&a instanceof Element)var E=Tn.call(this,a)||this;else E=Tn.call(this)||this,y=a;var b=E;E.animationManager.isEnabled=!1,E.vb=!0,E.V=null,E.mn=!1,E.nn=!1,E.F=!0,E.u=!0,E.ia=0,E.o=!1,E.ql=null,E.Xx("drawShadows",!1),a=new cr;var x=new Hr;return x.stroke="magenta",x.strokeWidth=2,x.fill="transparent",x.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(x),E.j=a,E.allowCopy=!1,E.allowDelete=!1,E.allowSelect=!0,E.autoScrollRegion=new Fr(0,0,0,0),E.pa.h(0,0),E.toolManager.gb("Dragging",new xt,E.toolManager.mouseMoveTools),E.click=function(){var z=b.observed;if(z!==null){var ne=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new rt(re.x-ne.width/2,re.y-ne.height/2)}},E.Pf=function(){b.Ya(),st(b)},E.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},E.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},E.Of=function(){b.observed!==null&&st(b)},E.autoScale=iu,E.vb=!1,y&&Object.assign(E,y),E}dn(xe,Tn),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 E=new Mu(null);E.width=a.width,E.height=a.height,this.ql=E}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),Ve(this)}finally{this.ta=a,this.ib=y}}}Tn.prototype.redraw.call(this)},xe.prototype.gc=function(){if(this.Ka===null&&Ct("No div specified"),this.ta===null&&Ct("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?Ve(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 E=y.length,b=0;b<E;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Ve(a){var y=a.observed;if(y!==null){var E=a.drawsTemporaryLayers,b=a.drawsGrid&&E,x=y.grid;b&&x!==null&&x.visible&&!isNaN(x.width)&&!isNaN(x.height)&&(x=xn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),bc(y,x),xn.free(x),Ns(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),x=a.ib,x.scale(a.Mb,a.Mb),x.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),x.yc(),y=y.Wa.s,z=y.length;for(var ne=0;ne<z;ne++){var re=y[ne],se=a;if(re.visible&&re.opacity!==0){var de=re.diagram.grid.part;if(!E&&re.isTemporary)b&&de.layer===re&&(re=Jc(re,x),de.gc(x,se),x.globalAlpha=re);else{for(var pe=Jc(re,x),Se=se.scale,Ae=xn.alloc(),Re=re.Pa.s,Ue=Re.length,Xe=0;Xe<Ue;Xe++){var bt=Re[Xe];(b||bt!==de)&&re.Oj(x,bt,se,null,Se,Ae,!1)}xn.free(Ae),x.globalAlpha=pe}}}}}function st(a){var y=a.box;if(y!==null){var E=a.observed;if(E!==null){a.Fc=!0,E=E.viewportBounds;var b=y.selectionObject,x=en.alloc();x.h(E.width,E.height),b.desiredSize=x,en.free(x),a=2/a.scale,b instanceof Hr&&(b.strokeWidth=a),y.location=new rt(E.x-a/2,E.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Ga;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,E,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),st(this),this.fc.scale=E,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},_n.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&Ct("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 E=this.ta,b=this.ib;E&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,E.width,E.height))}else this.Ha(null),st(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),st(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 xt(){_o.call(this),this.j=null}dn(xt,_o),xt.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 E=a.lastInput;return!E.left||a.currentTool!==this&&(!this.isBeyondDragSize()||E.isTouchEvent&&E.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(E=y.viewportBounds,this.j=new rt(E.width/2,E.height/2),a=a.firstInput.documentPoint,y.position=new rt(a.x-this.j.x,a.y-this.j.y)),!0)},xt.prototype.doActivate=function(){this.j=null,_o.prototype.doActivate.call(this)},xt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},xt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var E=a.box;if(E!==null){if(this.j===null){var b=a.firstInput.documentPoint;E=E.location,this.j=new rt(b.x-E.x,b.y-E.y)}a=a.lastInput.documentPoint,y.position=new rt(a.x-this.j.x,a.y-this.j.y)}}},xt.className="OverviewDraggingTool";function Et(){ar(this),this.H=Oc,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=Ga,this.hb=!0,this.cg=null,this.ob=200}Et.prototype.toString=function(){return"CommandHandler"},Et.prototype.Xe=function(a){this.H=a},Et.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,E=vr?y.meta:y.control,b=y.shift,x=y.alt,z=y.key;!E||z!=="C"&&z!=="Insert"?E&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():E&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():E&&z==="Y"||x&&b&&z==="Backspace"?this.canRedo()&&this.redo():E&&z==="Z"||x&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():E&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(E?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(E?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(E?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(E?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?E&&a.allowVerticalScroll?a.scroll("document","up"):!E&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?E&&a.allowVerticalScroll?a.scroll("document","down"):!E&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():E&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():E&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():E&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Et.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Et.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Fo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Et.prototype.canStopCommand=function(){return!0},Et.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 E=a.nodes;E.next();)E.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Et.prototype.canSelectAll=function(){return this.diagram.allowSelect},Et.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 $n,E=a.selection.iterator;E.next();)Jd(y,E.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Et.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Et.prototype.copySelection=function(){var a=this.diagram,y=new $n;for(a=a.selection.iterator;a.next();)Jd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(E){return E.canCopy()});this.copyToClipboard(y)},Et.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Et.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Et.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Et.prototype.copyToClipboard=function(a){var y=this.diagram,E=null;if(a===null)Ph=null,Zd="";else{E=y.model;var b=!1,x=!1,z=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(x=E.Ij,E.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=x),E=new Wn,E.addAll(z),Ph=E,Zd=y.model.dataFormat}}y.R("ClipboardChanged",E)},Et.prototype.pasteFromClipboard=function(){var a=new $n,y=Ph;if(y===null)return a;var E=this.diagram;if(Zd!==E.model.dataFormat)return a;var b=E.model,x=!1,z=!1,ne=null;try{b.Tl()&&(x=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),ne=E.Kj(y,E,!1)}finally{for(b.Tl()&&(b.Jj=x),b.Wj()&&(b.Ij=z),y=ne.iterator;y.next();)E=y.value,b=y.key,E.location.w()||(b.location.w()?E.location=b.location:!E.position.w()&&b.position.w()&&(E.position=b.position)),a.add(E)}return a},Et.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 E=this.pasteFromClipboard();0<E.count&&y.clearSelection(!0);for(var b=E.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var x=y.computePartsBounds(y.selection);if(x.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Gd(y,z,new rt(a.x-x.centerX,a.y-x.centerY),y.Wm,!1)}}y.R("ClipboardPasted",E)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Et.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Ph===null||Ph.count===0||Zd!==a.model.dataFormat)},Et.prototype.undo=function(){this.diagram.undoManager.undo()},Et.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Et.prototype.redo=function(){this.diagram.undoManager.redo()},Et.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Et.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Zs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Et.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Zs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Et.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Zs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Et.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Zs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Et.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Et.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Et.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var E=a.position,b=a.scale;Ka(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Ga):(this.Jt=b,this.sw=E.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),zl(y)},Et.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Et.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(se){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 E=y.animationManager;Ka(E,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var x=_t(this,a,[a]);if(x.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var se=x.pop();0<x.length&&se instanceof Gi&&se.isTreeExpanded&&(!(se instanceof Ir)||se.isSubGraphExpanded);)se=x.pop();0<x.length?(se instanceof cr&&y.tv(se.actualBounds),se instanceof Gi&&!se.isTreeExpanded&&(se.isTreeExpanded=!0),se instanceof Ir&&!se.isSubGraphExpanded&&(se.isSubGraphExpanded=!0)):(se instanceof cr&&y.es(se.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){Yi(z,(E.isEnabled?E.duration:0)+b)};y.Bj("LayoutCompleted",ne),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&E.Cc()}}};function _t(a,y,E){if(y.isVisible())return E;if(y instanceof co)_t(a,y.adornedPart,E);else if(y instanceof Li){var b=y.fromNode;b!==null&&_t(a,b,E),y=y.toNode,y!==null&&_t(a,y,E)}else y instanceof Gi&&(b=y.labeledLink,b!==null&&_t(a,b,E),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||E.push(b),_t(a,b,E))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||E.push(y),_t(a,y,E));return E}Et.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof cr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Et.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ka(y.animationManager,"Collapse Tree");var E=new Wn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof Gi&&x.isTreeExpanded&&(x.collapseTree(),E.add(x))}y.R("TreeCollapsed",E)}finally{y.eb("Collapse Tree")}},Et.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Gi&&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 Gi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Et.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ka(y.animationManager,"Expand Tree");var E=new Wn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof Gi&&!x.isTreeExpanded&&(x.expandTree(),E.add(x))}y.R("TreeExpanded",E)}finally{y.eb("Expand Tree")}},Et.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Gi)||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 Gi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Et.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var E=this.archetypeGroupData;if(E!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var x=new Wn,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&x.add(ne)}for(var re=new Wn,se=x.iterator;se.next();){var de=se.value;z=!1;for(var pe=x.iterator;pe.next();)if(de.Td(pe.value)){z=!0;break}z||re.add(de)}if(0<re.count){var Se=re.first().containingGroup;if(Se!==null)for(;Se!==null;){x=!1;for(var Ae=re.iterator;Ae.next();)if(!Ae.value.Td(Se)){x=!0;break}if(x)Se=Se.containingGroup;else break}if(E instanceof Ir)Ou(E),b=E.copy(),b!==null&&a.add(b);else if(y.Yu(E)){var Re=y.copyNodeData(E);zt(Re)&&(y.xf(Re),b=a.ii(Re))}if(b!==null){Se!==null&&this.isValidMember(Se,b)&&(b.containingGroup=Se);for(var Ue=re.iterator;Ue.next();){var Xe=Ue.value;this.isValidMember(b,Xe)&&(Xe.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Et.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 zn(a){var y=Pi();for(a=a.iterator;a.next();){var E=a.value;E instanceof Li||y.push(E)}a=new $n,E=y.length;for(var b=0;b<E;b++){for(var x=y[b],z=!0,ne=0;ne<E;ne++)if(x.Td(y[ne])){z=!1;break}z&&a.add(x)}return Ai(y),a}Et.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Li)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var E=a.memberValidation;if(E!==null&&!E(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return E=this.memberValidation,E!==null?E(a,y):!0},Et.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.model;if(E.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Wn;if(a!==null)b.add(a);else for(var x=y.selection.iterator;x.next();){var z=x.value;z instanceof Ir&&z.canUngroup()&&b.add(z)}var ne=new Wn;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var se=re.value;se.expandSubGraph();var de=se.containingGroup,pe=de!==null&&de.data!==null?E.wa(de.data):void 0;ne.addAll(se.memberParts);for(var Se=ne.iterator;Se.next();){var Ae=Se.value;if(Ae.isSelected=!0,!(Ae instanceof Li)){var Re=Ae.data;Re!==null?E.mp(Re,pe):Ae.containingGroup=de}}y.remove(se)}}y.R("SelectionUngrouped",b,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Et.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 Ir))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ir&&y.canUngroup())return!0;return!1},Et.prototype.addTopLevelParts=function(a,y){var E=!0;for(a=zn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:E=!1)}return E},Et.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ka(y.animationManager,"Collapse SubGraph");var E=new Wn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof Ir&&x.isSubGraphExpanded&&(x.collapseSubGraph(),E.add(x))}y.R("SubGraphCollapsed",E)}finally{y.eb("Collapse SubGraph")}},Et.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ir&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ir&&y.isSubGraphExpanded)return!0;return!1},Et.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ka(y.animationManager,"Expand SubGraph");var E=new Wn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),E.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var x=b.value;x instanceof Ir&&!x.isSubGraphExpanded&&(x.expandSubGraph(),E.add(x))}y.R("SubGraphExpanded",E)}finally{y.eb("Expand SubGraph")}},Et.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ir&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ir&&!y.isSubGraphExpanded)return!0;return!1},Et.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,E=y.toolManager.findTool("TextEditing");if(E!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var x=b.value;if(x.canEdit()){a=x;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Ho&&z.editable})}a!==null&&(y.currentTool=null,E.textBlock=a,y.currentTool=E)}},Et.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 Ho))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(E){return E instanceof Ho&&E.editable}),a!==null))return!0;return!1},Et.prototype.showContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");if(E!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=E.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,x=null;a instanceof qt?x=a.ga(Dr):y.viewportBounds.ca(b.documentPoint)||(x=y.viewportBounds,x=new rt(x.x+x.width/2,x.y+x.height/2)),x!==null&&(b.viewPoint=y.op(x),b.documentPoint=x,b.left=!1,b.right=!0,b.up=!0),y.currentTool=E,wa(E,!1,a)}},Et.prototype.canShowContextMenu=function(a){var y=this.diagram,E=y.toolManager.findTool("ContextMenu");return E===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),E.findObjectWithContextMenu(a)!==null)},Et.prototype.computeEffectiveCollection=function(a,y){var E=this.diagram,b=E.toolManager.findTool("Dragging"),x=E.currentTool===b;if(y===void 0&&(y=x?b.dragOptions:E.Wm),b=new yn,a===null)return b;for(var z=a.iterator;z.next();)Dc(E,b,z.value,x,y);if(E.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Li&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},_n.Object.defineProperties(Et.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||Ct("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}}}),Et.className="CommandHandler",$g=function(){return new Et};function qt(){ar(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new rt(NaN,NaN).freeze(),this.jd=wr,this.Ab=new mr,this.wh=new mr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ua,this.uc=new xn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new xn(NaN,NaN,NaN,NaN).freeze(),this.dc=new xn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Ia,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 xi,hi,rr,lr,fr,Or,$r,Vr,oo,No;qt.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=Fi(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},qt.prototype.Vw=function(a){var y=this.Dh;if(pi(y)){for(var E=0;E<y.length;E++)if(y[E]===a)return}else this.Dh=y=[];y.push(a)},qt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},qt.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 E=this.Dh[y];a[E]=this[E]}return a},qt.prototype.copy=function(){return this.clone()},Me=qt.prototype,Me.qb=function(a){a.classType===Li?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ct("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===qt&&(this.stretch=a)},Me.toString=function(){return Rn(this.constructor)+"#"+Sr(this)},Me.th=function(){this.A!==null&&(this.A.nc=!0)};function Gr(a){a.A===null?a.A=new of:a.A.nc&&(a.A=a.A.copy())}Me.Xc=function(){if(this.ba===null){var a=new $p;a.Xi=Mr,a.yj=Mr,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Me.cb=function(a,y,E,b,x,z,ne){var re=this.part;if(re!==null&&(re.gk(a,y,E,b,x,z,ne),E===this&&a===Bo&&xs(this)&&Xo(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 yn),ne=z.undoManager.transactionLevel===0,a.startCondition===jl?ne=!0:a.startCondition===Sh&&(ne=!1),ne?(z=new Wi,nu(a,z),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,x),z.start()):(Ka(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,x)))),this instanceof wi&&E===re&&(re.l&16777216)!==0&&re.data!==null))for(E=this.O.s,b=E.length,x=0;x<b;x++)re=E[x],re instanceof wi&&Oh(re,function(se){se.data!==null&&se.l&16777216&&se.La(y)})};function Xo(a,y,E){var b=a.ih();if(b!==null)for(var x=a.localBindings.iterator;x.next();){var z=x.value,ne=null;if(z.sourceName!==null){if(ne=M1(z,b,a),ne===null)continue;z.sp(a,ne,E,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,E,b)}else{if(re=b.data,re===null)continue;var se=y.diagram;se===null||se.skipsModelSourceBindings||z.sp(a,re,E,b)}ne===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,ne,E))}}Me.ks=function(a){return this.bindingId===a?this:null},Me.g=function(a,y,E){this.cb(Bo,a,this,y,E)},Me.Ge=function(a,y,E,b){var x=this.uc;if(x.h(a,y,E,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new mr);var z=this.Lb;z.reset(),this.no(z,a,y,E,b),z.pp(x)}};function es(a,y,E,b){return a.pickable===!1?!1:(b.multiply(a.transform),E?a.Yc(y,b):a.fh(y,b))}Me.tx=function(a,y,E){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),E?Bn(a.x,a.y,0,0,0,b.height)<=y||Bn(a.x,a.y,0,b.height,b.width,b.height)<=y||Bn(a.x,a.y,b.width,b.height,b.width,0)<=y||Bn(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Me.se=function(){return!0},Me.ca=function(a){var y=rt.alloc();y.assign(a),this.transform.Ga(y);var E=this.actualBounds;if(!E.w())return rt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var x=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ne=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var se=1/b;if(re.width*b<x&&re.height*b<x)return a=Do(E.x-ne*se,E.y-ne*se,E.width+z*se,E.height+z*se,y.x,y.y),rt.free(y),a}return x=!1,(this instanceof co||this instanceof Hr?Do(E.x-5,E.y-5,E.width+10,E.height+10,y.x,y.y):E.ca(y))&&(this.tb&&!this.tb.ca(y)?x=!1:this.areaBackground!==null&&E.ca(y)||this.Ma!==null&&this.dc.ca(a)?x=!0:x=this.gh(a)),rt.free(y),x},Me.gh=function(a){var y=this.naturalBounds;return Do(0,0,y.width,y.height,a.x,a.y)},Me.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=xn.allocAt(0,0,y.width,y.height);var E=this.transform,b=!1,x=rt.allocAt(a.x,a.y);return y.ca(E.Cd(x))&&(x.h(a.x,a.bottom),y.ca(E.Cd(x))&&(x.h(a.right,a.bottom),y.ca(E.Cd(x))&&(x.h(a.right,a.y),y.ca(E.Cd(x))&&(b=!0)))),rt.free(x),xn.free(y),b},Me.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.naturalBounds,b=!1,x=rt.allocAt(0,0);return a.ca(y.Ga(x))&&(x.h(0,E.height),a.ca(y.Ga(x))&&(x.h(E.width,E.height),a.ca(y.Ga(x))&&(x.h(E.width,0),a.ca(y.Ga(x))&&(b=!0)))),rt.free(x),b},Me.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var E=this.naturalBounds,b=rt.allocAt(0,0),x=rt.allocAt(0,E.height),z=rt.allocAt(E.width,E.height),ne=rt.allocAt(E.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(x))||a.ca(y.Ga(z))||a.ca(y.Ga(ne)))re=!0;else{E=xn.allocAt(0,0,E.width,E.height);var se=rt.allocAt(a.x,a.y);E.ca(y.Cd(se))?re=!0:(se.h(a.x,a.bottom),E.ca(y.Cd(se))?re=!0:(se.h(a.right,a.bottom),E.ca(y.Cd(se))?re=!0:(se.h(a.right,a.y),E.ca(y.Cd(se))&&(re=!0)))),rt.free(se),xn.free(E),!re&&(Qt.us(a,b,x)||Qt.us(a,x,z)||Qt.us(a,z,ne)||Qt.us(a,ne,b))&&(re=!0)}return rt.free(b),rt.free(x),rt.free(z),rt.free(ne),re},Me.ga=function(a,y){if(y===void 0&&(y=new rt),a instanceof $i){var E=this.naturalBounds;y.h(a.x*E.width+a.offsetX,a.y*E.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Me.mi=function(a){a===void 0&&(a=new xn);var y=this.naturalBounds,E=this.oe,b=rt.allocAt(0,0).transform(E);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(E),Jr(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(E),Jr(a,b.x,b.y,0,0),b.h(0,y.height).transform(E),Jr(a,b.x,b.y,0,0),rt.free(b),a},Me.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},Me.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Me.qs=function(a,y){return y===void 0&&(y=new rt),y.assign(a),this.oe.Cd(y),y},Me.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},Me.Sj=function(a,y,E,b,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ne,se=-z.m12*ne,de=-z.m21*ne,pe=z.m11*ne,Se=ne*(z.m21*z.dy-z.m22*z.dx),Ae=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Qt.Ff(z.left,z.top,z.right,z.bottom,a,y,E,b,x)):(ne=a*re+y*de+Se,a=a*se+y*pe+Ae,y=E*re+b*de+Se,E=E*se+b*pe+Ae,x.h(0,0),b=this.naturalBounds,E=Qt.Ff(0,0,b.width,b.height,ne,a,y,E,x),x.transform(z),E)},qt.prototype.measure=function(a,y,E,b){if(ou(this)!==!1){var x=this.Kg,z=x.right+x.left;x=x.top+x.bottom,a=Math.max(a-z,0),y=Math.max(y-x,0),E=Math.max((E||0)-z,0),b=Math.max((b||0)-x,0),z=this.angle,x=this.desiredSize;var ne=this.kq();z===90||z===270?(a=isFinite(x.height)?x.height+ne:a,y=isFinite(x.width)?x.width+ne:y):(a=isFinite(x.width)?x.width+ne:a,y=isFinite(x.height)?x.height+ne:y),x=E||0,ne=b||0;var re=this instanceof wi;switch(xl(this,!0)){case hi:ne=x=0,re&&(y=a=1/0);break;case xi:isFinite(a)&&a>E&&(x=a),isFinite(y)&&y>b&&(ne=y);break;case lr:isFinite(a)&&a>E&&(x=a),ne=0,re&&(y=1/0);break;case fr:isFinite(y)&&y>b&&(ne=y),x=0,re&&(a=1/0)}re=this.maxSize;var se=this.minSize;x>re.width&&se.width<re.width&&(x=re.width),ne>re.height&&se.height<re.height&&(ne=re.height),E=Math.max(x,se.width),b=Math.max(ne,se.height),re.width<E&&(E=Math.min(se.width,E)),re.height<b&&(b=Math.min(se.height,b)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(E,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=E,E=b,b=z),this.uc.ka(),this.Wl(a,y,E,b),this.uc.freeze(),this.uc.w()||Ct("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Fa(this,!1)}},qt.prototype.Wl=function(){},qt.prototype.Dd=function(){return!1},qt.prototype.arrange=function(a,y,E,b,x){this.Uk();var z=xn.alloc();z.assign(this.Ib),this.Ib.ka(),rl(this)===!1?this.Ib.h(a,y,E,b):this.eh(a,y,E,b),this.Ib.freeze(),x===void 0?this.tb=null:this.tb=x,E=!1,x!==void 0?E=!0:(x=this.panel,x!==null&&bd(x)&&(x=x.panel),x!==null&&(x=x.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),E=y+b.height,b=a+b.width,E=!(0<=a+.05&&b<=x.width+.05&&0<=y+.05&&E<=x.height+.05),this instanceof Ho&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(E=!0)),this.l=E?this.l|256:this.l&-257,this.Ib.w()||Ct("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Fc(this,!1),xn.free(z)},Me=qt.prototype,Me.eh=function(){};function Ks(a,y,E,b,x){if(a.Ib.h(y,E,b,x),!a.desiredSize.w()){var z=a.uc;E=a.Kg,y=E.right+E.left;var ne=E.top+E.bottom;switch(E=z.width+y,z=z.height+ne,b+=y,x+=ne,y=xl(a,!0),E===b&&z===x&&(y=hi),y){case hi:(E>b||z>x)&&(Fa(a,!0),a.measure(E>b?b:E,z>x?x:z,0,0));break;case xi:Fa(a,!0),a.measure(b,x,0,0);break;case lr:Fa(a,!0),a.measure(b,z,0,0);break;case fr:Fa(a,!0),a.measure(E,x,0,0)}}}Me.Xl=function(a,y){var E=this.part;E!==null&&E.diagram!==null&&(E.selectionObject!==this&&E.resizeObject!==this&&E.rotateObject!==this||zv(E,!0),this.N(),Cr(a,y)||(E.oh(),this.Pn(E)))},Me.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Gi&&XS(a,this))},Me.gc=function(a,y){if(!vu(this,a,y)&&this.visible){var E=this.opacity;if(E!==0){var b=1;E!==1&&(b=a.globalAlpha,a.globalAlpha=b*E);var x="";this.filter!==""&&(x=a.filter,a.filter=this.filter);var z=this instanceof wi&&bd(this),ne=this.Ib;if(z){var re=this.Ib,se=this.dc,de=this.areaBackground,pe=this.Ma;de===null&&pe===null||a.yc(),de!==null&&(ha(this,a,de,!0,!0,se,re),de instanceof bo&&de.type===Eu?(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)),pe!==null&&(ha(this,a,pe,!0,!1,se,re),pe instanceof bo&&pe.type===Eu?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(pe)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,re=this.panel,this.l&4096&&vs(this),de=this.part,se=!1;var Se=0;de&&y.Gf("drawShadows")&&(se=de.isShadowed)&&(pe=de.shadowOffset,Se=Math.max(pe.y,pe.x)*y.scale*y.Mb),pe=this.Dd();var Ae;if(!(Ae=y.$i||!pe)){var Re=this.naturalBounds;Ae=this.wh;var Ue=Ae.m11,Xe=Ae.m21,bt=Ae.dx,ft=Ae.m12,Pt=Ae.m22,Nt=Ae.dy,Dt,Yt=Dt=0;Ae=Dt*Ue+Yt*Xe+bt;var wn=Dt*ft+Yt*Pt+Nt;Dt=Re.width+Se,Yt=0;var zi=Dt*Ue+Yt*Xe+bt;Dt=Dt*ft+Yt*Pt+Nt,Yt=Math.min(Ae,zi);var er=Math.min(wn,Dt),Xi=Math.max(Ae+0,zi)-Yt,ki=Math.max(wn+0,Dt)-er;Ae=Yt,wn=er,Dt=Re.width+Se,Yt=Re.height+Se,zi=Dt*Ue+Yt*Xe+bt,Dt=Dt*ft+Yt*Pt+Nt,Yt=Math.min(Ae,zi),er=Math.min(wn,Dt),Xi=Math.max(Ae+Xi,zi)-Yt,ki=Math.max(wn+ki,Dt)-er,Ae=Yt,wn=er,Dt=0,Yt=Re.height+Se,zi=Dt*Ue+Yt*Xe+bt,Dt=Dt*ft+Yt*Pt+Nt,Yt=Math.min(Ae,zi),er=Math.min(wn,Dt),Xi=Math.max(Ae+Xi,zi)-Yt,ki=Math.max(wn+ki,Dt)-er,Ae=Yt,wn=er,Se=y.viewportBounds,Re=Se.x,Ue=Se.y,Ae=!(Ae>Se.width+Re||Re>Xi+Ae||wn>Se.height+Ue||Ue>ki+wn)}if(Ae){if(Ae=(this.l&256)!==0,a.clipInsteadOfFill&&(Ae=!1),this instanceof Ho&&(a.font=this.font),Ae){if(wn=re.se()?re.naturalBounds:re.actualBounds,Xi=Math.max(ne.x,wn.x),ki=Math.max(ne.y,wn.y),Se=Math.min(ne.right,wn.right)-Xi,Re=Math.min(ne.bottom,wn.bottom)-ki,Ue=this.tb,Ue!==null&&(Xi=Ue.x,ki=Ue.y,Se=Ue.width,Re=Ue.height),Xi>ne.width+ne.x||ne.x>wn.width+wn.x){E!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=x);return}a.save(),a.beginPath(),a.rect(Xi,ki,Se,Re),a.clip()}if(pe){if(!de.isVisible()){E!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=x);return}se&&(wn=de.shadowOffset,a.Ev(wn.x*y.scale*this.scale*y.Mb,wn.y*y.scale*this.scale*y.Mb,de.shadowBlur),$c(a),a.shadowColor=de.shadowColor)}se&&this.shadowVisible===!0?$c(a):se&&this.shadowVisible===!1&&Bc(a),de=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ru(this,a,de,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),se&&fs(this,re)&&this.shadowVisible===null&&Bc(a),this.Ma!==null&&(a.yc(),Ml(this,a,de,ne)),se&&(this.Ma!==null||this.areaBackground!==null||fs(this,re))?(Xu(this,!0),this.shadowVisible===null&&Bc(a)):Xu(this,!1),this.hh(a,y),se&&this.l&512&&$c(a),pe&&se&&Bc(a),Ae&&(a.restore(),a.Vc(this instanceof wi)),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)))}}E!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=x)}}};function fs(a,y){return y===null?!1:(bd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===wi.Auto||y.type===wi.Spot)&&y.Pb()!==a)}Me.Dv=function(){};function ru(a,y,E,b){ha(a,y,a.areaBackground,!0,!0,E,b),a.areaBackground instanceof bo&&a.areaBackground.type===Eu?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Ml(a,y,E,b){var x=a.kq(),z=E.x,ne=E.y,re=E.width+x,se=E.height+x;ha(a,y,a.Ma,!0,!1,E,b),a.Ma instanceof bo&&a.Ma.type===Eu?(y.beginPath(),y.rect(z-x/2,ne-x/2,re,se),y.ng(a.Ma)):y.fillRect(z-x/2,ne-x/2,re,se)}function Us(a,y,E){for(var b=y.O.s,x=b.length,z=-1,ne=0;ne<x;ne++)if(b[ne]===a){z=ne;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(E):y.svg.Ma?y.svg.Ma.after(E):y.type===wi.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(E)):y.svg.prepend(E);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(E):(a=y.M(a-1).svg,a!==null?a.after(E):y.svg.appendChild(E))}}function vu(a,y,E){if(!(y instanceof Gl))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,x=a.nk(y);if(a.kk(y,E,x))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&Us(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*E.scale*a.scale*E.Mb,z.y*E.scale*a.scale*E.Mb,a.shadowBlur),$c(y),y.shadowColor=a.shadowColor}a instanceof Ho&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof wi;var re=a instanceof wi?bd(a):!1;a.l&4096&&vs(a);var se=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,x&&(y.o=!0,z&&re?(eg(y,1,0,0,1,0,0),a.svg=y.ad):z?(eg(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):eg(y,1,0,0,1,0,0)),x=a.naturalBounds,a.areaBackground!==null){var de=ne.copy().Vj();y.rb.ha=[de.m11,de.m12,de.m21,de.m22,de.dx,de.dy],ru(a,y,x,se),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),Ml(a,y,x,se),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Ml(a,y,x,se)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,x=a.part,re=!1,x&&E.Gf("drawShadows")&&(re=x.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&$c(y),re&&a.shadowVisible===!0?$c(y):re&&a.shadowVisible===!1&&Bc(y),x=a.panel,re&&fs(a,x)&&a.shadowVisible===null&&Bc(y),y.Il&&(de=E.computePixelRatio(),de="drop-shadow("+y.shadowOffsetX/de+"px "+y.shadowOffsetY/de+"px "+y.shadowBlur/de/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",de),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",de)),re&&(a.Ma!==null||a.areaBackground!==null||fs(a,x))?(Xu(a,!0),a.shadowVisible===null&&Bc(y)):Xu(a,!1),x=re,a.hh(y,E),z&&y.nh.pop(),y.o&&y.nh.pop(),ne=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,b,se,re),bl(y,de),!0):(a.svg=re,ne!==null&&re===null&&(pm(y),y.nh.pop()),re===null||(a.$o(y,b,se,re),y.Il&&(E=E.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/E+"px "+y.shadowOffsetY/E+"px "+y.shadowBlur/E/2+"px "+y.shadowColor+")")),x&&a.l&512&&$c(y),a.Dd()&&Bc(y),E=a.Dd()?a.opacity*y.globalAlpha:a.opacity,E!==1&&re.setAttributeNS(null,"opacity",E.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&Us(a,b,re),ne!==null&&ne(a,re)),!0)}Me.$o=function(a,y,E,b){var x=(this.l&256)!==0;if(a.clipInsteadOfFill&&(x=!1),x){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(E.x,z.x),x=Math.max(E.y,z.y);var ne=Math.min(E.right,z.right)-y;E=Math.min(E.bottom,z.bottom)-x,z=this.tb,z!==null&&(y=z.x,x=z.y,ne=z.width,E=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Xr++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:x,width:ne,height:E}),this instanceof wi&&(x=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",x.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",E.toString()))}else b.removeAttributeNS(null,"clip-path"),bl(a,b)};function bl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Hs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),E=a.svg.ownerDocument;if(y!==null){y=ti(y);for(var b=y.next();!b.done;b=y.next())b=E.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Me.hh=function(){},Me.lv=function(){this.Uc=!0},Me.kk=function(a,y,E){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"&&E||y.nodeName==="g"&&!E)return!1;var b=this.transform,x=this instanceof wi?bd(this):!1;if(!(this instanceof wi&&x))if(this instanceof Cl){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&eS(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),E?y.lastElementChild.setAttributeNS(null,"transform",tS(a)):y.setAttributeNS(null,"transform",tS(a))}else if(!E||this instanceof wi)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Hr){z=y.getElementsByTagName("path");for(var ne=0;ne<z.length;ne++)z[ne].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ne=b.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],ru(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&gm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((x||E&&!(this instanceof wi))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ml(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(a,y.Ma),E=y.Ma.getAttribute("filter"),E!==null&&a.ad.setAttribute("filter",E),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&gm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Me.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function ha(a,y,E,b,x,z,ne){if(E!==null){var re=1,se=1;if(typeof E=="string")b?y.fillStyle=E:y.strokeStyle=E;else if(E.type===Ed)b?y.fillStyle=E.color:y.strokeStyle=E.color;else{var de=a.kq();if(re=z.width,se=z.height,x?(re=ne.width,se=ne.height):b||(re+=de,se+=de),(z=y instanceof Mh)&&E.xe&&(E.type===Kf||E.yk===re&&E.ft===se))var pe=E.xe;else{var Se=0,Ae=0,Re=0,Ue=0,Xe=0,bt=0;if(bt=Xe=0,x?(Xe=ne.x,bt=ne.y):b||(Xe-=de/2,bt-=de/2),Se=E.start.x*re+E.start.offsetX,Ae=E.start.y*se+E.start.offsetY,Re=E.end.x*re+E.end.offsetX,Ue=E.end.y*se+E.end.offsetY,Se+=Xe,Re+=Xe,Ae+=bt,Ue+=bt,E.type===td)pe=y.createLinearGradient(Se,Ae,Re,Ue);else if(E.type===Eu)bt=isNaN(E.endRadius)?Math.max(re,se)/2:E.endRadius,isNaN(E.startRadius)?(Xe=0,bt=Math.max(re,se)/2):Xe=E.startRadius,pe=y.createRadialGradient(Se,Ae,Xe,Re,Ue,bt);else if(E.type===Kf)try{pe=y.createPattern(E.pattern,"repeat")}catch(Pt){pe=null}if(E.type!==Kf&&(x=E.colorStops,x!==null))for(x=x.iterator;x.next();)pe.addColorStop(x.key,x.value);if(z&&(E.xe=pe,pe!==null&&(E.yk=re,E.ft=se),pe===null&&E.type===Kf&&E.yk!==-1)){E.yk=-1;var ft=a.diagram;ft!==null&&E.yk===-1&&Yi(function(){ft.redraw()},600)}}b?y.fillStyle=pe:y.strokeStyle=pe}}}Me.rg=function(a){if(a instanceof wi)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},Me.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Me.If=function(){for(var a=this instanceof wi?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function vs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Iu(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 E=a.naturalBounds;a.no(y,E.x,E.y,E.width,E.height)}Iu(a,!1),yu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,yu(a,!1)):y.oe!==null&&(E=a.wh,E.reset(),y.se()?E.multiply(y.wh):y.panel!==null&&E.multiply(y.panel.wh),E.multiply(a.Ab),a.Kk=a.scale*y.Kk,yu(a,!1)))}Me.no=function(a,y,E,b,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=rt.alloc();z.yi(y,E,b,x,Dr),a.rotate(this.Kb,z.x,z.y),rt.free(z)}},Me.v=function(a){if(!ou(this)){a===void 0&&(a=!1),Fa(this,!0),Fc(this,!0);var y=this.panel;y===null||a||y.v()}},Me.Uj=function(){ou(this)||(Fa(this,!0),Fc(this,!0))};function il(a){if(!rl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Gi&&a.Bd(),y.$b())),Fc(a,!0)}}Me.Uk=function(){!(this.l&2048)&&(Iu(this,!0),yu(this,!0))},Me.Wu=function(){yu(this,!0)},Me.N=function(){var a=this.part;a!==null&&a.N()};function xl(a,y){var E=a.stretch,b=a.panel;return b!==null&&b.type===wi.Table?cc(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===wi.Auto&&b.Pb()===a?ps(a,xi,y):E===Or?b!==null?b.type===wi.Spot&&b.Pb()===a?ps(a,xi,y):(E=b.defaultStretch,E===Or?ps(a,hi,y):ps(a,E,y)):ps(a,hi,y):ps(a,E,y)}function cc(a,y,E,b){var x=a.stretch;if(x!==Or)return ps(a,x,b);var z=x=null;switch(y.stretch){case fr:z=!0;break;case xi:z=!0}switch(E.stretch){case lr:x=!0;break;case xi:x=!0}return y=a.panel.defaultStretch,x===null&&(x=y===lr||y===xi),z===null&&(z=y===fr||y===xi),x===!0&&z===!0?ps(a,xi,b):x===!0?ps(a,lr,b):z===!0?ps(a,fr,b):ps(a,hi,b)}function ps(a,y,E){if(E)return y;if(y===hi||(E=a.desiredSize,E.w()))return hi;if(a=a.angle,!isNaN(E.width))if(a!==90&&a!==270){if(y===lr)return hi;if(y===xi)return fr}else{if(y===fr)return hi;if(y===xi)return lr}if(!isNaN(E.height))if(a!==90&&a!==270){if(y===fr)return hi;if(y===xi)return lr}else{if(y===lr)return hi;if(y===xi)return fr}return y}function Xu(a,y){a.l=y?a.l|512:a.l&-513}function xs(a){return(a.l&1024)!==0}function rf(a,y){a.l=y?a.l|1024:a.l&-1025}function Iu(a,y){a.l=y?a.l|2048:a.l&-2049}function yu(a,y){a.l=y?a.l|4096:a.l&-4097}function ou(a){return(a.l&8192)!==0}function Fa(a,y){a.l=y?a.l|8192:a.l&-8193}function rl(a){return(a.l&16384)!==0}function Fc(a,y){a.l=y?a.l|16384:a.l&-16385}Me.Gj=function(){this.svg=null},Me.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Me.Av=function(){},Me.zv=function(a){return this.pa=a,il(this),!0},Me.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Me.kq=function(){return 0};function Lh(a){var y=a.part;if(y instanceof Gi&&(a.portId!==null||a===y.port)){var E=y.diagram;E===null||E.undoManager.isUndoingRedoing||XS(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof wi?a instanceof Gi?a.Bd():a.qm(a,function(E){Lh(E)}):Lh(a))}Me.bind=function(a,y,E,b){var x=null;return typeof a=="string"?x=new Na(a,y,E,b):x=a,x.xd=this,a=this.ih(),a!==null&&vS(a)&&Ct("Cannot add a Binding to a template that has already been copied: "+x),this.localBindings===null&&(this.localBindings=new Wn),this.localBindings.add(x),this},Me.set=function(a){return Object.assign(this,a),this},Me.Du=function(a){return ov(this,a),this},Me.apply=function(a){return a(this),this},Me.nm=function(a){return xh(this,a),this},Me.pz=function(){return this.ih()},Me.ih=function(){for(var a=this instanceof wi?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Me.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new yn),this.animationTriggers.add(a.propertyName,a),this};function Su(a,y){for(var E=1;E<arguments.length;++E);E=arguments;var b=null,x=null;if(typeof a=="function")x=a;else if(typeof a=="string"){var z=zf.I(a);typeof z=="function"?(E=Fi(arguments),b=z(E),zt(b)||Ct('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):x=mn.go[a]}if(b===null&&(x!=null&&x.constructor||Ct("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new x),x=1,b instanceof Tn&&1<E.length){z=b;var ne=E[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(Np(z,ne),x++)}for(;x<E.length;x++)z=E[x],z===void 0?Ct("Undefined value at argument "+x+" for object being constructed by GraphObject.make: "+b):ov(b,z);return b}function ov(a,y){if(typeof y=="string")if(a instanceof Ho)a.text=y;else if(a instanceof Hr)a.figure=y;else if(a instanceof Cl)a.source=y;else if(a instanceof wi)y=Qu.I(y),y!==null&&(a.type=y);else if(a instanceof bo){var E=ur(bo,y);E!==null?a.type=E:Ct("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Ti?(y=ur(Ti,y),y!==null&&(a.type=y)):a instanceof no&&(y=ur(no,y),y!==null&&(a.type=y));else if(y instanceof qt)a instanceof wi||Ct("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ba){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Ba?Im(b,y):Ct("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof pn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof za)a.type=y;else if(y instanceof Na)a instanceof qt||a instanceof Ba?a.bind(y):Ct("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Sl)a instanceof qt?a.Jv(y):Ct("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof ya)a instanceof Ti&&a.type===Ti.o?a.figures.add(y):Ct("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof no)a instanceof ya?a.segments.add(y):Ct("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ta)a instanceof Tn||a instanceof Ir?a.layout=y:Ct("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(E=0;E<y.length;E++)ov(a,y[E]);else if(typeof y=="object"&&y!==null)if(a instanceof bo){E=new ir;for(var x in y)b=parseFloat(x),isNaN(b)?E[x]=y[x]:a.addColorStop(b,y[x]);xh(a,E)}else if(a instanceof Ba){y.row!==void 0?(x=y.row,(x==null||x===1/0||isNaN(x)||0>x)&&Ct("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+x),a.isRow=!0,a.index=x):y.column!==void 0&&(x=y.column,(x==null||x===1/0||isNaN(x)||0>x)&&Ct("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+x),a.isRow=!1,a.index=x),x=new ir;for(E in y)E!=="row"&&E!=="column"&&(x[E]=y[E]);xh(a,x)}else xh(a,y);else Ct('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Sd(a,y){zf.add(a,y)}function fm(a,y,E){E===void 0&&(E=null);var b=a[1];if(typeof E=="function"?E(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof E=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}_n.Object.defineProperties(qt.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&&(Gr(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&&(Gr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:sl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Yd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===sl&&(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 Yd),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 Yd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Ii},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Yd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Or},set:function(a){var y=this.stretch;y!==a&&(Gr(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&&(Gr(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)&&fi(a,"0 <= value <= 1",qt,"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 bo&&a.freeze(),Gr(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 bo&&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 cr)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,E=a.y,b=this.pa,x=b.x;b=b.y,(x===y||isNaN(x)&&isNaN(y))&&(b===E||isNaN(b)&&isNaN(E))?this.Av():(a=a.copy(),this.zv(a,x,b)&&this.g("position",new rt(x,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Ct("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,E=a.height,b=this.jd,x=b.width,z=b.height;(x===y||isNaN(x)&&isNaN(y))&&(z===E||isNaN(z)&&isNaN(E))||(this.jd=a=a.J(),this.v(),this instanceof Hr&&this.qc(),this.g("desiredSize",b,a),xs(this)&&(a=this.part,a!==null&&(Xo(this,a,"width"),Xo(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 Hr&&this.qc(),this.g("desiredSize",y,a),xs(this)&&(a=this.part,a!==null&&Xo(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 Hr&&this.qc(),this.g("desiredSize",y,a),xs(this)&&(a=this.part,a!==null&&Xo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ri},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(),Gr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:gr},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(),Gr(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 Fr(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&&vs(this),this.Ab}},oe:{get:function(){return this.l&4096&&vs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Gr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:hi},set:function(a){this.reshapingBehavior!==a&&(Gr(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()&&Ct("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),il(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&&fi(a,">= 0",qt,"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&&fi(a,">= 1",qt,"columnSpan"),Gr(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&&fi(a,">= 0",qt,"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&&fi(a,">= 1",qt,"rowSpan"),Gr(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&&(Gr(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 E=this.part;E===null||E instanceof Gi||Ct("Cannot set portID on a Link: "+a),y!==null&&E!==null&&Wv(E,this),this.Yn=a,a!==null&&E!==null&&(E.Te=!0,qS(E,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Mr},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&&fi(a,">= 0",qt,"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&&fi(a,">= 0",qt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Mr},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&&fi(a,">= 0",qt,"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&&fi(a,">= 0",qt,"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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(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&&(Gr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),qt.prototype.trigger=qt.prototype.Jv,qt.prototype.findBindingPanel=qt.prototype.ih,qt.prototype.findTemplateBinder=qt.prototype.pz,qt.prototype.setProperties=qt.prototype.nm,qt.prototype.apply=qt.prototype.apply,qt.prototype.attach=qt.prototype.Du,qt.prototype.set=qt.prototype.set,qt.prototype.isEnabledObject=qt.prototype.If,qt.prototype.isVisibleObject=qt.prototype.Ed,qt.prototype.isContainedBy=qt.prototype.rg,qt.prototype.getNearestIntersectionPoint=qt.prototype.rs,qt.prototype.getLocalPoint=qt.prototype.qs,qt.prototype.getDocumentScale=qt.prototype.Df,qt.prototype.getDocumentAngle=qt.prototype.li,qt.prototype.getDocumentBounds=qt.prototype.mi,qt.prototype.getDocumentPoint=qt.prototype.ga,qt.prototype.intersectsRect=qt.prototype.Yc,qt.prototype.containedInRect=qt.prototype.fh,qt.prototype.containsRect=qt.prototype.Re,qt.prototype.containsPoint=qt.prototype.ca,qt.prototype.raiseChanged=qt.prototype.g,qt.prototype.raiseChangedEvent=qt.prototype.cb,qt.prototype.addCopyProperty=qt.prototype.Vw;var zf=null;qt.className="GraphObject",zf=new yn,Sd("Button",function(){function a(E,b){return E.diagram.ic(E.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x},function(x){return x===b})!==null}var y=Su(wi,wi.Auto,{isActionable:!0,enabledChanged:function(E,b){if(E instanceof wi){var x=E.fb("ButtonBorder");x!==null&&(x.fill=b?E._buttonFillNormal:E._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Su(Hr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new $i(0,0,2.76142374915397,2.761423749153969),spot2:new $i(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(E,b){if(b.If()&&b instanceof wi&&(E=b.fb("ButtonBorder"),E instanceof Hr)){var x=b._buttonFillOver;b._buttonFillNormal=E.fill,E.fill=x,x=b._buttonStrokeOver,b._buttonStrokeNormal=E.stroke,E.stroke=x}},y.mouseLeave=function(E,b){b.If()&&b instanceof wi&&(E=b.fb("ButtonBorder"),E instanceof Hr&&(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal))},y.actionDown=function(E,b){if(b.If()&&b instanceof wi&&b._buttonFillPressed!==null&&E.button===0){var x=b.fb("ButtonBorder");if(x instanceof Hr){E=E.diagram;var z=E.skipsUndoManager;E.skipsUndoManager=!0;var ne=b._buttonFillPressed;b._buttonFillOver=x.fill,x.fill=ne,ne=b._buttonStrokePressed,b._buttonStrokeOver=x.stroke,x.stroke=ne,E.skipsUndoManager=z}}},y.actionUp=function(E,b){if(b.If()&&b instanceof wi&&b._buttonFillPressed!==null&&E.button===0){var x=b.fb("ButtonBorder");if(x instanceof Hr){var z=E.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,b)?(x.fill=b._buttonFillOver,x.stroke=b._buttonStrokeOver):(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(E,b){if(b.If()&&b instanceof wi&&b._buttonFillPressed!==null){var x=b.fb("ButtonBorder");if(x instanceof Hr){var z=E.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(E,b)?(x.fill=b._buttonFillOver,x.stroke=b._buttonStrokeOver):(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(E,b){if(b.If()&&b instanceof wi&&b._buttonFillPressed!==null){var x=E.diagram;if(x.firstInput.button===0&&(x.currentTool.standardMouseOver(),a(E,b)&&(E=b.fb("ButtonBorder"),E instanceof Hr))){var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=b._buttonFillPressed;E.fill!==ne&&(E.fill=ne),ne=b._buttonStrokePressed,E.stroke!==ne&&(E.stroke=ne),x.skipsUndoManager=z}}},y}),Sd("TreeExpanderButton",function(){var a=Su("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Su(Hr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ki},new Na("figure","isTreeExpanded",function(y,E){return E=E.panel,y?E._treeExpandedFigure:E._treeCollapsedFigure}).cp()),{visible:!1},new Na("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,E){if(E=E.part,E instanceof co&&(E=E.adornedPart),E instanceof Gi){var b=E.diagram;if(b!==null){if(b=b.commandHandler,E.isTreeExpanded){if(!b.canCollapseTree(E))return}else if(!b.canExpandTree(E))return;y.handled=!0,E.isTreeExpanded?b.collapseTree(E):b.expandTree(E)}}},a}),Sd("SubGraphExpanderButton",function(){var a=Su("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Su(Hr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Ki},new Na("figure","isSubGraphExpanded",function(y,E){return E=E.panel,y?E._subGraphExpandedFigure:E._subGraphCollapsedFigure}).cp()));return a.click=function(y,E){if(E=E.part,E instanceof co&&(E=E.adornedPart),E instanceof Ir){var b=E.diagram;if(b!==null){if(b=b.commandHandler,E.isSubGraphExpanded){if(!b.canCollapseSubGraph(E))return}else if(!b.canExpandSubGraph(E))return;y.handled=!0,E.isSubGraphExpanded?b.collapseSubGraph(E):b.expandSubGraph(E)}}},a}),Sd("ToolTip",function(){return Su(co,wi.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new rt(0,3),shadowBlur:5},Su(Hr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new $i(0,0,4,6),spot2:new $i(1,1,-4,-4)}))}),Sd("ContextMenu",function(){return Su(co,wi.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new rt(0,3),shadowBlur:5},new Na("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Sd("ContextMenuButton",function(){var a=Su("Button");a.stretch=lr;var y=a.fb("ButtonBorder");return y instanceof Hr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new $i(0,0,2,3),y.spot2=new $i(1,1,-2,-2)),a}),Sd("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),E=Su("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},Su(Hr,{name:"ButtonIcon",strokeWidth:2},new Na("geometryString","visible",function(b){return b?E._buttonExpandedFigure:E._buttonCollapsedFigure}).cp(y)));return a=E.fb("ButtonBorder"),a instanceof Hr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),E.click=function(b,x){var z=x.diagram;if(z!==null&&!z.isReadOnly){var ne=x.ih();ne===null&&(ne=x.part),ne!==null&&(x=ne.fb(y),x!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),x.visible=!x.visible,z.eb("Collapse/Expand Panel")))}},E}),Sd("CheckBoxButton",function(a){var y=fm(a);return a=Su("Button",{desiredSize:new en(14,14)},Su(Hr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:xi,geometryStretch:rr,visible:!1},y!==""?new Na("visible",y).Kx():[])),a.click=function(E,b){if(b instanceof wi){var x=E.diagram;if(!(x===null||x.isReadOnly||y!==""&&x.model.isReadOnly)){E.handled=!0;var z=b.fb("ButtonIcon");x.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(E,b),x.eb("checkbox")}}},a}),Sd("CheckBox",function(a){a=fm(a),a=Su("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Fr(0,1,0,0)});var y=Su(wi,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Fr(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}),qt.None=hi=new pn(qt,"None",0),qt.Default=Or=new pn(qt,"Default",0),qt.Vertical=fr=new pn(qt,"Vertical",4),qt.Horizontal=lr=new pn(qt,"Horizontal",5),qt.Fill=xi=new pn(qt,"Fill",3),qt.Uniform=rr=new pn(qt,"Uniform",1),qt.UniformToFill=$r=new pn(qt,"UniformToFill",2),qt.FlipVertical=Vr=new pn(qt,"FlipVertical",1),qt.FlipHorizontal=oo=new pn(qt,"FlipHorizontal",2),qt.FlipBoth=No=new pn(qt,"FlipBoth",3),qt.make=Su,qt.getBuilders=function(){var a=new yn,y;for(y in zf)if(y!==y.toLowerCase()){var E=zf.I(y);typeof E=="function"&&a.add(y,E)}return a.freeze(),a},qt.defineBuilder=Sd,qt.build=function(a,y,E){for(var b=[],x=2;x<arguments.length;++x)b[x-2]=arguments[x];if(x=zf.I(a),typeof x=="function"&&(b=x([a].concat(b)),b instanceof qt))return y&&b.set(y),b;Ct('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},qt.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=ri,this.o=gr,this.hg=Or,this.ob=this.Bi=1,this.Pf=hi,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 Yd(){this.u=-1/0,this.o=0,this.F=Ii,this.rr=sl,this.j=this.V="None"}Yd.prototype.copy=function(){var a=new Yd;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},Yd.className="LinkElementSettings";function $p(){this.yj=this.Xi=Ia,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}$p.prototype.copy=function(){var a=new $p;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},$p.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,E){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,E),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var x=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,ne=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=x,this.ha[2]=z,this.ha[3]=ne,this.translate(-y,-E)}},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,E){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 Gl(this,E)}wc.prototype.resize=function(a,y,E,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",E+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+E+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",E+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},wc.prototype.Ud=function(a,y,E){if(a=this.ownerDocument.createElementNS(this.cA,a),zt(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return E!==void 0&&(a.textContent=E),a},wc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},wc.prototype.focus=function(){this.Oa.focus()},wc.prototype.mx=function(){this.ownerDocument=null},_n.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 Gl(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=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var E=Xr++,b=this.Ud("clipPath",{id:"mainClip"+E});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+E+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,E,b,x,z,ne){a.Nj===void 0?eg(a,y,E,b,x,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+E+", "+b+", "+x+", "+z+", "+ne+")")}Me=Gl.prototype,Me.arc=function(a,y,E,b,x,z,ne,re){var se=2*Math.PI,de=se-1e-6,pe=E*Math.cos(b),Se=E*Math.sin(b),Ae=a+pe,Re=y+Se,Ue=z?0:1;b=z?b-x:x-b,(1e-6<Math.abs(ne-Ae)||1e-6<Math.abs(re-Re))&&this.path.push(["L",Ae,+Re]),0>b&&(b=b%se+se),b>de?(this.path.push(["A",E,E,0,1,Ue,a-pe,y-Se]),this.path.push(["A",E,E,0,1,Ue,Ae,Re])):1e-6<b&&this.path.push(["A",E,E,0,+(b>=Math.PI),Ue,a+E*Math.cos(x),y+E*Math.sin(x)])},Me.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Me.Se=function(a){this.addPath(this.path,this.rb,a||0)},Me.bezierCurveTo=function(a,y,E,b,x,z){this.path.push(["C",a,y,E,b,x,z])},Me.clearRect=function(){},Me.clip=function(){this.Yl.clipPath=!0},Me.closePath=function(){this.path.push(["z"])},Me.createLinearGradient=function(a,y,E,b){var x=new af("linear");return x.x1=a,x.y1=y,x.x2=E,x.y2=b,x},Me.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var E=this.eA;if(E[y])return"url(#"+E[y]+")";var b="PATTERN"+Xr++,x={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Nh,x)),this.svg.appendChild(a),E[y]=b,"url(#"+b+")"},Me.createRadialGradient=function(a,y,E,b,x,z){var ne=new af("radial");return ne.x1=a,ne.y1=y,ne.r1=E,ne.x2=b,ne.y2=x,ne.r2=z,ne};function eS(a,y,E,b,x,z,ne,re,se){b=re/b,x=se/x,z===0&&ne===0||a.rb.translate(z,ne),b===1&&x===1||a.rb.scale(b,x),y===0&&E===0||a.rb.translate(-y,-E)}Me.drawImage=function(a,y,E,b,x,z,ne,re,se){var de="";a instanceof HTMLCanvasElement&&(de=a.toDataURL()),a instanceof HTMLImageElement&&(de=a.getAttribute("src"));var pe=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,ne=E,re=b=pe,se=x=a),b=b||0,x=x||0,re=re||0,se=se||0,eS(this,y,E,b,x,z||0,ne||0,re,se),z={x:0,y:0,width:pe||b,height:a||x,href:de},Qt.$(b,re)&&Qt.$(x,se)?de.toLowerCase().indexOf(".svg")===-1&&de.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||E!==0||b!==pe||x!==a)&&(b+=y,x+=E,z["clip-path"]="path('M "+y+","+E+" L "+b+" "+E+" L "+b+" "+x+" L "+y+" "+x+" z')"),jf(this,Nh,z,this.rb),this.addElement(Nh,z)},Me.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),av(this,this.Yl)},Me.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Me.fillRect=function(a,y,E,b){a=[a,y,E,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},jf(this,"fill",a,this.rb),this.addElement("rect",a)},Me.ox=function(a,y,E,b){a={x:a,y,width:E,height:b},jf(this,"fill",a,this.rb),av(this,a),this.svg.prepend(this.Ud("rect",a))},Me.fillText=function(a,y,E){a=[a,y,E],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])},Me.lineTo=function(a,y){this.path.push(["L",a,y])},Me.moveTo=function(a,y){this.path.push(["M",a,y])},Me.quadraticCurveTo=function(a,y,E,b){this.path.push(["Q",a,y,E,b])},Me.rect=function(a,y,E,b){this.path.push(["M",a,y],["L",a+E,y],["L",a+E,y+b],["L",a,y+b],["z"])},Me.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},Me.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())},Me.setTransform=function(a,y,E,b,x,z){a===1&&y===0&&E===0&&b===1&&x===0&&z===0||eg(this,a,y,E,b,x,z)};function tS(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Me.scale=function(a,y){this.rb.scale(a,y)},Me.translate=function(a,y){this.rb.translate(a,y)},Me.transform=function(){},Me.yc=function(){},Me.stroke=function(){iS(this,this.Yl)},Me.jk=function(){this.clipInsteadOfFill||this.stroke()},Me.Ud=function(a,y,E){return this.Gv.Ud(a,y,E)},Me.addElement=function(a,y,E){return a=this.Ud(a,y,E),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function jf(a,y,E,b){y==="fill"?av(a,E):y==="stroke"&&iS(a,E),b!==null&&(a=b.ha,E.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,E){E=E?"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,E,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,E+"-opacity",a[4])):y.setAttributeNS(null,E,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 E=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+E[1]+","+E[2]+","+E[3]+")",y["stroke-opacity"]=E[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,E){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(E?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),E=a.svg.getElementById(b),E!==null&&E.remove()):b="GRAD"+Xr++,y.type==="linear")E=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")E=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var x=y.gx;y=x.length;for(var z=[],ne=0;ne<y;ne++){var re=x[ne],se=re.color;re={offset:re.offset,"stop-color":se},/^rgba\(/.test(se)&&(se=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(se),re["stop-color"]="rgb("+se[1]+","+se[2]+","+se[3]+")",re["stop-opacity"]=se[4]),z.push(re)}for(z.sort(function(de,pe){return de.offset>pe.offset?1:-1}),x=0;x<y;x++)E.appendChild(a.Ud("stop",z[x]));return a.svg.appendChild(E),"url(#"+b+")"}Me.addPath=function(a,y,E){for(var b=[],x=0;x<a.length;x++){var z=Fi(a[x]),ne=[z.shift()];if(ne[0]==="A")ne.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ne.push(z.shift()+","+z.shift());b.push(ne.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,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 se in a)se!=="transform"&&re[E].setAttributeNS(null,se,a[se])}else this.addElement("path",a)};function eg(a,y,E,b,x,z,ne){var re=new Ih;re.ha=[y,E,b,x,z,ne],y={},jf(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function pm(a,y){var E={};return y&&(E.class=y),y=a.addElement("g",E),a.nh.push(y),y}Me.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E};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}Me.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Me.fs=function(){this.Ct=!1},Me.Vc=function(){},Me.Wx=function(){},Gl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Gl.prototype.getImageData=function(){return null},Gl.prototype.measureText=function(){return null};function gm(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()))}Gl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Gl.className="SVGContext",Tn.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 ir);var E=this;return qh(this,function(b,x){return b=um(E,b,"SVG",y),b=b!==null?b.svg:null,typeof x=="function"?(x(b),null):b},a)},Tn.prototype.makeSvg=Tn.prototype.Cs,Tn.prototype.av=function(a){return this.Cs(a)},Tn.prototype.makeSVG=Tn.prototype.av;function Mu(a,y,E,b){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,E,b),y.H=a}Mu.prototype.resize=function(a,y,E,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=E+"px",this.style.height=b+"px",!0):!1},Mu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Mu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Mu.prototype.focus=function(){this.Oa.focus()},Mu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},_n.Object.defineProperties(Mu.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}}}),Mu.className="CanvasSurface";function Mh(a,y,E){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ct("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 mr,this.isTemporary=!!E}Me=Mh.prototype,Me.Wx=function(a){this.Z.imageSmoothingEnabled=a},Me.arc=function(a,y,E,b,x,z){this.Z.arc(a,y,E,b,x,z)},Me.beginPath=function(){this.Z.beginPath()},Me.Se=function(){},Me.bezierCurveTo=function(a,y,E,b,x,z){this.Z.bezierCurveTo(a,y,E,b,x,z)},Me.clearRect=function(a,y,E,b){this.yc(),this.Z.clearRect(a,y,E,b)},Me.clip=function(){this.Z.clip()},Me.closePath=function(){this.Z.closePath()},Me.createLinearGradient=function(a,y,E,b){return this.Z.createLinearGradient(a,y,E,b)},Me.createPattern=function(a,y){return this.Z.createPattern(a,y)},Me.createRadialGradient=function(a,y,E,b,x,z){return this.Z.createRadialGradient(a,y,E,b,x,z)},Me.drawImage=function(a,y,E,b,x,z,ne,re,se){b===void 0?this.Z.drawImage(a,y,E):this.Z.drawImage(a,y,E,b,x,z,ne,re,se)},Me.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Me.fillRect=function(a,y,E,b){this.Z.fillRect(a,y,E,b)},Me.ox=function(a,y,E,b){this.Z.fillRect(a,y,E,b)},Me.fillText=function(a,y,E){this.Z.fillText(a,y,E)},Me.getImageData=function(a,y,E,b){return this.Z.getImageData(a,y,E,b)},Me.lineTo=function(a,y){this.Z.lineTo(a,y)},Me.measureText=function(a){return this.Z.measureText(a)},Me.moveTo=function(a,y){this.Z.moveTo(a,y)},Me.quadraticCurveTo=function(a,y,E,b){this.Z.quadraticCurveTo(a,y,E,b)},Me.rect=function(a,y,E,b){this.Z.rect(a,y,E,b)},Me.restore=function(){this.Z.restore()},Me.save=function(){this.yc(),this.Z.save()},Mh.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Me=Mh.prototype,Me.setTransform=function(a,y,E,b,x,z){this.El.setTransform(a,y,E,b,x,z)},Me.scale=function(a,y){this.El.scale(a,y)},Me.translate=function(a,y){this.El.translate(a,y)},Me.stroke=function(){this.Z.stroke()},Me.transform=function(a,y,E,b,x,z){if(a!==1||y!==0||E!==0||b!==1||x!==0||z!==0){var ne=this.El,re=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*E+ne.m21*b,E=ne.m12*E+ne.m22*b,ne.dx=ne.m11*x+ne.m21*z+ne.dx,ne.dy=ne.m12*x+ne.m22*z+ne.dy,ne.m11=re,ne.m12=a,ne.m21=y,ne.m22=E}},Me.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Me.ng=function(a,y){if(a instanceof bo&&a.type===Eu){var E=a.yk;a=a.ft,a>E?(this.scale(E/a,1),this.translate((a-E)/2,0)):E>a&&(this.scale(1,a/E),this.translate(0,(E-a)/2)),this.Hm?this.clip():this.fill(y),a>E?(this.translate(-(a-E)/2,0),this.scale(1/(E/a),1)):E>a&&(this.translate(0,-(E-a)/2),this.scale(1,1/(a/E)))}else this.Hm?this.clip():this.fill(y)},Me.jk=function(){this.Hm||this.stroke()},Me.Ev=function(a,y,E){this.Ar=a,this.Br=y,this.Vg=E},Me.js=function(a,y){var E=this.Z;E.setLineDash!==void 0&&(E.setLineDash(a),E.lineDashOffset=y)},Me.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(PE),a.lineDashOffset=0)},Me.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Me.Hs=function(){},_n.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 PE=Object.freeze([]);Mh.className="CanvasSurfaceContext";function tg(){this.F=this.o=this.u=this.j=0}tg.className="ColorNumbers";function bo(a,y){Zf||(fv(),Zf=!0),ar(this),this._isFrozen=!1,a===void 0?(this.na=Ed,this.xk="black"):typeof a=="string"?(this.na=Ed,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===td?(this.Qd=uo,this.Lk=fa):this.Lk=a===Eu?this.Qd=Dr:this.Qd=Mr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}bo.prototype.copy=function(){var a=new bo;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},Me=bo.prototype,Me.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Me.ka=function(){return Object.isFrozen(this)&&Ct("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Me.qb=function(a){a.classType===bo&&(this.type=a)},Me.toString=function(){var a="Brush(";if(this.type===Ed)a+=this.color;else if(a=this.type===td?a+"Linear ":this.type===Eu?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+")"},Me.addColorStop=function(a,y){return this._isFrozen&&$t(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&fi(a,"0 <= loc <= 1",bo,"addColorStop:loc"),this.we===null&&(this.we=new yn),this.we.add(a,y),this.na===Ed&&(this.type=td),this.xe=null,this},Me.Vz=function(a,y){if(this._isFrozen&&$t(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Yf:y,this.type===Ed)ed(this.color),this.color=Vf(a,y);else if((this.type===td||this.type===Eu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)ed(E.value),this.addColorStop(E.key,Vf(a,y));return this};function rS(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?Yf:E,ed(a),Vf(y,E)}Me.Wy=function(a,y){if(this._isFrozen&&$t(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Yf:y,this.type===Ed)ed(this.color),this.color=Vf(-a,y);else if((this.type===td||this.type===Eu)&&this.colorStops!==null)for(var E=this.colorStops.iterator;E.next();)ed(E.value),this.addColorStop(E.key,Vf(-a,y));return this};function oS(a,y,E){return y=y===void 0||typeof y!="number"?.2:y,E=E===void 0?Yf:E,ed(a),Vf(-y,E)}function lv(a,y,E){ed(a),a=Vo.j;var b=Vo.u,x=Vo.o,z=Vo.F;return ed(y),E===void 0&&(E=.5),"rgba("+Math.round((Vo.j-a)*E+a)+", "+Math.round((Vo.u-b)*E+b)+", "+Math.round((Vo.o-x)*E+x)+", "+Math.round((Vo.F-z)*E+z)+")"}Me.Gx=function(){if(this.type===Ed)return Gf(this.color);if((this.type===td||this.type===Eu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Eu)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,E=-1,b=-1,x=1,z=1;y.next();){var ne=y.key,re=Math.abs(.5-y.key);x>z&&re<x?(E=ne,x=re):z>=x&&re<z&&(b=ne,z=re)}return E>b&&(z=E,E=b,b=z,z=x),x=b-E,Gf(lv(a.get(E),a.get(b),1-z/x))}return!1};function Gf(a){return a?a instanceof bo?a.Gx():(ed(a),128>(299*Vo.j+587*Vo.u+114*Vo.o)/1e3):!1}function Vf(a,y){switch(y){case Yf:y=100*cv(Vo.j);var E=100*cv(Vo.u),b=100*cv(Vo.o);return ol.j=.4124564*y+.3575761*E+.1804375*b,ol.u=.2126729*y+.7151522*E+.072175*b,ol.o=.0193339*y+.119192*E+.9503041*b,ol.F=Vo.F,y=hv(ol.j/Wf[0]),E=hv(ol.u/Wf[1]),b=hv(ol.o/Wf[2]),_c.j=116*E-16,_c.u=500*(y-E),_c.o=200*(E-b),_c.F=ol.F,_c.j=Math.min(100,Math.max(0,_c.j+100*a)),a=(_c.j+16)/116,y=a-_c.o/200,ol.j=Wf[0]*aS(_c.u/500+a),ol.u=Wf[1]*(_c.j>mm*pv?Math.pow(a,3):_c.j/mm),ol.o=Wf[2]*aS(y),ol.F=_c.F,a=-.969266*ol.j+1.8760108*ol.u+.041556*ol.o,y=.0556434*ol.j+-.2040259*ol.u+1.0572252*ol.o,Vo.j=255*dv((3.2404542*ol.j+-1.5371385*ol.u+-.4985314*ol.o)/100),Vo.u=255*dv(a/100),Vo.o=255*dv(y/100),Vo.F=ol.F,Vo.j=Math.round(Vo.j),255<Vo.j?Vo.j=255:0>Vo.j&&(Vo.j=0),Vo.u=Math.round(Vo.u),255<Vo.u?Vo.u=255:0>Vo.u&&(Vo.u=0),Vo.o=Math.round(Vo.o),255<Vo.o?Vo.o=255:0>Vo.o&&(Vo.o=0),"rgba("+Vo.j+", "+Vo.u+", "+Vo.o+", "+Vo.F+")";case sS:return uv(),au.o=Math.min(100,Math.max(0,au.o+100*a)),"hsla("+au.j+", "+au.u+"%, "+au.o+"%, "+au.F+")";default:Ct("Unknown color space: "+y)}}function ed(a){Zf||(fv(),Zf=!0);var y=gv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var E=y.fillStyle;y.fillStyle=a,y.fillStyle!==E?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Vo.j=a[0],Vo.u=a[1],Vo.o=a[2],Vo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Vo.j=0,Vo.u=0,Vo.o=0,Vo.F=1)}}function uv(){var a=Vo.j/255,y=Vo.u/255,E=Vo.o/255,b=Math.max(a,y,E),x=Math.min(a,y,E),z=b-x;if(x=(b+x)/2,z===0)var ne=a=0;else{switch(b){case a:ne=(y-E)/z%6;break;case y:ne=(E-a)/z+2;break;case E:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*x-1))}au.j=Math.round(ne),au.u=Math.round(100*a),au.o=Math.round(100*x),au.F=Vo.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>pv?Math.pow(a,1/3):(mm*a+16)/116}function aS(a){var y=a*a*a;return y>pv?y:(116*a-16)/mm}function sf(a,y){typeof a!="string"&&(a instanceof bo||Ct("Value for "+y+" must be a color string or a Brush, not "+a))}function fv(){gv=da?new Mu(null,void 0,{willReadFrequently:!0}).context:null}_n.Object.defineProperties(bo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&$t(this,a),this.na=a,this.start.Mc()&&(a===td?this.start=uo:a===Eu&&(this.start=Dr)),this.end.Mc()&&(a===td?this.end=fa:a===Eu&&(this.end=Dr)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&$t(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&$t(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&$t(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&$t(this,a),0>a&&fi(a,">= zero",bo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&$t(this,a),0>a&&fi(a,">= zero",bo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&$t(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&$t(this,a),this.cr=a,this.xe=null}}}),bo.prototype.isDark=bo.prototype.Gx,bo.prototype.darkenBy=bo.prototype.Wy,bo.prototype.lightenBy=bo.prototype.Vz,bo.prototype.addColorStop=bo.prototype.addColorStop;var pv=216/24389,mm=24389/27,Wf=[95.047,100,108.883],gv=null,Vo=new tg,au=new tg,ol=new tg,_c=new tg,Zf=!1;bo.className="Brush";var Ed;bo.Solid=Ed=new pn(bo,"Solid",0);var td;bo.Linear=td=new pn(bo,"Linear",1);var Eu;bo.Radial=Eu=new pn(bo,"Radial",2);var Kf;bo.Pattern=Kf=new pn(bo,"Pattern",4);var Yf;bo.Lab=Yf=new pn(bo,"Lab",5);var sS;bo.HSL=sS=new pn(bo,"HSL",6),bo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var E=Math.abs(y-a);y=Math.floor(a+Math.random()*E).toString(16);var b=Math.floor(a+Math.random()*E).toString(16);return a=Math.floor(a+Math.random()*E).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},bo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Zf||(fv(),Zf=!0);var y=gv;if(y===null)return!0;y.fillStyle="#000000";var E=y.fillStyle;return y.fillStyle=a,y.fillStyle!==E?!0:(y.fillStyle="#FFFFFF",E=y.fillStyle,y.fillStyle=a,y.fillStyle!==E)},bo.lighten=function(a){return rS(a)},bo.lightenBy=rS,bo.darken=function(a){return oS(a)},bo.darkenBy=oS,bo.mix=lv,bo.isDark=Gf;function za(){this.xa="Base"}za.prototype.measure=function(){},za.prototype.Yz=function(a,y,E,b,x){a.measure(y,E,b,x)},za.prototype.arrange=function(){},za.prototype.Ly=function(a,y,E,b,x,z){a.arrange(y,E,b,x,z)},za.prototype.iA=function(a){a.Uj()},za.prototype.gc=function(){},_n.Object.defineProperties(za.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return wi}}}),za.prototype.remeasureObject=za.prototype.iA,za.prototype.arrangeElement=za.prototype.Ly,za.prototype.measureElement=za.prototype.Yz,za.className="PanelLayout";function vm(){this.xa="Base"}dn(vm,za),vm.prototype.measure=function(a,y,E,b,x,z,ne){var re=b.length;a=nd(a);for(var se=0;se<re;se++){var de=b[se];if(de.visible||de===a){var pe=de.margin,Se=pe.right+pe.left;pe=pe.top+pe.bottom,de.measure(y,E,z,ne);var Ae=de.measuredBounds;Se=Math.max(Ae.width+Se,0),pe=Math.max(Ae.height+pe,0),Ae=de.position.x;var Re=de.position.y;isFinite(Ae)||(Ae=0),isFinite(Re)||(Re=0),de instanceof Hr&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Ae-=de,Re-=de),Jr(x,Ae,Re,Se,pe)}}},vm.prototype.arrange=function(a,y,E){var b=y.length,x=a.padding;for(a=E.x-x.left,E=E.y-x.top,x=0;x<b;x++){var z=y[x],ne=z.measuredBounds,re=z.margin,se=z.position.x,de=z.position.y;if(se=isNaN(se)?-a:se-a,de=isNaN(de)?-E:de-E,z instanceof Hr&&z.isGeometryPositioned){var pe=z.strokeWidth/2;se-=pe,de-=pe}z.visible&&z.arrange(se+re.left,de+re.top,ne.width,ne.height)}};function ym(){this.xa="Base"}dn(ym,za),ym.prototype.measure=function(a,y,E,b,x,z,ne){var re=b.length;y=Pi(),z=nd(a);for(var se=0;se<re;se++){var de=b[se];if(de.visible||de===z){var pe=xl(de,!1);if(pe!==hi&&pe!==lr)y.push(de);else{de.measure(1/0,E,0,ne),pe=de.margin,de=de.measuredBounds;var Se=Math.max(de.height+pe.top+pe.bottom,0);x.width+=Math.max(de.width+pe.right+pe.left,0),x.height=Math.max(x.height,Se)}}}for(b=y.length,a.desiredSize.height?E=Math.min(a.desiredSize.height,a.maxSize.height):x.height!==0&&(E=Math.min(x.height,a.maxSize.height)),a=0;a<b;a++)se=y[a],(se.visible||se===z)&&(pe=se.margin,re=pe.right+pe.left,pe=pe.top+pe.bottom,se.measure(1/0,E,0,ne),se=se.measuredBounds,pe=Math.max(se.height+pe,0),x.width+=Math.max(se.width+re,0),x.height=Math.max(x.height,pe));Ai(y)},ym.prototype.arrange=function(a,y,E){for(var b=y.length,x=a.padding,z=x.top,ne=a.isOpposite,re=ne?E.width:x.left,se=0;se<b;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Ae=pe.margin,Re=Ae.top+Ae.bottom,Ue=z+x.bottom,Xe=Se.height,bt=xl(pe,!1);(isNaN(pe.desiredSize.height)&&bt===xi||bt===fr)&&(Xe=Math.max(E.height-Re-Ue,0)),Re=Xe+Re+Ue,Ue=pe.alignment,Ue.Xb()&&(Ue=a.defaultAlignment),Ue.sb()||(Ue=Dr),ne&&(re-=Se.width+Ae.left+Ae.right),pe.arrange(re+Ue.offsetX+Ae.left,de+Ue.offsetY+Ae.top+(E.height*Ue.y-Re*Ue.y),Se.width,Xe),ne||(re+=Se.width+Ae.left+Ae.right)}}};function Sm(){this.xa="Base"}dn(Sm,za),Sm.prototype.measure=function(a,y,E,b,x,z){var ne=b.length;E=Pi();for(var re=nd(a),se=0;se<ne;se++){var de=b[se];if(de.visible||de===re){var pe=xl(de,!1);if(pe!==hi&&pe!==fr)E.push(de);else{var Se=de.margin;pe=Se.right+Se.left,Se=Se.top+Se.bottom,de.measure(y,1/0,z,0),de=de.measuredBounds,so(x,Math.max(x.width,Math.max(de.width+pe,0)),x.height+Math.max(de.height+Se,0))}}}if(b=E.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):x.width!==0&&(y=Math.min(x.width,a.maxSize.width)),a=0;a<b;a++)se=E[a],(se.visible||se===re)&&(de=se.margin,ne=de.right+de.left,de=de.top+de.bottom,se.measure(y,1/0,z,0),se=se.measuredBounds,de=Math.max(se.height+de,0),x.width=Math.max(x.width,Math.max(se.width+ne,0)),x.height+=de);Ai(E)}},Sm.prototype.arrange=function(a,y,E){for(var b=y.length,x=a.padding,z=x.left,ne=a.isOpposite,re=ne?E.height:x.top,se=0;se<b;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Ae=pe.margin,Re=Ae.left+Ae.right,Ue=z+x.right,Xe=Se.width,bt=xl(pe,!1);(isNaN(pe.desiredSize.width)&&bt===xi||bt===lr)&&(Xe=Math.max(E.width-Re-Ue,0)),Re=Xe+Re+Ue,Ue=pe.alignment,Ue.Xb()&&(Ue=a.defaultAlignment),Ue.sb()||(Ue=Dr),ne&&(re-=Se.height+Ae.bottom+Ae.top),pe.arrange(de+Ue.offsetX+Ae.left+(E.width*Ue.x-Re*Ue.x),re+Ue.offsetY+Ae.top,Xe,Se.height),ne||(re+=Se.height+Ae.bottom+Ae.top)}}};function Em(){this.xa="Base"}dn(Em,za),Em.prototype.measure=function(a,y,E,b,x,z,ne){var re=b.length,se=a.Pb(),de=se.margin,pe=de.right+de.left,Se=de.top+de.bottom;se.measure(y,E,z,ne);var Ae=se.measuredBounds;z=Ae.width,ne=Ae.height;var Re=Math.max(z+pe,0),Ue=Math.max(ne+Se,0),Xe=a.isClipping,bt=xn.allocAt(-de.left,-de.top,Re,Ue),ft=xn.allocAt(0,0,z,ne);mv(se,ft,!0),z=ft.width,ne=ft.height;for(var Pt=!0,Nt=nd(a),Dt=0;Dt<re;Dt++){var Yt=b[Dt];Ae=y;var wn=E;if(Yt!==se&&(Yt.visible||Yt===Nt)){de=Yt.margin;var zi=de.left,er=de.top;switch(Re=de.right+de.left,Ue=de.top+de.bottom,de=xl(Yt,!1),de){case xi:Ae=z,wn=ne,er=zi=Ue=Re=0;break;case lr:Ae=z,zi=Re=0;break;case fr:wn=ne,er=Ue=0}Yt.measure(Ae,wn,0,0),Ae=Yt.measuredBounds,Re=Math.max(Ae.width+Re,0),Ue=Math.max(Ae.height+Ue,0),de=Yt.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=Dr);var Xi=Yt.alignmentFocus;if(Xi.Xb()&&(Xi=Dr),wn=null,Yt instanceof wi&&Yt.$e!==""&&(wn=Yt.fb(Yt.$e),wn===Yt&&(wn=null)),zi=ft.x-zi,er=ft.y-er,wn!==null){for(Yt.arrange(0,0,Ae.width,Ae.height),Ae=wn.actualBounds,Ae=rt.allocAt(Ae.x+(Xi.x*Ae.width-Xi.offsetX),Ae.y+(Xi.y*Ae.height-Xi.offsetY)),wn=wn.panel;wn!==Yt;)wn.transform.Ga(Ae),wn=wn.panel;zi+=de.x*z+de.offsetX-Ae.x,er+=de.y*ne+de.offsetY-Ae.y,rt.free(Ae)}else zi+=de.x*z+de.offsetX-(Xi.x*Ae.width+Xi.offsetX),er+=de.y*ne+de.offsetY-(Xi.y*Ae.height+Xi.offsetY);Pt?(Pt=!1,x.h(zi,er,Re,Ue)):Jr(x,zi,er,Re,Ue)}}switch(Pt?x.assign(bt):Xe?x.Uu(ft.x,ft.y,ft.width,ft.height):Jr(x,bt.x,bt.y,bt.width,bt.height),xn.free(bt),xn.free(ft),de=se.stretch,de===Or&&(de=xl(se,!1)),de){case hi:return;case xi:if(!isFinite(y)&&!isFinite(E))return;break;case lr:if(!isFinite(y))return;break;case fr:if(!isFinite(E))return}for(Ae=se.measuredBounds,z=Ae.width,ne=Ae.height,Re=Math.max(z+pe,0),Ue=Math.max(ne+Se,0),de=se.margin,ft=xn.allocAt(-de.left,-de.top,Re,Ue),mv(se,ft,!0),z=ft.width,ne=ft.height,y=0;y<re;y++)E=b[y],E===se||!E.visible&&E!==Nt||(de=E.margin,Re=de.right+de.left,Ue=de.top+de.bottom,Ae=E.measuredBounds,Re=Math.max(Ae.width+Re,0),Ue=Math.max(Ae.height+Ue,0),pe=E.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=Dr),E=E.alignmentFocus,E.Xb()&&(E=Dr),Pt?(Pt=!1,x.h(pe.x*z+pe.offsetX-(E.x*Ae.width+E.offsetX)-de.left,pe.y*ne+pe.offsetY-(E.y*Ae.height+E.offsetY)-de.top,Re,Ue)):Jr(x,pe.x*z+pe.offsetX-(E.x*Ae.width+E.offsetX)-de.left,pe.y*ne+pe.offsetY-(E.y*Ae.height+E.offsetY)-de.top,Re,Ue));Pt?x.assign(bt):Xe?x.Uu(ft.x,ft.y,ft.width,ft.height):Jr(x,bt.x,bt.y,bt.width,bt.height),xn.free(ft)},Em.prototype.arrange=function(a,y,E){var b=y.length,x=a.Pb(),z=x.measuredBounds,ne=z.width,re=z.height,se=a.padding;z=se.left,se=se.top;var de=z-E.x,pe=se-E.y;for(x.arrange(de,pe,ne,re),ne=xn.allocAt(0,0,ne,re),mv(x,ne,!1),re=0;re<b;re++){var Se=y[re];if(Se!==x){de=Se.measuredBounds;var Ae=de.width,Re=de.height;pe=Se.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=Dr);var Ue=Se.alignmentFocus;if(Ue.Xb()&&(Ue=Dr),de=null,Se instanceof wi&&Se.$e!==""&&(de=Se.fb(Se.$e),de===Se&&(de=null)),de!==null){var Xe=de.actualBounds;for(Ue=rt.allocAt(Xe.x+(Ue.x*Xe.width-Ue.offsetX),Xe.y+(Ue.y*Xe.height-Ue.offsetY)),de=de.panel;de!==Se;)de.transform.Ga(Ue),de=de.panel;de=pe.x*ne.width+pe.offsetX-Ue.x,pe=pe.y*ne.height+pe.offsetY-Ue.y,rt.free(Ue)}else de=pe.x*ne.width+pe.offsetX-(Ue.x*Ae+Ue.offsetX),pe=pe.y*ne.height+pe.offsetY-(Ue.y*Re+Ue.offsetY);de+=ne.x-E.x,pe+=ne.y-E.y,Se.visible&&Se.arrange(z+de,se+pe,Ae,Re)}}xn.free(ne)};function mv(a,y,E){var b=null;if(a instanceof wi&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(E&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function bm(){this.xa="Base"}dn(bm,za),bm.prototype.measure=function(a,y,E,b,x,z,ne){var re=b.length,se=a.Pb(),de=se.margin,pe=y,Se=E,Ae=de.right+de.left,Re=de.top+de.bottom;se.measure(y,E,z,ne),de=se.measuredBounds;var Ue=0,Xe=null;se instanceof Hr&&(Xe=se,Ue=Xe.strokeWidth*Xe.scale);var bt=Math.max(de.width+Ae,0);de=Math.max(de.height+Re,0);var ft=Ev(se),Pt=ft.x*bt+ft.offsetX;ft=ft.y*de+ft.offsetY;var Nt=bv(se),Dt=Nt.x*bt+Nt.offsetX;for(Nt=Nt.y*de+Nt.offsetY,isFinite(y)&&(pe=Math.max(Math.abs(Pt-Dt)-Ue,0)),isFinite(E)&&(Se=Math.max(Math.abs(ft-Nt)-Ue,0)),Ue=en.alloc(),Ue.h(0,0),a=nd(a),Nt=0;Nt<re;Nt++)ft=b[Nt],ft===se||!ft.visible&&ft!==a||(de=ft.margin,bt=de.right+de.left,Pt=de.top+de.bottom,ft.measure(pe,Se,0,0),de=ft.measuredBounds,bt=Math.max(de.width+bt,0),de=Math.max(de.height+Pt,0),Ue.h(Math.max(bt,Ue.width),Math.max(de,Ue.height)));if(re===1)x.width=bt,x.height=de,en.free(Ue);else{switch(ft=Ev(se),Nt=bv(se),re=b=0,Nt.x!==ft.x&&Nt.y!==ft.y&&(b=Ue.width/Math.abs(Nt.x-ft.x),re=Ue.height/Math.abs(Nt.y-ft.y)),en.free(Ue),Ue=0,Xe!==null&&(Ue=Xe.strokeWidth*Xe.scale,Av(Xe)===rr&&(b=re=Math.max(b,re))),b+=Math.abs(ft.offsetX)+Math.abs(Nt.offsetX)+Ue,re+=Math.abs(ft.offsetY)+Math.abs(Nt.offsetY)+Ue,Xe=se.stretch,Xe===Or&&(Xe=xl(se,!1)),Xe){case hi:ne=z=0;break;case xi:isFinite(y)&&(b=y),isFinite(E)&&(re=E);break;case lr:isFinite(y)&&(b=y),ne=0;break;case fr:z=0,isFinite(E)&&(re=E)}se.Uj(),se.measure(b,re,z,ne),x.width=se.measuredBounds.width+Ae,x.height=se.measuredBounds.height+Re}},bm.prototype.arrange=function(a,y){var E=y.length,b=a.Pb(),x=b.measuredBounds,z=xn.alloc();z.h(0,0,1,1);var ne=b.margin,re=ne.left;ne=ne.top;var se=a.padding,de=se.left;se=se.top,b.arrange(de+re,se+ne,x.width,x.height);var pe=Ev(b),Se=bv(b),Ae=pe.y*x.height+pe.offsetY,Re=Se.x*x.width+Se.offsetX;for(Se=Se.y*x.height+Se.offsetY,z.x=pe.x*x.width+pe.offsetX,z.y=Ae,Jr(z,Re,Se,0,0),z.x+=re+de,z.y+=ne+se,x=0;x<E;x++)re=y[x],re!==b&&(de=re.measuredBounds,ne=re.margin,se=Math.max(de.width+ne.right+ne.left,0),pe=Math.max(de.height+ne.top+ne.bottom,0),Ae=re.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=Dr),se=z.width*Ae.x+Ae.offsetX-se*Ae.x+ne.left+z.x,ne=z.height*Ae.y+Ae.offsetY-pe*Ae.y+ne.top+z.y,re.visible&&(Do(z.x,z.y,z.width,z.height,se,ne,de.width,de.height)?re.arrange(se,ne,de.width,de.height):re.arrange(se,ne,de.width,de.height,new xn(z.x,z.y,z.width,z.height))));xn.free(z)};function xm(){this.xa="Base",this.name="Table"}dn(xm,za),xm.prototype.measure=function(a,y,E,b,x){for(var z=b.length,ne=Pi(),re=Pi(),se=0;se<z;se++){var de=b[se],pe=de instanceof wi?de:null;if(pe!==null&&bd(pe)&&de.visible){re.push(pe);for(var Se=pe.O.s,Ae=Se.length,Re=0;Re<Ae;Re++){var Ue=Se[Re];pe.type===wi.TableRow?Ue.row=de.row:pe.type===wi.TableColumn&&(Ue.column=de.column),ne.push(Ue)}}else ne.push(de)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var Xe=[],bt=0;bt<z;bt++){var ft=ne[bt];ft.visible&&(Fa(ft,!0),Fc(ft,!0),Xe[ft.row]||(Xe[ft.row]=[]),Xe[ft.row][ft.column]||(Xe[ft.row][ft.column]=[]),Xe[ft.row][ft.column].push(ft))}Ai(ne);var Pt=Pi(),Nt=Pi(),Dt=Pi(),Yt={count:0},wn={count:0},zi=y,er=E,Xi=a.rowDefs,ki=a.colDefs,oi=null;z=Xi.length;for(var kr=0;kr<z;kr++)oi=Xi[kr],oi!==void 0&&(oi.actual=0);z=ki.length;for(var Er=0;Er<z;Er++)oi=ki[Er],oi!==void 0&&(oi.actual=0);for(var mo=Xe.length,Uo=0,ts=0;ts<mo;ts++)Xe[ts]&&(Uo=Math.max(Uo,Xe[ts].length));var os=Math.min(a.topIndex,mo-1),Ys=Math.min(a.leftIndex,Uo-1),ns=0;mo=Xe.length;for(var Id=nd(a),ka=0;ka<mo;ka++)if(Xe[ka]){Uo=Xe[ka].length;var gc=a.Fb(ka);gc.actual=0;for(var Xs=gc.oc=0;Xs<Uo;Xs++)if(Xe[ka][Xs]){var Md=a.Eb(Xs);Pt[Xs]===void 0&&(Md.actual=0,Md.oc=0,Pt[Xs]=!0);for(var uu=Xe[ka][Xs],Fu=uu.length,Zl=0;Zl<Fu;Zl++){var Rl=uu[Zl];if(Rl.visible||Rl===Id){var lh=1<Rl.rowSpan||1<Rl.columnSpan;lh&&(ka<os||Xs<Ys||Nt.push(Rl));var mc=Rl.margin,vp=mc.right+mc.left,Kl=mc.top+mc.bottom,Qs=cc(Rl,gc,Md,!1),jg=Rl.desiredSize,Sf=!isNaN(jg.height),Pc=!isNaN(jg.width)&&Sf;if(lh||Qs===hi||Pc||ka<os||Xs<Ys||(Yt[Xs]!==void 0||Qs!==xi&&Qs!==lr||(Yt[Xs]=-1,Yt.count++),wn[ka]!==void 0||Qs!==xi&&Qs!==fr||(wn[ka]=-1,wn.count++),Dt.push(Rl)),Rl.measure(1/0,1/0,0,0),!(ka<os||Xs<Ys)){var Dl=Rl.measuredBounds,zh=Math.max(Dl.width+vp,0),Yl=Math.max(Dl.height+Kl,0);if(Rl.rowSpan===1&&(Qs===hi||Qs===lr)){oi=a.Fb(ka);var uh=oi.Wc();ns=Math.max(Yl-oi.actual,0),ns+uh>er&&(ns=Math.max(er-uh,0));var W0=oi.oa===0;oi.oc=oi.oc+ns,oi.actual=oi.oa+ns,er=Math.max(er-(ns+(W0?uh:0)),0)}if(Rl.columnSpan===1&&(Qs===hi||Qs===fr)){oi=a.Eb(Xs);var Gg=oi.Wc();ns=Math.max(zh-oi.actual,0),ns+Gg>zi&&(ns=Math.max(zi-Gg,0));var Gy=oi.oa===0;oi.oc=oi.oc+ns,oi.actual=oi.oa+ns,zi=Math.max(zi-(ns+(Gy?Gg:0)),0)}lh&&Rl.Uj()}}}}}Ai(Pt);var Kc=0,od=0;z=a.columnCount;for(var Ef=0;Ef<z;Ef++){var ch=ki[Ef];ch!==void 0&&(Kc+=isNaN(ch.Hc)?ch.oc:ch.Hc,ch.oc!==0&&(Kc+=ch.Wc()))}z=a.rowCount;for(var yp=0;yp<z;yp++){var dh=Xi[yp];dh!==void 0&&(od+=isNaN(dh.Hc)?dh.oc:dh.Hc,dh.oc!==0&&(od+=dh.Wc()))}zi=Math.max(y-Kc,0);var Yc=er=Math.max(E-od,0),Od=zi;z=Dt.length;for(var Fl=0;Fl<z;Fl++){var Ac=Dt[Fl],Z0=a.Fb(Ac.row),ad=a.Eb(Ac.column),Sp=Ac.measuredBounds,vc=Ac.margin,jh=vc.right+vc.left,Nc=vc.top+vc.bottom;Yt[Ac.column]=ad.oc===0&&Yt[Ac.column]!==void 0?Math.max(Sp.width+jh,Yt[Ac.column]):null,wn[Ac.row]=Z0.oc===0&&wn[Ac.row]!==void 0?Math.max(Sp.height+Nc,wn[Ac.row]):null}var bf=0,Ep=0,nc;for(nc in wn)nc!=="count"&&(bf+=wn[nc]);for(nc in Yt)nc!=="count"&&(Ep+=Yt[nc]);for(var Ss=en.alloc(),Vg=0;Vg<z;Vg++){var hl=Dt[Vg];if(hl.visible||hl===Id){var La=a.Fb(hl.row),fl=a.Eb(hl.column),sd=0;isFinite(fl.width)?sd=fl.width:(isFinite(zi)&&Yt[hl.column]!==null?Ep===0?sd=fl.actual+zi:sd=Yt[hl.column]/Ep*Od:Yt[hl.column]!==null?sd=zi:sd=fl.actual||zi,sd=Math.max(0,sd-fl.Wc()));var Rd=0;switch(isFinite(La.height)?Rd=La.height:(isFinite(er)&&wn[hl.row]!==null?bf===0?Rd=La.actual+er:Rd=wn[hl.row]/bf*Yc:wn[hl.row]!==null?Rd=er:Rd=La.actual||er,Rd=Math.max(0,Rd-La.Wc())),Ss.h(Math.max(fl.minimum,Math.min(sd,fl.maximum)),Math.max(La.minimum,Math.min(Rd,La.maximum))),Qs=cc(hl,La,fl,!1),Qs){case lr:Ss.height=Math.max(Ss.height,La.actual+er);break;case fr:Ss.width=Math.max(Ss.width,fl.actual+zi)}var Gh=hl.margin,Vy=Gh.right+Gh.left,K0=Gh.top+Gh.bottom;hl.Uj(),hl.measure(Ss.width,Ss.height,fl.minimum,La.minimum);var bp=hl.measuredBounds,Vh=Math.max(bp.width+Vy,0),xf=Math.max(bp.height+K0,0);isFinite(zi)&&(Vh=Math.min(Vh,Ss.width)),isFinite(er)&&(xf=Math.min(xf,Ss.height));var Bl=0;Bl=La.actual,La.actual=Math.max(La.actual,xf),La.oc=Math.max(La.oc,xf),ns=La.actual-Bl,er=Math.max(er-ns,0),wn[hl.row]===null&&(Yc=Math.max(Yc-ns,0)),Bl=fl.actual,fl.actual=Math.max(fl.actual,Vh),fl.oc=Math.max(fl.oc,Vh),ns=fl.actual-Bl,zi=Math.max(zi-ns,0),Yt[hl.column]===null&&(Od=Math.max(Od-ns,0))}}Ai(Dt);var ld=en.alloc(),yc=Pi(),Tu=Pi();if(z=Nt.length,z!==0){for(var hh=0;hh<mo;hh++)if(Xe[hh]){Uo=Xe[hh].length;var xp=a.Fb(hh);yc[hh]=xp.actual;for(var fh=0;fh<Uo;fh++)if(Xe[hh][fh]){var Y0=a.Eb(fh);Tu[fh]=Y0.actual}}}for(var wp=0;wp<z;wp++){var ga=Nt[wp];if(ga.visible||ga===Id){var ic=a.Fb(ga.row),Bu=a.Eb(ga.column);switch(Ss.h(Math.max(Bu.minimum,Math.min(y,Bu.maximum)),Math.max(ic.minimum,Math.min(E,ic.maximum))),Qs=cc(ga,ic,Bu,!1),Qs){case xi:Tu[Bu.index]!==0&&(Ss.width=Math.min(Ss.width,Tu[Bu.index])),yc[ic.index]!==0&&(Ss.height=Math.min(Ss.height,yc[ic.index]));break;case lr:Tu[Bu.index]!==0&&(Ss.width=Math.min(Ss.width,Tu[Bu.index]));break;case fr:yc[ic.index]!==0&&(Ss.height=Math.min(Ss.height,yc[ic.index]))}isFinite(Bu.width)&&(Ss.width=Bu.width),isFinite(ic.height)&&(Ss.height=ic.height),ld.h(0,0);for(var X0=Bu.minimum,Xl=ic.minimum,Dd=1;Dd<ga.rowSpan&&!(ga.row+Dd>=a.rowCount);Dd++)oi=a.Fb(ga.row+Dd),ns=0,ns=Qs===xi||Qs===fr?Math.max(oi.minimum,yc[ga.row+Dd]===0?oi.maximum:Math.min(yc[ga.row+Dd],oi.maximum)):Math.max(oi.minimum,isNaN(oi.Hc)?oi.maximum:Math.min(oi.Hc,oi.maximum)),ld.height+=ns,Xl+=oi.minimum;for(var _u=1;_u<ga.columnSpan&&!(ga.column+_u>=a.columnCount);_u++)oi=a.Eb(ga.column+_u),ns=0,ns=Qs===xi||Qs===lr?Math.max(oi.minimum,Tu[ga.column+_u]===0?oi.maximum:Math.min(Tu[ga.column+_u],oi.maximum)):Math.max(oi.minimum,isNaN(oi.Hc)?oi.maximum:Math.min(oi.Hc,oi.maximum)),ld.width+=ns,X0+=oi.minimum;Ss.width+=ld.width,Ss.height+=ld.height;var Cp=ga.margin,ph=Cp.right+Cp.left,Wg=Cp.top+Cp.bottom;ga.measure(Ss.width,Ss.height,X0,Xl);for(var Tp=ga.measuredBounds,kc=Math.max(Tp.width+ph,0),Wh=Math.max(Tp.height+Wg,0),gh=0,Pp=0;Pp<ga.rowSpan&&!(ga.row+Pp>=a.rowCount);Pp++)oi=a.Fb(ga.row+Pp),gh+=oi.total||0;if(gh<Wh){var Fd=Wh-gh,Xc=Wh-gh;if(ga.spanAllocation!==null)for(var Bd=ga.spanAllocation,ud=0;ud<ga.rowSpan&&!(0>=Fd)&&!(ga.row+ud>=a.rowCount);ud++){oi=a.Fb(ga.row+ud);var _d=oi.oa||0,Zh=Bd(ga,oi,Xc);oi.actual=Math.min(oi.maximum,_d+Zh),oi.oa!==_d&&(Fd-=oi.oa-_d)}for(;0<Fd;){var Sc=oi.oa||0;if(isNaN(oi.height)&&oi.maximum>Sc&&(oi.actual=Math.min(oi.maximum,Sc+Fd),oi.oa!==Sc&&(Fd-=oi.oa-Sc)),oi.index===0)break;oi=a.Fb(oi.index-1)}}for(var wf=0,Ud=0;Ud<ga.columnSpan&&!(ga.column+Ud>=a.columnCount);Ud++)oi=a.Eb(ga.column+Ud),wf+=oi.total||0;if(wf<kc){var Cf=kc-wf,Wy=kc-wf;if(ga.spanAllocation!==null)for(var cd=ga.spanAllocation,Kh=0;Kh<ga.columnSpan&&!(0>=Cf)&&!(ga.column+Kh>=a.columnCount);Kh++){oi=a.Eb(ga.column+Kh);var Zg=oi.oa||0,Zy=cd(ga,oi,Wy);oi.actual=Math.min(oi.maximum,Zg+Zy),oi.oa!==Zg&&(Cf-=oi.oa-Zg)}for(;0<Cf;){var Q0=oi.oa||0;if(isNaN(oi.width)&&oi.maximum>Q0&&(oi.actual=Math.min(oi.maximum,Q0+Cf),oi.oa!==Q0&&(Cf-=oi.oa-Q0)),oi.index===0)break;oi=a.Eb(oi.index-1)}}}}Ai(Nt),en.free(ld),en.free(Ss),yc!==void 0&&Ai(yc),Tu!==void 0&&Ai(Tu);var Tf=0,Pf=0,J0=a.desiredSize,EE=a.maxSize;Qs=xl(a,!0);var Kg=od=Kc=0,Yg=0;z=a.columnCount;for(var q0=0;q0<z;q0++)ki[q0]!==void 0&&(oi=a.Eb(q0),isFinite(oi.width)?(Kg+=oi.width,Kg+=oi.Wc()):Mm(oi)===og?(Kg+=oi.oa,Kg+=oi.Wc()):oi.oa!==0&&(Kc+=oi.oa,Kc+=oi.Wc()));isFinite(J0.width)?Tf=Math.min(J0.width,EE.width):Tf=Qs!==hi&&isFinite(y)?y:Kc,Tf=Math.max(Tf,a.minSize.width),Tf=Math.max(Tf-Kg,0);for(var Ob=Kc===0?1:Math.max(Tf/Kc,1),$0=0;$0<z;$0++)ki[$0]!==void 0&&(oi=a.Eb($0),isFinite(oi.width)||Mm(oi)===og||(oi.actual=oi.oa*Ob),oi.position=x.width,oi.oa!==0&&(x.width+=oi.oa,x.width+=oi.Wc()));z=a.rowCount;for(var ev=0;ev<z;ev++)Xi[ev]!==void 0&&(oi=a.Fb(ev),isFinite(oi.height)?(Yg+=oi.height,Yg+=oi.Wc()):Mm(oi)===og?(Yg+=oi.oa,Yg+=oi.Wc()):oi.oa!==0&&(od+=oi.oa,od+=oi.Wc()));isFinite(J0.height)?Pf=Math.min(J0.height,EE.height):Pf=Qs!==hi&&isFinite(E)?E:od,Pf=Math.max(Pf,a.minSize.height),Pf=Math.max(Pf-Yg,0);for(var Rb=od===0?1:Math.max(Pf/od,1),tv=0;tv<z;tv++)Xi[tv]!==void 0&&(oi=a.Fb(tv),isFinite(oi.height)||Mm(oi)===og||(oi.actual=oi.oa*Rb),oi.position=x.height,oi.oa!==0&&(x.height+=oi.oa,x.height+=oi.Wc()));z=re.length;for(var Ky=0;Ky<z;Ky++){var Xg=re[Ky],Yy=0,Xy=0;Xg.type===wi.TableRow?(Yy=x.width,oi=a.Fb(Xg.row),Xy=oi.actual):(oi=a.Eb(Xg.column),Yy=oi.actual,Xy=x.height),Xg.measuredBounds.h(0,0,Yy,Xy),Fa(Xg,!1)}Ai(re),a.inRowsCols=Xe},xm.prototype.arrange=function(a,y,E){var b=y.length,x=a.padding,z=x.left;x=x.top;var ne=a.inRowsCols;if(ne!==null){for(var re,se,de=ne.length,pe=0,Se=0;Se<de;Se++)ne[Se]&&(pe=Math.max(pe,ne[Se].length));se=a.rowDefs,re=a.colDefs;var Ae=Se=0,Re=Math.min(a.topIndex,de-1);if(0<se.length){for(;Re!==de&&(se[Re]===void 0||se[Re].oa===0);)Re++;Re=Math.max(Math.min(Re,de-1),0),Se=-se[Re].position}var Ue=Math.min(a.leftIndex,pe-1);if(0<re.length){for(;Ue!==pe&&(re[Ue]===void 0||re[Ue].oa===0);)Ue++;Ue=Math.max(Math.min(Ue,pe-1),0),Ae=-re[Ue].position}for(var Xe=0,bt=0;Xe!==de&&se[Xe]===void 0;)Xe++;for(;bt!==de&&re[bt]===void 0;)bt++;pe=a.part,a.Fb(Xe),a.Eb(bt);for(var ft=0;ft<y.length;ft++){var Pt=y[ft];if(Pt instanceof wi&&Pt.visible&&bd(Pt)){if(Pt.type===wi.TableRow){re=a.Fb(Pt.row);var Nt=a.Eb(bt)}else re=a.Fb(Xe),Nt=a.Eb(Pt.column);se=re.position+Se+x,re.oa!==0&&(se+=re.Io(Math.max(Xe,Re))),re=Nt.position+Ae+z,Nt.oa!==0&&(re+=Nt.Io(Math.max(bt,Ue))),Nt=Pt.measuredBounds,Pt.Uk(),Pt.actualBounds.ka();var Dt=Pt.actualBounds,Yt=xn.allocAt(Dt.x,Dt.y,Dt.width,Dt.height);Dt.x=Pt.type===wi.TableRow?z:re,Dt.y=Pt.type===wi.TableColumn?x:se,Dt.width=Nt.width,Dt.height=Nt.height,Pt.actualBounds.freeze(),Fc(Pt,!1),Cr(Yt,Dt)||pe===null||(pe.oh(),Pt.Pn(pe)),xn.free(Yt)}}for(ft=en.alloc(),Pt=0;Pt<de;Pt++)if(ne[Pt]){for(pe=ne[Pt].length,Nt=a.Fb(Pt),se=Nt.position+Se+x,Nt.oa!==0&&(se+=Nt.Io(Math.max(Xe,Re))),Dt=0;Dt<pe;Dt++)if(ne[Pt][Dt]){Yt=a.Eb(Dt),re=Yt.position+Ae+z,Yt.oa!==0&&(re+=Yt.Io(Math.max(bt,Ue)));for(var wn=ne[Pt][Dt],zi=wn.length,er=0;er<zi;er++){var Xi=wn[er],ki=Xi.measuredBounds;ft.h(0,0);for(var oi=1;oi<Xi.rowSpan&&!(Pt+oi>=a.rowCount);oi++){var kr=a.Fb(Pt+oi);kr.oa!==0&&(ft.height+=kr.total)}for(oi=1;oi<Xi.columnSpan&&!(Dt+oi>=a.columnCount);oi++)kr=a.Eb(Dt+oi),kr.oa!==0&&(ft.width+=kr.total);var Er=Yt.oa+ft.width,mo=Nt.oa+ft.height;oi=re,kr=se;var Uo=Er,ts=mo,os=re,Ys=se,ns=Er,Id=mo;re+Er>E.width&&(ns=Math.max(E.width-re,0)),se+mo>E.height&&(Id=Math.max(E.height-se,0));var ka=Xi.alignment;if(ka.Xb()){ka=a.defaultAlignment,ka.sb()||(ka=Dr);var gc=ka.x,Xs=ka.y,Md=ka.offsetX;ka=ka.offsetY;var uu=Yt.alignment,Fu=Nt.alignment;uu.sb()&&(gc=uu.x,Md=uu.offsetX),Fu.sb()&&(Xs=Fu.y,ka=Fu.offsetY)}else gc=ka.x,Xs=ka.y,Md=ka.offsetX,ka=ka.offsetY;(isNaN(gc)||isNaN(Xs))&&(Xs=gc=.5,ka=Md=0),uu=ki.width,Fu=ki.height;var Zl=Xi.margin,Rl=Zl.left+Zl.right,lh=Zl.top+Zl.bottom,mc=cc(Xi,Nt,Yt,!1);!isNaN(Xi.desiredSize.width)||mc!==xi&&mc!==lr||(uu=Math.max(Er-Rl,0)),!isNaN(Xi.desiredSize.height)||mc!==xi&&mc!==fr||(Fu=Math.max(mo-lh,0)),Er=Xi.maxSize,mo=Xi.minSize,uu=Math.min(Er.width,uu),Fu=Math.min(Er.height,Fu),uu=Math.max(mo.width,uu),Fu=Math.max(mo.height,Fu),Er=Fu+lh,oi+=Uo*gc-(uu+Rl)*gc+Md+Zl.left,kr+=ts*Xs-Er*Xs+ka+Zl.top,Xi.visible&&(Do(os,Ys,ns,Id,oi,kr,ki.width,ki.height)?Xi.arrange(oi,kr,uu,Fu):Xi.arrange(oi,kr,uu,Fu,new xn(os,Ys,ns,Id)))}}}for(en.free(ft),a=0;a<b;a++)E=y[a],z=E instanceof wi?E:null,z!==null&&bd(z)&&(z=E.actualBounds,E.naturalBounds.ka(),E.naturalBounds.h(0,0,z.width,z.height),E.naturalBounds.freeze())}};function wm(){this.xa="Base"}dn(wm,za),wm.prototype.measure=function(){},wm.prototype.arrange=function(){};function Cm(){this.xa="Base"}dn(Cm,za),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Tm(){this.xa="Base"}dn(Tm,za),Tm.prototype.measure=function(a,y,E,b,x,z,ne){1<b.length&&Ct("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,ne);var re=b.measuredBounds,se=b.margin,de=se.right+se.left;if(se=se.top+se.bottom,isFinite(y)||isFinite(E)){var pe=b.scale,Se=re.width;re=re.height;var Ae=Math.max(y-de,0),Re=Math.max(E-se,0),Ue=1;a.viewboxStretch===rr?Se!==0&&re!==0&&(Ue=Math.min(Ae/Se,Re/re)):Se!==0&&re!==0&&(Ue=Math.max(Ae/Se,Re/re)),Ue===0&&(Ue=1e-4),b.Ca*=Ue,pe!==b.scale&&(Fa(b,!0),b.measure(1/0,1/0,z,ne))}re=b.measuredBounds,x.width=isFinite(y)?y:Math.max(re.width+de,0),x.height=isFinite(E)?E:Math.max(re.height+se,0)},Tm.prototype.arrange=function(a,y,E){y=y[0];var b=y.measuredBounds,x=y.margin,z=Math.max(b.width+(x.right+x.left),0);x=Math.max(b.height+(x.top+x.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=Dr),y.arrange(E.width*ne.x-z*ne.x+ne.offsetX,E.height*ne.y-x*ne.y+ne.offsetY,b.width,b.height)};function ng(){this.xa="Base"}dn(ng,za),ng.prototype.measure=function(){},ng.prototype.arrange=function(){},ng.prototype.gc=function(a,y,E){E=a.Df()*E.scale,0>=E&&(E=1);var b=a.gridCellSize,x=b.width;b=b.height;var z=a.naturalBounds,ne=a.actualBounds,re=z.width,se=z.height,de=Math.ceil(re/x),pe=Math.ceil(se/b),Se=a.gridOrigin,Ae=Se.x;Se=Se.y,y.save(),y.beginPath(),y.rect(0,0,re,se),y.clip(),y.Se();for(var Re=[],Ue=a.O.s,Xe=Ue.length,bt=0;bt<Xe;bt++){var ft=Ue[bt],Pt=[];if(Re.push(Pt),ft.visible){var Nt=ft.interval;if(!(0>Nt)){ft=yv(ft.figure);for(var Dt=0;Dt<Xe;Dt++)if(Dt!==bt){var Yt=Ue[Dt];Yt.visible&&yv(Yt.figure)===ft&&(Yt=Yt.interval,Yt>Nt&&Pt.push(Yt))}}}}for(Ue=a.O.s,Xe=Ue.length,bt=0;bt<Xe;bt++){var wn=Ue[bt];if(wn.visible&&(Pt=wn.interval||1,ft=Math.abs(Pt),!(2>x*ft*E))){if(Nt=wn.segmentIndex,(!isFinite(Nt)||isNaN(Nt))&&(Nt=0),0>Nt&&(Nt=ft-Math.min(-Nt,ft)),Nt=Math.round(Nt%ft),ft=wn.opacity,Dt=1,ft!==1){if(ft===0)continue;Dt=y.globalAlpha,y.globalAlpha=Dt*ft}Yt=Re[bt];var zi=!1,er=wn.strokeDashArray;if(er!==null&&(zi=!0,y.js(er,wn.strokeDashOffset)),wn.figure==="LineV"&&wn.stroke!==null&&0<wn.strokeWidth){for(y.lineWidth=wn.strokeWidth,ha(a,y,wn.stroke,!1,!1,z,ne),y.beginPath(),er=wn=Math.floor((Ae-x)/x);er<=wn+de;er++){var Xi=er*x+Ae;0<=Xi&&Xi<=re&&Pm(er,Pt,Nt,Yt)&&(y.moveTo(Xi,0),y.lineTo(Xi,se))}y.stroke(),y.Se()}else if(wn.figure==="LineH"&&wn.stroke!==null&&0<wn.strokeWidth){for(y.lineWidth=wn.strokeWidth,ha(a,y,wn.stroke,!1,!1,z,ne),y.beginPath(),er=wn=Math.floor((Se-b)/b);er<=wn+pe;er++)Xi=er*b+Se,0<=Xi&&Xi<=se&&Pm(er,Pt,Nt,Yt)&&(y.moveTo(0,Xi),y.lineTo(re,Xi));y.stroke(),y.Se()}else if(wn.figure==="BarV"&&wn.fill!==null)for(ha(a,y,wn.fill,!0,!1,z,ne),wn=wn.width,isNaN(wn)&&(wn=x),Xi=er=Math.floor((Ae-x)/x);Xi<=er+de;Xi++){var ki=Xi*x+Ae;0<=ki+wn&&ki<=re&&Pm(Xi,Pt,Nt,Yt)&&y.fillRect(ki,0,wn,se)}else if(wn.figure==="BarH"&&wn.fill!==null)for(ha(a,y,wn.fill,!0,!1,z,ne),wn=wn.height,isNaN(wn)&&(wn=b),Xi=er=Math.floor((Se-b)/b);Xi<=er+pe;Xi++)ki=Xi*b+Se,0<=ki+wn&&ki<=se&&Pm(Xi,Pt,Nt,Yt)&&y.fillRect(0,ki,re,wn);zi&&y.fs(),ft!==1&&(y.globalAlpha=Dt)}}y.restore(),y.Vc(!1)};function Pm(a,y,E,b){if(0>y)return a%y===E;if(a%y!==E)return!1;y=b.length;for(var x=0;x<y;x++)if(a%b[x]===E)return!1;return!0}function Am(){this.xa="Base"}dn(Am,za),Am.prototype.measure=function(a,y,E,b,x){var z=b.length;if(a instanceof co||a instanceof Li){var ne=null,re=null;if(a instanceof Li&&(ne=a),a instanceof co&&(re=a,ne=re.adornedPart,a.j===null&&(a.j=[])),ne instanceof Li){var se=ne;if(z===0)so(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof co?null:ne.path;y=ne.routeBounds,E=a.jg,E.h(0,0,y.width,y.height);var pe=se.points,Se=ne.pointsCount;re!==null?re.Ul(!1):ne!==null&&ne.Ul(!1),re=y.width;var Ae=y.height,Re=a.j;if(Re.length=0,de!==null){lS(a,re,Ae,de);var Ue=de.measuredBounds;E.ed(Ue),Re.push(Ue)}Ue=mr.alloc();for(var Xe=rt.alloc(),bt=rt.alloc(),ft=0;ft<z;ft++){var Pt=b[ft];if(Pt!==de)if(Pt.isPanelMain&&Pt instanceof Hr){lS(a,re,Ae,Pt);var Nt=Pt.measuredBounds;E.ed(Nt),Re.push(Nt)}else if(2>Se)Pt.measure(1/0,1/0,0,0),Nt=Pt.measuredBounds,E.ed(Nt),Re.push(Nt);else{var Dt=Pt.segmentIndex,Yt=Pt.segmentFraction,wn=Pt.alignmentFocus;wn.Mc()&&(wn=Dr);var zi=Pt.segmentOrientation,er=Pt.segmentOffset;if(isNaN(Dt)){var Xi=se.ua;Nt=Pi(),Xi.Qu(Yt,Nt);var ki=rt.allocAt(Nt[0],Nt[1]);if(ki.add(se.i(0)),Xi.type===Ti.j?ki.offset(-Xi.startX,-Xi.startY):(Xi=Xi.figures.first(),Xi!==null&&ki.offset(-Xi.startX,-Xi.startY)),Xi=Nt[2],zi!==sl){var oi=se.computeAngle(Pt,zi,Xi);Pt.Kb=oi}oi=ki.x-y.x;var kr=ki.y-y.y;rt.free(ki),Ai(Nt)}else if(Dt<-Se||Dt>=Se)Nt=rt.alloc(),se.vg(),se.computeMidPoint(Nt),Xi=se.midAngle,zi!==sl&&(oi=se.computeAngle(Pt,zi,Xi),Pt.Kb=oi),oi=Nt.x-y.x,kr=Nt.y-y.y,rt.free(Nt);else{if(oi=0,0<=Dt?(kr=pe.M(Dt),Nt=Dt<Se-1?pe.M(Dt+1):kr):(oi=Se+Dt,kr=pe.M(oi),Nt=0<oi?pe.M(oi-1):kr),kr.Xa(Nt)){0<=Dt?(Xi=0<Dt?pe.M(Dt-1):kr,oi=Dt<Se-2?pe.M(Dt+2):Nt):(Xi=oi<Se-1?pe.M(oi+1):kr,oi=1<oi?pe.M(oi-2):Nt),ki=Xi.Bf(kr);var Er=Nt.Bf(oi);Xi=ki>Er+10?0<=Dt?Xi.ab(kr):kr.ab(Xi):Er>ki+10?0<=Dt?Nt.ab(oi):oi.ab(Nt):0<=Dt?Xi.ab(oi):oi.ab(Xi)}else Xi=0<=Dt?kr.ab(Nt):Nt.ab(kr);zi!==sl&&(oi=se.computeAngle(Pt,zi,Xi),Pt.Kb=oi),oi=kr.x+(Nt.x-kr.x)*Yt-y.x,kr=kr.y+(Nt.y-kr.y)*Yt-y.y}Pt.measure(1/0,1/0,0,0),Nt=Pt.measuredBounds,ki=Pt.naturalBounds;var mo=0;Pt instanceof Hr&&(mo=Pt.strokeWidth),Er=ki.width+mo;var Uo=ki.height+mo;Ue.reset(),Ue.translate(-Nt.x,-Nt.y),Ue.scale(Pt.scale,Pt.scale),Ue.rotate(zi===sl?Pt.angle:Xi,Er/2,Uo/2),zi!==gg&&zi!==vg||Ue.rotate(90,Er/2,Uo/2),zi!==mg&&zi!==yg||Ue.rotate(-90,Er/2,Uo/2),zi===i0&&(45<Xi&&135>Xi||225<Xi&&315>Xi)&&Ue.rotate(-Xi,Er/2,Uo/2),ki=new xn(0,0,Er,Uo),Xe.xi(ki,wn),Ue.Ga(Xe),wn=-Xe.x+mo/2*Pt.scale,Pt=-Xe.y+mo/2*Pt.scale,bt.assign(er),mo=isNaN(er.x);var ts=isNaN(er.y);if(mo||ts){Er=Er/2+3,Uo=Uo/2+3;var os=45<=Xi&&135>=Xi,Ys=225<=Xi&&315>=Xi;zi===sl&&(os||Ys)?(bt.x=ts?Er:er.y,bt.y=mo?Uo:er.x,os?0<=Dt||isNaN(Dt)&&.5>Yt||!mo||(bt.y=-Uo):Ys&&((0<=Dt||isNaN(Dt)&&.5>Yt)&&mo&&(bt.y=-Uo),ts&&(bt.x=-Er))):(mo&&(bt.x=0<=Dt||isNaN(Dt)&&.5>Yt?Er:-Er),ts&&(bt.y=-Uo),bt.rotate(Xi))}else bt.rotate(Xi);oi+=bt.x,kr+=bt.y,ki.set(Nt),ki.h(oi+wn,kr+Pt,Nt.width,Nt.height),Re.push(ki),E.ed(ki)}}if(ne!==null)for(b=ne.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=E,a.position.h(y.x+E.x,y.y+E.y),so(x,E.width||0,E.height||0),mr.free(Ue),rt.free(Xe),rt.free(bt)}}}},Am.prototype.arrange=function(a,y){var E=y.length;if(a instanceof co||a instanceof Li){var b=a,x=null;a instanceof co&&(x=a,b=x.adornedPart);var z=a instanceof co?null:b.path,ne=a.j;if(ne.length!==0){var re=0;if(z!==null&&re<ne.length){var se=ne[re];re++,z.arrange(se.x-a.jg.x,se.y-a.jg.y,se.width,se.height)}for(se=0;se<E;se++){var de=y[se];if(de!==z&&re<ne.length){var pe=ne[re];re++,de.arrange(pe.x-a.jg.x,pe.y-a.jg.y,pe.width,pe.height)}}}if(y=b.points,E=y.count,2<=E&&a instanceof Li)for(z=a.labelNodes;z.next();){var Se=a;ne=z.value,re=ne.segmentIndex,se=ne.segmentFraction;var Ae=ne.alignmentFocus;if(de=ne.segmentOrientation,pe=ne.segmentOffset,isNaN(re)){var Re=Se.ua,Ue=Pi();Re.Qu(se,Ue);var Xe=rt.allocAt(Ue[0],Ue[1]);Xe.add(Se.i(0)),Re.type===Ti.j||(Re=Re.figures.first()),Xe.offset(-Re.startX,-Re.startY),Re=Ue[2],de!==sl&&(Se=Se.computeAngle(ne,de,Re),ne.angle=Se),Se=Xe.x;var bt=Xe.y;rt.free(Xe),Ai(Ue)}else if(re<-E||re>=E)Ue=rt.alloc(),Re=Se,bt=Ue,Re.vg(),Re.computeMidPoint(bt),Re=Se.midAngle,de!==sl&&(Se=Se.computeAngle(ne,de,Re),ne.angle=Se),Se=Ue.x,bt=Ue.y,rt.free(Ue);else{if(Xe=0,0<=re?(Ue=y.s[re],bt=re<E-1?y.s[re+1]:Ue):(Xe=E+re,Ue=y.s[Xe],bt=0<Xe?y.s[Xe-1]:Ue),Ue.Xa(bt)){0<=re?(Re=0<re?y.s[re-1]:Ue,Xe=re<E-2?y.s[re+2]:bt):(Re=Xe<E-1?y.s[Xe+1]:Ue,Xe=1<Xe?y.s[Xe-2]:bt);var ft=Re.Bf(Ue),Pt=bt.Bf(Xe);Re=ft>Pt+10?0<=re?Re.ab(Ue):Ue.ab(Re):Pt>ft+10?0<=re?bt.ab(Xe):Xe.ab(bt):0<=re?Re.ab(Xe):Xe.ab(Re)}else Re=0<=re?Ue.ab(bt):bt.ab(Ue);de!==sl&&(Se=Se.computeAngle(ne,de,Re),ne.angle=Se),Se=Ue.x+(bt.x-Ue.x)*se,bt=Ue.y+(bt.y-Ue.y)*se}if(Ae.ys())ne.location=new rt(Se,bt);else{Ae.Mc()&&(Ae=Dr),Ue=mr.alloc(),Ue.reset(),Ue.scale(ne.scale,ne.scale),Ue.rotate(ne.angle,0,0);var Nt=ne.naturalBounds;Xe=xn.allocAt(0,0,Nt.width,Nt.height),ft=rt.alloc(),ft.xi(Xe,Ae),Ue.Ga(ft),Ae=-ft.x,Pt=-ft.y;var Dt=Nt.width,Yt=Nt.height;Nt=rt.alloc(),Nt.assign(pe);var wn=isNaN(pe.x),zi=isNaN(pe.y);if(wn||zi){Dt=Dt/2+3,Yt=Yt/2+3;var er=45<=Re&&135>=Re,Xi=225<=Re&&315>=Re;de===sl&&(er||Xi)?(Nt.x=zi?Dt:pe.y,Nt.y=wn?Yt:pe.x,er?0<=re||isNaN(re)&&.5>se||!wn||(Nt.y=-Yt):Xi&&((0<=re||isNaN(re)&&.5>se)&&wn&&(Nt.y=-Yt),zi&&(Nt.x=-Dt))):(wn&&(Nt.x=0<=re||isNaN(re)&&.5>se?Dt:-Dt),zi&&(Nt.y=-Yt),Nt.rotate(Re))}else Nt.rotate(Re);Se+=Nt.x,bt+=Nt.y,Ue.pp(Xe),Ae+=Xe.x,Pt+=Xe.y,re=rt.allocAt(Se+Ae,bt+Pt),ne.move(re),rt.free(re),rt.free(Nt),rt.free(ft),xn.free(Xe),mr.free(Ue)}}x!==null?x.Ul(!1):b.Ul(!1),b=_S(a),a.location.h(a.position.x+b.x,a.position.y+b.y),rt.free(b)}};function lS(a,y,E,b){if(ou(b)!==!1){var x=b.strokeWidth;x===0&&a instanceof co&&a.type===wi.Link&&a.adornedObject instanceof Hr&&(x=a.adornedObject.strokeWidth),x*=b.Ca,a instanceof Li&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):a instanceof co&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):b.Ge(-(x/2),-(x/2),y+x,E+x),x=b.desiredSize,x.w()||b.ua===null?b.dc.h(0,0,x.width,x.height):b.dc.assign(b.ua.bounds),Fa(b,!1)}}function ig(){this.xa="Base"}dn(ig,za),ig.prototype.measure=function(a,y,E,b,x,z,ne){var re=a.Pb();a.graduatedBounds=[];var se=re.margin,de=se.right+se.left,pe=se.top+se.bottom;re.measure(y,E,z,ne);var Se=re.measuredBounds,Ae=new xn(-se.left,-se.top,Math.max(Se.width+de,0),Math.max(Se.height+pe,0));a.graduatedBounds.push(Ae),x.assign(Ae);for(var Re=re.geometry,Ue=re.strokeWidth,Xe=Re.flattenedSegments,bt=Re.flattenedLengths,ft=Re.flattenedTotalLength,Pt=Xe.length,Nt=0,Dt=0,Yt=Pi(),wn=0;wn<Pt;wn++){var zi=Xe[wn],er=[];Dt=Nt=0;for(var Xi=zi.length,ki=0;ki<Xi;ki+=2){var oi=zi[ki],kr=zi[ki+1];if(ki!==0){var Er=180*Math.atan2(kr-Dt,oi-Nt)/Math.PI;0>Er&&(Er+=360),er.push(Er)}Nt=oi,Dt=kr}Yt.push(er)}if(a.graduatedIntervals===null){for(var mo=[],Uo=a.O.s,ts=Uo.length,os=0;os<ts;os++){var Ys=Uo[os],ns=[];if(mo.push(ns),Ys.visible){var Id=Ys.interval;if(!(0>Id)){for(var ka=0;ka<ts;ka++)if(ka!==os){var gc=Uo[ka];if(gc.visible&&Ys.constructor===gc.constructor){var Xs=gc.interval;Xs>Id&&ns.push(Xs)}}}}}a.graduatedIntervals=mo}var Md=a.graduatedIntervals,uu=a.O.s,Fu=uu.length,Zl=0,Rl=0,lh=ft;a.graduatedMarks=[];for(var mc,vp=0;vp<Fu;vp++){var Kl=uu[vp];if(mc=[],Kl.visible&&Kl!==re){var Qs=Math.abs(Kl.interval),jg=a.graduatedTickUnit;if(!(2>jg*Qs*ft/a.graduatedRange&&Kl.graduatedSkip===null)){var Sf=bt[0][0],Pc=0,Dl=0;Rl=ft*Kl.graduatedStart-1e-4,lh=ft*Kl.graduatedEnd+1e-4;var zh=jg*Qs,Yl=a.graduatedTickBase;if(Yl<a.graduatedMin){var uh=(a.graduatedMin-Yl)/zh;uh=uh%1===0?uh:Math.floor(uh+1),Yl+=uh*zh}else Yl>a.graduatedMin+zh&&(Yl-=Math.floor((Yl-a.graduatedMin)/zh)*zh);for(var W0=Md[vp],Gg=Yl,Gy=1e-6*a.graduatedMax,Kc=1;Yl<=a.graduatedMax+Gy;Kc++){e:{for(var od=W0.length,Ef=0;Ef<od;Ef++){var ch=(Yl-a.graduatedTickBase)%(W0[Ef]*a.graduatedTickUnit),yp=1e-6*a.graduatedTickUnit;if(ch<yp&&ch>-yp){var dh=!1;break e}}dh=!0}if(dh&&(Yl>a.graduatedMax&&(Yl=a.graduatedMax),Kl.graduatedSkip===null||Kl instanceof Ho&&!Kl.graduatedSkip(Yl,Kl)||Kl instanceof Hr&&!Kl.graduatedSkip(Yl,Kl))&&(Zl=(Yl-a.graduatedMin)*ft/a.graduatedRange,Zl>ft&&(Zl=ft),Rl<=Zl&&Zl<=lh)){for(var Yc=Yt[Pc][Dl],Od=bt[Pc][Dl];Pc<bt.length;){for(;Zl>Sf&&Dl<bt[Pc].length-1;)Dl++,Yc=Yt[Pc][Dl],Od=bt[Pc][Dl],Sf+=Od;if(Zl<=Sf)break;Pc++,Dl=0,Yc=Yt[Pc][Dl],Od=bt[Pc][Dl],Sf+=Od}var Fl=Xe[Pc],Ac=Fl[2*Dl],Z0=Fl[2*Dl+1],ad=(Zl-(Sf-Od))/Od,Sp=new rt(Ac+(Fl[2*Dl+2]-Ac)*ad+Ue/2-Re.bounds.x,Z0+(Fl[2*Dl+3]-Z0)*ad+Ue/2-Re.bounds.y);Sp.scale(re.scale,re.scale);e:{var vc=Yc,jh=Yt[Pc];if(!(.5005>ad&&.4995<ad)){var Nc=vc;if(.5>ad?0<Dl?Nc=jh[Dl-1]:Qt.$(Fl[0],Fl[Fl.length-2])&&Qt.$(Fl[1],Fl[Fl.length-1])&&(Nc=jh[jh.length-1]):.5<ad&&(Dl+1<jh.length?Nc=jh[Dl+1]:Qt.$(Fl[0],Fl[Fl.length-2])&&Qt.$(Fl[1],Fl[Fl.length-1])&&(Nc=jh[0])),vc!==Nc){var bf=Math.abs(vc-Nc);if(180<bf&&(vc<Nc?vc+=360:Nc+=360,bf=Math.abs(vc-Nc)),5e-4>ad||.9995<ad){Yc=(vc+Nc)/2%360;break e}if(10>bf){var Ep=1-Math.abs(.5-ad);Yc=(vc*Ep+Nc*(1-Ep))%360;break e}}}Yc=vc}if(Kl instanceof Ho){var nc="";Kl.graduatedFunction!==null?(nc=Kl.graduatedFunction(Yl,Kl),nc=nc!=null?nc.toString():""):nc=(+Yl.toFixed(2)).toString(),nc!==""&&mc.push({$l:Sp,angle:Yc,text:nc})}else mc.push({$l:Sp,angle:Yc})}Yl=Gg+Kc*zh}}}a.graduatedMarks.push(mc)}Ai(Yt);var Ss=a.graduatedMarks;if(Ss!==null)for(var Vg=b.length,hl=0;hl<Vg;hl++){var La=b[hl],fl=Ss[hl];if(La.visible&&La!==re&&fl.length!==0){if(La instanceof Hr){var sd=a,Rd=x,Gh=La.alignmentFocus;Gh.Mc()&&(Gh=uo);var Vy=La.angle;La.Kb=0,La.measure(1/0,1/0,0,0),La.Kb=Vy;var K0=La.measuredBounds,bp=K0.width,Vh=K0.height,xf=xn.allocAt(0,0,bp,Vh),Bl=rt.alloc();Bl.xi(xf,Gh),xn.free(xf);for(var ld=-Bl.x,yc=-Bl.y,Tu=new xn,hh=fl.length,xp=0;xp<hh;xp++)for(var fh=fl[xp],Y0=fh.$l.x,wp=fh.$l.y,ga=fh.angle,ic=0;4>ic;ic++){switch(ic){case 0:Bl.h(ld,yc);break;case 1:Bl.h(ld+bp,yc);break;case 2:Bl.h(ld,yc+Vh);break;case 3:Bl.h(ld+bp,yc+Vh)}Bl.rotate(ga+La.angle),Bl.offset(Y0,wp),xp===0&&ic===0?Tu.h(Bl.x,Bl.y,0,0):Tu.Ye(Bl),Bl.offset(-Y0,-wp),Bl.rotate(-ga-La.angle)}rt.free(Bl),sd.graduatedBounds!==null&&sd.graduatedBounds.push(Tu),Jr(Rd,Tu.x,Tu.y,Tu.width,Tu.height)}else if(La instanceof Ho){var Bu=a,X0=x;Bu.temporaryTextBlock===null&&(Bu.temporaryTextBlock=new Ho);var Xl=Bu.temporaryTextBlock;wS(Xl,La);var Dd=La.alignmentFocus;Dd.Mc()&&(Dd=uo);for(var _u=La.segmentOrientation,Cp=La.segmentOffset,ph=new xn,Wg=0,Tp=0,kc=0,Wh=0,gh=0,Pp=fl.length,Fd=0;Fd<Pp;Fd++){var Xc=fl[Fd];Wg=Xc.$l.x,Tp=Xc.$l.y,kc=Xc.angle,gh=Wh=La.angle,_u!==sl&&(gh=_u===pg||_u===n0?kc+La.angle:kc,Wh=Li.computeAngle(_u,gh)),Xl.Kb=Wh,Xl.text=Xc.text||"",Xl.measure(1/0,1/0,0,0);var Bd=Xl.measuredBounds,ud=Xl.naturalBounds,_d=ud.width,Zh=ud.height,Sc=mr.alloc();Sc.reset(),Sc.translate(-Bd.x,-Bd.y),Sc.scale(Xl.scale,Xl.scale),Sc.rotate(gh,_d/2,Zh/2),_u!==gg&&_u!==vg||Sc.rotate(90,_d/2,Zh/2),_u!==mg&&_u!==yg||Sc.rotate(-90,_d/2,Zh/2),_u===i0&&(45<kc&&135>kc||225<kc&&315>kc)&&Sc.rotate(-kc,_d/2,Zh/2);var wf=xn.allocAt(0,0,_d,Zh),Ud=rt.alloc();Ud.xi(wf,Dd),Sc.Ga(Ud);var Cf=-Ud.x,Wy=-Ud.y,cd=rt.alloc();cd.assign(Cp),isNaN(cd.x)&&(cd.x=_d/2+3),isNaN(cd.y)&&(cd.y=-(Zh/2+3)),cd.rotate(kc),Wg+=cd.x+Cf,Tp+=cd.y+Wy;var Kh=new xn(Wg,Tp,Bd.width,Bd.height),Zg=new xn(Bd.x,Bd.y,Bd.width,Bd.height),Zy=new xn(ud.x,ud.y,ud.width,ud.height);Xc.Sz=Wh,Xc.lineCount=Xl.lineCount,Xc.lines=[Xl.Cb,Xl.Ih,Xl.df,Xl.Le,Xl.Qc,Xl.Qb,Xl.ze],Xc.actualBounds=Kh,Xc.measuredBounds=Zg,Xc.naturalBounds=Zy,Fd===0?ph.assign(Kh):ph.ed(Kh),rt.free(cd),rt.free(Ud),xn.free(wf),mr.free(Sc)}Bu.graduatedBounds!==null&&Bu.graduatedBounds.push(ph),Jr(X0,ph.x,ph.y,ph.width,ph.height)}Fa(La,!1)}}},ig.prototype.arrange=function(a,y,E){if(a.graduatedBounds!==null){var b=a.Pb(),x=a.graduatedMarks;if(x!==null){var z=a.graduatedBounds,ne=0,re=z[ne];ne++,b!==null&&b.arrange(re.x-E.x,re.y-E.y,re.width,re.height);for(var se=y.length,de=0;de<se;de++){var pe=y[de];re=x[de],pe.visible&&pe!==b&&re.length!==0&&(re=z[ne],ne++,pe.arrange(re.x-E.x,re.y-E.y,re.width,re.height))}a.graduatedBounds=null}}},ig.prototype.gc=function(a,y,E){var b=E.$i;E.$i=!0;var x=a.naturalBounds,z=x.width,ne=x.height;x=y instanceof Gl,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ne+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,E),ne=a.Df()*E.scale,0>=ne&&(ne=1);for(var re=z.actualBounds,se=a.O.s,de=a.graduatedMarks,pe=se.length,Se=0;Se<pe;Se++){var Ae=se[Se],Re=de[Se],Ue=Re.length;if(Ae.visible&&Ae!==z&&Re.length!==0){if(Ae instanceof Hr){if(!(2>a.graduatedTickUnit*Ae.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ae.graduatedSkip===null)){var Xe=Ae.measuredBounds,bt=Ae.strokeWidth*Ae.scale,ft=Ae.alignmentFocus;ft.Mc()&&(ft=uo);for(var Pt=0;Pt<Ue;Pt++){var Nt=Re[Pt].$l,Dt=Re[Pt].angle,Yt=ft,wn=Ae.Ab;wn.reset(),wn.translate(Nt.x+re.x,Nt.y+re.y),wn.rotate(Dt+Ae.angle,0,0),wn.translate(-Xe.width*Yt.x+Yt.offsetX+bt/2,-Xe.height*Yt.y+Yt.offsetY+bt/2),wn.scale(Ae.scale,Ae.scale),Iu(Ae,!1),Ae.wh.set(Ae.Ab),Ae.Kk=Ae.scale,yu(Ae,!1),Ae.gc(y,E),x&&(a.svg.appendChild(Ae.svg),Ae.svg=null),Ae.Ab.reset()}}}else if(Ae instanceof Ho)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ho),Xe=a.temporaryTextBlock,wS(Xe,Ae),bt=0;bt<Ue;bt++)ft=Re[bt],ft.actualBounds&&ft.measuredBounds&&ft.naturalBounds&&(Xe.ec=ft.text||"",Xe.Kb=ft.Sz||0,Xe.Gc=ft.lineCount||0,Pt=ft.lines,Pt!==void 0&&(Xe.Cb=Pt[0],Xe.Ih=Pt[1],Xe.df=Pt[2],Xe.Le=Pt[3],Xe.Qc=Pt[4],Xe.Qb=Pt[5],Xe.ze=Pt[6]),ft.naturalBounds&&(Xe.dc=ft.naturalBounds),ft.actualBounds&&(Pt=ft.actualBounds,Xe.arrange(Pt.x,Pt.y,Pt.width,Pt.height)),Pt=ft.actualBounds,Xe.arrange(Pt.x,Pt.y,Pt.width,Pt.height),Nt=ft.measuredBounds,ft=ft.naturalBounds,Dt=Xe.Ab,Dt.reset(),Dt.translate(Pt.x+re.x,Pt.y+re.y),Dt.translate(-Nt.x,-Nt.y),Xe.no(Dt,ft.x,ft.y,ft.width,ft.height),Iu(Xe,!1),Xe.wh.set(Xe.Ab),Xe.Kk=Xe.scale,yu(Xe,!1),Xe.Ng=Ae.part,Xe.Me=Ae.panel,Xe.gc(y,E),Xe.Me=null,Xe.Ng=null,x&&(a.svg.appendChild(Xe.svg),Xe.svg=null))}}E.$i=b,y.restore(),y.Vc(!0)};function wi(a,y){if(qt.call(this),this.na=null,a===void 0)this.na=wi.Position;else if(typeof a=="string"){var E=Qu.I(a);E!==null&&(this.na=E)}else a instanceof za?this.na=a:a&&(this.na=wi.Position,y=a);this.na===null&&Ct("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===wi.Grid?1048576:0),this.O=new Wn,this.yb=Ua,this.Tm=Ia,this.Uf=Or,this.$g=null,this.$e="",this.jg=new xn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=rr,this.jn=sr,this.kn=Ii,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}dn(wi,qt),wi.prototype.cloneProtected=function(a){qt.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},wi.prototype.Af=function(a){qt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,E=y.length,b=0;b<E;b++)y[b].Me=a;a.$g=null},wi.prototype.copy=function(){var a=qt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b].copy();x.wi(a),x.Ng=null;var z=a.O,ne=z.count;if(z.Gb(ne,x),z=a.part,z!==null){z.Rh=null,x.portId!==null&&z instanceof Gi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(na,"elements",a,null,x,null,ne)}}return a}return null},Me=wi.prototype,Me.toString=function(){return"Panel("+this.type.name+")#"+Sr(this)},Me.Pn=function(a){qt.prototype.Pn.call(this,a);for(var y=this.O.s,E=y.length,b=0;b<E;b++)y[b].Pn(a)},Me.hh=function(a,y){if(this.na===wi.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===wi.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===wi.Table)if(a.yc(),a instanceof Gl){var E=a.yd;a.yd=pm(a,"gojs-ts"),vv(this,a),a.nh.pop(),a.yd=E}else vv(this,a);(E=this.isClipping&&this.na===wi.Spot)&&a.save();for(var b=this.Pb(),x=this.O.s,z=x.length,ne=0;ne<z;ne++){var re=x[ne];E&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),E&&re===b&&(a.clipInsteadOfFill=!1)}E&&(a.restore(),a.Vc(!0))}};function vv(a,y){y.lineCap="butt";var E=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;E!==null&&Nm(a,y,!0,E,!0),b!==null&&Nm(a,y,!1,b,!0),E!==null&&uS(a,y,!0,E),b!==null&&uS(a,y,!1,b),E!==null&&Nm(a,y,!0,E,!1),b!==null&&Nm(a,y,!1,b,!1)}function uS(a,y,E,b){for(var x=b.length,z=a.actualBounds,ne=a.naturalBounds,re=!0,se=0;se<x;se++){var de=b[se];if(de!==void 0&&de.actual!==0)if(re)re=!1;else{if(E){if(de.position>ne.height)continue}else if(de.position>ne.width)continue;var pe=de.separatorStrokeWidth;isNaN(pe)&&(pe=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Se=de.separatorStroke;if(Se===null&&(Se=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),pe!==0&&Se!==null){ha(a,y,Se,!1,!1,ne,z),Se=!1;var Ae=de.separatorDashArray;Ae===null&&(Ae=E?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ae!==null&&(Se=!0,y.js(Ae,0)),y.beginPath(),Ae=de.position+pe,E?Ae>ne.height&&(pe-=Ae-ne.height):Ae>ne.width&&(pe-=Ae-ne.width),de=de.position+pe/2,y.lineWidth=pe,pe=a.yb,E?(de+=pe.top,Ae=ne.width-pe.right,y.moveTo(pe.left,de),y.lineTo(Ae,de)):(de+=pe.left,Ae=ne.height-pe.bottom,y.moveTo(de,pe.top),y.lineTo(de,Ae)),y.stroke(),y.Se(),Se&&y.fs()}}}}function Nm(a,y,E,b,x){for(var z=b.length,ne=a.actualBounds,re=a.naturalBounds,se=cS(a,!0),de=cS(a,!1),pe=0;pe<z;pe++){var Se=b[pe];if(Se!==void 0&&Se.background!==null&&Se.coversSeparators!==x&&Se.actual!==0){var Ae=E?ne.height:ne.width;if(!(Se.position>Ae)){var Re=Se.Wc(),Ue=Se.separatorStrokeWidth;isNaN(Ue)&&(Ue=E?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Xe=Se.separatorStroke;Xe===null&&(Xe=E?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Xe===null||Se.index===(E?se:de))&&(Ue=0),Re-=Ue,Ue=Se.position+Ue,Re+=Se.actual,Ue+Re>Ae&&(Re=Ae-Ue),0>=Re||(Ae=a.yb,ha(a,y,Se.background,!0,!1,re,ne),E?y.fillRect(Ae.left,Ue+Ae.top,ne.width-(Ae.left+Ae.right),Re):y.fillRect(Ue+Ae.left,Ae.top,Re,ne.height-(Ae.top+Ae.bottom)))}}}}function cS(a,y){for(var E=y?a.rowCount:a.columnCount,b=0;b<E;b++){var x=y?a.rowDefs[b]:a.colDefs[b];if(x!==void 0)return x.index}return 0}function yv(a){return a==="LineV"||a==="BarV"}Me.lv=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].lv();this.Uc=!0},Me.kk=function(a,y,E){if(!qt.prototype.kk.call(this,a,y,E))return!1;if(this.type===wi.Table)E=this.svg.getElementsByClassName("gojs-ts"),E=E.length!==0?E[0]:null,E!==null&&(E.innerHTML=""),a.yd=E,vv(this,a),a.yd=null;else if(this.na===wi.Grid||this.na===wi.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;E=this.O.s;for(var b=E.length,x=0;x<b;x++)E[x].gc(a,y);return!0},Me.nk=function(){return!0},Me.$o=function(a,y,E,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var x=0,z=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var re=y[ne].actualBounds;x=ne===0?re.x:Math.min(re.x,x),z=ne===0?re.y:Math.min(re.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-E.x-x)+","+(a.y-E.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else qt.prototype.$o.call(this,a,y,E,b)},Me.Sj=function(a,y,E,b,x){var z=this.se(),ne=this.transform,re=1/(ne.m11*ne.m22-ne.m12*ne.m21),se=ne.m22*re,de=-ne.m12*re,pe=-ne.m21*re,Se=ne.m11*re,Ae=re*(ne.m21*ne.dy-ne.m22*ne.dx),Re=re*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,Qt.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,E,b,x);if(this.background!==null)return z=a*se+y*pe+Ae,re=a*de+y*Se+Re,a=E*se+b*pe+Ae,se=E*de+b*Se+Re,x.h(0,0),E=this.naturalBounds,z=Qt.Ff(0,0,E.width,E.height,z,re,a,se,x),x.transform(ne),z;z||(se=1,pe=de=0,Se=1,Re=Ae=0),re=a*se+y*pe+Ae,a=a*de+y*Se+Re,se=E*se+b*pe+Ae,E=E*de+b*Se+Re,x.h(se,E),b=(se-re)*(se-re)+(E-a)*(E-a),de=!1,Se=this.O.s,Re=Se.length,pe=rt.alloc(),Ae=null,y=1/0;var Ue=null,Xe=this.isClipping&&this.na===wi.Spot;Xe&&(Ue=rt.alloc(),Ae=this.Pb(),(de=Ae.Sj(re,a,se,E,Ue))&&(y=(re-Ue.x)*(re-Ue.x)+(a-Ue.y)*(a-Ue.y)));for(var bt=0;bt<Re;bt++){var ft=Se[bt];ft.visible&&ft!==Ae&&ft.Sj(re,a,se,E,pe)&&(de=!0,ft=(re-pe.x)*(re-pe.x)+(a-pe.y)*(a-pe.y),ft<b&&(b=ft,x.set(pe)))}return Xe&&(y>b&&x.set(Ue),rt.free(Ue)),rt.free(pe),z&&x.transform(ne),de},Me.Gj=function(){for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Gj();qt.prototype.Gj.call(this)},Me.v=function(a){if(!ou(this)){qt.prototype.v.call(this,a),a=null,(this.na===wi.Auto||this.na===wi.Link)&&(a=this.Pb());for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];if((x===a||x.isPanelMain)&&x.v(!0),!x.desiredSize.w()){var z=xl(x,!1);(x instanceof al||x instanceof wi||x instanceof Ho||z!==hi)&&x.v(!0)}}}},Me.Uj=function(){if(!ou(this)){Fa(this,!0),Fc(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Uj()}},Me.Uk=function(){if(!(this.l&2048)){Iu(this,!0),yu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()}},Me.Wu=function(){yu(this,!0);for(var a=this.O.s,y=a.length,E=0;E<y;E++)a[E].Wu()},Me.Wl=function(a,y,E,b){var x=this.jg;x.h(0,0,0,0);var z=this.desiredSize,ne=this.minSize;E===void 0&&(E=ne.width,b=ne.height),E=Math.max(E,ne.width),b=Math.max(b,ne.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(E,a),y=Math.max(b,y);var se=this.yb;a=Math.max(a-se.left-se.right,0),y=Math.max(y-se.top-se.bottom,0);var de=this.O.s;de.length!==0&&this.na.measure(this,a,y,de,x,E,b),a=x.width+se.left+se.right,se=x.height+se.top+se.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(se=z.height),a=Math.min(re.width,a),se=Math.min(re.height,se),a=Math.max(ne.width,a),se=Math.max(ne.height,se),a=Math.max(E,a),se=Math.max(b,se),so(x,a,se),so(this.naturalBounds,a,se),this.Ge(0,0,a,se)},Me.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var E=0;E<y;E++){var b=a[E];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function nd(a){return a.part!==null?a.part.locationObject:null}Me.eh=function(a,y,E,b){var x=this.O.s;if(this.actualBounds.h(a,y,E,b),x.length!==0){if(!this.desiredSize.w()){a=xl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ne=this.Kg,re=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===E&&z===b&&(a=hi),a){case hi:(y>E||z>b)&&(this.v(),this.measure(y>E?E:y,z>b?b:z,0,0));break;case xi:this.v(!0),this.measure(E+re,b+ne,0,0);break;case lr:this.v(!0),this.measure(E+re,z+ne,0,0);break;case fr:this.v(!0),this.measure(y+re,b+ne,0,0)}}this.na.arrange(this,x,this.jg)}},Me.gh=function(a){var y=this.naturalBounds,E=nd(this);if(Do(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,x=rt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===E)&&(vn(x.set(a),z.transform),z.ca(x)))return rt.free(x),!0}return rt.free(x),!(this.Ma===null&&this.areaBackground===null)}return!1},Me.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b].ks(a);if(x!==null)return x}return null},Me.qm=function(a,y){if(y(this,a),a instanceof wi){a=a.O.s;for(var E=a.length,b=0;b<E;b++)this.qm(a[b],y)}};function Oh(a,y){dS(a,a,y)}function dS(a,y,E){E(y),y=y.O.s;for(var b=y.length,x=0;x<b;x++){var z=y[x];z instanceof wi&&dS(a,z,E)}}function AE(a,y){hS(a,a,y)}function hS(a,y,E){if(E(y),y instanceof wi){y=y.O.s;for(var b=y.length,x=0;x<b;x++)hS(a,y[x],E)}}Me.Nl=function(a){return fS(this,this,a)};function fS(a,y,E){if(E(y))return y;if(y instanceof wi){y=y.O.s;for(var b=y.length,x=0;x<b;x++){var z=fS(a,y[x],E);if(z!==null)return z}}return null}Me.fb=function(a){if(this.name===a)return this;var y=this.O.s,E=y.length;this.Hh===null&&this.itemTemplateMap===null||(E=rg(this));for(var b=0;b<E;b++){var x=y[b];if(x instanceof wi){var z=x.fb(a);if(z!==null)return z}if(x.name===a)return x}return null};function pS(a){a=a.O.s;for(var y=a.length,E=0,b=0;b<y;b++){var x=a[b];x instanceof wi?E=Math.max(E,pS(x)):x instanceof Hr&&(E=Math.max(E,x.ig/2*x.strokeMiterLimit*x.Df()))}return E}Me.se=function(){return!(this.type===wi.TableRow||this.type===wi.TableColumn)};function bd(a){return a.type===wi.TableRow||a.type===wi.TableColumn}Me.ic=function(a,y,E){if(this.pickable===!1||(y===void 0&&(y=null),E===void 0&&(E=null),rl(this)))return null;var b=this.naturalBounds,x=1/this.Df(),z=this.se(),ne=z?a:vn(rt.allocAt(a.x,a.y),this.transform),re=this.diagram,se=10,de=5;if(re!==null&&(se=re.Ql("extraTouchArea"),de=se/2),Do(-(de*x),-(de*x),b.width+se*x,b.height+se*x,ne.x,ne.y)){if(!this.isAtomic){x=this.O.s;var pe=x.length;if(re=rt.alloc(),de=(se=this.isClipping&&this.na===wi.Spot)?this.Pb():null,se&&(de.se()?vn(re.set(a),de.transform):re.set(a),!de.ca(re)))return rt.free(re),z||rt.free(ne),null;for(var Se=nd(this);pe--;){var Ae=x[pe];if((Ae.visible||Ae===Se)&&(Ae.se()?vn(re.set(a),Ae.transform):re.set(a),!se||Ae!==de)){var Re=null;if(Ae instanceof wi?Re=Ae.ic(re,y,E):Ae.pickable===!0&&Ae.ca(re)&&(Re=Ae),Re!==null&&(y!==null&&(Re=y(Re)),Re!==null&&(E===null||E(Re))))return rt.free(re),z||rt.free(ne),Re}}rt.free(re)}return this.background===null&&this.areaBackground===null?(z||rt.free(ne),null):(a=Do(0,0,b.width,b.height,ne.x,ne.y)?this:null,z||rt.free(ne),a)}return z||rt.free(ne),null},Me.ji=function(a,y,E,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var x=this.naturalBounds,z=this.se(),ne=z?a:vn(rt.allocAt(a.x,a.y),this.transform);if(x=Do(0,0,x.width,x.height,ne.x,ne.y),bd(this)||x){if(!this.isAtomic){for(var re=this.O.s,se=re.length,de=rt.alloc(),pe=nd(this);se--;){var Se=re[se];if(Se.visible||Se===pe){Se.se()?vn(de.set(a),Se.transform):de.set(a);var Ae=Se;Se=Se instanceof wi?Se:null,(Se!==null?Se.ji(de,y,E,b):Ae.ca(de))&&Ae.pickable!==!1&&(y!==null&&(Ae=y(Ae)),Ae===null||E!==null&&!E(Ae)||b.add(Ae))}}rt.free(de)}return z||rt.free(ne),x&&(this.background!==null||this.areaBackground!==null)}return z||rt.free(ne),!1},Me.Cf=function(a,y,E,b,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ne=z;if(z===void 0&&(ne=mr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Sv(this,y,E,x),z===void 0&&mr.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var re=nd(this),se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===re){var Se=pe.actualBounds,Ae=this.naturalBounds;Se.x>Ae.width||Se.y>Ae.height||0>Se.x+Se.width||0>Se.y+Se.height||(Se=pe,pe=pe instanceof wi?pe:null,Ae=mr.alloc(),Ae.set(ne),(pe!==null?pe.Cf(a,y,E,b,x,Ae):es(Se,a,b,Ae))&&(y!==null&&(Se=y(Se)),Se===null||E!==null&&!E(Se)||x.add(Se)),mr.free(Ae))}}return z===void 0&&mr.free(ne),b}return z===void 0&&mr.free(ne),!1};function Sv(a,y,E,b){for(var x=a.O.s,z=x.length;z--;){var ne=x[z];if(ne.visible){var re=ne.actualBounds,se=a.naturalBounds;re.x>se.width||re.y>se.height||0>re.x+re.width||0>re.y+re.height||(ne instanceof wi&&Sv(ne,y,E,b),y!==null&&(ne=y(ne)),ne===null||E!==null&&!E(ne)||b.add(ne))}}}Me.og=function(a,y,E,b,x,z){if(this.pickable===!1)return!1;E===void 0&&(E=null),b===void 0&&(b=null);var ne=this.naturalBounds,re=this.se(),se=re?a:vn(rt.allocAt(a.x,a.y),this.transform),de=re?y:vn(rt.allocAt(y.x,y.y),this.transform),pe=se.Bf(de),Se=0<se.x&&se.x<ne.width&&0<se.y&&se.y<ne.height||Bn(se.x,se.y,0,0,0,ne.height)<=pe||Bn(se.x,se.y,0,ne.height,ne.width,ne.height)<=pe||Bn(se.x,se.y,ne.width,ne.height,ne.width,0)<=pe||Bn(se.x,se.y,ne.width,0,0,0)<=pe;if(ne=se.zd(0,0)<=pe&&se.zd(0,ne.height)<=pe&&se.zd(ne.width,0)<=pe&&se.zd(ne.width,ne.height)<=pe,re||(rt.free(se),rt.free(de)),Se){if(!this.isAtomic){se=rt.alloc(),de=rt.alloc(),pe=nd(this);for(var Ae=this.O.s,Re=Ae.length;Re--;){var Ue=Ae[Re];if(Ue.visible||Ue===pe){var Xe=Ue.actualBounds,bt=this.naturalBounds;(!re||!(Xe.x>bt.width||Xe.y>bt.height||0>Xe.x+Xe.width||0>Xe.y+Xe.height))&&(Ue.se()?(Xe=Ue.transform,vn(se.set(a),Xe),vn(de.set(y),Xe)):(se.set(a),de.set(y)),Xe=Ue,Ue=Ue instanceof wi?Ue:null,(Ue!==null?Ue.og(se,de,E,b,x,z):Xe.tx(se,de,x))&&(E!==null&&(Xe=E(Xe)),Xe===null||b!==null&&!b(Xe)||z.add(Xe)))}}rt.free(se),rt.free(de)}return x?Se:ne}return!1};function Ev(a){var y=null;return a instanceof Hr&&(y=a.spot1,y===Ia&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Kr),y}function bv(a){var y=null;return a instanceof Hr&&(y=a.spot2,y===Ia&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=vo),y}Me.add=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];for(E=0;E<y.length;E++)this.Gb(this.O.count,y[E]);return this},Me.M=function(a){return this.O.M(a)},Me.Gb=function(a,y){y instanceof cr&&Ct("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ct("Cannot make a Panel contain itself: "+this.toString()),Ct("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var E=y.panel;if(E!==null&&E!==this&&Ct("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+E.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==wi.Grid||y instanceof Hr||Ct("Can only add Shapes to a Grid Panel, not: "+y),this.na!==wi.Graduated||y instanceof Hr||y instanceof Ho||Ct("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new yn),this.ge.add(b,y))}var x=this.O;if(b=-1,E===this){for(var z=-1,ne=this.O.s,re=ne.length,se=0;se<re;se++)if(ne[se]===y){z=se;break}if(z!==-1){if(z===a||z+1>=x.count&&a>=x.count)return;x.mb(z),b=z}else Ct("element "+y.toString()+" has panel "+E.toString()+" but is not contained by it.")}(0>a||a>x.count)&&(a=x.count),x.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),ou(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof wi&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),E=this.part,E!==null&&(E.Rh=null,E.ag=NaN,this.Te&&E instanceof Gi&&(E.Te=!0),E.Te&&E instanceof Gi&&(E.wc=null),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||(b!==-1&&E.cb(aa,"elements",this,y,null,b,null),E.cb(na,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Me.remove=function(a){for(var y=this.O.s,E=y.length,b=-1,x=0;x<E;x++)if(y[x]===a){b=x;break}b!==-1&&this.pc(b,!0)},Me.mb=function(a){0<=a&&this.pc(a,!0)},Me.pc=function(a,y){var E=this.O,b=E.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var x=b.data;typeof x=="object"&&this.ge.remove(x)}E.mb(a),Fa(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Gi&&(b instanceof wi?b.qm(b,function(ne,re){Wv(z,re,y)}):Wv(z,b,y)),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||z.cb(aa,"elements",this,b,null,a,null))},Me.Fb=function(a){0>a&&fi(a,">= 0",wi,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var E=new Ba;E.wi(this),E.isRow=!0,E.index=a,y[a]=E,this.cb(na,"rowdefs",this,null,E,null,a)}return y[a]},Me.oA=function(a){if(0>a&&fi(a,">= 0",wi,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,E=y[a];if(E){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(aa,"rowdefs",this,E,null,a,null),this.v()}}};function gS(a,y,E){var b=a.rowDefs;if(!(0>y)){if(b[y]=E instanceof Ba?E:void 0,!E)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Me.Eb=function(a){0>a&&fi(a,">= 0",wi,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var E=new Ba;E.wi(this),E.isRow=!1,E.index=a,y[a]=E,this.cb(na,"coldefs",this,null,E,null,a)}return y[a]},Me.jA=function(a){if(0>a&&fi(a,">= 0",wi,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,E=y[a];if(E){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(aa,"coldefs",this,E,null,a,null),this.v()}}};function mS(a,y,E){var b=a.colDefs;if(!(0>y)){if(b[y]=E instanceof Ba?E:void 0,!E)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Me.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},Me.Hy=function(a,y){return(a=this.Fb(a))&&Im(a,new Ba(y)),this},Me.By=function(a,y){return(a=this.Eb(a))&&Im(a,new Ba(y)),this},Me.nz=function(a){if(0>a||this.type!==wi.Table||this.rowCount===0)return-1;for(var y=0,E=this.rowDefs,b=E.length,x=this.topIndex;x<b;x++){var z=E[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},Me.fz=function(a){if(0>a||this.type!==wi.Table||this.columnCount===0)return-1;for(var y=0,E=this.colDefs,b=E.length,x=this.leftIndex;x<b;x++){var z=E[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},Me.Fz=function(a,y){if(y===void 0&&(y=new rt(NaN,NaN)),this.type!==wi.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var E=this.Pb();return E.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),E.transform.Ga(y)},Me.Gz=function(a){if(this.type!==wi.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 Ou(a){var y=a.allBindings;if(y===null)a.data!==null&&Ct("Template cannot have .data be non-null: "+a),a.allBindings=y=new Wn;else if(y._isFrozen)return;var E=new Wn;xv(a,!1),a.qm(a,function(de,pe){pe.th();var Se=pe.localBindings;if(Se!==null)for(rf(pe,!1),Se=Se.iterator;Se.next();){var Ae=Se.value;Ae.mode===Pg&&rf(pe,!0);var Re=Ae.sourceName;Re!==null&&(Re==="/"&&xv(de,!0),Re=M1(Ae,de,pe),Re!==null&&(E.add(Re),Re.srcBindings===null&&(Re.srcBindings=new Wn),Re.srcBindings.add(Ae))),y.add(Ae)}if(pe instanceof wi&&pe.type===wi.Table){if(0<pe.rowCount){for(de=pe.rowDefs,Se=de.length,Ae=0;Ae<Se;Ae++)if(Re=de[Ae],Re!==void 0&&Re.be!==null)for(var Ue=Re.be.iterator;Ue.next();){var Xe=Ue.value;Xe.xd=Re,Xe.to=2,Xe.wl=Re.index,y.add(Xe)}}if(0<pe.columnCount){for(pe=pe.colDefs,de=pe.length,Se=0;Se<de;Se++)if(Ae=pe[Se],Ae!==void 0&&Ae.be!==null)for(Re=Ae.be.iterator;Re.next();)Ue=Re.value,Ue.xd=Ae,Ue.to=1,Ue.wl=Ae.index,y.add(Ue)}}});for(var b=E.iterator;b.next();){var x=b.value;if(x.srcBindings!==null){rf(x,!0);for(var z=x.srcBindings.iterator;z.next();){var ne=z.value;x.localBindings===null&&(x.localBindings=new Wn),x.localBindings.add(ne)}}x.srcBindings=null}for(b=y.iterator;b.next();)if(x=b.value,z=x.xd,z!==null){x.xd=null;var re=x.targetProperty,se=re.indexOf(".");0<se&&z instanceof wi&&(ne=re.substring(0,se),re=re.substr(se+1),se=z.fb(ne),se!==null?(z=se,x.targetProperty=re):gi('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+x.toString())),z instanceof Ba?(ne=Sr(z.panel),x.Ai=ne===void 0?-1:ne,z.panel.bindingId=x.Ai):z instanceof qt?(ne=Sr(z),x.Ai=ne===void 0?-1:ne,z.bindingId=x.Ai):Ct("Unknown type of binding target: "+z)}y.freeze(),a instanceof cr&&a.Zc()&&a.Va()}Me.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return AE(y,function(E){E instanceof wi&&(E.allBindings=null,E.ub=null);var b=E.localBindings;b!==null&&(E.localBindings=null,b.each(function(x){E.bind(x.copy())})),b=E.animationTriggers,b!==null&&(E.animationTriggers=null,b.each(function(x){E.Jv(x.value.copy())}))}),a&&Ou(y),y},Me.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var E=y.value,b=E.sourceProperty;if((a===""||b===""||b===a)&&(b=E.targetProperty,E.converter!==null||b!=="")){b=this.data;var x=E.sourceName;if(x!==null){if(x==="")b=this;else if(x==="/")b=this;else if(x===".")b=this;else if(x==="..")b=this;else if(b=this.fb(x),b===null)continue}else if(E.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,ne=E.Ai;if(ne!==-1){if(z=this.ks(ne),z===null)continue}else E.xd!==null&&(z=E.xd);if(x==="/"?b=z.part:x==="."?b=z:x===".."&&(b=z.panel),x=E.to,x!==0){if(!(z instanceof wi))continue;x===1?z=z.Eb(E.wl):x===2&&(z=z.Fb(E.wl))}z!==void 0&&E.Mv(z,b)}}},Me.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function NE(a,y){a=a.O.s;for(var E=a.length,b=y.length,x=0,z=null;x<E&&(z=a[x],!(z instanceof wi&&z.data!==null));)x++,z=a[x];if(E-x!==b)return!0;if(z===null)return 0<b;for(var ne=0;x<E&&ne<b;){if(z=a[x],!(z instanceof wi)||z.data!==y[ne])return!0;x++,ne++}return!1}function rg(a){if(a.type===wi.Spot||a.type===wi.Auto)return Math.min(a.O.length,1);if(a.type===wi.Link){a=a.O;for(var y=a.length,E=0;E<y;E++){var b=a.M(E);if(!(b instanceof Hr&&b.isPanelMain))break}return E}return a.type===wi.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof wi&&bd(a))?1:0}Me.mv=function(){for(var a=rg(this);this.O.length>a;)this.pc(this.O.length-1,!1);yS(this,this.itemArray)};function yS(a,y){var E=rg(a);if(y===null||y.length===0)for(;a.O.length>E;)a.pc(a.O.length-1,!1);else if(a.O.length<=E){E=y.length;for(var b=0;b<E;b++)km(a,y[b],b,!0)}else{b=E;for(var x=0;x<y.length;x++,b++){var z=y[x],ne=b<a.O.length?a.O.M(b):null;if(ne instanceof wi){if(ne.data!==z){var re=Cv(a,ne.data),se=Cv(a,z),de=se!==re;de||(re=Tv(a,re),de=Tv(a,se)!==re),de?(a.pc(b,!1),km(a,z,x,!1)):ne.data=z}}else km(a,z,x,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,E,0),ou(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 Gi&&(y.Te=!0),y.Te&&y instanceof Gi&&(y.wc=null))}}function km(a,y,E,b){if(!(y==null||0>E)){var x=Cv(a,y);if(x=Tv(a,x),x!==null){if(Ou(x),x=x.copy(),x.l&16777216){var z=a.ih();z!==null&&xv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new yn),a.ge.add(y,x)),z=E+rg(a),a.Gb(z,x),b&&(x.ub=y,wv(a,z,E),x.ub=null),x.data=y}}}function wv(a,y,E){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof wi){var x=y,z=E;b.type===wi.TableRow?b.row=x:b.type===wi.TableColumn&&(b.column=x),b.itemIndex=z}y++,E++}}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=Ta(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ct("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Tv(a,y){var E=a.itemTemplateMap,b=null;return E!==null&&(b=E.I(y)),b===null&&(E!==null&&(b=E.I("")),b===null&&(SS||(SS=!0,gi('No item template Panel found for category "'+y+'" on '+a),gi(" Using default item template."),a=new wi,y=new Ho,y.bind(new Na("text","",Ji)),a.add(y),ES=a),b=ES)),b}function Lm(a,y,E){var b=y.enabledChanged;if(b!==null&&b(y,E),y instanceof wi){y=y.O.s,b=y.length;for(var x=0;x<b;x++){var z=y[x];E&&z instanceof wi&&!z.isEnabled||Lm(a,z,E)}}}function Cc(a,y){y.name=a,Qu.add(a,y)}_n.Object.defineProperties(wi.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===wi.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&&fi(a,">= 0",wi,"padding"),a=new Fr(a)):(0>a.left&&fi(a.left,">= 0",wi,"padding:value.left"),0>a.right&&fi(a.right,">= 0",wi,"padding:value.right"),0>a.top&&fi(a.top,">= 0",wi,"padding:value.top"),0>a.bottom&&fi(a.bottom,">= 0",wi,"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:Ua},set:function(a){typeof a=="number"&&(a=new Fr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new bu),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 bo)&&(a instanceof bo&&a.freeze(),this.T===null&&(this.T=new bu),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 bu),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 E=a.length,b=0,x=0;x<E;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Ct("defaultRowSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new bu),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 bo)&&(a instanceof bo&&a.freeze(),this.T===null&&(this.T=new bu),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 bu),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 E=a.length,b=0,x=0;x<E;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Ct("defaultColumnSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new bu),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 bu),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||Ct("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var E=this.diagram;E!==null&&this===E.grid&&bc(E),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()||Ct("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var E=this.diagram;E!==null&&this===E.grid&&bc(E),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),xs(this)&&(a=this.part,a!==null&&Xo(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),xs(this)&&(a=this.part,a!==null&&Xo(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 bu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new bu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Om},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new bu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Om},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new bu),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)&&Ct("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new bu),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)&&Ct("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new bu),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 E=this instanceof cr&&!(this instanceof co);Ou(this),this.ub=a;var b=this.diagram;b!==null&&(E?(E=b.partManager,this instanceof Li?(y!==null&&E.bf.remove(y),a!==null&&E.bf.add(a,this)):this instanceof cr&&(y!==null&&E.cf.remove(y),a!==null&&E.cf.add(a,this))):(E=this.panel,E!==null&&E.ge!==null&&(y!==null&&E.ge.remove(y),a!==null&&E.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new of),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&NE(this,a)){var E=this.diagram;y!==a&&(E!==null&&y!==null&&dy(E.partManager,this,E),this.Hh=a,E!==null&&a!==null&&cy(E.partManager,this)),this.g("itemArray",y,a),E!==null&&E.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 yn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof cr||a.isPanelMain)&&Ct("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 E=a.iterator;E.next(););Gr(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&&(Gr(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 Ir&&(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 E=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||E&&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))}}}),_n.Object.defineProperties(wi,{Position:{get:function(){return Qu.I("Position")}},Horizontal:{get:function(){return Qu.I("Horizontal")}},Vertical:{get:function(){return Qu.I("Vertical")}},Spot:{get:function(){return Qu.I("Spot")}},Auto:{get:function(){return Qu.I("Auto")}},Table:{get:function(){return Qu.I("Table")}},Viewbox:{get:function(){return Qu.I("Viewbox")}},TableRow:{get:function(){return Qu.I("TableRow")}},TableColumn:{get:function(){return Qu.I("TableColumn")}},Link:{get:function(){return Qu.I("Link")}},Grid:{get:function(){return Qu.I("Grid")}},Graduated:{get:function(){return Qu.I("Graduated")}}}),wi.prototype.rebuildItemElements=wi.prototype.mv,wi.prototype.findItemPanelForData=wi.prototype.sx,wi.prototype.updateTargetBindings=wi.prototype.La,wi.prototype.copyTemplate=wi.prototype.Uy,wi.prototype.graduatedValueForPoint=wi.prototype.Gz,wi.prototype.graduatedPointForValue=wi.prototype.Fz,wi.prototype.findColumnForLocalX=wi.prototype.fz,wi.prototype.findRowForLocalY=wi.prototype.nz,wi.prototype.addColumnDefinition=wi.prototype.By,wi.prototype.addRowDefinition=wi.prototype.Hy,wi.prototype.addRowColumnDefinition=wi.prototype.Gy,wi.prototype.removeColumnDefinition=wi.prototype.jA,wi.prototype.getColumnDefinition=wi.prototype.Eb,wi.prototype.removeRowDefinition=wi.prototype.oA,wi.prototype.getRowDefinition=wi.prototype.Fb,wi.prototype.removeAt=wi.prototype.mb,wi.prototype.remove=wi.prototype.remove,wi.prototype.insertAt=wi.prototype.Gb,wi.prototype.elt=wi.prototype.M,wi.prototype.add=wi.prototype.add,wi.prototype.findObject=wi.prototype.fb,wi.prototype.findInVisualTree=wi.prototype.Nl,wi.prototype.walkVisualTreeFrom=wi.prototype.qm,wi.prototype.findMainElement=wi.prototype.Pb;var SS=!1,ES=null,Qu=new yn;wi.className="Panel",wi.definePanelLayout=Cc,Cc("Position",new vm),Cc("Vertical",new Sm),Cc("Auto",new bm),Cc("Link",new Am);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 bu(){this.Pc=[],this.Oc=[],this.j=this.ob=Om,this.hb=this.Hb=0,this.Qp=Ua,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}bu.prototype.copy=function(a){for(var y=new bu,E=this.Pc,b=E.length,x=y.Pc,z=0;z<b;z++)if(E[z]!==void 0){var ne=E[z].copy();ne.wi(a),x[z]=ne}for(E=this.Oc,b=E.length,x=y.Oc,z=0;z<b;z++)E[z]!==void 0&&(ne=E[z].copy(),ne.wi(a),x[z]=ne);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},bu.className="TablePanelSettings";function Ba(a){ar(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ia,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Pv,this.hg=Or,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Ba.prototype.copy=function(){var a=new Ba;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Fi(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=Fi(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Me=Ba.prototype,Me.qb=function(a){a.classType===Ba&&(this.sizing=a)},Me.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Sr(this)},Me.wi=function(a){this.Me=a},Me.Io=function(a){var y=0,E=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&E!==null&&(a=this.isRow?E.defaultRowSeparatorStroke:E.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(E!==null?y=this.isRow?E.defaultRowSeparatorStrokeWidth:E.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(E!==null)a=E.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Me.Wc=function(){var a=0,y=this.Me,E=0,b=this.isRow;if(y!==null&&y.type===wi.Table)for(var x=b?y.rowDefs.length:y.colDefs.length,z=0;z<x;z++){var ne=b?y.rowDefs[z]:y.colDefs[z];if(ne!==void 0&&ne.oa!==0){E=ne.index;break}}if(this.index!==E&&(E=this.separatorStroke,E===null&&y!==null&&(E=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),E!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Me.Ob=function(a,y,E){var b=this.Me;if(b!==null&&(b.cb(Bo,a,this,y,E,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(E=this.be.iterator;E.next();)E.value.sp(this,y,a,b)};function Mm(a){if(a.sizing===Pv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Me.bind=function(a,y,E,b){var x=null;return typeof a=="string"?x=new Na(a,y,E,b):x=a,x.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&vS(y)&&Ct("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+x+" on "+a)),this.be===null&&(this.be=new Wn),this.be.add(x),this},_n.Object.defineProperties(Ba.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&fi(a,">= 0",Ba,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&fi(a,">= 0",Ba,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&fi(a,">= 0",Ba,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&fi(a,">= 0",Ba,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Fr(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 bo&&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 E=a.length,b=0,x=0;x<E;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Ct("separatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&sf(a,"RowColumnDefinition.background"),a instanceof bo&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Ba.prototype.computeEffectiveSpacing=Ba.prototype.Wc,Ba.prototype.computeEffectiveSpacingTop=Ba.prototype.Io;var Pv=new pn(Ba,"Default",0),og=new pn(Ba,"None",1),Om=new pn(Ba,"ProportionalExtra",2);Ba.className="RowColumnDefinition",Ba.Default=Pv,Ba.None=og,Ba.ProportionalExtra=Om;function Hr(a,y){qt.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)}dn(Hr,qt),Hr.prototype.cloneProtected=function(a){qt.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=Fi(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 Rh(a){a.Na===null?a.Na=new kv:a.Na.nc&&(a.Na=a.Na.copy())}Me=Hr.prototype,Me.th=function(){qt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Me.qb=function(a){a===hi||a===rr||a===$r||a===Or?this.geometryStretch=a:qt.prototype.qb.call(this,a)},Me.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Sr(this)};function Xf(a,y,E,b){var x=E.length;if(!(4>x)){var z=b.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var re=E[0],se=E[1],de,pe,Se,Ae,Re,Ue,Xe=0,bt=Pi(),ft=2;ft<x;ft+=2)de=E[ft],pe=E[ft+1],Se=de-re,re=pe-se,Se===0&&(Se=.001),Ae=re/Se,Re=Math.atan2(re,Se),Ue=Math.sqrt(Se*Se+re*re),bt.push([Se,Re,Ae,Ue]),Xe+=Ue,re=de,se=pe;re=E[0],se=E[1],Se=b.measuredBounds.width,b instanceof Hr&&(Se-=b.strokeWidth),1>Se&&(Se=1),x=E=Se,de=ne/2,pe=de!==0,ft=0,Ue=bt[ft],Se=Ue[0],Re=Ue[1],Ae=Ue[2],Ue=Ue[3];for(var Pt=0;.1<=Xe;){if(Pt===0&&(pe?(x=E,x-=de,Xe-=de,pe=!1):x=E,x===0&&(x=1)),x>Xe){Ai(bt);return}x>Ue?(Pt=x-Ue,x=Ue):Pt=0;var Nt=Math.sqrt(x*x/(1+Ae*Ae));if(0>Se&&(Nt=-Nt),re+=Nt,se+=Ae*Nt,a.translate(re,se),a.rotate(Re),a.translate(-(ne/2),-(z/2)),Pt===0&&b.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Re),a.translate(-re,-se),Xe-=x,Ue-=x,Pt!==0){if(ft++,ft===bt.length){Ai(bt);return}Ue=bt[ft],Se=Ue[0],Re=Ue[1],Ae=Ue[2],Ue=Ue[3],x=Pt}}Ai(bt)}}Me.hh=function(a,y){var E=this.xc,b=this.Ui;if(E!==null||b!==null){var x=this.ua;if(x!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;b!==null&&ha(this,a,b,!0,!1,ne,z);var re=this.part,se=this.ig;if(E===null||se!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(se=re.type===wi.Link&&re instanceof co&&re.category==="Selection"&&re.adornedObject instanceof Hr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),se===0&&(E=null),E!==null&&se!==0&&(ha(this,a,E,!1,!1,ne,z),a.lineWidth=se,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,E===null||b!==null&&b!=="transparent"||(re=!1),ne=!1,se=this.strokeDashArray,se!==null&&(ne=!0,a.js(se,this.strokeDashOffset)),x.type===Ti.j)a.beginPath(),a.moveTo(x.startX,x.startY),a.lineTo(x.endX,x.endY),E!==null&&a.jk(),a.Se();else if(x.type===Ti.u){var de=x.startX;se=x.startY;var pe=x.endX,Se=x.endY;x=Math.min(de,pe);var Ae=Math.min(se,Se);de=Math.abs(pe-de),se=Math.abs(Se-se),a.beginPath(),a.rect(x,Ae,de,se),b!==null&&a.ng(b),E!==null&&(re&&z&&Bc(a),a.jk(),re&&z&&$c(a)),a.Se()}else if(x.type===Ti.F)de=x.startX,se=x.startY,pe=x.endX,Se=x.endY,x=Math.abs(pe-de)/2,Ae=Math.abs(Se-se)/2,de=Math.min(de,pe)+x,se=Math.min(se,Se)+Ae,a.beginPath(),a.moveTo(de,se-Ae),a.bezierCurveTo(de+Qt.wg*x,se-Ae,de+x,se-Qt.wg*Ae,de+x,se),a.bezierCurveTo(de+x,se+Qt.wg*Ae,de+Qt.wg*x,se+Ae,de,se+Ae),a.bezierCurveTo(de-Qt.wg*x,se+Ae,de-x,se+Qt.wg*Ae,de-x,se),a.bezierCurveTo(de-x,se-Qt.wg*Ae,de-Qt.wg*x,se-Ae,de,se-Ae),a.closePath(),b!==null&&a.ng(b),E!==null&&(re&&z&&Bc(a),a.jk(),re&&z&&$c(a)),a.Se();else if(x.type===Ti.o)for(x=x.figures,se=x.length,Ae=0;Ae<se;Ae++){de=x.s[Ae],a.beginPath(),a.moveTo(de.startX,de.startY),pe=de.segments.s,Se=pe.length;for(var Re=null,Ue=0;Ue<Se;Ue++){var Xe=pe[Ue];switch(Xe.type){case Go:a.moveTo(Xe.endX,Xe.endY);break;case To:a.lineTo(Xe.endX,Xe.endY);break;case ba:a.bezierCurveTo(Xe.point1X,Xe.point1Y,Xe.point2X,Xe.point2Y,Xe.endX,Xe.endY);break;case Fs:a.quadraticCurveTo(Xe.point1X,Xe.point1Y,Xe.endX,Xe.endY);break;case sa:if(Xe.radiusX===Xe.radiusY){var bt=Math.PI/180;a.arc(Xe.point1X,Xe.point1Y,Xe.radiusX,Xe.startAngle*bt,(Xe.startAngle+Xe.sweepAngle)*bt,0>Xe.sweepAngle,Re!==null?Re.endX:de.startX,Re!==null?Re.endY:de.startY)}else if(Re=us(Xe,de),bt=Re.length,bt===0)a.lineTo(Xe.centerX,Xe.centerY);else for(var ft=0;ft<bt;ft++){var Pt=Re[ft];ft===0&&a.lineTo(Pt[0],Pt[1]),a.bezierCurveTo(Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7])}break;case Gs:if(ft=bt=0,Re!==null&&Re.type===sa){if(Re=us(Re,de),Pt=Re.length,Pt===0){a.lineTo(Xe.endX,Xe.endY);break}Re=Re[Pt-1]||null,Re!==null&&(bt=Re[6],ft=Re[7])}else bt=Re!==null?Re.endX:de.startX,ft=Re!==null?Re.endY:de.startY;if(Re=Ls(Xe,de,bt,ft),bt=Re.length,bt===0){a.lineTo(Xe.endX,Xe.endY);break}for(ft=0;ft<bt;ft++)Pt=Re[ft],a.bezierCurveTo(Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7]);break;default:Ct("Segment not of valid type: "+Xe.type)}Xe.isClosed&&a.closePath(),Re=Xe}pe=de.isFilled,z?de.isShadowed?(pe===!0&&b!=="transparent"&&b!==null&&a.ng(b,de.isEvenOdd),E!==null&&(pe&&re&&Bc(a),a.jk(),pe&&re&&$c(a))):(Bc(a),pe&&b!=="transparent"&&b!==null&&a.ng(b,de.isEvenOdd),E!==null&&a.jk(),$c(a)):(pe&&b!==null&&a.ng(b,de.isEvenOdd),E!==null&&a.jk()),a.Se(Ae)}if(ne&&a.fs(),this.pathPattern!==null){if(E=this.pathPattern,E.measure(1/0,1/0),b=E.measuredBounds,E.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=Pi(),z.type===Ti.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Xf(a,y,b,E);else if(z.type===Ti.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),ne=re.startX,x=re.startY,se=ne,Ae=x,de=re.segments.s,pe=de.length,Se=0;Se<pe;Se++){switch(Ue=de[Se],Ue.type){case Go:Xf(a,y,b,E),b.length=0,b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,x=Ue.endY,se=ne,Ae=x;break;case To:b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,x=Ue.endY;break;case ba:Qt.Qe(ne,x,Ue.point1X,Ue.point1Y,Ue.point2X,Ue.point2Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,x=Ue.endY;break;case Fs:Qt.ep(ne,x,Ue.point1X,Ue.point1Y,Ue.endX,Ue.endY,.5,b),ne=Ue.endX,x=Ue.endY;break;case sa:if(Xe=us(Ue,re),Re=Xe.length,Re===0){b.push(Ue.centerX),b.push(Ue.centerY),ne=Ue.centerX,x=Ue.centerY;break}for(bt=0;bt<Re;bt++)ft=Xe[bt],Qt.Qe(ne,x,ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,b),ne=ft[6],x=ft[7];break;case Gs:if(Xe=Ls(Ue,re,ne,x),Re=Xe.length,Re===0){b.push(Ue.endX),b.push(Ue.endY),ne=Ue.endX,x=Ue.endY;break}for(bt=0;bt<Re;bt++)ft=Xe[bt],Qt.Qe(ne,x,ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,b),ne=ft[6],x=ft[7];break;default:Ct("Segment not of valid type: "+Ue.type)}Ue.isClosed&&(b.push(se),b.push(Ae),Xf(a,y,b,E))}Xf(a,y,b,E)}else if(z.type===Ti.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Xf(a,y,b,E);else if(z.type===Ti.F){if(x=new ya,x.startX=z.endX,x.startY=(z.startY+z.endY)/2,ne=new no(sa),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(z.startX+z.endX)/2,ne.centerY=(z.startY+z.endY)/2,ne.radiusX=Math.abs(z.startX-z.endX)/2,ne.radiusY=Math.abs(z.startY-z.endY)/2,x.add(ne),z=us(ne,x),re=z.length,re===0)b.push(ne.centerX),b.push(ne.centerY);else for(ne=x.startX,x=x.startY,se=0;se<re;se++)Ae=z[se],Qt.Qe(ne,x,Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7],.5,b),ne=Ae[6],x=Ae[7];Xf(a,y,b,E)}Ai(b),a.restore(),a.Vc(!1)}}}},Me.kk=function(a,y,E){return!qt.prototype.kk.call(this,a,y,E)||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)},Me.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:qt.prototype.nk.call(this,a)},Me.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},Me.ga=function(a,y){if(y===void 0&&(y=new rt),a instanceof $i){a.Mc()&&Ct("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var E=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(E.width+b)-b/2+E.x+a.offsetX,a.y*(E.height+b)-b/2+E.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Me.mi=function(a){a===void 0&&(a=new xn);var y=this.naturalBounds,E=this.oe;y=xn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=rt.allocAt(y.x,y.y).transform(E),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(E),Jr(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(E),Jr(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(E),Jr(a,b.x,b.y,0,0),xn.free(y),rt.free(b),a},Me.gh=function(a,y){var E=this.geometry;if(E===null||this.fill===null&&this.stroke===null)return!1;var b=E.bounds,x=this.strokeWidth/2;E.type!==Ti.j||y||(x+=2);var z=xn.alloc();if(z.assign(b),z.Bc(x+2,x+2),!z.ca(a))return xn.free(z),!1;if(b=x+1e-4,E.type===Ti.j)return this.stroke===null||(b=(E.endX-E.startX)*(a.x-E.startX)+(E.endY-E.startY)*(a.y-E.startY),0>(E.startX-E.endX)*(a.x-E.endX)+(E.startY-E.endY)*(a.y-E.endY)||0>b)?!1:(xn.free(z),Qt.Yb(E.startX,E.startY,E.endX,E.endY,x,a.x,a.y));if(E.type===Ti.u){y=E.startX;var ne=E.startY,re=E.endX;if(E=E.endY,z.x=Math.min(y,re),z.y=Math.min(ne,E),z.width=Math.abs(re-y),z.height=Math.abs(E-ne),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return xn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(x,x),a=z.ca(a),xn.free(z),a}if(E.type===Ti.F){ne=E.startX,x=E.startY,re=E.endX;var se=E.endY;if(E=Math.min(ne,re),y=Math.min(x,se),ne=Math.abs(re-ne)/2,x=Math.abs(se-x)/2,E=a.x-(E+ne),y=a.y-(y+x),this.fill===null){if(ne-=b,x-=b,0>=ne||0>=x||1>=E*E/(ne*ne)+y*y/(x*x))return xn.free(z),!1;ne+=b,x+=b}return this.stroke!==null&&(ne+=b,x+=b),xn.free(z),0>=ne||0>=x?!1:1>=E*E/(ne*ne)+y*y/(x*x)}if(E.type===Ti.o)return xn.free(z),this.fill===null?qs(E,a.x,a.y,x):Ma(E,a,x,1<this.strokeWidth,y);Ct("Unknown Geometry type: "+E.type)},Me.Wl=function(a,y,E,b){var x=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var re=this.figure,se=Nv[re];if(se===void 0){var de=Qt.Ze[re];typeof de=="string"&&(de=Qt.Ze[de]),typeof de=="function"?(se=de(null,100,100),Nv[re]=se):Ct("Unsupported Figure: "+re)}ne=se.bounds}re=ne.width,se=ne.height,de=ne.width;var pe=ne.height;switch(xl(this,!0)){case hi:b=E=0;break;case xi:de=Math.max(a-z,0),pe=Math.max(y-z,0);break;case lr:de=Math.max(a-z,0),b=0;break;case fr:E=0,pe=Math.max(y-z,0)}isFinite(x.width)&&(de=x.width),isFinite(x.height)&&(pe=x.height);var Se=this.maxSize,Ae=this.minSize;switch(E=Math.max(E-z,Ae.width),b=Math.max(b-z,Ae.height),de=Math.min(Se.width,de),pe=Math.min(Se.height,pe),de=isFinite(de)?Math.max(E,de):Math.max(re,E),pe=isFinite(pe)?Math.max(b,pe):Math.max(se,b),E=Av(this),E){case hi:break;case xi:re=de,se=pe;break;case rr:E=Math.min(de/re,pe/se),isFinite(E)||(E=1),re*=E,se*=E;break;default:Ct(E+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),se===0&&(se=.001),E=this.Rd!==null?this.Rd:this.ua,ne=E.bounds,b=re/ne.width,ne=se/ne.height,isFinite(b)||(b=1),isFinite(ne)||(ne=1),this.ua=b===1&&ne===1?E:E.copy().scale(b,ne)):this.ua!==null&&Qt.$(this.ua.Sk,a-z)&&Qt.$(this.ua.Rk,y-z)||(this.ua=Hr.makeGeometry(this,re,se)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-z/2,ne.y-z/2,a===0&&re===0?0:ne.width+z,y===0&&se===0?0:ne.height+z):this.Ge(-(z/2),-(z/2),de+z,pe+z),x.w()?(de=x.width,pe=x.height,de=Math.min(Se.width,de),pe=Math.min(Se.height,pe),de=Math.max(Ae.width,de),pe=Math.max(Ae.height,pe),this.dc.h(0,0,de,pe)):this.dc.assign(ne)};function Av(a){var y=a.geometryStretch;return a.Rd!==null?y===Or?xi:y:y===Or?Nv[a.figure].defaultStretch:y}Me.eh=function(a,y,E,b){Ks(this,a,y,E,b)},Me.rs=function(a,y,E){return this.Sj(a.x,a.y,y.x,y.y,E)},Me.Sj=function(a,y,E,b,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ne,se=-z.m12*ne,de=-z.m21*ne,pe=z.m11*ne,Se=ne*(z.m21*z.dy-z.m22*z.dx),Ae=ne*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*de+Se,ne=a*se+y*pe+Ae,re=E*re+b*de+Se,se=E*se+b*pe+Ae,Se=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Re=de.bounds;if(pe=!1,de.type===Ti.j)if(1.5>=this.strokeWidth)pe=Qt.Ve(de.startX,de.startY,de.endX,de.endY,z,ne,re,se,x);else{if(de.startX===de.endX?(b=Se,pe=0):(y=(de.endY-de.startY)/(de.endX-de.startX),pe=Se/Math.sqrt(1+y*y),b=pe*y),y=Pi(),a=new rt,Qt.Ve(de.startX+b,de.startY+pe,de.endX+b,de.endY+pe,z,ne,re,se,a)&&y.push(a),a=new rt,Qt.Ve(de.startX-b,de.startY-pe,de.endX-b,de.endY-pe,z,ne,re,se,a)&&y.push(a),a=new rt,Qt.Ve(de.startX+b,de.startY+pe,de.startX-b,de.startY-pe,z,ne,re,se,a)&&y.push(a),a=new rt,Qt.Ve(de.endX+b,de.endY+pe,de.endX-b,de.endY-pe,z,ne,re,se,a)&&y.push(a),re=y.length,re===0)return Ai(y),!1;for(pe=!0,se=1/0,b=0;b<re;b++)a=y[b],E=(a.x-z)*(a.x-z)+(a.y-ne)*(a.y-ne),E<se&&(se=E,x.x=a.x,x.y=a.y);Ai(y)}else if(de.type===Ti.u)pe=Qt.Ff(Re.x-Se,Re.y-Se,Re.x+Re.width+Se,Re.y+Re.height+Se,z,ne,re,se,x);else if(de.type===Ti.F){y=xn.allocAt(Re.x,Re.y,Re.width,Re.height).Bc(Se,Se);e:if(y.width===0)pe=Qt.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,re,se,x);else if(y.height===0)pe=Qt.Ve(y.x,y.y,y.x+y.width,y.y,z,ne,re,se,x);else{if(a=y.width/2,de=y.height/2,b=y.x+a,pe=y.y+de,E=9999,z!==re&&(E=(ne-se)/(z-re)),9999>Math.abs(E)){if(se=ne-pe-E*(z-b),0>a*a*E*E+de*de-se*se){x.x=NaN,x.y=NaN,pe=!1;break e}Se=Math.sqrt(a*a*E*E+de*de-se*se),re=(-(a*a*E*se)+a*de*Se)/(de*de+a*a*E*E)+b,a=(-(a*a*E*se)-a*de*Se)/(de*de+a*a*E*E)+b,de=E*(re-b)+se+pe,se=E*(a-b)+se+pe,Math.abs((z-re)*(z-re))+Math.abs((ne-de)*(ne-de))<Math.abs((z-a)*(z-a))+Math.abs((ne-se)*(ne-se))?(x.x=re,x.y=de):(x.x=a,x.y=se)}else{if(re=de*de,se=z-b,re-=re/(a*a)*se*se,0>re){x.x=NaN,x.y=NaN,pe=!1;break e}se=Math.sqrt(re),re=pe+se,se=pe-se,Math.abs(re-ne)<Math.abs(se-ne)?(x.x=z,x.y=re):(x.x=z,x.y=se)}pe=!0}xn.free(y)}else if(de.type===Ti.o){Ae=rt.alloc();var Ue=re-z,Xe=se-ne,bt=Ue*Ue+Xe*Xe,ft=z,Pt=ne;if(0<bt&&Re.contains(ft,Pt)&&(Ae.x=ft,Ae.y=Pt,this.ca(Ae)))for(Ue!==0&&.5>Math.abs(Ue)?(Xe*=.5/Ue,Ue=.5):Xe!==0&&.5>Math.abs(Xe)&&(Ue*=.5/Xe,Xe=.5),ft-=Ue,Pt-=Xe;Re.contains(ft,Pt);)ft-=Ue,Pt-=Xe;for(x.x=re,x.y=se,Xe=0;Xe<de.figures.count;Xe++){var Nt=de.figures.s[Xe],Dt=Nt.isFilled?ft:z,Yt=Nt.isFilled?Pt:ne,wn=Nt.segments;Re=Nt.startX,Ue=Nt.startY;for(var zi=Re,er=Ue,Xi=0;Xi<wn.count;Xi++){var ki=wn.s[Xi],oi=ki.type,kr=ki.endX,Er=ki.endY,mo=!1;switch(oi){case Go:zi=kr,er=Er;break;case To:mo=Dm(Re,Ue,kr,Er,Dt,Yt,re,se,Ae);break;case ba:mo=Qt.Eo(Re,Ue,ki.point1X,ki.point1Y,ki.point2X,ki.point2Y,kr,Er,Dt,Yt,re,se,.6,Ae);break;case Fs:mo=Qt.Eo(Re,Ue,Re+2/3*(ki.point1X-Re),Ue+2/3*(ki.point1Y-Ue),kr+2/3*(ki.point1X-kr),Er+2/3*(ki.point1Y-Er),kr,Er,Dt,Yt,re,se,.6,Ae);break;case sa:case Gs:oi=ki.type===sa?us(ki,Nt):Ls(ki,Nt,Re,Ue);var Uo=oi.length;if(Uo===0){mo=Dm(Re,Ue,ki.type===sa?ki.centerX:ki.endX,ki.type===sa?ki.centerY:ki.endY,Dt,Yt,re,se,Ae);break}for(Er=null,kr=0;kr<Uo;kr++){if(Er=oi[kr],kr===0&&Dm(Re,Ue,Er[0],Er[1],Dt,Yt,re,se,Ae)){var ts=Rm(Dt,Yt,Ae,bt,x);ts<bt&&(bt=ts,pe=!0)}Qt.Eo(Er[0],Er[1],Er[2],Er[3],Er[4],Er[5],Er[6],Er[7],Dt,Yt,re,se,.6,Ae)&&(ts=Rm(Dt,Yt,Ae,bt,x),ts<bt&&(bt=ts,pe=!0))}kr=Er[6],Er=Er[7];break;default:Ct("Unknown Segment type: "+oi)}Re=kr,Ue=Er,mo&&(mo=Rm(Dt,Yt,Ae,bt,x),mo<bt&&(bt=mo,pe=!0)),ki.isClosed&&(kr=zi,Er=er,Dm(Re,Ue,kr,Er,Dt,Yt,re,se,Ae)&&(ki=Rm(Dt,Yt,Ae,bt,x),ki<bt&&(bt=ki,pe=!0)))}}z=E-a,ne=b-y,re=Math.sqrt(z*z+ne*ne),re!==0&&(z/=re,ne/=re),x.x-=z*Se,x.y-=ne*Se,rt.free(Ae)}else Ct("Unknown Geometry type: "+de.type);return pe?(this.transform.Ga(x),!0):!1};function Rm(a,y,E,b,x){return a=E.x-a,y=E.y-y,y=a*a+y*y,y<b?(x.x=E.x,x.y=E.y,y):b}function Dm(a,y,E,b,x,z,ne,re,se){if(Qt.$(a,E)&&Qt.$(y,b)||Qt.$(x,ne)&&Qt.$(z,re))return!1;var de=!1,pe=(x-ne)*(y-b)-(z-re)*(a-E);return pe===0?!1:(se.x=((x*re-z*ne)*(a-E)-(x-ne)*(a*b-y*E))/pe,se.y=((x*re-z*ne)*(y-b)-(z-re)*(a*b-y*E))/pe,(a>E?a-E:E-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(se.y>a||Qt.$(se.y,a))&&(se.y<y||Qt.$(se.y,y))&&(de=!0)):(y=a<E?a:E,a=a<E?E:a,(se.x>y||Qt.$(se.x,y))&&(se.x<a||Qt.$(se.x,a))&&(de=!0)),de)}Me.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var E=this.ua;E===null&&(this.measure(1/0,1/0),E=this.ua),E=E.bounds;var b=this.strokeWidth/2,x=!1,z=rt.alloc();return z.h(E.x-b,E.y-b),a.ca(y.Ga(z))&&(z.h(E.x-b,E.bottom+b),a.ca(y.Ga(z))&&(z.h(E.right+b,E.bottom+b),a.ca(y.Ga(z))&&(z.h(E.right+b,E.y-b),a.ca(y.Ga(z))&&(x=!0)))),rt.free(z),x},Me.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var E=mr.alloc();E.set(y),E.Vj();var b=a.left,x=a.right,z=a.top;a=a.bottom;var ne=rt.alloc();if(ne.h(b,z),E.Ga(ne),this.gh(ne,!0)||(ne.h(x,z),E.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),E.Ga(ne),this.gh(ne,!0))||(ne.h(x,a),E.Ga(ne),this.gh(ne,!0)))return rt.free(ne),!0;var re=rt.alloc(),se=rt.alloc();return E.set(y),E.bv(this.transform),E.Vj(),re.x=x,re.y=z,re.transform(E),ne.x=b,ne.y=z,ne.transform(E),y=!1,Dh(this,ne,re,se)?y=!0:(ne.x=x,ne.y=a,ne.transform(E),Dh(this,ne,re,se)?y=!0:(re.x=b,re.y=a,re.transform(E),Dh(this,ne,re,se)?y=!0:(ne.x=b,ne.y=z,ne.transform(E),Dh(this,ne,re,se)&&(y=!0)))),rt.free(ne),mr.free(E),rt.free(re),rt.free(se),y};function Dh(a,y,E,b){if(!a.rs(y,E,b))return!1;a=y.x,y=y.y;var x=E.x,z=E.y;return E=b.x,b=b.y,a===x?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<x?(b=a,a=x):b=x,E>=b&&E<=a)}Me.tx=function(a,y,E){function b(bt,ft){for(var Pt=bt.length,Nt=0;Nt<Pt;Nt+=2)if(ft.zd(bt[Nt],bt[Nt+1])>x)return!0;return!1}if(E&&this.fill!==null&&this.gh(a,!0))return!0;var x=a.Bf(y),z=x;if(1.5<this.strokeWidth&&(x=this.strokeWidth/2+Math.sqrt(x),x*=x),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!E){var ne=y.bounds,re=ne.x,se=ne.y,de=ne.x+ne.width;if(ne=ne.y+ne.height,hn(a.x,a.y,re,se)<=x&&hn(a.x,a.y,de,se)<=x&&hn(a.x,a.y,re,ne)<=x&&hn(a.x,a.y,de,ne)<=x)return!0}if(re=y.startX,se=y.startY,de=y.endX,ne=y.endY,y.type===Ti.j){if(E=(re-de)*(a.x-de)+(se-ne)*(a.y-ne),Bn(a.x,a.y,re,se,de,ne)<=(0<=(de-re)*(a.x-re)+(ne-se)*(a.y-se)&&0<=E?x:z))return!0}else{if(y.type===Ti.u)return y=!1,E&&(y=Bn(a.x,a.y,re,se,re,ne)<=x||Bn(a.x,a.y,re,se,de,se)<=x||Bn(a.x,a.y,de,se,de,ne)<=x||Bn(a.x,a.y,re,ne,de,ne)<=x),y;if(y.type===Ti.F){y=a.x-(re+de)/2,z=a.y-(se+ne)/2;var pe=Math.abs(de-re)/2,Se=Math.abs(ne-se)/2;if(pe===0||Se===0)return Bn(a.x,a.y,re,se,de,ne)<=x;if(E){if(a=Qt.$y(pe,Se,y,z),a*a<=x)return!0}else return!(hn(y,z,-pe,0)>=x||hn(y,z,0,-Se)>=x||hn(y,z,0,Se)>=x||hn(y,z,pe,0)>=x)}else if(y.type===Ti.o){if(de=y.bounds,z=de.x,re=de.y,se=de.x+de.width,de=de.y+de.height,a.x>se&&a.x<z&&a.y>de&&a.y<re&&Bn(a.x,a.y,z,re,z,de)>x&&Bn(a.x,a.y,z,re,se,re)>x&&Bn(a.x,a.y,se,de,z,de)>x&&Bn(a.x,a.y,se,de,se,re)>x)return!1;if(z=Math.sqrt(x),E){if(this.fill===null?qs(y,a.x,a.y,z):Ma(y,a,z,!0,!1))return!0}else{for(E=y.figures,y=0;y<E.count;y++){if(z=E.s[y],ne=z.startX,pe=z.startY,a.zd(ne,pe)>x)return!1;for(re=z.segments.s,se=re.length,de=0;de<se;de++)switch(Se=re[de],Se.type){case Go:case To:if(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x)return!1;break;case ba:var Ae=Pi();if(Qt.Qe(ne,pe,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.8,Ae),ne=b(Ae,a),Ai(Ae),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case Fs:if(Ae=Pi(),Qt.ep(ne,pe,Se.point1X,Se.point1Y,Se.endX,Se.endY,.8,Ae),ne=b(Ae,a),Ai(Ae),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case sa:case Gs:Ae=Se.type===sa?us(Se,z):Ls(Se,z,ne,pe);var Re=Ae.length;if(Re===0){if(ne=Se.type===sa?Se.centerX:Se.endX,pe=Se.type===sa?Se.centerY:Se.endY,a.zd(ne,pe)>x)return!1;break}Se=null;for(var Ue=Pi(),Xe=0;Xe<Re;Xe++)if(Se=Ae[Xe],Ue.length=0,Qt.Qe(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.8,Ue),b(Ue,a))return Ai(Ue),!1;Ai(Ue),Se!==null&&(ne=Se[6],pe=Se[7]);break;default:Ct("Unknown Segment type: "+Se.type)}}return!0}}}return!1},Me.qc=function(){this.ua=null},Me.kq=function(){return this.ig};function bS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=pg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Va):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new $i(1-Va.x,Va.y)))}Hr.makeGeometry=function(a,y,E){if(a.toArrow!=="None")var b=Uc[a.toArrow];else a.fromArrow!=="None"?b=Uc[a.fromArrow]:(b=Qt.Ze[a.figure],typeof b=="string"&&(b=Qt.Ze[b]),b===void 0&&Ct("Unknown Shape.figure: "+a.figure),b=b(a,y,E),b.Sk=y,b.Rk=E);if(b===null){var x=Qt.Ze.Rectangle;typeof x=="function"&&(b=x(a,y,E))}return b};function xS(a){var y=Uc[a];if(y===void 0){var E=a.toLowerCase();if(E==="none")return"None";if(y=Uc[E],y===void 0){var b=null,x;for(x in Qt.um)if(x.toLowerCase()===E){b=x;break}if(b!==null)return a=Ti.parse(Qt.um[b],!1),Uc[b]=a,E!==b&&(Uc[E]=b),b}}return typeof y=="string"?y:y instanceof Ti?a:null}_n.Object.defineProperties(Hr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,E=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||E,a),xs(this)&&(a=this.part,a!==null&&Xo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Ti.parse(a);var y=a.normalize();this.geometry=a,this.position=a=rt.allocAt(-y.x,-y.y),rt.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 bo&&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 bo&&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 E=this.part;E!==null&&(E.ag=NaN),this.g("strokeWidth",y,a)}else fi(a,"value >= 0",Hr,"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"?fi(a,'"butt", "round", or "square"',Hr,"strokeCap"):(Rh(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"?fi(a,'"miter", "bevel", or "round"',Hr,"strokeJoin"):(Rh(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){Rh(this),this.Na.Jr=a,this.N();var E=this.part;E!==null&&(E.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 E=a.length,b=0,x=0;x<E;x++){var z=a[x];0<=z&&isFinite(z)||Ct("strokeDashArray:value "+z+" at index "+x+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Rh(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 E=Qt.Ze[a];typeof E=="function"?E=a:(E=Qt.Ze[a.toLowerCase()])||Ct("Unknown Shape.figure: "+a),y!==E&&(a=this.part,a!==null&&(a.ag=NaN),this.an=E,this.Rd=null,this.qc(),this.v(),this.g("figure",y,E))}}},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 E=xS(a);E===null?Ct("Unknown Shape.toArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Yd),this.Ua.V=E,this.Rd=null,this.qc(),this.v(),bS(this),this.g("toArrow",y,E))}}},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 E=xS(a);E===null?Ct("Unknown Shape.fromArrow: "+a):y!==E&&(this.Ua===null&&(this.Ua=new Yd),this.Ua.j=E,this.Rd=null,this.qc(),this.v(),bS(this),this.g("fromArrow",y,E))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Ia},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Rh(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Ia},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Rh(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&&(Rh(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Or},set:function(a){var y=this.geometryStretch;y!==a&&(Rh(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 Hc),this.fa.Tk=a;var E=this.diagram;E!==null&&this.panel===E.grid&&bc(E),this.v(),E=this.panel,E!==null&&(E.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 Hc),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 Hc),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 Hc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Hr.prototype.intersectsRect=Hr.prototype.Yc,Hr.prototype.containedInRect=Hr.prototype.fh,Hr.prototype.getNearestIntersectionPoint=Hr.prototype.rs,Hr.prototype.getDocumentBounds=Hr.prototype.mi,Hr.prototype.getDocumentPoint=Hr.prototype.ga;var Uc=new ir,Nv=new ir;Hr.className="Shape",Hr.getFigureGenerators=function(){var a=new yn,y;for(y in Qt.Ze)y!==y.toLowerCase()&&a.add(y,Qt.Ze[y]);return a.freeze(),a},Hr.defineFigureGenerator=function(a,y){var E=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[E]=a},Hr.getArrowheadGeometries=function(){var a=new yn;for(b in Qt.um)if(Uc[b]===void 0){var y=Ti.parse(Qt.um[b],!1);Uc[b]=y,y=b.toLowerCase(),y!==b&&(Uc[y]=b)}for(var E in Uc)if(E!==E.toLowerCase()){var b=Uc[E];b instanceof Ti&&a.add(E,b)}return a.freeze(),a},Hr.defineArrowheadGeometry=function(a,y){var E=null;typeof y=="string"?E=Ti.parse(y,!1):E=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ct("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Uc;b[a]=E,b[y]=a};function kv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Or,this.gg=this.fg=Ia}kv.prototype.copy=function(){var a=new kv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Ho(a,y){return qt.call(this),Hm||(wl=da?new Mu(null).context:null,Hm=!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}dn(Ho,qt),Ho.prototype.cloneProtected=function(a){qt.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())}Me=Ho.prototype,Me.th=function(){qt.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}Me.qb=function(a){a.classType===Ho?this.wrap=a:qt.prototype.qb.call(this,a)},Me.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Me.v=function(){qt.prototype.v.call(this)},Me.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var E=this.naturalBounds,b=this.actualBounds,x=E.width,z=E.height,ne=sg(this),re=a.textAlign=this.textAlign,se=y.tn;re==="start"?re=se?"right":"left":re==="end"&&(re=se?"left":"right"),se=this.isUnderline;var de=this.isStrikethrough;ha(this,a,this.xc,!0,!1,E,b),(se||de)&&ha(this,a,this.xc,!1,!1,E,b),b=0,E=!1;var pe=this.oe,Se=pe.dx-(ne*pe.m21+pe.dx);pe=pe.dy-(ne*pe.m22+pe.dy);var Ae=y.scale;switch(8>(Se*Se+pe*pe)*Ae*Ae&&(E=!0),y.ib!==a&&(E=!1),y.ib instanceof Gl&&(E=!1),y.Gf("textGreeking")===!1&&(E=!1),y=this.spacingAbove,Se=this.spacingBelow,this.flip){case oo:a.translate(x,0),a.scale(-1,1);break;case Vr:a.translate(0,z),a.scale(1,-1);break;case No:a.translate(x,z),a.scale(-1,-1)}if(a.yc(),pe=this.Gc,Ae=(y+ne+Se)*pe,z>Ae&&(b=this.verticalAlignment,b=b.y*z-b.y*Ae+b.offsetY),pe===1&&this.ze!==null)Se=this.Cb,Se>x&&(Se=x),this.Oj(this.ze,a,0,b+y,x,ne,Se,E,re,se,de);else if(this.Qc!==null&&this.Qb!==null)for(Ae=0;Ae<pe;Ae++){var Re=this.Qc[Ae];Re>x&&(Re=x),b+=y,this.Oj(this.Qb[Ae],a,0,b,x,ne,Re,E,re,se,de),b+=ne+Se}switch(this.flip){case oo:a.scale(-1,1),a.translate(-x,0);break;case Vr:a.scale(1,-1),a.translate(0,-z);break;case No:a.scale(-1,-1),a.translate(-x,-z)}}},Me.Oj=function(a,y,E,b,x,z,ne,re,se,de,pe){var Se=0;if(re)se==="left"?Se=0:se==="right"?Se=x-ne:se==="center"&&(Se=(x-ne)/2),y.fillRect(E+Se,b+.25*z,ne,1);else{if(se==="left"?Se=0:se==="right"?Se=x:se==="center"&&(Se=x/2),x=Fm!==null?Fm(this,z):.75*z,y.fillText(a,E+Se,b+x),a=z/20|0,a===0&&(a=1),se==="right"?Se-=ne:se==="center"&&(Se-=ne/2),de){re=Bm!==null?Bm(this,z):.8*z,se=E+Se,de=b+re,x=E+Se+ne,re=b+re;var Ae=a;y.beginPath(),y.lineWidth=Ae,y.moveTo(se,de),y.lineTo(x,re),y.stroke(),y.Se(),y instanceof Gl&&y.ad.classList.add("gojs-td")}pe&&(pe=b+z-z/2.2|0,a%2!==0&&(pe+=.5),b=E+Se,z=pe,E=E+Se+ne,ne=pe,Se=a,y.beginPath(),y.lineWidth=Se,y.moveTo(b,z),y.lineTo(E,ne),y.stroke(),y.Se(),y instanceof Gl&&y.ad.classList.add("gojs-td"))}},Me.kk=function(a,y,E){if(!qt.prototype.kk.call(this,a,y,E))return!1;if(ha(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),E){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),E=0;E<y.length;E++)nS(a,y[E],!1)}else y=this.svg,y.innerHTML=this.text,nS(a,y,!0);return!0},Me.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:qt.prototype.nk.call(this,a)},Me.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var E=0;E<a.length;E++)a[E].setAttributeNS(null,"filter",y)}},Me.Wl=function(a,y,E,b){var x=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;wl!==null&&IS!==z&&(IS=wl.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;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=ne=0,se=!1;!se;){var de=z.indexOf(`
`,re);de===-1&&(de=z.length,se=!0),re=z.substr(re,de-re),this.formatting===lg&&(re=re.trim()),ne=Math.max(ne,Ju(re)),re=de+1}z=ne}else ne=z.indexOf(`
`,0),0<=ne&&(z=z.substr(0,ne)),z=Ju(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)),ne=TS(this,z),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,se=ne,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,sg(this)+de),se=Math.min(this.maxLines-1,Math.max(Math.floor(se/de+.01)-1,0)),!(se+1>=this.Qb.length))){for(this.l|=16777216,de=this.Qb[se],y=Math.max(1,a-y);Ju(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=ug,y=Ju(de),this.Qb[se]=de,this.Qb=this.Qb.slice(0,se+1),this.Qc[se]=y,this.Qc=this.Qc.slice(0,se+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===PS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(E,z),ne=Math.max(b,ne),so(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&x!==this.Gc&&(this.Uc=!0)},Me.eh=function(a,y,E,b){Ks(this,a,y,E,b)};function ag(a,y,E){a.ze===null?(a.ze=y,a.Cb=E):((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(E),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Lv(a,y,E,b){var x=a.formatting===lg;x&&(y=y.trim());var z=0,ne=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,sg(a)+re);var se=a.overflow===_m?CS(ne):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(ne=y,a.wrap===Iv){a.Le=1;var de=Ju(y);if(se===0||de<=E)a.Cb=Math.max(a.Cb,de),ag(a,y,a.Cb),b!==null&&b.h(de,re);else{for(z=Qf(a,ne),ne=ne.substr(z.length),y=Qf(a,ne),de=Ju(z+y);0<y.length&&de<=E;)z+=y,ne=ne.substr(y.length),y=Qf(a,ne),de=z+y,x&&(de=de.trim()),de=Ju(de);for(x&&(y=y.trim()),z+=y,E=Math.max(1,E-se);Ju(z)>E&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=ug;var pe=Ju(z);a.Cb=pe,ag(a,z,pe),b!==null&&b.h(pe,re)}}else{for(se=0,ne.length===0&&(se=1,ag(a,ne,0));0<ne.length;){for(y=Qf(a,ne),ne=ne.substr(y.length);Ju(y)>E;){var Se=1;for(de=Ju(y.substr(0,Se)),pe=0;de<=E;)Se++,pe=de,de=Ju(y.substr(0,Se));if(Se===1){var Ae=de;z=Math.max(z,de)}else Ae=pe,z=Math.max(z,pe);if(Se--,1>Se&&(Se=1),ag(a,y.substr(0,Se),Ae),se++,y=y.substr(Se),a.Gc+se>a.maxLines)break}for(pe=Qf(a,ne),de=Ju(y+pe);0<pe.length&&de<=E;)y+=pe,ne=ne.substr(pe.length),pe=Qf(a,ne),de=y+pe,x&&(de=de.trim()),de=Ju(de);if(x&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),pe.length===0?(Se=de,z=Math.max(z,de)):(Se=pe=Ju(y),z=Math.max(z,pe)),ag(a,y,Se),se++,a.Gc+se>a.maxLines))break}a.Le=Math.min(a.maxLines,se),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Qf(a,y){if(a.wrap===AS)return y.substr(0,1);for(var E=y.length,b=0,x=kE;b<E&&!x.test(y.charAt(b));)b++;for(a.formatting===kS&&(E=Math.min(E,b+1));b<E&&x.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Ju(a){return wl===null?8*a.length:wl.measureText(a).width}function sg(a){if(a.df!==null)return a.df;var y=a.Ae;if(wl===null){var E=16;return a.df=E}return Rv[y]!==void 0&&5e3>LS?E=Rv[y]:(E=1.3*wl.measureText("M").width,Rv[y]=E,LS++),a.df=E}function CS(a){if(wl===null)return 6;if(Um[a]!==void 0&&5e3>Dv)var y=Um[a];else y=wl.measureText(ug).width,Um[a]=y,Dv++;return y}function TS(a,y){var E=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,sg(a)+b),E.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var x=E.indexOf(`
`,0);0<=x&&(E=E.substr(0,x))}x=0;for(var z=a.Gc=0,ne,re=!1;!re;){if(ne=E.indexOf(`
`,z),ne===-1&&(ne=E.length,re=!0),z<=ne){if(z=E.substr(z,ne-z),a.wrap!==Iv){a.Le=0;var se=en.alloc();Lv(a,z,y,se),x+=se.height,en.free(se),a.Gc+=a.Le}else Lv(a,z,y,null),x+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ne+1}return a.Lq=x}_n.Object.defineProperties(Ho.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:hi},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:cu},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Tc(this),this.da.Yr=a,il(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 E=this.desiredSize;isNaN(E.width)||(y=E.width),isNaN(E.height)||(a=E.height),so(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:Ov},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 bo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return sg(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 Hc),this.fa.Tk=a,this.v();var E=this.panel;E!==null&&(E.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 Hc),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 Hc),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 Hc),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 Hc),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:lg},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&&fi(a,"> 0",Ho,"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 pn(Ho,"None",0),PS=new pn(Ho,"WrapFit",1),Mv=new pn(Ho,"WrapDesiredSize",2),AS=new pn(Ho,"WrapBreakAll",3),Ov=new pn(Ho,"OverflowClip",0),_m=new pn(Ho,"OverflowEllipsis",1),lg=new pn(Ho,"FormatTrim",0),kS=new pn(Ho,"FormatNone",0),kE=/[ \u200b\u00ad]/,Rv=new ir,LS=0,Um=new ir,Dv=0,ug="...",IS="",wl=null,Hm=!1;Ho.className="TextBlock";function Fv(){this.nc=!1,this.Hd=null,this.Xf=hi,this.gq=lg,this.Jq=1/0,this.$q=Ov,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=cu,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},Ho.getEllipsis=function(){return ug},Ho.setEllipsis=function(a){ug=a,Um=new ir,Dv=0},Ho.getBaseline=function(){return Fm},Ho.setBaseline=function(a){Fm=a},Ho.getUnderline=function(){return Bm},Ho.setUnderline=function(a){Bm=a},Ho.isValidFont=function(a){if(Hm||(wl=da?new Mu(null).context:null,Hm=!0),wl===null)return!0;var y=wl.font;if(a===y||a==="10px sans-serif")return!0;wl.font="10px sans-serif",wl.font=a;var E=wl.font;if(E!=="10px sans-serif")return wl.font=y,!0;wl.font="19px serif";var b=wl.font;return wl.font=a,E=wl.font,wl.font=y,E!==b},Ho.FormatNone=kS,Ho.FormatTrim=lg,Ho.None=Iv,Ho.OverflowClip=Ov,Ho.OverflowEllipsis=_m,Ho.WrapBreakAll=AS,Ho.WrapDesiredSize=Mv,Ho.WrapFit=PS;function Hc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hc.prototype.copy=function(){var a=new Hc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hc.className="GradElementSettings";function Cl(a,y){qt.call(this),this.Eg=null,this.qo="",this.Xg=js,this.Nk=xi,this.Zg=this.Hd=null,this.Mk=Dr,this.Xf=hi,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;dn(Cl,qt),Cl.prototype.cloneProtected=function(a){qt.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},Cl.prototype.qb=function(a){a===hi||a===rr||a===$r?this.imageStretch=a:qt.prototype.qb.call(this,a)},Cl.prototype.toString=function(){return"Picture("+this.source+")#"+Sr(this)};function qf(a){a===void 0&&(a=""),a!==""?Jf[a]&&(delete Jf[a],zm--):(Jf=new ir,zm=0)}function MS(a,y){y.qy||(y.Fq=function(E){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var x=b.value;x.N();var z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null)for(var re=ne.length,se=0;se<re;se++)z=ne[se],x.Xn.add(z),z.Uc=!0,x.$b(),y.hn&&(y.eu===void 0&&(y.eu=E),z.Zg!==null&&z.Zg(z,E))}y.Bg.clear()}a.desiredSize.w()||(Fa(a,!1),a.v())},y.Yp=function(E){y.ln=E;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var x=b.value,z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null){x=ne.length,z=Pi();for(var re=0;re<x;re++)z.push(ne[re]);if(y.hn)for(re=0;re<x;re++)ne=z[re],ne.Hd!==null&&ne.Hd(ne,E);Ai(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Cl.prototype.hA=function(){if(this.source!==""){qf(this.source);var a=this.source;this.source="",this.source=a}},Cl.prototype.redraw=function(){this.N(),this.Uc=!0},Cl.prototype.hh=function(a,y){var E=this.Eg;if(E!==null){var b=E.getAttribute("src");if(!(E instanceof HTMLImageElement&&(b===null||b==="")||E.ln instanceof Event&&a instanceof Mh)){var x=a instanceof Gl;b=this.naturalBounds;var z=0,ne=0,re=this.qn,se=re?+E.width:E.naturalWidth;if(re=re?+E.height:E.naturalHeight,se===void 0&&E.videoWidth&&(se=E.videoWidth),re===void 0&&E.videoHeight&&(re=E.videoHeight),se=se||b.width,re=re||b.height,se!==0&&re!==0){var de=se,pe=re;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,se=this.Xg.width,re=this.Xg.height);var Se=se,Ae=re,Re=this.Nk,Ue=this.Mk;switch(Re){case hi:if(this.sourceRect.w())break;Se>=b.width&&(z=z+Ue.offsetX+(Se*Ue.x-b.width*Ue.x)),Ae>=b.height&&(ne=ne+Ue.offsetY+(Ae*Ue.y-b.height*Ue.y)),se=Math.min(b.width,Se),re=Math.min(b.height,Ae);break;case xi:Se=b.width,Ae=b.height;break;case rr:case $r:Re===rr?(Re=Math.min(b.height/Ae,b.width/Se),Se*=Re,Ae*=Re):Re===$r&&(Re=Math.max(b.height/Ae,b.width/Se),Se*=Re,Ae*=Re,Se>=b.width&&(z=(z+Ue.offsetX+(Se*Ue.x-b.width*Ue.x)/Se)*se),Ae>=b.height&&(ne=(ne+Ue.offsetY+(Ae*Ue.y-b.height*Ue.y)/Ae)*re),se*=1/(Se/b.width),re*=1/(Ae/b.height),Se=b.width,Ae=b.height)}Re=this.Df()*y.scale;var Xe=Se*Re*Ae*Re,bt=se*re/Xe,ft=E.__goCache;Re=null;var Pt=LE;if(!x){if(E.sq&&ft!==void 0&&4<Xe&&bt>Pt*Pt)for(ft.gi===null&&(RS(ft,4,de,pe,E),RS(ft,16,de,pe,E)),x=ft.gi,de=x.length,pe=0;pe<de&&x[pe].ratio*x[pe].ratio<bt;pe++)Re=x[pe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{x=new Mu(null).context;try{x.drawImage(this.Eg,0,0)}catch(Nt){this.en=!1}try{x.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Nt){this.vl=!0}}if(this.vl)return}}switch(x=Se<b.width?Ue.offsetX+(b.width*Ue.x-Se*Ue.x):0,Ue=Ae<b.height?Ue.offsetY+(b.height*Ue.y-Ae*Ue.y):0,this.flip){case oo:a.translate(Math.min(b.width,Se),0),a.scale(-1,1);break;case Vr:a.translate(0,Math.min(b.height,Ae)),a.scale(1,-1);break;case No:a.translate(Math.min(b.width,Se),Math.min(b.height,Ae)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ft!==void 0&&Re!==null&&Re.ratio!==1){a.save(),y=Re.ratio;try{a.drawImage(Re.source,z/y,ne/y,Math.min(Re.source.width,se/y),Math.min(Re.source.height,re/y),x,Ue,Math.min(b.width,Se),Math.min(b.height,Ae)),a instanceof Gl&&(this.bt=[z/y,ne/y,Math.min(Re.source.width,se/y),Math.min(Re.source.height,re/y),x,Ue,Math.min(b.width,Se),Math.min(b.height,Ae)])}catch(Nt){this.en=!1}a.restore()}else try{a.drawImage(E,z,ne,se,re,x,Ue,Math.min(b.width,Se),Math.min(b.height,Ae)),a instanceof Gl&&(this.bt=[z,ne,se,re,x,Ue,Math.min(b.width,Se),Math.min(b.height,Ae)])}catch(Nt){this.en=!1}switch(this.flip){case oo:a.scale(-1,1),a.translate(-Math.min(b.width,Se),0);break;case Vr:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ae));break;case No:a.scale(-1,-1),a.translate(-Math.min(b.width,Se),-Math.min(b.height,Ae))}}}}},Cl.prototype.Wl=function(a,y,E,b){var x=this.desiredSize,z=xl(this,!0),ne=this.Eg,re=this.qn,se=0,de=0;(re||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(x.width)||(a=0),isFinite(x.height)||(y=0)):(se=re?+ne.width:ne.naturalWidth,de=re?+ne.height:ne.naturalHeight),isFinite(x.width)||z===xi||z===lr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=se)),E=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:se),isFinite(x.height)||z===xi||z===fr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=de)),b=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:de),isFinite(x.width)&&(a=x.width),isFinite(x.height)&&(y=x.height),x=this.maxSize,z=this.minSize,E=Math.max(E||0,z.width),b=Math.max(b||0,z.height),a=Math.min(x.width,a),y=Math.min(x.height,y),a=Math.max(E,a),y=Math.max(b,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),so(this.dc,a,y),this.Ge(0,0,a,y)},Cl.prototype.eh=function(a,y,E,b){Ks(this,a,y,E,b)},_n.Object.defineProperties(Cl.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 E=a instanceof HTMLImageElement;a===null||E||a instanceof HTMLVideoElement||this.qn||Ct("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&jp(b,this),this.Eg=a,a!==null&&E&&a.Bg===void 0&&(a.Bg=new $n),b!==null&&E&&Wd(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Fa(this,!1),this.v())):E&&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 E=Jf;if(da){var b=null;if(E[a]!==void 0)b=E[a];else if(a!==""){30<zm&&(qf(),E=Jf),b=mi("img"),b.hn=!0,MS(this,b);var x=this.rl;x!==null&&(b.crossOrigin=x(this)),b.src=a,E[a]=b,zm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new OS),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}}}),Cl.prototype.redraw=Cl.prototype.redraw,Cl.prototype.reloadSource=Cl.prototype.hA;var zm=0,LE=4;Cl.className="Picture",Jf=new ir,Cl.clearCache=qf;function OS(){this.gi=null}function RS(a,y,E,b,x){a.gi===null&&(a.gi=[]);var z=new Mu(null),ne=z.context,re=1/y;z.width=E/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new DS(z.Oa,y),E=1,0<a.gi.length&&(E=a.gi[a.gi.length-1],x=E.source,E=E.ratio),ne.setTransform(re*E,0,0,re*E,0,0),ne.yc(),ne.drawImage(x,0,0),a.gi.push(y))}OS.className="PictureCacheArray";function DS(a,y){this.source=a,this.ratio=y}DS.className="PictureCacheInstance";function $f(){this.os=new Ti,this.mc=null}$f.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Ti,this.mc=null};function ep(a,y,E,b,x,z){a.mc=new ya,a.mc.startX=y,a.mc.startY=E,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),x!==void 0&&(a.mc.isShadowed=x)}function IE(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}$f.prototype.moveTo=function(a,y,E){E===void 0&&(E=!1);var b=new no(Go);b.endX=a,b.endY=y,E&&b.close(),this.mc.segments.add(b)},$f.prototype.lineTo=function(a,y,E){E===void 0&&(E=!1);var b=new no(To);b.endX=a,b.endY=y,E&&b.close(),this.mc.segments.add(b)};function xd(a,y,E,b,x,z,ne){var re;re===void 0&&(re=!1);var se=new no(ba);se.point1X=y,se.point1Y=E,se.point2X=b,se.point2Y=x,se.endX=z,se.endY=ne,re&&se.close(),a.mc.segments.add(se)}function jm(a,y,E,b,x){var z;z===void 0&&(z=!1);var ne=new no(Fs);ne.point1X=y,ne.point1Y=E,ne.endX=b,ne.endY=x,z&&ne.close(),a.mc.segments.add(ne)}$f.prototype.arcTo=function(a,y,E,b,x,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var re=new no(sa);re.startAngle=a,re.sweepAngle=y,re.centerX=E,re.centerY=b,re.radiusX=x,re.radiusY=z!==0?z:x,ne&&re.close(),this.mc.segments.add(re)};function ME(a,y,E,b,x,z,ne,re){var se;se===void 0&&(se=!1),y=new no(Gs,ne,re,y,E,b,x,z),se&&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 zs(a,y){var E=a.toLowerCase(),b=Qt.Ze;b[a]=y,b[E]=a}zs("Rectangle",function(a,y,E){a="r"+y+","+E;var b=Qt.Mf[a];return b!==void 0||(b=new Ti(Ti.u),b.endX=y,b.endY=E,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),zs("Square",function(a,y,E){a="s"+y+","+E;var b=Qt.Mf[a];return b!==void 0||(b=new Ti(Ti.u),b.endX=y,b.endY=E,b.defaultStretch=rr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),zs("RoundedRectangle",function(a,y,E){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,E/3);var b="rr"+y+","+E+","+a,x=Qt.Mf[b];if(x!==void 0)return x;var z=a*Qt.wg;return x=new Ti().add(new ya(a,0,!0).add(new no(To,y-a,0)).add(new no(ba,y,a,y-z,0,y,z)).add(new no(To,y,E-a)).add(new no(ba,y-a,E,y,E-z,y-z,E)).add(new no(To,a,E)).add(new no(ba,0,E-a,z,E,0,E-z)).add(new no(To,0,a)).add(new no(ba,a,0,0,z,z,0).close())),1<z&&(x.spot1=new $i(0,0,z,z),x.spot2=new $i(1,1,-z,-z)),Qt.Nf<Qt.vm&&(Qt.Mf[b]=x,Qt.Nf++),x}),zs("Border","RoundedRectangle"),zs("Ellipse",function(a,y,E){a="e"+y+","+E;var b=Qt.Mf[a];return b!==void 0||(b=new Ti(Ti.F),b.endX=y,b.endY=E,b.spot1=du,b.spot2=Cs,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),zs("Circle",function(a,y,E){a="c"+y+","+E;var b=Qt.Mf[a];return b!==void 0||(b=new Ti(Ti.F),b.endX=y,b.endY=E,b.spot1=du,b.spot2=Cs,b.defaultStretch=rr,Qt.Nf<Qt.vm&&(Qt.Mf[a]=b,Qt.Nf++)),b}),zs("TriangleRight",function(a,y,E){return new Ti().add(new ya(0,0).add(new no(To,y,.5*E)).add(new no(To,0,E).close())).pm(0,.25,.5,.75)}),zs("TriangleDown",function(a,y,E){return new Ti().add(new ya(0,0).add(new no(To,y,0)).add(new no(To,.5*y,E).close())).pm(.25,0,.75,.5)}),zs("TriangleLeft",function(a,y,E){return new Ti().add(new ya(y,E).add(new no(To,0,.5*E)).add(new no(To,y,0).close())).pm(.5,.25,1,.75)}),zs("TriangleUp",function(a,y,E){return new Ti().add(new ya(y,E).add(new no(To,0,E)).add(new no(To,.5*y,0).close())).pm(.25,.5,.75,1)}),zs("Triangle","TriangleUp"),zs("Diamond",function(a,y,E){return new Ti().add(new ya(.5*y,0).add(new no(To,0,.5*E)).add(new no(To,.5*y,E)).add(new no(To,y,.5*E).close())).pm(.25,.25,.75,.75)}),zs("LineH",function(a,y,E){return a=new Ti(Ti.j),a.startX=0,a.startY=E/2,a.endX=y,a.endY=E/2,a}),zs("LineV",function(a,y,E){return a=new Ti(Ti.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=E,a}),zs("None","Rectangle"),zs("BarH","Rectangle"),zs("BarV","Rectangle"),zs("MinusLine","LineH"),zs("PlusLine",function(a,y,E){return new Ti().add(new ya(0,E/2,!1).add(new no(To,y,E/2)).add(new no(Go,y/2,0)).add(new no(To,y/2,E)))}),zs("XLine",function(a,y,E){return new Ti().add(new ya(0,E,!1).add(new no(To,y,0)).add(new no(Go,0,0)).add(new no(To,y,E)))}),zs("LineRight",function(a,y,E){return new Ti().add(new ya(.25*y,0,!1).add(new no(To,.75*y,.5*E)).add(new no(To,.25*y,E)))}),zs("LineDown",function(a,y,E){return new Ti().add(new ya(0,.25*E,!1).add(new no(To,.5*y,.75*E)).add(new no(To,y,.25*E)))}),zs("LineLeft",function(a,y,E){return new Ti().add(new ya(.75*y,0,!1).add(new no(To,.25*y,.5*E)).add(new no(To,.75*y,E)))}),zs("LineUp",function(a,y,E){return new Ti().add(new ya(0,.75*E,!1).add(new no(To,.5*y,.25*E)).add(new no(To,y,.75*E)))}),Qt.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=wr,this.ir=null,this.jr="",this.lr=Ia,this.Gq="",this.Hq=Kr,this.Pq=Hi,this.Kq=nr,this.Up=null,this.Cq=127,this.zr=qi,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 cr(a,y){a===void 0||a instanceof za||typeof a=="string"?wi.call(this,a):(wi.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 rt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new xn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}dn(cr,wi),cr.prototype.cloneProtected=function(a){wi.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},Me=cr.prototype,Me.Af=function(a){wi.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Me.toString=function(){var a=Rn(this.constructor)+"#"+Sr(this);return this.data!==null&&(a+="("+Ji(this.data)+")"),a};function Tl(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Me.th=function(){wi.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Me.gk=function(a,y,E,b,x,z,ne){var re=this.diagram;re!==null&&(a===na&&y==="elements"?x instanceof wi?Oh(x,function(se){cy(re.partManager,se),Th(re,se)}):Wd(re,x):a===aa&&y==="elements"&&(x instanceof wi?Oh(x,function(se){dy(re.partManager,se,re)}):jp(re,x)),re.cb(a,y,E,b,x,z,ne))},Me.La=function(a){if(wi.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];x instanceof wi&&Oh(x,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},cr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},cr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},cr.prototype.bh=function(a,y){if(y!==null){var E=null,b=this.Qf;if(b!==null&&(E=b.I(a)),E!==y){if(E!==null){var x=E.diagram;x!==null&&x.remove(E)}b===null&&(this.Qf=b=new yn),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},cr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var E=y.I(a);if(E!==null){var b=E.diagram;b!==null&&b.remove(E)}y.remove(a),y.count===0&&(this.Qf=null)}},cr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Pi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var E=0;E<a;E++)this.Jf(y[E]);Ai(y)}},cr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var E=y.value;E.v(),E.placeholder&&E.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(E=this.Pj("Selection"),E===null){if(E=this.selectionAdornmentTemplate,E===null&&(E=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Ir?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(E instanceof co))break e;Ou(E),E=E.copy(),E!==null&&(this.ph()&&this.selectionObject===this.path&&(E.type=wi.Link),E.adornedObject=y)}if(E!==null){E.type===wi.Link&&E.v(),this.bh("Selection",E);break e}}this.Jf("Selection")}for(OE(this,a),y=this.adornments;y.next();)y.value.La()}},cr.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 OE(a,y){y.toolManager.mouseDownTools.each(function(E){E.isEnabled&&E.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Vm(a){if(Xd(a)===!1){Hv(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,E=a.location;E.w()&&y.w()||HS(a,y,E),E=a.Ib;var b=xn.alloc().assign(E);E.ka(),E.x=y.x,E.y=y.y,E.freeze(),a.Xl(b,E),xn.free(b),Hv(a,!1)}}cr.prototype.Ge=function(a,y,E,b){var x=this.uc;x.h(a,y,E,b),this.Lb===null&&(this.Lb=new mr);var z=this.Lb;z.reset(),this.no(z,a,y,E,b),this.Lb=z,z.ws()||z.pp(x)},cr.prototype.no=function(a,y,E,b,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Dr;this.locationSpot.sb()&&(z=this.locationSpot);var ne=rt.alloc();if(this.locationObject!==this)for(y=this.locationObject,E=y.naturalBounds,ne.yi(E.x,E.y,E.width,E.height,z),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ne),ne.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ne.yi(y,E,b,x,z);a.rotate(this.Kb,ne.x,ne.y),rt.free(ne)}},cr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},cr.prototype.moveTo=function(a,y,E){a=rt.allocAt(a,y),this.move(a,E),rt.free(a)},cr.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())},cr.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())},cr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new yn),y.I(a)!==null)return y.I(a);var E=wi.prototype.fb.call(this,a);return E!==null?(y.set(a,E),E):(y.set(a,null),null)};function wd(a,y,E,b){b===void 0&&(b=new rt),E=E.Mc()?Dr:E;var x=y.naturalBounds;if(b.h(x.width*E.x+E.offsetX,x.height*E.y+E.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}cr.prototype.mi=function(a){return a===void 0&&(a=new xn),a.assign(this.actualBounds)},cr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function _S(a){var y=rt.alloc(),E=a.locationObject,b=E.naturalBounds,x=E instanceof Hr?E.strokeWidth:0;if(y.yi(0,0,b.width+x,b.height+x,a.locationSpot),E!==a)for(y.offset(-x/2,-x/2),E.transform.Ga(y),E=E.panel;E!==null&&E!==a;)E.transform.Ga(y),E=E.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Fh(a,y){var E=a.py;isNaN(a.ag)&&(a.ag=pS(a));var b=a.ag,x=2*b;if(!a.isShadowed)return E.h(y.x-1-b,y.y-1-b,y.width+2+x,y.height+2+x),E;b=y.x,x=y.y;var z=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,z+=ne,y+=ne,b-=ne/2,x-=ne/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(x+=a.y,y-=a.y),E.h(b-1,x-1,z+2,y+2),E}cr.prototype.arrange=function(){if(rl(this)===!1)BS(this);else{Fc(this,!1);var a=this.Ib,y=xn.alloc();y.assign(a);var E=Qd(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;HS(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(E):!this.Zc()||Qt.B(y.width,a.width)&&Qt.B(y.height,a.height)||0<=this.vw&&this.C(16),xn.free(y),Hv(this,!1)}},Me=cr.prototype,Me.Xl=function(a,y){var E=this.diagram;if(E!==null){var b=!1;if(E.Zi===!1&&a.w()){var x=xn.alloc();x.assign(E.documentBounds),x.Fv(E.padding),a.x>x.x&&a.y>x.y&&a.right<x.right&&a.bottom<x.bottom&&y.x>x.x&&y.y>x.y&&y.right<x.right&&y.bottom<x.bottom&&(b=!0),xn.free(x)}!(this.G&65536)&&a.D(y)||GS(this,b,E),E.N(),!a.w()&&!y.w()||Cr(a,y)||(this instanceof Gi&&!E.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Me.zv=function(a,y,E){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&US(this,b,a,y,E),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new rt(b.x+(a.x-y),b.y+(a.y-E)),this.g("location",b,this.ke.copy())),Xd(this)===!1&&rl(this)===!1&&(Vm(this),BS(this)),!0};function US(a,y,E,b,x){y===null||a instanceof co||(y=y.animationManager,y.zb&&Nu(y,a,new rt(b,x),E))}Me.mm=function(a,y,E){var b=this.ke,x=this.pa;if(E){if(b.x===a&&b.y===y)return;Xd(this)||rl(this)?x.h(NaN,NaN):x.h(x.x+a-b.x,x.y+y-b.y),b.h(a,y)}else{if(x.x===a&&x.y===y)return;b.h(b.x+a-x.x,b.y+y-x.y),x.h(a,y)}Vm(this)},Me.Av=function(){this.G&=-2097153,Vm(this)};function HS(a,y,E){var b=_S(a),x=a.diagram,z=E.w(),ne=y.w();z&&ne?a.G&2097152?zS(a,y,E,x,b):jS(a,y,E,x,b):z?zS(a,y,E,x,b):ne&&jS(a,y,E,x,b),a.G|=2097152,rt.free(b),a.Uk()}function zS(a,y,E,b,x){var z=y.x,ne=y.y;y.h(E.x-x.x,E.y-x.y),b!==null&&(E=b.animationManager,(b=E.defaultAnimation.isAnimating)||!E.zb||a instanceof co||Nu(E,a,new rt(z,ne),y),b||y.x===z&&y.y===ne||a.g("position",new rt(z,ne),y.copy()))}function jS(a,y,E,b,x){var z=E.copy();E.h(y.x+x.x,y.y+x.y),E.D(z)||b===null||a.g("location",z,E.copy())}function GS(a,y,E){zv(a,!1),a instanceof Gi&&md(E,a),a.layer.isTemporary||y||E.Ya(),y=a.Ib;var b=E.viewportBounds;b.w()?Qd(a)?(Fn(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():E.vd=!0}Me.si=function(){return!0},Me.Zc=function(){return!0},Me.ph=function(){return!1},Me.Dd=function(){return!0};function Uv(a,y,E,b){y.constructor===a.constructor||ZS||(ZS=!0,gi('Should not change the class of the Part when changing category from "'+E+'" to "'+b+'"'),gi(" Old class: "+Rn(a.constructor)+", new class: "+Rn(y.constructor)+", part: "+a.toString())),a.Ej();var x=a.data;E=a.layerName;var z=a.isSelected,ne=a.isHighlighted,re=!0,se=!0,de=!1;a instanceof Gi&&(re=a.isTreeLeaf,se=a.isTreeExpanded,de=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=x,a.G=z?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof Gi&&(a.U=re?a.U|4:a.U&-5,a.U=se?a.U|1:a.U&-2,a.U=de?a.U|2:a.U&-3),x!==null&&a.La(),x=a.layerName,x!==E&&(a.Jg=E,a.layerName=x),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}cr.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},cr.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},cr.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},cr.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},cr.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},cr.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},cr.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},cr.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},cr.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 Hv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function Qd(a){return(a.G&131072)!==0}Me=cr.prototype,Me.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Wm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Me.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Me.N=function(){var a=this.diagram;a!==null&&!rl(this)&&!Xd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Fh(this,this.Ib))},Me.v=function(){wi.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Gi&&this.labeledLink!==null&&il(this.labeledLink),a.$b(!0))},Me.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Me.Wo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},Me.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Me.oz=function(){return jv(this,this)};function jv(a,y){var E=y.containingGroup;return E!==null?1+jv(a,E):y instanceof Gi&&(y=y.labeledLink,y!==null)?jv(a,y):0}Me.sz=function(){return VS(this,this)};function VS(a,y){var E=y.containingGroup;return E!==null||y instanceof Gi&&(E=y.labeledLink,E!==null)?VS(a,E):y}Me.Td=function(a){return a instanceof Ir?Gv(this,this,a):!1};function Gv(a,y,E){if(y===E||E===null)return!1;var b=y.containingGroup;return b===null||b!==E&&!Gv(a,b,E)?y instanceof Gi&&(y=y.labeledLink,y!==null)?Gv(a,y,E):!1:!0}Me.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ir&&Wm(y,!0),y instanceof Gi){var E=y.labeledLink;E!==null&&(y=E)}y=y.containingGroup}for(E=null,y=a;y!==null;){if(y.G&1048576){E=y;break}y instanceof Gi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ir&&Wm(y,!1),y instanceof Gi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return E},cr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Gi&&this.isLinkLabel)},cr.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 Gi&&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 E=y.layout;E!==null?E.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function WS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Jd(a,y,E,b,x,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof co)){if(a.add(y),y instanceof Gi){if(E&&y instanceof Ir)for(var ne=y.memberParts;ne.next();)Jd(a,ne.value,E,b,x,z);if(x!==!1)for(ne=y.linksConnected;ne.next();){var re=ne.value;if(!a.contains(re)){var se=re.fromNode,de=re.toNode;se=se===null||a.contains(se),de=de===null||a.contains(de),(x?se&&de:se||de)&&Jd(a,re,E,b,x,z)}}if(1<b)for(y=y.Ou();y.next();)Jd(a,y.value,E,b-1,x,z)}else if(y instanceof Li)for(y=y.labelNodes;y.next();)Jd(a,y.value,E,b,x,z)}}_n.Object.defineProperties(cr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Br: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 E=this.diagram;if((E===null||E.Qj(a)!==null&&!E.partManager.addsToTemporaryLayer)&&(this.Jg=a,E!==null&&E.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(E=y.diagram,E!==null&&(a=E.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&E.cb(aa,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&E.cb(na,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var x=E.aa;E.aa=!0,b(this,y,a),E.aa=x}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Tl(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 E=this.layer;E!==null&&Nf(E,-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 co?this.type!==wi.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:Hi},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Tl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:nr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Tl(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&&(Tl(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:Kr},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Tl(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,E=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===E||isNaN(b.y)&&isNaN(E))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,rl(this)===!1&&(Vm(this),E=this.pa,E.w())){var x=this.diagram;if(x===null||x.animationManager.isTicking||!x.undoManager.isUndoingRedoing){var z=E.copy();E.h(E.x+(y.x-b.x),E.y+(y.y-b.y)),US(this,x,E,z.x,z.y),this.g("position",z,E.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var E=this.diagram,b=this.data,x=null;if(E!==null&&b!==null&&!(this instanceof co)){var z=E.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(x=this.clone(),x.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),E===null||b===null||this instanceof co?this instanceof co&&(x=this.adornedPart,x!==null&&(a=x.Qf,a!==null&&a.remove(y),x.bh(this.category,this))):(z=E.model,z.undoManager.isUndoingRedoing||(this.ph()?(E.partManager.setLinkCategoryForData(b,a),E=E.partManager.findLinkTemplateForCategory(a),E!==null&&(Ou(E),E=E.copy(),E!==null&&Uv(this,E,y,a))):(z!==null&&z.jm(b,a),E=v1(E.partManager,b,a),E!==null&&(Ou(E),E=E.copy(),E===null||E instanceof Li||(b=this.location.copy(),Uv(this,E,y,a),this.location.w()||(this.location=b)))),x!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",x,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 E=this.diagram;E!==null&&E.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 E=this.diagram;if(!a||this.canSelect()&&!(E!==null&&E.selection.count>=E.maxSelectionCount)){this.G^=4096;var b=!1;if(E!==null){b=E.skipsUndoManager,E.skipsUndoManager=!0;var x=E.selection;x.ka(),a?x.add(this):x.remove(this),x.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),E!==null&&(E.$b(),E.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var E=this.diagram;E!==null&&(E=E.highlighteds,E.ka(),a?E.add(this):E.remove(this),E.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&&(Tl(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&&(Tl(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&&(Tl(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 Li?(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&&(Tl(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&&(Tl(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&&(Tl(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:wr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Tl(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&&(Tl(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&&(Tl(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:Ia},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Tl(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&&Ct("Cannot make a Group a member of itself: "+this.toString()),Ct("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var E=this.diagram;if(y!==null?Yv(y,this):this instanceof Ir&&E!==null&&E.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof Ir&&E!==null&&E.ai.add(this),this.C(1),E!==null&&E.aa){var b=this.data,x=E.model;if(b!==null&&x.Xj()){var z=x.wa(a!==null?a.data:null);x.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(x=!0,E!==null&&(x=E.aa,E.aa=!0),b(this,y,a),E!==null&&(E.aa=x)),this instanceof Ir){for(E=new $n,Jd(E,this,!0,0,!0),E=E.iterator;E.next();)if(b=E.value,b instanceof Gi)for(b=b.linksConnected;b.next();)tp(b.value)}if(this instanceof Gi){for(E=this.linksConnected;E.next();)tp(E.value);E=this.labeledLink,E!==null&&tp(E)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Nf(y,-1,a))}}else Ct("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&&(Tl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Gi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Tl(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&&(Tl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:qi},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Tl(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&&(Tl(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&&(Tl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),cr.prototype.invalidateLayout=cr.prototype.C,cr.prototype.findCommonContainingGroup=cr.prototype.px,cr.prototype.isMemberOf=cr.prototype.Td,cr.prototype.findTopLevelPart=cr.prototype.sz,cr.prototype.findSubGraphLevel=cr.prototype.oz,cr.prototype.ensureBounds=cr.prototype.Va,cr.prototype.getDocumentBounds=cr.prototype.mi,cr.prototype.findObject=cr.prototype.fb,cr.prototype.moveTo=cr.prototype.moveTo,cr.prototype.invalidateAdornments=cr.prototype.Wb,cr.prototype.clearAdornments=cr.prototype.Ej,cr.prototype.removeAdornment=cr.prototype.Jf,cr.prototype.addAdornment=cr.prototype.bh,cr.prototype.findAdornment=cr.prototype.Pj,cr.prototype.updateTargetBindings=cr.prototype.La;var ZS=!1;cr.className="Part",cr.LayoutNone=0,cr.LayoutAdded=1,cr.LayoutRemoved=2,cr.LayoutShown=4,cr.LayoutHidden=8,cr.LayoutNodeSized=16,cr.LayoutGroupLayout=32,cr.LayoutNodeReplaced=64,cr.LayoutStandard=127,cr.LayoutAll=16777215;function co(a,y){a===void 0||a instanceof za||typeof a=="string"?cr.call(this,a):(cr.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)}dn(co,cr),co.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},co.prototype.updateRelationshipsFromData=function(){},co.prototype.Ul=function(a){var y=this.adornedObject,E=y==null?void 0:y.part;if(E instanceof Li&&y instanceof Hr){y=E.path,E.Ul(a),a=y.geometry,E=this.O.s,y=E.length;for(var b=0;b<y;b++){var x=E[b];x.isPanelMain&&x instanceof Hr&&(x.ua=a)}}},co.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!rl(a))},co.prototype.Zc=function(){return!1},co.prototype.gk=function(a,y,E,b,x,z,ne){if(a===na&&y==="elements"){if(x instanceof al)this.$a===null&&(this.$a=x);else if(x instanceof wi){var re=x.Nl(function(se){return se instanceof al});re instanceof al&&this.$a===null&&(this.$a=re)}}else a===aa&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof wi&&this.$a.rg(b)&&(this.$a=null));cr.prototype.gk.call(this,a,y,E,b,x,z,ne)},co.prototype.updateAdornments=function(){},co.prototype.Lj=function(){},_n.Object.defineProperties(co.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,E=null;a!==null&&(E=a.part),y===null||a!==null&&y===E||y.Jf(this.category),this.ue=a,E!==null&&E.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),co.className="Adornment";function Vv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=ca,this.er=Ym,this.Kr=this.ij=this.Nq=this.Mq=null}Vv.prototype.copy=function(){var a=new Vv;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 Gi(a,y){a===void 0||a instanceof za||typeof a=="string"?cr.call(this,a):(cr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Wn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}dn(Gi,cr),Gi.prototype.cloneProtected=function(a){cr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Me=Gi.prototype,Me.Af=function(a){cr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Cd(a){a.Ba===null?a.Ba=new Vv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Me.th=function(){cr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function KS(a,y){y!==null&&(a.af===null&&(a.af=new $n),a.af.add(y))}function YS(a,y,E,b){if(y===null||a.af===null)return null;for(var x=a.af.iterator;x.next();){var z=x.value;if(z.Ds===a&&z.cv===y&&z.Ox===E&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===E)return z}return null}Me.Lz=function(a,y,E){y==null&&(y=""),E==null&&(E=""),a=YS(this,a,y,E),a!==null&&a.Sl()},Me.gk=function(a,y,E,b,x,z,ne){a===na&&y==="elements"?this.wc=null:a===aa&&y==="elements"&&(this.wc=null),cr.prototype.gk.call(this,a,y,E,b,x,z,ne)},Me.Bd=function(a){for(var y=this.linksConnected;y.next();){var E=y.value;a!==void 0&&a.contains(E)||(Vl(E.fromPort),Vl(E.toPort),E.bb())}};function XS(a,y){for(a=a.linksConnected;a.next();){var E=a.value;(E.fromPort===y||E.toPort===y)&&(Vl(E.fromPort),Vl(E.toPort),E.bb())}}function Vl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Vl(y.port)}}Me.si=function(){return!0},Gi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Gi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Gi.prototype.isVisible=function(){if(!cr.prototype.isVisible.call(this))return!1;var a=!0,y=yd,E=this.diagram;if(E!==null&&(a=E.isTreePathToChildren,y=E.treeCollapsePolicy),y===yd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Da){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Hf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Gi.prototype.Zb=function(a){cr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var E=y.value;if(a&&this.containingGroup!==null){var b=E.To(this);b===null||b.Td(this.containingGroup)||E.bb()}E.Zb(a)}},Gi.prototype.qx=function(){var a=new $n,y=new $n;return QS(this,this,a,y),y.iterator};function QS(a,y,E,b){if(y!==null&&!E.has(y)){E.add(y);var x=!0,z=a.diagram;z!==null&&(x=z.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(x?ne.fromNode===y:ne.toNode===y)&&QS(a,x?ne.toNode:ne.fromNode,E,b):b.add(ne)})}}Gi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new br(this.jb),E=this;return y.predicate=function(b){return b.fromNode===E&&b.fromPortId===a||b.toNode===E&&b.toPortId===a},y},Me=Gi.prototype,Me.Mo=function(a){a===void 0&&(a=null);var y=new br(this.jb),E=this;return y.predicate=function(b){return b.fromNode!==E?!1:a===null?!0:b.fromPortId===a},y},Me.Sd=function(a){a===void 0&&(a=null);var y=new br(this.jb),E=this;return y.predicate=function(b){return b.toNode!==E?!1:a===null?!0:b.toPortId===a},y},Me.Mu=function(a){a===void 0&&(a=null);for(var y=null,E=null,b=this.jb.iterator;b.next();){var x=b.value;x.fromNode===this?(a===null||x.fromPortId===a)&&(x=x.toNode,y!==null?y.add(x):E!==null&&E!==x?(y=new $n,y.add(E),y.add(x)):E=x):x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):E!==null&&E!==x?(y=new $n,y.add(E),y.add(x)):E=x)}return y!==null?y.iterator:E!==null?new Ar(E):Br},Me.Po=function(a){a===void 0&&(a=null);for(var y=null,E=null,b=this.jb.iterator;b.next();){var x=b.value;x.fromNode!==this||a!==null&&x.fromPortId!==a||(x=x.toNode,y!==null?y.add(x):E!==null&&E!==x?(y=new $n,y.add(E),y.add(x)):E=x)}return y!==null?y.iterator:E!==null?new Ar(E):Br},Me.Oo=function(a){a===void 0&&(a=null);for(var y=null,E=null,b=this.jb.iterator;b.next();){var x=b.value;x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):E!==null&&E!==x?(y=new $n,y.add(E),y.add(x)):E=x)}return y!==null?y.iterator:E!==null?new Ar(E):Br},Me.jz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var b=new br(this.jb),x=this;return b.predicate=function(z){return!((z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)&&(z.fromNode!==a||z.toNode!==x||E!==null&&z.fromPortId!==E||y!==null&&z.toPortId!==y))},b},Me.kz=function(a,y,E){y===void 0&&(y=null),E===void 0&&(E=null);var b=new br(this.jb),x=this;return b.predicate=function(z){return!(z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||E!==null&&z.toPortId!==E)},b};function Zm(a,y,E){Vl(E);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var x=a.linkConnected;if(x!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),x(a,y,E),ne!==null&&(ne.aa=z)}}!b&&y.isTreeLink&&(E=y.fromNode,y=y.toNode,E!==null&&y!==null&&E!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),x=b?y:E,z=b?E:y,x.ci||(x.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?E===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Km(a,y,E){Vl(E);var b=a.jb.remove(y),x=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(x=a.diagram,z!==null){var ne=!0;x!==null&&(ne=x.aa,x.aa=!0),z(a,y,E),x!==null&&(x.aa=ne)}}b&&y.isTreeLink&&(E=!0,x!==null&&(E=x.isTreePathToChildren),a=E?y.toNode:y.fromNode,y=E?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,x!==null&&x.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):cg(y)))}function cg(a){if(a.ci=!1,a.jb.count!==0){var y=!0,E=a.diagram;if(E===null||!E.undoManager.isUndoingRedoing){for(E!==null&&(y=E.isTreePathToChildren),E=a.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Gi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Me=Gi.prototype,Me.Vo=function(a){cr.prototype.Vo.call(this,a),a||(cg(this),a=this.Yk,a!==null&&o1(a,this))},Me.Wo=function(a){cr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Me.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,E=this.jb.copy().iterator;E.next();){var b=E.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,cr.prototype.Lj.call(this)},Me.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 yn:a.wc.clear(),a.qm(a,function(y,E){qS(y,E)}),a.wc.count===0&&a.wc.add("",a)}function qS(a,y){var E=y.portId;E!==null&&a.wc!==null&&a.wc.add(E,y)}function Wv(a,y,E){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&E)){for(E=null,a=a.findLinksConnected(b);a.next();)b=a.value,E===null&&(E=Pi()),E.push(b);if(E!==null){for(a=0;a<E.length;a++)y.remove(E[a]);Ai(E)}}}Me.Nz=function(a){if(a===null||a===this)return!1;var y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this,y)for(;E!==a;){y=null;for(var b=E.jb.iterator;b.next();){var x=b.value;if(x.isTreeLink&&(y=x.fromNode,y!==E&&y!==this))break}if(y===this||y===null||y===E)return!1;E=y}else for(;E!==a;){for(y=null,b=E.jb.iterator;b.next()&&(x=b.value,!x.isTreeLink||(y=x.toNode,y===E||y===this)););if(y===this||y===null||y===E)return!1;E=y}return!0},Me.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var E=y.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,E=y.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Me.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Wm(y,!0),y=y.pg();var E=null;for(y=a;y!==null;){if(y.G&1048576){E=y;break}y=y.pg()}for(y=this;y!==null;)Wm(y,!1),y=y.pg();return E},Me.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},Me.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Gi)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var E=y.value;if(E.isTreeLink&&(E=a?E.fromNode:E.toNode,E!==this))return this.ci=E}return this.ci=null},Me.vz=function(){function a(E,b){b.add(E);var x=E.kh();x!==null&&(b.add(x),E=E.pg(),E!==null&&a(E,b))}var y=new $n;return a(this,y),y},Me.uz=function(){return $S(this,this)};function $S(a,y){return y=y.pg(),y===null?0:1+$S(a,y)}Me.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new br(this.jb);var E=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===E)}:function(b){return!!(b.isTreeLink&&b.toNode===E)},y},Me.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var E=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Wn,y.add(E),y.add(a)):E=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):E!==null&&E!==a?(y=new Wn,y.add(E),y.add(a)):E=a);return y!==null?y.iterator:E!==null?new Ar(E):Br},Me.wz=function(a){a===void 0&&(a=1/0);var y=new $n;return Jd(y,this,!1,a,!0),y},Gi.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 E=new $n;E.add(this),e1(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===yd),y.Ue=!1}};function e1(a,y,E,b,x,z,ne){if(1<b)for(var re=E?a.Mo():a.Sd();re.next();){var se=re.value;se.isTreeLink&&(se=se.To(a),se===null||se===a||y.contains(se)||(y.add(se),e1(se,y,E,b-1,x,z,ne)))}else t1(a,y,E,x,z,ne)}function t1(a,y,E,b,x,z){for(var ne=x===a?!0:a.isTreeExpanded,re=E?a.Mo():a.Sd(),se={};re.next();){var de=re.value;if(de.isTreeLink&&(de=de.To(a),de!==null&&de!==a)){var pe=y.contains(de);if(pe||y.add(de),ne){var Se=E?de.Oo():de.Po();se.uv=a,Se.all(function(Ae){return function(Re){return Re===Ae.uv||!Re.isTreeExpanded}}(se))&&b.Aj(de,x),de.oh(),de.Zb(!1)}de.isTreeExpanded&&(de.wasTreeExpanded=de.isTreeExpanded,pe||t1(de,y,E,b,x,z))}se={uv:se.uv}}a.isTreeExpanded=!1}Gi.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 E=new $n;E.add(this),n1(this,E,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===yd),y.Ue=!1}};function n1(a,y,E,b,x,z,ne){for(var re=z===a?!1:a.isTreeExpanded,se=E?a.Mo():a.Sd(),de={};se.next();){var pe=se.value;if(pe.isTreeLink&&(re||pe.fd||pe.bb(),pe=pe.To(a),pe!==null&&pe!==a&&!y.contains(pe))){if(y.add(pe),!re){pe.Zb(!0),pe.oh();var Se=E?pe.Oo():pe.Po();de.vv=a,Se.all(function(Ae){return function(Re){return Re===Ae.vv||!Re.isTreeExpanded}}(de))&&x.Cj(pe,z)}(2<b||pe.wasTreeExpanded)&&(pe.wasTreeExpanded=!1,n1(pe,y,E,b-1,x,z,ne))}de={vv:de.vv}}a.isTreeExpanded=!0}_n.Object.defineProperties(Gi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Ym},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 E=this.diagram;E!==null&&md(E,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:ca},set:function(a){typeof a=="number"&&(a=new Fr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Cd(this),this.Ba.yp=a;var E=this.diagram;E!==null&&md(E,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 E=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),E!==null&&b!==null&&!E.undoManager.isUndoingRedoing){var x=y.data,z=E.model;if(x!==null&&z.ri()){var ne=z.wa(b);ne!==void 0&&z.Qx(x,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(o1(a,this),E===null||b===null||E.undoManager.isUndoingRedoing||(x=a.data,E=E.model,x!==null&&E.ri()&&(b=E.wa(b),b!==void 0&&E.Bu(x,b))),this.containingGroup=a.containingGroup),il(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 E=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;E!==null&&(b=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=b)}E!==null&&E.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))}}}),Gi.prototype.expandTree=Gi.prototype.expandTree,Gi.prototype.collapseTree=Gi.prototype.collapseTree,Gi.prototype.findTreeParts=Gi.prototype.wz,Gi.prototype.findTreeChildrenNodes=Gi.prototype.Ou,Gi.prototype.findTreeChildrenLinks=Gi.prototype.Qo,Gi.prototype.findTreeLevel=Gi.prototype.uz,Gi.prototype.findTreeParentChain=Gi.prototype.vz,Gi.prototype.findTreeParentNode=Gi.prototype.pg,Gi.prototype.findTreeParentLink=Gi.prototype.kh,Gi.prototype.findCommonTreeParent=Gi.prototype.gz,Gi.prototype.findTreeRoot=Gi.prototype.xz,Gi.prototype.isInTreeOf=Gi.prototype.Nz,Gi.prototype.findPort=Gi.prototype.ns,Gi.prototype.findLinksTo=Gi.prototype.kz,Gi.prototype.findLinksBetween=Gi.prototype.jz,Gi.prototype.findNodesInto=Gi.prototype.Oo,Gi.prototype.findNodesOutOf=Gi.prototype.Po,Gi.prototype.findNodesConnected=Gi.prototype.Mu,Gi.prototype.findLinksInto=Gi.prototype.Sd,Gi.prototype.findLinksOutOf=Gi.prototype.Mo,Gi.prototype.findExternalTreeLinksConnected=Gi.prototype.qx,Gi.prototype.invalidateConnectedLinks=Gi.prototype.Bd,Gi.prototype.invalidateLinkBundle=Gi.prototype.Lz;var RE=new pn(Gi,"SpreadingNone",10),Ym=new pn(Gi,"SpreadingEvenly",11),Zv=new pn(Gi,"SpreadingPacked",12);Gi.className="Node",Gi.SpreadingNone=RE,Gi.SpreadingEvenly=Ym,Gi.SpreadingPacked=Zv;function Ir(a,y){a===void 0||a instanceof za||typeof a=="string"?Gi.call(this,a):(Gi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new $n,this.$a=null,this.Sc=new ta,this.Sc.group=this,this.gl=new $n,this.tb=this.$p=null,y&&Object.assign(this,y)}dn(Ir,Gi),Ir.prototype.cloneProtected=function(a){Gi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(E){return E instanceof al});y instanceof al?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())},Me=Ir.prototype,Me.Af=function(a){Gi.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var E=a.value;if(E.v(),E.C(8),E.Ej(),E instanceof Gi)E.Bd(y);else if(E instanceof Li)for(E=E.labelNodes;E.next();)E.value.Bd(y)}},Me.gk=function(a,y,E,b,x,z,ne){if(a===na&&y==="elements"){if(x instanceof al)this.$a===null?this.$a=x:this.$a!==x&&Ct("Cannot insert a second Placeholder into the visual tree of a Group.");else if(x instanceof wi){var re=x.Nl(function(se){return se instanceof al});re instanceof al&&(this.$a===null?this.$a=re:this.$a!==re&&Ct("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===aa&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof wi&&this.$a.rg(b)&&(this.$a=null));Gi.prototype.gk.call(this,a,y,E,b,x,z,ne)},Me.Xl=function(a,y){Gi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==wi.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof wi&&(a=a.Pb()),this.tb===null&&(this.tb=new xn),a.mi(this.tb),a instanceof Hr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Me.eh=function(a,y,E,b){this.nf=this.$a,Gi.prototype.eh.call(this,a,y,E,b)},Me.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Li||y.Va()}),Gi.prototype.Va.call(this)},Me.si=function(){if(!Gi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Gi){if(y.isVisible()&&rl(y))return!1}else if(y instanceof Li&&y.isVisible()&&rl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof Ir&&a.gl.add(y);var E=a.memberAdded;if(E!==null){var b=!0,x=a.diagram;x!==null&&(b=x.aa,x.aa=!0),E(a,y),x!==null&&(x.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Li&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Yv(a,y){if(a.Gn.remove(y)){y instanceof Ir&&a.gl.remove(y);var E=a.memberRemoved;if(E!==null){var b=!0,x=a.diagram;x!==null&&(b=x.aa,x.aa=!0),E(a,y),x!==null&&(x.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Li&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Me.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)}Gi.prototype.Lj.call(this)},Ir.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=zn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ir.prototype.addMembers=function(a,y){var E=this.diagram;if(E===null)return!1;E=E.commandHandler;var b=!0;for(a=zn(a).iterator;a.next();){var x=a.value;!y||E.isValidMember(this,x)?x.containingGroup=this:b=!1}return b},Ir.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))},Me=Ir.prototype,Me.Bd=function(a){var y=(this.U&65536)!==0;if(Gi.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var E=y.value;if(a===void 0||!a.contains(E)){var b=E.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Vl(E.fromPort),Vl(E.toPort),E.bb()):(b=E.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Vl(E.fromPort),Vl(E.toPort),E.bb()))}}},Me.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 E=new $n,b=y.iterator;b.next();){var x=b.value;if(x instanceof Gi)for(x=x.linksConnected;x.next();){var z=x.value;y.contains(z)||E.add(z)}}return a&&(this.$p=E),E.iterator},Me.iz=function(){var a=this.Rj();a.add(this);for(var y=new $n,E=a.iterator;E.next();){var b=E.value;if(b instanceof Gi)for(b=b.linksConnected;b.next();){var x=b.value,z=x.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),x=x.toNode,x===null||a.contains(x)&&x!==this||y.add(x)}}return y.iterator},Me.hz=function(){function a(E,b){E!==null&&(b.add(E),a(E.containingGroup,b))}var y=new $n;return a(this,y),y},Me.Rj=function(){var a=new $n;return Jd(a,this,!0,0,!0),a.remove(this),a},Me.Zb=function(a){Gi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ir.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,E,b){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!1),z instanceof Ir&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,i1(z,y,E,b)),z instanceof Gi)z.Bd(y),E.Aj(z,b);else if(z instanceof Li)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Ir.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,E,b){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!0),z instanceof Ir&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,r1(z,y,E,b)),z instanceof Gi)z.Bd(y),E.Cj(z,b);else if(z instanceof Li)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Ir.prototype.move=function(a,y){y===void 0&&(y=!1);var E=y?this.location:this.position,b=E.x;E=E.y;var x=a.x,z=a.y;if(!(b===x||isNaN(b)&&isNaN(x))||!(E===z||isNaN(E)&&isNaN(z))){for(b=x-(isNaN(b)?0:b),E=z-(isNaN(E)?0:E),z=rt.alloc(),Gi.prototype.move.call(this,a,y),a=new $n,y=this.Rj().iterator;y.next();)x=y.value,x instanceof Li&&(x.suspendsRouting&&a.add(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(x.suspendsRouting=!0);for(y.reset();y.next();)if(x=y.value,!(x.ph()||x instanceof Gi&&x.isLinkLabel)){var ne=x.position,re=x.location;ne.w()?(z.x=ne.x+b,z.y=ne.y+E,x.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+E,x.location=z)}for(y.reset();y.next();)x=y.value,x instanceof Li&&(x.suspendsRouting=a.contains(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(ne=x.position,z.x=ne.x+b,z.y=ne.y+E,z.w()?x.move(z):x.bb(),Qv(x)&&x.bb());rt.free(z)}},_n.Object.defineProperties(Ir.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&&Ct("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 E=this.diagram;a!==null&&(a.diagram=E,a.group=this),E!==null&&(E.xh=!0),this.g("layout",y,a),E!==null&&E.$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 E=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;E!==null&&(b=E.aa,E.aa=!0),y(this),E!==null&&(E.aa=b)}E!==null&&E.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(x){x.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)}}}),Ir.prototype.expandSubGraph=Ir.prototype.expandSubGraph,Ir.prototype.collapseSubGraph=Ir.prototype.collapseSubGraph,Ir.prototype.findSubGraphParts=Ir.prototype.Rj,Ir.prototype.findContainingGroupChain=Ir.prototype.hz,Ir.prototype.findExternalNodesConnected=Ir.prototype.iz,Ir.prototype.findExternalLinksConnected=Ir.prototype.Lu,Ir.prototype.ensureBounds=Ir.prototype.Va,Ir.className="Group";function al(a){qt.call(this),this.yb=Ua,this.ko=new xn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}dn(al,qt),al.prototype.cloneProtected=function(a){qt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},al.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Do(0,0,y.width,y.height,a.x,a.y)},al.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ir||a instanceof co)||Ct("Placeholder is not inside a Group or Adornment."),a instanceof Ir){var y=this.computeBorder(this.ko),E=this.minSize,b=this.dc;for(so(b,(isFinite(E.width)?Math.max(E.width,y.width):y.width)||0,(isFinite(E.height)?Math.max(E.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,E=!1;b.next();)if(b.value.isVisible()){E=!0;break}b=a.diagram,!E||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(E=rt.alloc(),E.xi(y,a.locationSpot),E.D(a.location)||(a.location=E),rt.free(E))}else{y=this.dc,E=this.yb,b=E.left+E.right;var x=E.top+E.bottom,z=a.adornedObject;a.angle=z.li();var ne=0;z instanceof Hr&&(ne=z.strokeWidth);var re=z.Df(),se=z.naturalBounds,de=(se.width+ne)*re;ne=(se.height+ne)*re,a.type!==wi.Link&&(re=z.ga(a.category==="Selection"?Kr:a.locationSpot,rt.alloc()),a.location=re,rt.free(re)),isNaN(de)||isNaN(ne)?(a=z.ga(Kr,rt.alloc()),de=xn.allocAt(a.x,a.y,0,0),de.Ye(z.ga(vo,a)),de.Ye(z.ga(ho,a)),de.Ye(z.ga(va,a)),so(y,de.width+b||0,de.height+x||0),this.Ge(-E.left,-E.top,y.width,y.height),rt.free(a),xn.free(de)):(so(y,de+b||0,ne+x||0),this.Ge(-E.left,-E.top,y.width,y.height))}},al.prototype.eh=function(a,y,E,b){this.actualBounds.h(a,y,E,b)},al.prototype.computeBorder=function(a){var y=this.part,E=y.diagram,b=E===null||!E.animationManager.isAnimating;if(E!==null&&y instanceof Ir&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var x=E.toolManager.findTool("Dragging");if(x===E.currentTool&&(E=x.computeBorder(y,this.ko,a),E!==null))return E}E=xn.alloc(),x=this.computeMemberBounds(E);var z=this.yb;return y instanceof Ir&&!y.isSubGraphExpanded?a.h(x.x-z.left,x.y-z.top,0,0):a.h(x.x-z.left,x.y-z.top,Math.max(x.width+z.left+z.right,0),Math.max(x.height+z.top+z.bottom,0)),xn.free(E),b&&y instanceof Ir&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},al.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ir))return a.h(0,0,0,0),a;for(var y=this.part,E=1/0,b=1/0,x=-1/0,z=-1/0,ne=y.memberParts;ne.next();){var re=ne.value;if(re.isVisible()){if(re instanceof Li&&(!y.computesBoundsIncludingLinks||ou(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<E&&(E=re.left),re.top<b&&(b=re.top),re.right>x&&(x=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(E)&&isFinite(b)?a.h(E,b,x-E,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},_n.Object.defineProperties(al.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Fr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),al.className="Placeholder";function Li(a){cr.call(this,wi.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=sl,this.Om=0,this.Qm=sl,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Wn().freeze(),this.Tg=this.Mg=null,this.ml=new xn,this.ua=new Ti,this.u=this.o=this.Sf=this.Wf=null,this.su=new rt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}dn(Li,cr),Li.prototype.cloneProtected=function(a){cr.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())},Me=Li.prototype,Me.Af=function(a){cr.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&&Vl(y),a=a.toPort,a!==null&&Vl(a)},Me.qb=function(a){a.classType===Li?(a.value&2)===2?this.routing=a:a===su||a===Pd||a===ip?this.curve=a:a===fg||a===e0||a===t0?this.adjusting=a:a!==$v&&a!==sl&&Ct("Unknown Link enum value for a Link property: "+a):cr.prototype.qb.call(this,a)},Me.Xc=function(){this.ba===null&&(this.ba=new $p)},Me.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),rl(a)||Xd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),rl(a)||Xd(a)))},Me.zv=function(){return!1},Me.Av=function(){},Me.Zc=function(){return!1},Li.prototype.computeAngle=function(a,y,E){return Li.computeAngle(y,E)},Li.computeAngle=function(a,y){switch(a){default:case sl:a=0;break;case pg:a=y;break;case gg:a=y+90;break;case mg:a=y-90;break;case ey:a=y+180;break;case n0:a=Qt.bp(y),90<a&&270>a&&(a-=180);break;case vg:a=Qt.bp(y+90),90<a&&270>a&&(a-=180);break;case yg:a=Qt.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Qt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Qt.bp(a)};function tp(a){var y=a.fromNode,E=a.toNode,b=null;if(y!==null?b=E!==null?y.px(E):y.containingGroup:E!==null?b=E.containingGroup:b=null,y=b,E=a.Ah,E!==y){E!==null&&Yv(E,a),a.Ah=y,y!==null&&Kv(y,a);var x=a.containingGroupChanged;if(x!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),x(a,E,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==E&&a.Mw!==E||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Me=Li.prototype,Me.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&cr.prototype.oh.call(this)},Me.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Me.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function o1(a,y){a.wd===null&&(a.wd=new $n),a.wd.add(y),a.v()}Me.Vo=function(a){if(cr.prototype.Vo.call(this,a),Bh(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var E=this.uf;if(E!==null){var b=this.toPort;E===a&&b===y||Zm(E,this,b)}dg(this)}},Me.Wo=function(a){if(cr.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 E=this.uf;if(E!==null){var b=this.toPort;E===a&&b===y||Km(E,this,b)}hg(this)}},Me.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))},Li.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Li.prototype.move=function(a,y){var E=y?this.location:this.position,b=E.x;isNaN(b)&&(b=0);var x=E.y;for(isNaN(x)&&(x=0),b=a.x-b,x=a.y-x,y===!0?cr.prototype.move.call(this,a,!1):(a=rt.allocAt(E.x+b,E.y+x),cr.prototype.move.call(this,a,!1),rt.free(a)),Td(this,b,x),a=this.labelNodes;a.next();)y=a.value,E=y.position,y.moveTo(E.x+b,E.y+x)},Li.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},Li.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},Li.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Zi),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var E=this.i(0),b=this.i(1);return a.h((E.x+b.x)/2,(E.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===su))return this.ua.Pu(.5,a),a.add(this.i(0)),E=this.ua.figures.first(),a.offset(-E.startX,-E.startY),a;if(this.computeCurve()===su){if(y===3){E=this.i(0),b=this.i(1);var x=this.i(2);return Qt.ax(E.x,E.y,b.x,b.y,b.x,b.y,x.x,x.y,a),a}if(b=(y-1)/3|0,E=3*(b/2|0),b%2===1){b=this.i(E),x=this.i(E+1);var z=this.i(E+2);E=this.i(E+3),Qt.ax(b.x,b.y,x.x,x.y,z.x,z.y,E.x,E.y,a)}else a.assign(this.i(E));return a}var ne=this.flattenedLengths;for(E=this.flattenedTotalLength,x=z=b=0;b<E/2&&z<y&&(x=ne[z],!(b+x>E/2));)b+=x,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-(E/2-b)):a.h(y.x,y.y+(E/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(E/2-b),y.y):a.h(y.x+(E/2-b),y.y):(E=(E/2-b)/x,a.h(y.x+E*(z.x-y.x),y.y+E*(z.y-y.y))),a},Li.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()===su))return this.ua.wx(.5);if(this.computeCurve()===su&&4<=a){var y=(a-1)/3|0,E=3*(y/2|0);if(y%2===1){E=Math.floor(E),a=this.i(E),y=this.i(E+1);var b=this.i(E+2);return E=this.i(E+3),Qt.My(a.x,a.y,y.x,y.y,b.x,b.y,E.x,E.y)}if(0<E&&E+1<a)return this.i(E-1).ab(this.i(E+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var x=0;E=0;for(var z;x<b/2&&E<a&&(z=y[E],!(x+z>b/2));)x+=z,E++;if(y=this.i(E),b=this.i(E+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<E&&E+2<a)return this.i(E-1).ab(this.i(E+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Me=Li.prototype,Me.i=function(a){return this.Nb.s[a]},Me.dd=function(a,y){this.Nb.cd(a,y)},Me.L=function(a,y,E){this.Nb.cd(a,new rt(y,E))},Me.Kz=function(a,y){this.Nb.Gb(a,y)},Me.m=function(a,y,E){this.Nb.Gb(a,new rt(y,E))},Me.ne=function(a){this.Nb.add(a)},Me.yf=function(a,y){this.Nb.add(new rt(a,y))},Me.pv=function(a){this.Nb.mb(a)},Me.Fj=function(){this.Nb.clear()};function Td(a,y,E){if(y!==0||E!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,E),a.defaultToPoint&&a.defaultToPoint.offset(y,E);else{for(var b=a.fd,x=new Wn,z=a.Nb.iterator;z.next();){var ne=z.value;x.add(new rt(ne.x+y,ne.y+E).freeze())}x.freeze(),z=a.Nb,a.Nb=x,ne=a.diagram,isNaN(y)||isNaN(E)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+E),a.pa.h(a.pa.x+y,a.pa.y+E),il(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&ce(ne.animationManager,a,x),a.g("points",z,x)}}Me.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Me.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,E=1/0,b=1/0,x=a.s,z=x.length,ne=0;ne<z;ne++){var re=x[ne];E=Math.min(re.x,E),b=Math.min(re.y,b)}re=ne=1/0;for(var se=y.s,de=se.length,pe=0;pe<de;pe++){var Se=se[pe];ne=Math.min(Se.x,ne),re=Math.min(Se.y,re),Se.freeze()}if(y.freeze(),de===z){for(z=0;z<de;z++)if(pe=x[z],Se=se[z],pe.x-E!==Se.x-ne||pe.y-b!==Se.y-re){this.qc();break}}else this.qc();this.Mg=null,E=this.diagram,E!==null&&E.animationManager.zb&&ce(E.animationManager,this,y),Xm(this),this.g("points",a,y)}},Me.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))}Me.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())}},Me.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()}}},Li.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(cf||(cf=new Gi,cf.desiredSize=ri,cf.Va()),this.defaultFromPoint&&(cf.location=this.defaultFromPoint,cf.Va(),y=a=cf)):y=this.fromPort,y!==null&&!a.isVisible()){var E=a.findVisibleNode();E!==null&&E!==a?(a=E,y=E.port):a=E}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,x=null;if(b===null?(df||(df=new Gi,df.desiredSize=ri,df.Va()),this.defaultToPoint&&(df.location=this.defaultToPoint,df.Va(),x=b=df)):x=this.toPort,x===null||b.isVisible()||(E=b.findVisibleNode(),E!==null&&E!==b?(b=E,x=E.port):b=E),this.Mw=b,b===null||!b.location.w())return!1;for(;!(x===null||x.actualBounds.w()&&x.Ed());)x=x.panel;if(x===null)return!1;var z=this.pointsCount,ne=this.computeSpot(!0,y);E=this.computeSpot(!1,x);var re=np(ne),se=np(E),de=y===x&&y!==null,pe=this.isOrthogonal,Se=this.curve===su;this.Wf=de&&!pe?Se=!0:!1;var Ae=this.computeAdjusting()===sl||de;if(!pe&&!de&&re&&se){if(re=!1,!Ae&&3<=z&&(Ae=this.getLinkPoint(a,y,ne,!0,!1,b,x),se=this.getLinkPoint(b,x,E,!1,!1,a,y),re=this.adjustPoints(0,Ae,z-1,se))&&(Ae=this.getLinkPoint(a,y,ne,!0,!1,b,x),se=this.getLinkPoint(b,x,E,!1,!1,a,y),this.adjustPoints(0,Ae,z-1,se)),!re)if(this.Fj(),Se){z=this.getLinkPoint(a,y,ne,!0,!1,b,x),Ae=this.getLinkPoint(b,x,E,!1,!1,a,y),re=Ae.x-z.x,se=Ae.y-z.y,de=this.computeCurviness(),Se=pe=0;var Re=z.x+re/3,Ue=z.y+se/3,Xe=Re,bt=Ue;Qt.B(se,0)?bt=0<re?bt-de:bt+de:(pe=-re/se,Se=Math.sqrt(de*de/(pe*pe+1)),0>de&&(Se=-Se),Xe=(0>se?-1:1)*Se+Re,bt=pe*(Xe-Re)+Ue),Re=z.x+2*re/3,Ue=z.y+2*se/3;var ft=Re,Pt=Ue;Qt.B(se,0)?Pt=0<re?Pt-de:Pt+de:(ft=(0>se?-1:1)*Se+Re,Pt=pe*(ft-Re)+Ue),this.Fj(),this.ne(z),this.yf(Xe,bt),this.yf(ft,Pt),this.ne(Ae),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,b,x)),this.dd(3,this.getLinkPoint(b,x,E,!1,!1,a,y))}else z=b,Ae=x,b=this.getLinkPoint(a,y,ne,!0,!1,z,Ae),x=this.getLinkPoint(z,Ae,E,!1,!1,a,y),this.hasCurviness()?(Ae=x.x-b.x,E=x.y-b.y,ne=this.computeCurviness(),a=b.x+Ae/2,y=b.y+E/2,z=a,re=y,Qt.B(E,0)?re=0<Ae?re-ne:re+ne:(Ae=-Ae/E,z=Math.sqrt(ne*ne/(Ae*Ae+1)),0>ne&&(z=-z),z=(0>E?-1:1)*z+a,re=Ae*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(x)):(this.ne(b),this.ne(x),re=xn.alloc(),y.mi(re),se=re.ca(x),Ae.mi(re),de=re.ca(b),(se||de)&&(ne=y.ga(Jm(ne),new rt),this.dd(0,this.getLinkPointFromPoint(a,y,ne,x,!0,ne)),E=Ae.ga(Jm(E),new rt),this.dd(1,this.getLinkPointFromPoint(z,Ae,E,b,!1,E))),xn.free(re))}else{Se=this.isAvoiding,Ae&&(pe&&Se||de)&&this.Fj();var Nt=de?this.computeCurviness():0;Se=this.getLinkPoint(a,y,ne,!0,pe,b,x),Re=Xe=Ue=0,(pe||!re||de)&&(bt=this.computeEndSegmentLength(a,y,ne,!0),Re=this.getLinkDirection(a,y,Se,ne,!0,pe,b,x),de&&(re||ne.D(E)||!pe&&ne.x+E.x===1&&ne.y+E.y===1)&&(Re-=pe?90:30,0>Nt&&(Re-=180)),0>Re?Re+=360:360<=Re&&(Re-=360),de&&(bt+=Math.abs(Nt)*(pe?1:2)),Re===0?Ue=bt:Re===90?Xe=bt:Re===180?Ue=-bt:Re===270?Xe=-bt:(Ue=bt*Math.cos(Re*Math.PI/180),Xe=bt*Math.sin(Re*Math.PI/180)),ne.Mc()&&de&&(bt=y.ga(Dr,rt.alloc()),ft=rt.allocAt(bt.x+1e3*Ue,bt.y+1e3*Xe),this.getLinkPointFromPoint(a,y,bt,ft,!0,Se),rt.free(bt),rt.free(ft))),bt=this.getLinkPoint(b,x,E,!1,pe,a,y);var Dt=Pt=ft=0;if(pe||!se||de){var Yt=this.computeEndSegmentLength(b,x,E,!1);Dt=this.getLinkDirection(b,x,bt,E,!1,pe,a,y),de&&(se||ne.D(E)||!pe&&ne.x+E.x===1&&ne.y+E.y===1)&&(Dt+=pe?0:30,0>Nt&&(Dt+=180)),0>Dt?Dt+=360:360<=Dt&&(Dt-=360),de&&(Yt+=Math.abs(Nt)*(pe?1:2)),Dt===0?ft=Yt:Dt===90?Pt=Yt:Dt===180?ft=-Yt:Dt===270?Pt=-Yt:(ft=Yt*Math.cos(Dt*Math.PI/180),Pt=Yt*Math.sin(Dt*Math.PI/180)),E.Mc()&&de&&(E=x.ga(Dr,rt.alloc()),ne=rt.allocAt(E.x+1e3*ft,E.y+1e3*Pt),this.getLinkPointFromPoint(b,x,E,ne,!1,bt),rt.free(E),rt.free(ne))}E=Se,(pe||!re||de)&&(E=new rt(Se.x+Ue,Se.y+Xe)),ne=bt,(pe||!se||de)&&(ne=new rt(bt.x+ft,bt.y+Pt)),!Ae&&!pe&&re&&3<z&&this.adjustPoints(0,Se,z-2,ne)?this.dd(z-1,bt):!Ae&&!pe&&se&&3<z&&this.adjustPoints(1,E,z-1,bt)?this.dd(0,Se):!Ae&&(pe?6<=z:4<z)&&this.adjustPoints(1,E,z-2,ne)?(this.dd(0,Se),this.dd(z-1,bt)):(this.Fj(),this.ne(Se),(pe||!re||de)&&this.ne(E),pe&&this.addOrthoPoints(E,Re,ne,Dt,a,b),(pe||!se||de)&&this.ne(ne),this.ne(bt))}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}Li.prototype.getLinkPointFromPoint=function(a,y,E,b,x,z){if(z===void 0&&(z=new rt),a===null||y===null)return z.assign(E),z;if(a.isVisible()||(x=a.findVisibleNode(),x!==null&&x!==a&&(y=x.port)),a=null,x=y.panel,x===null||x.se()||(x=x.panel),x===null){x=b.x,b=b.y;var ne=E.x;E=E.y}else{a=x.oe,x=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*x;var re=-a.m12*x,se=-a.m21*x,de=a.m11*x,pe=x*(a.m21*a.dy-a.m22*a.dx),Se=x*(a.m12*a.dx-a.m11*a.dy);x=b.x*ne+b.y*se+pe,b=b.x*re+b.y*de+Se,ne=E.x*ne+E.y*se+pe,E=E.x*re+E.y*de+Se}return y.Sj(x,b,ne,E,z),a!==null&&z.transform(a),z};function Qm(a,y){var E=y.Zn;return E===null&&(E=new hf,E.port=y,E.node=y.part,y.Zn=E),f1(E,a)}Li.prototype.getLinkPoint=function(a,y,E,b,x,z,ne,re){if(re===void 0&&(re=new rt),E.sb()&&!np(E))return y.ga(E,re),re;if(E.$c()){var se=Qm(this,y);if(se!==null){if(re.assign(se.Zo),x&&this.routing===s1){var de=Qm(this,ne);if(de!==null&&se.Gl<de.Gl){se=rt.alloc(),de=rt.alloc();var pe=new xn(y.ga(Kr,se),y.ga(vo,de)),Se=this.computeSpot(!b,ne);a=this.getLinkPoint(z,ne,Se,!b,x,a,y,de),(E.Hf(gs)||E.Hf(Jo))&&a.y>=pe.y&&a.y<=pe.y+pe.height?re.y=a.y:(E.Hf(Wo)||E.Hf(ss))&&a.x>=pe.x&&a.x<=pe.x+pe.width&&(re.x=a.x),rt.free(se),rt.free(de)}}return re}}return E=y.ga(Jm(E),rt.alloc()),this.pointsCount>(x?6:2)?(ne=b?this.i(1):this.i(this.pointsCount-2),x&&(ne=Xv(E,ne.copy()))):(se=this.computeSpot(!b,ne),z=rt.alloc(),ne=ne.ga(Jm(se),z),x&&(ne=Xv(E,ne)),rt.free(z)),this.getLinkPointFromPoint(a,y,E,ne,b,re),rt.free(E),re},Li.prototype.getLinkDirection=function(a,y,E,b,x,z,ne,re){e:if(b.sb())var se=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(se=Qm(this,y),se!==null))switch(se.Nc){case 1:se=270;break e;case 2:se=180;break e;default:case 4:se=0;break e;case 8:se=90;break e}se=y.ga(Dr,rt.alloc()),this.pointsCount>(z?6:2)?(re=x?this.i(1):this.i(this.pointsCount-2),re=z?Xv(se,re.copy()):E):(E=rt.alloc(),re=re.ga(Dr,E),rt.free(E)),E=Math.abs(re.x-se.x)>Math.abs(re.y-se.y)?re.x>=se.x?0:180:re.y>=se.y?90:270,rt.free(se),se=E}return b.Mc()&&ne.Td(a)&&(se+=180,360<=se&&(se-=360)),np(b)||(a=y.li(),a===0)||(45<=a&&135>a?se+=90:135<=a&&225>a?se+=180:225<=a&&315>a&&(se+=270),360<=se&&(se-=360)),se},Li.prototype.computeEndSegmentLength=function(a,y,E,b){return y!==null&&E.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Li.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Dr:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Ia?Mr:y)):(a=y||this.toPort,a===null?a=Dr:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Ia?Mr:y)),a};function np(a){return a===Mr||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Dr}Li.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==sl&&4<this.pointsCount?this.computeMidPoint(new rt):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Dr))},Li.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},Li.prototype.Cf=function(a,y,E,b,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),E===void 0&&(E=null);var ne=z;if(z===void 0&&(ne=mr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Sv(this,y,E,x),z===void 0&&mr.free(ne),!0;if(this.Yc(a,ne)){var re=!1;if(!this.isAtomic)for(var se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===this.locationObject){var Se=pe.actualBounds,Ae=this.naturalBounds;if(!(Se.x>Ae.width||Se.y>Ae.height||0>Se.x+Se.width||0>Se.y+Se.height)){if(Se=mr.alloc(),Se.set(ne),pe instanceof wi)re=pe.Cf(a,y,E,b,x,Se);else if(this.path===pe){if(pe instanceof Hr)if(re=a,Ae=b,pe.pickable===!1)re=!1;else if(Se.multiply(pe.transform),Ae)e:{var Re=re,Ue=Se;if(pe.fh(Re,Ue))re=!0;else{if(Ue===void 0&&(Ue=pe.transform,Re.Re(pe.actualBounds))){re=!0;break e}re=Re.left,Ae=Re.right;var Xe=Re.top;Re=Re.bottom;var bt=rt.alloc(),ft=rt.alloc(),Pt=rt.alloc(),Nt=mr.alloc();Nt.set(Ue),Nt.bv(pe.transform),Nt.Vj(),ft.x=Ae,ft.y=Xe,ft.transform(Nt),bt.x=re,bt.y=Xe,bt.transform(Nt),Ue=!1,Dh(pe,bt,ft,Pt)?Ue=!0:(bt.x=Ae,bt.y=Re,bt.transform(Nt),Dh(pe,bt,ft,Pt)?Ue=!0:(ft.x=re,ft.y=Re,ft.transform(Nt),Dh(pe,bt,ft,Pt)?Ue=!0:(bt.x=re,bt.y=Xe,bt.transform(Nt),Dh(pe,bt,ft,Pt)&&(Ue=!0)))),mr.free(Nt),rt.free(bt),rt.free(ft),rt.free(Pt),re=Ue}}else re=pe.fh(re,Se)}else re=es(pe,a,b,Se);re&&(Ae=pe,y!==null&&(Ae=y(pe)),Ae&&(E===null||E(Ae))&&x.add(Ae)),mr.free(Se)}}}return z===void 0&&mr.free(ne),re||this.background!==null||this.areaBackground!==null}return z===void 0&&mr.free(ne),!1},Li.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?su:this.curve},Li.prototype.computeCorner=function(){if(this.curve===su)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Li.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,E=y.length,b=0;b<E;b++){var x=y[b];if(x!==a&&!x.isPanelMain&&(x.segmentIndex===-1/0||isNaN(x.segmentIndex)))return x}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Li.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=u1;a=Math.max(a,this.computeThickness());var y=this.fromPort,E=this.toPort;if(y!==null&&E!==null){var b=this.findMidLabel();if(b!==null){var x=b.naturalBounds,z=b.margin,ne=isNaN(x.width)?30:x.width*b.scale+z.left+z.right;x=isNaN(x.height)?14:x.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===pg||b===n0||b===ey?a=Math.max(a,x):b===mg||b===yg||b===gg||b===vg?a=Math.max(a,ne):(y=y.ga(Dr).ab(E.ga(Dr))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*x)+1)),this.curve===su&&(a*=1.333)}}return a},Li.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var E=a[y];E.computeAdjusting()===sl&&E.bb()}},Li.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=l1;var y=this.Sf;if(y!==null){for(var E=Pi(),b=0,x=y.links,z=0;z<x.length;z++){var ne=x[z].computeSpacing();E.push(ne),b+=ne}for(b=-b/2,z=0;z<x.length;z++){if(x[z]===this){a=b+E[z]/2;break}b+=E[z]}y.Ds===this.fromNode&&(a=-a),Ai(E)}}return a},Li.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Li.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Li.prototype.adjustPoints=function(a,y,E,b){var x=this.computeAdjusting();if(this.isOrthogonal){if(x===e0)return!1;x===t0&&(x=fg)}switch(x){case e0:var z=this.i(a),ne=this.i(E);if(!z.Xa(y)||!ne.Xa(b)){x=z.x,z=z.y;var re=ne.x-x,se=ne.y-z,de=Math.sqrt(re*re+se*se);if(!Qt.$(de,0)){if(Qt.$(re,0))var pe=0>se?-Math.PI/2:Math.PI/2;else pe=Math.atan(se/Math.abs(re)),0>re&&(pe=Math.PI-pe);ne=y.x;var Se=y.y;re=b.x-ne;var Ae=b.y-Se;for(se=Math.sqrt(re*re+Ae*Ae),Qt.$(re,0)?Ae=0>Ae?-Math.PI/2:Math.PI/2:(Ae=Math.atan(Ae/Math.abs(re)),0>re&&(Ae=Math.PI-Ae)),de=se/de,pe=Ae-pe,this.dd(a,y),a+=1;a<E;a++)y=this.i(a),re=y.x-x,se=y.y-z,y=Math.sqrt(re*re+se*se),Qt.$(y,0)||(Qt.$(re,0)?se=0>se?-Math.PI/2:Math.PI/2:(se=Math.atan(se/Math.abs(re)),0>re&&(se=Math.PI-se)),re=se+pe,y*=de,this.L(a,ne+y*Math.cos(re),Se+y*Math.sin(re)));this.dd(E,b)}}return!0;case t0:if(z=this.i(a),Se=this.i(E),!z.Xa(y)||!Se.Xa(b)){x=z.x,z=z.y,ne=Se.x,Se=Se.y,de=(ne-x)*(ne-x)+(Se-z)*(Se-z),re=y.x,pe=y.y,se=b.x,Ae=b.y;var Re=1;if(se-re!==0){var Ue=(Ae-pe)/(se-re);Re=Math.sqrt(1+1/(Ue*Ue))}else Ue=9e9;for(this.dd(a,y),a+=1;a<E;a++){y=this.i(a);var Xe=y.x,bt=y.y,ft=.5;de!==0&&(ft=((x-Xe)*(x-ne)+(z-bt)*(z-Se))/de);var Pt=x+ft*(ne-x),Nt=z+ft*(Se-z);y=Math.sqrt((Xe-Pt)*(Xe-Pt)+(bt-Nt)*(bt-Nt)),bt<Ue*(Xe-Pt)+Nt&&(y=-y),0<Ue&&(y=-y),Xe=re+ft*(se-re),ft=pe+ft*(Ae-pe),Ue!==0?(y=Xe+y/Re,this.L(a,y,ft-(y-Xe)/Ue)):this.L(a,Xe,ft+y)}this.dd(E,b)}return!0;case fg:e:{if(this.isOrthogonal&&(x=this.i(a),z=this.i(a+1),ne=this.i(a+2),re=z.x,pe=z.y,Se=re,de=pe,Qt.B(x.y,z.y)?Qt.B(z.x,ne.x)?pe=y.y:Qt.B(z.y,ne.y)&&(re=y.x):Qt.B(x.x,z.x)&&(Qt.B(z.y,ne.y)?re=y.x:Qt.B(z.x,ne.x)&&(pe=y.y)),this.L(a+1,re,pe),x=this.i(E),z=this.i(E-1),ne=this.i(E-2),re=z.x,pe=z.y,se=re,Ae=pe,Qt.B(x.y,z.y)?Qt.B(z.x,ne.x)?pe=b.y:Qt.B(z.y,ne.y)&&(re=b.x):Qt.B(x.x,z.x)&&(Qt.B(z.y,ne.y)?re=b.x:Qt.B(z.x,ne.x)&&(pe=b.y)),this.L(E-1,re,pe),Qv(this))){this.L(a+1,Se,de),this.L(E-1,se,Ae),E=!1;break e}this.dd(a,y),this.dd(E,b),E=!0}return E;default:return!1}},Li.prototype.addOrthoPoints=function(a,y,E,b,x,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var ne=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var re=x.actualBounds.copy(),se=z.actualBounds.copy();if(re.w()&&se.w()){re.Bc(Sg,Sg),se.Bc(Sg,Sg),re.Ye(a),se.Ye(E);var de=rt.alloc(),pe=rt.alloc();y===0?E.x>a.x||b===270&&E.y<a.y&&se.right>a.x||b===90&&E.y>a.y&&se.right>a.x?(de.h(E.x,a.y),pe.h(E.x,(a.y+E.y)/2),b===180?(de.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),pe.x=de.x,pe.y=E.y):b===270&&E.y<a.y||b===90&&E.y>a.y?(de.x=a.x<se.left?this.computeMidOrthoPosition(a.x,a.y,se.left,E.y,!1):a.x<se.right&&(b===270&&a.y<se.top||b===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):se.right,pe.x=de.x,pe.y=E.y):b===0&&a.x<se.left&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<E.y?Math.min(E.y,se.top):Math.max(E.y,se.bottom),pe.y=de.y)):(de.h(a.x,E.y),pe.h((a.x+E.x)/2,E.y),(b===180||b===90&&E.y<re.top||b===270&&E.y>re.bottom)&&(b===180&&(se.ca(a)||re.ca(E))?de.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(b===180||b===90)?de.y=this.computeMidOrthoPosition(a.x,re.top,E.x,Math.max(E.y,se.bottom),!0):E.y>a.y&&(b===180||b===270)&&(de.y=this.computeMidOrthoPosition(a.x,re.bottom,E.x,Math.min(E.y,se.top),!0)),pe.x=E.x,pe.y=de.y),de.y>re.top&&de.y<re.bottom&&(E.x>=re.left&&E.x<=a.x||a.x<=se.right&&a.x>=E.x?(b===90||b===270)&&(de.h(Math.max((a.x+E.x)/2,a.x),a.y),pe.h(de.x,E.y)):(de.y=b===270||(b===0||b===180)&&E.y<a.y?Math.min(E.y,b===0?re.top:Math.min(re.top,se.top)):Math.max(E.y,b===0?re.bottom:Math.max(re.bottom,se.bottom)),pe.x=E.x,pe.y=de.y))):y===180?E.x<a.x||b===270&&E.y<a.y&&se.left<a.x||b===90&&E.y>a.y&&se.left<a.x?(de.h(E.x,a.y),pe.h(E.x,(a.y+E.y)/2),b===0?(de.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1),pe.x=de.x,pe.y=E.y):b===270&&E.y<a.y||b===90&&E.y>a.y?(de.x=a.x>se.right?this.computeMidOrthoPosition(a.x,a.y,se.right,E.y,!1):a.x>se.left&&(b===270&&a.y<se.top||b===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):se.left,pe.x=de.x,pe.y=E.y):b===180&&a.x>se.right&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<E.y?Math.min(E.y,se.top):Math.max(E.y,se.bottom),pe.y=de.y)):(de.h(a.x,E.y),pe.h((a.x+E.x)/2,E.y),(b===0||b===90&&E.y<re.top||b===270&&E.y>re.bottom)&&(b===0&&(se.ca(a)||re.ca(E))?de.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):E.y<a.y&&(b===0||b===90)?de.y=this.computeMidOrthoPosition(a.x,re.top,E.x,Math.max(E.y,se.bottom),!0):E.y>a.y&&(b===0||b===270)&&(de.y=this.computeMidOrthoPosition(a.x,re.bottom,E.x,Math.min(E.y,se.top),!0)),pe.x=E.x,pe.y=de.y),de.y>re.top&&de.y<re.bottom&&(E.x<=re.right&&E.x>=a.x||a.x>=se.left&&a.x<=E.x?(b===90||b===270)&&(de.h(Math.min((a.x+E.x)/2,a.x),a.y),pe.h(de.x,E.y)):(de.y=b===270||(b===0||b===180)&&E.y<a.y?Math.min(E.y,b===180?re.top:Math.min(re.top,se.top)):Math.max(E.y,b===180?re.bottom:Math.max(re.bottom,se.bottom)),pe.x=E.x,pe.y=de.y))):y===90?E.y>a.y||b===180&&E.x<a.x&&se.bottom>a.y||b===0&&E.x>a.x&&se.bottom>a.y?(de.h(a.x,E.y),pe.h((a.x+E.x)/2,E.y),b===270?(de.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),pe.x=E.x,pe.y=de.y):b===180&&E.x<a.x||b===0&&E.x>a.x?(de.y=a.y<se.top?this.computeMidOrthoPosition(a.x,a.y,E.x,se.top,!0):a.y<se.bottom&&(b===180&&a.x<se.left||b===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):se.bottom,pe.x=E.x,pe.y=de.y):b===90&&a.y<se.top&&a.x>se.left&&a.x<se.right&&(de.x=a.x<E.x?Math.min(E.x,se.left):Math.max(E.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(E.x,a.y),pe.h(E.x,(a.y+E.y)/2),(b===270||b===0&&E.x<re.left||b===180&&E.x>re.right)&&(b===270&&(se.ca(a)||re.ca(E))?de.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(b===270||b===0)?de.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(E.x,se.right),E.y,!1):E.x>a.x&&(b===270||b===180)&&(de.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(E.x,se.left),E.y,!1)),pe.x=de.x,pe.y=E.y),de.x>re.left&&de.x<re.right&&(E.y>=re.top&&E.y<=a.y||a.y<=se.bottom&&a.y>=E.y?(b===0||b===180)&&(de.h(a.x,Math.max((a.y+E.y)/2,a.y)),pe.h(E.x,de.y)):(de.x=b===180||(b===90||b===270)&&E.x<a.x?Math.min(E.x,b===90?re.left:Math.min(re.left,se.left)):Math.max(E.x,b===90?re.right:Math.max(re.right,se.right)),pe.x=de.x,pe.y=E.y))):E.y<a.y||b===180&&E.x<a.x&&se.top<a.y||b===0&&E.x>a.x&&se.top<a.y?(de.h(a.x,E.y),pe.h((a.x+E.x)/2,E.y),b===90?(de.y=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0),pe.x=E.x,pe.y=de.y):b===180&&E.x<a.x||b===0&&E.x>=a.x?(de.y=a.y>se.bottom?this.computeMidOrthoPosition(a.x,a.y,E.x,se.bottom,!0):a.y>se.top&&(b===180&&a.x<se.left||b===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!0):se.top,pe.x=E.x,pe.y=de.y):b===270&&a.y>se.bottom&&a.x>se.left&&a.x<se.right&&(de.x=a.x<E.x?Math.min(E.x,se.left):Math.max(E.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(E.x,a.y),pe.h(E.x,(a.y+E.y)/2),(b===90||b===0&&E.x<re.left||b===180&&E.x>re.right)&&(b===90&&(se.ca(a)||re.ca(E))?de.x=this.computeMidOrthoPosition(a.x,a.y,E.x,E.y,!1):E.x<a.x&&(b===90||b===0)?de.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(E.x,se.right),E.y,!1):E.x>a.x&&(b===90||b===180)&&(de.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(E.x,se.left),E.y,!1)),pe.x=de.x,pe.y=E.y),de.x>re.left&&de.x<re.right&&(E.y<=re.bottom&&E.y>=a.y||a.y>=se.top&&a.y<=E.y?(b===0||b===180)&&(de.h(a.x,Math.min((a.y+E.y)/2,a.y)),pe.h(E.x,de.y)):(de.x=b===180||(b===90||b===270)&&E.x<a.x?Math.min(E.x,b===270?re.left:Math.min(re.left,se.left)):Math.max(E.x,b===270?re.right:Math.max(re.right,se.right)),pe.x=de.x,pe.y=E.y)));var Se=E;if(this.isAvoiding){var Ae=this.diagram;if(Ae===null||x===z||this.layer.isTemporary||!Ff(Ae)||re.ca(Se)&&!z.Td(x)||se.ca(a)&&!x.Td(z))y=!1;else{var Re=Bf(Ae,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Re.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))&&Re.Yj(Math.min(de.x,pe.x),Math.min(de.y,pe.y),Math.abs(de.x-pe.x),Math.abs(de.y-pe.y))&&Re.Yj(Math.min(pe.x,Se.x),Math.min(pe.y,Se.y),Math.abs(pe.x-Se.x),Math.abs(pe.y-Se.y)))y=!1;else{x=a,z=Se;var Ue=E=null;if(Ae.isVirtualized){Ae=Re.bounds.copy(),Ae.Bc(-Re.Ho,-Re.Go);var Xe=rt.alloc();rp(Re,a.x,a.y)||(Qt.Ff(Ae.x,Ae.y,Ae.x+Ae.width,Ae.y+Ae.height,a.x,a.y,de.x,de.y,Xe)?(E=a=Xe.copy(),y=Xe.ab(de)):Qt.Ff(Ae.x,Ae.y,Ae.x+Ae.width,Ae.y+Ae.height,de.x,de.y,pe.x,pe.y,Xe)?(E=a=Xe.copy(),y=Xe.ab(pe)):Qt.Ff(Ae.x,Ae.y,Ae.x+Ae.width,Ae.y+Ae.height,pe.x,pe.y,Se.x,Se.y,Xe)&&(E=a=Xe.copy(),y=Xe.ab(Se))),rp(Re,Se.x,Se.y)||(Qt.Ff(Ae.x,Ae.y,Ae.x+Ae.width,Ae.y+Ae.height,Se.x,Se.y,pe.x,pe.y,Xe)?(Ue=Se=Xe.copy(),b=pe.ab(Xe)):Qt.Ff(Ae.x,Ae.y,Ae.x+Ae.width,Ae.y+Ae.height,pe.x,pe.y,de.x,de.y,Xe)?(Ue=Se=Xe.copy(),b=de.ab(Xe)):Qt.Ff(Ae.x,Ae.y,Ae.x+Ae.width,Ae.y+Ae.height,de.x,de.y,a.x,a.y,Xe)&&(Ue=Se=Xe.copy(),b=a.ab(Xe))),rt.free(Xe)}re=re.copy().ed(se),re.Bc(Re.Ho*Re.Os,Re.Go*Re.Os),d1(Re,a,y,Se,b,re,!0),se=zc(Re,Se.x,Se.y),!Re.abort&&se>=op&&(c1(Re),re.Bc(Re.Ho*Re.Hx,Re.Go*Re.Ix),d1(Re,a,y,Se,b,re,!1),se=zc(Re,Se.x,Se.y)),!Re.abort&&se<op&&zc(Re,Se.x,Se.y)!==Ad?(Jv(this,Re,Se.x,Se.y,b,!0,ne),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)):(ne=this.i(3),y===0||y===180?Qt.B(re.x,ne.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,ne.y)):Qt.B(re.y,ne.y)?(Math.abs(a.y-re.y)<=Re.Go/2&&(this.L(2,re.x,a.y),this.L(3,ne.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Qt.B(re.y,ne.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,ne.x,re)):Qt.B(re.x,ne.x)?(Math.abs(a.x-re.x)<=Re.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ne.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),E!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,x.x,E.y):this.m(2,E.x,x.y)),Ue!==null&&(b===0||b===180?this.yf(z.x,Ue.y):this.yf(Ue.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(de.copy()),this.ne(pe.copy())),rt.free(de),rt.free(pe)}},Li.prototype.computeMidOrthoPosition=function(a,y,E,b,x){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),x?(y+b)/2+z:(a+E)/2+z};function Qv(a){if(a.diagram===null||!a.isAvoiding||!Ff(a.diagram))return!1;var y=a.points.s,E=y.length;if(4>E)return!1;a=Bf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<E-2;b++){var x=y[b],z=y[b+1];if(!a.Yj(Math.min(x.x,z.x),Math.min(x.y,z.y),Math.abs(x.x-z.x),Math.abs(x.y-z.y)))return!0}return!1}function Jv(a,y,E,b,x,z,ne){var re=y.Ho,se=y.Go,de=zc(y,E,b),pe=E,Se=b;for(x===0?pe+=re:x===90?Se+=se:x===180?pe-=re:Se-=se,x!==ne&&de>_h&&zc(y,pe,Se)!==de-1&&(zc(y,E-re,b)===de-1?(x=180,pe=E-re,Se=b):zc(y,E+re,b)===de-1?(x=0,pe=E+re,Se=b):zc(y,E,b-se)===de-1?(x=270,pe=E,Se=b-se):zc(y,E,b+se)===de-1&&(x=90,pe=E,Se=b+se));de>_h&&zc(y,pe,Se)===de-1;)E=pe,b=Se,x===0?pe+=re:x===90?Se+=se:x===180?pe-=re:Se-=se,--de;z?de>_h&&(x===180||x===0?E=Math.floor(E/re)*re+re/2:(x===90||x===270)&&(b=Math.floor(b/se)*se+se/2)):(E=Math.floor(E/re)*re+re/2,b=Math.floor(b/se)*se+se/2),de>_h&&(z=x,ne=E,pe=b,x===0?(z=90,pe+=se):x===90?(z=180,ne-=re):x===180?(z=270,pe-=se):x===270&&(z=0,ne+=re),zc(y,ne,pe)===de-1?Jv(a,y,ne,pe,z,!1,z):(ne=E,pe=b,x===0?(z=270,pe-=se):x===90?(z=0,ne+=re):x===180?(z=90,pe+=se):x===270&&(z=180,ne-=re),zc(y,ne,pe)===de-1&&Jv(a,y,ne,pe,z,!1,z))),a.yf(E,b)}Li.prototype.ez=function(a){var y=a.x;a=a.y;for(var E=this.i(0),b=this.i(1),x=Bn(y,a,E.x,E.y,b.x,b.y),z=0,ne=1;ne<this.pointsCount-1;ne++){E=this.i(ne+1);var re=Bn(y,a,b.x,b.y,E.x,E.y);b=E,re<x&&(z=ne,x=re)}return z},Li.prototype.qc=function(){this.lk=!1,this.v()},Li.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,E=y.length,b=0;b<E;b++){var x=y[b];x!==a&&x.isPanelMain&&x instanceof Hr&&(x.ua=this.ua)}}},Li.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,E=!1,b=this.diagram;b!==null&&Bh(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(E=!0);var x=this.i(0).copy(),z=x.copy();b=this.Nb.s;var ne=this.computeCurve();if(ne===su&&3<=y&&!Qt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(x.x,re.x);var se=Math.min(x.y,re.y);re=this.i(2),b=Math.min(b,re.x),se=Math.min(se,re.y)}else{if(this.isOrthogonal)for(se=0;se<y;se++)re=b[se],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),se=this.i(b),z.x=Math.min(se.x,z.x),z.y=Math.min(se.y,z.y);b=z.x,se=z.y}else{for(se=0;se<y;se++)re=b[se],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,se=z.y}if(b-=this.su.x,se-=this.su.y,x.x-=b,x.y-=se,y!==2||Bh(this)){if(a.type=Ti.o,re=FS(a),this.computeShortLength(!0)!==0&&(x=lf(this,x,!0,z)),ep(re,x.x,x.y,!1),ne===su&&3<=y&&!Qt.$(this.smoothness,0))if(y===3)E=this.i(1),y=E.x-b,E=E.y-se,x=this.i(2).copy(),x.x-=b,x.y-=se,this.computeShortLength(!1)!==0&&(x=lf(this,x,!1,z)),xd(re,y,E,y,E,x.x,x.y);else if(this.isOrthogonal){y=rt.allocAt(b,se),E=rt.alloc(),E.assign(this.i(1)),z=rt.allocAt(b,se),x=rt.allocAt(b,se),ne=this.i(0);for(var de,pe=this.smoothness/3,Se=1;Se<this.pointsCount-1;Se++){de=this.i(Se);var Ae=ne,Re=de,Ue=this.i(qv(this,de,Se,!1));if((!Qt.$(Ae.x,Re.x)||!Qt.$(Re.x,Ue.x))&&(!Qt.$(Ae.y,Re.y)||!Qt.$(Re.y,Ue.y))){var Xe=pe;isNaN(Xe)&&(Xe=this.smoothness/3);var bt=Ae.x;Ae=Ae.y;var ft=Re.x;Re=Re.y;var Pt=Ue.x;Ue=Ue.y;var Nt=Xe*qm(bt,Ae,ft,Re);Xe*=qm(ft,Re,Pt,Ue),Qt.$(Ae,Re)&&Qt.$(ft,Pt)&&(ft>bt?Ue>Re?(z.x=ft-Nt,z.y=Re-Nt,x.x=ft+Xe,x.y=Re+Xe):(z.x=ft-Nt,z.y=Re+Nt,x.x=ft+Xe,x.y=Re-Xe):Ue>Re?(z.x=ft+Nt,z.y=Re-Nt,x.x=ft-Xe,x.y=Re+Xe):(z.x=ft+Nt,z.y=Re+Nt,x.x=ft-Xe,x.y=Re-Xe)),Qt.$(bt,ft)&&Qt.$(Re,Ue)&&(Re>Ae?(Pt>ft?(z.x=ft-Nt,z.y=Re-Nt,x.x=ft+Xe):(z.x=ft+Nt,z.y=Re-Nt,x.x=ft-Xe),x.y=Re+Xe):(Pt>ft?(z.x=ft-Nt,z.y=Re+Nt,x.x=ft+Xe):(z.x=ft+Nt,z.y=Re+Nt,x.x=ft-Xe),x.y=Re-Xe)),(Qt.$(bt,ft)&&Qt.$(ft,Pt)||Qt.$(Ae,Re)&&Qt.$(Re,Ue))&&(bt=.5*(bt+Pt),Ae=.5*(Ae+Ue),z.x=bt,z.y=Ae,x.x=bt,x.y=Ae),(Se===1||Se===2&&Qt.$(ne.x,this.i(0).x)&&Qt.$(ne.y,this.i(0).y))&&(E.x=.5*(ne.x+de.x),E.y=.5*(ne.y+de.y)),xd(re,E.x-b,E.y-se,z.x-b,z.y-se,de.x-b,de.y-se),y.set(z),E.set(x),ne=de}}de=ne.x,ne=ne.y,pe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(pe=lf(this,pe.copy(),!1,Ii)),de=.5*(de+pe.x),ne=.5*(ne+pe.y),xd(re,x.x-b,x.y-se,de-b,ne-se,pe.x-b,pe.y-se),rt.free(y),rt.free(E),rt.free(z),rt.free(x)}else for(E=3;E<y;E+=3)z=this.i(E-2),E+3>=y&&(E=y-1),x=this.i(E-1),ne=this.i(E),E===y-1&&this.computeShortLength(!1)!==0&&(ne=lf(this,ne.copy(),!1,Ii)),xd(re,z.x-b,z.y-se,x.x-b,x.y-se,ne.x-b,ne.y-se);else{for(z=rt.alloc(),z.assign(this.i(0)),x=rt.alloc(),x.assign(z),ne=this.computeCorner(),Se=1,de=0;Se<y;){if(Se=qv(this,z,Se,1<Se),pe=this.i(Se),Se>=y-1){if(!z.D(pe))this.computeShortLength(!1)!==0&&(pe=lf(this,pe.copy(),!1,Ii)),uf(this,re,-b,-se,z,pe,E);else if(de===0)for(Se=1;Se<y;)x.assign(z),pe=this.i(Se++),uf(this,re,-b,-se,z,pe,E),z.assign(pe);break}if(de=qv(this,pe,Se+1,Se<y-3),Se=-b,bt=-se,Ae=pe,ft=this.i(de),Xe=E,Qt.B(z.y,Ae.y)&&Qt.B(Ae.x,ft.x))if(Ue=Math.min(ne,Math.abs(Ae.x-x.x)/2),Ue=Nt=Math.min(Ue,Math.abs(ft.y-Ae.y)/2),Qt.B(Ue,0))uf(this,re,Se,bt,z,Ae,Xe),z.assign(Ae);else{var Dt=Ae.x,Yt=Ae.y;Re=Dt,Pt=Yt,Ae.x>z.x?Dt=Ae.x-Ue:Dt=Ae.x+Ue,ft.y>Ae.y?Pt=Ae.y+Nt:Pt=Ae.y-Nt,ft=rt.allocAt(Dt,Yt),uf(this,re,Se,bt,z,ft,Xe),rt.free(ft),jm(re,Ae.x+Se,Ae.y+bt,Re+Se,Pt+bt),z.h(Re,Pt)}else Qt.B(z.x,Ae.x)&&Qt.B(Ae.y,ft.y)?(Ue=Math.min(ne,Math.abs(Ae.y-x.y)/2),Ue=Nt=Math.min(Ue,Math.abs(ft.x-Ae.x)/2),Qt.B(Nt,0)?(uf(this,re,Se,bt,z,Ae,Xe),z.assign(Ae)):(Dt=Ae.x,Yt=Ae.y,Re=Dt,Pt=Yt,Ae.y>z.y?Yt=Ae.y-Ue:Yt=Ae.y+Ue,ft.x>Ae.x?Re=Ae.x+Nt:Re=Ae.x-Nt,ft=rt.allocAt(Dt,Yt),uf(this,re,Se,bt,z,ft,Xe),rt.free(ft),jm(re,Ae.x+Se,Ae.y+bt,Re+Se,Pt+bt),z.h(Re,Pt))):(uf(this,re,Se,bt,z,Ae,Xe),z.assign(Ae));x.assign(pe),Se=de}rt.free(z)}Gm=re}else re=this.i(1).copy(),re.x-=b,re.y-=se,this.computeShortLength(!0)!==0&&(x=lf(this,x,!0,z)),this.computeShortLength(!1)!==0&&(re=lf(this,re,!1,z)),a.type=Ti.j,a.startX=x.x,a.startY=x.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function qm(a,y,E,b){return a=E-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Qt.$(a,0)?y:Qt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function lf(a,y,E,b){var x=a.pointsCount;if(2>x)return y;if(E){var z=a.i(1);if(E=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,E,z),b===0)return y;x=x===2?.5*b:b,a=a.computeShortLength(!0),a>x&&(a=x),x=a*(z-y.y)/b,y.x+=a*(E-y.x)/b,y.y+=x}else{if(z=a.i(x-2),E=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,E,z),b===0)return y;x=x===2?.5*b:b,a=a.computeShortLength(!1),a>x&&(a=x),x=a*(y.y-z)/b,y.x-=a*(y.x-E)/b,y.y-=x}return y}function qv(a,y,E,b){for(var x=a.pointsCount,z=y;Qt.$(y.x,z.x)&&Qt.$(y.y,z.y);){if(E>=x)return x-1;z=a.i(E++)}if(!Qt.$(y.x,z.x)&&!Qt.$(y.y,z.y))return E-1;for(var ne=z;Qt.$(y.x,z.x)&&Qt.$(z.x,ne.x)&&(!b||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||Qt.$(y.y,z.y)&&Qt.$(z.y,ne.y)&&(!b||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(E>=x)return x-1;ne=a.i(E++)}return E-2}Li.prototype.computeJumpLength=function(){return 10};function uf(a,y,E,b,x,z,ne){if(!ne&&Bh(a)){ne=a.computeJumpLength();var re=ne/2,se=[],de=0;if(a.isVisible()&&(de=DE(a,x,z,se)),0<de){if(Qt.B(x.y,z.y))if(x.x<z.x)for(var pe=0;pe<de;){var Se=Math.max(x.x,Math.min(se[pe++]-re,z.x-ne));y.lineTo(Se+E,z.y+b);for(var Ae=Se+E,Re=Math.min(Se+ne,z.x);pe<de&&(Se=se[pe],Se<Re+ne);)pe++,Re=Math.min(Se+re,z.x);Se=z.y-ne+b,Re+=E;var Ue=z.y+b;a.curve===Pd?ep(y,Re,Ue,!1):xd(y,Ae,Se,Re,Se,Re,Ue)}else for(--de;0<=de;){for(pe=Math.min(x.x,Math.max(se[de--]+re,z.x+ne)),y.lineTo(pe+E,z.y+b),Ae=pe+E,Se=Math.max(pe-ne,z.x);0<=de&&(pe=se[de],pe>Se-ne);)de--,Se=Math.max(pe-re,z.x);pe=z.y-ne+b,Se+=E,Re=z.y+b,a.curve===Pd?ep(y,Se,Re,!1):xd(y,Ae,pe,Se,pe,Se,Re)}else if(Qt.B(x.x,z.x))if(x.y<z.y)for(pe=0;pe<de;){for(Se=Math.max(x.y,Math.min(se[pe++]-re,z.y-ne)),y.lineTo(z.x+E,Se+b),Ae=Se+b,Se=Math.min(Se+ne,z.y);pe<de&&(Re=se[pe],Re<Se+ne);)pe++,Se=Math.min(Re+re,z.y);Re=z.x-ne+E,Ue=z.x+E,Se+=b,a.curve===Pd?ep(y,Ue,Se,!1):xd(y,Re,Ae,Re,Se,Ue,Se)}else for(--de;0<=de;){for(pe=Math.min(x.y,Math.max(se[de--]+re,z.y+ne)),y.lineTo(z.x+E,pe+b),Ae=pe+b,pe=Math.max(pe-ne,z.y);0<=de&&(Se=se[de],Se>pe-ne);)de--,pe=Math.max(Se-re,z.y);Se=z.x-ne+E,Re=z.x+E,pe+=b,a.curve===Pd?ep(y,Re,pe,!1):xd(y,Se,Ae,Se,pe,Re,pe)}}}y.lineTo(z.x+E,z.y+b)}function DE(a,y,E,b){var x=a.diagram;if(x===null||y.D(E))return 0;for(x=x.layers;x.next();){var z=x.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ne=z.length,re=0;re<ne;re++){var se=z[re];if(se instanceof Li){if(se===a)return 0<b.length&&b.sort(function(pe,Se){return pe-Se}),b.length;if(se.isVisible()&&Bh(se)){var de=se.routeBounds;de.w()&&a.routeBounds.Yc(de)&&!a.usesSamePort(se)&&(de=se.path,de!==null&&de.Ed()&&FE(y,E,b,se))}}}}}return 0<b.length&&b.sort(function(pe,Se){return pe-Se}),b.length}function FE(a,y,E,b){for(var x=Qt.B(a.y,y.y),z=b.pointsCount,ne=b.i(0),re=rt.alloc(),se=1;se<z;se++){var de=b.i(se);if(se<z-1){var pe=b.i(se+1);if(ne.y===de.y&&de.y===pe.y){if(de.x>ne.x&&pe.x>=de.x||de.x<ne.x&&pe.x<=de.x)continue}else if(ne.x===de.x&&de.x===pe.x&&(de.y>ne.y&&pe.y>=de.y||de.y<ne.y&&pe.y<=de.y))continue}e:{pe=a.x;var Se=a.y,Ae=y.x,Re=y.y,Ue=ne.x;ne=ne.y;var Xe=de.x,bt=de.y;if(Qt.B(pe,Ae)){if(!Qt.B(Se,Re)&&Qt.B(ne,bt)&&Math.min(Se,Re)<ne&&Math.max(Se,Re)>ne&&Math.min(Ue,Xe)<pe&&Math.max(Ue,Xe)>pe&&!Qt.B(Ue,Xe)){re.x=pe,re.y=ne,pe=!0;break e}}else if(Qt.B(Se,Re)&&Qt.B(Ue,Xe)&&Math.min(pe,Ae)<Ue&&Math.max(pe,Ae)>Ue&&Math.min(ne,bt)<Se&&Math.max(ne,bt)>Se&&!Qt.B(ne,bt)){re.x=Ue,re.y=Se,pe=!0;break e}re.x=0,re.y=0,pe=!1}pe&&(x?E.push(re.x):E.push(re.y)),ne=de}rt.free(re)}function Bh(a){return a=a.curve,a===ip||a===Pd}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()))}Li.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var E=y.diagram;if(E!==null&&!E.animationManager.isTicking){var b=!1;for(E=E.layers;E.next();){var x=E.value;if(x.visible){if(x===y){b=!0;var z=!1;x=x.Pa.s;for(var ne=x.length,re=0;re<ne;re++){var se=x[re];se instanceof Li&&(se===this?z=!0:z&&a1(this,se,a))}}else if(b)for(z=x.Pa.s,x=z.length,ne=0;ne<x;ne++)re=z[ne],re instanceof Li&&a1(this,re,a)}}}}};function a1(a,y,E){if(y!==null&&y.lk&&y.fd&&Bh(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||E.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Li.prototype.usesSamePort=function(a){var y=this.pointsCount,E=a.pointsCount;if(0<y&&0<E){var b=this.i(0),x=a.i(0);if(b.Xa(x)||(y=this.i(y-1),a=a.i(E-1),y.Xa(a)||b.Xa(a)||y.Xa(x)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Li.prototype.isVisible=function(){if(!cr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,E=this.diagram;if(E!==null&&(y=E.isTreePathToChildren),E=this.fromNode,E!==null){if(this.isTreeLink&&y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(var b=E;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(E=E.findVisibleNode(),E===null||E===a)return!1}if(E=this.toNode,E!==null){if(this.isTreeLink&&!y&&!E.isTreeExpanded)return!1;if(E===a)return!0;for(y=E;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=E.findVisibleNode(),y===null||y===a)return!1}return!0},Li.prototype.Zb=function(a){if(cr.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)},Li.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?fg:this.qk};function dg(a){var y=a.ef;if(y!==null){var E=a.uf;if(E!==null&&isNaN(a.curviness)){for(var b=a.ff,x=a.vf,z=a=null,ne=y.jb.s,re=ne.length,se=0;se<re;se++){var de=ne[se];(de.ef===y&&de.ff===b&&de.uf===E&&de.vf===x||de.ef===E&&de.ff===x&&de.uf===y&&de.vf===b)&&(z===null?z=de:(a===null&&(a=[],a.push(z)),a.push(de)))}if(a!==null){for(z=YS(y,E,b,x),z===null&&(z=new r0(y,b,E,x),KS(y,z),KS(E,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function hg(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(je(y.links,a),y.Sl()))}Li.prototype.ph=function(){return!0},_n.Object.defineProperties(Li.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var E=this.fromPort;y!==null&&(this.uf!==y&&Km(y,this,E),hg(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var x=this.fromPort,z=this.fromPortChanged;if(z!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ne)}a!==null&&(this.uf!==a&&Zm(a,this,x),dg(this),this.C(1)),this.g("fromNode",y,a),tp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var E=this.fromPort;E!==null&&Vl(E),hg(this),this.ff=a;var b=this.fromPort;b!==null&&Vl(b);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.xv(z,a)}E!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ne))),dg(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 E=this.toPort;y!==null&&(this.ef!==y&&Km(y,this,E),hg(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var x=this.toPort,z=this.toPortChanged;if(z!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),z(this,E,x),b!==null&&(b.aa=ne)}a!==null&&(this.ef!==a&&Zm(a,this,x),dg(this),this.C(1)),this.g("toNode",y,a),tp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var E=this.toPort;E!==null&&Vl(E),hg(this),this.vf=a;var b=this.toPort;b!==null&&Vl(b);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.Cv(z,a)}E!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,E,b),x!==null&&(x.aa=ne))),dg(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:Ia},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&&Vl(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&&fi(a,">= 0",Li,"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:Ia},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&&Vl(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&&fi(a,">= 0",Li,"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?Br: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&&cg(this.fromNode),this.toNode!==null&&cg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Hr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,E=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),E=Math.min(b.y,E),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var x=this.i(1);y=Math.min(b.x,x.x),E=Math.min(b.y,x.y),a.h(b.x,b.y,0,0),a.Ye(x)}else if(this.computeCurve()===su&&3<=b&&!this.isOrthogonal)if(x=this.i(0),y=x.x,E=x.y,a.h(y,E,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),E=Math.min(b.y,E);var z=this.i(2);y=Math.min(z.x,y),E=Math.min(z.y,E),Qt.Dl(x.x,x.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var ne=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),se=this.i(z);Qt.Dl(x.x,x.y,ne.x,ne.y,re.x,re.y,se.x,se.y,.5,a),y=Math.min(se.x,y),E=Math.min(se.y,E),x=se}else for(x=this.i(0),z=this.i(1),y=Math.min(x.x,z.x),E=Math.min(x.y,z.y),a.h(x.x,x.y,0,0),a.Ye(z),x=2;x<b;x++)z=this.i(x),y=Math.min(z.x,y),E=Math.min(z.y,E),a.Ye(z);this.su.h(y-a.x,E-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new rt)}},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,E=0;E<y-1;E++){var b=this.i(E),x=this.i(E+1);Qt.$(b.x,x.x)?(b=x.y-b.y,0>b&&(b=-b)):Qt.$(b.y,x.y)?(b=x.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(x)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,E=y.length,b=a=0;b<E;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var E=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var x=0;x<a.length;x++)if(typeof a[x]!="number"||isNaN(a[x])){b=!1;break}}if(b)for(E=new Wn,b=0;b<a.length/2;b++)x=new rt(a[2*b],a[2*b+1]).freeze(),E.add(x);else{for(b=!0,x=0;x<a.length;x++){var z=a[x];if(!zt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(E=new Wn,b=0;b<a.length;b++)x=a[b],E.add(new rt(x.x,x.y).freeze())}}else if(a instanceof Wn)for(E=a.copy(),a=E.iterator;a.next();)a.value.freeze();else Ct("Link.points value is not an instance of List or Array: "+a);E.freeze(),this.Nb=E,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ce(a.animationManager,this,E)),this.g("points",y,E)}}},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||!np(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!np(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===Pd||y===ip||a===Pd||a===ip),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)}}}),Li.prototype.invalidateOtherJumpOvers=Li.prototype.Xo,Li.prototype.findClosestSegment=Li.prototype.ez,Li.prototype.updateRoute=Li.prototype.vg,Li.prototype.invalidateRoute=Li.prototype.bb,Li.prototype.rollbackRoute=Li.prototype.rv,Li.prototype.commitRoute=Li.prototype.zf,Li.prototype.startRoute=Li.prototype.uh,Li.prototype.clearPoints=Li.prototype.Fj,Li.prototype.removePoint=Li.prototype.pv,Li.prototype.addPointAt=Li.prototype.yf,Li.prototype.addPoint=Li.prototype.ne,Li.prototype.insertPointAt=Li.prototype.m,Li.prototype.insertPoint=Li.prototype.Kz,Li.prototype.setPointAt=Li.prototype.L,Li.prototype.setPoint=Li.prototype.dd,Li.prototype.getPoint=Li.prototype.i,Li.prototype.getOtherPort=Li.prototype.Cz,Li.prototype.getOtherNode=Li.prototype.To;var cf=null,df=null,$v=new pn(Li,"Normal",1),BE=new pn(Li,"Orthogonal",2),_E=new pn(Li,"AvoidsNodes",6),s1=new pn(Li,"AvoidsNodesStraight",7),sl=new pn(Li,"None",0),su=new pn(Li,"Bezier",9),Pd=new pn(Li,"JumpGap",10),ip=new pn(Li,"JumpOver",11),fg=new pn(Li,"End",17),e0=new pn(Li,"Scale",18),t0=new pn(Li,"Stretch",19),pg=new pn(Li,"OrientAlong",21),gg=new pn(Li,"OrientPlus90",22),mg=new pn(Li,"OrientMinus90",23),ey=new pn(Li,"OrientOpposite",24),n0=new pn(Li,"OrientUpright",25),vg=new pn(Li,"OrientPlus90Upright",26),yg=new pn(Li,"OrientMinus90Upright",27),i0=new pn(Li,"OrientUpright45",28),l1=16,u1=14,Sg=8;Li.className="Link",Li.Normal=$v,Li.Orthogonal=BE,Li.AvoidsNodes=_E,Li.AvoidsNodesStraight=s1,Li.None=sl,Li.Bezier=su,Li.JumpGap=Pd,Li.JumpOver=ip,Li.End=fg,Li.Scale=e0,Li.Stretch=t0,Li.OrientAlong=pg,Li.OrientPlus90=gg,Li.OrientMinus90=mg,Li.OrientOpposite=ey,Li.OrientUpright=n0,Li.OrientPlus90Upright=vg,Li.OrientMinus90Upright=yg,Li.OrientUpright45=i0,Li.EndSegmentStep=8,Li.CurvinessStart=l1,Li.SpacingMin=u1,Li.OrthoShortCut=Sg;function r0(a,y,E,b){ar(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=E,this.Px=b,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],E=y.diagram;E=E===null||E.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,E),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 Eg(a){ar(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}Eg.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,E=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((E+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(E=[],b=0;b<=a;b++)E[b]=new Uint32Array(y);this.ac=E,this.di=a-1,this.ei=y-1}if(a=ty,this.ac!==null)for(y=0;y<=this.di;y++)if(E=this.ac[y],E.fill)E.fill(a);else for(b=0;b<=this.ei;b++)E[b]=a}};function rp(a,y,E){return a.Nd<=y&&y<=a.En&&a.Od<=E&&E<=a.Fn}function zc(a,y,E){return rp(a,y,E)?(y-=a.Nd,y/=a.rc,E-=a.Od,E/=a.sc,a.ac[y|0][E|0]):ty}function c1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var E=a.ac[y],b=0;b<=a.ei;b++)E[b]>=_h&&(E[b]=ty)}Eg.prototype.Yj=function(a,y,E,b){if(a>this.En||a+E<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,E=Math.max(0,E)/this.rc+1|0;var x=Math.max(0,b)/this.sc+1|0;if(0>a&&(E+=a,a=0),0>y&&(x+=y,y=0),0>E||0>x)return!0;for(b=Math.min(a+E-1,this.di)|0,E=Math.min(y+x-1,this.ei)|0;a<=b;a++){x=this.ac[a];for(var z=y;z<=E;z++)if(x[z]===Ad)return!1}return!0};function jc(a,y,E,b,x,z,ne,re,se){if(!(y<z||y>ne||E<re||E>se)){var de=y|0,pe=E|0,Se=a.ac[de][pe];if(Se>=_h&&Se<op)for(x?pe+=b:de+=b,Se+=1;z<=de&&de<=ne&&re<=pe&&pe<=se&&!(Se>=a.ac[de][pe]);)a.ac[de][pe]=Se,Se+=1,x?pe+=b:de+=b;if(de=x?pe:de,x)if(0<b)for(E+=b;E<de;E+=b)jc(a,y,E,1,!x,z,ne,re,se),jc(a,y,E,-1,!x,z,ne,re,se);else for(E+=b;E>de;E+=b)jc(a,y,E,1,!x,z,ne,re,se),jc(a,y,E,-1,!x,z,ne,re,se);else if(0<b)for(y+=b;y<de;y+=b)jc(a,y,E,1,!x,z,ne,re,se),jc(a,y,E,-1,!x,z,ne,re,se);else for(y+=b;y>de;y+=b)jc(a,y,E,1,!x,z,ne,re,se),jc(a,y,E,-1,!x,z,ne,re,se)}}function o0(a,y,E,b,x,z,ne,re,se){y|=0,E|=0;var de=Ad,pe=_h;for(a.ac[y][E]=pe;de===Ad&&y>z&&y<ne&&E>re&&E<se;)pe+=1,a.ac[y][E]=pe,x?E+=b:y+=b,de=a.ac[y][E]}function a0(a,y,E,b,x,z,ne,re,se){y|=0,E|=0;var de=Ad,pe=op;for(a.ac[y][E]=pe;de===Ad&&y>z&&y<ne&&E>re&&E<se;)a.ac[y][E]=pe,x?E+=b:y+=b,de=a.ac[y][E]}function d1(a,y,E,b,x,z,ne){if(a.ac!==null){a.abort=!1;var re=y.x,se=y.y;if(rp(a,re,se)){re-=a.Nd,re/=a.rc,se-=a.Od,se/=a.sc;var de=b.x,pe=b.y;if(rp(a,de,pe))if(de-=a.Nd,de/=a.rc,pe-=a.Od,pe/=a.sc,1>=Math.abs(re-de)&&1>=Math.abs(se-pe))a.abort=!0;else{var Se=z.x;b=z.y,y=z.x+z.width;var Ae=z.y+z.height;Se-=a.Nd,Se/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ae-=a.Od,Ae/=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,b|0)),Ae=Math.min(a.ei,Math.max(0,Ae|0)),b=a.ac,re|=0,se|=0,de|=0,pe|=0;var Re=E===0||E===90?1:-1;if(E=E===90||E===270,b[re][se]===Ad?(o0(a,re,se,Re,E,z,y,Se,Ae),o0(a,re,se,1,!E,z,y,Se,Ae),o0(a,re,se,-1,!E,z,y,Se,Ae)):o0(a,re,se,Re,E,re,se,re,se),b[de][pe]===Ad?(a0(a,de,pe,x===0||x===90?1:-1,x===90||x===270,z,y,Se,Ae),a0(a,de,pe,1,!(x===90||x===270),z,y,Se,Ae),a0(a,de,pe,-1,!(x===90||x===270),z,y,Se,Ae)):a0(a,de,pe,Re,E,de,pe,de,pe),E=Pi(),ne&&h1(a,de,pe,x,re,se,E))for((E[0]!==de||E[1]!==pe)&&(E.unshift(pe),E.unshift(de)),(E[E.length-2]!==re||E[E.length-1]!==se)&&(E.push(re),E.push(se)),a=_h,x=E[E.length-2],ne=E[E.length-1],b[x][ne]=a++,z=E.length-4;0<=z;z-=2)for(x=E[z+2],ne=E[z+3],y=E[z],de=E[z+1];y>x?x++:y<x?x--:de>ne?ne++:de<ne&&ne--,b[x][ne]=a++,x!==y||ne!==de;);else jc(a,re,se,1,!1,z,y,Se,Ae),jc(a,re,se,-1,!1,z,y,Se,Ae),jc(a,re,se,1,!0,z,y,Se,Ae),jc(a,re,se,-1,!0,z,y,Se,Ae);Ai(E)}}}}function h1(a,y,E,b,x,z,ne){for(var re=a.ac,se=y,de=E;;){if(se===x&&de===z)return!0;var pe=se,Se=de;if(b===0)if(pe<x)pe++;else break;else if(b===90)if(Se<z)Se++;else break;else if(b===180)if(pe>x)pe--;else break;else if(Se>z)Se--;else break;var Ae=re[pe][Se];if(Ae===0||Ae===ny)break;se=pe,de=Se}for(;;){if(pe=b,Se=se,Ae=de,b===0?Ae<z?(pe=90,Ae++):Ae>z&&(pe=270,Ae--):b===90?Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--):b===180?Ae<z?(pe=90,Ae++):Ae>z&&(pe=270,Ae--):Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--),Se=re[Se][Ae],pe!==b&&Se!==0&&Se!==ny){if(ne.push(se),ne.push(de),h1(a,se,de,pe,x,z,ne))return!0;ne.pop(),ne.pop()}if(re[se][de]=ny,b===0){if(se===y)return!1;se--}else if(b===90){if(de===E)return!1;de--}else if(b===180){if(se===y)return!1;se++}else{if(de===E)return!1;de++}}}_n.Object.defineProperties(Eg.prototype,{bounds:{get:function(){return new xn(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 Ad=0,_h=1,op=999999,ty=op+1,ny=op+2;Eg.className="PositionArray";function hf(){ar(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()+":",E=0;E<a.length;E++){var b=a[E];b!==null&&(y+=`
`+b.toString())}return y};function UE(a,y,E,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<E?270:90;case 6:return 90<E&&270>=E?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return E>a&&E<=180+a?180:270;case 5:return E>180-a&&E<=360-a?270:0;case 12:return E>a&&E<=180+a?90:0;case 10:return E>180-a&&E<=360-a?180:90;case 7:return 90<E&&E<=180+a?180:E>180+a&&E<=360-a?270:0;case 13:return 180<E&&E<=360-a?270:E>a&&180>=E?90:0;case 14:return E>a&&E<=180-a?90:E>180-a&&270>=E?180:0;case 11:return E>180-a&&E<=180+a?180:E>180+a?270:90}return b&&y!==15&&(E-=15,0>E&&(E+=360)),E>a&&E<180-a?90:E>=180-a&&E<=180+a?180:E>180+a&&E<360-a?270:0}hf.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var E=a.pe;if(E.length===0){e:if(!a.ap){E=a.ap,a.ap=!0;var b=null,x=a.node,z=x instanceof Ir?x:null;if(z===null||z.isSubGraphExpanded)var ne=x.isTreeExpanded?x.findLinksConnected(a.port.portId):x.qx();else{if(!z.actualBounds.w()){a.ap=E;break e}b=z,ne=b.Lu()}z=a.pe.length=0;var re=a.port.ga(Kr,rt.alloc()),se=a.port.ga(vo,rt.alloc());for(x=xn.allocAt(re.x,re.y,0,0),x.Ye(se),rt.free(re),rt.free(se),re=rt.allocAt(x.x+x.width/2,x.y+x.height/2),se=a.port.li(),ne=ne.iterator;ne.next();){var de=ne.value;if(de.isVisible()&&de.fromPort!==de.toPort){var pe=de.fromPort===a.port||de.fromNode!==null&&de.fromNode.Td(b),Se=de.computeSpot(pe,a.port);if(Se.$c()&&(pe=pe?de.toPort:de.fromPort,pe!==null)){var Ae=pe.part;if(Ae!==null){var Re=Ae.findVisibleNode();Re!==null&&Re!==Ae&&(Ae=Re,pe=Ae.port),pe=de.computeOtherPoint(Ae,pe),Ae=re.ab(pe),Ae-=se,0>Ae?Ae+=360:360<=Ae&&(Ae-=360),Se=UE(x,Se,Ae,de.isOrthogonal),Se===0?(Se=4,180<Ae&&(Ae-=360)):Se===90?(Se=8,270<Ae&&(Ae-=360)):Se===180?Se=2:(Se=1,90>Ae&&(Ae+=360)),Re=a.pe[z],Re===void 0?(Re=new iy(de,Ae,Se),a.pe[z]=Re):(Re.link=de,Re.angle=Ae,Re.Nc=Se),Re.hv.set(pe),z++}}}}for(rt.free(re),a.pe.sort(hf.prototype.j),se=a.pe.length,b=-1,z=re=0;z<se;z++)ne=a.pe[z],ne!==void 0&&(ne.Nc!==b&&(b=ne.Nc,re=0),ne.Uo=re,re++);for(b=-1,re=0,z=se-1;0<=z;z--)se=a.pe[z],se!==void 0&&(se.Nc!==b&&(b=se.Nc,re=se.Uo+1),se.Gl=re);if(z=a.pe,Se=a.port,b=a.node.portSpreading,re=rt.alloc(),se=rt.alloc(),ne=rt.alloc(),de=rt.alloc(),Se.ga(Kr,re),Se.ga(ho,se),Se.ga(vo,ne),Se.ga(va,de),Re=Ae=pe=Se=0,b===Zv)for(var Ue=0;Ue<z.length;Ue++){var Xe=z[Ue];if(Xe!==null){var bt=Xe.link.computeThickness();switch(Xe.Nc){case 8:Ae+=bt;break;case 2:Re+=bt;break;case 1:Se+=bt;break;default:case 4:pe+=bt}}}var ft=Ue=0,Pt=1,Nt=Xe=0;for(bt=0;bt<z.length;bt++){var Dt=z[bt];if(Dt!==null){if(Ue!==Dt.Nc){switch(Ue=Dt.Nc,Ue){case 8:var Yt=ne;ft=de;break;case 2:Yt=de,ft=re;break;case 1:Yt=re,ft=se;break;default:case 4:Yt=se,ft=ne}switch(Xe=ft.x-Yt.x,Nt=ft.y-Yt.y,Ue){case 8:Ae>Math.abs(Xe)?(Pt=Math.abs(Xe)/Ae,Ae=Math.abs(Xe)):Pt=1;break;case 2:Re>Math.abs(Nt)?(Pt=Math.abs(Nt)/Re,Re=Math.abs(Nt)):Pt=1;break;case 1:Se>Math.abs(Xe)?(Pt=Math.abs(Xe)/Se,Se=Math.abs(Xe)):Pt=1;break;default:case 4:pe>Math.abs(Nt)?(Pt=Math.abs(Nt)/pe,pe=Math.abs(Nt)):Pt=1}ft=0}var wn=Dt.Zo;if(b===Zv){switch(Dt=Dt.link.computeThickness(),Dt*=Pt,wn.set(Yt),Ue){case 8:wn.x=Yt.x+Xe/2+Ae/2-ft-Dt/2;break;case 2:wn.y=Yt.y+Nt/2+Re/2-ft-Dt/2;break;case 1:wn.x=Yt.x+Xe/2-Se/2+ft+Dt/2;break;default:case 4:wn.y=Yt.y+Nt/2-pe/2+ft+Dt/2}ft+=Dt}else{var zi=.5;b===Ym&&(zi=(Dt.Uo+1)/(Dt.Gl+1)),wn.x=Yt.x+Xe*zi,wn.y=Yt.y+Nt*zi}}}for(rt.free(re),rt.free(se),rt.free(ne),rt.free(de),Yt=a.pe,z=0;z<Yt.length;z++)b=Yt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=E,xn.free(x)}E=a.pe}for(a=0;a<E.length;a++)if(x=E[a],x!==null&&x.link===y)return x;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,E=y.computeEndSegmentLength(this.node,this.port,Mr,y.fromPort===this.port),b=a.Uo;if(0>b)return E;var x=a.Gl;if(1>=x||!y.isOrthogonal)return E;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=x-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?E+8*b:(a?y.y===z.y:y.x===z.x)?E:E+8*(x-1-b)},hf.className="Knot";function iy(a,y,E){this.link=a,this.angle=y,this.Nc=E,this.hv=new rt,this.Gl=this.Uo=0,this.Zo=new rt,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 ta(a){ar(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new rt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ta.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},ta.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ta.prototype.qb=function(){},ta.prototype.toString=function(){var a=Rn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ta.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())}}},ta.prototype.createNetwork=function(){return new zo(this)},ta.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Tn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ir?y.lg(a.memberParts):y.lg(a.iterator),y},ta.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 E=y.value.node;if(E!==null&&(a=E.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},ta.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()}},ta.prototype.doLayout=function(a){var y=new $n;a instanceof Tn?(qd(this,y,a.nodes,!0,this.rh,!0,!1,!0),qd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ir?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},ta.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var E=this.arrangementOrigin.x,b=E,x=this.arrangementOrigin.y,z=0,ne=0;for(a=a.iterator;a.next();){var re=a.value;bg(re);var se=re.measuredBounds,de=se.width;se=se.height,re.moveTo(b,x),re instanceof Ir&&(re.rh=!1),b+=Math.max(de,50)+20,ne=Math.max(ne,Math.max(se,50)),z>=y-1?(z=0,b=E,x+=ne+20,ne=0):z++}},ta.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,E=y,b=this.arrangementOrigin.y,x=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value.node;if(!(re===null||re instanceof Li)&&(bg(re),this.rh(re))){var se=re.measuredBounds,de=se.width;se=se.height,re.moveTo(E,b),re instanceof Ir&&(re.rh=!1),E+=Math.max(de,50)+20,z=Math.max(z,Math.max(se,50)),x>=a-1?(x=0,E=y,b+=z+20,z=0):x++}}},ta.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ir&&a.rh)};function qd(a,y,E,b,x,z,ne,re){for(E=E.iterator;E.next();){var se=E.value;b&&!se.isTopLevel||x!==null&&!x(se)||!se.canLayout()||(z&&se instanceof Gi?se.isLinkLabel||(se instanceof Ir&&se.layout===null?qd(a,y,se.memberParts,!1,x,z,ne,re):(bg(se),y.add(se))):ne&&se instanceof Li?y.add(se):!re||!se.Zc()||se instanceof Gi||(bg(se),y.add(se)))}}function bg(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ta.prototype.ni=function(a,y){var E=this.boundsComputation;return E!==null?(y||(y=new xn),E(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ta.prototype.ex=function(a){var y=new $n;return a instanceof Tn?(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 Ir?qd(this,y,a.memberParts,!1,null,!0,!0,!0):qd(this,y,a.iterator,!1,null,!0,!0,!0),y},ta.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var E=y.position.copy();return(isNaN(E.x)||isNaN(E.y))&&E.set(a),y=y.placeholder,y!==null&&(E=y.ga(Kr),(isNaN(E.x)||isNaN(E.y))&&E.set(a),a=y.padding,E.x+=a.left,E.y+=a.top),E}return a},_n.Object.defineProperties(ta.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())}}}),ta.prototype.collectParts=ta.prototype.ex,ta.prototype.getLayoutBounds=ta.prototype.ni,ta.prototype.invalidateLayout=ta.prototype.C,ta.className="Layout";function zo(a){ar(this),this.Sc=a,this.wf=new $n,this.ye=new $n,this.Es=new yn,this.zs=new yn}zo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new $n,this.ye=new $n,this.Es=new yn,this.zs=new yn},zo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var E=this.wf.iterator;E.next();)y+=`
`+E.value.toString(a-1);for(E=this.ye.iterator;E.next();)y+=`
`+E.value.toString(a-1)}return y},zo.prototype.createVertex=function(){return new ja(this)},zo.prototype.createEdge=function(){return new Wl(this)},zo.prototype.lg=function(a,y,E){if(a!==null){for(y===void 0&&(y=!1),E===void 0&&(E=null),E===null&&(E=function(ne){if(ne instanceof Gi)return!ne.isLinkLabel;if(ne instanceof Li){var re=ne.fromNode;return re===null||re.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Gi&&(!y||b.isTopLevel)&&b.canLayout()&&E(b)){if(b instanceof Ir&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var x=this.createVertex();x.node=b,this.dh(x)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Li&&(!y||b.isTopLevel)&&b.canLayout()&&E(b)&&this.Lo(b)===null){var z=b.fromNode;x=b.toNode,z!==null&&x!==null&&z!==x&&(z=this.findGroupVertex(z),x=this.findGroupVertex(x),z!==null&&x!==null&&this.Zj(z,x,b))}}},zo.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Me=zo.prototype,Me.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Me.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},Me.Iu=function(a){if(a!==null&&p1(this,a)){for(var y=a.tg,E=y.count-1;0<=E;E--){var b=y.M(E);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)E=y.M(a),this.Mj(E)}};function p1(a,y){if(y===null)return!1;var E=a.wf.remove(y);return E&&(y=y.node,y!==null&&a.Es.remove(y)),E}Me.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Me.ki=function(a){return a===null?null:this.Es.I(a)},Me.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 E=y.link;E!==null&&a.Lo(E)===null&&a.zs.add(E,y),y.network=a}}Me.Dy=function(a){if(a===null)return null;var y=a.fromNode,E=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),E!==null&&(b.toVertex=this.Bl(E)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,E!==null?b.toVertex=this.Bl(E):b.toVertex=null),b},Me.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))}Me.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Me.Lo=function(a){return a===null?null:this.zs.I(a)},Me.Zj=function(a,y,E){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=E,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Me.gm=function(a){if(a!==null){var y=a.fromVertex,E=a.toVertex;y!==null&&E!==null&&(y.Jl(a),E.Kl(a),a.gm(),y.Cl(a),E.zl(a))}},Me.Ko=function(){for(var a=Pi(),y=this.ye.iterator;y.next();){var E=y.value;E.fromVertex===E.toVertex&&a.push(E)}for(y=a.length,E=0;E<y;E++)this.Mj(a[E]);Ai(a)},zo.prototype.deleteArtificialVertexes=function(){for(var a=Pi(),y=this.wf.iterator;y.next();){var E=y.value;E.node===null&&E.data===null&&a.push(E)}for(E=a.length,y=0;y<E;y++)this.Iu(a[y]);for(y=Pi(),E=this.ye.iterator;E.next();){var b=E.value;b.link===null&&b.data===null&&y.push(b)}for(E=y.length,b=0;b<E;b++)this.Mj(y[b]);Ai(a),Ai(y)};function HE(a){for(var y=Pi(),E=a.ye.iterator;E.next();){var b=E.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(E=y.length,b=0;b<E;b++)a.Mj(y[b]);Ai(y)}zo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),HE(this),this.Ko()),a=new Wn;for(var y=!0;y;){y=!1;for(var E=this.wf.iterator;E.next();){var b=E.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),ay(this,y,b),y=!0;break}}}return a.sort(function(x,z){return x===null||z===null||x===z?0:z.vertexes.count-x.vertexes.count}),a};function ay(a,y,E){if(E!==null&&E.network!==y){p1(a,E),y.dh(E);for(var b=E.sourceEdges;b.next();){var x=b.value;x.network!==y&&(oy(a,x),ry(y,x),ay(a,y,x.fromVertex))}for(b=E.destinationEdges;b.next();)E=b.value,E.network!==y&&(oy(a,E),ry(y,E),ay(a,y,E.toVertex))}}zo.prototype.dz=function(){for(var a=new $n,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},_n.Object.defineProperties(zo.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),zo.prototype.findAllParts=zo.prototype.dz,zo.prototype.splitIntoSubNetworks=zo.prototype.Zx,zo.prototype.deleteSelfEdges=zo.prototype.Ko,zo.prototype.reverseEdge=zo.prototype.gm,zo.prototype.linkVertexes=zo.prototype.Zj,zo.prototype.findEdge=zo.prototype.Lo,zo.prototype.deleteLink=zo.prototype.Yy,zo.prototype.deleteEdge=zo.prototype.Mj,zo.prototype.addLink=zo.prototype.Dy,zo.prototype.addEdge=zo.prototype.Bo,zo.prototype.findVertex=zo.prototype.ki,zo.prototype.deleteNode=zo.prototype.Zy,zo.prototype.deleteVertex=zo.prototype.Iu,zo.prototype.addNode=zo.prototype.Bl,zo.prototype.addVertex=zo.prototype.dh,zo.prototype.addParts=zo.prototype.lg,zo.className="LayoutNetwork";function ja(a){ar(this),this.ob=a,this.j=new xn(0,0,10,10).freeze(),this.o=new rt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Wn,this.mg=new Wn}ja.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Wn,this.mg=new Wn},ja.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 E=!0,b=this.tg.iterator;b.next();){var x=b.value;E?E=!1:a+=",",a+=x.toString(0)}for(x="",E=!0,b=this.mg.iterator;b.next();){var z=b.value;E?E=!1:x+=",",x+=z.toString(0)}y+=" sources: "+a+" destinations: "+x}return y},ja.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,E=a.bounds;zt(E)?(E.x=y.x,E.y=y.y,E.width=y.width,E.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Ir)){E=xn.alloc(),a.Va();var b=this.network.layout.ni(a,E),x=a.locationObject.ga(Dr);if(b.w()&&x.w()){a.moveTo(y.x+this.focusX-(x.x-b.x),y.y+this.focusY-(x.y-b.y)),xn.free(E);return}xn.free(E)}a.moveTo(y.x,y.y)}},ja.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},ja.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},ja.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},ja.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}_n.Object.defineProperties(ja.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 E=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,E,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,E=xn.alloc(),b=y.ni(a,E);y=b.x;var x=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(x)&&(x=0),this.j.h(y,x,z,b),xn.free(E),!(a instanceof Ir)&&(a=a.locationObject.ga(Dr),a.w())){this.o.h(a.x-y,a.y-x);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new $n,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new $n,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new $n,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 Wn,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}}}),ja.prototype.deleteDestinationEdge=ja.prototype.Jl,ja.prototype.addDestinationEdge=ja.prototype.zl,ja.prototype.deleteSourceEdge=ja.prototype.Kl,ja.prototype.addSourceEdge=ja.prototype.Cl,ja.className="LayoutVertex",ja.standardComparer=sy,ja.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var E=y.Sh;if(a!==null){if(E!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=E.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),E=0;E<y.length;E++)if(a[E]!==""&&a[E]!==void 0){var b=parseFloat(y[E]),x=parseFloat(a[E]);if(isNaN(b))if(isNaN(x)){if(y[E].localeCompare(a[E])!==0)return y[E].localeCompare(a[E])}else return 1;else{if(isNaN(x))return-1;if(b-x!==0)return b-x}}else if(y[E]!=="")return 1;return a[E]!==""&&a[E]!==void 0?-1:0}return 1}return E!==null?-1:0}return 1}return y!==null?-1:0};function Wl(a){ar(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Wl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Wl.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},Wl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Wl.prototype.commit=function(){},Wl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},_n.Object.defineProperties(Wl.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)}}}),Wl.prototype.getOtherVertex=Wl.prototype.Ax,Wl.className="LayoutEdge";function ys(a){ta.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=xg,this.Rb=l0,this.nd=wg,this.hd=g1,a&&Object.assign(this,a)}dn(ys,ta),ys.prototype.cloneProtected=function(a){ta.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},ys.prototype.qb=function(a){a.classType===ys?a===wg||a===c0||a===ly||a===u0?this.sorting=a:a===l0||a===dc?this.arrangement=a:a===xg||a===s0?this.alignment=a:Ct("Unknown enum value: "+a):ta.prototype.qb.call(this,a)},ys.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var E=y.copy().iterator;E.next();){var b=E.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Ir)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var x=y.Fa();if(x.length!==0){switch(this.sorting){case u0:x.reverse();break;case wg:x.sort(this.comparer);break;case c0:x.sort(this.comparer),x.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=z&&0>=ne&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),E=this.spacing.height,isFinite(E)||(E=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case s0:var re=y,se=E,de=xn.alloc(),pe=Math.max(this.cellSize.width,1);if(!isFinite(pe))for(var Se=pe=0;Se<x.length;Se++){var Ae=this.ni(x[Se],de);pe=Math.max(pe,Ae.width)}if(pe=Math.max(pe+re,1),Se=Math.max(this.cellSize.height,1),!isFinite(Se))for(Ae=Se=0;Ae<x.length;Ae++){var Re=this.ni(x[Ae],de);Se=Math.max(Se,Re.height)}Se=Math.max(Se+se,1),Ae=this.arrangement;for(var Ue=Re=this.arrangementOrigin.x,Xe=this.arrangementOrigin.y,bt=0,ft=0,Pt=0;Pt<x.length;Pt++){var Nt=x[Pt],Dt=this.ni(Nt,de),Yt=Math.ceil((Dt.width+re)/pe)*pe,wn=Math.ceil((Dt.height+se)/Se)*Se;switch(Ae){case dc:var zi=Math.abs(Ue-Dt.width);break;default:zi=Ue+Dt.width}switch((0<z&&bt>z-1||0<ne&&0<bt&&zi-Re>ne)&&(b.push(new xn(0,Xe,ne+re,ft)),bt=0,Ue=Re,Xe+=ft,ft=0),ft=Math.max(ft,wn),Ae){case dc:Dt=-Dt.width;break;default:Dt=0}switch(Nt.moveTo(Ue+Dt,Xe),Ae){case dc:Ue-=Yt;break;default:Ue+=Yt}bt++}b.push(new xn(0,Xe,ne+re,ft)),xn.free(de);break;case xg:for(se=ne,pe=z,Se=y,Ae=E,ne=xn.alloc(),Re=Math.max(this.cellSize.width,1),z=Xe=de=0,re=rt.alloc(),Ue=0;Ue<x.length;Ue++)ft=x[Ue],bt=this.ni(ft,ne),ft=wd(ft,ft.locationObject,ft.locationSpot,re),de=Math.max(de,ft.x),Xe=Math.max(Xe,bt.width-ft.x),z=Math.max(z,ft.y);switch(Ue=this.arrangement,Ue){case dc:de+=Se;break;default:Xe+=Se}Re=isFinite(Re)?Math.max(Re+Se,1):Math.max(de+Xe,1);var er=ft=this.arrangementOrigin.x;for(Pt=this.arrangementOrigin.y,Xe=0,se>=de&&(se-=de),de=Nt=0,Yt=Math.max(this.cellSize.height,1),Dt=z=0,wn=!0,bt=rt.alloc(),zi=0;zi<x.length;zi++){var Xi=x[zi],ki=this.ni(Xi,ne),oi=wd(Xi,Xi.locationObject,Xi.locationSpot,re);if(0<Xe)switch(Ue){case dc:er=(er-ft-(ki.width-oi.x))/Re,er=Qt.$(Math.round(er),er)?Math.round(er):Math.floor(er),er=er*Re+ft;break;default:er=(er-ft+oi.x)/Re,er=Qt.$(Math.round(er),er)?Math.round(er):Math.ceil(er),er=er*Re+ft}else switch(Ue){case dc:Nt=er+oi.x+ki.width;break;default:Nt=er-oi.x}switch(Ue){case dc:var kr=-(er+oi.x)+Nt;break;default:kr=er+ki.width-oi.x-Nt}if(0<pe&&Xe>pe-1||0<se&&0<Xe&&kr>se){for(b.push(new xn(0,wn?Pt-z:Pt,se+Se,Dt+z+Ae)),er=0;er<Xe&&zi!==Xe;er++){kr=x[zi-Xe+er];var Er=wd(kr,kr.locationObject,kr.locationSpot,bt);kr.moveTo(kr.position.x,kr.position.y+z-Er.y)}Dt+=Ae,Pt=wn?Pt+Dt:Pt+(Dt+z),Xe=Dt=z=0,er=ft,wn=!1}switch(er===ft&&(de=Ue===dc?Math.max(de,ki.width-oi.x):Math.min(de,-oi.x)),z=Math.max(z,oi.y),Dt=Math.max(Dt,ki.height-oi.y),isFinite(Yt)&&(Dt=Math.max(Dt,Math.max(ki.height,Yt)-oi.y)),wn?Xi.moveTo(er-oi.x,Pt-oi.y):Xi.moveTo(er-oi.x,Pt),Ue){case dc:er-=oi.x+Se;break;default:er+=ki.width-oi.x+Se}Xe++}if(b.push(new xn(0,Pt,se+Se,(wn?Dt:Dt+z)+Ae)),x.length!==Xe)for(se=0;se<Xe;se++)pe=x[x.length-Xe+se],Se=wd(pe,pe.locationObject,pe.locationSpot,re),pe.moveTo(pe.position.x,pe.position.y+z-Se.y);if(rt.free(re),rt.free(bt),Ue===dc)for(x=0;x<b.length;x++)z=b[x],z.width+=de,z.x-=de;else for(x=0;x<b.length;x++)z=b[x],z.x>de&&(z.width+=z.x-de,z.x=de);xn.free(ne)}for(re=z=ne=x=0;re<b.length;re++)se=b[re],x=Math.min(x,se.x),ne=Math.min(ne,se.y),z=Math.max(z,se.x+se.width);this.arrangement===dc?this.commitLayers(b,new rt(x+y/2-(z+x),ne-E/2)):this.commitLayers(b,new rt(x-y/2,ne-E/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ys.prototype.commitLayers=function(){};function g1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}_n.Object.defineProperties(ys.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!==xg&&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!==wg&&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 pn(ys,"Position",0),xg=new pn(ys,"Location",1),l0=new pn(ys,"LeftToRight",2),dc=new pn(ys,"RightToLeft",3),ly=new pn(ys,"Forward",4),u0=new pn(ys,"Reverse",5),wg=new pn(ys,"Ascending",6),c0=new pn(ys,"Descending",7);ys.className="GridLayout",ys.standardComparer=g1,ys.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 E=0;E<a.length;E++)if(y[E]!==""&&y[E]!==void 0){var b=parseFloat(a[E]),x=parseFloat(y[E]);if(isNaN(b))if(isNaN(x)){if(a[E].localeCompare(y[E])!==0)return a[E].localeCompare(y[E])}else return 1;else{if(isNaN(x))return-1;if(b-x!==0)return b-x}}else if(a[E]!=="")return 1;return y[E]!==""&&y[E]!==void 0?-1:0}return 1}return y!==null?-1:0},ys.Position=s0,ys.Location=xg,ys.LeftToRight=l0,ys.RightToLeft=dc,ys.Forward=ly,ys.Reverse=u0,ys.Ascending=wg,ys.Descending=c0;function xo(){this.On=new $n,this.Dn=new $n,this.Pa=new $n,this.cf=new yn,this.bf=new yn,this.aj=new yn,this.H=null,this.tp=!1}Me=xo.prototype,Me.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Me.Xe=function(a){this.H=a},Me.oi=function(a){if(a instanceof Gi){if(this.On.add(a),a instanceof Ir){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 Li?this.Dn.add(a):a instanceof co||this.Pa.add(a);y=a.data,y===null||a instanceof co||(a instanceof Li?this.bf.add(y,a):this.cf.add(y,a))},Me.pc=function(a){if(a.Ej(),a instanceof Gi){if(this.On.remove(a),a instanceof Ir){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 Li?this.Dn.remove(a):a instanceof co||this.Pa.remove(a);y=a.data,y===null||a instanceof co||(a instanceof Li?this.bf.remove(y):this.cf.remove(y))},Me.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var E=y.value,b=y.key;(!E.Zc()||E instanceof Ir)&&Ct('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+E)}for(y=a.groupTemplateMap.iterator;y.next();)E=y.value,b=y.key,E instanceof Ir||Ct('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+E);for(y=a.linkTemplateMap.iterator;y.next();)E=y.value,b=y.key,E instanceof Li||Ct('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+E);for(y=Pi(),E=a.selection.iterator;E.next();)(b=E.value.data)&&y.push(b);for(E=Pi(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&E.push(b);for(a=Pi(),b=this.nodes.iterator;b.next();){var x=b.value;x.data!==null&&(a.push(x.data),a.push(x.location))}for(b=this.links.iterator;b.next();)x=b.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(b=this.parts.iterator;b.next();)x=b.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)x=this.Lc(y[b]),x!==null&&(x.isSelected=!0);for(b=0;b<E.length;b++)x=this.Lc(E[b]),x!==null&&(x.isHighlighted=!0);for(b=0;b<a.length;b+=2)x=this.Lc(a[b]),x!==null&&(x.location=a[b+1]);Ai(y),Ai(E),Ai(a)}},xo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},xo.prototype.addModeledParts=function(a,y){var E=this,b=this.diagram.model;a.forEach(function(x){b.lb(x)&&m1(E,x,!1)}),a.forEach(function(x){b.lb(x)&&E.resolveReferencesForData(x)}),y!==!1&&Rf(this.diagram,!1)};function m1(a,y,E){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){E===void 0&&(E=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),x=v1(a,y,b);if(x!==null&&(Ou(x),x=x.copy(),x!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=b,x.ub=y,a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=z,b=x;break e}}b=null}b!==null&&E&&a.resolveReferencesForData(y)}}xo.prototype.insertLink=function(){return null},xo.prototype.resolveReferencesForData=function(){},xo.prototype.Ro=function(a){return this.H.model.Ro(a)};function v1(a,y,E){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(E),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(E1||(E1=!0,gi('No Group template found for category "'+E+'"'),gi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(E),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(S1||(S1=!0,gi('No Node template found for category "'+E+'"'),gi(" Using default node template")),y=a.ny))),y}xo.prototype.getLinkCategoryForData=function(){return""},xo.prototype.setLinkCategoryForData=function(){},xo.prototype.setFromNodeForLink=function(){},xo.prototype.setToNodeForLink=function(){},xo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,E=y.linkTemplateMap.I(a);return E===null&&(E=y.linkTemplateMap.I(""),E===null&&(b1||(b1=!0,gi('No Link template found for category "'+a+'"'),gi(" Using default link template")),E=y.my)),E},xo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},xo.prototype.Gs=function(a){var y=this;a.forEach(function(E){y.ip(E)})},xo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Bp(this.diagram,a,!1),this.unresolveReferencesForPart(a))},xo.prototype.unresolveReferencesForPart=function(){},xo.prototype.removeDataForLink=function(){},xo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},xo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Gi?a:null)},xo.prototype.findLinkForKey=function(){return null},Me=xo.prototype,Me.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Me.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Gi?a:null)},Me.Kc=function(a){return a===null?null:this.bf.I(a)},Me.ms=function(a){for(var y=0;y<arguments.length;++y);y=new $n;for(var E=this.On.iterator;E.next();){var b=E.value,x=b.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(zt(ne)&&uy(this,x,ne)){y.add(b);break}}}return y.iterator},Me.ls=function(a){for(var y=0;y<arguments.length;++y);y=new $n;for(var E=this.Dn.iterator;E.next();){var b=E.value,x=b.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(zt(ne)&&uy(this,x,ne)){y.add(b);break}}}return y.iterator};function uy(a,y,E){for(var b in E){var x=y[b],z=E[b];if(pi(z)){if(!pi(x)||x.length<z.length)return!1;for(var ne=0;ne<x.length;ne++){var re=z[ne];if(re!==void 0&&!y1(a,x[ne],re))return!1}}else if(!y1(a,x,z))return!1}return!0}function y1(a,y,E){if(typeof E=="function"){if(!E(y))return!1}else if(E instanceof RegExp){if(!y||!E.test(y.toString()))return!1}else if(zt(y)&&zt(E)){if(!uy(a,y,E))return!1}else if(y!==E)return!1;return!0}xo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var E=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(E===Bo){if(b==="nodeCategory"){var x=this.Lc(a.object),z=a.newValue;x!==null&&typeof z=="string"&&(x.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(E===na){var ne=a.newValue;b==="nodeDataArray"&&zt(ne)&&m1(this,ne),y.isModified=!0}else if(E===aa){var re=a.oldValue;b==="nodeDataArray"&&zt(re)&&this.ip(re),y.isModified=!0}else E===cs&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(E===Bo){var se=a.propertyName,de=a.object;de===y.model?(se==="nodeKeyProperty"||se==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(de,se),y.isModified=!0}else if(E===na||E===aa){var pe=a.change===na,Se=pe?a.newParam:a.oldParam,Ae=pe?a.newValue:a.oldValue,Re=this.aj.I(a.object);if(Array.isArray(Re))for(a=0;a<Re.length;a++){var Ue=Re[a];if(pe)km(Ue,Ae,Se,!0);else if(!(0>Se)){var Xe=Se+rg(Ue);Ue.pc(Xe,!0),wv(Ue,Xe,Se)}}y.isModified=!0}}finally{y.aa=!0}}}}},xo.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)},xo.prototype.rp=function(){for(var a=this.H.model,y=new $n,E=a.nodeDataArray,b=0;b<E.length;b++)y.add(E[b]);var x=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||x.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||x.push(ne.data)}),x.forEach(function(ne){L1(a,ne,!1)}),b=0;b<E.length;b++){var z=E[b];this.Lc(z)===null&&k1(a,z,!1)}for(this.refreshDataBoundLinks(),E=this.parts.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.nodes.iterator;E.next();)E.value.updateRelationshipsFromData();for(E=this.links.iterator;E.next();)E.value.updateRelationshipsFromData()},xo.prototype.refreshDataBoundLinks=function(){},xo.prototype.updateRelationshipsFromData=function(){},xo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var E=this.Lc(a);if(E!==null)E.La(y);else{E=null;for(var b=this.aj.iterator;b.next();){for(var x=b.value,z=0;z<x.length;z++){var ne=x[z].sx(a);ne!==null&&(E===null&&(E=Pi()),E.push(ne))}if(E!==null)break}if(E!==null){for(b=0;b<E.length;b++)E[b].La(y);Ai(E)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function cy(a,y){var E=y.Hh;if(pi(E)){var b=a.aj.I(E);if(b===null)b=[],b.push(y),a.aj.add(E,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function dy(a,y,E){Oh(y,function(ne){ne=ne.O.s;for(var re=ne.length,se=0;se<re;se++)jp(E,ne[se])});var b=y.Hh;if(pi(b)){var x=a.aj.I(b);if(x!==null){for(var z=0;z<x.length;z++)if(x[z]===y){x.splice(z,1),x.length===0&&a.aj.remove(b);break}}}}xo.prototype.Kj=function(a,y,E){E===void 0&&(E=!1);var b=new yn;if(pi(a))for(var x=0;x<a.length;x++)d0(this,a[x],y,b,E);else for(a=a.iterator;a.next();)d0(this,a.value,y,b,E);if(y!==null){E=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,x=new $n;for(var z=new yn,ne=b.iterator;ne.next();){var re=ne.value;if(re instanceof Li)a||re.fromNode!==null&&re.toNode!==null||x.add(re);else if(re instanceof Gi&&re.data!==null&&E.Tl()){var se=re;re=ne.key;var de=re.pg();de!==null&&(de=b.I(de),de!==null?(E.qe(se.data,E.wa(de.data)),se=y.Kc(se.data),re=re.kh(),re!==null&&se!==null&&z.add(re,se)):E.qe(se.data,void 0))}}if(0<x.count&&y.Is(x,!1),0<z.count)for(E=z.iterator;E.next();)b.add(E.key,E.value)}if(y!==null&&this.H!==null&&(y=y.model,E=y.afterCopyFunction,E!==null)){var pe=new yn;b.each(function(Se){Se.key.data!==null&&pe.add(Se.key.data,Se.value.data)}),E(pe,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function d0(a,y,E,b,x){if(y===null||x&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,E);if(!(z instanceof cr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Gi){for(var ne=y.linksConnected;ne.next();){var re=ne.value;if(re.fromNode===y){var se=b.I(re);se!==null&&(se.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof Ir&&z instanceof Ir)for(y=y.memberParts;y.next();)ne=d0(a,y.value,E,b,x),ne instanceof Li||ne===null||(ne.containingGroup=z)}else if(y instanceof Li&&z instanceof Li)for(ne=y.fromNode,ne!==null&&(ne=b.I(ne),ne!==null&&(z.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=b.I(ne),ne!==null&&(z.toNode=ne)),y=y.labelNodes;y.next();)ne=d0(a,y.value,E,b,x),ne!==null&&ne instanceof Gi&&(ne.labeledLink=z);return z}xo.prototype.copyPartData=function(a,y){var E=null,b=a.data;if(b!==null&&y!==null){var x=y.model;a instanceof Li||(b=x.copyNodeData(b),zt(b)&&(x.xf(b),E=y.Lc(b)))}else Ou(a),E=a.copy(),E!==null&&(x=this.H,y!==null?y.add(E):b!==null&&x!==null&&x.commandHandler!==null&&x.commandHandler.copiesClipboardData&&(y=x.model,x=null,E instanceof Li||(x=y.copyNodeData(b)),zt(x)&&(E.data=x)));return E},_n.Object.defineProperties(xo.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}}}),xo.prototype.updateAllRelationshipsFromData=xo.prototype.rp,xo.prototype.findLinksByExample=xo.prototype.ls,xo.prototype.findNodesByExample=xo.prototype.ms,xo.prototype.findLinkForData=xo.prototype.Kc,xo.prototype.findNodeForData=xo.prototype.ii,xo.prototype.findPartForData=xo.prototype.Lc,xo.prototype.findNodeForKey=xo.prototype.Vb,xo.prototype.removeModeledPart=xo.prototype.ip,xo.prototype.removeModeledParts=xo.prototype.Gs,xo.prototype.rebuildParts=xo.prototype.Wd;var S1=!1,E1=!1,b1=!1;xo.className="PartManager";function rs(a){xo.apply(this,arguments)}dn(rs,xo),rs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),x1(this,a.linkDataArray)},rs.prototype.addModeledParts=function(a){for(xo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)tp(a.value);Rf(this.diagram,!1)};function x1(a,y){y.forEach(function(E){w1(a,E)}),Rf(a.diagram,!1)}function w1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var E=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(E);if(b!==null){Ou(b);var x=b.copy();if(x!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,x.Tf=E,x.ub=y,E=a.diagram.model;var z=g0(E,y,!0);z!==""&&(x.fromPortId=z),z=lu(E,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Gi&&(x.fromNode=z)),z=g0(E,y,!1),z!==""&&(x.toPortId=z),z=lu(E,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Gi&&(x.toNode=z)),E=E.Ef(y),Array.isArray(E)&&E.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=x)}),a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=b}}}}rs.prototype.removeAllModeledParts=function(){var a=this.diagram.model;C1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function C1(a,y){y.forEach(function(E){a.ip(E)})}rs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},rs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},rs.prototype.setFromNodeForLink=function(a,y){var E=this.diagram.model;E.wv(a.data,E.wa(y!==null?y.data:null))},rs.prototype.setToNodeForLink=function(a,y){var E=this.diagram.model;E.Bv(a.data,E.wa(y!==null?y.data:null))},rs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},rs.prototype.findPartForKey=function(a){var y=xo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},rs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},rs.prototype.doModelChanged=function(a){var y=this;if(xo.prototype.doModelChanged.call(this,a),this.diagram){var E=this.diagram;if(a.model===E.model){var b=a.change;if(E.aa){E.aa=!1;try{var x=a.modelChange;if(x!==""){if(b===Bo){if(x==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ne=this.Vb(a.newValue);z.fromNode=ne}}else if(x==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var se=this.Vb(a.newValue);re.toNode=se}}else if(x==="linkFromPortId"){var de=this.Kc(a.object);if(de!==null){var pe=a.newValue;typeof pe=="string"&&(de.fromPortId=pe)}}else if(x==="linkToPortId"){var Se=this.Kc(a.object);if(Se!==null){var Ae=a.newValue;typeof Ae=="string"&&(Se.toPortId=Ae)}}else if(x==="nodeGroupKey"){var Re=this.Lc(a.object);if(Re!==null){var Ue=a.newValue;if(Ue!==void 0){var Xe=this.Vb(Ue);Xe instanceof Ir?Re.containingGroup=Xe:Re.containingGroup=null}else Re.containingGroup=null}}else if(x==="linkLabelKeys"){var bt=this.Kc(a.object);if(bt!==null){var ft=a.oldValue,Pt=a.newValue;Array.isArray(ft)&&ft.forEach(function(oi){0<=Pt.indexOf(oi)||(oi=y.Vb(oi),oi!==null&&(oi.labeledLink=null))}),Array.isArray(Pt)&&Pt.forEach(function(oi){oi=y.Vb(oi),oi!==null&&(oi.labeledLink=bt)})}}else if(x==="linkCategory"){var Nt=this.Kc(a.object),Dt=a.newValue;Nt!==null&&typeof Dt=="string"&&(Nt.category=Dt)}else x==="linkDataArray"&&(C1(this,a.oldValue),x1(this,a.newValue));E.isModified=!0}else if(b===na){var Yt=a.newValue;if(x==="linkDataArray"&&typeof Yt=="object"&&Yt!==null)w1(this,Yt);else if(x==="linkLabelKeys"&&eh(Yt)){var wn=this.Kc(a.object),zi=this.Vb(Yt);wn!==null&&zi!==null&&(zi.labeledLink=wn)}E.isModified=!0}else if(b===aa){var er=a.oldValue;if(x==="linkDataArray"&&typeof er=="object"&&er!==null)this.ip(er);else if(x==="linkLabelKeys"&&eh(er)){var Xi=this.Vb(er);Xi!==null&&(Xi.labeledLink=null)}E.isModified=!0}}else if(b===Bo){var ki=a.propertyName;a.object!==E.model||ki!=="linkFromKeyProperty"&&ki!=="linkToKeyProperty"&&ki!=="linkFromPortIdProperty"&&ki!=="linkToPortIdProperty"&&ki!=="linkLabelKeysProperty"&&ki!=="nodeIsGroupProperty"&&ki!=="nodeGroupKeyProperty"&&ki!=="linkCategoryProperty"||E.undoManager.isUndoingRedoing||this.Wd(),E.isModified=!0}}finally{E.aa=!0}}}}},rs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,E=new $n,b=y.linkDataArray;b.forEach(function(z){E.add(z)});var x=[];this.links.each(function(z){z.data===null||E.contains(z.data)||x.push(z.data)}),x.forEach(function(z){F1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&D1(y,z,!1)})},rs.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var b=E.model;if(a instanceof Li){var x=lu(b,y,!0);if(x=E.Vb(x),a.fromNode=x,x=lu(b,y,!1),x=E.Vb(x),a.toNode=x,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){x=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===x)return}x=new $n().addAll(y);var ne=new $n;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&ne.add(re))}),y=ne.copy(),y.hp(x),x=x.copy(),x.hp(ne),(0<y.count||0<x.count)&&(y.each(function(re){re=E.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),x.each(function(re){re=E.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof co)&&(y=b.lh(y),y=E.findPartForKey(y),y===null||y instanceof Ir)&&(a.containingGroup=y)}}},rs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var b=Cg(y,E),x=this.Lc(a);if(b!==null&&x!==null){b=b.iterator;for(var z={};b.next();){var ne=b.value;y.lb(ne)?x instanceof Ir&&y.lh(ne)===E&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=x)):(z.link=this.Kc(ne),z.link!==null&&x instanceof Gi&&(lu(y,ne,!0)===E&&(z.link.fromNode=x),lu(y,ne,!1)===E&&(z.link.toNode=x),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(re){return function(se){return se===E?(x.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}fc(y,E)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ir&&(x.containingGroup=a))}},rs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Gi){var E=y.wa(a.data);if(E!==void 0){for(var b=a.linksConnected;b.next();)hc(y,E,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&hc(y,E,b.data)),a instanceof Ir)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&hc(y,E,b)}}},rs.prototype.copyPartData=function(a,y){var E=xo.prototype.copyPartData.call(this,a,y);if(a instanceof Li)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),E=y.Kc(a))}else E!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(E.data=y)));return E},rs.prototype.insertLink=function(a,y,E,b){var x=this.diagram,z=x.model,ne=x.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",E!==null&&(b===null&&(b=E),y=b.portId,y===null&&(y="")),b=ne.archetypeLinkData,b instanceof Li){if(Ou(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=E,z.toPortId=y,x.add(z),a=ne.archetypeLabelNodeData,a instanceof Gi&&(Ou(a),a=a.copy(),a!==null&&(a.labeledLink=z,x.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&sp(z,b,z.wa(a.data),!0),lp(z,b,re,!0),E!==null&&sp(z,b,z.wa(E.data),!1),lp(z,b,y,!1),z.fi(b),a=ne.archetypeLabelNodeData,a===null||a instanceof Gi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),x.Kc(b);return null},rs.prototype.findLinkForKey=rs.prototype.findLinkForKey,rs.prototype.findPartForKey=rs.prototype.findPartForKey,rs.prototype.removeAllModeledParts=rs.prototype.removeAllModeledParts,rs.prototype.addModeledParts=rs.prototype.addModeledParts,rs.prototype.addAllModeledParts=rs.prototype.addAllModeledParts,rs.className="GraphLinksPartManager";function xu(){xo.apply(this,arguments),this.Sg=null}dn(xu,xo);function h0(a,y,E){if(y!==null&&E!==null&&E.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),x=y,z=E;if(a.diagram.isTreePathToChildren||(x=E,z=y),(b===null||!Ps(b,x,z,null,!0))&&(y=a.getLinkCategoryForData(E.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ou(b),b=b.copy(),b!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=E.data,b.fromNode=x,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=E.data,a.diagram.skipsModelSourceBindings=ne}}}xu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},xu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},xu.prototype.setFromNodeForLink=function(a,y,E){var b=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var x=this.Sg;this.Sg=a,E!==null&&b.qe(E.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=x}},xu.prototype.setToNodeForLink=function(a,y,E){var b=this.diagram.model;if(E===void 0&&(E=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var x=this.Sg;this.Sg=a,E!==null&&b.qe(E.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=x}else b.qe(a.data,b.wa(y))},xu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},xu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},xu.prototype.doModelChanged=function(a){if(xo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var E=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===Bo){if(b==="nodeParentKey"){var x=a.object,z=this.Vb(a.newValue),ne=this.ii(x);if(this.Sg!==null)z!==null&&(this.Sg.data=x,this.Sg.category=this.getLinkCategoryForData(x));else if(ne!==null){var re=ne.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:h0(this,z,ne)}}else if(b==="parentLinkCategory"){var se=this.ii(a.object),de=a.newValue;if(se!==null&&typeof de=="string"){var pe=se.kh();pe!==null&&(pe.category=de)}}y.isModified=!0}}else if(E===Bo){var Se=a.propertyName;a.object===y.model&&Se==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},xu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var E=a.diagram;if(E!==null){var b=E.model;a instanceof Gi&&(y=b.mh(y),y=E.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?E.isTreePathToChildren?b.fromNode=y:b.toNode=y:h0(this,y,a):b!==null&&Bp(E,b,!1)))}}},xu.prototype.updateDataBindings=function(a,y){xo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},xu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,E=y.wa(a);if(E!==void 0){var b=Cg(y,E),x=this.Lc(a);if(b!==null&&x!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&x instanceof Gi&&y.mh(z)===E&&h0(this,x,this.ii(z))}fc(y,E)}a=y.mh(a),a!==void 0&&x instanceof Gi&&(a=this.Vb(a),h0(this,a,x))}},xu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Gi){var E=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var x=b.layer;if(x!==null){var z=x.pc(-1,b,!1);0<=z&&this.diagram.cb(aa,"parts",x,b,null,z,null),z=b.layerChanged,z!==null&&z(b,x,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)x=a.value,x=(b?x.toNode:x.fromNode).data,y.lb(x)&&hc(y,E,x)}},xu.prototype.insertLink=function(a,y,E){y=this.diagram.model;var b=a,x=E;return this.diagram.isTreePathToChildren||(b=E,x=a),b!==null&&x!==null?(y.qe(x.data,y.wa(b.data)),x.kh()):null},xu.prototype.findLinkForKey=xu.prototype.findLinkForKey,xu.className="TreePartManager";function or(a,y){this.kl=new $n,this.il=new $n,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,ar(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new yn,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 yn,this.Lt=new Wn,this.Wg=!1,this.o=null,this.undoManager=new Lo,a!==void 0&&(pi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}or.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},or.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},or.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},or.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 E=a.length,b=0;b<E;b++){var x=a[b];y+=" "+this.wa(x)+":"+Ji(x)}}return y},or.prototype.xA=function(a){a.change!==cs&&Ct("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Sa?(P1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},or.prototype.Qv=function(a,y){var E=this,b=!1,x=new $n,z=new $n,ne=new $n,re=this.vh;a.changes.each(function(Se){Se.model===E&&(Se.modelChange==="nodeDataArray"?Se.change===na?x.add(Se.newValue):Se.change===aa&&ne.add(Se.oldValue):E.lb(Se.object)?z.add(Se.object):Se.change!==Bo||E.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(re&&re.contains(Se.object)?re.get(Se.object).each(function(Ae){E.lb(Ae)&&z.add(Ae)}):Se.object instanceof or||E.ri()&&E.Jc(Se.object)||A1(E,Se.object).each(function(Ae){z.add(Ae)})):b=!0)});var se=this.il;se.clear(),x.each(function(Se){se.add(E.wa(Se)),y||z.add(Se)});var de=this.kl;de.clear(),ne.each(function(Se){de.add(E.wa(Se)),y&&z.add(Se)}),a=E.cloneDeep(z.Fa());var pe=null;return b&&(pe===null&&(pe={}),pe.modelData=this.cloneDeep(this.modelData)),0<se.count&&(pe===null&&(pe={}),y?pe.removedNodeKeys=se.Fa():pe.insertedNodeKeys=se.Fa()),0<a.length&&(pe===null&&(pe={}),pe.modifiedNodeData=a),0<de.count&&(pe===null&&(pe={}),y?pe.insertedNodeKeys=de.Fa():pe.removedNodeKeys=de.Fa()),de.clear(),se.clear(),pe},or.prototype.cloneDeep=function(a){return ap(this,a,!0)};function ap(a,y,E,b,x,z){function ne(Se,Ae){re?(Se.__gohashid===void 0&&z.push(Se),b.set(Se,Ae)):(Se=Xr++,b.set(Se,Ae),x.set(Se,y))}if(!zt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new yn),re){var se=b.get(y);if(se)return se}else for(x||(x=new yn),se=x.iterator;se.next();){var de=se.key;if(se.value===y&&(de=b.get(de)))return de}if(Array.isArray(y)){se=[],ne(y,se);for(var pe=0;pe<y.length;pe++)se.push(ap(a,y[pe],!1,b,x,z))}else if(y instanceof rt||y instanceof en||y instanceof xn||y instanceof Fr||y instanceof $i)se=y.copy(),ne(y,se);else{if(y instanceof bo||y instanceof Ti||y instanceof pn)return y;if(y instanceof Wn)se=new Wn().addAll(ap(a,y.Fa(),!1,b,x,z)),ne(y,se);else if(y instanceof $n)se=new $n().addAll(ap(a,y.Fa(),!1,b,x,z)),ne(y,se);else if(y instanceof yn)se=new yn().addAll(ap(a,y.Fa(),!1,b,x,z)),ne(y,se);else if(y instanceof Date)se=new Date(y.getTime()),ne(y,se);else if(y instanceof RegExp)se=new RegExp(y),ne(y,se),se.lastIndex=y.lastIndex;else if(typeof y.copy=="function")se=y.copy(),ne(y,se);else for(pe in se={},ne(y,se),y)pe!=="__gohashid"&&(se[pe]=ap(a,y[pe],!1,b,x,z))}return E&&z.forEach(function(Se){delete Se.__gohashid}),se}Me=or.prototype,Me.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Me.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},Me.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,zt(y)&&(a.dm(y),a.modelData=y)}Me.Rv=function(){var a=this.modelData,y=!1,E;for(E in a)if(!N1(E,a[E])){y=!0;break}return a="",y&&(a=`,
"modelData": `+hy(this,this.modelData)),a+`,
"nodeDataArray": `+$d(this,this.nodeDataArray,!0)},Me.kv=function(a){T1(this,a),a=a.nodeDataArray,pi(a)&&(this.dm(a),this.nodeDataArray=a)};function P1(a,y){function E(x,z){if((z=z.part)&&(z=z.data,x!==z)){var ne=b.get(x);ne===null?(ne=new $n,ne.add(z),b.add(x,ne)):ne.add(z)}}var b=a.vh;b===null&&(b=new yn,y.changes.each(function(x){if(x.diagram!==null){var z=x.change;z===Bo?(x=x.object.panel)&&(z=x.data)&&E(z,x):(z===na||z===aa)&&(x=x.object,(z=x.itemArray)&&E(z,x))}}),a.vh=b)}function A1(a,y){for(var E=new $n,b=0;b<a.nodeDataArray.length;b++){var x=a.nodeDataArray[b];f0(a,y,x,x,E)}return E}function f0(a,y,E,b,x){if(Array.isArray(E))for(var z=0;z<E.length;z++){var ne=E[z];if(ne===y)return x.add(b),!0;if(f0(a,y,ne,b,x))return!0}else if(zt(E)&&Object.getPrototypeOf(E)===Object.prototype)for(z in E){if(ne=E[z],ne===y)return x.add(b),!0;if(f0(a,y,ne,b,x))return!0}return!1}Me.Pv=function(a,y){var E=this,b=!1,x=new $n,z=new $n,ne=new $n,re=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="nodeDataArray"?pe.change===na?x.add(pe.newValue):pe.change===aa&&ne.add(pe.oldValue):E.lb(pe.object)?z.add(pe.object):pe.change!==Bo||E.modelData!==pe.object&&pe.propertyName!=="modelData"?pe.object!==null&&(re&&re.contains(pe.object)?re.get(pe.object).each(function(Se){E.lb(Se)&&z.add(Se)}):pe.object instanceof or||E.ri()&&E.Jc(pe.object)||A1(E,pe.object).each(function(Se){z.add(Se)})):b=!0)});var se=this.il;se.clear(),x.each(function(pe){se.add(E.wa(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(E.wa(pe)),y&&z.add(pe)}),a="",b&&(a+=`,
"modelData": `+hy(this,this.modelData)),0<se.count&&(a+=(y?this.Yv:this.Wv)+$d(this,se.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(),se.clear(),a},Me.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)&&Ct("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,E=a.modifiedNodeData,b=new yn;if(Array.isArray(E))for(var x=0;x<E.length;x++){var z=E[x],ne=this.wa(z);ne!=null&&b.set(ne,z)}if(Array.isArray(y))for(x=y.length,z=0;z<x;z++){ne=y[z];var re=this.hc(ne);re===null&&(re=(re=b.get(ne))?re:this.copyNodeData({}),this.km(re,ne),this.xf(re))}if(Array.isArray(E)){for(y=E.length,b=0;b<y;b++)if(x=E[b],z=this.wa(x),z=this.hc(z),z!==null){for(var se in x)se==="__gohashid"||se===this.nodeKeyProperty||this.Wj()&&se===this.nodeIsGroupProperty||this.setDataProperty(z,se,x[se]);this.lm(x,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(E=a.length,se=0;se<E;se++)y=this.hc(a[se]),y!==null&&this.cm(y)},Me.$x=function(a,y){a.change!==cs&&Ct("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var E=a.object;return a.isTransactionFinished&&E instanceof Sa?(y===void 0&&(y=Tg(this,this)),P1(this,E),a=this.Pv(E,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Me.yA=function(a,y){return this.$x(a,y)},Me.np=function(a){return a===void 0&&(a=Tg(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Me.toJSON=function(a){return this.np(a)},Me.Zw=function(a){var y=null;if(typeof a=="string")try{y=mn.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Ct("Unable to modify a Model from: "+a);var E=y.incremental;typeof E!="number"&&Ct("Unable to apply non-incremental changes to Model: "+a),E!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Me.Ky=function(a){return this.Zw(a)},or.constructGraphLinksModel=function(){return new or},Me=or.prototype,Me.dm=function(a){if(pi(a))for(var y=a.length,E=0;E<y;E++){var b=a[E];if(zt(b)){var x=E;b=this.dm(b),Array.isArray(a)?a[x]=b:Ct("Cannot replace an object in an HTMLCollection or NodeList at "+x)}}else if(zt(a)){for(y in a)if(E=a[y],zt(E)&&(E=this.dm(E),a[y]=E,y==="points"&&Array.isArray(E))){for(x=E.length%2===0,b=0;b<E.length;b++)if(typeof E[b]!="number"){x=!1;break}if(x){for(x=new Wn,b=0;b<E.length/2;b++)x.add(new rt(E[2*b],E[2*b+1]));x.freeze(),a[y]=x}}return zE(a)}return a},Me.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()):pi(a)?$d(this,a):zt(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function $d(a,y,E){E===void 0&&(E=!1);var b=y.length;if(0>=b)return"[]";var x=new yr;x.add("["),E&&1<b&&x.add(`
`);for(var z=0;z<b;z++){var ne=y[z];ne!==void 0&&(0<z&&(x.add(","),E&&x.add(`
`)),x.add(a.sm(ne)))}return E&&1<b&&x.add(`
`),x.add("]"),x.toString()}function N1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ll(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var E=y;if(E instanceof rt)y={class:"go.Point",x:ll(E.x),y:ll(E.y)};else if(E instanceof en)y={class:"go.Size",width:ll(E.width),height:ll(E.height)};else if(E instanceof xn)y={class:"go.Rect",x:ll(E.x),y:ll(E.y),width:ll(E.width),height:ll(E.height)};else if(E instanceof Fr)y={class:"go.Margin",top:ll(E.top),right:ll(E.right),bottom:ll(E.bottom),left:ll(E.left)};else if(E instanceof $i)E.sb()?y={class:"go.Spot",x:ll(E.x),y:ll(E.y),offsetX:ll(E.offsetX),offsetY:ll(E.offsetY)}:y={class:"go.Spot",enum:E.toString()};else if(E instanceof bo){if(y={class:"go.Brush",type:E.type.name},E.type===Ed?y.color=E.color:(E.type===td||E.type===Eu)&&(y.start=E.start,y.end=E.end,E.type===Eu&&(E.startRadius!==0&&(y.startRadius=ll(E.startRadius)),isNaN(E.endRadius)||(y.endRadius=ll(E.endRadius)))),E.colorStops!==null){var b={};for(E=E.colorStops.iterator;E.next();)b[E.key]=E.value;y.colorStops=b}}else E instanceof Ti?(y={class:"go.Geometry",type:E.type.name},E.startX!==0&&(y.startX=ll(E.startX)),E.startY!==0&&(y.startY=ll(E.startY)),E.endX!==0&&(y.endX=ll(E.endX)),E.endY!==0&&(y.endY=ll(E.endY)),E.spot1.D(Kr)||(y.spot1=E.spot1),E.spot2.D(vo)||(y.spot2=E.spot2),E.type===Ti.o&&(y.path=Ti.ia(E))):E instanceof pn&&(y={class:"go.EnumValue",classType:Tg(a,E.classType),name:E.name});b="{",E=!0;for(var x in y){var z=Ta(y,x);if(!N1(x,z))if(E?E=!1:b+=",",b+=a.quote(x)+":",x==="points"&&z instanceof Wn){var ne="[";for(z=z.iterator;z.next();){var re=z.value;1<ne.length&&(ne+=","),ne+=a.sm(re.x),ne+=",",ne+=a.sm(re.y)}ne+="]",b+=ne}else b+=a.sm(z)}return b+"}"}function ul(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function zE(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 E=a;if(y==="Point")E=new rt(ul(a.x),ul(a.y));else if(y==="Size")E=new en(ul(a.width),ul(a.height));else if(y==="Rect")E=new xn(ul(a.x),ul(a.y),ul(a.width),ul(a.height));else if(y==="Margin")E=new Fr(ul(a.top),ul(a.right),ul(a.bottom),ul(a.left));else if(y==="Spot")typeof a.enum=="string"?E=Zo(a.enum):E=new $i(ul(a.x),ul(a.y),ul(a.offsetX),ul(a.offsetY));else if(y==="Brush"){if(E=new bo,E.type=ur(bo,a.type),typeof a.color=="string"&&(E.color=a.color),a.start instanceof $i&&(E.start=a.start),a.end instanceof $i&&(E.end=a.end),typeof a.startRadius=="number"&&(E.startRadius=ul(a.startRadius)),typeof a.endRadius=="number"&&(E.endRadius=ul(a.endRadius)),a=a.colorStops,zt(a))for(var b in a)E.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(E=null,typeof a.path=="string"?E=Ti.parse(a.path):E=new Ti,E.type=ur(Ti,a.type),typeof a.startX=="number"&&(E.startX=ul(a.startX)),typeof a.startY=="number"&&(E.startY=ul(a.startY)),typeof a.endX=="number"&&(E.endX=ul(a.endX)),typeof a.endY=="number"&&(E.endY=ul(a.endY)),a.spot1 instanceof $i&&(E.spot1=a.spot1),a.spot2 instanceof $i&&(E.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=py(b),typeof b=="function"&&(E=ur(b,a.name)));return E}Me.Pe=function(a){return this.Lt.add(a),this},Me.ik=function(a){this.Lt.remove(a)},Me.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,E=y.length,b=0;b<E;b++)y.M(b)(a)},Me.cb=function(a,y,E,b,x,z,ne){_a(this,"",a,y,E,b,x,z,ne)},Me.g=function(a,y,E,b,x){_a(this,"",Bo,a,this,y,E,b,x)},Me.Fs=function(a,y,E,b,x,z){_a(this,"",Bo,y,a,E,b,x,z)};function _a(a,y,E,b,x,z,ne,re,se){re===void 0&&(re=null),se===void 0&&(se=null);var de=new Ko;de.model=a,de.change=E,de.modelChange=y,de.propertyName=b,de.object=x,de.oldValue=z,de.oldParam=re,de.newValue=ne,de.newParam=se,a.ds(de)}or.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Bo){var E=a.object,b=a.propertyName,x=a.I(y);b===this.nodeKeyProperty&&this.lb(E)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),x!==void 0&&this.kb.add(x,E)),qo(E,b,x)}else a.change===na?(E=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,zt(a)&&typeof E=="number"&&(b=this.wa(a),y?(this.Tc[E]===a&&je(this.Tc,E),b!==void 0&&this.kb.remove(b)):(this.Tc[E]!==a&&Cn(this.Tc,E,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!pi(b)&&a.propertyName&&(b=Ta(a.object,a.propertyName)),pi(b)&&typeof E=="number"&&(a=a.newValue,y?je(b,E):Cn(b,E,a))):Ct("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===aa?(E=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,zt(a)&&typeof E=="number"&&(b=this.wa(a),y?(this.Tc[E]!==a&&Cn(this.Tc,E,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[E]===a&&je(this.Tc,E),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!pi(b)&&a.propertyName&&(b=Ta(a.object,a.propertyName)),pi(b)&&typeof E=="number"&&(a=a.oldValue,y?Cn(b,E,a):je(b,E))):Ct("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==cs&&Ct("unknown ChangedEvent: "+a.toString())},or.prototype.Ea=function(a){return this.undoManager.Ea(a)},or.prototype.eb=function(a){return this.undoManager.eb(a)},or.prototype.Kf=function(){return this.undoManager.Kf()},or.prototype.commit=function(a,y){y===void 0&&(y="");var E=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=E}},Me=or.prototype,Me.La=function(a,y){y===void 0&&(y=""),_a(this,"SourceChanged",cs,y,a,null,null)},Me.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Ta(a,y),y!==void 0)){if(eh(y))return y;Ct("Key value for node data "+a+" is not a number or a string: "+y)}}},Me.km=function(a,y){if(a!==null){var E=this.Th;if(E!=="")if(this.lb(a)){var b=Ta(a,E);b!==y&&this.hc(y)===null&&(qo(a,E,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),_a(this,"nodeKey",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E),this.jp(b,y))}else qo(a,E,y)}};function eh(a){return typeof a=="number"||typeof a=="string"}Me.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Me.hc=function(a){return a===null&&Ct("Model.findNodeDataForKey:key must not be null"),a!==void 0&&eh(a)?this.kb.I(a):null},Me.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var E=this.wa(a);if(E===void 0||this.kb.contains(E)){var b=this.bl;if(b!==null&&(E=b(this,a),E!=null&&!this.kb.contains(E))){qo(a,y,E);return}if(typeof E=="string"){for(b=2;this.kb.contains(E+b);)b++;qo(a,y,E+b)}else if(E===void 0||typeof E=="number"){for(E=-this.kb.count-1;this.kb.contains(E);)E--;qo(a,y,E)}}}}},Me.xf=function(a){a!==null&&(Nr(a),this.lb(a)||k1(this,a,!0))};function k1(a,y,E){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Ct("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,E&&(b=a.Tc.length,Cn(a.Tc,b,y)),_a(a,"nodeDataArray",na,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Me.Fy=function(a){if(pi(a))for(var y=a.length,E=0;E<y;E++)this.xf(a[E]);else for(a=a.iterator;a.next();)this.xf(a.value)},Me.cm=function(a){a!==null&&L1(this,a,!0)};function L1(a,y,E){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,E){e:if(E=a.Tc,Array.isArray(E))b=E.indexOf(y);else{b=E.length;for(var x=0;x<b;x++)if(E[x]===y){b=x;break e}b=-1}if(0>b)return;je(a.Tc,b)}_a(a,"nodeDataArray",aa,"nodeDataArray",a,y,null,b,null),a.qp(y)}Me.nA=function(a){if(pi(a))for(var y=a.length,E=0;E<y;E++)this.cm(a[E]);else for(a=a.iterator;a.next();)this.cm(a.value)},Me.$z=function(a){if(a!==this.nodeDataArray&&pi(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var E=this.il;E.clear();for(var b=a.length,x=0;x<b;x++){var z=a[x],ne=this.wa(z);if(ne!==void 0){E.add(ne);var re=this.hc(ne);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ne),this.xf(z)))}else ne=this.cloneDeep(z),this.xf(ne),E.add(this.wa(ne))}for(a=y.iterator;a.next();)b=a.value,E.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),E.clear()}},Me.jp=function(a,y){y!==void 0&&(a=Cg(this,a),a instanceof $n&&this.Vf.add(y,a))},Me.Lv=function(){},Me.fm=function(){},Me.em=function(){},Me.qp=function(){};function hc(a,y,E){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new $n,a.Vf.add(y,b)),b.add(E)}}function fc(a,y,E){if(y!==void 0){var b=a.Vf.I(y);b instanceof $n&&(E==null?a.Vf.remove(y):(b.remove(E),b.count===0&&a.Vf.remove(y)))}}function Cg(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof $n?a:null)}Me.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},or.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):p0(this,a,!0),zt(a)&&ar(a),a};function p0(a,y,E){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(E=0;E<y.length;E++){var x=p0(a,y[E],a.copiesArrayObjects);b.push(x)}return ar(b),b}if(E&&zt(y)){E=(E=y.constructor)?new E:{},x=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")E.__gohashid=void 0;else if(b===x)E[x]=void 0;else{var z=Ta(y,b),ne=Tg(a,z);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||z instanceof or||z instanceof Lo||z instanceof Sa||z instanceof Ko||(z=p0(a,z,!1)),qo(E,b,z)}return ar(E),E}return y instanceof rt||y instanceof en||y instanceof xn||y instanceof $i||y instanceof Fr?y.copy():y}or.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}}else!I1&&a instanceof qt&&(I1=!0,gi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),gi(" Is that really your intent?"));var b=Ta(a,y);b!==E&&(qo(a,y,E),this.Fs(a,y,b,E))},Me=or.prototype,Me.set=function(a,y,E){this.setDataProperty(a,y,E)},Me.Do=function(a,y){if(y){var E=this.lb(a),b;for(b in y)b==="__gohashid"||E&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Me.Ay=function(a,y){this.ts(a,-1,y)},Me.ts=function(a,y,E){0>y&&(y=a.length),Cn(a,y,E),_a(this,"",na,"",a,null,E,null,y)},Me.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ct("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var E=a[y];je(a,y),_a(this,"",aa,"",a,E,null,y,null)},Me.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Ta(a,y),y===void 0))return"";if(typeof y=="string")return y;Ct("getCategoryForNodeData found a non-string category for "+a+": "+y)},Me.jm=function(a,y){if(a!==null){var E=this.lj;if(E!=="")if(this.lb(a)){var b=Ta(a,E);b===void 0&&(b=""),b!==y&&(qo(a,E,y),_a(this,"nodeCategory",Bo,E,a,b,y))}else qo(a,E,y)}},Me.lm=function(a,y){this.jm(y,this.Ro(a))},Me.Tl=function(){return!1},Me.Wj=function(){return!1},Me.ri=function(){return!1},Me.xs=function(){return!1},Me.Xj=function(){return!1};function fy(){return new or}function Tg(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 Tg(a,y.constructor);return typeof y}function py(a){return qu[a]?qu[a]:mn.go!==void 0&&mn.go[a]?mn.go[a]:null}function Ta(a,y){if(!a||!y)return null;try{if(typeof y=="function")var E=y(a);else typeof a.getAttribute=="function"?(E=a.getAttribute(y),E===null&&(E=void 0)):E=a[y]}catch(b){}return E}function qo(a,y,E){if(a&&y)try{typeof y=="function"?y(a,E):typeof a.setAttribute=="function"?a.setAttribute(y,E):a[y]=E}catch(b){}}_n.Object.defineProperties(or.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===""&&Ct("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ct("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 E=a.length,b=0;b<E;b++){var x=a[b];zt(x)||Ct("Model.nodeDataArray must only contain Objects, not: "+x),Nr(x)}for(this.Tc=a,b=new Wn,x=0;x<E;x++){var z=a[x],ne=this.wa(z);ne===void 0||this.kb.I(ne)!==null?b.add(z):this.kb.add(ne,z)}for(b=b.iterator;b.next();)x=b.value,this.$u(x),z=this.wa(x),z!==void 0&&this.kb.add(z,x);for(_a(this,"nodeDataArray",Bo,"nodeDataArray",this,y,a),y=0;y<E;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),or.prototype.setCategoryForNodeData=or.prototype.jm,or.prototype.getCategoryForNodeData=or.prototype.Ro,or.prototype.removeArrayItem=or.prototype.ov,or.prototype.insertArrayItem=or.prototype.ts,or.prototype.addArrayItem=or.prototype.Ay,or.prototype.assignAllDataProperties=or.prototype.Do,or.prototype.set=or.prototype.set,or.prototype.clearUnresolvedReferences=or.prototype.Qy,or.prototype.mergeNodeDataArray=or.prototype.$z,or.prototype.removeNodeDataCollection=or.prototype.nA,or.prototype.removeNodeData=or.prototype.cm,or.prototype.addNodeDataCollection=or.prototype.Fy,or.prototype.addNodeData=or.prototype.xf,or.prototype.makeNodeDataKeyUnique=or.prototype.$u,or.prototype.findNodeDataForKey=or.prototype.hc,or.prototype.containsNodeData=or.prototype.lb,or.prototype.setKeyForNodeData=or.prototype.km,or.prototype.getKeyForNodeData=or.prototype.wa,or.prototype.updateTargetBindings=or.prototype.La,or.prototype.commit=or.prototype.commit,or.prototype.rollbackTransaction=or.prototype.Kf,or.prototype.commitTransaction=or.prototype.eb,or.prototype.startTransaction=or.prototype.Ea,or.prototype.raiseDataChanged=or.prototype.Fs,or.prototype.raiseChanged=or.prototype.g,or.prototype.raiseChangedEvent=or.prototype.cb,or.prototype.removeChangedListener=or.prototype.ik,or.prototype.addChangedListener=or.prototype.Pe,or.prototype.writeJsonValue=or.prototype.sm,or.prototype.replaceJsonObjects=or.prototype.dm,or.prototype.applyIncrementalJSON=or.prototype.Ky,or.prototype.applyIncrementalJson=or.prototype.Zw,or.prototype.toJSON=or.prototype.toJSON,or.prototype.toJson=or.prototype.np,or.prototype.toIncrementalJSON=or.prototype.yA,or.prototype.toIncrementalJson=or.prototype.$x,or.prototype.toIncrementalData=or.prototype.xA,or.prototype.clear=or.prototype.clear;var I1=!1,qu={};or.className="Model",or.fromJSON=or.fromJson=function(a,y){y===void 0&&(y=null);var E=null;if(typeof a=="string")try{E=mn.JSON.parse(a)}catch(z){}else typeof a=="object"?E=a:Ct("Unable to construct a Model from: "+a);if(y===null){a=null;var b=E.class;if(typeof b=="string")try{var x=null;b.indexOf("go.")===0?(b=b.substr(3),x=py(b)):(x=py(b),x===null&&(x=mn[b])),typeof x=="function"&&(a=new x)}catch(z){}a===null||a instanceof or?y=a:Ct("Unable to construct a Model of declared class: "+E.class)}return y===null&&(y=or.constructGraphLinksModel()),y.gp(E),y.kv(E),y},or.safePropertyValue=Ta,or.safePropertySet=qo,qu.Brush=bo,qu.ChangedEvent=Ko,qu.Geometry=Ti,qu.Margin=Fr,qu.Panel=wi,qu.Point=rt,qu.Rect=xn,qu.Size=en,qu.Spot=$i,qu.Transaction=Sa,qu.UndoManager=Lo;function Na(a,y,E,b){ar(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),E===void 0&&(E=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=E,b===void 0?(this.el=O1,this.wk=null):(this.el=Pg,this.wk=b),this.st=new $n}Na.prototype.copy=function(){var a=new Na;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},Me=Na.prototype,Me.qb=function(a){a.classType===Na&&(this.mode=a)},Me.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.Kx=function(a){return a===void 0&&(a=null),this.mode=Pg,this.backConverter=a,this},Me.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Me.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function M1(a,y,E){return a=a.sourceName,a===null||a===""?y:a==="/"?E.part:a==="."?E:a===".."?E.panel:y.fb(a)}Me.Mv=function(a,y,E){var b=this.sl;if(E===void 0||b===""||b===E){E=this.xl;var x=this.Im;if(x===null&&E==="")gi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Ta(y,b)),z!==void 0)if(x===null)E!==""&&qo(a,E,z);else try{if(E!==""){var ne=x(z,a);qo(a,E,ne)}else x(z,a)}catch(re){}}}},Me.sp=function(a,y,E,b){if(this.el===Pg){var x=this.xl;if(E===void 0||x===E){E=this.sl;var z=this.wk,ne=a;if(x!==""&&(ne=Ta(a,x)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,se=re!==null?re.model:null;if(z===null){if(E!=="")se!==null?se.setDataProperty(y,E,ne):qo(y,E,ne);else if(se!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var de=b.itemIndex,pe=b.panel.itemArray;se.ov(pe,de),se.ts(pe,de,ne)}}else try{if(E!==""){var Se=z(ne,y,se);se!==null?se.setDataProperty(y,E,Se):qo(y,E,Se)}else{var Ae=z(ne,y,se);if(Ae!==void 0&&se!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Re=b.itemIndex,Ue=b.panel.itemArray;se.ov(Ue,Re),se.ts(Ue,Re,Ae)}}}catch(Xe){}}finally{this.st.remove(a)}}}},_n.Object.defineProperties(Na.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&$t(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&$t(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&$t(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&$t(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&$t(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&$t(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&$t(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&$t(this),this.el=a}}}),Na.prototype.updateSource=Na.prototype.sp,Na.prototype.updateTarget=Na.prototype.Mv,Na.prototype.ofModel=Na.prototype.dA,Na.prototype.ofObject=Na.prototype.cp,Na.prototype.makeTwoWay=Na.prototype.Kx;var jE="Binding",O1=new pn(Na,"OneWay",1),Pg=new pn(Na,"TwoWay",2);Na.className="Binding",Na.parseEnum=function(a,y){return function(E){return E=ur(a,E),E===null?y:E}},Na.toString=Ji,Na.OneWay=O1,Na.TwoWay=Pg;function to(a,y,E){or.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new $n,this.wb=new yn,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&&(pi(a)?this.nodeDataArray=a:E=a),E&&(Object.assign(this,E),a=E.Changed)&&(delete this.Changed,this.Pe(a))}dn(to,or),to.constructGraphLinksModel=or.constructGraphLinksModel,to.prototype.cloneProtected=function(a){or.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},Me=to.prototype,Me.clear=function(){or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Me.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 E=a.length,b;for(b=0;b<E;b++){var x=a[b];y+=" "+this.wa(x)+":"+Ji(x)}for(y+=`
link data:`,a=this.linkDataArray,E=a.length,b=0;b<E;b++)x=a[b],y+=" "+lu(this,x,!0)+"-->"+lu(this,x,!1)}return y},Me.Qv=function(a,y){this.linkKeyProperty===""&&Ct("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var E=or.prototype.Qv.call(this,a,y),b=this,x=new $n,z=new $n,ne=new $n,re=this.vh;a.changes.each(function(pe){pe.model===b&&(pe.modelChange==="linkDataArray"?pe.change===na?x.add(pe.newValue):pe.change===aa&&ne.add(pe.oldValue):b.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&re&&re.contains(pe.object)?re.get(pe.object).each(function(Se){b.Jc(Se)&&z.add(Se)}):pe.object instanceof or||b.lb(pe.object)||R1(b,pe.object).each(function(Se){z.add(Se)})))});var se=this.il;se.clear(),x.each(function(pe){se.add(b.Ac(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(b.Ac(pe)),y&&z.add(pe)}),a=b.cloneDeep(z.Fa()),0<se.count&&(E===null&&(E={}),y?E.removedLinkKeys=se.Fa():E.insertedLinkKeys=se.Fa()),0<a.length&&(E===null&&(E={}),E.modifiedLinkData=a),0<de.count&&(E===null&&(E={}),y?E.insertedLinkKeys=de.Fa():E.removedLinkKeys=de.Fa()),de.clear(),se.clear(),E},Me.rm=function(){var a=or.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},Me.gp=function(a){or.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)},Me.Rv=function(){var a=or.prototype.Rv.call(this),y=`,
"linkDataArray": `+$d(this,this.linkDataArray,!0);return a+y},Me.kv=function(a){or.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function R1(a,y){for(var E=new $n,b=0;b<a.linkDataArray.length;b++){var x=a.linkDataArray[b];f0(a,y,x,x,E)}return E}Me.Pv=function(a,y){this.linkKeyProperty===""&&Ct("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var E=or.prototype.Pv.call(this,a,y),b=this,x=new $n,z=new $n,ne=new $n,re=this.vh;a.changes.each(function(pe){pe.model===b&&(pe.modelChange==="linkDataArray"?pe.change===na?x.add(pe.newValue):pe.change===aa&&ne.add(pe.oldValue):b.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&re&&re.contains(pe.object)?re.get(pe.object).each(function(Se){b.Jc(Se)&&z.add(Se)}):pe.object instanceof or||b.lb(pe.object)||R1(b,pe.object).each(function(Se){z.add(Se)})))});var se=this.il;se.clear(),x.each(function(pe){se.add(b.Ac(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(b.Ac(pe)),y&&z.add(pe)}),a=E,0<se.count&&(a+=(y?this.Xv:this.Vv)+$d(this,se.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(),se.clear(),a},Me.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)&&Ct("applyIncrementalJson cannot change Model properties"),or.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var E=y.length,b=0;b<E;b++){var x=y[b],z=this.jh(x);z===null&&(z=this.Jo({}),this.Ks(z,x),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(E=y.length,b=0;b<E;b++)if(x=y[b],z=this.Ac(x),z=this.jh(z),z!==null){for(var ne in x)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(z,ne,x[ne]);B1(this,x,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)E=this.jh(a[y]),E!==null&&this.bm(E)},to.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Bo){var E=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(E)){var x=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),x!==void 0&&this.wb.add(x,E),qo(E,b,x);return}}else if(a.change===na){if(E=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,zt(a)&&typeof E=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof E=="number"&&(y?(E=b.indexOf(a.newValue),0<=E&&b.splice(E,1)):0>b.indexOf(a.newValue)&&b.splice(E,0,a.newValue));return}}else if(a.change===aa){if(E=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,zt(a)&&typeof E=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[E]!==a&&this.md.splice(E,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[E]===a&&this.md.splice(E,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof E=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(E,0,a.newValue):(E=b.indexOf(a.newValue),0<=E&&b.splice(E,1)));return}}or.prototype.changeState.call(this,a,y)}},Me=to.prototype,Me.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var E=this.hc(a);E===null&&(E=this.copyNodeData(y),qo(E,this.nodeKeyProperty,a),this.xf(E))}return a}},Me.yx=function(a){return lu(this,a,!0)},Me.wv=function(a,y){sp(this,a,y,!0)},Me.Bx=function(a){return lu(this,a,!1)},Me.Bv=function(a,y){sp(this,a,y,!1)};function lu(a,y,E){if(y!==null&&(a=E?a.lf:a.mf,a!==""&&(a=Ta(y,a),a!==void 0))){if(eh(a))return a;Ct((E?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function sp(a,y,E,b){if(E===null&&(E=void 0),y!==null){var x=b?a.lf:a.mf;if(x!=="")if(E=a.Vl(E),a.Jc(y)){var z=Ta(y,x);z!==E&&(fc(a,z,y),qo(y,x,E),a.hc(E)===null&&hc(a,E,y),_a(a,b?"linkFromKey":"linkToKey",Bo,x,y,z,E),typeof x=="string"&&a.La(y,x))}else qo(y,x,E)}}Me.zx=function(a){return g0(this,a,!0)},Me.xv=function(a,y){lp(this,a,y,!0)},Me.Cx=function(a){return g0(this,a,!1)},Me.Cv=function(a,y){lp(this,a,y,!1)};function g0(a,y,E){return y===null||(a=E?a.ej:a.fj,a==="")?"":(y=Ta(y,a),y===void 0?"":y)}function lp(a,y,E,b){if(y!==null){var x=b?a.ej:a.fj;if(x!=="")if(a.Jc(y)){var z=Ta(y,x);z===void 0&&(z=""),z!==E&&(qo(y,x,E),_a(a,b?"linkFromPortId":"linkToPortId",Bo,x,y,z,E),typeof x=="string"&&a.La(y,x))}else qo(y,x,E)}}Me.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=Ta(a,y),a===void 0?m0:a)},Me.Ls=function(a,y){if(a!==null){var E=this.je;if(E!=="")if(this.Jc(a)){var b=Ta(a,E);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var x=b.length,z=0;z<x;z++)fc(this,b[z],a);for(qo(a,E,y),x=y.length,z=0;z<x;z++){var ne=y[z];this.hc(ne)===null&&hc(this,ne,a)}_a(this,"linkLabelKeys",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E)}}else qo(a,E,y)}},Me.Bu=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var b=Ta(a,E);if(b===void 0)E=[],E.push(y),this.Ls(a,E);else if(Array.isArray(b)){var x=b.indexOf(y);0<=x||(x=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&hc(this,y,a),_a(this,"linkLabelKeys",na,E,a,null,y,null,x)))}else Ct(E+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Me.Qx=function(a,y){if(y!=null&&a!==null){var E=this.je;if(E!==""){var b=Ta(a,E);if(Array.isArray(b)){var x=b.indexOf(y);0>x||(b.splice(x,1),this.Jc(a)&&(fc(this,y,a),_a(this,"linkLabelKeys",aa,E,a,y,null,x,null)))}else b!==void 0&&Ct(E+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Me.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Ta(a,y),y!==void 0)){if(eh(y))return y;Ct("Key value for link data "+a+" is not a number or a string: "+y)}}},Me.Ks=function(a,y){if(a!==null){var E=this.Jh;if(E!=="")if(this.Jc(a)){var b=Ta(a,E);b!==y&&this.jh(y)===null&&(qo(a,E,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),_a(this,"linkKey",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E))}else qo(a,E,y)}},Me.jh=function(a){return a===null&&Ct("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&eh(a)?this.wb.I(a):null},Me.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var E=this.Ac(a);if(E===void 0||this.wb.contains(E)){var b=this.cl;if(b!==null&&(E=b(this,a),E!=null&&!this.wb.contains(E))){qo(a,y,E);return}if(typeof E=="string"){for(b=2;this.wb.contains(E+b);)b++;qo(a,y,E+b)}else if(E===void 0||typeof E=="number"){for(E=-this.wb.count-1;this.wb.contains(E);)E--;qo(a,y,E)}}}}},Me.Jc=function(a){return a===null?!1:this.$f.contains(a)},Me.fi=function(a){a!==null&&(Nr(a),this.Jc(a)||D1(this,a,!0))};function D1(a,y,E){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Ct("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,E&&(b=a.md.length,a.md.splice(b,0,y)),_a(a,"linkDataArray",na,"linkDataArray",a,null,y,null,b),gy(a,y)}Me.Ey=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.fi(a[E]);else for(a=a.iterator;a.next();)this.fi(a.value)},Me.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,E){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,E){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(_a(a,"linkDataArray",aa,"linkDataArray",a,y,null,b,null),E=lu(a,y,!0),fc(a,E,y),E=lu(a,y,!1),fc(a,E,y),b=a.Ef(y),Array.isArray(b))for(var x=b.length,z=0;z<x;z++)E=b[z],fc(a,E,y)}Me.lA=function(a){if(Array.isArray(a))for(var y=a.length,E=0;E<y;E++)this.bm(a[E]);else for(a=a.iterator;a.next();)this.bm(a.value)},Me.Zz=function(a){if(this.linkKeyProperty===""&&Ct("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&pi(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var E=this.il;E.clear();for(var b=a.length,x=0;x<b;x++){var z=a[x],ne=this.Ac(z);if(ne!==void 0){E.add(ne);var re=this.jh(ne);re!==z&&(re!==null?(this.Do(re,z),B1(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ne),this.fi(z)))}else ne=this.cloneDeep(z),this.fi(ne),E.add(this.Ac(ne))}for(a=y.iterator;a.next();)b=a.value,E.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),E.clear()}};function gy(a,y){var E=lu(a,y,!0);E=a.Vl(E),a.hc(E)===null&&hc(a,E,y),E=lu(a,y,!1),E=a.Vl(E),a.hc(E)===null&&hc(a,E,y);var b=a.Ef(y);if(Array.isArray(b))for(var x=b.length,z=0;z<x;z++)E=b[z],a.hc(E)===null&&hc(a,E,y)}Me.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):p0(this,a,!0),zt(a)&&(ar(a),this.lf!==""&&qo(a,this.lf,void 0),this.mf!==""&&qo(a,this.mf,void 0),this.je!==""&&qo(a,this.je,[])),a},Me.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Ta(a,y)},Me.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Ta(a,y),y!==void 0)){if(eh(y))return y;Ct("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Me.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Je;if(E!=="")if(this.lb(a)){var b=Ta(a,E);b!==y&&(fc(this,b,a),qo(a,E,y),this.hc(y)===null&&hc(this,y,a),_a(this,"nodeGroupKey",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E))}else qo(a,E,y)}},to.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Ta(a,this.Je)===void 0||qo(a,this.Je,void 0),a)},to.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeGroupKeyProperty){this.mp(a,E);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){sp(this,a,E,!0);return}if(y===this.linkToKeyProperty){sp(this,a,E,!1);return}if(y===this.linkFromPortIdProperty){lp(this,a,E,!0);return}if(y===this.linkToPortIdProperty){lp(this,a,E,!1);return}if(y===this.linkKeyProperty){this.Ks(a,E);return}if(y===this.linkCategoryProperty){this.lp(a,E);return}if(y===this.linkLabelKeysProperty){this.Ls(a,E);return}}var b=Ta(a,y);b!==E&&(qo(a,y,E),this.Fs(a,y,b,E))},Me=to.prototype,Me.Do=function(a,y){if(y){var E=this.lb(a),b=this.Jc(a),x;for(x in y)x==="__gohashid"||E&&x===this.nodeKeyProperty||E&&x===this.nodeIsGroupProperty&&Ta(a,x)===y[x]||b&&x===this.linkKeyProperty||this.setDataProperty(a,x,y[x])}},Me.jp=function(a,y){or.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y);for(E=this.$f.iterator;E.next();){var b=E.value,x=a,z=y;if(lu(this,b,!0)===x){var ne=this.lf;qo(b,ne,z),_a(this,"linkFromKey",Bo,ne,b,x,z),typeof ne=="string"&&this.La(b,ne)}if(lu(this,b,!1)===x&&(ne=this.mf,qo(b,ne,z),_a(this,"linkToKey",Bo,ne,b,x,z),typeof ne=="string"&&this.La(b,ne)),ne=this.Ef(b),Array.isArray(ne))for(var re=ne.length,se=this.je,de=0;de<re;de++)ne[de]===x&&(ne[de]=z,_a(this,"linkLabelKeys",na,se,b,x,z,de,de))}},Me.qv=function(a,y,E){if(this.lh(a)===y){var b=this.Je;qo(a,b,E),_a(this,"nodeGroupKey",Bo,b,a,y,E),typeof b=="string"&&this.La(a,b)}},Me.Lv=function(){or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,E=0;E<y;E++)gy(this,a[E])},Me.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=Cg(this,a);if(y!==null){var E=Pi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var x=this.Je;_a(this,"nodeGroupKey",Bo,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)}}else if(lu(this,b,!0)===a&&(x=this.lf,_a(this,"linkFromKey",Bo,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)),lu(this,b,!1)===a&&(x=this.mf,_a(this,"linkToKey",Bo,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)),x=this.Ef(b),Array.isArray(x))for(var z=x.length,ne=this.je,re=0;re<z;re++)x[re]===a&&(_a(this,"linkLabelKeys",na,ne,b,a,a,re,re),E.push(b))}for(y=0;y<E.length;y++)fc(this,a,E[y]);Ai(E)}},Me.em=function(a){or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&hc(this,y,a)},Me.qp=function(a){or.prototype.qp.call(this,a);var y=this.lh(a);fc(this,y,a)},Me.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Ta(a,y),y===void 0))return"";if(typeof y=="string")return y;Ct("getCategoryForLinkData found a non-string category for "+a+": "+y)},to.prototype.getLinkCategoryForData=function(a){return this.ps(a)},to.prototype.lp=function(a,y){if(a!==null){var E=this.dj;if(E!=="")if(this.Jc(a)){var b=Ta(a,E);b===void 0&&(b=""),b!==y&&(qo(a,E,y),_a(this,"linkCategory",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E))}else qo(a,E,y)}},to.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Me=to.prototype,Me.lm=function(a,y){or.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function B1(a,y,E){a.lp(E,a.ps(y)),a.wv(E,a.yx(y)),a.Bv(E,a.Bx(y)),a.Ls(E,a.Ef(y)),a.xv(E,a.zx(y)),a.Cv(E,a.Cx(y))}Me.Wj=function(){return!0},Me.ri=function(){return!0},Me.xs=function(){return!0},Me.Xj=function(){return!0},_n.Object.defineProperties(to.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 E=a.length,b=0;b<E;b++){var x=a[b];zt(x)||Ct("GraphLinksModel.linkDataArray must only contain Objects, not: "+x),Nr(x)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Wn,x=0;x<E;x++){var z=a[x],ne=this.Ac(z);ne===void 0||this.wb.I(ne)!==null?b.add(z):this.wb.add(ne,z)}for(b=b.iterator;b.next();)x=b.value,this.Bs(x),z=this.Ac(x),z!==void 0&&this.wb.add(z,x)}for(b=new $n,x=0;x<E;x++)b.add(a[x]);for(this.$f=b,_a(this,"linkDataArray",Bo,"linkDataArray",this,y,a),y=0;y<E;y++)gy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var E=this.linkDataArray.length,b=0;b<E;b++){var x=this.linkDataArray[b],z=this.Ac(x);z===void 0&&(this.Bs(x),z=this.Ac(x)),z!==void 0&&this.wb.add(z,x)}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"}}}),to.prototype.setCategoryForLinkData=to.prototype.lp,to.prototype.getCategoryForLinkData=to.prototype.ps,to.prototype.assignAllDataProperties=to.prototype.Do,to.prototype.setGroupKeyForNodeData=to.prototype.mp,to.prototype.getGroupKeyForNodeData=to.prototype.lh,to.prototype.isGroupForNodeData=to.prototype.Yu,to.prototype.copyLinkData=to.prototype.Jo,to.prototype.mergeLinkDataArray=to.prototype.Zz,to.prototype.removeLinkDataCollection=to.prototype.lA,to.prototype.removeLinkData=to.prototype.bm,to.prototype.addLinkDataCollection=to.prototype.Ey,to.prototype.addLinkData=to.prototype.fi,to.prototype.containsLinkData=to.prototype.Jc,to.prototype.makeLinkDataKeyUnique=to.prototype.Bs,to.prototype.findLinkDataForKey=to.prototype.jh,to.prototype.setKeyForLinkData=to.prototype.Ks,to.prototype.getKeyForLinkData=to.prototype.Ac,to.prototype.removeLabelKeyForLinkData=to.prototype.Qx,to.prototype.addLabelKeyForLinkData=to.prototype.Bu,to.prototype.setLabelKeysForLinkData=to.prototype.Ls,to.prototype.getLabelKeysForLinkData=to.prototype.Ef,to.prototype.setToPortIdForLinkData=to.prototype.Cv,to.prototype.getToPortIdForLinkData=to.prototype.Cx,to.prototype.setFromPortIdForLinkData=to.prototype.xv,to.prototype.getFromPortIdForLinkData=to.prototype.zx,to.prototype.setToKeyForLinkData=to.prototype.Bv,to.prototype.getToKeyForLinkData=to.prototype.Bx,to.prototype.setFromKeyForLinkData=to.prototype.wv,to.prototype.getFromKeyForLinkData=to.prototype.yx,to.prototype.clear=to.prototype.clear;var m0=Object.freeze([]);to.className="GraphLinksModel",qu.GraphLinksModel=to,or.constructGraphLinksModel=or.constructGraphLinksModel=function(){return new to},or.initDiagramModel=fy=function(){return new to};function cl(a,y){or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(pi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}dn(cl,or),cl.constructGraphLinksModel=or.constructGraphLinksModel,cl.prototype.cloneProtected=function(a){or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Me=cl.prototype,Me.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 E=a.length,b=0;b<E;b++){var x=a[b];y+=" "+this.wa(x)+":"+Ji(x)}}return y},Me.rm=function(){var a=or.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Me.gp=function(a){or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Me.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ct("applyIncrementalJson cannot change Model properties"),or.prototype.fp.call(this,a)},Me.Vl=function(a){return a},Me.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Ta(a,y),y!==void 0)){if(eh(y))return y;Ct("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Me.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var E=this.Ke;if(E!=="")if(y=this.Vl(y),this.lb(a)){var b=Ta(a,E);b!==y&&(fc(this,b,a),qo(a,E,y),this.hc(y)===null&&hc(this,y,a),_a(this,"nodeParentKey",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E))}else qo(a,E,y)}},Me.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Ta(a,y),y===void 0)?"":typeof y=="string"?y:(Ct("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},cl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},cl.prototype.Ms=function(a,y){if(a!==null){var E=this.nj;if(E!=="")if(this.lb(a)){var b=Ta(a,E);b===void 0&&(b=""),b!==y&&(qo(a,E,y),_a(this,"parentLinkCategory",Bo,E,a,b,y),typeof E=="string"&&this.La(a,E))}else qo(a,E,y)}},cl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},cl.prototype.copyNodeData=function(a){return a===null?null:(a=or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Ta(a,this.Ke)===void 0||qo(a,this.Ke,void 0),a)},cl.prototype.setDataProperty=function(a,y,E){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,E);return}if(y===this.nodeCategoryProperty){this.jm(a,E);return}if(y===this.nodeParentKeyProperty){this.qe(a,E);return}}var b=Ta(a,y);b!==E&&(qo(a,y,E),this.Fs(a,y,b,E))},Me=cl.prototype,Me.jp=function(a,y){or.prototype.jp.call(this,a,y);for(var E=this.kb.iterator;E.next();)this.qv(E.value,a,y)},Me.qv=function(a,y,E){if(this.mh(a)===y){var b=this.Ke;qo(a,b,E),_a(this,"nodeParentKey",Bo,b,a,y,E),typeof b=="string"&&this.La(a,b)}},Me.fm=function(a){or.prototype.fm.call(this,a),a=this.wa(a);var y=Cg(this,a);if(y!==null){var E=Pi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var x=this.Ke;_a(this,"nodeParentKey",Bo,x,b,a,a),typeof x=="string"&&this.La(b,x),E.push(b)}}for(y=0;y<E.length;y++)fc(this,a,E[y]);Ai(E)}},Me.em=function(a){or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&hc(this,y,a)},Me.qp=function(a){or.prototype.qp.call(this,a);var y=this.mh(a);fc(this,y,a)},Me.lm=function(a,y){or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Me.Tl=function(){return!0},Me.xs=function(){return!0},_n.Object.defineProperties(cl.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"}}}),cl.prototype.setParentLinkCategoryForNodeData=cl.prototype.Ms,cl.prototype.getParentLinkCategoryForNodeData=cl.prototype.ss,cl.prototype.setParentKeyForNodeData=cl.prototype.qe,cl.prototype.getParentKeyForNodeData=cl.prototype.mh,cl.className="TreeModel",qu.TreeModel=cl;function oa(a){ta.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=$u,this.Ti=0,this.Zv=new rt,this.Jp=this.me=0,this.Xr=new Lg,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=$u,this.K=dl,this.nd=cp,this.hd=sy,this.tf=6,this.Nn=w0,a&&Object.assign(this,a)}dn(oa,ta),oa.prototype.cloneProtected=function(a){ta.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},oa.prototype.qb=function(a){a.classType===oa?a===b0||a===x0||a===S0||a===E0||a===cp?this.sorting=a:a===Uh||a===up||a===dl||a===nh?this.direction=a:a===Nd||a===th||a===$u||a===ec?this.arrangement=a:(a===ff||a===w0)&&(this.nodeDiameterFormula=a):ta.prototype.qb.call(this,a)},oa.prototype.createNetwork=function(){return new dp(this)},oa.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Wn;y.addAll(a.iterator),a=new Wn;var E=new Wn,b=this.sort(y),x,z,ne=this.Jp,re=this.arrangement,se=this.nodeDiameterFormula,de=this.radius;(!isFinite(de)||0>=de)&&(de=NaN);var pe=this.aspectRatio;(!isFinite(pe)||0>=pe)&&(pe=1);var Se=this.startAngle;isFinite(Se)||(Se=0);var Ae=this.sweepAngle;if((!isFinite(Ae)||360<Ae||1>Ae)&&(Ae=360),y=this.spacing,isFinite(y)||(y=NaN),re===ec&&se===ff?re=$u:re===ec&&se!==ff&&(re=this.arrangement),(this.direction===Uh||this.direction===up)&&this.sorting!==cp){for(se=0;!(se>=b.length)&&(a.add(b.M(se)),!(se+1>=b.length));se+=2)E.add(b.M(se+1));this.direction===Uh?(this.arrangement===ec&&a.reverse(),b=new Wn,b.addAll(a),b.addAll(E)):(this.arrangement===ec&&E.reverse(),b=new Wn,b.addAll(E),b.addAll(a))}se=b.length;for(var Re=z=x=0;Re<b.length;Re++){var Ue=Se+Ae*z*(this.direction===dl?1:-1)/se,Xe=b.M(Re).diameter;isNaN(Xe)&&(Xe=ih(b.M(Re),Ue)),360>Ae&&(Re===0||Re===b.length-1)&&(Xe/=2),x+=Xe,z++}if(isNaN(de)||re===ec){if(isNaN(y)&&(y=6),re!==$u&&re!==ec){for(z=-1/0,ne=0;ne<se;ne++)Re=b.M(ne),x=b.M(ne===se-1?0:ne+1),isNaN(Re.diameter)&&ih(Re,0),isNaN(x.diameter)&&ih(x,0),z=Math.max(z,(Re.diameter+x.diameter)/2);ne=z+y,re===Nd?de=(z+y)/(2*Math.PI/se):de=v0(this,ne*(360<=Ae?se:se-1),pe,Se*Math.PI/180,Ae*Math.PI/180)}else de=v0(this,x+(360<=Ae?se:se-1)*(re!==ec?y:1.6*y),pe,Se*Math.PI/180,Ae*Math.PI/180);z=de*pe}else if(z=de*pe,Re=my(this,de,z,Se*Math.PI/180,Ae*Math.PI/180),isNaN(y))(re===$u||re===ec)&&(y=(Re-x)/(360<=Ae?se:se-1));else if(re===$u||re===ec)Re=(Re-x)/(360<=Ae?se:se-1),Re<y?(de=v0(this,x+y*(360<=Ae?se:se-1),pe,Se*Math.PI/180,Ae*Math.PI/180),z=de*pe):y=Re;else{for(ne=-1/0,x=0;x<se;x++)Ue=b.M(x),Xe=b.M(x===se-1?0:x+1),isNaN(Ue.diameter)&&ih(Ue,0),isNaN(Xe.diameter)&&ih(Xe,0),ne=Math.max(ne,(Ue.diameter+Xe.diameter)/2);ne+=y,x=v0(this,ne*(360<=Ae?se:se-1),pe,Se*Math.PI/180,Ae*Math.PI/180),x>de?(de=x,z=de*pe):ne=Re/(360<=Ae?se:se-1)}if(this.kw=re,this.lc=de,this.Zm=pe,this.lw=Se,this.Wp=Ae,this.Ti=y,this.me=z,this.Jp=ne,y=b,b=this.kw,re=this.lc,de=this.lw,pe=this.Wp,Se=this.Ti,Ae=this.me,se=this.Jp,this.direction!==Uh&&this.direction!==up||b!==ec)if(this.direction===Uh||this.direction===up){switch(ne=0,b){case th:ne=180*y0(this,re,Ae,de,se)/Math.PI;break;case $u:se=y=0,ne=a.first(),ne!==null&&(y=ih(ne,Math.PI/2)),ne=E.first(),ne!==null&&(se=ih(ne,Math.PI/2)),ne=180*y0(this,re,Ae,de,Se+(y+se)/2)/Math.PI;break;case Nd:ne=pe/y.length}if(this.direction===Uh){switch(b){case th:kg(this,a,de,nh);break;case $u:Ng(this,a,de,nh);break;case Nd:Ag(this,a,pe/2,de,nh)}switch(b){case th:kg(this,E,de+ne,dl);break;case $u:Ng(this,E,de+ne,dl);break;case Nd:Ag(this,E,pe/2,de+ne,dl)}}else{switch(b){case th:kg(this,E,de,nh);break;case $u:Ng(this,E,de,nh);break;case Nd:Ag(this,E,pe/2,de,nh)}switch(b){case th:kg(this,a,de+ne,dl);break;case $u:Ng(this,a,de+ne,dl);break;case Nd:Ag(this,a,pe/2,de+ne,dl)}}}else switch(b){case th:kg(this,y,de,this.direction);break;case $u:Ng(this,y,de,this.direction);break;case Nd:Ag(this,y,pe,de,this.direction);break;case ec:_1(this,y,pe,de,this.direction)}else _1(this,y,pe,de-pe/2,dl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Ag(a,y,E,b,x){var z=a.Wp,ne=a.lc;a=a.me,b=b*Math.PI/180,E=E*Math.PI/180;for(var re=y.length,se=0;se<re;se++){var de=b+(x===dl?se*E/(360<=z?re:re-1):-(se*E)/re),pe=y.M(se),Se=ne*Math.tan(de)/a;Se=Math.sqrt((ne*ne+a*a*Se*Se)/(1+Se*Se)),pe.centerX=Se*Math.cos(de),pe.centerY=Se*Math.sin(de),pe.actualAngle=180*de/Math.PI}}function Ng(a,y,E,b){var x=a.lc,z=a.me,ne=a.Ti;E=E*Math.PI/180;for(var re=y.length,se=0;se<re;se++){var de=y.M(se),pe=y.M(se===re-1?0:se+1),Se=z*Math.sin(E);de.centerX=x*Math.cos(E),de.centerY=Se,de.actualAngle=180*E/Math.PI,isNaN(de.diameter)&&ih(de,0),isNaN(pe.diameter)&&ih(pe,0),de=y0(a,x,z,b===dl?E:-E,(de.diameter+pe.diameter)/2+ne),E+=b===dl?de:-de}}function kg(a,y,E,b){var x=a.lc,z=a.me,ne=a.Jp;E=E*Math.PI/180;for(var re=y.length,se=0;se<re;se++){var de=y.M(se);de.centerX=x*Math.cos(E),de.centerY=z*Math.sin(E),de.actualAngle=180*E/Math.PI,de=y0(a,x,z,b===dl?E:-E,ne),E+=b===dl?de:-de}}function _1(a,y,E,b,x){var z=a.Wp;if(a.mj=0,a.Xr=new Lg,360>E){for(z=b+(x===dl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,H1(a,y,E,b,x)}else U1(a,y,E,b,x);a.Xr.commit(y)}function U1(a,y,E,b,x){var z=a.lc,ne=a.Ti,re=a.Zm,se=z*Math.cos(b*Math.PI/180),de=a.me*Math.sin(b*Math.PI/180),pe=y.Fa();if(pe.length===3)pe[0].centerX=z,pe[0].centerY=0,pe[1].centerX=pe[0].centerX-pe[0].width/2-pe[1].width/2-ne,pe[1].y=pe[0].y,pe[2].centerX=(pe[0].centerX+pe[1].centerX)/2,pe[2].y=pe[0].y-pe[2].height-ne;else if(pe.length===4)pe[0].centerX=z,pe[0].centerY=0,pe[2].centerX=-pe[0].centerX,pe[2].centerY=pe[0].centerY,pe[1].centerX=0,pe[1].y=Math.min(pe[0].y,pe[2].y)-pe[1].height-ne,pe[3].centerX=0,pe[3].y=Math.max(pe[0].y+pe[0].height+ne,pe[2].y+pe[2].height+ne);else{z=rt.alloc();for(var Se=0;Se<pe.length&&(pe[Se].centerX=se,pe[Se].centerY=de,!(Se>=pe.length-1));Se++)z1(a,se,de,pe,Se,x,z)||j1(a,se,de,pe,Se,x,z),se=z.x,de=z.y;if(rt.free(z),a.mj++,!(23<a.mj)){se=pe[0].centerX,de=pe[0].centerY,z=pe[pe.length-1].centerX,Se=pe[pe.length-1].centerY;var Ae=Math.abs(se-z)-((pe[0].width+pe[pe.length-1].width)/2+ne),Re=Math.abs(de-Se)-((pe[0].height+pe[pe.length-1].height)/2+ne);ne=0,1>Math.abs(Re)?Math.abs(se-z)<(pe[0].width+pe[pe.length-1].width)/2&&(ne=0):ne=0<Re?Re:1>Math.abs(Ae)?0:Ae,se=Math.abs(z)>Math.abs(Se)?0<z!=de>Se:0<Se!=se<z,(se=x===dl?se:!se)&&(ne=-Math.abs(ne),ne=Math.min(ne,-pe[pe.length-1].width),ne=Math.min(ne,-pe[pe.length-1].height)),a.Xr.compare(ne,pe),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>pe.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*re,U1(a,y,E,b,x))}}}function H1(a,y,E,b,x){for(var z=a.lc,ne=a.me,re=a.Zm,se=z*Math.cos(b*Math.PI/180),de=ne*Math.sin(b*Math.PI/180),pe=rt.alloc(),Se=y.Fa(),Ae=0;Ae<Se.length&&(Se[Ae].centerX=se,Se[Ae].centerY=de,!(Ae>=Se.length-1));Ae++)z1(a,se,de,Se,Ae,x,pe)||j1(a,se,de,Se,Ae,x,pe),se=pe.x,de=pe.y;if(rt.free(pe),a.mj++,!(23<a.mj)){if(se=Math.atan2(de,se),se=x===dl?a.gt-se:se-a.gt,se=Math.abs(se)<Math.abs(se-2*Math.PI)?se:se-2*Math.PI,z=se*(z+ne)/2,ne=a.Xr,Math.abs(z)<Math.abs(ne.Pl))for(ne.Pl=z,ne.mk=[],ne.tm=[],se=0;se<Se.length;se++)ne.mk[se]=Se[se].bounds.x,ne.tm[se]=Se[se].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,H1(a,y,E,b,x))}}function z1(a,y,E,b,x,z,ne){var re=a.lc,se=a.me,de=0;a=(b[x].width+b[x+1].width)/2+a.Ti;var pe=!1;if(0<=E!=(z===dl)){if(z=y+a,z>re){if(z=y-a,z<-re)return ne.x=z,ne.y=de,!1;pe=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ne.x=z,ne.y=de,!1;pe=!0}return de=Math.sqrt(1-Math.min(1,z*z/(re*re)))*se,0>E!==pe&&(de=-de),Math.abs(E-de)>(b[x].height+b[x+1].height)/2?(ne.x=z,ne.y=de,!1):(ne.x=z,ne.y=de,!0)}function j1(a,y,E,b,x,z,ne){var re=a.lc,se=a.me,de=0;if(a=(b[x].height+b[x+1].height)/2+a.Ti,b=!1,0<=y!=(z===dl)){if(z=E-a,z<-se){if(z=E+a,z>se){ne.x=de,ne.y=z;return}b=!0}}else if(z=E+a,z>se){if(z=E-a,z<-se){ne.x=de,ne.y=z;return}b=!0}de=Math.sqrt(1-Math.min(1,z*z/(se*se)))*re,0>y!==b&&(de=-de),ne.x=de,ne.y=z}oa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},oa.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,E=this.actualCenter;a?E=new rt(0,0):(E.x=this.arrangementOrigin.x+this.lc,E.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var x=b.value;x.x+=E.x,x.y+=E.y,x.commit()}a&&(this.group.Va(),a=this.group.position.copy(),E=this.group.location.copy(),y=y.re(E.re(a)),this.group.move(y),this.Zv=y.re(a))},oa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function my(a,y,E,b,x){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&x!==void 0?x*y:2*Math.PI*y;a=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E;for(var ne=0,re=b!==void 0&&x!==void 0?x/(z+1):Math.PI/(2*(z+1)),se=0,de=0;de<=z;de++){b!==void 0&&x!==void 0?se=b+de*x/z:se=de*Math.PI/(2*z);var pe=Math.sin(se);ne+=Math.sqrt(1-a*a*pe*pe)*re}return b!==void 0&&x!==void 0?(y>E?y:E)*ne:4*(y>E?y:E)*ne}function v0(a,y,E,b,x){return y/(b!==void 0&&x!==void 0?my(a,1,E,b,x):my(a,1,E))}function y0(a,y,E,b,x){if(.001>Math.abs(a.Zm-1))return x/y;var z=y>E?Math.sqrt(y*y-E*E)/y:Math.sqrt(E*E-y*y)/E,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>E&&(b+=Math.PI/2);for(var re=0;;re++){var se=Math.sin(b+re*a);if(ne+=(y>E?y:E)*Math.sqrt(1-z*z*se*se)*a,ne>=x)return re*a}}oa.prototype.sort=function(a){switch(this.sorting){case S0:break;case E0:a.reverse();break;case b0:a.sort(this.comparer);break;case x0:a.sort(this.comparer),a.reverse();break;case cp:return this.ak(GE(a));default:Ct("Invalid sorting type.")}return a};function GE(a){for(var y=[],E=0;E<a.length;E++)y.push(0);E=new Wn;for(var b=0;b<a.length;b++){var x=-1,z=-1;if(b===0)for(var ne=0;ne<a.length;ne++){var re=a.M(ne).edgesCount;re>x&&(x=re,z=ne)}else for(ne=0;ne<a.length;ne++)re=y[ne],re>x&&(x=re,z=ne);for(E.add(a.M(z)),y[z]=-1,z=a.M(z),ne=z.sourceEdges;ne.next();)x=a.indexOf(ne.value.fromVertex),0>x||0<=y[x]&&y[x]++;for(z=z.destinationEdges;z.next();)x=a.indexOf(z.value.toVertex),0>x||0<=y[x]&&y[x]++}return E}oa.prototype.ak=function(a){for(var y=[],E=0;E<a.length;E++){var b=a.M(E);y[E]=[];for(var x,z=b.destinationEdges;z.next();)x=a.indexOf(z.value.toVertex),x!==E&&0>y[E].indexOf(x)&&y[E].push(x);for(b=b.sourceEdges;b.next();)x=a.indexOf(b.value.fromVertex),x!==E&&0>y[E].indexOf(x)&&y[E].push(x)}for(z=[],E=0;E<y.length;E++)z[E]=0;E=[];var ne=[],re=[];b=[],x=new Wn;for(var se=0,de=0;de<y.length;de++){var pe=y[de].length;if(pe===1)b.push(de);else if(pe===0)x.add(a.M(de));else{if(se===0)E.push(de);else{for(var Se=pe=1/0,Ae=-1,Re=[],Ue=0;Ue<E.length;Ue++)0>y[E[Ue]].indexOf(E[Ue===E.length-1?0:Ue+1])&&Re.push(Ue===E.length-1?0:Ue+1);if(Re.length===0)for(Ue=0;Ue<E.length;Ue++)Re.push(Ue);for(Ue=0;Ue<Re.length;Ue++){for(var Xe=Re[Ue],bt=y[de],ft=0,Pt=0;Pt<ne.length;Pt++){var Nt=z[ne[Pt]],Dt=z[re[Pt]];if(Nt<Dt){var Yt=Nt;Nt=Dt}else Yt=Dt;if(Yt<Xe&&Xe<=Nt)for(Dt=0;Dt<bt.length;Dt++){var wn=bt[Dt];0>E.indexOf(wn)||Yt<z[wn]&&z[wn]<Nt||Yt===z[wn]||Nt===z[wn]||ft++}else for(Dt=0;Dt<bt.length;Dt++)wn=bt[Dt],0>E.indexOf(wn)||Yt<z[wn]&&z[wn]<Nt&&Yt!==z[wn]&&Nt!==z[wn]&&ft++}for(bt=ft,Pt=ft=0;Pt<y[de].length;Pt++)Yt=E.indexOf(y[de][Pt]),0<=Yt&&(Yt=Math.abs(Xe-(Yt>=Xe?Yt+1:Yt)),ft+=Yt<E.length+1-Yt?Yt:E.length+1-Yt);for(Pt=0;Pt<ne.length;Pt++)Yt=z[ne[Pt]],Nt=z[re[Pt]],Yt>=Xe&&Yt++,Nt>=Xe&&Nt++,Yt>Nt&&(Dt=Nt,Nt=Yt,Yt=Dt),Nt-Yt<(E.length+2)/2==(Yt<Xe&&Xe<=Nt)&&ft++;(bt<pe||bt===pe&&ft<Se)&&(pe=bt,Se=ft,Ae=Xe)}for(E.splice(Ae,0,de),pe=0;pe<E.length;pe++)z[E[pe]]=pe;for(pe=0;pe<y[de].length;pe++)Se=y[de][pe],0<=E.indexOf(Se)&&(ne.push(de),re.push(Se))}se++}}for(ne=E.length;;){for(z=!0,re=0;re<b.length;re++)if(se=b[re],de=y[se][0],pe=E.indexOf(de),0<=pe){for(Ae=Se=0;Ae<y[de].length;Ae++)Re=E.indexOf(y[de][Ae]),0>Re||Re===pe||(Ue=Re>pe?Re-pe:pe-Re,Se+=Re<pe!=Ue>ne-Ue?1:-1);E.splice(0>Se?pe:pe+1,0,se),b.splice(re,1),re--}else z=!1;if(z)break;E.push(b[0]),b.splice(0,1)}for(y=0;y<E.length;y++)x.add(a.M(E[y]));return x},_n.Object.defineProperties(oa.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==ec&&a!==$u&&a!==th&&a!==Nd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==dl&&a!==nh&&a!==Uh&&a!==up||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==E0&&a!==b0&&!x0&&a!==cp||(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 $u=new pn(oa,"ConstantSpacing",0),th=new pn(oa,"ConstantDistance",1),Nd=new pn(oa,"ConstantAngle",2),ec=new pn(oa,"Packed",3),dl=new pn(oa,"Clockwise",4),nh=new pn(oa,"Counterclockwise",5),Uh=new pn(oa,"BidirectionalLeft",6),up=new pn(oa,"BidirectionalRight",7),S0=new pn(oa,"Forwards",8),E0=new pn(oa,"Reverse",9),b0=new pn(oa,"Ascending",10),x0=new pn(oa,"Descending",11),cp=new pn(oa,"Optimized",12),w0=new pn(oa,"Pythagorean",13),ff=new pn(oa,"Circular",14);oa.className="CircularLayout",oa.ConstantSpacing=$u,oa.ConstantDistance=th,oa.ConstantAngle=Nd,oa.Packed=ec,oa.Clockwise=dl,oa.Counterclockwise=nh,oa.BidirectionalLeft=Uh,oa.BidirectionalRight=up,oa.Forwards=S0,oa.Reverse=E0,oa.Ascending=b0,oa.Descending=x0,oa.Optimized=cp,oa.Pythagorean=w0,oa.Circular=ff;function Lg(){this.Pl=-1/0,this.tm=this.mk=null}Lg.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},Lg.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var E=a.M(y);E.x=this.mk[y],E.y=this.tm[y]}},Lg.className="VertexArrangement";function dp(a){zo.call(this,a)}dn(dp,zo),dp.prototype.createVertex=function(){return new Ig(this)},dp.prototype.createEdge=function(){return new C0(this)},dp.className="CircularNetwork";function Ig(a){ja.call(this,a),this.u=this.Si=NaN}dn(Ig,ja);function ih(a,y){var E=a.network;if(E===null)return NaN;if(E=E.layout,E===null)return NaN;if(E.arrangement===ec)if(E.nodeDiameterFormula===ff)a.Si=Math.max(a.width,a.height);else{if(E=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),E===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/E,a.width/y)}else a.Si=E.nodeDiameterFormula===ff?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}_n.Object.defineProperties(Ig.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)}}}),Ig.className="CircularVertex";function C0(a){Wl.call(this,a)}dn(C0,Wl),C0.className="CircularEdge";function ks(a){ta.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)}dn(ks,ta),ks.prototype.cloneProtected=function(a){ta.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},ks.prototype.createNetwork=function(){return new pf(this)},ks.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 E=y.value;E.charge=this.electricalCharge(E),E.mass=this.gravitationalMass(E)}for(y=this.network.edges.iterator;y.next();)E=y.value,E.stiffness=this.springStiffness(E),E.length=this.springLength(E);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,E=y.Zx();for(var b=E.iterator;b.next();){this.network=b.value;for(var x=this.network.vertexes.iterator;x.next();){var z=x.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}G1(this,0,a)}this.network=y;var ne=b=E.iterator;b=this.arrangementSpacing;var re=ne.count,se=!0;z=x=0;for(var de=Pi(),pe=0;pe<re+y.vertexes.count+2;pe++)de[pe]=null;re=0,ne.reset();for(var Se=xn.alloc();ne.next();)if(pe=ne.value,this.computeBounds(pe,Se),se)se=!1,x=Se.x+Se.width/2,z=Se.y+Se.height/2,de[0]=new rt(Se.x+Se.width+b.width,Se.y),de[1]=new rt(Se.x,Se.y+Se.height+b.height),re=2;else{var Ae=V1(de,re,x,z,Se.width,Se.height,b),Re=de[Ae],Ue=new rt(Re.x+Se.width+b.width,Re.y),Xe=new rt(Re.x,Re.y+Se.height+b.height);for(Ae+1<re&&de.splice(Ae+1,0,null),de[Ae]=Ue,de[Ae+1]=Xe,re++,Ae=Re.x-Se.x,Re=Re.y-Se.y,pe=pe.vertexes.iterator;pe.next();)Ue=pe.value,Ue.centerX+=Ae,Ue.centerY+=Re}for(xn.free(Se),pe=y.vertexes.iterator;pe.next();)ne=pe.value,Ae=ne.bounds,2>re?(x=Ae.x+Ae.width/2,z=Ae.y+Ae.height/2,de[0]=new rt(Ae.x+Ae.width+b.width,Ae.y),de[1]=new rt(Ae.x,Ae.y+Ae.height+b.height),re=2):(se=V1(de,re,x,z,Ae.width,Ae.height,b),Se=de[se],Re=new rt(Se.x+Ae.width+b.width,Se.y),Ae=new rt(Se.x,Se.y+Ae.height+b.height),se+1<re&&de.splice(se+1,0,null),de[se]=Re,de[se+1]=Ae,re++,ne.centerX=Se.x+ne.width/2,ne.centerY=Se.y+ne.height/2);for(Ai(de),b=E.iterator;b.next();){for(E=b.value,x=E.vertexes.iterator;x.next();)y.dh(x.value);for(E=E.edges.iterator;E.next();)y.Bo(E.value)}}Z1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ks.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,E=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(E)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},ks.prototype.computeBounds=function(a,y){var E=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;E?(E=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function G1(a,y,E){if(VE(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var x=WE(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,E*(y+1)/11),10));for(a.maxIterations+=z,G1(a,y+1,E),Z1(a,z),ZE(a,x),y=x.vertexes.Fa(),y.sort(function(ne,re){return ne===null||re===null||ne===re?0:re.Vd-ne.Vd}),E=0;E<y.length;E++)KE(a,y[E]);a.Zf=b}}function VE(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(E,b){return E===null||b===null||E===b?0:b.Vd-E.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function WE(a,y){for(var E=a.network,b=new pf(a),x=0;x<a.ah.length;x++){var z=a.ah[x];if(1<z.Vd){b.dh(z);var ne=new K1;ne.Rs=z.Vd,ne.Ss=z.width,ne.Qs=z.height,ne.Sv=z.focus.x,ne.Tv=z.focus.y,z.We===null&&(z.We=new Wn),z.We.add(ne),z.sv=z.We.count-1}else break}for(z=E.edges.iterator;z.next();){var re=z.value;x=re.fromVertex,ne=re.toVertex,x.network===b&&ne.network===b?b.Bo(re):x.network===b?(re=x.Hj,re===null&&(re=new Wn,x.Hj=re),re.add(ne),x.Vd--,x.sh+=ne.sh):ne.network===b&&(re=ne.Hj,re===null&&(re=new Wn,ne.Hj=re),re.add(x),ne.Vd--,ne.sh+=x.sh)}for(x=b.edges.iterator;x.next();)z=x.value,z.length*=Math.max(1,Qt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){x=y.value;var se=x.Hj;if(se!==null&&0<se.count&&(ne=x.We.M(x.We.count-1).Rs-x.Vd,!(0>=ne))){for(var de=re=0,pe=se.count-ne;pe<se.count;pe++){var Se=se.M(pe),Ae=null;for(z=Se.edges.iterator;z.next();){var Re=z.value;if(Re.Ax(Se)===x){Ae=Re;break}}Ae!==null&&(de+=Ae.length,re+=Se.width*Se.height)}z=x.centerX,se=x.centerY,pe=x.width,Se=x.height,Ae=x.focus,Re=pe*Se,1>Re&&(Re=1),re=Qt.sqrt((re+Re+de*de*4/(ne*ne))/Re),ne=(re-1)*pe/2,re=(re-1)*Se/2,x.bounds=new xn(z-Ae.x-ne,se-Ae.y-re,pe+2*ne,Se+2*re),x.focus=new rt(Ae.x+ne,Ae.y+re)}}return a.network=b,E}function ZE(a,y){for(var E=a.network.vertexes.iterator;E.next();){var b=E.value;if(b.network=y,b.We!==null){var x=b.We.M(b.sv);b.Vd=x.Rs;var z=x.Sv,ne=x.Tv;b.bounds=new xn(b.centerX-z,b.centerY-ne,x.Ss,x.Qs),b.focus=new rt(z,ne),b.sv--}}for(E=a.network.edges.iterator;E.next();)E.value.network=y;a.network=y}function KE(a,y){var E=y.Hj;if(E!==null&&E.count!==0){var b=y.centerX,x=y.centerY,z=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),z=ne.Ss,ne=ne.Qs),z=Qt.sqrt(z*z+ne*ne)/2;for(var re=!1,se=ne=0,de=0,pe=y.vertexes.iterator;pe.next();){var Se=pe.value;1>=Se.Vd?se++:(re=!0,de++,ne+=Math.atan2(y.centerY-Se.centerY,y.centerX-Se.centerX))}if(se!==0){for(0<de&&(ne/=de),de=y=0,y=re?2*Math.PI/(se+1):2*Math.PI/se,se%2===0&&(de=y/2),1<E.count&&E.sort(function(Re,Ue){return Re===null||Ue===null||Re===Ue?0:Ue.width*Ue.height-Re.width*Re.height}),re=se%2===0?0:1,E=E.iterator;E.next();)if(se=E.value,!(1<se.Vd||a.isFixed(se))){for(pe=null,Se=se.edges.iterator;Se.next();){pe=Se.value;break}Se=se.width;var Ae=se.height;Se=Qt.sqrt(Se*Se+Ae*Ae)/2,pe=z+pe.length+Se,Se=ne+(y*(re/2>>1)+de)*(re%2===0?1:-1),se.centerX=b+pe*Math.cos(Se),se.centerY=x+pe*Math.sin(Se),re++}}}}function V1(a,y,E,b,x,z,ne){var re=9e19,se=-1,de=0;e:for(;de<y;de++){var pe=a[de],Se=pe.x-E,Ae=pe.y-b;if(Se=Se*Se+Ae*Ae,Se<re){for(Ae=de-1;0<=Ae;Ae--)if(a[Ae].y>pe.y&&a[Ae].x-pe.x<x+ne.width)continue e;for(Ae=de+1;Ae<y;Ae++)if(a[Ae].x>pe.x&&a[Ae].y-pe.y<z+ne.height)continue e;se=de,re=Se}}return se}ks.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ks.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var E=y.value;if(E.category==="Comment"&&E.isVisible()){var b=this.network.ki(E);b===null&&(b=this.network.Bl(E)),b.charge=this.defaultCommentElectricalCharge,E=null;for(var x=b.destinationEdges;x.next();){var z=x.value;if(z.toVertex===a){E=z;break}}if(E===null){for(x=b.sourceEdges;x.next();)if(z=x.value,z.fromVertex===a){E=z;break}}E===null&&(E=this.network.Zj(a,b,null)),E.length=this.defaultCommentSpringLength}}};function W1(a,y){var E=a.bounds,b=E.x;a=E.y;var x=E.width;E=E.height;var z=y.bounds,ne=z.x;y=z.y;var re=z.width;return z=z.height,b+x<ne?a>y+z?(E=b+x-ne,a=a-y-z,Qt.sqrt(E*E+a*a)):a+E<y?(b=b+x-ne,a=a+E-y,Qt.sqrt(b*b+a*a)):ne-(b+x):b>ne+re?a>y+z?(E=b-ne-re,a=a-y-z,Qt.sqrt(E*E+a*a)):a+E<y?(b=b-ne-re,a=a+E-y,Qt.sqrt(b*b+a*a)):b-(ne+re):a>y+z?a-(y+z):a+E<y?y-(a+E):.1}function Z1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,YE(a)););a.ah=null}function YE(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var E=y[0];E.forceX=0,E.forceY=0;for(var b=E.centerX,x=b,z=E=E.centerY,ne=1;ne<y.length;ne++){var re=y[ne];re.forceX=0,re.forceY=0;var se=re.centerX;re=re.centerY,b=Math.min(b,se),x=Math.max(x,se),E=Math.min(E,re),z=Math.max(z,re)}(x=x-b>z-E)?y.sort(function(Xe,bt){return Xe===null||bt===null||Xe===bt?0:Xe.centerX-bt.centerX}):y.sort(function(Xe,bt){return Xe===null||bt===null||Xe===bt?0:Xe.centerY-bt.centerY}),E=a.Zf;var de=b=re=0;for(z=0;z<y.length;z++){ne=y[z],b=ne.bounds,re=ne.focus,se=b.x+re.x;var pe=b.y+re.y;b=ne.charge*a.electricalFieldX(se,pe),de=ne.charge*a.electricalFieldY(se,pe),b+=ne.mass*a.gravitationalFieldX(se,pe),de+=ne.mass*a.gravitationalFieldY(se,pe),ne.forceX+=b,ne.forceY+=de;for(var Se=z+1;Se<y.length;Se++){var Ae=y[Se];if(Ae!==ne){b=Ae.bounds,re=Ae.focus,de=b.x+re.x;var Re=b.y+re.y;if(se-de>E||de-se>E){if(x)break}else if(pe-Re>E||Re-pe>E){if(!x)break}else{var Ue=W1(ne,Ae);1>Ue?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new T0),Ue=b.random(),re=b.random(),se>de?(b=Math.abs(Ae.bounds.right-ne.bounds.x),b=(1+b)*Ue):se<de?(b=Math.abs(Ae.bounds.x-ne.bounds.right),b=-(1+b)*Ue):(b=Math.max(Ae.width,ne.width),b=(1+b)*Ue-b/2),pe>Re?(de=Math.abs(Ae.bounds.bottom-ne.bounds.y),de=(1+de)*re):se<de?(de=Math.abs(Ae.bounds.y-ne.bounds.bottom),de=-(1+de)*re):(de=Math.max(Ae.height,ne.height),de=(1+de)*re-de/2)):(re=-(ne.charge*Ae.charge)/(Ue*Ue),b=(de-se)/Ue*re,de=(Re-pe)/Ue*re),ne.forceX+=b,ne.forceY+=de,Ae.forceX-=b,Ae.forceY-=de}}}}for(x=a.network.edges.iterator;x.next();)re=x.value,E=re.fromVertex,z=re.toVertex,ne=E.bounds,se=E.focus,b=ne.x+se.x,ne=ne.y+se.y,pe=z.bounds,Se=z.focus,se=pe.x+Se.x,pe=pe.y+Se.y,Se=W1(E,z),1>Se?(Se=a.randomNumberGenerator,Se===null&&(a.randomNumberGenerator=Se=new T0),re=Se.random(),Se=Se.random(),b=(b>se?1:-1)*(1+(z.width>E.width?z.width:E.width))*re,de=(ne>pe?1:-1)*(1+(z.height>E.height?z.height:E.height))*Se):(re=re.stiffness*(Se-re.length),b=(se-b)/Se*re,de=(pe-ne)/Se*re),E.forceX+=b,E.forceY+=de,z.forceX-=b,z.forceY-=de;for(x=b=0;x<y.length;x++)E=y[x],a.isFixed(E)?a.moveFixedVertex(E):b=Math.max(b,a.moveVertex(E)||0);return b>a.epsilonDistance*a.epsilonDistance}ks.prototype.moveVertex=function(a){var y=a.forceX,E=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),E<-b?E=-b:E>b&&(E=b),a.centerX+=y,a.centerY+=E,y*y+E*E},ks.prototype.moveFixedVertex=function(){},ks.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ks.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Ia,y.toSpot=Ia)}},ks.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var E=xn.alloc();this.computeBounds(this.network,E),y=this.arrangementOrigin,a=y.x-E.x,y=y.y-E.y,xn.free(E)}E=xn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var x=b.value;(a!==0||y!==0)&&(E.assign(x.bounds),E.x+=a,E.y+=y,x.bounds=E),x.commit()}xn.free(E)},ks.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ks.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ks.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ks.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ks.prototype.electricalFieldX=function(){return 0},ks.prototype.electricalFieldY=function(){return 0},ks.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ks.prototype.gravitationalFieldX=function(){return 0},ks.prototype.gravitationalFieldY=function(){return 0},ks.prototype.isFixed=function(a){return a.isFixed},_n.Object.defineProperties(ks.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"&&Ct('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())}}}),ks.className="ForceDirectedLayout";function K1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}K1.className="ForceDirectedSubnet";function pf(a){zo.call(this,a)}dn(pf,zo),pf.prototype.createVertex=function(){return new Mg(this)},pf.prototype.createEdge=function(){return new Og(this)},pf.className="ForceDirectedNetwork";function Mg(a){ja.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}dn(Mg,ja),_n.Object.defineProperties(Mg.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)}}}),Mg.className="ForceDirectedVertex";function Og(a){Wl.call(this,a),this.j=this.o=NaN}dn(Og,Wl),_n.Object.defineProperties(Og.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)}}}),Og.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 wo(a){ta.call(this),this.kc=this.ie=25,this.K=0,this.Dk=L0,this.Zk=I0,this.Qk=M0,this.bj=4,this.rk=O0,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 rt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}dn(wo,ta),wo.prototype.cloneProtected=function(a){ta.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},wo.prototype.qb=function(a){a.classType===wo?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:Ct("Unknown enum value: "+a):ta.prototype.qb.call(this,a)},wo.prototype.createNetwork=function(){return new fp(this)},wo.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Dg&&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===Dg&&this.removeCycles(),a=this.network;for(var y=[],E=a.edges.iterator;E.next();){var b=E.value;b.valid=!1,y.push(b)}for(E=0;E<y.length;E++){b=y[E];var x=b.fromVertex,z=b.toVertex;if(!(b.valid||(x.node===null&&x.data===null||z.node===null&&z.data===null)&&x.layer===z.layer)){var ne=0,re=0,se=0,de=0;if(b.link!==null){if(re=b.link,re===null)continue;var pe=x.node;if(ne=z.node,pe===null||ne===null)continue;var Se=re.fromNode;se=re.toNode;for(var Ae=re.fromPort;Ae!==null&&!Ae.Ed();)Ae=Ae.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){de=Se;var Re=Ae;Se=se,Ae=re,se=de,re=Re}var Ue=x.focus;de=z.focus;var Xe=b.rev?z.bounds:x.bounds;Re=rt.alloc(),pe!==Se?Xe.w()&&Se.isVisible()?Se.actualBounds.w()?(wd(Se,Ae,Dr,Re),Re.x+=Se.actualBounds.x-Xe.x,Re.y+=Se.actualBounds.y-Xe.y):(wd(Se,Ae,Dr,Re),Re.w()||Re.assign(Ue)):Re.assign(Ue):Xe.w()?(wd(Se,Ae,Dr,Re),Re.w()||Re.assign(Ue)):Re.assign(Ue),Se=b.rev?x.bounds:z.bounds,pe=rt.alloc(),ne!==se?Se.w()&&se.isVisible()?se.actualBounds.w()?(wd(se,re,Dr,pe),pe.x+=se.actualBounds.x-Se.x,pe.y+=se.actualBounds.y-Se.y):(wd(se,re,Dr,pe),pe.w()||pe.assign(de)):pe.assign(de):Se.w()?(wd(se,re,Dr,pe),pe.w()||pe.assign(de)):pe.assign(de),this.K===90||this.K===270?(ne=Math.round((Re.x-Ue.x)/this.kc),se=Re.x,re=Math.round((pe.x-de.x)/this.kc),de=pe.x):(ne=Math.round((Re.y-Ue.y)/this.kc),se=Re.y,re=Math.round((pe.y-de.y)/this.kc),de=pe.y),rt.free(Re),rt.free(pe),b.portFromColOffset=ne,b.portFromPos=se,b.portToColOffset=re,b.portToPos=de}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Re=x.layer,pe=z.layer,Se=0,Xe=b.link,Xe!==null){var bt=Xe.fromPort,ft=Xe.toPort;if(bt!==null&&ft!==null){var Pt=Xe.fromNode;if(Ae=Xe.toNode,Pt!==null&&Ae!==null){var Nt=k0(this,!0),Dt=k0(this,!1),Yt=this.setsPortSpots?Nt:Xe.computeSpot(!0,bt);Ue=this.setsPortSpots?Dt:Xe.computeSpot(!1,ft);var wn=Xe.isOrthogonal;Yt.$c()&&Yt.Hf(Dt)&&Ue.$c()&&Ue.Hf(Nt)?Se=0:(Nt=Xe.getLinkPoint(Pt,bt,Yt,!0,wn,Ae,ft,rt.alloc()),Dt=Xe.getLinkDirection(Pt,bt,Nt,Yt,!0,wn,Ae,ft),rt.free(Nt),Yt.ys()||Dt!==nE(this,b,!0)?this.setsPortSpots&&Pt!==null&&Pt.ports.count===1&&b.rev&&(Se+=1):Se+=1,Yt=Xe.getLinkPoint(Ae,ft,Ue,!1,wn,Pt,bt,rt.alloc()),Xe=Xe.getLinkDirection(Ae,ft,Yt,Ue,!1,wn,Pt,bt),rt.free(Yt),Ue.ys()||Xe!==nE(this,b,!1)?this.setsPortSpots&&Ae!==null&&Ae.ports.count===1&&b.rev&&(Se+=2):Se+=2)}}}if(Ae=Se,Se=Ae===1||Ae===3,(Ae=Ae===2||Ae===3)&&(Ue=a.createVertex(),Ue.node=null,Ue.Dj=1,Ue.layer=Re,Ue.near=x,a.dh(Ue),x=a.Zj(x,Ue,b.link),x.valid=!1,x.rev=b.rev,x.portFromColOffset=ne,x.portToColOffset=0,x.portFromPos=se,x.portToPos=0,x=Ue),Xe=1,Se&&Xe--,Re-pe>Xe&&0<Re){for(b.valid=!1,Ue=a.createVertex(),Ue.node=null,Ue.Dj=2,Ue.layer=Re-1,a.dh(Ue),x=a.Zj(x,Ue,b.link),x.valid=!0,x.rev=b.rev,x.portFromColOffset=Ae?0:ne,x.portToColOffset=0,x.portFromPos=Ae?0:se,x.portToPos=0,x=Ue,Re--;Re-pe>Xe&&0<Re;)Ue=a.createVertex(),Ue.node=null,Ue.Dj=3,Ue.layer=Re-1,a.dh(Ue),x=a.Zj(x,Ue,b.link),x.valid=!0,x.rev=b.rev,x.portFromColOffset=0,x.portToColOffset=0,x.portFromPos=0,x.portToPos=0,x=Ue,Re--;x=a.Zj(Ue,z,b.link),x.valid=!Se,Se&&(Ue.near=z),x.rev=b.rev,x.portFromColOffset=0,x.portToColOffset=re,x.portFromPos=0,x.portToPos=de}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,E=this.Md=this.Hn=0;E<=this.Ia;E++)a[E]>a[this.Md]&&(this.Iq=a[E]-1,this.Md=E),a[E]<a[this.Hn]&&(this.Hn=E);for(this.fl=[],E=0;E<a.length;E++)this.fl[E]=[];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),E=0,b=this.tc[a],z=0;z<b;z++)x=y[z],E+=this.nodeMinColumnSpace(x,!0),x.column=E,E+=1,E+=this.nodeMinColumnSpace(x,!1);this.Ra=Math.max(this.Ra,E-1),oh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},wo.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}wo.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},wo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var E=y?a.ev:a.dv;return E!==null?E:(E=this.K,E===90||E===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 Pl(a){a.kj===null&&(a.kj=[]);for(var y=0,E=a.network.vertexes.iterator;E.next();){var b=E.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function wu(a,y){var E=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[E],E++,b.column=y[E],E++,b.index=y[E],E++}}function Y1(a,y,E){var b=rh(a,y),x=a.tc[y];(a.Jn===null||a.Jn.length<x*x)&&(a.Jn=[]);for(var z=a.Jn,ne=0;ne<x;ne++){var re=0,se=b[ne],de=se.near;if(de!==null&&de.layer===se.layer)if(se=de.index,se>ne)for(var pe=ne+1;pe<se;pe++){var Se=b[pe];Se.near===de&&Se.Dj===de.Dj||re++}else for(pe=ne-1;pe>se;pe--)Se=b[pe],Se.near===de&&Se.Dj===de.Dj||re++;var Ae;if(0<=E)for(se=b[ne].sourceEdgesArrayAccess,de=0;de<se.length;de++){var Re=se[de];if(Re.valid&&Re.fromVertex.layer!==y)for(Se=Re.fromVertex.index,pe=Re.portToPos,Re=Re.portFromPos,Ae=de+1;Ae<se.length;Ae++){var Ue=se[Ae];if(Ue.valid&&Ue.fromVertex.layer!==y){var Xe=Ue.fromVertex.index,bt=Ue.portToPos;Ue=Ue.portFromPos,pe<bt&&(Se>Xe||Se===Xe&&Re>Ue)&&re++,bt<pe&&(Xe>Se||Xe===Se&&Ue>Re)&&re++}}}if(0>=E){for(se=b[ne].destinationEdgesArrayAccess,de=0;de<se.length;de++)if(Re=se[de],Re.valid&&Re.toVertex.layer!==y)for(Se=Re.toVertex.index,pe=Re.portToPos,Re=Re.portFromPos,Ae=de+1;Ae<se.length;Ae++)Ue=se[Ae],Ue.valid&&Ue.toVertex.layer!==y&&(Xe=Ue.toVertex.index,bt=Ue.portToPos,Ue=Ue.portFromPos,Re<Ue&&(Se>Xe||Se===Xe&&pe>bt)&&re++,Ue<Re&&(Xe>Se||Xe===Se&&bt>pe)&&re++)}for(z[ne*x+ne]=re,se=ne+1;se<x;se++){var ft=0,Pt=0;if(0<=E){re=b[ne].sourceEdgesArrayAccess;var Nt=b[se].sourceEdgesArrayAccess;for(de=0;de<re.length;de++)if(Re=re[de],Re.valid&&Re.fromVertex.layer!==y)for(Se=Re.fromVertex.index,Re=Re.portFromPos,Ae=0;Ae<Nt.length;Ae++)Ue=Nt[Ae],Ue.valid&&Ue.fromVertex.layer!==y&&(Xe=Ue.fromVertex.index,Ue=Ue.portFromPos,(Se<Xe||Se===Xe&&Re<Ue)&&Pt++,(Xe<Se||Xe===Se&&Ue<Re)&&ft++)}if(0>=E){for(re=b[ne].destinationEdgesArrayAccess,Nt=b[se].destinationEdgesArrayAccess,de=0;de<re.length;de++)if(Re=re[de],Re.valid&&Re.toVertex.layer!==y)for(Se=Re.toVertex.index,pe=Re.portToPos,Ae=0;Ae<Nt.length;Ae++)Ue=Nt[Ae],Ue.valid&&Ue.toVertex.layer!==y&&(Xe=Ue.toVertex.index,bt=Ue.portToPos,(Se<Xe||Se===Xe&&pe<bt)&&Pt++,(Xe<Se||Xe===Se&&bt<pe)&&ft++)}z[ne*x+se]=ft,z[se*x+ne]=Pt}}return oh(a,y,b),z}wo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var E=Y1(this,y,1),b=this.tc[y],x=0;x<b;x++)for(var z=x;z<b;z++)a+=E[x*b+z];return a};function P0(a){for(var y=0,E=0;E<=a.Ia;E++){for(var b=a,x=E,z=rh(b,x),ne=b.tc[x],re=0,se=0;se<ne;se++){var de=z[se].destinationEdgesArrayAccess;if(de!==null)for(var pe=0;pe<de.length;pe++){var Se=de[pe];if(Se.valid&&Se.toVertex.layer!==x){var Ae=Se.fromVertex.column+Se.portFromColOffset,Re=Se.toVertex.column+Se.portToColOffset;re+=(Math.abs(Ae-Re)+1)*vy(Se)}}}oh(b,x,z),y+=re}return y}wo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var E=y.value;a=Math.min(a,E.column-this.nodeMinColumnSpace(E,!0)),this.Ra=Math.max(this.Ra,E.column+this.nodeMinColumnSpace(E,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function yy(a,y,E){for(var b=rh(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var re=b[ne],se=null;0>=E&&(se=re.sourceEdgesArrayAccess);var de=null;0<=E&&(de=re.destinationEdgesArrayAccess);var pe=0,Se=0,Ae=re.near;if(Ae!==null&&Ae.layer===re.layer&&(pe+=Ae.column-1,Se++),se!==null)for(Ae=0;Ae<se.length;Ae++){re=se[Ae];var Re=re.fromVertex;re.valid&&!re.rev&&Re.layer!==y&&(pe+=Re.column,Se++)}if(de!==null)for(se=0;se<de.length;se++)re=de[se],Ae=re.toVertex,re.valid&&!re.rev&&Ae.layer!==y&&(pe+=Ae.column,Se++);z[ne]=Se===0?-1:pe/Se}return oh(a,y,b),z}function X1(a,y,E){for(var b=rh(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var re=b[ne],se=null;0>=E&&(se=re.sourceEdgesArrayAccess);var de=null;0<=E&&(de=re.destinationEdgesArrayAccess);var pe=0,Se=[],Ae=re.near;if(Ae!==null&&Ae.layer===re.layer&&(Se[pe]=Ae.column-1,pe++),re=void 0,se!==null)for(Ae=0;Ae<se.length;Ae++){re=se[Ae];var Re=re.fromVertex;re.valid&&!re.rev&&Re.layer!==y&&(Se[pe]=Re.column+re.portFromColOffset,pe++)}if(de!==null)for(se=0;se<de.length;se++)re=de[se],Ae=re.toVertex,re.valid&&!re.rev&&Ae.layer!==y&&(Se[pe]=Ae.column+re.portToColOffset,pe++);pe===0?z[ne]=-1:(Se.sort(function(Ue,Xe){return Ue-Xe}),de=pe>>1,z[ne]=pe&1?Se[de]:Se[de-1]+Se[de]>>1)}return oh(a,y,b),z}function Rg(a,y,E,b,x,z){if(y.component===b){if(y.component=E,x)for(var ne=y.destinationEdges;ne.next();){var re=ne.value,se=re.toVertex,de=y.layer-se.layer;re=a.linkMinLength(re),de===re&&Rg(a,se,E,b,x,z)}if(z)for(ne=y.sourceEdges;ne.next();)re=ne.value,se=re.fromVertex,de=se.layer-y.layer,re=a.linkMinLength(re),de===re&&Rg(a,se,E,b,x,z)}}function Sy(a,y,E,b,x,z){if(y.component===b){if(y.component=E,x)for(var ne=y.destinationEdges;ne.next();)Sy(a,ne.value.toVertex,E,b,x,z);if(z)for(y=y.sourceEdges;y.next();)Sy(a,y.value.fromVertex,E,b,x,z)}}wo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,E=a.vertexes.count-1,b=[];b.length=E+1;for(var x=a.vertexes.iterator;x.next();)x.value.valid=!0;for(;XE(a)!==null;){for(x=Q1(a);x!==null;)b[E]=x,E--,x.valid=!1,x=Q1(a);for(x=J1(a);x!==null;)b[y]=x,y++,x.valid=!1,x=J1(a);x=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value;if(re.valid){for(var se=0,de=re.destinationEdges;de.next();)de.value.toVertex.valid&&se++;de=0;for(var pe=re.sourceEdges;pe.next();)pe.value.fromVertex.valid&&de++;(x===null||z<se-de)&&(x=re,z=se-de)}}x!==null&&(b[y]=x,y++,x.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case L0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&Ey(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&Ey(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,E=y.finish,x=b.toVertex,z=x.finish,x.Ll<y.Ll&&E<z&&(this.network.gm(b),b.rev=!0));break;case Dg:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)E=y.value,x=b[E.layer],x===void 0?b[E.layer]=[E]:x.push(E);for(E=y=0;E<b.length;E++)if(x=b[E],!x||x.length===0)y++;else if(0<E)for(z=0;z<x.length;z++)x[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function XE(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 E=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){E=!1;break}if(E)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var E=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){E=!1;break}if(E)return y}}return null}function Ey(a,y){y.Ll=a.Kn,a.Kn++;for(var E=y.destinationEdges;E.next();){var b=E.value,x=b.toVertex;x.Ll===-1&&(b.forest=!0,Ey(a,x))}y.finish=a.Kn,a.Kn++}wo.prototype.assignLayers=function(){switch(this.Zk){case wy:q1(this);break;case Cy:for(var a,y=this.network.vertexes.iterator;y.next();)a=eE(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&&tE(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 E=y.value;E.layer-=a,this.Ia=Math.max(this.Ia,E.layer)}}};function q1(a){for(var y=a.network.vertexes.iterator;y.next();){var E=$1(a,y.value);a.Ia=Math.max(E,a.Ia)}}function $1(a,y){var E=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var x=b.value,z=x.toVertex;x=a.linkMinLength(x),E=Math.max(E,$1(a,z)+x)}y.layer=E}else E=y.layer;return E}function eE(a,y){var E=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var x=b.value,z=x.fromVertex;x=a.linkMinLength(x),E=Math.max(E,eE(a,z)+x)}y.layer=E}else E=y.layer;return E}function tE(a,y){if(!y.valid){y.valid=!0;for(var E=y.destinationEdges;E.next();)tE(a,E.value.toVertex);for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(var b=y.sourceEdgesArrayAccess,x=b.length,z=0;z<x;z++){var ne=b[z],re=ne.fromVertex,se=ne.toVertex;ne=a.linkMinLength(ne),re.layer-se.layer>ne&&Rg(a,re,0,-1,!0,!1)}for(Rg(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,se=null,ne=a.network.vertexes.iterator;ne.next();){var de=ne.value;if(de.component===1){var pe=0,Se=!1,Ae=de.sourceEdgesArrayAccess;x=Ae.length;for(var Re=0;Re<x;Re++){var Ue=Ae[Re],Xe=Ue.fromVertex;pe+=1,Xe.component!==1&&(z+=1,Xe=Xe.layer-de.layer,Ue=a.linkMinLength(Ue),b=Math.min(b,Xe-Ue))}for(Ae=de.destinationEdgesArrayAccess,x=Ae.length,Re=0;Re<x;Re++)Ue=Ae[Re].toVertex,--pe,Ue.component!==1?--z:Se=!0;(se===null||pe<re)&&!Se&&(se=de,re=pe)}}if(0<z){for(E.reset();E.next();)x=E.value,x.component===1&&(x.layer+=b);y.component=0}else se.component=0}for(E=a.network.vertexes.iterator;E.next();)E.value.component=-1;for(Rg(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,x=1/0,z=0,re=null,se=a.network.vertexes.iterator;se.next();)if(ne=se.value,ne.component===1){for(de=0,pe=!1,Ae=ne.sourceEdgesArrayAccess,Se=Ae.length,Re=0;Re<Se;Re++)Ue=Ae[Re].fromVertex,de+=1,Ue.component!==1?b+=1:pe=!0;for(Ae=ne.destinationEdgesArrayAccess,Se=Ae.length,Re=0;Re<Se;Re++)Ue=Ae[Re],Xe=Ue.toVertex,--de,Xe.component!==1&&(--b,Xe=ne.layer-Xe.layer,Ue=a.linkMinLength(Ue),x=Math.min(x,Xe-Ue));(re===null||de>z)&&!pe&&(re=ne,z=de)}if(0>b){for(E.reset();E.next();)b=E.value,b.component===1&&(b.layer-=x);y.component=0}else re.component=0}}}function nE(a,y,E){return a.K===90?E&&!y.rev||!E&&y.rev?270:90:a.K===180?E&&!y.rev||!E&&y.rev?0:180:a.K===270?E&&!y.rev||!E&&y.rev?90:270:E&&!y.rev||!E&&y.rev?180:0}wo.prototype.initializeIndices=function(){switch(this.Qk){default:case Py:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;y.index=this.tc[E],this.tc[E]++}break;case M0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&iE(this,E);break;case Ty:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)E=a.value,E.layer===y&&E.index===-1&&rE(this,E)}};function iE(a,y){var E=y.layer;for(y.index=a.tc[E],a.tc[E]++,y=y.destinationEdgesArrayAccess,E=!0;E;){E=!1;for(var b=0;b<y.length-1;b++){var x=y[b],z=y[b+1];x.portFromColOffset>z.portFromColOffset&&(E=!0,y[b]=z,y[b+1]=x)}}for(E=0;E<y.length;E++)b=y[E],b.valid&&(b=b.toVertex,b.index===-1&&iE(a,b))}function rE(a,y){var E=y.layer;y.index=a.tc[E],a.tc[E]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,E=0;E<y.length-1;E++){var x=y[E],z=y[E+1];x.portToColOffset>z.portToColOffset&&(b=!0,y[E]=z,y[E+1]=x)}for(E=0;E<y.length;E++)b=y[E],b.valid&&(b=b.fromVertex,b.index===-1&&rE(a,b))}wo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Pl(this),E,b;for(E=0;E<this.bj;E++){for(b=0;b<=this.Ia;b++)A0(this,b,1),Ru(this,b,1);var x=this.countCrossings();for(x<a&&(a=x,y=Pl(this)),b=this.Ia;0<=b;b--)A0(this,b,-1),Ru(this,b,-1);x=this.countCrossings(),x<a&&(a=x,y=Pl(this))}for(wu(this,y),E=0;E<this.bj;E++){for(b=0;b<=this.Ia;b++)A0(this,b,0),Ru(this,b,0);for(x=this.countCrossings(),x<a&&(a=x,y=Pl(this)),b=this.Ia;0<=b;b--)A0(this,b,0),Ru(this,b,0);x=this.countCrossings(),x<a&&(a=x,y=Pl(this))}wu(this,y);var z,ne,re;switch(this.rk){case Ay:break;case Ny:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,E=this.Ia;0<=E;E--)for(ne=0;ne<=E;ne++){for(z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Ru(this,b,-1)||z;for(x=this.countCrossings(),x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Ru(this,b,1)||z;for(x=this.countCrossings(),x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Ru(this,b,1)||z;for(x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Ru(this,b,-1)||z;for(x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Ru(this,b,0)||z;for(x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Ru(this,b,0)||z;x>=a?wu(this,y):(a=x,y=Pl(this))}break;default:case O0:for(E=this.Ia,ne=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Ru(this,b,-1)||z;for(x=this.countCrossings(),x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Ru(this,b,1)||z;for(x=this.countCrossings(),x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Ru(this,b,1)||z;for(x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Ru(this,b,-1)||z;for(x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=E;b>=ne;b--)z=Ru(this,b,0)||z;for(x>=a?wu(this,y):(a=x,y=Pl(this)),z=!0;z;)for(z=!1,b=ne;b<=E;b++)z=Ru(this,b,0)||z;x>=a?wu(this,y):(a=x,y=Pl(this))}}wu(this,y)};function A0(a,y,E){var b=rh(a,y),x=a.tc[y],z=X1(a,y,E),ne=yy(a,y,E);for(E=0;E<x;E++)ne[E]===-1&&(ne[E]=b[E].column),z[E]===-1&&(z[E]=b[E].column);for(var re=!0,se;re;)for(re=!1,E=0;E<x-1;E++)(z[E+1]<z[E]||z[E+1]===z[E]&&ne[E+1]<ne[E])&&(re=!0,se=z[E],z[E]=z[E+1],z[E+1]=se,se=ne[E],ne[E]=ne[E+1],ne[E+1]=se,se=b[E],b[E]=b[E+1],b[E+1]=se);for(E=z=0;E<x;E++)se=b[E],se.index=E,z+=a.nodeMinColumnSpace(se,!0),se.column=z,z+=1,z+=a.nodeMinColumnSpace(se,!1);oh(a,y,b)}function Ru(a,y,E){var b=rh(a,y),x=a.tc[y];E=Y1(a,y,E);var z,ne=[];for(z=0;z<x;z++)ne[z]=-1;var re=[];for(z=0;z<x;z++)re[z]=-1;for(var se=!1,de=!0;de;)for(de=!1,z=0;z<x-1;z++){var pe=E[b[z].index*x+b[z+1].index],Se=E[b[z+1].index*x+b[z].index],Ae=0,Re=0,Ue=b[z].column,Xe=b[z+1].column,bt=a.nodeMinColumnSpace(b[z],!0),ft=a.nodeMinColumnSpace(b[z],!1),Pt=a.nodeMinColumnSpace(b[z+1],!0),Nt=a.nodeMinColumnSpace(b[z+1],!1);bt=Ue-bt+Pt,ft=Xe-ft+Nt;var Dt=b[z].sourceEdges.iterator;for(Dt.reset();Dt.next();)if(Pt=Dt.value,Nt=Pt.fromVertex,Pt.valid&&Nt.layer===y){for(Pt=0;b[Pt]!==Nt;)Pt++;Pt<z&&(Ae+=2*(z-Pt),Re+=2*(z+1-Pt)),Pt===z+1&&(Ae+=1),Pt>z+1&&(Ae+=4*(Pt-z),Re+=4*(Pt-(z+1)))}for(Dt=b[z].destinationEdges.iterator,Dt.reset();Dt.next();)if(Pt=Dt.value,Nt=Pt.toVertex,Pt.valid&&Nt.layer===y){for(Pt=0;b[Pt]!==Nt;)Pt++;Pt===z+1&&(Re+=1)}for(Dt=b[z+1].sourceEdges.iterator,Dt.reset();Dt.next();)if(Pt=Dt.value,Nt=Pt.fromVertex,Pt.valid&&Nt.layer===y){for(Pt=0;b[Pt]!==Nt;)Pt++;Pt<z&&(Ae+=2*(z+1-Pt),Re+=2*(z-Pt)),Pt===z&&(Re+=1),Pt>z+1&&(Ae+=4*(Pt-(z+1)),Re+=4*(Pt-z))}for(Dt=b[z+1].destinationEdges.iterator,Dt.reset();Dt.next();)if(Pt=Dt.value,Nt=Pt.toVertex,Pt.valid&&Nt.layer===y){for(Pt=0;b[Pt]!==Nt;)Pt++;Pt===z&&(Ae+=1)}Pt=Nt=0,Dt=ne[b[z].index];var Yt=re[b[z].index],wn=ne[b[z+1].index],zi=re[b[z+1].index];Dt!==-1&&(Nt+=Math.abs(Dt-Ue),Pt+=Math.abs(Dt-ft)),Yt!==-1&&(Nt+=Math.abs(Yt-Ue),Pt+=Math.abs(Yt-ft)),wn!==-1&&(Nt+=Math.abs(wn-Xe),Pt+=Math.abs(wn-bt)),zi!==-1&&(Nt+=Math.abs(zi-Xe),Pt+=Math.abs(zi-bt)),(Re<Ae-.5||Re===Ae&&Se<pe-.5||Re===Ae&&Se===pe&&Pt<Nt-.5)&&(de=se=!0,b[z].column=ft,b[z+1].column=bt,pe=b[z],b[z]=b[z+1],b[z+1]=pe)}for(z=0;z<x;z++)b[z].index=z;return oh(a,y,b),se}wo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Nb)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var E=[];for(y=0;y<=this.Ia;y++)E[y]=0;for(var b,x=this.network.vertexes.iterator;x.next();){var z=x.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),E[y]=Math.max(E[y],b+z)}for(x.reset();x.next();)z=x.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-E[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(E=!0;E;){for(E=!1,y=this.Md+1;y<=this.Ia;y++)E=hp(this,y,1)||E;for(y=this.Md-1;0<=y;y--)E=hp(this,y,-1)||E;E=hp(this,this.Md,0)||E}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)by(this,y,1);for(y=this.Md-1;0<=y;y--)by(this,y,-1);by(this,this.Md,0)}if(a&&(oE(this,-1),oE(this,1)),this.bg&2)for(E=!0;E;){for(E=!1,E=hp(this,this.Md,0)||E,y=this.Md+1;y<=this.Ia;y++)E=hp(this,y,0)||E;for(y=this.Md-1;0<=y;y--)E=hp(this,y,0)||E}}else $E(this)};function hp(a,y,E){for(var b=!1;QE(a,y,E);)b=!0;return b}function QE(a,y,E){var b,x=rh(a,y),z=a.tc[y],ne=yy(a,y,-1);if(0<E)for(b=0;b<z;b++)ne[b]=-1;var re=yy(a,y,1);if(0>E)for(b=0;b<z;b++)re[b]=-1;for(var se=!1,de=!0;de;)for(de=!1,b=0;b<z;b++){var pe=x[b].column,Se=a.nodeMinColumnSpace(x[b],!0),Ae=a.nodeMinColumnSpace(x[b],!1),Re=0;0>b-1||pe-x[b-1].column-1>Se+a.nodeMinColumnSpace(x[b-1],!1)?Re=pe-1:Re=pe,Se=b+1>=z||x[b+1].column-pe-1>Ae+a.nodeMinColumnSpace(x[b+1],!0)?pe+1:pe;var Ue=Ae=0,Xe=0;if(0>=E)for(var bt=x[b].sourceEdges.iterator;bt.next();){var ft=bt.value,Pt=ft.fromVertex;if(ft.valid&&Pt.layer!==y){var Nt=vy(ft),Dt=ft.portFromColOffset;ft=ft.portToColOffset,Pt=Pt.column,Ae+=(Math.abs(pe+ft-(Pt+Dt))+1)*Nt,Ue+=(Math.abs(Re+ft-(Pt+Dt))+1)*Nt,Xe+=(Math.abs(Se+ft-(Pt+Dt))+1)*Nt}}if(0<=E)for(bt=x[b].destinationEdges.iterator;bt.next();)ft=bt.value,Pt=ft.toVertex,ft.valid&&Pt.layer!==y&&(Nt=vy(ft),Dt=ft.portFromColOffset,ft=ft.portToColOffset,Pt=Pt.column,Ae+=(Math.abs(pe+Dt-(Pt+ft))+1)*Nt,Ue+=(Math.abs(Re+Dt-(Pt+ft))+1)*Nt,Xe+=(Math.abs(Se+Dt-(Pt+ft))+1)*Nt);ft=Dt=Nt=0,bt=ne[x[b].index],Pt=re[x[b].index],bt!==-1&&(Nt+=Math.abs(bt-pe),Dt+=Math.abs(bt-Re),ft+=Math.abs(bt-Se)),Pt!==-1&&(Nt+=Math.abs(Pt-pe),Dt+=Math.abs(Pt-Re),ft+=Math.abs(Pt-Se)),Ue<Ae||Ue===Ae&&Dt<Nt?(de=se=!0,x[b].column=Re):(Xe<Ae||Xe===Ae&&ft<Nt)&&(de=se=!0,x[b].column=Se)}return oh(a,y,x),a.normalize(),se}function by(a,y,E){var b=rh(a,y),x=a.tc[y],z=X1(a,y,E),ne=[];for(E=0;E<x;E++)ne[E]=z[E];for(z=!0;z;)for(z=!1,E=0;E<x;E++){var re=b[E].column,se=a.nodeMinColumnSpace(b[E],!0),de=a.nodeMinColumnSpace(b[E],!1),pe=0;if(ne[E]===-1)if(E===0&&E===x-1)pe=re;else if(E===0){var Se=b[E+1].column;Se-re===de+a.nodeMinColumnSpace(b[E+1],!0)?pe=re-1:pe=re}else E===x-1?(Se=b[E-1].column,pe=re-Se===se+a.nodeMinColumnSpace(b[E-1],!1)?re+1:re):(Se=b[E-1].column,se=Se+a.nodeMinColumnSpace(b[E-1],!1)+se+1,Se=b[E+1].column,de=Se-a.nodeMinColumnSpace(b[E+1],!0)-de-1,pe=(se+de)/2|0);else E===0&&E===x-1?pe=ne[E]:E===0?(Se=b[E+1].column,de=Se-a.nodeMinColumnSpace(b[E+1],!0)-de-1,pe=Math.min(ne[E],de)):E===x-1?(Se=b[E-1].column,se=Se+a.nodeMinColumnSpace(b[E-1],!1)+se+1,pe=Math.max(ne[E],se)):(Se=b[E-1].column,se=Se+a.nodeMinColumnSpace(b[E-1],!1)+se+1,Se=b[E+1].column,de=Se-a.nodeMinColumnSpace(b[E+1],!0)-de-1,se<ne[E]&&ne[E]<de?pe=ne[E]:se>=ne[E]?pe=se:de<=ne[E]&&(pe=de));pe!==re&&(z=!0,b[E].column=pe)}oh(a,y,b),a.normalize()}function JE(a,y){for(var E=!0,b=a.network.vertexes.iterator;b.next();){var x=b.value,z=a.nodeMinColumnSpace(x,!0),ne=a.nodeMinColumnSpace(x,!1);if(x.column-z<=y&&x.column+ne>=y){E=!1;break}}if(a=!1,E)for(b.reset();b.next();)E=b.value,E.column>y&&(--E.column,a=!0);return a}function qE(a,y){var E=y+1,b,x=[],z=[];for(b=0;b<=a.Ia;b++)x[b]=!1,z[b]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){b=ne.value;var re=b.column-a.nodeMinColumnSpace(b,!0),se=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&se>=y&&(x[b.layer]=!0),re<=E&&se>=E&&(z[b.layer]=!0)}for(re=!0,E=!1,b=0;b<=a.Ia;b++)re=re&&!(x[b]&&z[b]);if(re)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,E=!0);return E}function oE(a,y){for(var E=0;E<=a.Ra;E++)for(;JE(a,E););for(a.normalize(),E=0;E<a.Ra;E++)for(;qE(a,E););a.normalize();var b;if(0<y)for(E=0;E<=a.Ra;E++){var x=Pl(a),z=P0(a);for(b=z+1;z<b;){b=z,aE(a,E,1);var ne=P0(a);ne>z?wu(a,x):ne<z&&(z=ne,x=Pl(a))}}if(0>y)for(E=a.Ra;0<=E;E--)for(x=Pl(a),z=P0(a),b=z+1;z<b;)b=z,aE(a,E,-1),ne=P0(a),ne>z?wu(a,x):ne<z&&(z=ne,x=Pl(a));a.normalize()}function aE(a,y,E){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<E)for(b.reset();b.next();){var x=b.value;x.column-a.nodeMinColumnSpace(x,!0)<=y&&(x.component=a.le)}if(0>E)for(b.reset();b.next();)x=b.value,x.column+a.nodeMinColumnSpace(x,!1)>=y&&(x.component=a.le);for(a.le++,b.reset();b.next();)y=b.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(x=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)x[z]=-1;for(b.reset();b.next();){z=b.value;for(var ne=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),se=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=se;re++)x[ne*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<E)for(ne=0;ne<a.Ra;ne++)x[z*(a.Ra+1)+ne]!==-1&&x[z*(a.Ra+1)+ne+1]!==-1&&x[z*(a.Ra+1)+ne]!==x[z*(a.Ra+1)+ne+1]&&(y[x[z*(a.Ra+1)+ne]*a.le+x[z*(a.Ra+1)+ne+1]]=!0);if(0>E)for(ne=a.Ra;0<ne;ne--)x[z*(a.Ra+1)+ne]!==-1&&x[z*(a.Ra+1)+ne-1]!==-1&&x[z*(a.Ra+1)+ne]!==x[z*(a.Ra+1)+ne-1]&&(y[x[z*(a.Ra+1)+ne]*a.le+x[z*(a.Ra+1)+ne-1]]=!0)}for(x=[],z=0;z<a.le;z++)x[z]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(se=ne[ne.length-1],ne.pop(),x[se])for(x[se]=!1,z=0;z<a.le;z++)y[se*a.le+z]&&ne.splice(0,0,z);if(0<E)for(b.reset();b.next();)a=b.value,x[a.component]&&--a.column;if(0>E)for(b.reset();b.next();)E=b.value,x[E.component]&&(E.column+=1)}function $E(a){for(var y=Pi(),E=a.fl.length,b=0;b<=E;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var x=b.value;y[E-x.layer][x.index]=x}E=new $n,Sb(y,E);var z=null,ne=null,re=null,se=null,de=(a.ve&1)!==0,pe=(a.ve&2)!==0,Se=(a.ve&4)!==0,Ae=(a.ve&8)!==0;for(de&&(a.verticalAlignment(y,E,!0),z=N0(a,y,!0,!1)),y.reverse(),Se&&(a.verticalAlignment(y,E,!1),re=N0(a,y,!1,!1)),b=ti(y),x=b.next();!x.done;x=b.next())x.value.reverse();Ae&&(a.verticalAlignment(y,E,!1),se=N0(a,y,!1,!0)),y.reverse(),pe&&(a.verticalAlignment(y,E,!0),ne=N0(a,y,!0,!0)),Ai(y),a.u(z,ne,re,se),a.network.vertexes.each(function(Re){var Ue=Pi();de&&Ue.push(z.get(Re)),pe&&Ue.push(ne.get(Re)),Se&&Ue.push(re.get(Re)),Ae&&Ue.push(se.get(Re)),Ue.sort(function(bt,ft){return bt-ft});var Xe=Ue.length;Xe=(Ue[Math.floor((Xe-1)/2)]+Ue[Math.ceil((Xe-1)/2)])/2,Ai(Ue),Re.zc=Xe})}function Sb(a,y){for(var E=a.length,b=1;b<E-1;b++)for(var x=0,z=0,ne=a[b],re=a[b+1],se=0;z<re.length;se++){var de=re[se];e:{if(de.node===null){var pe=ky(de);if(0<pe.length){pe=pe[0].node===null;break e}}pe=!1}var Se=pe;if(se===re.length-1||Se){for(pe=ne.length-1,Se&&(pe=ky(de)[0].index);z<=se;){if(de=re[z],!de.bo){Se=[];for(var Ae=ti(de.sourceEdgesArrayAccess),Re=Ae.next();!Re.done;Re=Ae.next())Re=Re.value,Re.valid&&Se.push(Re);de.bo=Se}for(de=ti(de.bo),Se=de.next();!Se.done;Se=de.next())Se=Se.value,Ae=Se.fromVertex.index,(Ae<x||Ae>pe)&&y.add(Se);z++}x=pe}}}wo.prototype.verticalAlignment=function(a,y,E){Tb(a),a=ti(a);for(var b=a.next();!b.done;b=a.next()){var x=-1;b=ti(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ne=E?ky(z):Lb(z),re=ne.length;if(0<re){ne.sort(function(Se,Ae){return Se.vi-Ae.vi});var se=(re-1)/2;for(re=Math.floor(se),se=Math.ceil(se);re<=se;re++)if(z.align===z){var de=ne[re],pe=void 0;pe=E?R0(de,z):R0(z,de),!y.contains(pe)&&x<de.vi&&(de.align=z,z.root=de.root,z.align=de.root,x=de.vi)}}}}};function Tb(a){for(var y=0;y<a.length;y++)for(var E=a[y],b=0;b<E.length;b++){var x=E[b];x.root=x,x.align=x,x.Tz=y,x.vi=b}}function N0(a,y,E,b){for(var x=a.K===90||a.K===270,z=ti(y),ne=z.next();!ne.done;ne=z.next()){var re=ti(ne.value);for(ne=re.next();!ne.done;ne=re.next())ne=ne.value,ne.sd=ne,ne.shift=1/0,ne.zc=NaN,ne.qg=0}for(ne=a.K===90||a.K===270,z=ti(y),re=z.next();!re.done;re=z.next()){re=ti(re.value);for(var se=re.next();!se.done;se=re.next())if(se=se.value,se.root===se){for(var de=0,pe=se;pe.align!==se;){var Se=pe.align,Ae=ne?pe.width:pe.height,Re=ne?Se.width:Se.height;if(E){var Ue=R0(pe,Se),Xe=Ue.portFromPos,bt=Ue.portToPos;Ue.link!==null&&(pe.node&&pe.node!==Ue.link.fromNode&&(Xe=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==Ue.link.toNode&&(bt=ne?Se.focusX:Se.focusY))}else Ue=R0(Se,pe),Xe=Ue.portToPos,bt=Ue.portFromPos,Ue.link!==null&&(pe.node&&pe.node!==Ue.link.toNode&&(Xe=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==Ue.link.fromNode&&(bt=ne?Se.focusX:Se.focusY));Ae=b?pe.qg+(Ae-Xe)-(Re-bt):pe.qg+Xe-bt,Se.qg=Ae,de=Math.min(de,Ae),pe=pe.align}pe=se;do pe.qg=pe.qg-de,pe=pe.align;while(pe!==se)}}for(E=ti(y),ne=E.next();!ne.done;ne=E.next())for(z=ti(ne.value),ne=z.next();!ne.done;ne=z.next())ne=ne.value,ne.root===ne&&sE(a,ne,y);for(E=0;E<y.length;E++)if(!(0>=y[E].length)&&(ne=y[E][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=E,re=0;do{for(z=y[ne][re];z.align!==z.root;)z=z.align,ne++,0<z.vi&&(re=lE(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(x?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ne<y.length&&re<y[ne].length&&z.sd===y[ne][re].sd)}for(a=new yn,y=ti(y),ne=y.next();!ne.done;ne=y.next())for(E=ti(ne.value),ne=E.next();!ne.done;ne=E.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,z=x?ne.width:ne.height,a.add(ne,b?-ne.zc-z:ne.zc);return a}function sE(a,y,E){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var x=lE(b,E),z=x.root;sE(a,z,E),y.sd===y&&(y.sd=z.sd);var ne=a.K===90||a.K===270?x.width:x.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+x.qg+ne-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function lE(a,y){var E=a.Tz;return a=a.vi,1>a&&Ct("Could not determine previous vertex in layer"),y[E][a-1]}wo.prototype.u=function(a){for(var y=[],E=0;E<arguments.length;++E)y[E]=arguments[E];E=-1;for(var b=Pi(),x=Pi(),z=1/0,ne=0;4>ne;ne++)if(y[ne]){var re=Pb(this,y[ne],b,x,ne);re<z&&(E=ne,z=re)}for(z={},ne=0;4>ne;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?b[E]-b[ne]:x[E]-x[ne],z.delta!==0&&y[ne].each(function(se){return function(de){de.value+=se.delta}}(z)));Ai(b),Ai(x)};function Pb(a,y,E,b,x){if(!y||y.count===0)return E[x]=0,b[x]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(re){var se=re.key;re=re.value,se=a.K===90||a.K===270?se.width:se.height,re<z&&(z=re),re+se>ne&&(ne=re+se)}),E[x]=z,b[x]=ne,ne-z}wo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(this,!1),E=this.network.edges.iterator;E.next();){var b=E.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function k0(a,y){return a.K===270?y?ls:is:a.K===90?y?is:ls:a.K===180?y?Es:Va:y?Va:Es}wo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,E=y.layer;this.he[E]=Math.max(this.he[E],this.nodeMinLayerSpace(y,!0)),this.Ld[E]=Math.max(this.Ld[E],this.nodeMinLayerSpace(y,!1))}y=0,E=this.ie;for(var b=0;b<=this.Ia;b++){var x=E;0>=this.he[b]+this.Ld[b]&&(x=0),0<b&&(y+=x/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=x/2),this.Ta[b]=y}for(E=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+E-this.Kd[b],this.Ta[b]=E-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+E-this.Kd[b],this.Ta[b]=E-this.Ta[b]);E=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,ne=x=1/0,re=-1/0;a.next();){var se=a.value,de=se.layer,pe=se.column|0;b?(ne=y.x+this.kc*pe,de=this.Kd[de]):(ne=this.Kd[de],de=y.y+this.kc*pe),se.centerX=ne,se.centerY=de,E&&isFinite(se.zc)&&(b?se.node?se.x=y.x+se.zc:se.centerX=y.x+se.zc:se.node?se.y=y.y+se.zc:se.centerY=y.y+se.zc),z=Math.min(se.x,z),x=Math.min(se.y,x),b?(ne=z,re=Math.max(re,se.bounds.right)):(ne=x,re=Math.max(re,se.bounds.bottom))}for(this.xw=re-ne,z=y.x-z,y=y.y-x,this.Rf=new rt(E&&b?0:z,E&&!b?0:y),a.reset();a.next();)E=a.value,E.x+=z,E.y+=y,E.commit()},wo.prototype.Gu=function(){for(var a=0,y=this.ie,E=0;E<=this.Ia;E++)a+=this.he[E],a+=this.Ld[E];a+=this.Ia*y,y=[],E=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new xn(0,0,E,Math.abs(this.Ta[0]))):y.push(new xn(0,this.Ta[b-1],E,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new xn(0,this.Ta[0],E,Math.abs(this.Ta[0]-a))):y.push(new xn(0,this.Ta[b],E,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new xn(0,0,Math.abs(this.Ta[0]),E)):y.push(new xn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),E)):b===0?y.push(new xn(this.Ta[0],0,Math.abs(this.Ta[0]-a),E)):y.push(new xn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),E));this.commitLayers(y,this.Rf)},wo.prototype.commitLayers=function(){},wo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var E=a.value;if(y=E.link,y!==null){y.uh();var b=y,x=b.fromNode,z=b.toNode,ne=b.fromPort,re=b.toPort;if(x!==null){var se=x.findVisibleNode();se!==null&&se!==x&&(x=se,ne=se.port)}z!==null&&(se=z.findVisibleNode(),se!==null&&se!==z&&(z=se,re=se.port));var de=y.computeSpot(!0,ne);se=y.computeSpot(!1,re);var pe=E.fromVertex,Se=E.toVertex;if(E.valid)y.curve===su&&y.pointsCount===4&&(pe.column===Se.column&&this.alignOption===0?(E=y.getLinkPoint(x,ne,de,!0,!1,z,re),re=y.getLinkPoint(z,re,se,!1,!1,x,ne),E.w()||E.set(x.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(E.x,E.y),y.yf((2*E.x+re.x)/3,(2*E.y+re.y)/3),y.yf((E.x+2*re.x)/3,(E.y+2*re.y)/3),y.yf(re.x,re.y)):(E=b=!1,ne!==null&&de===Mr&&(b=!0),re!==null&&se===Mr&&(E=!0),(b||E)&&(se=null,b&&(se=y.getLinkPointFromPoint(x,ne,ne.ga(Dr),y.i(3),!0),se.w()||se.set(x.actualBounds.center),y.L(0,se.x,se.y)),x=null,E&&(x=y.getLinkPointFromPoint(z,re,re.ga(Dr),y.i(0),!1),x.w()||x.set(z.actualBounds.center),y.L(3,x.x,x.y)),se&&(z=y.i(2),y.L(1,(2*se.x+z.x)/3,(2*se.y+z.y)/3)),x&&(z=y.i(1),y.L(2,(2*x.x+z.x)/3,(2*x.y+z.y)/3))))),y.zf();else if(pe.layer===Se.layer)y.zf();else{var Ae=!1,Re=!1,Ue=this.ie,Xe=y.firstPickIndex+1;if(y.isOrthogonal){Re=!0;var bt=y.pointsCount;4<bt&&y.points.removeRange(2,bt-3)}else if(y.curve===su)Ae=!0,bt=y.pointsCount,4<bt&&y.points.removeRange(2,bt-3),bt===4&&(Xe=2);else{bt=y.pointsCount;var ft=de===Mr,Pt=se===Mr;2<bt&&ft&&Pt?y.points.removeRange(1,bt-2):3<bt&&ft&&!Pt?y.points.removeRange(1,bt-3):3<bt&&!ft&&Pt?y.points.removeRange(2,bt-2):4<bt&&!ft&&!Pt&&y.points.removeRange(2,bt-3)}if(E.rev){for(;Se!==null&&pe!==Se;){var Nt=bt=null;for(ft=Se.sourceEdges.iterator;ft.next()&&(Pt=ft.value,Pt.link!==E.link||(bt=Pt.fromVertex,Nt=Pt.toVertex,bt.node!==null)););if(bt===null)break;if(bt!==pe){ft=y.i(Xe-1).x,Pt=y.i(Xe-1).y;var Dt=bt.centerX,Yt=bt.centerY;if(Re)this.K===180||this.K===0?Xe===y.firstPickIndex+1?(y.m(Xe++,ft,Pt),y.m(Xe++,ft,Yt)):(Nt!==null?Nt.centerY:Pt)!==Yt&&(Nt=this.Ta[bt.layer-1]+this.Rf.x,y.m(Xe++,Nt,Pt),y.m(Xe++,Nt,Yt)):Xe===y.firstPickIndex+1?(y.m(Xe++,ft,Pt),y.m(Xe++,Dt,Pt)):(Nt!==null?Nt.centerX:ft)!==Dt&&(Nt=this.Ta[bt.layer-1]+this.Rf.y,y.m(Xe++,ft,Nt),y.m(Xe++,Dt,Nt));else if(Xe===y.firstPickIndex+1){Nt=Math.max(10,this.he[Se.layer]);var wn=Math.max(10,this.Ld[Se.layer]);if(Ae)this.K===180?Dt<=Se.bounds.x?(Se=Se.bounds.x,y.m(Xe++,Se-Nt,Yt),y.m(Xe++,Se,Yt),y.m(Xe++,Se+wn,Yt)):(y.m(Xe++,Dt-Nt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt+wn,Yt)):this.K===90?Yt>=Se.bounds.bottom?(Se=Se.bounds.y+Se.bounds.height,y.m(Xe++,Dt,Se+wn),y.m(Xe++,Dt,Se),y.m(Xe++,Dt,Se-Nt)):(y.m(Xe++,Dt,Yt+wn),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt-Nt)):this.K===270?Yt<=Se.bounds.y?(Se=Se.bounds.y,y.m(Xe++,Dt,Se-Nt),y.m(Xe++,Dt,Se),y.m(Xe++,Dt,Se+wn)):(y.m(Xe++,Dt,Yt-Nt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt+wn)):this.K===0&&(Dt>=Se.bounds.right?(Se=Se.bounds.x+Se.bounds.width,y.m(Xe++,Se+wn,Yt),y.m(Xe++,Se,Yt),y.m(Xe++,Se-Nt,Yt)):(y.m(Xe++,Dt+wn,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt-Nt,Yt)));else{y.m(Xe++,ft,Pt);var zi=0;this.K===180||this.K===0?((this.K===180?Dt>=Se.bounds.right:Dt<=Se.bounds.x)&&(zi=(this.K===0?-Nt:wn)/2),y.m(Xe++,ft+zi,Yt)):((this.K===270?Yt>=Se.bounds.bottom:Yt<=Se.bounds.y)&&(zi=(this.K===90?-Nt:wn)/2),y.m(Xe++,Dt,Pt+zi)),y.m(Xe++,Dt,Yt)}}else Nt=Math.max(10,this.he[bt.layer]),wn=Math.max(10,this.Ld[bt.layer]),Ae?this.K===180?(y.m(Xe++,Dt-Nt-Ue,Yt),y.m(Xe++,Math.min(Dt-Nt+Ue/2,Dt),Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Math.max(Dt+wn-Ue/2,Dt),Yt),y.m(Xe++,Dt+wn+Ue,Yt)):this.K===90?(y.m(Xe++,Dt,Yt+wn+Ue),y.m(Xe++,Dt,Math.max(Yt+wn-Ue/2,Yt)),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Math.min(Yt-Nt+Ue/2,Yt)),y.m(Xe++,Dt,Yt-Nt-Ue)):this.K===270?(y.m(Xe++,Dt,Yt-Nt-Ue),y.m(Xe++,Dt,Math.min(Yt-Nt+Ue/2,Yt)),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Math.max(Yt+wn-Ue/2,Yt)),y.m(Xe++,Dt,Yt+wn+Ue)):(y.m(Xe++,Dt+wn+Ue,Yt),y.m(Xe++,Math.max(Dt+wn-Ue/2,Dt),Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Math.min(Dt-Nt+Ue/2,Dt),Yt),y.m(Xe++,Dt-Nt-Ue,Yt)):y.m(Xe++,Dt,Yt)}Se=bt}(re===null||de!==Mr||Re)&&(ft=y.i(Xe-1).x,Pt=y.i(Xe-1).y,Dt=y.i(Xe).x,Yt=y.i(Xe).y,Re?(Ue=this.Ld[pe.layer],this.K===180||this.K===0?(Re=Pt,Re>=pe.bounds.y&&Re<=pe.bounds.bottom&&(this.K===180?Dt>=pe.bounds.x:Dt<=pe.bounds.right)&&(Se=pe.centerX+(this.K===180?-Ue:Ue),Re<pe.bounds.y+pe.bounds.height/2?Re=pe.bounds.y-this.kc/2:Re=pe.bounds.bottom+this.kc/2,y.m(Xe++,Se,Pt),y.m(Xe++,Se,Re)),y.m(Xe++,Dt,Re)):(Re=ft,Re>=pe.bounds.x&&Re<=pe.bounds.right&&(this.K===270?Yt>=pe.bounds.y:Yt<=pe.bounds.bottom)&&(Se=pe.centerY+(this.K===270?-Ue:Ue),Re<pe.bounds.x+pe.bounds.width/2?Re=pe.bounds.x-this.kc/2:Re=pe.bounds.right+this.kc/2,y.m(Xe++,ft,Se),y.m(Xe++,Re,Se)),y.m(Xe++,Re,Yt)),y.m(Xe++,Dt,Yt)):Ae?(Nt=Math.max(10,this.he[pe.layer]),wn=Math.max(10,this.Ld[pe.layer]),this.K===180&&Dt>=pe.bounds.x?(Se=pe.bounds.x+pe.bounds.width,y.L(Xe-2,Se,Pt),y.L(Xe-1,Se+wn,Pt)):this.K===90&&Yt<=pe.bounds.bottom?(Se=pe.bounds.y,y.L(Xe-2,ft,Se),y.L(Xe-1,ft,Se-Nt)):this.K===270&&Yt>=pe.bounds.y?(Se=pe.bounds.y+pe.bounds.height,y.L(Xe-2,ft,Se),y.L(Xe-1,ft,Se+wn)):this.K===0&&Dt<=pe.bounds.right&&(Se=pe.bounds.x,y.L(Xe-2,Se,Pt),y.L(Xe-1,Se-Nt,Pt))):(Nt=Math.max(10,this.he[pe.layer]),wn=Math.max(10,this.Ld[pe.layer]),Re=0,this.K===180||this.K===0?((this.K===180?Dt<=pe.bounds.x:Dt>=pe.bounds.right)&&(Re=(this.K===0?wn:-Nt)/2),y.m(Xe++,Dt+Re,Pt)):((this.K===270?Yt<=pe.bounds.y:Yt>=pe.bounds.bottom)&&(Re=(this.K===90?wn:-Nt)/2),y.m(Xe++,ft,Yt+Re)),y.m(Xe++,Dt,Yt)))}else{for(;pe!==null&&pe!==Se;){for(Nt=bt=null,pe=pe.destinationEdges.iterator;pe.next()&&(ft=pe.value,ft.link!==E.link||(bt=ft.toVertex,Nt=ft.fromVertex,Nt.node!==null&&(Nt=null),bt.node!==null)););if(bt===null)break;bt!==Se&&(ft=y.i(Xe-1).x,Pt=y.i(Xe-1).y,Dt=bt.centerX,Yt=bt.centerY,Re?this.K===180||this.K===0?(Nt!==null?Nt.centerY:Pt)!==Yt&&(Nt=this.Ta[bt.layer]+this.Rf.x,Xe===y.firstPickIndex+1&&(Nt=this.K===0?Math.max(Nt,ft):Math.min(Nt,ft)),y.m(Xe++,Nt,Pt),y.m(Xe++,Nt,Yt)):(Nt!==null?Nt.centerX:ft)!==Dt&&(Nt=this.Ta[bt.layer]+this.Rf.y,Xe===y.firstPickIndex+1&&(Nt=this.K===90?Math.max(Nt,Pt):Math.min(Nt,Pt)),y.m(Xe++,ft,Nt),y.m(Xe++,Dt,Nt)):(Nt=Math.max(10,this.he[bt.layer]),wn=Math.max(10,this.Ld[bt.layer]),Ae?this.K===180?(y.m(Xe++,Dt+wn+Ue,Yt),y.m(Xe++,Math.max(Dt+wn-Ue/2,Dt),Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Math.min(Dt-Nt+Ue/2,Dt),Yt),y.m(Xe++,Dt-Nt-Ue,Yt)):this.K===90?(y.m(Xe++,Dt,Yt-Nt-Ue),y.m(Xe++,Dt,Math.min(Yt-Nt+Ue/2,Yt)),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Math.max(Yt+wn-Ue/2,Yt)),y.m(Xe++,Dt,Yt+wn+Ue)):this.K===270?(y.m(Xe++,Dt,Yt+wn+Ue),y.m(Xe++,Dt,Math.max(Yt+wn-Ue/2,Yt)),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Math.min(Yt-Nt+Ue/2,Yt)),y.m(Xe++,Dt,Yt-Nt-Ue)):(y.m(Xe++,Dt-Nt-Ue,Yt),y.m(Xe++,Math.min(Dt-Nt+Ue/2,Dt),Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Dt,Yt),y.m(Xe++,Math.max(Dt+wn-Ue/2,Dt),Yt),y.m(Xe++,Dt+wn+Ue,Yt)):this.K===180?(y.m(Xe++,Dt+wn,Yt),y.m(Xe++,Dt-Nt,Yt)):this.K===90?(y.m(Xe++,Dt,Yt-Nt),y.m(Xe++,Dt,Yt+wn)):this.K===270?(y.m(Xe++,Dt,Yt+wn),y.m(Xe++,Dt,Yt-Nt)):(y.m(Xe++,Dt-Nt,Yt),y.m(Xe++,Dt+wn,Yt)))),pe=bt}Re&&(ft=y.i(Xe-1).x,Pt=y.i(Xe-1).y,Dt=y.i(Xe).x,Yt=y.i(Xe).y,this.K===180||this.K===0?Pt!==Yt&&(Nt=this.K===0?Math.min(Math.max((Dt+ft)/2,this.Ta[Se.layer]+this.Rf.x),Dt):Math.max(Math.min((Dt+ft)/2,this.Ta[Se.layer]+this.Rf.x),Dt),y.m(Xe++,Nt,Pt),y.m(Xe++,Nt,Yt)):ft!==Dt&&(Nt=this.K===90?Math.min(Math.max((Yt+Pt)/2,this.Ta[Se.layer]+this.Rf.y),Yt):Math.max(Math.min((Yt+Pt)/2,this.Ta[Se.layer]+this.Rf.y),Yt),y.m(Xe++,ft,Nt),y.m(Xe++,Dt,Nt)))}b!==null&&Ae&&4<=y.pointsCount&&(ne!==null&&(ne=de===Mr?y.getLinkPointFromPoint(x,ne,ne.ga(Dr),y.i(3),!0):y.i(0),de===Mr&&(de=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+de.x)/2,de.y),y.L(2,b.x,(de.y+b.y)/2)):(y.L(1,de.x,(ne.y+de.y)/2),y.L(2,(de.x+b.x)/2,b.y))),ne.w()||ne.set(x.actualBounds.center),y.L(0,ne.x,ne.y)),re!==null&&(x=se===Mr?y.getLinkPointFromPoint(z,re,re.ga(Dr),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),se===Mr&&(re=y.i(y.pointsCount-3),se=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(x.x+re.x)/2,re.y),y.L(y.pointsCount-2,se.x,(re.y+se.y)/2)):(y.L(y.pointsCount-2,re.x,(x.y+re.y)/2),y.L(y.pointsCount-3,(re.x+se.x)/2,se.y))),x.w()||x.set(z.actualBounds.center),y.L(y.pointsCount-1,x.x,x.y))),y.zf(),E.commit()}}}this.avoidOrthogonalOverlaps()},wo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Wn,y=this.network.edges.iterator;y.next();){var E=y.value.link;E!==null&&E.isOrthogonal&&!a.contains(E)&&a.add(E)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,E=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var x=2;x<b.pointsCount-3;x++){var z=b.i(x),ne=b.i(x+1);if(this.B(z.y,ne.y)&&!this.B(z.x,ne.x)){var re=new ah;re.layer=Math.floor(z.y/2);var se=b.i(0),de=b.i(b.pointsCount-1);if(re.first=se.x*se.x+se.y,re.jc=de.x*de.x+de.y,re.rd=Math.min(z.x,ne.x),re.Ic=Math.max(z.x,ne.x),re.index=x,re.link=b,x+2<b.pointsCount){se=b.i(x-1),de=b.i(x+2);var pe=0;se.y<z.y?pe=de.y<z.y?3:z.x<ne.x?2:1:se.y>z.y&&(pe=de.y>z.y?0:ne.x<z.x?2:1),re.j=pe}E.push(re)}}}if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,b=a+1;b<E.length&&E[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ne=E[z].Ic,x=a+1;x<b&&E[x].rd<ne;)ne=Math.max(ne,E[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(E,this.Js,z,z+ne),pe=1,re=E[z].jc,se=z;se<x;se++)de=E[se],de.jc!==re&&(pe++,re=de.jc);this.zi(E,this.Ux,z,z+ne);var Se=1;for(re=E[z].first,se=z;se<x;se++)de=E[se],de.first!==re&&(Se++,re=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,re=E[z].jc,this.zi(E,this.Js,z,z+ne)):re=E[z].first,pe=0,Se=z;Se<x;Se++){var Ae=E[Se];(se?Ae.first:Ae.jc)!==re&&(pe++,re=se?Ae.first:Ae.jc);var Re=Ae.link;z=Re.i(Ae.index),ne=Re.i(Ae.index+1);var Ue=this.linkSpacing*(pe-(de-1)/2);y++,Re.uh(),Re.L(Ae.index,z.x,z.y+Ue),Re.L(Ae.index+1,ne.x,ne.y+Ue),Re.zf()}}z=x}a=b}}else{for(y=0,E=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(x=2;x<b.pointsCount-3;x++)z=b.i(x),ne=b.i(x+1),this.B(z.x,ne.x)&&!this.B(z.y,ne.y)&&(re=new ah,re.layer=Math.floor(z.x/2),se=b.i(0),de=b.i(b.pointsCount-1),re.first=se.x+se.y*se.y,re.jc=de.x+de.y*de.y,re.rd=Math.min(z.y,ne.y),re.Ic=Math.max(z.y,ne.y),re.index=x,re.link=b,x+2<b.pointsCount&&(se=b.i(x-1),de=b.i(x+2),pe=0,se.x<z.x?pe=de.x<z.x?3:z.y<ne.y?2:1:se.x>z.x&&(pe=de.x>z.x?0:ne.y<z.y?2:1),re.j=pe),E.push(re));if(1<E.length)for(E.sort(this.Vx),a=0;a<E.length;){for(z=E[a].layer,b=a+1;b<E.length&&E[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(ne=E[z].Ic,x=a+1;x<b&&E[x].rd<ne;)ne=Math.max(ne,E[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(E,this.Js,z,z+ne),pe=1,re=E[z].jc,se=z;se<x;se++)de=E[se],de.jc!==re&&(pe++,re=de.jc);for(this.zi(E,this.Ux,z,z+ne),Se=1,re=E[z].first,se=z;se<x;se++)de=E[se],de.first!==re&&(Se++,re=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,re=E[z].jc,this.zi(E,this.Js,z,z+ne)):re=E[z].first,pe=0,Se=z;Se<x;Se++)Ae=E[Se],(se?Ae.first:Ae.jc)!==re&&(pe++,re=se?Ae.first:Ae.jc),Re=Ae.link,z=Re.i(Ae.index),ne=Re.i(Ae.index+1),Ue=this.linkSpacing*(pe-(de-1)/2),y++,Re.uh(),Re.L(Ae.index,z.x+Ue,z.y),Re.L(Ae.index+1,ne.x+Ue,ne.y),Re.zf()}z=x}a=b}}}},Me=wo.prototype,Me.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},Me.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},Me.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},Me.B=function(a,y){return a-=y,-1<a&&1>a},Me.zi=function(a,y,E,b){var x=a.length,z=b-E;if(!(1>=z))if((0>E||E>=x-1)&&Ct("not in range 0 <= from < length: "+E),z===2)b=a[E],x=a[E+1],0<y(b,x)&&(a[E]=x,a[E+1]=b);else if(E===0)if(b>=x)a.sort(y);else for(E=a.slice(0,b),E.sort(y),y=0;y<b;y++)a[y]=E[y];else if(b>=x)for(b=a.slice(E),b.sort(y),y=E;y<x;y++)a[y]=b[y-E];else for(x=a.slice(E,b),x.sort(y),y=E;y<b;y++)a[y]=x[y-E]};function rh(a,y){var E=a.tc[y];if(E>=a.He.length){for(var b=[],x=0;x<a.He.length;x++)b[x]=a.He[x];a.He=b}for(a.He[E]===void 0||a.He[E]===null?b=[]:(b=a.He[E],a.He[E]=null),a=a.fl[y],y=0;y<a.length;y++)E=a[y],b[E.index]=E;return b}function oh(a,y,E){a.He[a.tc[y]]=E}_n.Object.defineProperties(wo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):Ct("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==L0&&a!==Dg||(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!==Py||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ay&&a!==O0&&a!==Ny||(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 pn(wo,"CycleDepthFirst",0),xy=new pn(wo,"CycleGreedy",1),Dg=new pn(wo,"CycleFromLayers",2),I0=new pn(wo,"LayerOptimalLinkLength",0),wy=new pn(wo,"LayerLongestPathSink",1),Cy=new pn(wo,"LayerLongestPathSource",2),M0=new pn(wo,"InitDepthFirstOut",0),Ty=new pn(wo,"InitDepthFirstIn",1),Py=new pn(wo,"InitNaive",2),Ay=new pn(wo,"AggressiveNone",0),O0=new pn(wo,"AggressiveLess",1),Ny=new pn(wo,"AggressiveMore",2),Nb=8;wo.className="LayeredDigraphLayout",wo.CycleDepthFirst=L0,wo.CycleGreedy=xy,wo.CycleFromLayers=Dg,wo.LayerOptimalLinkLength=I0,wo.LayerLongestPathSink=wy,wo.LayerLongestPathSource=Cy,wo.InitDepthFirstOut=M0,wo.InitDepthFirstIn=Ty,wo.InitNaive=Py,wo.AggressiveNone=Ay,wo.AggressiveLess=O0,wo.AggressiveMore=Ny,wo.PackNone=0,wo.PackExpand=1,wo.PackStraighten=2,wo.PackMedian=4,wo.PackAll=15,wo.AlignNone=0,wo.AlignUpperLeft=1,wo.AlignUpperRight=2,wo.AlignLowerLeft=4,wo.AlignLowerRight=8,wo.AlignAll=15;function ah(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ah.className="SegInfo";function fp(a){zo.call(this,a)}dn(fp,zo),fp.prototype.createVertex=function(){return new Cu(this)},fp.prototype.createEdge=function(){return new Fg(this)},fp.className="LayeredDigraphNetwork";function Cu(a){ja.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}dn(Cu,ja);function uE(a,y){return a.index-y.index}function R0(a,y){if(!a.$n){for(var E=[],b=ti(a.destinationEdgesArrayAccess),x=b.next();!x.done;x=b.next())x=x.value,x.valid&&E.push(x);a.$n=E}for(a=ti(a.$n),E=a.next();!E.done;E=a.next())if(E=E.value,E.toVertex===y)return E;Ct("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],E=ti(a.sourceEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(uE),a.co=y}return a.co}function Lb(a){if(!a.ao){for(var y=[],E=ti(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(uE),a.ao=y}return a.ao}Cu.prototype.Cl=function(a){ja.prototype.Cl.call(this,a),this.bo=this.co=null},Cu.prototype.Kl=function(a){ja.prototype.Kl.call(this,a),this.bo=this.co=null},Cu.prototype.zl=function(a){ja.prototype.zl.call(this,a),this.$n=this.ao=null},Cu.prototype.Jl=function(a){ja.prototype.Jl.call(this,a),this.$n=this.ao=null},_n.Object.defineProperties(Cu.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)}}}),Cu.prototype.deleteDestinationEdge=Cu.prototype.Jl,Cu.prototype.addDestinationEdge=Cu.prototype.zl,Cu.prototype.deleteSourceEdge=Cu.prototype.Kl,Cu.prototype.addSourceEdge=Cu.prototype.Cl,Cu.className="LayeredDigraphVertex";function Fg(a){Wl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}dn(Fg,Wl),_n.Object.defineProperties(Fg.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)}}}),Fg.className="LayeredDigraphEdge";function Yr(a){ta.call(this),this.Ub=new $n,this.Wn=_0,this.ud=Gc,this.vo=H0,this.Bq=Hy,this.$v=[],this.td=!0,this.Rb=z0,this.$d=new en(10,10).freeze();var y=new yf(this);this.W=new Du(y),this.Y=new Du(y),this.ru=[],a&&Object.assign(this,a)}dn(Yr,ta),Yr.prototype.cloneProtected=function(a){ta.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)},Yr.prototype.qb=function(a){a.classType===Yr?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:Ct("Unknown enum value: "+a):ta.prototype.qb.call(this,a)},Yr.prototype.createNetwork=function(){return new yf(this)},Yr.prototype.makeNetwork=function(a){function y(b){if(b instanceof Gi)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Li){var x=b.fromNode;return x===null||x.isLinkLabel||x.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var E=this.createNetwork();return a instanceof Tn?(E.lg(a.nodes,!0,y),E.lg(a.links,!0,y)):a instanceof Ir?E.lg(a.memberParts,!1,y):E.lg(a.iterator,!1,y),E},Yr.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 Tn&&(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 $n,y=this.Ub.iterator;y.next();){var E=y.value;E instanceof Gi?(E=this.network.ki(E),E!==null&&a.add(E)):E instanceof Du&&a.add(E)}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=Ib(y),0<a.count;)y=cE(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 Du&&hE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&fE(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&pE(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){E=y.value;var b=E.parent;b===null&&(b=E),b=b.angle===0||b.angle===180;var x=a[E.level];x===void 0&&(x=0),a[E.level]=Math.max(x,b?E.width:E.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();)E=y.value,b=E.parent,b===null&&(b=E),b.angle===0||b.angle===180?(b.angle===180&&(E.focusX+=a[E.level]-E.width),E.width=a[E.level]):(b.angle===270&&(E.focusY+=a[E.level]-E.height),E.height=a[E.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,E=y.angle===0||y.angle===180,b=-1,x=0;x<y.children.length;x++){var z=y.children[x];b=Math.max(b,E?z.width:z.height)}if(0<=b)for(x=0;x<y.children.length;x++)z=y.children[x],E?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Du&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new $n,this.isValidLayout=!0};function Ib(a){var y=new $n;for(a=a.iterator;a.next();){var E=a.value;E.initialized||y.add(E)}return y}Yr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var E=y.value;switch(this.ud){case Gc:E.sourceEdges.count===0&&this.Ub.add(E);break;case mf:E.destinationEdges.count===0&&this.Ub.add(E);break;default:Ct("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cE(this,a),a!==null&&this.Ub.add(a))};function cE(a,y){var E=999999,b=null;for(y=y.iterator;y.next();){var x=y.value;switch(a.ud){case Gc:x.sourceEdges.count<E&&(E=x.sourceEdges.count,b=x);break;case mf:x.destinationEdges.count<E&&(E=x.destinationEdges.count,b=x);break;default:Ct("Unhandled path value "+a.ud.toString())}}return b}function Ly(a,y){if(y!==null){switch(a.ud){case Gc:if(0<y.destinationEdges.count){for(var E=new Wn,b=y.destinationVertexes;b.next();){var x=b.value;dE(a,y,x)&&E.add(x)}0<E.count&&(y.children=E.Fa())}break;case mf:if(0<y.sourceEdges.count){for(E=new Wn,b=y.sourceVertexes;b.next();)x=b.value,dE(a,y,x)&&E.add(x);0<E.count&&(y.children=E.Fa())}break;default:Ct("Unhandled path value"+a.ud.toString())}for(E=y.children,b=E.length,x=0;x<b;x++){var z=E[x];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Ly(a,E[y])}}function dE(a,y,E){if(E.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==E;)b=b.parent;b=b===E}if(b||E.level>y.level)return!1;a.removeChild(E.parent,E)}return!0}Yr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var E=a.children,b=0,x=0;x<E.length;x++)E[x]===y&&b++;if(0<b){b=Array(E.length-b);for(var z=x=0;z<E.length;z++)E[z]!==y&&(b[x++]=E[z]);a.children=b}}};function hE(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Zc&&a.sortTreeVertexChildren(y);for(var E=0,b=y.childrenCount,x=0,z=y.children,ne=z.length,re=0;re<ne;re++){var se=z[re];hE(a,se),E+=se.descendantCount+1,b=Math.max(b,se.maxChildrenCount),x=Math.max(x,se.maxGenerationCount)}y.descendantCount=E,y.maxChildrenCount=b,y.maxGenerationCount=0<b?x+1:0}}function Mb(a,y){switch(a.vo){default:case H0: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 E=!0;if(y.childrenCount===0)E=!1;else for(var b=y.children,x=b.length,z=0;z<x;z++)if(0<b[z].childrenCount){E=!1;break}return E&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Yr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Mb(this,a)),a.parent!==null&&a.parent.alignment===Zc){for(var y=a.angle,E=a.parent.children,b=0;b<E.length&&a!==E[b];)b++;b%2===0?b!==E.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 fE(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var E=y.length,b=0;b<E;b++)fE(a,y[b])}}Yr.prototype.assignTreeVertexValues=function(){};function pE(a,y){if(y!==null){y.alignment!==Zc&&a.sortTreeVertexChildren(y),y=y.children;for(var E=y.length,b=0;b<E;b++)pE(a,y[b])}}Yr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case pp:break;case _g:a.children.reverse();break;case Ug:a.children.sort(a.comparer);break;case Hg:a.children.sort(a.comparer),a.children.reverse();break;default:Ct("Unhandled sorting value "+a.sorting.toString())}},Yr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Yr.prototype.addComments=function(a){var y=a.angle,E=a.parent,b=0,x=!1;E!==null&&(b=E.angle,x=E.alignment,x=sh(x)),y=y===90||y===270,b=b===90||b===270,E=a.childrenCount===0;var z=0,ne=0,re=0,se=a.commentSpacing;if(a.node!==null)for(var de=a.node.Mu();de.next();){var pe=de.value;pe.category==="Comment"&&pe.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(pe),pe.Va(),pe=pe.measuredBounds,y&&!E||!x&&!b&&E||x&&b&&E?(z=Math.max(z,pe.width),ne+=pe.height+Math.abs(re)):(z+=pe.width+Math.abs(re),ne=Math.max(ne,pe.height)),re=se)}a.comments!==null&&(y&&!E||!x&&!b&&E||x&&b&&E?(z+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),x=xn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=x,xn.free(x))};function sh(a){return a===kd||a===Zc||a===Ld||a===rd}function Bg(a){return a===kd||a===Zc}function Iy(a){var y=a.parent;if(y!==null){var E=y.alignment;if(sh(E)){if(Bg(E)){for(y=y.children,E=0;E<y.length&&a!==y[E];)E++;return E%2===0}if(E===Ld)return!0}}return!1}Yr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,E=a.parent,b=a.angle,x=0,z=!1;E!==null&&(x=E.angle,z=E.alignment,z=sh(z)),b=b===90||b===270,E=x===90||x===270;for(var ne=a.childrenCount===0,re=Iy(a),se=0,de=a.comments,pe=de.length,Se=rt.alloc(),Ae=0;Ae<pe;Ae++){var Re=de[Ae],Ue=Re.measuredBounds;if(b&&!ne||!z&&!E&&ne||z&&E&&ne){if(135<x&&!z||E&&re)if(0<=a.commentMargin)for(Se.h(a.bounds.x-a.commentMargin-Ue.width,a.bounds.y+se),Re.move(Se),Re=Re.Sd();Re.next();){var Xe=Re.value;Xe.fromSpot=Es,Xe.toSpot=Va}else for(Se.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+se),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=Va,Xe.toSpot=Es;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+se),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=Va,Xe.toSpot=Es;else for(Se.h(a.bounds.x+a.commentMargin-Ue.width,a.bounds.y+se),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=Es,Xe.toSpot=Va;se=0<=a.commentSpacing?se+(Ue.height+a.commentSpacing):se+(a.commentSpacing-Ue.height)}else{if(135<x&&!z||!E&&re)if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y-a.commentMargin-Ue.height),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=ls,Xe.toSpot=is;else for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y-a.commentMargin),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=is,Xe.toSpot=ls;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y+a.commentMargin),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=is,Xe.toSpot=ls;else for(Se.h(a.bounds.x+se,a.bounds.y+a.commentMargin-Ue.height),Re.move(Se),Re=Re.Sd();Re.next();)Xe=Re.value,Xe.fromSpot=ls,Xe.toSpot=is;se=0<=a.commentSpacing?se+(Ue.width+a.commentSpacing):se+(a.commentSpacing-Ue.width)}}if(rt.free(Se),y=se-a.commentSpacing-(b?y.height:y.width),this.ud===Gc)for(a=a.destinationEdges;a.next();)x=a.value.link,x===null||x.isAvoiding||(x.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)x=a.value.link,x===null||x.isAvoiding||(x.toEndSegmentLength=0<y?y:NaN)}},Yr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,E=y.length,b=0;b<E;b++)this.layoutTree(y[b]);switch(a.compaction){case U0:gE(this,a);break;case zg:if(a.alignment===Zc)gE(this,a);else if(a.childrenCount===0)b=a.parent,E=!1,y=0,b!==null&&(y=b.angle,E=b.alignment,E=sh(E)),b=Iy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||E)&&!b?a.la.h(0,0):y===180&&!E||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var x=tc(a);y=x===90||x===270;var z=0,ne=a.children,re=ne.length;for(E=0;E<re;E++)b=ne[E],z=Math.max(z,y?b.Da.width:b.Da.height);var se=a.alignment;b=se===Vc;var de=se===Wc,pe=sh(se),Se=Math.max(0,a.breadthLimit);E=this.computeLayerSpacing(a);var Ae=a.nodeSpacing,Re=this.computeNodeIndent(a),Ue=a.rowSpacing,Xe=0;(b||de||a.hm||a.im&&a.maxGenerationCount===1)&&(Xe=Math.max(0,a.rowIndent)),b=a.width;var bt=a.height,ft=0,Pt=0,Nt=0,Dt=null,Yt=null,wn=0,zi=0,er=0,Xi=0,ki=0,oi=0,kr=0,Er=0;if(pe&&!Bg(se)&&135<x&&ne.reverse(),Bg(se))if(1<re)for(var mo=0;mo<re;mo++)mo%2===0&&mo!==re-1&&(Er=Math.max(Er,y?ne[mo].Da.width:ne[mo].Da.height));else re===1&&(Er=y?ne[0].Da.width:ne[0].Da.height);if(pe){switch(se){case kd:Pt=135>x?mE(this,a,ne,Er,ft,Pt):vE(this,a,ne,Er,ft,Pt),Er=Pt.x,ft=Pt.width,Pt=Pt.height;break;case Ld:for(Dt=0;Dt<re;Dt++)Yt=ne[Dt],Se=Yt.Da,Nt=oi===0?0:Ue,y?(Yt.S.h(z-Se.width,Xi+Nt),ft=Math.max(ft,Se.width),Pt=Math.max(Pt,Xi+Nt+Se.height),Xi+=Nt+Se.height):(Yt.S.h(er+Nt,z-Se.height),ft=Math.max(ft,er+Nt+Se.width),Pt=Math.max(Pt,Se.height),er+=Nt+Se.width),oi++;break;case rd:for(Dt=0;Dt<re;Dt++)Yt=ne[Dt],z=Yt.Da,Se=oi===0?0:Ue,y?(Yt.S.h(Ae/2+a.focus.x,Xi+Se),ft=Math.max(ft,z.width),Pt=Math.max(Pt,Xi+Se+z.height),Xi+=Se+z.height):(Yt.S.h(er+Se,Ae/2+a.focus.y),ft=Math.max(ft,er+Se+z.width),Pt=Math.max(Pt,z.height),er+=Se+z.width),oi++}Dt=Ol(this,2),Yt=Ol(this,2),y?(Dt[0].h(0,0),Dt[1].h(0,Pt),Yt[0].h(ft,0)):(Dt[0].h(0,0),Dt[1].h(ft,0),Yt[0].h(0,Pt)),Yt[1].h(ft,Pt)}else for(mo=0;mo<re;mo++){var Uo=ne[mo],ts=Uo.Da;if(y){0<Se&&0<oi&&er+Ae+ts.width>Se&&(er<z&&Hh(a,se,z-er,0,kr,mo-1),ki++,oi=0,kr=mo,Nt=Pt,er=0,Xi=135<x?-Pt-Ue:Pt+Ue),F0(this,Uo,0,Xi);var os=0;if(oi===0)Dt=Uo.Yo,Yt=Uo.kp,wn=ts.width,zi=ts.height,(Dt===null||Yt===null||x!==tc(Uo))&&(Dt=Ol(this,2),Yt=Ol(this,2),Dt[0].h(0,0),Dt[1].h(0,zi),Yt[0].h(wn,0),Yt[1].h(wn,zi));else{var Ys=Pi();zi=yE(this,a,Uo,Dt,Yt,wn,zi,Ys),os=zi.x,Dt=Ys[0],Yt=Ys[1],wn=zi.width,zi=zi.height,Ai(Ys),er<ts.width&&0>os&&(gf(a,-os,0,kr,mo-1),B0(Dt,-os,0),B0(Yt,-os,0),os=0)}Uo.S.h(os,Xi),ft=Math.max(ft,wn),Pt=Math.max(Pt,Nt+(ki===0?0:Ue)+ts.height),er=wn}else 0<Se&&0<oi&&Xi+Ae+ts.height>Se&&(Xi<z&&Hh(a,se,0,z-Xi,kr,mo-1),ki++,oi=0,kr=mo,Nt=ft,Xi=0,er=135<x?-ft-Ue:ft+Ue),F0(this,Uo,er,0),os=0,oi===0?(Dt=Uo.Yo,Yt=Uo.kp,wn=ts.width,zi=ts.height,(Dt===null||Yt===null||x!==tc(Uo))&&(Dt=Ol(this,2),Yt=Ol(this,2),Dt[0].h(0,0),Dt[1].h(wn,0),Yt[0].h(0,zi),Yt[1].h(wn,zi))):(Ys=Pi(),zi=yE(this,a,Uo,Dt,Yt,wn,zi,Ys),os=zi.x,Dt=Ys[0],Yt=Ys[1],wn=zi.width,zi=zi.height,Ai(Ys),Xi<ts.height&&0>os&&(gf(a,0,-os,kr,mo-1),B0(Dt,0,-os),B0(Yt,0,-os),os=0)),Uo.S.h(er,os),Pt=Math.max(Pt,zi),ft=Math.max(ft,Nt+(ki===0?0:Ue)+ts.width),Xi=zi;oi++}switch(0<ki&&(y?(Pt+=Math.max(0,E),er<ft&&Hh(a,se,ft-er,0,kr,re-1),0<Xe&&(de||gf(a,Xe,0,0,re-1),ft+=Xe)):(ft+=Math.max(0,E),Xi<Pt&&Hh(a,se,0,Pt-Xi,kr,re-1),0<Xe&&(de||gf(a,0,Xe,0,re-1),Pt+=Xe))),Xe=de=0,se){case gp:y?de+=ft/2-a.focus.x-Re/2:Xe+=Pt/2-a.focus.y-Re/2;break;case vf:0<ki?y?de+=ft/2-a.focus.x-Re/2:Xe+=Pt/2-a.focus.y-Re/2:y?(Er=ne[0].S.x+ne[0].la.x,de+=Er+(ne[re-1].S.x+ne[re-1].la.x+2*ne[re-1].focus.x-Er)/2-a.focus.x-Re/2):(Er=ne[0].S.y+ne[0].la.y,Xe+=Er+(ne[re-1].S.y+ne[re-1].la.y+2*ne[re-1].focus.y-Er)/2-a.focus.y-Re/2);break;case Vc:y?(de-=Re,ft+=Re):(Xe-=Re,Pt+=Re);break;case Wc:y?(de+=ft-a.width+Re,ft+=Re):(Xe+=Pt-a.height+Re,Pt+=Re);break;case kd:y?1<re?de+=Er+Ae/2-a.focus.x:de+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<re?Xe+=Er+Ae/2-a.focus.y:Xe+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Ld:y?de+=ft+Ae/2-a.focus.x:Xe+=Pt+Ae/2-a.focus.y;break;case rd:break;default:Pt=this.customAlignment(a,de,Xe,ft,Pt),de=Pt[0],Xe=Pt[1],ft=Pt[2],Pt=Pt[3]}for(Re=0;Re<re;Re++)Er=ne[Re],y?Er.S.h(Er.S.x+Er.la.x-de,Er.S.y+(135<x?(pe?-Pt:-Er.Da.height)+Er.la.y-E:bt+E+Er.la.y)):Er.S.h(Er.S.x+(135<x?(pe?-ft:-Er.Da.width)+Er.la.x-E:b+E+Er.la.x),Er.S.y+Er.la.y-Xe);if(re=ne=0,pe?y?(ft=My(a,ft,de),0>de&&(de=0),135<x&&(Xe+=Pt+E),Pt+=bt+E,se===rd&&(ne+=Ae/2+a.focus.x),re+=bt+E):(135<x&&(de+=ft+E),ft+=b+E,Pt=Oy(a,Pt,Xe),0>Xe&&(Xe=0),se===rd&&(re+=Ae/2+a.focus.y),ne+=b+E):y?(a.comments===null?b>ft&&(ft=Ry(se,b-ft,0),ne=ft.x,re=ft.y,ft=b,de=0):ft=My(a,ft,de),0>de&&(ne-=de,de=0),135<x&&(Xe+=Pt+E),Pt=Math.max(Math.max(Pt,bt),Pt+bt+E),re+=bt+E):(135<x&&(de+=ft+E),ft=Math.max(Math.max(ft,b),ft+b+E),a.comments===null?bt>Pt&&(Pt=Ry(se,0,bt-Pt),ne=Pt.x,re=Pt.y,Pt=bt,Xe=0):Pt=Oy(a,Pt,Xe),0>Xe&&(re-=Xe,Xe=0),ne+=b+E),0<ki)x=Ol(this,4),ki=Ol(this,4),y?(x[2].h(0,bt+E),x[3].h(x[2].x,Pt),ki[2].h(ft,x[2].y),ki[3].h(ki[2].x,x[3].y)):(x[2].h(b+E,0),x[3].h(ft,x[2].y),ki[2].h(x[2].x,Pt),ki[3].h(x[3].x,ki[2].y));else{for(x=Ol(this,Dt.length+2),ki=Ol(this,Yt.length+2),se=0;se<Dt.length;se++)pe=Dt[se],x[se+2].h(pe.x+ne,pe.y+re);for(se=0;se<Yt.length;se++)pe=Yt[se],ki[se+2].h(pe.x+ne,pe.y+re)}y?(x[0].h(de,0),x[1].h(x[0].x,bt),x[2].y<x[1].y&&(x[2].x>x[0].x?x[2].assign(x[1]):x[1].assign(x[2])),x[3].y<x[2].y&&(x[3].x>x[0].x?x[3].assign(x[2]):x[2].assign(x[3])),ki[0].h(de+b,0),ki[1].h(ki[0].x,bt),ki[2].y<ki[1].y&&(ki[2].x<ki[0].x?ki[2].assign(ki[1]):ki[1].assign(ki[2])),ki[3].y<ki[2].y&&(ki[3].x<ki[0].x?ki[3].assign(ki[2]):ki[2].assign(ki[3])),x[2].y-=E/2,ki[2].y-=E/2):(x[0].h(0,Xe),x[1].h(b,x[0].y),x[2].x<x[1].x&&(x[2].y>x[0].y?x[2].assign(x[1]):x[1].assign(x[2])),x[3].x<x[2].x&&(x[3].y>x[0].y?x[3].assign(x[2]):x[2].assign(x[3])),ki[0].h(0,Xe+bt),ki[1].h(b,ki[0].y),ki[2].x<ki[1].x&&(ki[2].y<ki[0].y?ki[2].assign(ki[1]):ki[1].assign(ki[2])),ki[3].x<ki[2].x&&(ki[3].y<ki[0].y?ki[3].assign(ki[2]):ki[2].assign(ki[3])),x[2].x-=E/2,ki[2].x-=E/2),pc(this,Dt),pc(this,Yt),a.Yo=x,a.kp=ki,a.la.h(de,Xe),a.Da.h(ft,Pt)}break;default:Ct("Unhandled compaction value "+a.compaction.toString())}}};function gE(a,y){if(y.childrenCount===0){var E=!1,b=0;y.parent!==null&&(b=y.parent.angle,E=y.parent.alignment,E=sh(E));var x=Iy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||E)&&!x?y.la.h(0,0):b===180&&!E||(b===90||b===270)&&x?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=tc(y),E=b===90||b===270;var z=0;x=y.children;for(var ne=x.length,re=0;re<ne;re++){var se=x[re];z=Math.max(z,E?se.Da.width:se.Da.height)}var de=y.alignment,pe=de===Vc,Se=de===Wc;re=sh(de);var Ae=Math.max(0,y.breadthLimit);se=a.computeLayerSpacing(y);var Re=y.nodeSpacing,Ue=a.computeNodeIndent(y),Xe=pe||Se?0:Ue/2,bt=y.rowSpacing,ft=0;(pe||Se||y.hm||y.im&&y.maxGenerationCount===1)&&(ft=Math.max(0,y.rowIndent)),pe=y.width;var Pt=y.height,Nt=0,Dt=0,Yt=0,wn=0,zi=0,er=0,Xi=0,ki=0,oi=0,kr=0;if(re&&!Bg(de)&&135<b&&x.reverse(),Bg(de))if(1<ne)for(var Er=0;Er<ne;Er++){var mo=x[Er],Uo=mo.Da;Er%2===0&&Er!==ne-1?oi=Math.max(oi,(E?Uo.width:Uo.height)+a.computeBusNodeSpacing(mo)-Re):Er%2!==0&&(kr=Math.max(kr,(E?Uo.width:Uo.height)+a.computeBusNodeSpacing(mo)-Re))}else ne===1&&(oi=E?x[0].Da.width:x[0].Da.height);if(re)switch(de){case kd:case Zc:Dt=135>b?mE(a,y,x,oi,Nt,Dt):vE(a,y,x,oi,Nt,Dt),oi=Dt.x,Nt=Dt.width,Dt=Dt.height;break;case Ld:for(Ae=0;Ae<ne;Ae++)Xe=x[Ae],Yt=Xe.Da,kr=Xi===0?0:bt,E?(Xe.S.h(z-Yt.width,zi+kr),Nt=Math.max(Nt,Yt.width),Dt=Math.max(Dt,zi+kr+Yt.height),zi+=kr+Yt.height):(Xe.S.h(wn+kr,z-Yt.height),Nt=Math.max(Nt,wn+kr+Yt.width),Dt=Math.max(Dt,Yt.height),wn+=kr+Yt.width),Xi++;break;case rd:for(z=0;z<ne;z++)Ae=x[z],Xe=Ae.Da,Yt=Xi===0?0:bt,E?(Ae.S.h(Re/2+y.focus.x,zi+Yt),Nt=Math.max(Nt,Xe.width),Dt=Math.max(Dt,zi+Yt+Xe.height),zi+=Yt+Xe.height):(Ae.S.h(wn+Yt,Re/2+y.focus.y),Nt=Math.max(Nt,wn+Yt+Xe.width),Dt=Math.max(Dt,Xe.height),wn+=Yt+Xe.width),Xi++}else for(kr=0;kr<ne;kr++)Er=x[kr],mo=Er.Da,E?(0<Ae&&0<Xi&&wn+Re+mo.width>Ae&&(wn<z&&Hh(y,de,z-wn,0,ki,kr-1),er++,Xi=0,ki=kr,Yt=Dt,wn=0,zi=135<b?-Dt-bt:Dt+bt),Uo=Xi===0?Xe:Re,F0(a,Er,0,zi),Er.S.h(wn+Uo,zi),Nt=Math.max(Nt,wn+Uo+mo.width),Dt=Math.max(Dt,Yt+(er===0?0:bt)+mo.height),wn+=Uo+mo.width):(0<Ae&&0<Xi&&zi+Re+mo.height>Ae&&(zi<z&&Hh(y,de,0,z-zi,ki,kr-1),er++,Xi=0,ki=kr,Yt=Nt,zi=0,wn=135<b?-Nt-bt:Nt+bt),Uo=Xi===0?Xe:Re,F0(a,Er,wn,0),Er.S.h(wn,zi+Uo),Dt=Math.max(Dt,zi+Uo+mo.height),Nt=Math.max(Nt,Yt+(er===0?0:bt)+mo.width),zi+=Uo+mo.height),Xi++;switch(0<er&&(E?(Dt+=Math.max(0,se),wn<Nt&&Hh(y,de,Nt-wn,0,ki,ne-1),0<ft&&(Se||gf(y,ft,0,0,ne-1),Nt+=ft)):(Nt+=Math.max(0,se),zi<Dt&&Hh(y,de,0,Dt-zi,ki,ne-1),0<ft&&(Se||gf(y,0,ft,0,ne-1),Dt+=ft))),ft=Se=0,de){case gp:E?Se+=Nt/2-y.focus.x-Ue/2:ft+=Dt/2-y.focus.y-Ue/2;break;case vf:0<er?E?Se+=Nt/2-y.focus.x-Ue/2:ft+=Dt/2-y.focus.y-Ue/2:E?(a=x[0].S.x+x[0].la.x,Se+=a+(x[ne-1].S.x+x[ne-1].la.x+2*x[ne-1].focus.x-a)/2-y.focus.x-Ue/2):(a=x[0].S.y+x[0].la.y,ft+=a+(x[ne-1].S.y+x[ne-1].la.y+2*x[ne-1].focus.y-a)/2-y.focus.y-Ue/2);break;case Vc:E?(Se-=Ue,Nt+=Ue):(ft-=Ue,Dt+=Ue);break;case Wc:E?(Se+=Nt-y.width+Ue,Nt+=Ue):(ft+=Dt-y.height+Ue,Dt+=Ue);break;case kd:case Zc:E?1<ne?Se+=oi+Re/2-y.focus.x:Se+=x[0].focus.x-y.focus.x+x[0].la.x:1<ne?ft+=oi+Re/2-y.focus.y:ft+=x[0].focus.y-y.focus.y+x[0].la.y;break;case Ld:E?Se+=Nt+Re/2-y.focus.x:ft+=Dt+Re/2-y.focus.y;break;case rd:break;default:a=a.customAlignment(y,Se,ft,Nt,Dt),Se=a[0],ft=a[1],Nt=a[2],Dt=a[3]}for(a=0;a<ne;a++)Ue=x[a],E?Ue.S.h(Ue.S.x+Ue.la.x-Se,Ue.S.y+(135<b?(re?-Dt:-Ue.Da.height)+Ue.la.y-se:Pt+se+Ue.la.y)):Ue.S.h(Ue.S.x+(135<b?(re?-Nt:-Ue.Da.width)+Ue.la.x-se:pe+se+Ue.la.x),Ue.S.y+Ue.la.y-ft);E?(Nt=My(y,Nt,Se),0>Se&&(Se=0),135<b&&(ft+=Dt+se),Dt=Math.max(Math.max(Dt,Pt),Dt+Pt+se)):(135<b&&(Se+=Nt+se),Nt=Math.max(Math.max(Nt,pe),Nt+pe+se),Dt=Oy(y,Dt,ft),0>ft&&(ft=0)),y.la.h(Se,ft),y.Da.h(Nt,Dt)}}Yr.prototype.customAlignment=function(a,y,E,b,x){return[y,E,b,x]};function mE(a,y,E,b,x,z){var ne=E.length;if(ne===0)return new xn(b,0,x,z);if(ne===1)return y=E[0],x=y.Da.width,z=y.Da.height,new xn(b,0,x,z);for(var re=y.nodeSpacing,se=y.rowSpacing,de=tc(y)===90,pe=0,Se=0,Ae=0,Re=0;Re<ne;Re++)if(!(Re%2!==0||1<ne&&Re===ne-1)){var Ue=E[Re],Xe=Ue.Da,bt=pe===0?0:se;if(de){var ft=a.computeBusNodeSpacing(Ue)-re;Ue.S.h(b-(Xe.width+ft),Ae+bt),x=Math.max(x,Xe.width+ft),z=Math.max(z,Ae+bt+Xe.height),Ae+=bt+Xe.height}else ft=a.computeBusNodeSpacing(Ue)-re,Ue.S.h(Se+bt,b-(Xe.height+ft)),z=Math.max(z,Xe.height+ft),x=Math.max(x,Se+bt+Xe.width),Se+=bt+Xe.width;pe++}for(pe=0,Ue=Se,Re=Ae,de?(Se=b+re,Ae=0):(Se=0,Ae=b+re),Xe=0;Xe<ne;Xe++)if(Xe%2!==0){bt=E[Xe],ft=bt.Da;var Pt=pe===0?0:se;if(de){var Nt=a.computeBusNodeSpacing(bt)-re;bt.S.h(Se+Nt,Ae+Pt),x=Math.max(x,Se+ft.width+Nt),z=Math.max(z,Ae+Pt+ft.height),Ae+=Pt+ft.height}else Nt=a.computeBusNodeSpacing(bt)-re,bt.S.h(Se+Pt,Ae+Nt),x=Math.max(x,Se+Pt+ft.width),z=Math.max(z,Ae+ft.height+Nt),Se+=Pt+ft.width;pe++}return 1<ne&&ne%2===1&&(E=E[ne-1],ne=E.Da,a=a.computeBusLastRowSpacing(E,de?Math.max(Math.abs(Re),Math.abs(Ae)):Math.max(Math.abs(Ue),Math.abs(Se))),de?(E.S.h(b+re/2-E.focus.x-E.la.x,z+a),de=b+re/2-E.focus.x-E.la.x,x=Math.max(x,de+ne.width),0>de&&(x-=de),z=Math.max(z,Math.max(Re,Ae)+a+ne.height),0>E.S.x&&(b=D0(y,E.S.x,!1,b,re))):(E.S.h(x+a,b+re/2-E.focus.y-E.la.y),x=Math.max(x,Math.max(Ue,Se)+a+ne.width),Ae=b+re/2-E.focus.y-E.la.y,z=Math.max(z,Ae+ne.height),0>Ae&&(z-=Ae),0>E.S.y&&(b=D0(y,E.S.y,!0,b,re)))),new xn(b,0,x,z)}function vE(a,y,E,b,x,z){var ne=E.length;if(ne===0)return new xn(b,0,x,z);if(ne===1)return E=E[0],x=E.Da.width,z=E.Da.height,new xn(b,0,x,z);for(var re=y.nodeSpacing,se=y.rowSpacing,de=tc(y)===270,pe=0,Se=0,Ae=0,Re=0;Re<ne;Re++)if(!(Re%2!==0||1<ne&&Re===ne-1)){var Ue=E[Re],Xe=Ue.Da,bt=pe===0?0:se;if(de){var ft=a.computeBusNodeSpacing(Ue)-re;Ae-=bt+Xe.height,Ue.S.h(b-(Xe.width+ft),Ae),x=Math.max(x,Xe.width+ft),z=Math.max(z,Math.abs(Ae))}else ft=a.computeBusNodeSpacing(Ue)-re,Se-=bt+Xe.width,Ue.S.h(Se,b-(Xe.height+ft)),z=Math.max(z,Xe.height+ft),x=Math.max(x,Math.abs(Se));pe++}for(pe=0,Ue=Se,Re=Ae,de?(Se=b+re,Ae=0):(Se=0,Ae=b+re),Xe=0;Xe<ne;Xe++)if(Xe%2!==0){bt=E[Xe],ft=bt.Da;var Pt=pe===0?0:se;if(de){var Nt=a.computeBusNodeSpacing(bt)-re;Ae-=Pt+ft.height,bt.S.h(Se+Nt,Ae),x=Math.max(x,Se+ft.width+Nt),z=Math.max(z,Math.abs(Ae))}else Nt=a.computeBusNodeSpacing(bt)-re,Se-=Pt+ft.width,bt.S.h(Se,Ae+Nt),z=Math.max(z,Ae+ft.height+Nt),x=Math.max(x,Math.abs(Se));pe++}for(1<ne&&ne%2===1&&(se=E[ne-1],pe=se.Da,a=a.computeBusLastRowSpacing(se,de?Math.max(Math.abs(Re),Math.abs(Ae)):Math.max(Math.abs(Ue),Math.abs(Se))),de?(se.S.h(b+re/2-se.focus.x-se.la.x,-z-pe.height-a),Se=b+re/2-se.focus.x-se.la.x,x=Math.max(x,Se+pe.width),0>Se&&(x-=Se),z=Math.max(z,Math.abs(Math.min(Re,Ae))+a+pe.height),0>se.S.x&&(b=D0(y,se.S.x,!1,b,re))):(se.S.h(-x-pe.width-a,b+re/2-se.focus.y-se.la.y),x=Math.max(x,Math.abs(Math.min(Ue,Se))+a+pe.width),Ae=b+re/2-se.focus.y-se.la.y,z=Math.max(z,Ae+pe.height),0>Ae&&(z-=Ae),0>se.S.y&&(b=D0(y,se.S.y,!0,b,re)))),y=0;y<ne;y++)re=E[y],de?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+x,re.S.y);return new xn(b,0,x,z)}Yr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Yr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function D0(a,y,E,b,x){a=a.children;for(var z=a.length,ne=0;ne<z;ne++)E?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[z-1],Math.max(b,E?y.la.y+y.focus.y-x/2:y.la.x+y.focus.x-x/2)}function My(a,y,E){switch(a.alignment){case vf:case gp:return E+a.width>y&&(y=E+a.width),0>E&&(y-=E),y;case Vc:return a.width>y?a.width:y;case Wc:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case kd:case Zc:return Math.max(a.width,Math.max(y,E+a.width)-Math.min(0,E));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 Oy(a,y,E){switch(a.alignment){case vf:case gp:return E+a.height>y&&(y=E+a.height),0>E&&(y-=E),y;case Vc:return a.height>y?a.height:y;case Wc:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case kd:case Zc:return Math.max(a.height,Math.max(y,E+a.height)-Math.min(0,E));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 Ry(a,y,E){switch(a){case gp:y/=2,E/=2;break;case vf:y/=2,E/=2;break;case Vc:E=y=0;break;case Wc:break;default:Ct("Unhandled alignment value "+a.toString())}return new rt(y,E)}function Hh(a,y,E,b,x,z){y=Ry(y,E,b),gf(a,y.x,y.y,x,z)}function gf(a,y,E,b,x){if(y!==0||E!==0)for(a=a.children;b<=x;b++){var z=a[b].S;z.x+=y,z.y+=E}}function F0(a,y,E,b){var x=y.parent;switch(a.ud){case Gc:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===x&&y.relativePoint.h(E,b);break;case mf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===x&&y.relativePoint.h(E,b);break;default:Ct("Unhandled path value "+a.ud.toString())}}function B0(a,y,E){for(var b=0;b<a.length;b++){var x=a[b];x.x+=y,x.y+=E}}function yE(a,y,E,b,x,z,ne,re){var se=tc(y),de=se===90||se===270,pe=y.nodeSpacing;y=b;var Se=x;b=z;var Ae=ne,Re=E.Yo,Ue=E.kp;ne=E.Da;var Xe=de?Math.max(Ae,ne.height):Math.max(b,ne.width);if((Re===null||se!==tc(E))&&(Re=Ol(a,2),Ue=Ol(a,2),de?(Re[0].h(0,0),Re[1].h(0,ne.height),Ue[0].h(ne.width,0),Ue[1].h(Ue[0].x,Re[1].y)):(Re[0].h(0,0),Re[1].h(ne.width,0),Ue[0].h(0,ne.height),Ue[1].h(Re[1].x,Ue[0].y))),de){if(Ae=9999999,!(Se===null||2>Se.length||Re===null||2>Re.length))for(x=E=0;E<Se.length&&x<Re.length;){z=Se[E];var bt=Re[x];se=bt.x,de=bt.y,se+=b;var ft=z;E+1<Se.length&&(ft=Se[E+1]);var Pt=bt;bt=Pt.x,Pt=Pt.y,x+1<Re.length&&(Pt=Re[x+1],bt=Pt.x,Pt=Pt.y,bt+=b);var Nt=Ae;z.y===de?Nt=se-z.x:z.y>de&&z.y<Pt?Nt=se+(z.y-de)/(Pt-de)*(bt-se)-z.x:de>z.y&&de<ft.y&&(Nt=se-(z.x+(de-z.y)/(ft.y-z.y)*(ft.x-z.x))),Nt<Ae&&(Ae=Nt),ft.y<=z.y?E++:Pt<=de?x++:(ft.y<=Pt&&E++,Pt<=ft.y&&x++)}if(Ae=b-Ae,Ae+=pe,E=Re,x=Ae,y===null||2>y.length||E===null||2>E.length)b=null;else{for(pe=Ol(a,y.length+E.length),b=z=se=0;z<E.length&&E[z].y<y[0].y;)de=E[z++],pe[b++].h(de.x+x,de.y);for(;se<y.length;)de=y[se++],pe[b++].h(de.x,de.y);for(se=y[y.length-1].y;z<E.length&&E[z].y<=se;)z++;for(;z<E.length&&E[z].y>se;)de=E[z++],pe[b++].h(de.x+x,de.y);for(E=Ol(a,b),se=0;se<b;se++)E[se].assign(pe[se]);pc(a,pe),b=E}if(z=Ue,se=Ae,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Ol(a,Se.length+z.length),x=de=E=0;E<Se.length&&Se[E].y<z[0].y;)ft=Se[E++],pe[x++].h(ft.x,ft.y);for(;de<z.length;)ft=z[de++],pe[x++].h(ft.x+se,ft.y);for(z=z[z.length-1].y;E<Se.length&&Se[E].y<=z;)E++;for(;E<Se.length&&Se[E].y>z;)se=Se[E++],pe[x++].h(se.x,se.y);for(z=Ol(a,x),E=0;E<x;E++)z[E].assign(pe[E]);pc(a,pe),x=z}return z=Math.max(0,Ae)+ne.width,ne=Xe,pc(a,y),pc(a,Re),pc(a,Se),pc(a,Ue),re[0]=b,re[1]=x,new xn(Ae,0,z,ne)}if(b=9999999,!(Se===null||2>Se.length||Re===null||2>Re.length))for(x=E=0;E<Se.length&&x<Re.length;)z=Se[E],bt=Re[x],se=bt.x,de=bt.y,de+=Ae,ft=z,E+1<Se.length&&(ft=Se[E+1]),Pt=bt,bt=Pt.x,Pt=Pt.y,x+1<Re.length&&(Pt=Re[x+1],bt=Pt.x,Pt=Pt.y,Pt+=Ae),Nt=b,z.x===se?Nt=de-z.y:z.x>se&&z.x<bt?Nt=de+(z.x-se)/(bt-se)*(Pt-de)-z.y:se>z.x&&se<ft.x&&(Nt=de-(z.y+(se-z.x)/(ft.x-z.x)*(ft.y-z.y))),Nt<b&&(b=Nt),ft.x<=z.x?E++:bt<=se?x++:(ft.x<=bt&&E++,bt<=ft.x&&x++);if(Ae-=b,Ae+=pe,E=Re,x=Ae,y===null||2>y.length||E===null||2>E.length)b=null;else{for(pe=Ol(a,y.length+E.length),b=z=se=0;z<E.length&&E[z].x<y[0].x;)de=E[z++],pe[b++].h(de.x,de.y+x);for(;se<y.length;)de=y[se++],pe[b++].h(de.x,de.y);for(se=y[y.length-1].x;z<E.length&&E[z].x<=se;)z++;for(;z<E.length&&E[z].x>se;)de=E[z++],pe[b++].h(de.x,de.y+x);for(E=Ol(a,b),se=0;se<b;se++)E[se].assign(pe[se]);pc(a,pe),b=E}if(z=Ue,se=Ae,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Ol(a,Se.length+z.length),x=de=E=0;E<Se.length&&Se[E].x<z[0].x;)ft=Se[E++],pe[x++].h(ft.x,ft.y);for(;de<z.length;)ft=z[de++],pe[x++].h(ft.x,ft.y+se);for(z=z[z.length-1].x;E<Se.length&&Se[E].x<=z;)E++;for(;E<Se.length&&Se[E].x>z;)se=Se[E++],pe[x++].h(se.x,se.y);for(z=Ol(a,x),E=0;E<x;E++)z[E].assign(pe[E]);pc(a,pe),x=z}return z=Xe,ne=Math.max(0,Ae)+ne.height,pc(a,y),pc(a,Re),pc(a,Se),pc(a,Ue),re[0]=b,re[1]=x,new xn(Ae,0,z,ne)}function Ol(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var E=0;E<y;E++)a[E]=new rt;return a}function pc(a,y){var E=y.length,b=a.ru[E];b===void 0&&(b=[],a.ru[E]=b),b.push(y)}Yr.prototype.arrangeTrees=function(){if(this.Rb===j0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Du){var E=y.node;if(E!==null){var b=E.position;E=b.x,b=b.y,isFinite(E)||(E=0),isFinite(b)||(b=0),Dy(this,y,E,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)E=y.value,E instanceof Du&&a.push(E);switch(this.sorting){case pp:break;case _g:a.reverse();break;case Ug:a.sort(this.comparer);break;case Hg:a.sort(this.comparer),a.reverse();break;default:Ct("Unhandled sorting value "+this.sorting.toString())}for(E=this.arrangementOrigin,y=E.x,E=E.y,b=0;b<a.length;b++){var x=a[b];switch(Dy(this,x,y+x.la.x,E+x.la.y),this.Rb){case z0:E+=x.Da.height+this.$d.height;break;case Uy:y+=x.Da.width+this.$d.width;break;default:Ct("Unhandled arrangement value "+this.Rb.toString())}}}};function Dy(a,y,E,b){if(y!==null){y.x=E,y.y=b,y=y.children;for(var x=y.length,z=0;z<x;z++){var ne=y[z];Dy(a,ne,E+ne.S.x,b+ne.S.y)}}}Yr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Yr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Yr.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],E=null,b=this.network.vertexes.iterator;b.next();){var x=b.value;E===null?E=x.bounds.copy():E.ed(x.bounds);var z=y[x.level];z===void 0?z=this.computeLayerSpacing(x):z=Math.max(z,this.computeLayerSpacing(x)),y[x.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(E.Bc(this.nodeSpacing/2,this.layerSpacing),b=new rt(-this.nodeSpacing/2,-this.layerSpacing/2)):(E.Bc(this.layerSpacing,this.nodeSpacing/2),b=new rt(-this.layerSpacing/2,-this.nodeSpacing/2)),x=[],E=this.angle===90||this.angle===270?E.width:E.height,z=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)z+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var re=a[ne]+y[ne];this.angle===270?(z-=re,x.push(new xn(0,z,E,re))):this.angle===90?(x.push(new xn(0,z,E,re)),z+=re):this.angle===180?(z-=re,x.push(new xn(z,0,re,E))):(x.push(new xn(z,0,re,E)),z+=re)}this.commitLayers(x,b)}},Yr.prototype.commitLayers=function(){},Yr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Yr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Du&&SE(this,y)}};function SE(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var E=y.length,b=0;b<E;b++)SE(a,y[b])}}Yr.prototype.setPortSpots=function(a){var y=a.alignment;if(sh(y)){var E=this.ud===Gc,b=tc(a);switch(b){case 0:var x=Va;break;case 90:x=is;break;case 180:x=Es;break;default:x=ls}var z=a.children,ne=z.length;switch(y){case kd:case Zc:for(y=0;y<ne;y++){var re=z[y];if(re=(E?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var se=b===90||b===270?Es:ls;if(ne===1||y===ne-1&&ne%2===1)switch(b){case 0:se=Es;break;case 90:se=ls;break;case 180:se=Va;break;default:se=is}else y%2===0&&(se=b===90||b===270?Va:is);E?(a.setsPortSpot&&(re.fromSpot=x),a.setsChildPortSpot&&(re.toSpot=se)):(a.setsPortSpot&&(re.fromSpot=se),a.setsChildPortSpot&&(re.toSpot=x))}}break;case Ld:for(b=b===90||b===270?Va:is,z=E?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(E?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=x)));break;case rd:for(b=b===90||b===270?Es:ls,z=E?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(E?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=b)):(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=x)))}}else if(E=tc(a),this.ud===Gc){for(x=a.destinationEdges;x.next();)if(b=x.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:b.fromSpot=Va;break;case 90:b.fromSpot=is;break;case 180:b.fromSpot=Es;break;default:b.fromSpot=ls}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:b.toSpot=Es;break;case 90:b.toSpot=ls;break;case 180:b.toSpot=Va;break;default:b.toSpot=is}else b.toSpot=a.childPortSpot}}else for(x=a.sourceEdges;x.next();)if(b=x.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(E){case 0:b.toSpot=Va;break;case 90:b.toSpot=is;break;case 180:b.toSpot=Es;break;default:b.toSpot=ls}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(E){case 0:b.fromSpot=Es;break;case 90:b.fromSpot=ls;break;case 180:b.fromSpot=Va;break;default:b.fromSpot=is}else b.fromSpot=a.childPortSpot}};function tc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Yr.prototype.computeLayerSpacing=function(a){var y=tc(a);y=y===90||y===270;var E=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);E-=y?a.height*b:a.width*b}return E<(y?-a.height:-a.width)&&(E=y?-a.height:-a.width),E},Yr.prototype.computeNodeIndent=function(a){var y=tc(a),E=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);E+=y===90||y===270?a.width*b:a.height*b}return E=Math.max(0,E)},_n.Object.defineProperties(Yr.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!==H0&&a!==By&&a!==Fy&&a!==_y||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Hy&&a!==zy&&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!==z0&&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!==pp&&a!==_g&&a!==Ug&&!Hg||(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()):Ct("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!==zg||(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!==pp&&a!==_g&&a!==Ug&&!Hg||(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!==zg||(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 pn(Yr,"PathDefault",-1),Gc=new pn(Yr,"PathDestination",0),mf=new pn(Yr,"PathSource",1),pp=new pn(Yr,"SortingForwards",10),_g=new pn(Yr,"SortingReverse",11),Ug=new pn(Yr,"SortingAscending",12),Hg=new pn(Yr,"SortingDescending",13),gp=new pn(Yr,"AlignmentCenterSubtrees",20),vf=new pn(Yr,"AlignmentCenterChildren",21),Vc=new pn(Yr,"AlignmentStart",22),Wc=new pn(Yr,"AlignmentEnd",23),kd=new pn(Yr,"AlignmentBus",24),Zc=new pn(Yr,"AlignmentBusBranching",25),Ld=new pn(Yr,"AlignmentTopLeftBus",26),rd=new pn(Yr,"AlignmentBottomRightBus",27),U0=new pn(Yr,"CompactionNone",30),zg=new pn(Yr,"CompactionBlock",31),H0=new pn(Yr,"StyleLayered",40),Fy=new pn(Yr,"StyleLastParents",41),By=new pn(Yr,"StyleAlternating",42),_y=new pn(Yr,"StyleRootOnly",43),z0=new pn(Yr,"ArrangementVertical",50),Uy=new pn(Yr,"ArrangementHorizontal",51),j0=new pn(Yr,"ArrangementFixedRoots",52),Hy=new pn(Yr,"LayerIndividual",60),zy=new pn(Yr,"LayerSiblings",61),G0=new pn(Yr,"LayerUniform",62);Yr.className="TreeLayout",Yr.PathDefault=_0,Yr.PathDestination=Gc,Yr.PathSource=mf,Yr.SortingForwards=pp,Yr.SortingReverse=_g,Yr.SortingAscending=Ug,Yr.SortingDescending=Hg,Yr.AlignmentCenterSubtrees=gp,Yr.AlignmentCenterChildren=vf,Yr.AlignmentStart=Vc,Yr.AlignmentEnd=Wc,Yr.AlignmentBus=kd,Yr.AlignmentBusBranching=Zc,Yr.AlignmentTopLeftBus=Ld,Yr.AlignmentBottomRightBus=rd,Yr.CompactionNone=U0,Yr.CompactionBlock=zg,Yr.StyleLayered=H0,Yr.StyleLastParents=Fy,Yr.StyleAlternating=By,Yr.StyleRootOnly=_y,Yr.ArrangementVertical=z0,Yr.ArrangementHorizontal=Uy,Yr.ArrangementFixedRoots=j0,Yr.LayerIndividual=Hy,Yr.LayerSiblings=zy,Yr.LayerUniform=G0;function yf(a){zo.call(this,a)}dn(yf,zo),yf.prototype.createVertex=function(){return new Du(this)},yf.prototype.createEdge=function(){return new mp(this)},yf.className="TreeNetwork";function Du(a){ja.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 rt(0,0),this.Da=new en(0,0),this.la=new rt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=pp,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=zg,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Ia,this.wr=!0,this.Dp=Ia}dn(Du,ja),Du.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)},_n.Object.defineProperties(Du.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,E=0;E<y;E++);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,E=0;E<y;E++);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)}}}),Du.className="TreeVertex";function mp(a){Wl.call(this,a),this.$t=new rt(0,0)}dn(mp,Wl),mp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,E=null,b=null;switch(y.ud){case Gc:E=this.fromVertex,b=this.toVertex;break;case mf:E=this.toVertex,b=this.fromVertex;break;default:Ct("Unhandled path value "+y.ud.toString())}if(E!==null&&b!==null){var x=this.$t;if(x.x!==0||x.y!==0||E.qA){b=E.bounds;var z=tc(E),ne=y.computeLayerSpacing(E),re=E.rowSpacing;a.vg();var se=a.curve===su,de=a.isOrthogonal,pe;if(a.uh(),de||se){for(pe=2;4<a.pointsCount;)a.pv(2);var Se=a.i(1),Ae=a.i(2)}else{for(pe=1;3<a.pointsCount;)a.pv(1);Se=a.i(0),Ae=a.i(a.pointsCount-1)}var Re=a.i(a.pointsCount-1);z===0?(E.alignment===Wc?(z=b.bottom+x.y,x.y===0&&Se.y>Re.y+E.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(E))))):E.alignment===Vc?(z=b.top+x.y,x.y===0&&Se.y<Re.y-E.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.top-E.la.y+x.y:b.y+b.height/2+x.y,se?(a.m(pe,Se.x,z),pe++,a.m(pe,b.right+ne,z),pe++,a.m(pe,b.right+ne+(x.x-re)/3,z),pe++,a.m(pe,b.right+ne+2*(x.x-re)/3,z),pe++,a.m(pe,b.right+ne+(x.x-re),z),pe++,a.m(pe,Ae.x,z)):(de&&(a.m(pe,b.right+ne/2,Se.y),pe++),a.m(pe,b.right+ne/2,z),pe++,a.m(pe,b.right+ne+x.x-(de?re/2:re),z),pe++,de&&a.m(pe,a.i(pe-1).x,Ae.y))):z===90?(E.alignment===Wc?(z=b.right+x.x,x.x===0&&Se.x>Re.x+E.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(E))))):E.alignment===Vc?(z=b.left+x.x,x.x===0&&Se.x<Re.x-E.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.left-E.la.x+x.x:b.x+b.width/2+x.x,se?(a.m(pe,z,Se.y),pe++,a.m(pe,z,b.bottom+ne),pe++,a.m(pe,z,b.bottom+ne+(x.y-re)/3),pe++,a.m(pe,z,b.bottom+ne+2*(x.y-re)/3),pe++,a.m(pe,z,b.bottom+ne+(x.y-re)),pe++,a.m(pe,z,Ae.y)):(de&&(a.m(pe,Se.x,b.bottom+ne/2),pe++),a.m(pe,z,b.bottom+ne/2),pe++,a.m(pe,z,b.bottom+ne+x.y-(de?re/2:re)),pe++,de&&a.m(pe,Ae.x,a.i(pe-1).y))):z===180?(E.alignment===Wc?(z=b.bottom+x.y,x.y===0&&Se.y>Re.y+E.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(E))))):E.alignment===Vc?(z=b.top+x.y,x.y===0&&Se.y<Re.y-E.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.top-E.la.y+x.y:b.y+b.height/2+x.y,se?(a.m(pe,Se.x,z),pe++,a.m(pe,b.left-ne,z),pe++,a.m(pe,b.left-ne+(x.x+re)/3,z),pe++,a.m(pe,b.left-ne+2*(x.x+re)/3,z),pe++,a.m(pe,b.left-ne+(x.x+re),z),pe++,a.m(pe,Ae.x,z)):(de&&(a.m(pe,b.left-ne/2,Se.y),pe++),a.m(pe,b.left-ne/2,z),pe++,a.m(pe,b.left-ne+x.x+(de?re/2:re),z),pe++,de&&a.m(pe,a.i(pe-1).x,Ae.y))):z===270?(E.alignment===Wc?(z=b.right+x.x,x.x===0&&Se.x>Re.x+E.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(E))))):E.alignment===Vc?(z=b.left+x.x,x.x===0&&Se.x<Re.x-E.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(E))))):z=E.hm||E.im&&E.maxGenerationCount===1?b.left-E.la.x+x.x:b.x+b.width/2+x.x,se?(a.m(pe,z,Se.y),pe++,a.m(pe,z,b.top-ne),pe++,a.m(pe,z,b.top-ne+(x.y+re)/3),pe++,a.m(pe,z,b.top-ne+2*(x.y+re)/3),pe++,a.m(pe,z,b.top-ne+(x.y+re)),pe++,a.m(pe,z,Ae.y)):(de&&(a.m(pe,Se.x,b.top-ne/2),pe++),a.m(pe,z,b.top-ne/2),pe++,a.m(pe,z,b.top-ne+x.y+(de?re/2:re)),pe++,de&&a.m(pe,Ae.x,a.i(pe-1).y))):Ct("Invalid angle "+z),a.zf()}else x=b,a=this.link,b=this.network.layout,y=tc(E),y!==tc(x)&&(ne=b.computeLayerSpacing(E),re=E.bounds,E=x.bounds,y===0&&E.left-re.right<ne+1||y===90&&E.top-re.bottom<ne+1||y===180&&re.left-E.right<ne+1||y===270&&re.top-E.bottom<ne+1||(a.vg(),E=a.curve===su,x=a.isOrthogonal,b=sh(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ne/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,E),a.m(3,y,E),a.m(4,y+20,E),a.L(5,a.i(5).x,E)):x?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ne/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,E,y-20),a.m(3,E,y),a.m(4,E,y+20),a.L(5,E,a.i(5).y)):x?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ne/2,E?a.pointsCount===4&&(E=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,E),a.m(3,y,E),a.m(4,y-20,E),a.L(5,a.i(5).x,E)):x?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ne/2,E?a.pointsCount===4&&(E=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,E,y+20),a.m(3,E,y),a.m(4,E,y-20),a.L(5,E,a.i(5).y)):x?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},_n.Object.defineProperties(mp.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)}}}),mp.className="TreeEdge",Fo.prototype.initializeStandardTools=function(){this.gb("Action",new Xn,this.mouseDownTools),this.gb("Relinking",new el,this.mouseDownTools),this.gb("LinkReshaping",new Ze,this.mouseDownTools),this.gb("Rotating",new vi,this.mouseDownTools),this.gb("Resizing",new En,this.mouseDownTools),this.gb("Linking",new Is,this.mouseMoveTools),this.gb("Dragging",new _o,this.mouseMoveTools),this.gb("DragSelecting",new Oi,this.mouseMoveTools),this.gb("Panning",new ei,this.mouseMoveTools),this.gb("ContextMenu",new Mo,this.mouseUpTools),this.gb("TextEditing",new io,this.mouseUpTools),this.gb("ClickCreating",new Ui,this.mouseUpTools),this.gb("ClickSelecting",new bi,this.mouseUpTools)},Cc("Horizontal",new ym),Cc("Spot",new Em),Cc("Table",new xm),Cc("Viewbox",new Tm),Cc("TableRow",new wm),Cc("TableColumn",new Cm),Cc("Graduated",new ig),Cc("Grid",new ng),Uf.add("GraphLinksModel",rs),Uf.add("TreeModel",xu);var V0=mn.go,jy={get licenseKey(){return Tn.licenseKey},set licenseKey(a){Tn.licenseKey=a},get version(){return Tn.version},Group:Ir,EnumValue:pn,List:Wn,Set:$n,Map:yn,Point:rt,Size:en,Rect:xn,Margin:Fr,Spot:$i,Geometry:Ti,PathFigure:ya,PathSegment:no,InputEvent:Ja,DiagramEvent:hu,ChangedEvent:Ko,Model:or,GraphLinksModel:to,TreeModel:cl,Binding:Na,Transaction:Sa,UndoManager:Lo,CommandHandler:Et,Tool:qr,DraggingTool:_o,DraggingInfo:qc,DraggingOptions:le,LinkingBaseTool:ra,LinkingTool:Is,RelinkingTool:el,LinkReshapingTool:Ze,ResizingTool:En,RotatingTool:vi,ClickSelectingTool:bi,ActionTool:Xn,ClickCreatingTool:Ui,HTMLInfo:ro,ContextMenuTool:Mo,DragSelectingTool:Oi,PanningTool:ei,TextEditingTool:io,ToolManager:Fo,Animation:Wi,AnimationManager:As,AnimationTrigger:Sl,Layer:hs,Diagram:Tn,Palette:ye,Overview:xe,Brush:bo,GraphObject:qt,Panel:wi,RowColumnDefinition:Ba,Shape:Hr,TextBlock:Ho,Picture:Cl,Part:cr,Adornment:co,Node:Gi,Link:Li,Placeholder:al,Layout:ta,LayoutNetwork:zo,LayoutVertex:ja,LayoutEdge:Wl,GridLayout:ys,PanelLayout:za,CircularLayout:oa,CircularNetwork:dp,CircularVertex:Ig,CircularEdge:C0,ForceDirectedLayout:ks,ForceDirectedNetwork:pf,ForceDirectedVertex:Mg,ForceDirectedEdge:Og,LayeredDigraphLayout:wo,LayeredDigraphNetwork:fp,LayeredDigraphVertex:Cu,LayeredDigraphEdge:Fg,TreeLayout:Yr,TreeNetwork:yf,TreeVertex:Du,TreeEdge:mp};typeof V0=="object"&&V0.version&&gi("WARNING: a `go` object on the root object is already defined. "+("Debug"in V0?"debug ":"")+"version: "+V0.version+", replaced with version: "+jy.version),Tn.prototype.go=jy,mn.go=jy,typeof _e.exports=="object"&&(_e.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var oe=typeof ae.g!="undefined"?ae.g.go:self.go;const Ce=typeof ae.g!="undefined"?ae.g.go:self.go,ke=Ce.Group,Ie=Ce.EnumValue,He=Ce.List,Te=Ce.Set,ze=Ce.Map,ot=Ce.Point,Ke=Ce.Size,Be=Ce.Rect,gt=Ce.Margin,Je=Ce.Spot,wt=Ce.Geometry,Fe=Ce.PathFigure,te=Ce.PathSegment,ee=Ce.InputEvent,he=Ce.DiagramEvent,ue=Ce.ChangedEvent,fe=Ce.Model,me=Ce.GraphLinksModel,Ee=Ce.TreeModel,Pe=Ce.Binding,Ne=Ce.Transaction,We=Ce.UndoManager,tt=Ce.CommandHandler,Ye=Ce.Tool,Qe=Ce.DraggingTool,lt=Ce.DraggingInfo,nt=Ce.LinkingBaseTool,yt=Ce.LinkingTool,vt=Ce.RelinkingTool,St=Ce.LinkReshapingTool,Lt=Ce.ResizingTool,jt=Ce.RotatingTool,Bt=Ce.ClickSelectingTool,cn=Ce.ActionTool,pt=Ce.ClickCreatingTool,ut=Ce.HTMLInfo,at=Ce.ContextMenuTool,Wt=Ce.DragSelectingTool,rn=Ce.PanningTool,Tt=Ce.TextEditingTool,Xt=Ce.ToolManager,nn=Ce.Animation,Nn=Ce.AnimationManager,Rt=Ce.AnimationTrigger,At=Ce.Layer,Zt=Ce.Diagram,In=Ce.Palette,Dn=Ce.Overview,qe=Ce.Brush,Oe=Ce.GraphObject,Le=Ce.Panel,Ge=Ce.RowColumnDefinition,it=Ce.Shape,De=Ce.TextBlock,ht=Ce.TextBlockMetrics,on=Ce.Picture,An=Ce.Part,Zn=Ce.Adornment,Ft=Ce.Node,It=Ce.Link,Gt=Ce.Placeholder,fn=Ce.Layout,Pn=Ce.LayoutNetwork,an=Ce.LayoutVertex,Ot=Ce.LayoutEdge,Mn=Ce.GridLayout,Ht=Ce.PanelLayout,Kt=Ce.CircularLayout,un=Ce.CircularNetwork,Vn=Ce.CircularVertex,bn=Ce.CircularEdge,mt=Ce.ForceDirectedLayout,jn=Ce.ForceDirectedNetwork,Kn=Ce.ForceDirectedVertex,Ut=Ce.ForceDirectedEdge,yi=Ce.LayeredDigraphLayout,Vi=Ce.LayeredDigraphNetwork,kn=Ce.LayeredDigraphVertex,Vt=Ce.LayeredDigraphEdge,Qn=Ce.TreeLayout,ai=Ce.TreeNetwork,Un=Ce.TreeVertex,si=Ce.TreeEdge,li=Ce.version},46963:function(_e){"use strict";_e.exports=ae;var be=/[#.]/g;function ae(oe,Ce){for(var ke=oe||"",Ie=Ce||"div",He={},Te=0,ze,ot,Ke;Te<ke.length;)be.lastIndex=Te,Ke=be.exec(ke),ze=ke.slice(Te,Ke?Ke.index:ke.length),ze&&(ot?ot==="#"?He.id=ze:He.className?He.className.push(ze):He.className=[ze]:Ie=ze,Te+=ze.length),Ke&&(ot=Ke[0],Te++);return{type:"element",tagName:Ie,properties:He,children:[]}}},5641:function(_e,be,ae){"use strict";var oe=ae(88914),Ce=ae(47178),ke=ae(46963),Ie=ae(92848).Q,He=ae(58951).Q;_e.exports=ze;var Te={}.hasOwnProperty;function ze(te,ee,he){var ue=he?Fe(he):null;return fe;function fe(Ee,Pe){var Ne=ke(Ee,ee),We=Array.prototype.slice.call(arguments,2),tt=Ne.tagName.toLowerCase(),Ye;if(Ne.tagName=ue&&Te.call(ue,tt)?ue[tt]:tt,Pe&&ot(Pe,Ne)&&(We.unshift(Pe),Pe=null),Pe)for(Ye in Pe)me(Ne.properties,Ye,Pe[Ye]);return Be(Ne.children,We),Ne.tagName==="template"&&(Ne.content={type:"root",children:Ne.children},Ne.children=[]),Ne}function me(Ee,Pe,Ne){var We,tt,Ye;Ne==null||Ne!==Ne||(We=oe(te,Pe),tt=We.property,Ye=Ne,typeof Ye=="string"&&(We.spaceSeparated?Ye=Ie(Ye):We.commaSeparated?Ye=He(Ye):We.commaOrSpaceSeparated&&(Ye=Ie(He(Ye).join(" ")))),tt==="style"&&typeof Ne!="string"&&(Ye=wt(Ye)),tt==="className"&&Ee.className&&(Ye=Ee.className.concat(Ye)),Ee[tt]=gt(We,tt,Ye))}}function ot(te,ee){return typeof te=="string"||"length"in te||Ke(ee.tagName,te)}function Ke(te,ee){var he=ee.type;return te==="input"||!he||typeof he!="string"?!1:typeof ee.children=="object"&&"length"in ee.children?!0:(he=he.toLowerCase(),te==="button"?he!=="menu"&&he!=="submit"&&he!=="reset"&&he!=="button":"value"in ee)}function Be(te,ee){var he,ue;if(typeof ee=="string"||typeof ee=="number"){te.push({type:"text",value:String(ee)});return}if(typeof ee=="object"&&"length"in ee){for(he=-1,ue=ee.length;++he<ue;)Be(te,ee[he]);return}if(typeof ee!="object"||!("type"in ee))throw new Error("Expected node, nodes, or string, got `"+ee+"`");te.push(ee)}function gt(te,ee,he){var ue,fe,me;if(typeof he!="object"||!("length"in he))return Je(te,ee,he);for(fe=he.length,ue=-1,me=[];++ue<fe;)me[ue]=Je(te,ee,he[ue]);return me}function Je(te,ee,he){var ue=he;return te.number||te.positiveNumber?!isNaN(ue)&&ue!==""&&(ue=Number(ue)):(te.boolean||te.overloadedBoolean)&&typeof ue=="string"&&(ue===""||Ce(he)===Ce(ee))&&(ue=!0),ue}function wt(te){var ee=[],he;for(he in te)ee.push([he,te[he]].join(": "));return ee.join("; ")}function Fe(te){for(var ee=te.length,he=-1,ue={},fe;++he<ee;)fe=te[he],ue[fe.toLowerCase()]=fe;return ue}},82073:function(_e,be,ae){"use strict";var oe=ae(18795),Ce=ae(5641),ke=Ce(oe,"div");ke.displayName="html",_e.exports=ke},43621:function(_e,be,ae){"use strict";_e.exports=ae(82073)},93193:function(_e){var be=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,oe=/^\s*/,Ce=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ke=/^:\s*/,Ie=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,He=/^[;\s]*/,Te=/^\s+|\s+$/g,ze=`
`,ot="/",Ke="*",Be="",gt="comment",Je="declaration";_e.exports=function(Fe,te){if(typeof Fe!="string")throw new TypeError("First argument must be a string");if(!Fe)return[];te=te||{};var ee=1,he=1;function ue(nt){var yt=nt.match(ae);yt&&(ee+=yt.length);var vt=nt.lastIndexOf(ze);he=~vt?nt.length-vt:he+nt.length}function fe(){var nt={line:ee,column:he};return function(yt){return yt.position=new me(nt),We(),yt}}function me(nt){this.start=nt,this.end={line:ee,column:he},this.source=te.source}me.prototype.content=Fe;var Ee=[];function Pe(nt){var yt=new Error(te.source+":"+ee+":"+he+": "+nt);if(yt.reason=nt,yt.filename=te.source,yt.line=ee,yt.column=he,yt.source=Fe,te.silent)Ee.push(yt);else throw yt}function Ne(nt){var yt=nt.exec(Fe);if(yt){var vt=yt[0];return ue(vt),Fe=Fe.slice(vt.length),yt}}function We(){Ne(oe)}function tt(nt){var yt;for(nt=nt||[];yt=Ye();)yt!==!1&&nt.push(yt);return nt}function Ye(){var nt=fe();if(!(ot!=Fe.charAt(0)||Ke!=Fe.charAt(1))){for(var yt=2;Be!=Fe.charAt(yt)&&(Ke!=Fe.charAt(yt)||ot!=Fe.charAt(yt+1));)++yt;if(yt+=2,Be===Fe.charAt(yt-1))return Pe("End of comment missing");var vt=Fe.slice(2,yt-2);return he+=2,ue(vt),Fe=Fe.slice(yt),he+=2,nt({type:gt,comment:vt})}}function Qe(){var nt=fe(),yt=Ne(Ce);if(yt){if(Ye(),!Ne(ke))return Pe("property missing ':'");var vt=Ne(Ie),St=nt({type:Je,property:wt(yt[0].replace(be,Be)),value:vt?wt(vt[0].replace(be,Be)):Be});return Ne(He),St}}function lt(){var nt=[];tt(nt);for(var yt;yt=Qe();)yt!==!1&&(nt.push(yt),tt(nt));return nt}return We(),lt()};function wt(Fe){return Fe?Fe.replace(Te,Be):Be}},91241:function(_e){"use strict";_e.exports=be;function be(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=97&&oe<=122||oe>=65&&oe<=90}},21127:function(_e,be,ae){"use strict";var oe=ae(91241),Ce=ae(22347);_e.exports=ke;function ke(Ie){return oe(Ie)||Ce(Ie)}},22347:function(_e){"use strict";_e.exports=be;function be(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=48&&oe<=57}},65207:function(_e){"use strict";_e.exports=be;function be(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=97&&oe<=102||oe>=65&&oe<=70||oe>=48&&oe<=57}},24334:function(_e,be,ae){var oe,Ce;(function(ke,Ie){_e.exports=Ie(ke)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(ke){"use strict";ke=ke||{};var Ie=ke.Base64,He="2.6.4",Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=function(vt){for(var St={},Lt=0,jt=vt.length;Lt<jt;Lt++)St[vt.charAt(Lt)]=Lt;return St}(Te),ot=String.fromCharCode,Ke=function(vt){if(vt.length<2){var St=vt.charCodeAt(0);return St<128?vt:St<2048?ot(192|St>>>6)+ot(128|St&63):ot(224|St>>>12&15)+ot(128|St>>>6&63)+ot(128|St&63)}else{var St=65536+(vt.charCodeAt(0)-55296)*1024+(vt.charCodeAt(1)-56320);return ot(240|St>>>18&7)+ot(128|St>>>12&63)+ot(128|St>>>6&63)+ot(128|St&63)}},Be=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gt=function(vt){return vt.replace(Be,Ke)},Je=function(vt){var St=[0,2,1][vt.length%3],Lt=vt.charCodeAt(0)<<16|(vt.length>1?vt.charCodeAt(1):0)<<8|(vt.length>2?vt.charCodeAt(2):0),jt=[Te.charAt(Lt>>>18),Te.charAt(Lt>>>12&63),St>=2?"=":Te.charAt(Lt>>>6&63),St>=1?"=":Te.charAt(Lt&63)];return jt.join("")},wt=ke.btoa&&typeof ke.btoa=="function"?function(vt){return ke.btoa(vt)}:function(vt){if(vt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return vt.replace(/[\s\S]{1,3}/g,Je)},Fe=function(vt){return wt(gt(String(vt)))},te=function(vt){return vt.replace(/[+\/]/g,function(St){return St=="+"?"-":"_"}).replace(/=/g,"")},ee=function(vt,St){return St?te(Fe(vt)):Fe(vt)},he=function(vt){return ee(vt,!0)},ue;ke.Uint8Array&&(ue=function(vt,St){for(var Lt="",jt=0,Bt=vt.length;jt<Bt;jt+=3){var cn=vt[jt],pt=vt[jt+1],ut=vt[jt+2],at=cn<<16|pt<<8|ut;Lt+=Te.charAt(at>>>18)+Te.charAt(at>>>12&63)+(typeof pt!="undefined"?Te.charAt(at>>>6&63):"=")+(typeof ut!="undefined"?Te.charAt(at&63):"=")}return St?te(Lt):Lt});var fe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(vt){switch(vt.length){case 4:var St=(7&vt.charCodeAt(0))<<18|(63&vt.charCodeAt(1))<<12|(63&vt.charCodeAt(2))<<6|63&vt.charCodeAt(3),Lt=St-65536;return ot((Lt>>>10)+55296)+ot((Lt&1023)+56320);case 3:return ot((15&vt.charCodeAt(0))<<12|(63&vt.charCodeAt(1))<<6|63&vt.charCodeAt(2));default:return ot((31&vt.charCodeAt(0))<<6|63&vt.charCodeAt(1))}},Ee=function(vt){return vt.replace(fe,me)},Pe=function(vt){var St=vt.length,Lt=St%4,jt=(St>0?ze[vt.charAt(0)]<<18:0)|(St>1?ze[vt.charAt(1)]<<12:0)|(St>2?ze[vt.charAt(2)]<<6:0)|(St>3?ze[vt.charAt(3)]:0),Bt=[ot(jt>>>16),ot(jt>>>8&255),ot(jt&255)];return Bt.length-=[0,0,2,1][Lt],Bt.join("")},Ne=ke.atob&&typeof ke.atob=="function"?function(vt){return ke.atob(vt)}:function(vt){return vt.replace(/\S{1,4}/g,Pe)},We=function(vt){return Ne(String(vt).replace(/[^A-Za-z0-9\+\/]/g,""))},tt=function(vt){return Ee(Ne(vt))},Ye=function(vt){return String(vt).replace(/[-_]/g,function(St){return St=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Qe=function(vt){return tt(Ye(vt))},lt;ke.Uint8Array&&(lt=function(vt){return Uint8Array.from(We(Ye(vt)),function(St){return St.charCodeAt(0)})});var nt=function(){var vt=ke.Base64;return ke.Base64=Ie,vt};if(ke.Base64={VERSION:He,atob:We,btoa:wt,fromBase64:Qe,toBase64:ee,utob:gt,encode:ee,encodeURI:he,btou:Ee,decode:Qe,noConflict:nt,fromUint8Array:ue,toUint8Array:lt},typeof Object.defineProperty=="function"){var yt=function(vt){return{value:vt,enumerable:!1,writable:!0,configurable:!0}};ke.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",yt(function(){return Qe(this)})),Object.defineProperty(String.prototype,"toBase64",yt(function(vt){return ee(this,vt)})),Object.defineProperty(String.prototype,"toBase64URI",yt(function(){return ee(this,!0)}))}}return ke.Meteor&&(Base64=ke.Base64),_e.exports?_e.exports.Base64=ke.Base64:(oe=[],Ce=function(){return ke.Base64}.apply(be,oe),Ce!==void 0&&(_e.exports=Ce)),{Base64:ke.Base64}})},2859:function(_e,be,ae){"use strict";ae.d(be,{hP:function(){return Dn}});var oe=function(qe,Oe){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Le,Ge){Le.__proto__=Ge}||function(Le,Ge){for(var it in Ge)Object.prototype.hasOwnProperty.call(Ge,it)&&(Le[it]=Ge[it])})(qe,Oe)};function Ce(qe,Oe){function Le(){this.constructor=qe}oe(qe,Oe),qe.prototype=Oe===null?Object.create(Oe):(Le.prototype=Oe.prototype,new Le)}function ke(qe,Oe,Le,Ge){return new(Le||(Le=Promise))(function(it,De){function ht(Zn){try{An(Ge.next(Zn))}catch(Ft){De(Ft)}}function on(Zn){try{An(Ge.throw(Zn))}catch(Ft){De(Ft)}}function An(Zn){var Ft;Zn.done?it(Zn.value):(Ft=Zn.value,Ft instanceof Le?Ft:new Le(function(It){It(Ft)})).then(ht,on)}An((Ge=Ge.apply(qe,Oe||[])).next())})}function Ie(qe,Oe){var Le,Ge,it,De,ht={label:0,sent:function(){if(1&it[0])throw it[1];return it[1]},trys:[],ops:[]};return De={next:on(0),throw:on(1),return:on(2)},typeof Symbol=="function"&&(De[Symbol.iterator]=function(){return this}),De;function on(An){return function(Zn){return function(Ft){if(Le)throw new TypeError("Generator is already executing.");for(;ht;)try{if(Le=1,Ge&&(it=2&Ft[0]?Ge.return:Ft[0]?Ge.throw||((it=Ge.return)&&it.call(Ge),0):Ge.next)&&!(it=it.call(Ge,Ft[1])).done)return it;switch(Ge=0,it&&(Ft=[2&Ft[0],it.value]),Ft[0]){case 0:case 1:it=Ft;break;case 4:return ht.label++,{value:Ft[1],done:!1};case 5:ht.label++,Ge=Ft[1],Ft=[0];continue;case 7:Ft=ht.ops.pop(),ht.trys.pop();continue;default:if(it=ht.trys,!((it=it.length>0&&it[it.length-1])||Ft[0]!==6&&Ft[0]!==2)){ht=0;continue}if(Ft[0]===3&&(!it||Ft[1]>it[0]&&Ft[1]<it[3])){ht.label=Ft[1];break}if(Ft[0]===6&&ht.label<it[1]){ht.label=it[1],it=Ft;break}if(it&&ht.label<it[2]){ht.label=it[2],ht.ops.push(Ft);break}it[2]&&ht.ops.pop(),ht.trys.pop();continue}Ft=Oe.call(qe,ht)}catch(It){Ft=[6,It],Ge=0}finally{Le=it=0}if(5&Ft[0])throw Ft[1];return{value:Ft[0]?Ft[1]:void 0,done:!0}}([An,Zn])}}}function He(){for(var qe=0,Oe=0,Le=arguments.length;Oe<Le;Oe++)qe+=arguments[Oe].length;var Ge=Array(qe),it=0;for(Oe=0;Oe<Le;Oe++)for(var De=arguments[Oe],ht=0,on=De.length;ht<on;ht++,it++)Ge[it]=De[ht];return Ge}var Te=function(){function qe(){}return qe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},qe.setAttributes=function(Oe,Le){for(var Ge=0,it=Le;Ge<it.length;Ge++){var De=it[Ge],ht=De[0],on=De[1];Oe.setAttribute(ht,on)}},qe.createRect=function(Oe,Le,Ge){var it=document.createElementNS("http://www.w3.org/2000/svg","rect");return it.setAttribute("width",Oe.toString()),it.setAttribute("height",Le.toString()),Ge&&qe.setAttributes(it,Ge),it},qe.createLine=function(Oe,Le,Ge,it,De){var ht=document.createElementNS("http://www.w3.org/2000/svg","line");return ht.setAttribute("x1",Oe.toString()),ht.setAttribute("y1",Le.toString()),ht.setAttribute("x2",Ge.toString()),ht.setAttribute("y2",it.toString()),De&&qe.setAttributes(ht,De),ht},qe.createPolygon=function(Oe,Le){var Ge=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ge.setAttribute("points",Oe),Le&&qe.setAttributes(Ge,Le),Ge},qe.createCircle=function(Oe,Le){var Ge=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ge.setAttribute("cx",(Oe/2).toString()),Ge.setAttribute("cy",(Oe/2).toString()),Ge.setAttribute("r",Oe.toString()),Le&&qe.setAttributes(Ge,Le),Ge},qe.createEllipse=function(Oe,Le,Ge){var it=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return it.setAttribute("cx",(Oe/2).toString()),it.setAttribute("cy",(Le/2).toString()),it.setAttribute("rx",(Oe/2).toString()),it.setAttribute("ry",(Le/2).toString()),Ge&&qe.setAttributes(it,Ge),it},qe.createGroup=function(Oe){var Le=document.createElementNS("http://www.w3.org/2000/svg","g");return Oe&&qe.setAttributes(Le,Oe),Le},qe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},qe.createMarker=function(Oe,Le,Ge,it,De,ht,on){var An=document.createElementNS("http://www.w3.org/2000/svg","marker");return qe.setAttributes(An,[["id",Oe],["orient",Le],["markerWidth",Ge.toString()],["markerHeight",it.toString()],["refX",De.toString()],["refY",ht.toString()]]),An.appendChild(on),An},qe.createText=function(Oe){var Le=document.createElementNS("http://www.w3.org/2000/svg","text");return Le.setAttribute("x","0"),Le.setAttribute("y","0"),Oe&&qe.setAttributes(Le,Oe),Le},qe.createTSpan=function(Oe,Le){var Ge=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ge.textContent=Oe,Le&&qe.setAttributes(Ge,Le),Ge},qe.createImage=function(Oe){var Le=document.createElementNS("http://www.w3.org/2000/svg","image");return Oe&&qe.setAttributes(Le,Oe),Le},qe.createPoint=function(Oe,Le){var Ge=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ge.x=Oe,Ge.y=Le,Ge},qe.createPath=function(Oe,Le){var Ge=document.createElementNS("http://www.w3.org/2000/svg","path");return Ge.setAttribute("d",Oe),Le&&qe.setAttributes(Ge,Le),Ge},qe}(),ze=function(){function qe(){}return qe.addKey=function(Oe){qe.key=Oe},Object.defineProperty(qe,"isLicensed",{get:function(){return!!qe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(qe.key)},enumerable:!1,configurable:!0}),qe}(),ot=function(){function qe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return qe.prototype.rasterize=function(Oe,Le,Ge){var it=this;return new Promise(function(De){var ht=Ge!==void 0?Ge:document.createElement("canvas");Oe===null&&(it.markersOnly=!0,it.naturalSize=!1);var on=document.createElementNS("http://www.w3.org/2000/svg","svg");on.setAttribute("xmlns","http://www.w3.org/2000/svg"),on.setAttribute("width",Le.width.baseVal.valueAsString),on.setAttribute("height",Le.height.baseVal.valueAsString),on.setAttribute("viewBox","0 0 "+Le.viewBox.baseVal.width.toString()+" "+Le.viewBox.baseVal.height.toString()),on.innerHTML=Le.innerHTML,it.naturalSize===!0?(on.width.baseVal.value=Oe.naturalWidth,on.height.baseVal.value=Oe.naturalHeight):it.width!==void 0&&it.height!==void 0&&(on.width.baseVal.value=it.width,on.height.baseVal.value=it.height),ht.width=on.width.baseVal.value,ht.height=on.height.baseVal.value;var An=on.outerHTML,Zn=ht.getContext("2d");it.markersOnly!==!0&&Zn.drawImage(Oe,0,0,ht.width,ht.height);var Ft=window.URL,It=new Image(ht.width,ht.height);It.setAttribute("crossOrigin","anonymous");var Gt=new Blob([An],{type:"image/svg+xml"}),fn=Ft.createObjectURL(Gt);It.onload=function(){Zn.drawImage(It,0,0),Ft.revokeObjectURL(fn);var Pn=ht.toDataURL(it.imageType,it.imageQuality);De(Pn)},It.src=fn})},qe}(),Ke=function(){},Be=function(){function qe(Oe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Oe+"_"}return Object.defineProperty(qe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(qe.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(qe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),qe.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},qe.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)},qe.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 gt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new gt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new gt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Je("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Je("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},qe.prototype.removeStyleSheet=function(){var Oe;this.styleSheet&&(((Oe=this.styleSheetRoot)!==null&&Oe!==void 0?Oe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},qe}(),gt=function(qe,Oe){this.selector=qe,this.style=Oe},Je=function(qe,Oe){this.localName=qe,this.style=Oe},wt=function(){function qe(Oe,Le,Ge,it,De){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Oe,this.displayMode=Le,this.markerItems=Ge,this.uiStyleSettings=it,this.styles=De,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return qe.prototype.show=function(Oe){var Le=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 Ge=document.createElement("div");Ge.className=this.toolbarBlockStyleClass.name,Ge.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ge),this.addActionButton(Ge,'<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(Ge,'<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(Ge,'<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(Ge,'<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(Ge,'<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(Ge,'<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(Ge,'<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(Ge,'<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(De){var ht=document.createElement("div");ht.className=""+Le.toolbarButtonStyleClass.name,ht.setAttribute("data-type-name",De.typeName),ht.innerHTML=De.icon,ht.addEventListener("click",function(){Le.markerToolbarButtonClicked(ht,De)}),Le.buttons.push(ht),Le.markerButtons.push(ht)}),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 it=document.createElement("div");it.className=this.toolbarBlockStyleClass.name,it.style.whiteSpace="nowrap",it.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(it),this.addActionButton(it,'<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(it,'<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()},qe.prototype.addButtonClickListener=function(Oe){this.buttonClickListeners.push(Oe)},qe.prototype.removeButtonClickListener=function(Oe){this.buttonClickListeners.indexOf(Oe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Oe),1)},qe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},qe.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 Le=0;Le<this.markerButtons.length;Le++)Le<Oe||Le===Oe&&this.markerButtons.length-1===Oe?this.markerButtonBlock.appendChild(this.markerButtons[Le]):(Le===Oe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Le]))}},qe.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")},qe.prototype.resetButtonStyles=function(){var Oe=this;this.buttons.forEach(function(Le){Le.className=Le.className.replace(Oe.uiStyleSettings.toolbarButtonStyleColorsClassName?Oe.uiStyleSettings.toolbarButtonStyleColorsClassName:Oe.toolbarButtonStyleColorsClass.name,"").trim(),Le.className=Le.className.replace(Oe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Oe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Oe.toolbarActiveButtonStyleColorsClass.name,"").trim(),Le.className+=" "+(Oe.uiStyleSettings.toolbarButtonStyleColorsClassName?Oe.uiStyleSettings.toolbarButtonStyleColorsClassName:Oe.toolbarButtonStyleColorsClass.name)})},qe.prototype.addActionButton=function(Oe,Le,Ge){var it=this,De=document.createElement("div");switch(De.className=""+this.toolbarButtonStyleClass.name,De.innerHTML=Le,De.setAttribute("data-action",Ge),De.addEventListener("click",function(){it.actionToolbarButtonClicked(De,Ge)}),Ge){case"select":De.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":De.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":De.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":De.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":De.style.fill=this.uiStyleSettings.closeButtonColor}Oe.appendChild(De),this.buttons.push(De)},qe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Je("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 Je("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Je("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Je("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 Je("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Oe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Je("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 Je("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Je("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new gt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new gt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},qe.prototype.markerToolbarButtonClicked=function(Oe,Le){this.setActiveButton(Oe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ge){return Ge("marker",Le)}),this.markerButtonOverflowBlock.style.display="none"},qe.prototype.actionToolbarButtonClicked=function(Oe,Le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ge){return Ge("action",Le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},qe.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)},qe.prototype.setActiveMarkerButton=function(Oe){var Le=this.markerButtons.find(function(Ge){return Ge.getAttribute("data-type-name")===Oe});Le&&this.setActiveButton(Le)},qe.prototype.setCurrentMarker=function(Oe){var Le=this;this.currentMarker=Oe,this.buttons.filter(function(Ge){return/delete|notes/.test(Ge.getAttribute("data-action"))}).forEach(function(Ge){Le.currentMarker===void 0?(Ge.style.fillOpacity="0.4",Ge.style.pointerEvents="none"):(Ge.style.fillOpacity="1",Ge.style.pointerEvents="all")})},qe}(),Fe=function(){function qe(Oe,Le,Ge,it){this.panels=[],this.panelButtons=[],this.markerjsContainer=Oe,this.displayMode=Le,this.uiStyleSettings=Ge,this.styles=it,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return qe.prototype.addStyles=function(){var Oe;this.toolboxStyleClass=this.styles.addClass(new Je("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 Je("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Le=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Je("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Je("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Je("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 Je("toolbox-panel-row_colors",`
background-color: `+((Oe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Oe!==void 0?Oe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Je("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
padding: `+Le+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Je("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Je("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new gt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new gt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},qe.prototype.show=function(Oe){var Le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Oe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},qe.prototype.setPanelButtons=function(Oe){var Le,Ge,it=this;this.panels=Oe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ge=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ge!==void 0?Ge:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(De){var ht;De.uiStyleSettings=it.uiStyleSettings;var on=document.createElement("div");on.className=it.toolboxButtonStyleClass.name+" "+((ht=it.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ht!==void 0?ht:it.toolboxButtonStyleColorsClass.name),on.innerHTML=De.icon,on.title=De.title,on.addEventListener("click",function(){it.panelButtonClick(De)}),it.panelButtons.push(on),it.buttonRow.appendChild(on)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},qe.prototype.panelButtonClick=function(Oe){var Le=this,Ge=-1;if(Oe!==this.activePanel){Ge=this.panels.indexOf(Oe),this.panelRow.innerHTML="";var it=Oe.getUi();it.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(it),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(){Le.displayMode==="inline"?Le.panelRow.style.display="none":Le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(De,ht){var on,An;De.className=Le.toolboxButtonStyleClass.name+" "+(ht===Ge?""+((on=Le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&on!==void 0?on:Le.toolboxActiveButtonStyleColorsClass.name):""+((An=Le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&An!==void 0?An:Le.toolboxButtonStyleColorsClass.name))})},qe}(),te=function(qe,Oe){this.title=qe,this.icon=Oe},ee=function(qe){function Oe(Le,Ge,it,De){var ht=qe.call(this,Le,De||'<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 ht.colors=[],ht.addTransparent=!1,ht.colorBoxes=[],ht.colors=Ge,ht.currentColor=it,ht.setCurrentColor=ht.setCurrentColor.bind(ht),ht.getColorBox=ht.getColorBox.bind(ht),ht}return Ce(Oe,qe),Oe.prototype.getUi=function(){var Le=this,Ge=document.createElement("div");return Ge.style.overflow="hidden",Ge.style.whiteSpace="nowrap",this.colors.forEach(function(it){var De=Le.getColorBox(it);Ge.appendChild(De),Le.colorBoxes.push(De)}),Ge},Oe.prototype.getColorBox=function(Le){var Ge=this,it=this.uiStyleSettings.toolbarHeight/4,De=this.uiStyleSettings.toolbarHeight-it,ht=document.createElement("div");ht.style.display="inline-block",ht.style.boxSizing="content-box",ht.style.width=De-2+"px",ht.style.height=De-2+"px",ht.style.padding="1px",ht.style.marginRight="2px",ht.style.marginBottom="2px",ht.style.borderWidth="2px",ht.style.borderStyle="solid",ht.style.borderRadius=(De+2)/2+"px",ht.style.borderColor=Le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ht.addEventListener("click",function(){Ge.setCurrentColor(Le,ht)});var on=document.createElement("div");return on.style.display="inline-block",on.style.width=De-2+"px",on.style.height=De-2+"px",on.style.backgroundColor=Le,on.style.borderRadius=De/2+"px",Le==="transparent"&&(on.style.fill=this.uiStyleSettings.toolboxAccentColor,on.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>`),ht.appendChild(on),ht},Oe.prototype.setCurrentColor=function(Le,Ge){var it=this;this.currentColor=Le,this.colorBoxes.forEach(function(De){De.style.borderColor=De===Ge?it.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Le)},Oe}(te),he=function(){function qe(Oe,Le,Ge){this._state="new",this._isSelected=!1,this._container=Oe,this._overlayContainer=Le,this.globalSettings=Ge,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(qe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),qe.prototype.ownsTarget=function(Oe){return!1},Object.defineProperty(qe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),qe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},qe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},qe.prototype.pointerDown=function(Oe,Le){},qe.prototype.dblClick=function(Oe,Le){},qe.prototype.manipulate=function(Oe){},qe.prototype.pointerUp=function(Oe){this.stateChanged()},qe.prototype.dispose=function(){},qe.prototype.addMarkerVisualToContainer=function(Oe){this.container.childNodes.length>0?this.container.insertBefore(Oe,this.container.childNodes[0]):this.container.appendChild(Oe)},qe.prototype.getState=function(){return{typeName:qe.typeName,state:this.state,notes:this.notes}},qe.prototype.restoreState=function(Oe){this._state=Oe.state,this.notes=Oe.notes},qe.prototype.scale=function(Oe,Le){},qe.prototype.colorChanged=function(Oe){this.onColorChanged&&this.onColorChanged(Oe),this.stateChanged()},qe.prototype.fillColorChanged=function(Oe){this.onFillColorChanged&&this.onFillColorChanged(Oe),this.stateChanged()},qe.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)}},qe.typeName="MarkerBase",qe}(),ue=function(){function qe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return qe.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},qe}(),fe=function(){function qe(){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 qe.prototype.ownsTarget=function(Oe){return Oe===this.visual||Oe===this.visual.childNodes[0]||Oe===this.visual.childNodes[1]},qe}(),me=function(){function qe(){}return qe.toITransformMatrix=function(Oe){return{a:Oe.a,b:Oe.b,c:Oe.c,d:Oe.d,e:Oe.e,f:Oe.f}},qe.toSVGMatrix=function(Oe,Le){return Oe.a=Le.a,Oe.b=Le.b,Oe.c=Le.c,Oe.d=Le.d,Oe.e=Le.e,Oe.f=Le.f,Oe},qe}(),Ee=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.left=0,De.top=0,De.width=0,De.height=0,De.defaultSize={x:50,y:20},De.offsetX=0,De.offsetY=0,De.rotationAngle=0,De.CB_DISTANCE=10,De._suppressMarkerCreateEvent=!1,De.container.transform.baseVal.appendItem(Te.createTransform()),De.setupControlBox(),De}return Ce(Oe,qe),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(Le){this._visual=Le;var Ge=Te.createTransform();this._visual.transform.baseVal.appendItem(Ge)},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(Le){return!!qe.prototype.ownsTarget.call(this,Le)||!!(this.controlGrips.findGripByVisual(Le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Le))},Oe.prototype.pointerDown=function(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.state==="new"&&(this.left=Le.x,this.top=Le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var it=this.unrotatePoint(Le);if(this.manipulationStartX=it.x,this.manipulationStartY=it.y,this.offsetX=it.x-this.left,this.offsetY=it.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ge),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ge)){this.activeGrip=this.rotatorGrip;var De=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=De.x-this.width/2,this.top=De.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ht=this.container.transform.baseVal.getItem(0);ht.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ht,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Oe.prototype.pointerUp=function(Le){var Ge=this.state;qe.prototype.pointerUp.call(this,Le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Le),this._state="select",Ge==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Oe.prototype.moveVisual=function(Le){this.visual.style.transform="translate("+Le.x+"px, "+Le.y+"px)"},Oe.prototype.manipulate=function(Le){var Ge=this.unrotatePoint(Le);this.state==="creating"?this.resize(Le):this.state==="move"?(this.left=this.manipulationStartLeft+(Ge.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ge.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ge):this.state==="rotate"&&this.rotate(Le)},Oe.prototype.resize=function(Le){var Ge=this.manipulationStartLeft,it=this.manipulationStartWidth,De=this.manipulationStartTop,ht=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ge=this.manipulationStartLeft+Le.x-this.manipulationStartX,it=this.manipulationStartWidth+this.manipulationStartLeft-Ge;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:it=this.manipulationStartWidth+Le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:De=this.manipulationStartTop+Le.y-this.manipulationStartY,ht=this.manipulationStartHeight+this.manipulationStartTop-De;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ht=this.manipulationStartHeight+Le.y-this.manipulationStartY}it>=0?(this.left=Ge,this.width=it):(this.left=Ge+it,this.width=-it),ht>=0?(this.top=De,this.height=ht):(this.top=De+ht,this.height=-ht),this.setSize()},Oe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Oe.prototype.rotate=function(Le){if(Math.abs(Le.x-this.centerX)>.1){var Ge=Math.sign(Le.x-this.centerX);this.rotationAngle=180*Math.atan((Le.y-this.centerY)/(Le.x-this.centerX))/Math.PI+90*Ge,this.applyRotation()}},Oe.prototype.applyRotation=function(){var Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0)},Oe.prototype.rotatePoint=function(Le){if(this.rotationAngle===0)return Le;var Ge=this.container.getCTM(),it=Te.createPoint(Le.x,Le.y);return{x:(it=it.matrixTransform(Ge)).x,y:it.y}},Oe.prototype.unrotatePoint=function(Le){if(this.rotationAngle===0)return Le;var Ge=this.container.getCTM();Ge=Ge.inverse();var it=Te.createPoint(Le.x,Le.y);return{x:(it=it.matrixTransform(Ge)).x,y:it.y}},Oe.prototype.select=function(){qe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Oe.prototype.deselect=function(){qe.prototype.deselect.call(this),this.controlBox.style.display="none"},Oe.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var Le=Te.createTransform();Le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Le),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 ue,this.addControlGrips(),this.controlBox.style.display="none"},Oe.prototype.adjustControlBox=function(){var Le=this.controlBox.transform.baseVal.getItem(0);Le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Le,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 Le=new fe;return Le.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Le.visual),Le},Oe.prototype.positionGrips=function(){var Le=this.controlGrips.topLeft.GRIP_SIZE,Ge=-Le/2,it=Ge,De=(this.width+this.CB_DISTANCE)/2-Le/2,ht=(this.height+this.CB_DISTANCE)/2-Le/2,on=this.height+this.CB_DISTANCE-Le/2,An=this.width+this.CB_DISTANCE-Le/2;this.positionGrip(this.controlGrips.topLeft.visual,Ge,it),this.positionGrip(this.controlGrips.topCenter.visual,De,it),this.positionGrip(this.controlGrips.topRight.visual,An,it),this.positionGrip(this.controlGrips.centerLeft.visual,Ge,ht),this.positionGrip(this.controlGrips.centerRight.visual,An,ht),this.positionGrip(this.controlGrips.bottomLeft.visual,Ge,on),this.positionGrip(this.controlGrips.bottomCenter.visual,De,on),this.positionGrip(this.controlGrips.bottomRight.visual,An,on),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,De,it-3*this.CB_DISTANCE)},Oe.prototype.positionGrip=function(Le,Ge,it){var De=Le.transform.baseVal.getItem(0);De.setTranslate(Ge,it),Le.transform.baseVal.replaceItem(De,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:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},qe.prototype.getState.call(this))},Oe.prototype.restoreState=function(Le){qe.prototype.restoreState.call(this,Le);var Ge=Le;this.left=Ge.left,this.top=Ge.top,this.width=Ge.width,this.height=Ge.height,this.rotationAngle=Ge.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ge.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ge.containerTransformMatrix))},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge);var it=this.rotatePoint({x:this.left,y:this.top}),De=this.unrotatePoint({x:it.x*Le,y:it.y*Ge});this.left=De.x,this.top=De.y,this.width=this.width*Le,this.height=this.height*Ge,this.adjustControlBox()},Oe}(he),Pe=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.opacity=1,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.createVisual=De.createVisual.bind(De),De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Oe.prototype.manipulate=function(Le){qe.prototype.manipulate.call(this,Le)},Oe.prototype.resize=function(Le){qe.prototype.resize.call(this,Le),this.setSize()},Oe.prototype.setSize=function(){qe.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Oe.prototype.pointerUp=function(Le){qe.prototype.pointerUp.call(this,Le),this.setSize()},Oe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Oe.prototype.setFillColor=function(Le){this.fillColor=Le,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Oe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Oe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,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},qe.prototype.getState.call(this))},Oe.prototype.restoreState=function(Le){var Ge=Le;this.fillColor=Ge.fillColor,this.strokeColor=Ge.strokeColor,this.strokeWidth=Ge.strokeWidth,this.strokeDasharray=Ge.strokeDasharray,this.opacity=Ge.opacity,this.createVisual(),qe.prototype.restoreState.call(this,Le),this.setSize()},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),this.setSize()},Oe.title="Rectangle marker",Oe}(Ee),Ne=function(qe){function Oe(Le,Ge,it,De){var ht=qe.call(this,Le,De||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ht.widths=[],ht.widthBoxes=[],ht.widths=Ge,ht.currentWidth=it,ht.setCurrentWidth=ht.setCurrentWidth.bind(ht),ht}return Ce(Oe,qe),Oe.prototype.getUi=function(){var Le=this,Ge=document.createElement("div");return Ge.style.display="flex",Ge.style.overflow="hidden",Ge.style.flexGrow="2",this.widths.forEach(function(it){var De=document.createElement("div");De.style.display="flex",De.style.flexGrow="2",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=it===Le.currentWidth?Le.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Le.setCurrentWidth(it,De)}),Ge.appendChild(De);var ht=document.createElement("div");ht.innerText=it.toString(),ht.style.marginRight="5px",De.appendChild(ht);var on=document.createElement("div");on.style.minHeight="20px",on.style.flexGrow="2",on.style.display="flex",on.style.alignItems="center";var An=document.createElement("hr");An.style.minWidth="20px",An.style.border="0px",An.style.borderTop=it+"px solid "+Le.uiStyleSettings.toolboxColor,An.style.flexGrow="2",on.appendChild(An),De.appendChild(on),Le.widthBoxes.push(De)}),Ge},Oe.prototype.setCurrentWidth=function(Le,Ge){var it=this;this.currentWidth=Le,this.widthBoxes.forEach(function(De){De.style.borderColor=De===Ge?it.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Oe}(te),We=function(qe){function Oe(Le,Ge,it,De){var ht=qe.call(this,Le,De||'<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 ht.styles=[],ht.styleBoxes=[],ht.styles=Ge,ht.currentStyle=it,ht.setCurrentStyle=ht.setCurrentStyle.bind(ht),ht}return Ce(Oe,qe),Oe.prototype.getUi=function(){var Le=this,Ge=document.createElement("div");return Ge.style.display="flex",Ge.style.overflow="hidden",Ge.style.flexGrow="2",this.styles.forEach(function(it){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.overflow="hidden",De.style.maxWidth=100/Le.styles.length-5+"%",De.style.borderColor=it===Le.currentStyle?Le.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Le.setCurrentStyle(it,De)}),Ge.appendChild(De);var ht=document.createElement("div");ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.overflow="hidden";var on=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Le.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(it!==""?'stroke-dasharray="'+it+'"':"")+` />
</svg>`;ht.innerHTML=on,De.appendChild(ht),Le.styleBoxes.push(De)}),Ge},Oe.prototype.setCurrentStyle=function(Le,Ge){var it=this;this.currentStyle=Le,this.styleBoxes.forEach(function(De){De.style.borderColor=De===Ge?it.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Oe}(te),tt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.strokeColor=it.defaultColor,De.strokeWidth=it.defaultStrokeWidth,De.strokeDasharray=it.defaultStrokeDasharray,De.strokePanel=new ee("Line color",it.defaultColorSet,it.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new Ne("Line width",it.defaultStrokeWidths,it.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new We("Line style",it.defaultStrokeDasharrays,it.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return Ce(Oe,qe),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var Le=qe.prototype.getState.call(this);return Le.typeName=Oe.typeName,Le},Oe.typeName="FrameMarker",Oe.title="Frame marker",Oe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Oe}(Pe),Ye=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"},Qe=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.x1=0,De.y1=0,De.x2=0,De.y2=0,De.defaultLength=50,De.manipulationStartX=0,De.manipulationStartY=0,De.manipulationStartX1=0,De.manipulationStartY1=0,De.manipulationStartX2=0,De.manipulationStartY2=0,De.setupControlBox(),De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!!qe.prototype.ownsTarget.call(this,Le)||!(!this.grip1.ownsTarget(Le)&&!this.grip2.ownsTarget(Le))},Oe.prototype.pointerDown=function(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.manipulationStartX=Le.x,this.manipulationStartY=Le.y,this.state==="new"&&(this.x1=Le.x,this.y1=Le.y,this.x2=Le.x,this.y2=Le.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(Ge)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ge)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Oe.prototype.pointerUp=function(Le){var Ge=this.state;qe.prototype.pointerUp.call(this,Le),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(Le),this._state="select",Ge==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Oe.prototype.adjustVisual=function(){},Oe.prototype.manipulate=function(Le){this.state==="creating"?this.resize(Le):this.state==="move"?(this.x1=this.manipulationStartX1+Le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Le)},Oe.prototype.resize=function(Le){switch(this.activeGrip){case this.grip1:this.x1=Le.x,this.y1=Le.y;break;case this.grip2:case void 0:this.x2=Le.x,this.y2=Le.y}this.adjustVisual(),this.adjustControlBox()},Oe.prototype.select=function(){qe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Oe.prototype.deselect=function(){qe.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 Le=new fe;return Le.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Le.visual),Le},Oe.prototype.positionGrips=function(){var Le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Le/2,this.y1-Le/2),this.positionGrip(this.grip2.visual,this.x2-Le/2,this.y2-Le/2)},Oe.prototype.positionGrip=function(Le,Ge,it){var De=Le.transform.baseVal.getItem(0);De.setTranslate(Ge,it),Le.transform.baseVal.replaceItem(De,0)},Oe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},qe.prototype.getState.call(this))},Oe.prototype.restoreState=function(Le){qe.prototype.restoreState.call(this,Le);var Ge=Le;this.x1=Ge.x1,this.y1=Ge.y1,this.x2=Ge.x2,this.y2=Ge.y2},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),this.x1=this.x1*Le,this.y1=this.y1*Ge,this.x2=this.x2*Le,this.y2=this.y2*Ge,this.adjustVisual(),this.adjustControlBox()},Oe}(he),lt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.setStrokeColor=De.setStrokeColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.strokeColor=it.defaultColor,De.strokeWidth=it.defaultStrokeWidth,De.strokeDasharray=it.defaultStrokeDasharray,De.strokePanel=new ee("Line color",it.defaultColorSet,it.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new Ne("Line width",it.defaultStrokeWidths,it.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new We("Line style",it.defaultStrokeDasharrays,it.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.selectorLine&&Le!==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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),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(Le){this.strokeColor=Le,this.adjustVisual(),this.colorChanged(Le)},Oe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.adjustVisual()},Oe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,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 Le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){qe.prototype.restoreState.call(this,Le);var Ge=Le;this.strokeColor=Ge.strokeColor,this.strokeWidth=Ge.strokeWidth,this.strokeDasharray=Ge.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}(Qe),nt=function(qe){function Oe(Le,Ge,it,De){var ht=qe.call(this,Le,De||'<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 ht.fonts=[],ht.fontBoxes=[],ht.fonts=Ge,ht.currentFont=it,ht.setCurrentFont=ht.setCurrentFont.bind(ht),ht}return Ce(Oe,qe),Oe.prototype.getUi=function(){var Le=this,Ge=document.createElement("div");return Ge.style.overflow="hidden",Ge.style.flexGrow="2",this.fonts.forEach(function(it){var De=document.createElement("div");De.style.display="inline-block",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.overflow="hidden",De.style.maxWidth=100/Le.fonts.length-5+"%",De.style.borderColor=it===Le.currentFont?Le.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Le.setCurrentFont(it,De)}),Ge.appendChild(De);var ht=document.createElement("div");ht.style.display="flex",ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.fontFamily=it,ht.style.overflow="hidden";var on=document.createElement("div");on.style.whiteSpace="nowrap",on.style.overflow="hidden",on.style.textOverflow="ellipsis",on.innerHTML="The quick brown fox jumps over the lazy dog",ht.appendChild(on),De.appendChild(ht),Le.fontBoxes.push(De)}),Ge},Oe.prototype.setCurrentFont=function(Le,Ge){var it=this;this.currentFont=Le,this.fontBoxes.forEach(function(De){De.style.borderColor=De===Ge?it.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Oe}(te),yt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.color="transparent",De.padding=5,De.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",De.text=De.DEFAULT_TEXT,De.isMoved=!1,De.color=it.defaultColor,De.fontFamily=it.defaultFontFamily,De.defaultSize={x:100,y:30},De.setColor=De.setColor.bind(De),De.setFont=De.setFont.bind(De),De.renderText=De.renderText.bind(De),De.sizeText=De.sizeText.bind(De),De.textEditDivClicked=De.textEditDivClicked.bind(De),De.showTextEditor=De.showTextEditor.bind(De),De.setSize=De.setSize.bind(De),De.positionTextEditor=De.positionTextEditor.bind(De),De.colorPanel=new ee("Color",it.defaultColorSet,it.defaultColor),De.colorPanel.onColorChanged=De.setColor,De.fontFamilyPanel=new nt("Font",it.defaultFontFamilies,it.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){if(qe.prototype.ownsTarget.call(this,Le)||Le===this.visual||Le===this.textElement||Le===this.bgRectangle)return!0;var Ge=!1;return this.textElement.childNodes.forEach(function(it){it===Le&&(Ge=!0)}),Ge},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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.isMoved=!1,this.pointerDownPoint=Le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Oe.prototype.renderText=function(){var Le=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(Ge){Le.textElement.appendChild(Te.createTSpan(Ge.trim()===""?" ":Ge.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Oe.prototype.getTextScale=function(){var Le=this.textElement.getBBox(),Ge=1;if(Le.width>0&&Le.height>0){var it=(1*this.width-this.width*this.padding*2/100)/Le.width,De=(1*this.height-this.height*this.padding*2/100)/Le.height;Ge=Math.min(it,De)}return Ge},Oe.prototype.getTextPosition=function(Le){var Ge=this.textElement.getBBox(),it=0,De=0;return Ge.width>0&&Ge.height>0&&(it=(this.width-Ge.width*Le)/2,De=this.height/2-Ge.height*Le/2),{x:it,y:De}},Oe.prototype.sizeText=function(){var Le=this.textElement.getBBox(),Ge=this.getTextScale(),it=this.getTextPosition(Ge);it.y-=Le.y*Ge,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+it.x+"px, "+it.y+"px) scale("+Ge+", "+Ge+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(it.x,it.y),this.textElement.transform.baseVal.getItem(1).setScale(Ge,Ge))},Oe.prototype.manipulate=function(Le){qe.prototype.manipulate.call(this,Le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Le.x-this.pointerDownPoint.x)>5||Math.abs(Le.y-this.pointerDownPoint.y)>5)},Oe.prototype.resize=function(Le){qe.prototype.resize.call(this,Le),this.isMoved=!0,this.setSize(),this.sizeText()},Oe.prototype.setSize=function(){qe.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(Le){var Ge=this.state;Ge==="creating"&&(this._suppressMarkerCreateEvent=!0),qe.prototype.pointerUp.call(this,Le),this.setSize(),(Ge==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Oe.prototype.showTextEditor=function(){var Le=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(Ge){Ge.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ge=Number.parseFloat(Le.textEditor.style.fontSize);Le.textEditor.clientWidth>=Number.parseInt(Le.textEditor.style.maxWidth)&&Ge>.9;)Ge-=.1,Le.textEditor.style.fontSize=Math.max(Ge,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ge){Ge.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ge){if(Ge.clipboardData){var it=Ge.clipboardData.getData("text"),De=window.getSelection();if(!De.rangeCount)return!1;De.deleteFromDocument(),De.getRangeAt(0).insertNode(document.createTextNode(it)),Ge.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Le.textEditDivClicked(Le.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 Le=this.getTextScale(),Ge=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),it=this.textElement.getBBox(),De={x:it.width*Le,y:it.height*Le};Ge.x-=De.x/2,Ge.y-=De.y/2,this.textEditor.style.top=Ge.y+"px",this.textEditor.style.left=Ge.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ge.x+"px",this.textEditor.style.fontSize=Math.max(16*Le,12)+"px",this.textElement.style.display="none"}},Oe.prototype.textEditDivClicked=function(Le){this.text=Le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Oe.prototype.select=function(){qe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Oe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),qe.prototype.deselect.call(this)},Oe.prototype.dblClick=function(Le,Ge){qe.prototype.dblClick.call(this,Le,Ge),this.showTextEditor()},Oe.prototype.setColor=function(Le){this.textElement&&Te.setAttributes(this.textElement,[["fill",Le]]),this.color=Le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Le)},Oe.prototype.setFont=function(Le){this.textElement&&Te.setAttributes(this.textElement,[["font-family",Le]]),this.fontFamily=Le,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 Le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){var Ge=Le;this.color=Ge.color,this.fontFamily=Ge.fontFamily,this.padding=Ge.padding,this.text=Ge.text,this.createVisual(),qe.prototype.restoreState.call(this,Le),this.setSize()},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),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}(Ee),vt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.color="transparent",De.lineWidth=3,De.drawing=!1,De.pixelRatio=1,De.color=it.defaultColor,De.lineWidth=it.defaultStrokeWidth,De.pixelRatio=it.freehandPixelRatio,De.setColor=De.setColor.bind(De),De.addCanvas=De.addCanvas.bind(De),De.finishCreation=De.finishCreation.bind(De),De.setLineWidth=De.setLineWidth.bind(De),De.colorPanel=new ee("Color",it.defaultColorSet,it.defaultColor),De.colorPanel.onColorChanged=De.setColor,De.lineWidthPanel=new Ne("Line width",it.defaultStrokeWidths,it.defaultStrokeWidth),De.lineWidthPanel.onWidthChanged=De.setLineWidth,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.drawingImage)},Oe.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var Le=Te.createTransform();this.visual.transform.baseVal.appendItem(Le),this.addMarkerVisualToContainer(this.visual)},Oe.prototype.pointerDown=function(Le,Ge){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(Le.x,Le.y),this.drawing=!0):qe.prototype.pointerDown.call(this,Le,Ge)},Oe.prototype.manipulate=function(Le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Le.x,Le.y),this.canvasContext.stroke()):qe.prototype.manipulate.call(this,Le)},Oe.prototype.resize=function(Le){qe.prototype.resize.call(this,Le),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(Le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):qe.prototype.pointerUp.call(this,Le)},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(),qe.prototype.select.call(this)},Oe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),qe.prototype.deselect.call(this)},Oe.prototype.finishCreation=function(){for(var Le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ge=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],it=Ge[0],De=Ge[1],ht=Ge[2],on=Ge[3],An=!1,Zn=0;Zn<this.canvasElement.height;Zn++)for(var Ft=0;Ft<this.canvasElement.width;Ft++)Le.data[Zn*this.canvasElement.width*4+4*Ft+3]>0&&(An=!0,Zn<De&&(De=Zn),Ft<it&&(it=Ft),Zn>on&&(on=Zn),Ft>ht&&(ht=Ft));if(An){this.left=it/this.pixelRatio,this.top=De/this.pixelRatio,this.width=(ht-it)/this.pixelRatio,this.height=(on-De)/this.pixelRatio;var It=document.createElement("canvas");It.width=ht-it,It.height=on-De,It.getContext("2d").putImageData(this.canvasContext.getImageData(it,De,ht-it,on-De),0,0),this.drawingImgUrl=It.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(Le){this.color=Le,this.colorChanged(Le)},Oe.prototype.setLineWidth=function(Le){this.lineWidth=Le},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 Le=Object.assign({drawingImgUrl:this.drawingImgUrl},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){this.createVisual(),qe.prototype.restoreState.call(this,Le),this.drawingImgUrl=Le.drawingImgUrl,this.setDrawingImage()},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),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}(Ee),St=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,it||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return De.typeBoxes=[],De.currentType=Ge,De.setCurrentType=De.setCurrentType.bind(De),De}return Ce(Oe,qe),Oe.prototype.getUi=function(){var Le=this,Ge=document.createElement("div");Ge.style.display="flex",Ge.style.overflow="hidden",Ge.style.flexGrow="2";for(var it=function(on){var An="both";switch(on){case 0:An="both";break;case 1:An="start";break;case 2:An="end";break;case 3:An="none"}var Zn=document.createElement("div");if(Zn.style.display="flex",Zn.style.flexGrow="2",Zn.style.alignItems="center",Zn.style.justifyContent="space-between",Zn.style.padding="5px",Zn.style.borderWidth="2px",Zn.style.borderStyle="solid",Zn.style.borderColor=An===De.currentType?De.uiStyleSettings.toolboxAccentColor:"transparent",Zn.addEventListener("click",function(){Le.setCurrentType(An,Zn)}),Ge.appendChild(Zn),An==="both"||An==="start"){var Ft=document.createElement("div");Ft.style.display="flex",Ft.style.alignItems="center",Ft.style.minHeight="20px",Ft.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="`+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ft.style.marginLeft="5px",Zn.appendChild(Ft)}var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.style.flexGrow="2";var Gt=document.createElement("hr");if(Gt.style.minWidth="20px",Gt.style.border="0px",Gt.style.borderTop="3px solid "+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee"),Gt.style.flexGrow="2",It.appendChild(Gt),Zn.appendChild(It),An==="both"||An==="end"){var fn=document.createElement("div");fn.style.display="flex",fn.style.alignItems="center",fn.style.minHeight="20px",fn.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="`+(De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,fn.style.marginRight="5px",Zn.appendChild(fn)}De.typeBoxes.push(Zn)},De=this,ht=0;ht<4;ht++)it(ht);return Ge},Oe.prototype.setCurrentType=function(Le,Ge){var it=this;this.currentType=Le,this.typeBoxes.forEach(function(De){De.style.borderColor=De===Ge?it.uiStyleSettings!==void 0?it.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Oe}(te),Lt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.arrowType="end",De.arrowBaseHeight=10,De.arrowBaseWidth=10,De.getArrowPoints=De.getArrowPoints.bind(De),De.setArrowType=De.setArrowType.bind(De),De.arrowTypePanel=new St("Arrow type","end"),De.arrowTypePanel.onArrowTypeChanged=De.setArrowType,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==this.arrow1&&Le!==this.arrow2)},Oe.prototype.getArrowPoints=function(Le,Ge){var it=this.arrowBaseWidth+2*this.strokeWidth,De=this.arrowBaseHeight+2*this.strokeWidth;return Le-it/2+","+(Ge+De/2)+" "+Le+","+(Ge-De/2)+" "+(Le+it/2)+","+(Ge+De/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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.state==="creating"&&this.createTips()},Oe.prototype.adjustVisual=function(){if(qe.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 Le=0;Math.abs(this.x1-this.x2)>.1&&(Le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ge=this.arrow1.transform.baseVal.getItem(0);Ge.setRotate(Le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ge,0);var it=this.arrow2.transform.baseVal.getItem(0);it.setRotate(Le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(it,0)}},Oe.prototype.setArrowType=function(Le){this.arrowType=Le,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 Le=Object.assign({arrowType:this.arrowType},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){qe.prototype.restoreState.call(this,Le);var Ge=Le;this.arrowType=Ge.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}(lt),jt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.fillColor=it.defaultFillColor,De.strokeWidth=0,De.fillPanel=new ee("Color",it.defaultColorSet,it.defaultFillColor),De.fillPanel.onColorChanged=De.setFillColor,De}return Ce(Oe,qe),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var Le=qe.prototype.getState.call(this);return Le.typeName=Oe.typeName,Le},Oe.typeName="CoverMarker",Oe.title="Cover marker",Oe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Oe}(Pe),Bt=function(qe){function Oe(Le,Ge,it,De){var ht=qe.call(this,Le,De||'<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 ht.opacities=[],ht.opacityBoxes=[],ht.opacities=Ge,ht.currentOpacity=it,ht.setCurrentOpacity=ht.setCurrentOpacity.bind(ht),ht}return Ce(Oe,qe),Oe.prototype.getUi=function(){var Le=this,Ge=document.createElement("div");return Ge.style.display="flex",Ge.style.overflow="hidden",Ge.style.flexGrow="2",Ge.style.justifyContent="space-between",this.opacities.forEach(function(it){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.justifyContent="center",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=it===Le.currentOpacity?Le.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){Le.setCurrentOpacity(it,De)}),Ge.appendChild(De);var ht=document.createElement("div");ht.innerText=100*it+"%",De.appendChild(ht),Le.opacityBoxes.push(De)}),Ge},Oe.prototype.setCurrentOpacity=function(Le,Ge){var it=this;this.currentOpacity=Le,this.opacityBoxes.forEach(function(De){De.style.borderColor=De===Ge?it.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Oe}(te),cn=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.setOpacity=De.setOpacity.bind(De),De.fillColor=it.defaultHighlightColor,De.strokeWidth=0,De.opacity=it.defaultHighlightOpacity,De.fillPanel=new ee("Color",it.defaultColorSet,De.fillColor),De.fillPanel.onColorChanged=De.setFillColor,De.opacityPanel=new Bt("Opacity",it.defaultOpacitySteps,De.opacity),De.opacityPanel.onOpacityChanged=De.setOpacity,De}return Ce(Oe,qe),Oe.prototype.setOpacity=function(Le){this.opacity=Le,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 Le=qe.prototype.getState.call(this);return Le.typeName=Oe.typeName,Le},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}(jt),pt='<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>',ut='<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>',at=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.bgColor="transparent",De.tipPosition={x:0,y:0},De.tipBase1Position={x:0,y:0},De.tipBase2Position={x:0,y:0},De.tipMoving=!1,De.color=it.defaultStrokeColor,De.bgColor=it.defaultFillColor,De.fontFamily=it.defaultFontFamily,De.defaultSize={x:100,y:30},De.setBgColor=De.setBgColor.bind(De),De.getTipPoints=De.getTipPoints.bind(De),De.positionTip=De.positionTip.bind(De),De.setTipPoints=De.setTipPoints.bind(De),De.colorPanel=new ee("Text color",it.defaultColorSet,De.color,pt),De.colorPanel.onColorChanged=De.setColor,De.bgColorPanel=new ee("Fill color",it.defaultColorSet,De.bgColor,ut),De.bgColorPanel.onColorChanged=De.setBgColor,De.fontFamilyPanel=new nt("Font",it.defaultFontFamilies,it.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De.tipGrip=new fe,De.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),De.controlBox.appendChild(De.tipGrip.visual),De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return qe.prototype.ownsTarget.call(this,Le)||this.tipGrip.ownsTarget(Le)||this.tip===Le},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(Le,Ge){this.state==="new"&&qe.prototype.pointerDown.call(this,Le,Ge),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ge)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):qe.prototype.pointerDown.call(this,Le,Ge)},Oe.prototype.pointerUp=function(Le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,qe.prototype.pointerUp.call(this,Le);else{var Ge=this.state==="creating";qe.prototype.pointerUp.call(this,Le),this.setTipPoints(Ge),this.positionTip()}},Oe.prototype.manipulate=function(Le){if(this.tipMoving){var Ge=this.unrotatePoint(Le);this.tipPosition={x:Ge.x-this.manipulationStartLeft,y:Ge.y-this.manipulationStartTop},this.positionTip()}else qe.prototype.manipulate.call(this,Le)},Oe.prototype.setBgColor=function(Le){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",Le]]),Te.setAttributes(this.tip,[["fill",Le]])),this.bgColor=Le,this.fillColorChanged(Le)},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(Le){Le===void 0&&(Le=!1);var Ge=Math.min(this.height/2,15),it=this.height/5;Le&&(this.tipPosition={x:Ge+it/2,y:this.height+20});var De=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?De<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(it=this.width/5,Ge=Math.min(this.width/2,15),this.tipBase1Position={x:Ge,y:0},this.tipBase2Position={x:Ge+it,y:0}):(this.tipBase1Position={x:0,y:Ge},this.tipBase2Position={x:0,y:Ge+it}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?De<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(it=this.width/5,Ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ge-it,y:0},this.tipBase2Position={x:this.width-Ge,y:0}):(this.tipBase1Position={x:this.width,y:Ge},this.tipBase2Position={x:this.width,y:Ge+it}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?De<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(it=this.width/5,Ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ge-it,y:this.height},this.tipBase2Position={x:this.width-Ge,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ge-it},this.tipBase2Position={x:this.width,y:this.height-Ge}):De<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(it=this.width/5,Ge=Math.min(this.width/2,15),this.tipBase1Position={x:Ge,y:this.height},this.tipBase2Position={x:Ge+it,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ge},this.tipBase2Position={x:0,y:this.height-Ge-it})},Oe.prototype.resize=function(Le){qe.prototype.resize.call(this,Le),this.positionTip()},Oe.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Le=this.tipGrip.visual.transform.baseVal.getItem(0);Le.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Le,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(),qe.prototype.select.call(this)},Oe.prototype.getState=function(){var Le=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){var Ge=Le;this.bgColor=Ge.bgColor,this.tipPosition=Ge.tipPosition,qe.prototype.restoreState.call(this,Le),this.createTip(),this.setTipPoints()},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),this.tipPosition={x:this.tipPosition.x*Le,y:this.tipPosition.y*Ge},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}(yt),Wt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.opacity=1,De.strokeColor=it.defaultColor,De.strokeWidth=it.defaultStrokeWidth,De.strokeDasharray=it.defaultStrokeDasharray,De.fillColor=it.defaultFillColor,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.setOpacity=De.setOpacity.bind(De),De.createVisual=De.createVisual.bind(De),De.strokePanel=new ee("Line color",He(it.defaultColorSet,["transparent"]),it.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.fillPanel=new ee("Fill color",He(it.defaultColorSet,["transparent"]),De.fillColor,ut),De.fillPanel.onColorChanged=De.setFillColor,De.strokeWidthPanel=new Ne("Line width",it.defaultStrokeWidths,it.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new We("Line style",it.defaultStrokeDasharrays,it.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De.opacityPanel=new Bt("Opacity",it.defaultOpacitySteps,De.opacity),De.opacityPanel.onOpacityChanged=De.setOpacity,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Oe.prototype.manipulate=function(Le){qe.prototype.manipulate.call(this,Le)},Oe.prototype.resize=function(Le){qe.prototype.resize.call(this,Le),this.setSize()},Oe.prototype.setSize=function(){qe.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(Le){qe.prototype.pointerUp.call(this,Le),this.setSize()},Oe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Oe.prototype.setFillColor=function(Le){this.fillColor=Le,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Le),this.stateChanged()},Oe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Oe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Oe.prototype.setOpacity=function(Le){this.opacity=Le,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 Le=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){var Ge=Le;this.fillColor=Ge.fillColor,this.strokeColor=Ge.strokeColor,this.strokeWidth=Ge.strokeWidth,this.strokeDasharray=Ge.strokeDasharray,this.opacity=Ge.opacity,this.createVisual(),qe.prototype.restoreState.call(this,Le),this.setSize()},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),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}(Ee),rn=function(qe){function Oe(Le,Ge,it){return qe.call(this,Le,Ge,it)||this}return Ce(Oe,qe),Object.defineProperty(Oe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==this.tip1&&Le!==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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.state==="creating"&&this.createTips()},Oe.prototype.adjustVisual=function(){if(qe.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 Le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ge=this.tip1.transform.baseVal.getItem(0);Ge.setRotate(Le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ge,0);var it=this.tip2.transform.baseVal.getItem(0);it.setRotate(Le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(it,0)}},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var Le=qe.prototype.getState.call(this);return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){qe.prototype.restoreState.call(this,Le),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}(lt),Tt=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.strokePanel.colors=it.defaultColorSet,De.fillColor="transparent",De}return Ce(Oe,qe),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var Le=qe.prototype.getState.call(this);return Le.typeName=Oe.typeName,Le},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}(Wt),Xt=function(){function qe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(qe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),qe.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))},qe.prototype.replaceLastUndoStep=function(Oe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Oe)},qe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},qe.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}},qe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},qe}(),nn=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.curveX=0,De.curveY=0,De.manipulationStartCurveX=0,De.manipulationStartCurveY=0,De.setStrokeColor=De.setStrokeColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.positionGrips=De.positionGrips.bind(De),De.addControlGrips=De.addControlGrips.bind(De),De.adjustVisual=De.adjustVisual.bind(De),De.setupControlBox=De.setupControlBox.bind(De),De.resize=De.resize.bind(De),De.strokeColor=it.defaultColor,De.strokeWidth=it.defaultStrokeWidth,De.strokeDasharray=it.defaultStrokeDasharray,De.strokePanel=new ee("Line color",it.defaultColorSet,it.defaultColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.strokeWidthPanel=new Ne("Line width",it.defaultStrokeWidths,it.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new We("Line style",it.defaultStrokeDasharrays,it.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.selectorCurve&&Le!==this.visibleCurve&&!this.curveGrip.ownsTarget(Le))},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(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Le.x,this.curveY=Le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ge)&&(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(){qe.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,qe.prototype.addControlGrips.call(this)},Oe.prototype.positionGrips=function(){qe.prototype.positionGrips.call(this);var Le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Le/2,this.curveY-Le/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(Le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Le.y-this.manipulationStartY),qe.prototype.manipulate.call(this,Le)},Oe.prototype.resize=function(Le){this.activeGrip===this.curveGrip&&(this.curveX=Le.x,this.curveY=Le.y),qe.prototype.resize.call(this,Le),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(Le){this.strokeColor=Le,this.adjustVisual(),this.colorChanged(Le)},Oe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.adjustVisual()},Oe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,this.adjustVisual()},Oe.prototype.scale=function(Le,Ge){this.curveX=this.curveX*Le,this.curveY=this.curveY*Ge,qe.prototype.scale.call(this,Le,Ge)},Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Oe.prototype.getState=function(){var Le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},qe.prototype.getState.call(this));return Le.typeName=Oe.typeName,Le},Oe.prototype.restoreState=function(Le){qe.prototype.restoreState.call(this,Le);var Ge=Le;this.strokeColor=Ge.strokeColor,this.strokeWidth=Ge.strokeWidth,this.strokeDasharray=Ge.strokeDasharray,this.curveX=Ge.curveX,this.curveY=Ge.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}(Qe),Nn=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,Ge,it)||this;return De.fillColor="transparent",De.strokeColor="transparent",De.strokeWidth=0,De.strokeDasharray="",De.textColor="transparent",De.fontSize="1rem",De.isMoved=!1,De.captionText="Caption",De.PADDING=5,De.captionBoxWidth=0,De.captionBoxHeight=0,De.strokeColor=it.defaultColor,De.strokeWidth=it.defaultStrokeWidth,De.strokeDasharray=it.defaultStrokeDasharray,De.fillColor=it.defaultFillColor,De.textColor=it.defaultStrokeColor,De.fontFamily=it.defaultFontFamily,De.fontSize=it.defaultCaptionFontSize,De.captionText=it.defaultCaptionText,De.setStrokeColor=De.setStrokeColor.bind(De),De.setFillColor=De.setFillColor.bind(De),De.setStrokeWidth=De.setStrokeWidth.bind(De),De.setStrokeDasharray=De.setStrokeDasharray.bind(De),De.createVisual=De.createVisual.bind(De),De.sizeCaption=De.sizeCaption.bind(De),De.setCaptionText=De.setCaptionText.bind(De),De.showTextEditor=De.showTextEditor.bind(De),De.positionTextEditor=De.positionTextEditor.bind(De),De.finishTextEditing=De.finishTextEditing.bind(De),De.setFont=De.setFont.bind(De),De.setTextColor=De.setTextColor.bind(De),De.strokePanel=new ee("Line color",He(it.defaultColorSet,["transparent"]),De.strokeColor),De.strokePanel.onColorChanged=De.setStrokeColor,De.fillPanel=new ee("Fill color",He(it.defaultColorSet,["transparent"]),De.fillColor,ut),De.fillPanel.onColorChanged=De.setFillColor,De.strokeWidthPanel=new Ne("Line width",it.defaultStrokeWidths,it.defaultStrokeWidth),De.strokeWidthPanel.onWidthChanged=De.setStrokeWidth,De.strokeStylePanel=new We("Line style",it.defaultStrokeDasharrays,it.defaultStrokeDasharray),De.strokeStylePanel.onStyleChanged=De.setStrokeDasharray,De.fontFamilyPanel=new nt("Font",it.defaultFontFamilies,it.defaultFontFamily),De.fontFamilyPanel.onFontChanged=De.setFont,De.textColorPanel=new ee("Text color",it.defaultColorSet,De.textColor,pt),De.textColorPanel.onColorChanged=De.setTextColor,De}return Ce(Oe,qe),Oe.prototype.ownsTarget=function(Le){return!(!qe.prototype.ownsTarget.call(this,Le)&&Le!==this.visual&&Le!==this.frame&&Le!==this.captionBg&&Le!==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(Le){this.captionText=Le,this.captionElement.textContent=this.captionText,this.sizeCaption()},Oe.prototype.pointerDown=function(Le,Ge){qe.prototype.pointerDown.call(this,Le,Ge),this.isMoved=!1,this.pointerDownPoint=Le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Le),this._state="creating")},Oe.prototype.manipulate=function(Le){qe.prototype.manipulate.call(this,Le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Le.x-this.pointerDownPoint.x)>5||Math.abs(Le.y-this.pointerDownPoint.y)>5)},Oe.prototype.resize=function(Le){qe.prototype.resize.call(this,Le),this.setSize()},Oe.prototype.sizeCaption=function(){var Le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Le.width+2*this.PADDING,this.captionBoxHeight=Le.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 Le=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(Ge){Ge.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ge){Ge.key==="Enter"&&Le.finishTextEditing(Le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ge){Ge.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Le.finishTextEditing(Le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Le.finishTextEditing(Le.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(Le){this.setCaptionText(Le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Oe.prototype.setFont=function(Le){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",Le]]),this.fontFamily=Le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Oe.prototype.setTextColor=function(Le){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",Le]]),this.textColor=Le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Oe.prototype.setSize=function(){qe.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Oe.prototype.pointerUp=function(Le){qe.prototype.pointerUp.call(this,Le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Oe.prototype.dblClick=function(Le,Ge){qe.prototype.dblClick.call(this,Le,Ge),this.showTextEditor()},Oe.prototype.setStrokeColor=function(Le){this.strokeColor=Le,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Le),this.stateChanged()},Oe.prototype.setFillColor=function(Le){this.fillColor=Le,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Le),this.stateChanged()},Oe.prototype.setStrokeWidth=function(Le){this.strokeWidth=Le,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Oe.prototype.setStrokeDasharray=function(Le){this.strokeDasharray=Le,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 Le=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},qe.prototype.getState.call(this));return Le.typeName=this.typeName,Le},Oe.prototype.restoreState=function(Le){var Ge=Le;this.fillColor=Ge.fillColor,this.strokeColor=Ge.strokeColor,this.strokeWidth=Ge.strokeWidth,this.strokeDasharray=Ge.strokeDasharray,this.textColor=Ge.textColor,this.fontFamily=Ge.fontFamily,this.captionText=Ge.captionText,this.fontSize=Ge.fontSize,this.createVisual(),qe.prototype.restoreState.call(this,Le),this.setSize()},Oe.prototype.scale=function(Le,Ge){qe.prototype.scale.call(this,Le,Ge),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}(Ee),Rt=function(){function qe(Oe,Le){Le===void 0&&(Le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Oe,this.cancelable=Le}return Object.defineProperty(qe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),qe.prototype.preventDefault=function(){this._defaultPrevented=!0},qe}(),At=function(qe){function Oe(Le,Ge,it){var De=qe.call(this,Le,!1)||this;return De.dataUrl=Ge,De.state=it,De}return Ce(Oe,qe),Oe}(Rt),Zt=function(qe){function Oe(Le,Ge,it){it===void 0&&(it=!1);var De=qe.call(this,Le,it)||this;return De.marker=Ge,De}return Ce(Oe,qe),Oe}(Rt),In=function(){function qe(){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 qe.prototype.addEventListener=function(Oe,Le){this[Oe].push(Le)},qe.prototype.removeEventListener=function(Oe,Le){var Ge=this[Oe].indexOf(Le);Ge>-1&&this[Oe].splice(Ge,1)},qe}(),Dn=function(){function qe(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 Ye,this._isOpen=!1,this.undoRedoManager=new Xt,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 In,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=qe.instanceCounter++,this.styles=new Be(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(qe.prototype,"ALL_MARKER_TYPES",{get:function(){return[tt,vt,Lt,yt,Tt,Wt,cn,at,rn,jt,lt,nn,Nn]},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[tt,vt,Lt,yt,Wt,cn,at]},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[tt,vt,Lt,yt,cn]},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Oe){var Le=this;this._availableMarkerTypes.splice(0),Oe.forEach(function(Ge){if(typeof Ge=="string"){var it=Le.ALL_MARKER_TYPES.find(function(De){return De.typeName===Ge});it!==void 0&&Le._availableMarkerTypes.push(it)}else Le._availableMarkerTypes.push(Ge)})},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(qe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(qe.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(qe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),qe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},qe.prototype.show=function(){var Oe=this;this.styles.styleSheetRoot===void 0&&Ke.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ke.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Le){return Le(new Rt(Oe))})},qe.prototype.render=function(){return ke(this,void 0,void 0,function(){var Oe;return Ie(this,function(Le){switch(Le.label){case 0:return this.setCurrentMarker(),(Oe=new ot).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 Le.sent(),[4,Oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Le.sent()]}})})},qe.prototype.close=function(Oe){var Le=this;if(Oe===void 0&&(Oe=!1),this.isOpen){var Ge=!1;Oe||this.eventListeners.beforeclose.forEach(function(it){var De=new Rt(Le,!0);it(De),De.defaultPrevented&&(Ge=!0)}),Ge||(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(it){return it(new Rt(Le))}),this.detachEvents(),this._isOpen=!1)}},qe.prototype.addMarkersToToolbar=function(){for(var Oe,Le=[],Ge=0;Ge<arguments.length;Ge++)Le[Ge]=arguments[Ge];(Oe=this._availableMarkerTypes).push.apply(Oe,Le)},qe.prototype.addRenderEventListener=function(Oe){this.addEventListener("render",function(Le){Oe(Le.dataUrl,Le.state)})},qe.prototype.removeRenderEventListener=function(Oe){},qe.prototype.addCloseEventListener=function(Oe){this.addEventListener("close",function(){Oe()})},qe.prototype.removeCloseEventListener=function(Oe){},qe.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))},qe.prototype.onPopupTargetResize=function(){var Oe=1*this.target.clientWidth/this.target.clientHeight,Le=this.editorCanvas.clientWidth/Oe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Oe:this.editorCanvas.clientWidth,Ge=Le<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Oe;this.resize(Le,Ge)},qe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},qe.prototype.resize=function(Oe,Le){this._isResizing=!0;var Ge=Oe/this.imageWidth,it=Le/this.imageHeight;this.imageWidth=Math.round(Oe),this.imageHeight=Math.round(Le),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(Ge,it),this._isResizing=!1},qe.prototype.scaleMarkers=function(Oe,Le){var Ge,it=this;this._currentMarker&&this._currentMarker instanceof yt?this._currentMarker.scale(Oe,Le):(Ge=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(De){De!==it._currentMarker&&De.scale(Oe,Le)}),Ge!==void 0&&this.setCurrentMarker(Ge)},qe.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"},qe.prototype.setTopLeft=function(){var Oe=this.editingTarget.getBoundingClientRect(),Le=this.editorCanvas.getBoundingClientRect();this.left=Oe.left-Le.left,this.top=Oe.top-Le.top},qe.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)},qe.prototype.addDefs=function(){for(var Oe,Le=[],Ge=0;Ge<arguments.length;Ge++)Le[Ge]=arguments[Ge];this.defs=Te.createDefs(),this.addDefsToImage(),(Oe=this.defs).append.apply(Oe,Le)},qe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},qe.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)},qe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},qe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},qe.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)},qe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},qe.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)},qe.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()},qe.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")},qe.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"},qe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},qe.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 wt(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")},qe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},qe.prototype.removeMarker=function(Oe){this.markerImage.removeChild(Oe.container),this.markers.indexOf(Oe)>-1&&this.markers.splice(this.markers.indexOf(Oe),1),Oe.dispose()},qe.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())},qe.prototype.toolbarButtonClicked=function(Oe,Le){if(Oe==="marker"&&Le!==void 0)this.createNewMarker(Le);else if(Oe==="action")switch(Le){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()}},qe.prototype.deleteSelectedMarker=function(){var Oe=this;if(this._currentMarker!==void 0){var Le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(it){var De=new Zt(Oe,Oe._currentMarker,!0);it(De),De.defaultPrevented&&(Le=!0)}),!Le){var Ge=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(it){return it(new Zt(Oe,Ge))})}}},qe.prototype.clear=function(){var Oe=this,Le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ht){var on=new Zt(Oe,void 0,!0);ht(on),on.defaultPrevented&&(Le=!0)}),!Le)){this.setCurrentMarker();for(var Ge=function(ht){var on=it.markers[ht];it.setCurrentMarker(it.markers[ht]),it._currentMarker.dispose(),it.markerImage.removeChild(it._currentMarker.container),it.markers.splice(it.markers.indexOf(it._currentMarker),1),it.eventListeners.markerdelete.forEach(function(An){return An(new Zt(Oe,on))})},it=this,De=this.markers.length-1;De>=0;De--)Ge(De);this.addUndoStep()}},Object.defineProperty(qe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),qe.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))},qe.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)},qe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},qe.prototype.addUndoStep=function(){var Oe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Le=this.getState(),Ge=this.undoRedoManager.getLastUndoStep();if(!Ge||Ge.width===Le.width&&Ge.height===Le.height){var it=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Le),it<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(De){return De(new Rt(Oe))})}else this.undoRedoManager.replaceLastUndoStep(Le),this.eventListeners.statechange.forEach(function(De){return De(new Rt(Oe))})}},qe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},qe.prototype.undoStep=function(){var Oe=this,Le=this.undoRedoManager.undo();Le!==void 0&&(this.restoreState(Le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ge){return Ge(new Rt(Oe))}))},qe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},qe.prototype.redoStep=function(){var Oe=this,Le=this.undoRedoManager.redo();Le!==void 0&&(this.restoreState(Le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ge){return Ge(new Rt(Oe))}))},qe.prototype.stepZoom=function(){var Oe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Oe<this.zoomSteps.length-1?this.zoomSteps[Oe+1]:this.zoomSteps[0]},qe.prototype.panTo=function(Oe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Oe.x,top:this.prevPanPoint.y-Oe.y}),this.prevPanPoint=Oe},qe.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var Oe,Le,Ge=this;return Ie(this,function(it){switch(it.label){case 0:return[4,this.render()];case 1:return Oe=it.sent(),Le=this.getState(),this.eventListeners.render.forEach(function(De){return De(new At(Ge,Oe,Le))}),this.close(!0),[2]}})})},qe.prototype.getState=function(Oe){Oe===!0&&this.setCurrentMarker();var Le={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ge){return Le.markers.push(Ge.getState())}),Le},qe.prototype.restoreState=function(Oe){var Le=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Oe.markers.forEach(function(Ge){var it=Le._availableMarkerTypes.find(function(ht){return ht.typeName===Ge.typeName});if(it!==void 0){var De=Le.addNewMarker(it);De.restoreState(Ge),Le.markers.push(De)}}),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(Ge){return Ge(new Rt(Le))})},qe.prototype.addNewMarker=function(Oe){var Le=Te.createGroup();return this.markerImage.appendChild(Le),new Oe(Le,this.overlayContainer,this.settings)},qe.prototype.createNewMarker=function(Oe){var Le,Ge=this;(Le=typeof Oe=="string"?this._availableMarkerTypes.find(function(it){return it.typeName===Oe}):Oe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Le),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(Le.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(it){return it(new Zt(Ge,Ge._currentMarker))}))},qe.prototype.markerCreated=function(Oe){var Le=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Oe),this.setCurrentMarker(Oe),Oe instanceof vt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(vt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ge){return Ge(new Zt(Le,Le._currentMarker))})},qe.prototype.colorChanged=function(Oe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Oe,this.settings.defaultStrokeColor=Oe)},qe.prototype.fillColorChanged=function(Oe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Oe)},qe.prototype.markerStateChanged=function(Oe){var Le=this;this.eventListeners.markerchange.forEach(function(Ge){return Ge(new Zt(Le,Oe))})},qe.prototype.setCurrentMarker=function(Oe){var Le=this;this._currentMarker!==Oe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ge){return Ge(new Zt(Le,Le._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(Ge){return Ge(new Zt(Le,Le._currentMarker))}))},qe.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 Le=this.markers.find(function(Ge){return Ge.ownsTarget(Oe.target)});Le!==void 0?(this.setCurrentMarker(Le),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))},qe.prototype.onDblClick=function(Oe){if(this._isFocused||this.focus(),this.mode==="select"){var Le=this.markers.find(function(Ge){return Ge.ownsTarget(Oe.target)});Le!==void 0&&Le!==this._currentMarker&&this.setCurrentMarker(Le),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Oe.clientX,Oe.clientY),Oe.target):this.setCurrentMarker()}},qe.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}))},qe.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()},qe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},qe.prototype.onKeyUp=function(Oe){this._currentMarker===void 0||this.notesArea!==void 0||Oe.key!=="Delete"&&Oe.key!=="Backspace"||this.deleteSelectedMarker()},qe.prototype.clientToLocalCoordinates=function(Oe,Le){var Ge=this.markerImage.getBoundingClientRect();return{x:(Oe-Ge.left)/this.zoomLevel,y:(Le-Ge.top)/this.zoomLevel}},qe.prototype.onWindowResize=function(){this.positionUI()},qe.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()},qe.prototype.addLicenseKey=function(Oe){ze.addKey(Oe)},qe.prototype.addEventListener=function(Oe,Le){this.eventListeners.addEventListener(Oe,Le)},qe.prototype.removeEventListener=function(Oe,Le){this.eventListeners.removeEventListener(Oe,Le)},qe.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(qe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),qe.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(Le){return Le(new Rt(Oe))}))},qe.prototype.blur=function(){var Oe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Le){return Le(new Rt(Oe))}))},qe.instanceCounter=0,qe}()},67842:function(_e){"use strict";var be,ae=59;_e.exports=oe;function oe(Ce){var ke="&"+Ce+";",Ie;return be=be||document.createElement("i"),be.innerHTML=ke,Ie=be.textContent,Ie.charCodeAt(Ie.length-1)===ae&&Ce!=="semi"||Ie===ke?!1:Ie}},12256:function(_e,be,ae){"use strict";var oe=ae(47854),Ce=ae(80501),ke=ae(22347),Ie=ae(65207),He=ae(21127),Te=ae(67842);_e.exports=cn;var ze={}.hasOwnProperty,ot=String.fromCharCode,Ke=Function.prototype,Be={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},gt=9,Je=10,wt=12,Fe=32,te=38,ee=59,he=60,ue=61,fe=35,me=88,Ee=120,Pe=65533,Ne="named",We="hexadecimal",tt="decimal",Ye={};Ye[We]=16,Ye[tt]=10;var Qe={};Qe[Ne]=He,Qe[tt]=ke,Qe[We]=Ie;var lt=1,nt=2,yt=3,vt=4,St=5,Lt=6,jt=7,Bt={};Bt[lt]="Named character references must be terminated by a semicolon",Bt[nt]="Numeric character references must be terminated by a semicolon",Bt[yt]="Named character references cannot be empty",Bt[vt]="Numeric character references cannot be empty",Bt[St]="Named character references must be known",Bt[Lt]="Numeric character references cannot be disallowed",Bt[jt]="Numeric character references cannot be outside the permissible Unicode range";function cn(Wt,rn){var Tt={},Xt,nn;rn||(rn={});for(nn in Be)Xt=rn[nn],Tt[nn]=Xt==null?Be[nn]:Xt;return(Tt.position.indent||Tt.position.start)&&(Tt.indent=Tt.position.indent||[],Tt.position=Tt.position.start),pt(Wt,Tt)}function pt(Wt,rn){var Tt=rn.additional,Xt=rn.nonTerminated,nn=rn.text,Nn=rn.reference,Rt=rn.warning,At=rn.textContext,Zt=rn.referenceContext,In=rn.warningContext,Dn=rn.position,qe=rn.indent||[],Oe=Wt.length,Le=0,Ge=-1,it=Dn.column||1,De=Dn.line||1,ht="",on=[],An,Zn,Ft,It,Gt,fn,Pn,an,Ot,Mn,Ht,Kt,un,Vn,bn,mt,jn,Kn,Ut;for(typeof Tt=="string"&&(Tt=Tt.charCodeAt(0)),mt=yi(),an=Rt?Vi:Ke,Le--,Oe++;++Le<Oe;)if(Gt===Je&&(it=qe[Ge]||1),Gt=Wt.charCodeAt(Le),Gt===te){if(Pn=Wt.charCodeAt(Le+1),Pn===gt||Pn===Je||Pn===wt||Pn===Fe||Pn===te||Pn===he||Pn!==Pn||Tt&&Pn===Tt){ht+=ot(Gt),it++;continue}for(un=Le+1,Kt=un,Ut=un,Pn===fe?(Ut=++Kt,Pn=Wt.charCodeAt(Ut),Pn===me||Pn===Ee?(Vn=We,Ut=++Kt):Vn=tt):Vn=Ne,An="",Ht="",It="",bn=Qe[Vn],Ut--;++Ut<Oe&&(Pn=Wt.charCodeAt(Ut),!!bn(Pn));)It+=ot(Pn),Vn===Ne&&ze.call(oe,It)&&(An=It,Ht=oe[It]);Ft=Wt.charCodeAt(Ut)===ee,Ft&&(Ut++,Zn=Vn===Ne?Te(It):!1,Zn&&(An=It,Ht=Zn)),Kn=1+Ut-un,!Ft&&!Xt||(It?Vn===Ne?(Ft&&!Ht?an(St,1):(An!==It&&(Ut=Kt+An.length,Kn=1+Ut-Kt,Ft=!1),Ft||(Ot=An?lt:yt,rn.attribute?(Pn=Wt.charCodeAt(Ut),Pn===ue?(an(Ot,Kn),Ht=null):He(Pn)?Ht=null:an(Ot,Kn)):an(Ot,Kn))),fn=Ht):(Ft||an(nt,Kn),fn=parseInt(It,Ye[Vn]),ut(fn)?(an(jt,Kn),fn=ot(Pe)):fn in Ce?(an(Lt,Kn),fn=Ce[fn]):(Mn="",at(fn)&&an(Lt,Kn),fn>65535&&(fn-=65536,Mn+=ot(fn>>>10|55296),fn=56320|fn&1023),fn=Mn+ot(fn))):Vn!==Ne&&an(vt,Kn)),fn?(kn(),mt=yi(),Le=Ut-1,it+=Ut-un+1,on.push(fn),jn=yi(),jn.offset++,Nn&&Nn.call(Zt,fn,{start:mt,end:jn},Wt.slice(un-1,Ut)),mt=jn):(It=Wt.slice(un-1,Ut),ht+=It,it+=It.length,Le=Ut-1)}else Gt===10&&(De++,Ge++,it=0),Gt===Gt?(ht+=ot(Gt),it++):kn();return on.join("");function yi(){return{line:De,column:it,offset:Le+(Dn.offset||0)}}function Vi(Vt,Qn){var ai=yi();ai.column+=Qn,ai.offset+=Qn,Rt.call(In,Bt[Vt],ai,Vt)}function kn(){ht&&(on.push(ht),nn&&nn.call(At,ht,{start:mt,end:yi()}),ht="")}}function ut(Wt){return Wt>=55296&&Wt<=57343||Wt>1114111}function at(Wt){return Wt>=1&&Wt<=8||Wt===11||Wt>=13&&Wt<=31||Wt>=127&&Wt<=159||Wt>=64976&&Wt<=65007||(Wt&65535)===65535||(Wt&65535)===65534}},68398:function(_e,be,ae){var oe=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Ce=function(ke){var Ie=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,He=0,Te={},ze={manual:ke.Prism&&ke.Prism.manual,disableWorkerMessageHandler:ke.Prism&&ke.Prism.disableWorkerMessageHandler,util:{encode:function ue(fe){return fe instanceof ot?new ot(fe.type,ue(fe.content),fe.alias):Array.isArray(fe)?fe.map(ue):fe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(ue){return Object.prototype.toString.call(ue).slice(8,-1)},objId:function(ue){return ue.__id||Object.defineProperty(ue,"__id",{value:++He}),ue.__id},clone:function ue(fe,me){me=me||{};var Ee,Pe;switch(ze.util.type(fe)){case"Object":if(Pe=ze.util.objId(fe),me[Pe])return me[Pe];Ee={},me[Pe]=Ee;for(var Ne in fe)fe.hasOwnProperty(Ne)&&(Ee[Ne]=ue(fe[Ne],me));return Ee;case"Array":return Pe=ze.util.objId(fe),me[Pe]?me[Pe]:(Ee=[],me[Pe]=Ee,fe.forEach(function(We,tt){Ee[tt]=ue(We,me)}),Ee);default:return fe}},getLanguage:function(ue){for(;ue;){var fe=Ie.exec(ue.className);if(fe)return fe[1].toLowerCase();ue=ue.parentElement}return"none"},setLanguage:function(ue,fe){ue.className=ue.className.replace(RegExp(Ie,"gi"),""),ue.classList.add("language-"+fe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(Ee){var ue=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Ee.stack)||[])[1];if(ue){var fe=document.getElementsByTagName("script");for(var me in fe)if(fe[me].src==ue)return fe[me]}return null}},isActive:function(ue,fe,me){for(var Ee="no-"+fe;ue;){var Pe=ue.classList;if(Pe.contains(fe))return!0;if(Pe.contains(Ee))return!1;ue=ue.parentElement}return!!me}},languages:{plain:Te,plaintext:Te,text:Te,txt:Te,extend:function(ue,fe){var me=ze.util.clone(ze.languages[ue]);for(var Ee in fe)me[Ee]=fe[Ee];return me},insertBefore:function(ue,fe,me,Ee){Ee=Ee||ze.languages;var Pe=Ee[ue],Ne={};for(var We in Pe)if(Pe.hasOwnProperty(We)){if(We==fe)for(var tt in me)me.hasOwnProperty(tt)&&(Ne[tt]=me[tt]);me.hasOwnProperty(We)||(Ne[We]=Pe[We])}var Ye=Ee[ue];return Ee[ue]=Ne,ze.languages.DFS(ze.languages,function(Qe,lt){lt===Ye&&Qe!=ue&&(this[Qe]=Ne)}),Ne},DFS:function ue(fe,me,Ee,Pe){Pe=Pe||{};var Ne=ze.util.objId;for(var We in fe)if(fe.hasOwnProperty(We)){me.call(fe,We,fe[We],Ee||We);var tt=fe[We],Ye=ze.util.type(tt);Ye==="Object"&&!Pe[Ne(tt)]?(Pe[Ne(tt)]=!0,ue(tt,me,null,Pe)):Ye==="Array"&&!Pe[Ne(tt)]&&(Pe[Ne(tt)]=!0,ue(tt,me,We,Pe))}}},plugins:{},highlightAll:function(ue,fe){ze.highlightAllUnder(document,ue,fe)},highlightAllUnder:function(ue,fe,me){var Ee={callback:me,container:ue,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};ze.hooks.run("before-highlightall",Ee),Ee.elements=Array.prototype.slice.apply(Ee.container.querySelectorAll(Ee.selector)),ze.hooks.run("before-all-elements-highlight",Ee);for(var Pe=0,Ne;Ne=Ee.elements[Pe++];)ze.highlightElement(Ne,fe===!0,Ee.callback)},highlightElement:function(ue,fe,me){var Ee=ze.util.getLanguage(ue),Pe=ze.languages[Ee];ze.util.setLanguage(ue,Ee);var Ne=ue.parentElement;Ne&&Ne.nodeName.toLowerCase()==="pre"&&ze.util.setLanguage(Ne,Ee);var We=ue.textContent,tt={element:ue,language:Ee,grammar:Pe,code:We};function Ye(lt){tt.highlightedCode=lt,ze.hooks.run("before-insert",tt),tt.element.innerHTML=tt.highlightedCode,ze.hooks.run("after-highlight",tt),ze.hooks.run("complete",tt),me&&me.call(tt.element)}if(ze.hooks.run("before-sanity-check",tt),Ne=tt.element.parentElement,Ne&&Ne.nodeName.toLowerCase()==="pre"&&!Ne.hasAttribute("tabindex")&&Ne.setAttribute("tabindex","0"),!tt.code){ze.hooks.run("complete",tt),me&&me.call(tt.element);return}if(ze.hooks.run("before-highlight",tt),!tt.grammar){Ye(ze.util.encode(tt.code));return}if(fe&&ke.Worker){var Qe=new Worker(ze.filename);Qe.onmessage=function(lt){Ye(lt.data)},Qe.postMessage(JSON.stringify({language:tt.language,code:tt.code,immediateClose:!0}))}else Ye(ze.highlight(tt.code,tt.grammar,tt.language))},highlight:function(ue,fe,me){var Ee={code:ue,grammar:fe,language:me};if(ze.hooks.run("before-tokenize",Ee),!Ee.grammar)throw new Error('The language "'+Ee.language+'" has no grammar.');return Ee.tokens=ze.tokenize(Ee.code,Ee.grammar),ze.hooks.run("after-tokenize",Ee),ot.stringify(ze.util.encode(Ee.tokens),Ee.language)},tokenize:function(ue,fe){var me=fe.rest;if(me){for(var Ee in me)fe[Ee]=me[Ee];delete fe.rest}var Pe=new gt;return Je(Pe,Pe.head,ue),Be(ue,Pe,fe,Pe.head,0),Fe(Pe)},hooks:{all:{},add:function(ue,fe){var me=ze.hooks.all;me[ue]=me[ue]||[],me[ue].push(fe)},run:function(ue,fe){var me=ze.hooks.all[ue];if(!(!me||!me.length))for(var Ee=0,Pe;Pe=me[Ee++];)Pe(fe)}},Token:ot};ke.Prism=ze;function ot(ue,fe,me,Ee){this.type=ue,this.content=fe,this.alias=me,this.length=(Ee||"").length|0}ot.stringify=function ue(fe,me){if(typeof fe=="string")return fe;if(Array.isArray(fe)){var Ee="";return fe.forEach(function(Ye){Ee+=ue(Ye,me)}),Ee}var Pe={type:fe.type,content:ue(fe.content,me),tag:"span",classes:["token",fe.type],attributes:{},language:me},Ne=fe.alias;Ne&&(Array.isArray(Ne)?Array.prototype.push.apply(Pe.classes,Ne):Pe.classes.push(Ne)),ze.hooks.run("wrap",Pe);var We="";for(var tt in Pe.attributes)We+=" "+tt+'="'+(Pe.attributes[tt]||"").replace(/"/g,"&quot;")+'"';return"<"+Pe.tag+' class="'+Pe.classes.join(" ")+'"'+We+">"+Pe.content+"</"+Pe.tag+">"};function Ke(ue,fe,me,Ee){ue.lastIndex=fe;var Pe=ue.exec(me);if(Pe&&Ee&&Pe[1]){var Ne=Pe[1].length;Pe.index+=Ne,Pe[0]=Pe[0].slice(Ne)}return Pe}function Be(ue,fe,me,Ee,Pe,Ne){for(var We in me)if(!(!me.hasOwnProperty(We)||!me[We])){var tt=me[We];tt=Array.isArray(tt)?tt:[tt];for(var Ye=0;Ye<tt.length;++Ye){if(Ne&&Ne.cause==We+","+Ye)return;var Qe=tt[Ye],lt=Qe.inside,nt=!!Qe.lookbehind,yt=!!Qe.greedy,vt=Qe.alias;if(yt&&!Qe.pattern.global){var St=Qe.pattern.toString().match(/[imsuy]*$/)[0];Qe.pattern=RegExp(Qe.pattern.source,St+"g")}for(var Lt=Qe.pattern||Qe,jt=Ee.next,Bt=Pe;jt!==fe.tail&&!(Ne&&Bt>=Ne.reach);Bt+=jt.value.length,jt=jt.next){var cn=jt.value;if(fe.length>ue.length)return;if(!(cn instanceof ot)){var pt=1,ut;if(yt){if(ut=Ke(Lt,Bt,ue,nt),!ut||ut.index>=ue.length)break;var Tt=ut.index,at=ut.index+ut[0].length,Wt=Bt;for(Wt+=jt.value.length;Tt>=Wt;)jt=jt.next,Wt+=jt.value.length;if(Wt-=jt.value.length,Bt=Wt,jt.value instanceof ot)continue;for(var rn=jt;rn!==fe.tail&&(Wt<at||typeof rn.value=="string");rn=rn.next)pt++,Wt+=rn.value.length;pt--,cn=ue.slice(Bt,Wt),ut.index-=Bt}else if(ut=Ke(Lt,0,cn,nt),!ut)continue;var Tt=ut.index,Xt=ut[0],nn=cn.slice(0,Tt),Nn=cn.slice(Tt+Xt.length),Rt=Bt+cn.length;Ne&&Rt>Ne.reach&&(Ne.reach=Rt);var At=jt.prev;nn&&(At=Je(fe,At,nn),Bt+=nn.length),wt(fe,At,pt);var Zt=new ot(We,lt?ze.tokenize(Xt,lt):Xt,vt,Xt);if(jt=Je(fe,At,Zt),Nn&&Je(fe,jt,Nn),pt>1){var In={cause:We+","+Ye,reach:Rt};Be(ue,fe,me,jt.prev,Bt,In),Ne&&In.reach>Ne.reach&&(Ne.reach=In.reach)}}}}}}function gt(){var ue={value:null,prev:null,next:null},fe={value:null,prev:ue,next:null};ue.next=fe,this.head=ue,this.tail=fe,this.length=0}function Je(ue,fe,me){var Ee=fe.next,Pe={value:me,prev:fe,next:Ee};return fe.next=Pe,Ee.prev=Pe,ue.length++,Pe}function wt(ue,fe,me){for(var Ee=fe.next,Pe=0;Pe<me&&Ee!==ue.tail;Pe++)Ee=Ee.next;fe.next=Ee,Ee.prev=fe,ue.length-=Pe}function Fe(ue){for(var fe=[],me=ue.head.next;me!==ue.tail;)fe.push(me.value),me=me.next;return fe}if(!ke.document)return ke.addEventListener&&(ze.disableWorkerMessageHandler||ke.addEventListener("message",function(ue){var fe=JSON.parse(ue.data),me=fe.language,Ee=fe.code,Pe=fe.immediateClose;ke.postMessage(ze.highlight(Ee,ze.languages[me],me)),Pe&&ke.close()},!1)),ze;var te=ze.util.currentScript();te&&(ze.filename=te.src,te.hasAttribute("data-manual")&&(ze.manual=!0));function ee(){ze.manual||ze.highlightAll()}if(!ze.manual){var he=document.readyState;he==="loading"||he==="interactive"&&te&&te.defer?document.addEventListener("DOMContentLoaded",ee):window.requestAnimationFrame?window.requestAnimationFrame(ee):window.setTimeout(ee,16)}return ze}(oe);_e.exports&&(_e.exports=Ce),typeof ae.g!="undefined"&&(ae.g.Prism=Ce)},88914:function(_e,be,ae){"use strict";var oe=ae(47178),Ce=ae(19095),ke=ae(1969),Ie="data";_e.exports=ot;var He=/^data[-\w.:]+$/i,Te=/-[a-z]/g,ze=/[A-Z]/g;function ot(wt,Fe){var te=oe(Fe),ee=Fe,he=ke;return te in wt.normal?wt.property[wt.normal[te]]:(te.length>4&&te.slice(0,4)===Ie&&He.test(Fe)&&(Fe.charAt(4)==="-"?ee=Ke(Fe):Fe=Be(Fe),he=Ce),new he(ee,Fe))}function Ke(wt){var Fe=wt.slice(5).replace(Te,Je);return Ie+Fe.charAt(0).toUpperCase()+Fe.slice(1)}function Be(wt){var Fe=wt.slice(4);return Te.test(Fe)?wt:(Fe=Fe.replace(ze,gt),Fe.charAt(0)!=="-"&&(Fe="-"+Fe),Ie+Fe)}function gt(wt){return"-"+wt.toLowerCase()}function Je(wt){return wt.charAt(1).toUpperCase()}},18795:function(_e,be,ae){"use strict";var oe=ae(83576),Ce=ae(8179),ke=ae(59780),Ie=ae(68244),He=ae(20019),Te=ae(38567);_e.exports=oe([ke,Ce,Ie,He,Te])},20019:function(_e,be,ae){"use strict";var oe=ae(70167),Ce=ae(79318),ke=oe.booleanish,Ie=oe.number,He=oe.spaceSeparated;_e.exports=Ce({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,ariaControls:He,ariaCurrent:null,ariaDescribedBy:He,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:He,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:He,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:He,ariaLevel:Ie,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:He,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:He,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:ke,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}});function Te(ze,ot){return ot==="role"?ot:"aria-"+ot.slice(4).toLowerCase()}},38567:function(_e,be,ae){"use strict";var oe=ae(70167),Ce=ae(79318),ke=ae(85804),Ie=oe.boolean,He=oe.overloadedBoolean,Te=oe.booleanish,ze=oe.number,ot=oe.spaceSeparated,Ke=oe.commaSeparated;_e.exports=Ce({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ke,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ke,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:ot,autoFocus:Ie,autoPlay:Ie,capture:Ie,charSet:null,checked:Ie,cite:null,className:ot,cols:ze,colSpan:null,content:null,contentEditable:Te,controls:Ie,controlsList:ot,coords:ze|Ke,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:He,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:ot,height:ze,hidden:Ie,high:ze,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:Ke,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:ot,itemRef:ot,itemScope:Ie,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:ze,manifest:null,max:null,maxLength:ze,media:null,method:null,min:null,minLength:ze,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:ze,pattern:null,ping:ot,placeholder:null,playsInline:Ie,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:ot,required:Ie,reversed:Ie,rows:ze,rowSpan:ze,sandbox:ot,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shape:null,size:ze,sizes:null,slot:null,span:ze,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Ke,start:ze,step:null,style:null,tabIndex:ze,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Te,width:ze,wrap:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:ze,borderColor:null,bottomMargin:ze,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:ze,leftMargin:ze,link:null,longDesc:null,lowSrc:null,marginHeight:ze,marginWidth:ze,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:ze,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:ze,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ze,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:ze,security:null,unselectable:null}})},85804:function(_e,be,ae){"use strict";var oe=ae(56432);_e.exports=Ce;function Ce(ke,Ie){return oe(ke,Ie.toLowerCase())}},56432:function(_e){"use strict";_e.exports=be;function be(ae,oe){return oe in ae?ae[oe]:oe}},79318:function(_e,be,ae){"use strict";var oe=ae(47178),Ce=ae(44347),ke=ae(19095);_e.exports=Ie;function Ie(He){var Te=He.space,ze=He.mustUseProperty||[],ot=He.attributes||{},Ke=He.properties,Be=He.transform,gt={},Je={},wt,Fe;for(wt in Ke)Fe=new ke(wt,Be(ot,wt),Ke[wt],Te),ze.indexOf(wt)!==-1&&(Fe.mustUseProperty=!0),gt[wt]=Fe,Je[oe(wt)]=wt,Je[oe(Fe.attribute)]=wt;return new Ce(gt,Je,Te)}},19095:function(_e,be,ae){"use strict";var oe=ae(1969),Ce=ae(70167);_e.exports=He,He.prototype=new oe,He.prototype.defined=!0;var ke=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ie=ke.length;function He(ze,ot,Ke,Be){var gt=-1,Je;for(Te(this,"space",Be),oe.call(this,ze,ot);++gt<Ie;)Je=ke[gt],Te(this,Je,(Ke&Ce[Je])===Ce[Je])}function Te(ze,ot,Ke){Ke&&(ze[ot]=Ke)}},1969:function(_e){"use strict";_e.exports=ae;var be=ae.prototype;be.space=null,be.attribute=null,be.property=null,be.boolean=!1,be.booleanish=!1,be.overloadedBoolean=!1,be.number=!1,be.commaSeparated=!1,be.spaceSeparated=!1,be.commaOrSpaceSeparated=!1,be.mustUseProperty=!1,be.defined=!1;function ae(oe,Ce){this.property=oe,this.attribute=Ce}},83576:function(_e,be,ae){"use strict";var oe=ae(97270),Ce=ae(44347);_e.exports=ke;function ke(Ie){for(var He=Ie.length,Te=[],ze=[],ot=-1,Ke,Be;++ot<He;)Ke=Ie[ot],Te.push(Ke.property),ze.push(Ke.normal),Be=Ke.space;return new Ce(oe.apply(null,Te),oe.apply(null,ze),Be)}},44347:function(_e){"use strict";_e.exports=ae;var be=ae.prototype;be.space=null,be.normal={},be.property={};function ae(oe,Ce,ke){this.property=oe,this.normal=Ce,ke&&(this.space=ke)}},70167:function(_e,be){"use strict";var ae=0;be.boolean=oe(),be.booleanish=oe(),be.overloadedBoolean=oe(),be.number=oe(),be.spaceSeparated=oe(),be.commaSeparated=oe(),be.commaOrSpaceSeparated=oe();function oe(){return Math.pow(2,++ae)}},8179:function(_e,be,ae){"use strict";var oe=ae(79318);_e.exports=oe({space:"xlink",transform:Ce,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Ce(ke,Ie){return"xlink:"+Ie.slice(5).toLowerCase()}},59780:function(_e,be,ae){"use strict";var oe=ae(79318);_e.exports=oe({space:"xml",transform:Ce,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ce(ke,Ie){return"xml:"+Ie.slice(3).toLowerCase()}},68244:function(_e,be,ae){"use strict";var oe=ae(79318),Ce=ae(85804);_e.exports=oe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ce,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(_e){"use strict";_e.exports=be;function be(ae){return ae.toLowerCase()}},63727:function(_e,be,ae){"use strict";ae.d(be,{s:function(){return Ft},default:function(){return Mn}});var oe=ae(67711),Ce=ae(98506),ke=ae(15142),Ie=ae(16886),He=ae(33346),Te=ae(37463),ze=ae(6551),ot=ae(6089),Ke=ae(18929),Be=ae(59301),gt=Be.createContext({}),Je=gt,wt=ae(26420),Fe=ae(52873),te="__rc_cascader_search_mark__",ee=function(Kt,un,Vn){var bn=Vn.label,mt=bn===void 0?"":bn;return un.some(function(jn){return String(jn[mt]).toLowerCase().includes(Kt.toLowerCase())})},he=function(Kt,un,Vn,bn){return un.map(function(mt){return mt[bn.label]}).join(" / ")},ue=function(Kt,un,Vn,bn,mt,jn){var Kn=mt.filter,Ut=Kn===void 0?ee:Kn,yi=mt.render,Vi=yi===void 0?he:yi,kn=mt.limit,Vt=kn===void 0?50:kn,Qn=mt.sort;return Be.useMemo(function(){var ai=[];if(!Kt)return[];function Un(si,li){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;si.forEach(function(ii){if(!(!Qn&&Vt!==!1&&Vt>0&&ai.length>=Vt)){var ti=[].concat((0,ke.Z)(li),[ii]),On=ii[Vn.children],ni=Me||ii.disabled;if((!On||On.length===0||jn)&&Ut(Kt,ti,{label:Vn.label})){var Ei;ai.push((0,Ce.Z)((0,Ce.Z)({},ii),{},(Ei={disabled:ni},(0,Fe.Z)(Ei,Vn.label,Vi(Kt,ti,bn,Vn)),(0,Fe.Z)(Ei,te,ti),(0,Fe.Z)(Ei,Vn.children,void 0),Ei)))}On&&Un(ii[Vn.children],ti,ni)}})}return Un(un,[]),Qn&&ai.sort(function(si,li){return Qn(si[te],li[te],Kt,Vn)}),Vt!==!1&&Vt>0?ai.slice(0,Vt):ai},[Kt,un,Vn,bn,Vi,jn,Ut,Qn,Vt])},fe=ue,me="__RC_CASCADER_SPLIT__",Ee="SHOW_PARENT",Pe="SHOW_CHILD";function Ne(Ht){return Ht.join(me)}function We(Ht){return Ht.map(Ne)}function tt(Ht){return Ht.split(me)}function Ye(Ht){var Kt=Ht||{},un=Kt.label,Vn=Kt.value,bn=Kt.children,mt=Vn||"value";return{label:un||"label",value:mt,key:mt,children:bn||"children"}}function Qe(Ht,Kt){var un,Vn;return(un=Ht.isLeaf)!==null&&un!==void 0?un:!((Vn=Ht[Kt.children])!==null&&Vn!==void 0&&Vn.length)}function lt(Ht){var Kt=Ht.parentElement;if(Kt){var un=Ht.offsetTop-Kt.offsetTop;un-Kt.scrollTop<0?Kt.scrollTo({top:un}):un+Ht.offsetHeight-Kt.scrollTop>Kt.offsetHeight&&Kt.scrollTo({top:un+Ht.offsetHeight-Kt.offsetHeight})}}function nt(Ht,Kt){return Ht.map(function(un){var Vn;return(Vn=un[te])===null||Vn===void 0?void 0:Vn.map(function(bn){return bn[Kt.value]})})}function yt(Ht){return Array.isArray(Ht)&&Array.isArray(Ht[0])}function vt(Ht){return Ht?yt(Ht)?Ht:(Ht.length===0?[]:[Ht]).map(function(Kt){return Array.isArray(Kt)?Kt:[Kt]}):[]}function St(Ht,Kt,un){var Vn=new Set(Ht),bn=Kt();return Ht.filter(function(mt){var jn=bn[mt],Kn=jn?jn.parent:null,Ut=jn?jn.children:null;return jn&&jn.node.disabled?!0:un===Pe?!(Ut&&Ut.some(function(yi){return yi.key&&Vn.has(yi.key)})):!(Kn&&!Kn.node.disabled&&Vn.has(Kn.key))})}function Lt(Ht,Kt,un){for(var Vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,bn=Kt,mt=[],jn=function(){var yi,Vi,kn,Vt=Ht[Kn],Qn=(yi=bn)===null||yi===void 0?void 0:yi.findIndex(function(Un){var si=Un[un.value];return Vn?String(si)===String(Vt):si===Vt}),ai=Qn!==-1?(Vi=bn)===null||Vi===void 0?void 0:Vi[Qn]:null;mt.push({value:(kn=ai==null?void 0:ai[un.value])!==null&&kn!==void 0?kn:Vt,index:Qn,option:ai}),bn=ai==null?void 0:ai[un.children]},Kn=0;Kn<Ht.length;Kn+=1)jn();return mt}var jt=function(Ht,Kt,un,Vn,bn){return Be.useMemo(function(){var mt=bn||function(jn){var Kn=Vn?jn.slice(-1):jn,Ut=" / ";return Kn.every(function(yi){return["string","number"].includes((0,wt.Z)(yi))})?Kn.join(Ut):Kn.reduce(function(yi,Vi,kn){var Vt=Be.isValidElement(Vi)?Be.cloneElement(Vi,{key:kn}):Vi;return kn===0?[Vt]:[].concat((0,ke.Z)(yi),[Ut,Vt])},[])};return Ht.map(function(jn){var Kn,Ut=Lt(jn,Kt,un),yi=mt(Ut.map(function(kn){var Vt,Qn=kn.option,ai=kn.value;return(Vt=Qn==null?void 0:Qn[un.label])!==null&&Vt!==void 0?Vt:ai}),Ut.map(function(kn){var Vt=kn.option;return Vt})),Vi=Ne(jn);return{label:yi,value:Vi,key:Vi,valueCells:jn,disabled:(Kn=Ut[Ut.length-1])===null||Kn===void 0||(Kn=Kn.option)===null||Kn===void 0?void 0:Kn.disabled}})},[Ht,Kt,un,bn,Vn])};function Bt(Ht,Kt){return Be.useCallback(function(un){var Vn=[],bn=[];return un.forEach(function(mt){var jn=Lt(mt,Ht,Kt);jn.every(function(Kn){return Kn.option})?bn.push(mt):Vn.push(mt)}),[bn,Vn]},[Ht,Kt])}var cn=ae(34061),pt=function(Ht,Kt){var un=Be.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Vn=Be.useCallback(function(){return un.current.options!==Ht&&(un.current.options=Ht,un.current.info=(0,cn.I8)(Ht,{fieldNames:Kt,initWrapper:function(mt){return(0,Ce.Z)((0,Ce.Z)({},mt),{},{pathKeyEntities:{}})},processEntity:function(mt,jn){var Kn=mt.nodes.map(function(Ut){return Ut[Kt.value]}).join(me);jn.pathKeyEntities[Kn]=mt,mt.key=Kn}})),un.current.info.pathKeyEntities},[Kt,Ht]);return Vn};function ut(Ht,Kt){var un=Be.useMemo(function(){return Kt||[]},[Kt]),Vn=pt(un,Ht),bn=Be.useCallback(function(mt){var jn=Vn();return mt.map(function(Kn){var Ut=jn[Kn].nodes;return Ut.map(function(yi){return yi[Ht.value]})})},[Vn,Ht]);return[un,Vn,bn]}var at=ae(48736);function Wt(Ht){return Be.useMemo(function(){if(!Ht)return[!1,{}];var Kt={matchInputWidth:!0,limit:50};return Ht&&(0,wt.Z)(Ht)==="object"&&(Kt=(0,Ce.Z)((0,Ce.Z)({},Kt),Ht)),Kt.limit<=0&&(Kt.limit=!1),[!0,Kt]},[Ht])}var rn=ae(34643);function Tt(Ht,Kt,un,Vn,bn,mt,jn,Kn){return function(Ut){if(!Ht)Kt(Ut);else{var yi=Ne(Ut),Vi=We(un),kn=We(Vn),Vt=Vi.includes(yi),Qn=bn.some(function(ni){return Ne(ni)===yi}),ai=un,Un=bn;if(Qn&&!Vt)Un=bn.filter(function(ni){return Ne(ni)!==yi});else{var si=Vt?Vi.filter(function(ni){return ni!==yi}):[].concat((0,ke.Z)(Vi),[yi]),li=mt(),Me;if(Vt){var ii=(0,rn.S)(si,{checked:!1,halfCheckedKeys:kn},li);Me=ii.checkedKeys}else{var ti=(0,rn.S)(si,!0,li);Me=ti.checkedKeys}var On=St(Me,mt,Kn);ai=jn(On)}Kt([].concat((0,ke.Z)(Un),(0,ke.Z)(ai)))}}}function Xt(Ht,Kt,un,Vn,bn){return Be.useMemo(function(){var mt=bn(Kt),jn=(0,Ie.Z)(mt,2),Kn=jn[0],Ut=jn[1];if(!Ht||!Kt.length)return[Kn,[],Ut];var yi=We(Kn),Vi=un(),kn=(0,rn.S)(yi,!0,Vi),Vt=kn.checkedKeys,Qn=kn.halfCheckedKeys;return[Vn(Vt),Vn(Qn),Ut]},[Ht,Kt,un,Vn,bn])}var nn=ae(92310),Nn=ae.n(nn),Rt=Be.memo(function(Ht){var Kt=Ht.children;return Kt},function(Ht,Kt){return!Kt.open}),At=Rt;function Zt(Ht){var Kt,un=Ht.prefixCls,Vn=Ht.checked,bn=Ht.halfChecked,mt=Ht.disabled,jn=Ht.onClick,Kn=Ht.disableCheckbox,Ut=Be.useContext(Je),yi=Ut.checkable,Vi=typeof yi!="boolean"?yi:null;return Be.createElement("span",{className:Nn()("".concat(un),(Kt={},(0,Fe.Z)(Kt,"".concat(un,"-checked"),Vn),(0,Fe.Z)(Kt,"".concat(un,"-indeterminate"),!Vn&&bn),(0,Fe.Z)(Kt,"".concat(un,"-disabled"),mt||Kn),Kt)),onClick:jn},Vi)}var In="__cascader_fix_label__";function Dn(Ht){var Kt=Ht.prefixCls,un=Ht.multiple,Vn=Ht.options,bn=Ht.activeValue,mt=Ht.prevValuePath,jn=Ht.onToggleOpen,Kn=Ht.onSelect,Ut=Ht.onActive,yi=Ht.checkedSet,Vi=Ht.halfCheckedSet,kn=Ht.loadingKeys,Vt=Ht.isSelectable,Qn=Ht.disabled,ai="".concat(Kt,"-menu"),Un="".concat(Kt,"-menu-item"),si=Be.useContext(Je),li=si.fieldNames,Me=si.changeOnSelect,ii=si.expandTrigger,ti=si.expandIcon,On=si.loadingIcon,ni=si.dropdownMenuColumnStyle,Ei=si.optionRender,ui=ii==="hover",tr=function(dn){return Qn||dn},Sn=Be.useMemo(function(){return Vn.map(function(sn){var dn,_n=sn.disabled,Ri=sn.disableCheckbox,qn=sn[te],Ni=(dn=sn[In])!==null&&dn!==void 0?dn:sn[li.label],mn=sn[li.value],Hn=Qe(sn,li),Di=qn?qn.map(function(fi){return fi[li.value]}):[].concat((0,ke.Z)(mt),[mn]),Yi=Ne(Di),mi=kn.includes(Yi),Ct=yi.has(Yi),$t=Vi.has(Yi);return{disabled:_n,label:Ni,value:mn,isLeaf:Hn,isLoading:mi,checked:Ct,halfChecked:$t,option:sn,disableCheckbox:Ri,fullPath:Di,fullPathKey:Yi}})},[Vn,yi,li,Vi,kn,mt]);return Be.createElement("ul",{className:ai,role:"menu"},Sn.map(function(sn){var dn,_n=sn.disabled,Ri=sn.label,qn=sn.value,Ni=sn.isLeaf,mn=sn.isLoading,Hn=sn.checked,Di=sn.halfChecked,Yi=sn.option,mi=sn.fullPath,Ct=sn.fullPathKey,$t=sn.disableCheckbox,fi=function(){if(!tr(_n)){var Fi=(0,ke.Z)(mi);ui&&Ni&&Fi.pop(),Ut(Fi)}},gi=function(){Vt(Yi)&&!tr(_n)&&Kn(mi,Ni)},zt;return typeof Yi.title=="string"?zt=Yi.title:typeof Ri=="string"&&(zt=Ri),Be.createElement("li",{key:Ct,className:Nn()(Un,(dn={},(0,Fe.Z)(dn,"".concat(Un,"-expand"),!Ni),(0,Fe.Z)(dn,"".concat(Un,"-active"),bn===qn||bn===Ct),(0,Fe.Z)(dn,"".concat(Un,"-disabled"),tr(_n)),(0,Fe.Z)(dn,"".concat(Un,"-loading"),mn),dn)),style:ni,role:"menuitemcheckbox",title:zt,"aria-checked":Hn,"data-path-key":Ct,onClick:function(){fi(),!$t&&(!un||Ni)&&gi()},onDoubleClick:function(){Me&&jn(!1)},onMouseEnter:function(){ui&&fi()},onMouseDown:function(Fi){Fi.preventDefault()}},un&&Be.createElement(Zt,{prefixCls:"".concat(Kt,"-checkbox"),checked:Hn,halfChecked:Di,disabled:tr(_n)||$t,disableCheckbox:$t,onClick:function(Fi){$t||(Fi.stopPropagation(),gi())}}),Be.createElement("div",{className:"".concat(Un,"-content")},Ei?Ei(Yi):Ri),!mn&&ti&&!Ni&&Be.createElement("div",{className:"".concat(Un,"-expand-icon")},ti),mn&&On&&Be.createElement("div",{className:"".concat(Un,"-loading-icon")},On))}))}var qe=function(Kt,un){var Vn=Be.useContext(Je),bn=Vn.values,mt=bn[0],jn=Be.useState([]),Kn=(0,Ie.Z)(jn,2),Ut=Kn[0],yi=Kn[1];return Be.useEffect(function(){Kt||yi(mt||[])},[un,mt]),[Ut,yi]},Oe=qe,Le=ae(10228),Ge=function(Ht,Kt,un,Vn,bn,mt,jn){var Kn=jn.direction,Ut=jn.searchValue,yi=jn.toggleOpen,Vi=jn.open,kn=Kn==="rtl",Vt=Be.useMemo(function(){for(var ni=-1,Ei=Kt,ui=[],tr=[],Sn=Vn.length,sn=nt(Kt,un),dn=function(mn){var Hn=Ei.findIndex(function(Di,Yi){return(sn[Yi]?Ne(sn[Yi]):Di[un.value])===Vn[mn]});if(Hn===-1)return 1;ni=Hn,ui.push(ni),tr.push(Vn[mn]),Ei=Ei[ni][un.children]},_n=0;_n<Sn&&Ei&&!dn(_n);_n+=1);for(var Ri=Kt,qn=0;qn<ui.length-1;qn+=1)Ri=Ri[ui[qn]][un.children];return[tr,ni,Ri,sn]},[Vn,un,Kt]),Qn=(0,Ie.Z)(Vt,4),ai=Qn[0],Un=Qn[1],si=Qn[2],li=Qn[3],Me=function(Ei){bn(Ei)},ii=function(Ei){var ui=si.length,tr=Un;tr===-1&&Ei<0&&(tr=ui);for(var Sn=0;Sn<ui;Sn+=1){tr=(tr+Ei+ui)%ui;var sn=si[tr];if(sn&&!sn.disabled){var dn=ai.slice(0,-1).concat(li[tr]?Ne(li[tr]):sn[un.value]);Me(dn);return}}},ti=function(){if(ai.length>1){var Ei=ai.slice(0,-1);Me(Ei)}else yi(!1)},On=function(){var Ei,ui=((Ei=si[Un])===null||Ei===void 0?void 0:Ei[un.children])||[],tr=ui.find(function(sn){return!sn.disabled});if(tr){var Sn=[].concat((0,ke.Z)(ai),[tr[un.value]]);Me(Sn)}};Be.useImperativeHandle(Ht,function(){return{onKeyDown:function(Ei){var ui=Ei.which;switch(ui){case Le.Z.UP:case Le.Z.DOWN:{var tr=0;ui===Le.Z.UP?tr=-1:ui===Le.Z.DOWN&&(tr=1),tr!==0&&ii(tr);break}case Le.Z.LEFT:{if(Ut)break;kn?On():ti();break}case Le.Z.RIGHT:{if(Ut)break;kn?ti():On();break}case Le.Z.BACKSPACE:{Ut||ti();break}case Le.Z.ENTER:{if(ai.length){var Sn=si[Un],sn=(Sn==null?void 0:Sn[te])||[];sn.length?mt(sn.map(function(dn){return dn[un.value]}),sn[sn.length-1]):mt(ai,si[Un])}break}case Le.Z.ESC:yi(!1),Vi&&Ei.stopPropagation()}},onKeyUp:function(){}}})},it=Be.forwardRef(function(Ht,Kt){var un,Vn,bn,mt=Ht.prefixCls,jn=Ht.multiple,Kn=Ht.searchValue,Ut=Ht.toggleOpen,yi=Ht.notFoundContent,Vi=Ht.direction,kn=Ht.open,Vt=Ht.disabled,Qn=Be.useRef(null),ai=Vi==="rtl",Un=Be.useContext(Je),si=Un.options,li=Un.values,Me=Un.halfValues,ii=Un.fieldNames,ti=Un.changeOnSelect,On=Un.onSelect,ni=Un.searchOptions,Ei=Un.dropdownPrefixCls,ui=Un.loadData,tr=Un.expandTrigger,Sn=Ei||mt,sn=Be.useState([]),dn=(0,Ie.Z)(sn,2),_n=dn[0],Ri=dn[1],qn=function(Ji){if(!(!ui||Kn)){var _i=Lt(Ji,si,ii),Jn=_i.map(function(vr){var Wr=vr.option;return Wr}),ji=Jn[Jn.length-1];if(ji&&!Qe(ji,ii)){var ln=Ne(Ji);Ri(function(vr){return[].concat((0,ke.Z)(vr),[ln])}),ui(Jn)}}};Be.useEffect(function(){_n.length&&_n.forEach(function(Rn){var Ji=tt(Rn),_i=Lt(Ji,si,ii,!0).map(function(ji){var ln=ji.option;return ln}),Jn=_i[_i.length-1];(!Jn||Jn[ii.children]||Qe(Jn,ii))&&Ri(function(ji){return ji.filter(function(ln){return ln!==Rn})})})},[si,_n,ii]);var Ni=Be.useMemo(function(){return new Set(We(li))},[li]),mn=Be.useMemo(function(){return new Set(We(Me))},[Me]),Hn=Oe(jn,kn),Di=(0,Ie.Z)(Hn,2),Yi=Di[0],mi=Di[1],Ct=function(Ji){mi(Ji),qn(Ji)},$t=function(Ji){if(Vt)return!1;var _i=Ji.disabled,Jn=Qe(Ji,ii);return!_i&&(Jn||ti||jn)},fi=function(Ji,_i){var Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;On(Ji),!jn&&(_i||ti&&(tr==="hover"||Jn))&&Ut(!1)},gi=Be.useMemo(function(){return Kn?ni:si},[Kn,ni,si]),zt=Be.useMemo(function(){for(var Rn=[{options:gi}],Ji=gi,_i=nt(Ji,ii),Jn=function(){var vr=Yi[ji],Wr=Ji.find(function(ur,yr){return(_i[yr]?Ne(_i[yr]):ur[ii.value])===vr}),pn=Wr==null?void 0:Wr[ii.children];if(!(pn!=null&&pn.length))return 1;Ji=pn,Rn.push({options:pn})},ji=0;ji<Yi.length&&!Jn();ji+=1);return Rn},[gi,Yi,ii]),pi=function(Ji,_i){$t(_i)&&fi(Ji,Qe(_i,ii),!0)};Ge(Kt,gi,ii,Yi,Ct,pi,{direction:Vi,searchValue:Kn,toggleOpen:Ut,open:kn}),Be.useEffect(function(){if(!Kn)for(var Rn=0;Rn<Yi.length;Rn+=1){var Ji,_i=Yi.slice(0,Rn+1),Jn=Ne(_i),ji=(Ji=Qn.current)===null||Ji===void 0?void 0:Ji.querySelector('li[data-path-key="'.concat(Jn.replace(/\\{0,2}"/g,'\\"'),'"]'));ji&&lt(ji)}},[Yi,Kn]);var Fi=!((un=zt[0])!==null&&un!==void 0&&(un=un.options)!==null&&un!==void 0&&un.length),Cn=[(Vn={},(0,Fe.Z)(Vn,ii.value,"__EMPTY__"),(0,Fe.Z)(Vn,In,yi),(0,Fe.Z)(Vn,"disabled",!0),Vn)],je=(0,Ce.Z)((0,Ce.Z)({},Ht),{},{multiple:!Fi&&jn,onSelect:fi,onActive:Ct,onToggleOpen:Ut,checkedSet:Ni,halfCheckedSet:mn,loadingKeys:_n,isSelectable:$t}),Pi=Fi?[{options:Cn}]:zt,Ai=Pi.map(function(Rn,Ji){var _i=Yi.slice(0,Ji),Jn=Yi[Ji];return Be.createElement(Dn,(0,oe.Z)({key:Ji},je,{prefixCls:Sn,options:Rn.options,prevValuePath:_i,activeValue:Jn}))});return Be.createElement(At,{open:kn},Be.createElement("div",{className:Nn()("".concat(Sn,"-menus"),(bn={},(0,Fe.Z)(bn,"".concat(Sn,"-menu-empty"),Fi),(0,Fe.Z)(bn,"".concat(Sn,"-rtl"),ai),bn)),ref:Qn},Ai))}),De=it,ht=Be.forwardRef(function(Ht,Kt){var un=(0,Te.lk)();return Be.createElement(De,(0,oe.Z)({},Ht,un,{ref:Kt}))}),on=ht,An=ae(70425);function Zn(){}function Ft(Ht){var Kt,un=Ht,Vn=un.prefixCls,bn=Vn===void 0?"rc-cascader":Vn,mt=un.style,jn=un.className,Kn=un.options,Ut=un.checkable,yi=un.defaultValue,Vi=un.value,kn=un.fieldNames,Vt=un.changeOnSelect,Qn=un.onChange,ai=un.showCheckedStrategy,Un=un.loadData,si=un.expandTrigger,li=un.expandIcon,Me=li===void 0?">":li,ii=un.loadingIcon,ti=un.direction,On=un.notFoundContent,ni=On===void 0?"Not Found":On,Ei=un.disabled,ui=!!Ut,tr=(0,An.C8)(yi,{value:Vi,postState:vt}),Sn=(0,Ie.Z)(tr,2),sn=Sn[0],dn=Sn[1],_n=Be.useMemo(function(){return Ye(kn)},[JSON.stringify(kn)]),Ri=ut(_n,Kn),qn=(0,Ie.Z)(Ri,3),Ni=qn[0],mn=qn[1],Hn=qn[2],Di=Bt(Ni,_n),Yi=Xt(ui,sn,mn,Hn,Di),mi=(0,Ie.Z)(Yi,3),Ct=mi[0],$t=mi[1],fi=mi[2],gi=(0,An.zX)(function(Pi){if(dn(Pi),Qn){var Ai=vt(Pi),Rn=Ai.map(function(Jn){return Lt(Jn,Ni,_n).map(function(ji){return ji.option})}),Ji=ui?Ai:Ai[0],_i=ui?Rn:Rn[0];Qn(Ji,_i)}}),zt=Tt(ui,gi,Ct,$t,fi,mn,Hn,ai),pi=(0,An.zX)(function(Pi){zt(Pi)}),Fi=Be.useMemo(function(){return{options:Ni,fieldNames:_n,values:Ct,halfValues:$t,changeOnSelect:Vt,onSelect:pi,checkable:Ut,searchOptions:[],dropdownPrefixCls:void 0,loadData:Un,expandTrigger:si,expandIcon:Me,loadingIcon:ii,dropdownMenuColumnStyle:void 0}},[Ni,_n,Ct,$t,Vt,pi,Ut,Un,si,Me,ii]),Cn="".concat(bn,"-panel"),je=!Ni.length;return Be.createElement(Je.Provider,{value:Fi},Be.createElement("div",{className:Nn()(Cn,(Kt={},(0,Fe.Z)(Kt,"".concat(Cn,"-rtl"),ti==="rtl"),(0,Fe.Z)(Kt,"".concat(Cn,"-empty"),je),Kt),jn),style:mt},je?ni:Be.createElement(De,{prefixCls:bn,searchValue:"",multiple:ui,toggleOpen:Zn,open:!0,direction:ti,disabled:Ei})))}function It(Ht){var Kt=Ht.onPopupVisibleChange,un=Ht.popupVisible,Vn=Ht.popupClassName,bn=Ht.popupPlacement;warning(!Kt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(un===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Vn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(bn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Gt(Ht,Kt){if(Ht){var un=function Vn(bn){for(var mt=0;mt<bn.length;mt++){var jn=bn[mt];if(jn[Kt==null?void 0:Kt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(jn[Kt==null?void 0:Kt.children])&&Vn(jn[Kt==null?void 0:Kt.children]))return!0}};un(Ht)}}var fn=null,Pn=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],an=Be.forwardRef(function(Ht,Kt){var un=Ht.id,Vn=Ht.prefixCls,bn=Vn===void 0?"rc-cascader":Vn,mt=Ht.fieldNames,jn=Ht.defaultValue,Kn=Ht.value,Ut=Ht.changeOnSelect,yi=Ht.onChange,Vi=Ht.displayRender,kn=Ht.checkable,Vt=Ht.autoClearSearchValue,Qn=Vt===void 0?!0:Vt,ai=Ht.searchValue,Un=Ht.onSearch,si=Ht.showSearch,li=Ht.expandTrigger,Me=Ht.options,ii=Ht.dropdownPrefixCls,ti=Ht.loadData,On=Ht.popupVisible,ni=Ht.open,Ei=Ht.popupClassName,ui=Ht.dropdownClassName,tr=Ht.dropdownMenuColumnStyle,Sn=Ht.dropdownStyle,sn=Ht.popupPlacement,dn=Ht.placement,_n=Ht.onDropdownVisibleChange,Ri=Ht.onPopupVisibleChange,qn=Ht.expandIcon,Ni=qn===void 0?">":qn,mn=Ht.loadingIcon,Hn=Ht.children,Di=Ht.dropdownMatchSelectWidth,Yi=Di===void 0?!1:Di,mi=Ht.showCheckedStrategy,Ct=mi===void 0?Ee:mi,$t=Ht.optionRender,fi=(0,He.Z)(Ht,Pn),gi=(0,ze.ZP)(un),zt=!!kn,pi=(0,Ke.Z)(jn,{value:Kn,postState:vt}),Fi=(0,Ie.Z)(pi,2),Cn=Fi[0],je=Fi[1],Pi=Be.useMemo(function(){return Ye(mt)},[JSON.stringify(mt)]),Ai=ut(Pi,Me),Rn=(0,Ie.Z)(Ai,3),Ji=Rn[0],_i=Rn[1],Jn=Rn[2],ji=(0,Ke.Z)("",{value:ai,postState:function(nr){return nr||""}}),ln=(0,Ie.Z)(ji,2),vr=ln[0],Wr=ln[1],pn=function(nr,qi){Wr(nr),qi.source!=="blur"&&Un&&Un(nr)},ur=Wt(si),yr=(0,Ie.Z)(ur,2),ir=yr[0],pr=yr[1],Tr=fe(vr,Ji,Pi,ii||bn,pr,Ut||zt),Br=Bt(Ji,Pi),Ar=Xt(zt,Cn,_i,Jn,Br),br=(0,Ie.Z)(Ar,3),_r=br[0],Wn=br[1],xr=br[2],$n=Be.useMemo(function(){var Hi=We(_r),nr=St(Hi,_i,Ct);return[].concat((0,ke.Z)(xr),(0,ke.Z)(Jn(nr)))},[_r,_i,Jn,xr,Ct]),ar=jt($n,Ji,Pi,zt,Vi),Nr=(0,ot.Z)(function(Hi){if(je(Hi),yi){var nr=vt(Hi),qi=nr.map(function(dt){return Lt(dt,Ji,Pi).map(function(gn){return gn.option})}),Zi=zt?nr:nr[0],di=zt?qi:qi[0];yi(Zi,di)}}),Sr=Tt(zt,Nr,_r,Wn,xr,_i,Jn,Ct),Xr=(0,ot.Z)(function(Hi){(!zt||Qn)&&Wr(""),Sr(Hi)}),Zr=function(nr,qi){if(qi.type==="clear"){Nr([]);return}var Zi=qi.values[0],di=Zi.valueCells;Xr(di)},Rr=ni!==void 0?ni:On,So=ui||Ei,Ln=dn||sn,ci=function(nr){_n==null||_n(nr),Ri==null||Ri(nr)},yn=Be.useMemo(function(){return{options:Ji,fieldNames:Pi,values:_r,halfValues:Wn,changeOnSelect:Ut,onSelect:Xr,checkable:kn,searchOptions:Tr,dropdownPrefixCls:ii,loadData:ti,expandTrigger:li,expandIcon:Ni,loadingIcon:mn,dropdownMenuColumnStyle:tr,optionRender:$t}},[Ji,Pi,_r,Wn,Ut,Xr,kn,Tr,ii,ti,li,Ni,mn,tr,$t]),rt=!(vr?Tr:Ji).length,Ii=vr&&pr.matchInputWidth||rt?{}:{minWidth:"auto"};return Be.createElement(Je.Provider,{value:yn},Be.createElement(Te.Ac,(0,oe.Z)({},fi,{ref:Kt,id:gi,prefixCls:bn,autoClearSearchValue:Qn,dropdownMatchSelectWidth:Yi,dropdownStyle:(0,Ce.Z)((0,Ce.Z)({},Ii),Sn),displayValues:ar,onDisplayValuesChange:Zr,mode:zt?"multiple":void 0,searchValue:vr,onSearch:pn,showSearch:ir,OptionList:on,emptyOptions:rt,open:Rr,dropdownClassName:So,placement:Ln,onDropdownVisibleChange:ci,getRawInputElement:function(){return Hn}})))});an.SHOW_PARENT=Ee,an.SHOW_CHILD=Pe,an.Panel=Ft;var Ot=an,Mn=Ot},98535:function(_e,be,ae){"use strict";ae.r(be),ae.d(be,{Panel:function(){return vt},default:function(){return yt}});var oe=ae(67711),Ce=ae(15142),ke=ae(16886),Ie=ae(26420),He=ae(92310),Te=ae.n(He),ze=ae(18929),ot=ae(48736),Ke=ae(59301),Be=ae(33346),gt=ae(11592),Je=ae(98506),wt=ae(52873),Fe=ae(77900),te=ae(10228),ee=Ke.forwardRef(function(St,Lt){var jt=St.prefixCls,Bt=St.forceRender,cn=St.className,pt=St.style,ut=St.children,at=St.isActive,Wt=St.role,rn=St.classNames,Tt=St.styles,Xt=Ke.useState(at||Bt),nn=(0,ke.Z)(Xt,2),Nn=nn[0],Rt=nn[1];return Ke.useEffect(function(){(Bt||at)&&Rt(!0)},[Bt,at]),Nn?Ke.createElement("div",{ref:Lt,className:Te()("".concat(jt,"-content"),(0,wt.Z)((0,wt.Z)({},"".concat(jt,"-content-active"),at),"".concat(jt,"-content-inactive"),!at),cn),style:pt,role:Wt},Ke.createElement("div",{className:Te()("".concat(jt,"-content-box"),rn==null?void 0:rn.body),style:Tt==null?void 0:Tt.body},ut)):null});ee.displayName="PanelContent";var he=ee,ue=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fe=Ke.forwardRef(function(St,Lt){var jt=St.showArrow,Bt=jt===void 0?!0:jt,cn=St.headerClass,pt=St.isActive,ut=St.onItemClick,at=St.forceRender,Wt=St.className,rn=St.classNames,Tt=rn===void 0?{}:rn,Xt=St.styles,nn=Xt===void 0?{}:Xt,Nn=St.prefixCls,Rt=St.collapsible,At=St.accordion,Zt=St.panelKey,In=St.extra,Dn=St.header,qe=St.expandIcon,Oe=St.openMotion,Le=St.destroyInactivePanel,Ge=St.children,it=(0,Be.Z)(St,ue),De=Rt==="disabled",ht=In!=null&&typeof In!="boolean",on=(0,wt.Z)((0,wt.Z)((0,wt.Z)({onClick:function(){ut==null||ut(Zt)},onKeyDown:function(Pn){(Pn.key==="Enter"||Pn.keyCode===te.Z.ENTER||Pn.which===te.Z.ENTER)&&(ut==null||ut(Zt))},role:At?"tab":"button"},"aria-expanded",pt),"aria-disabled",De),"tabIndex",De?-1:0),An=typeof qe=="function"?qe(St):Ke.createElement("i",{className:"arrow"}),Zn=An&&Ke.createElement("div",(0,oe.Z)({className:"".concat(Nn,"-expand-icon")},["header","icon"].includes(Rt)?on:{}),An),Ft=Te()("".concat(Nn,"-item"),(0,wt.Z)((0,wt.Z)({},"".concat(Nn,"-item-active"),pt),"".concat(Nn,"-item-disabled"),De),Wt),It=Te()(cn,"".concat(Nn,"-header"),(0,wt.Z)({},"".concat(Nn,"-collapsible-").concat(Rt),!!Rt),Tt.header),Gt=(0,Je.Z)({className:It,style:nn.header},["header","icon"].includes(Rt)?{}:on);return Ke.createElement("div",(0,oe.Z)({},it,{ref:Lt,className:Ft}),Ke.createElement("div",Gt,Bt&&Zn,Ke.createElement("span",(0,oe.Z)({className:"".concat(Nn,"-header-text")},Rt==="header"?on:{}),Dn),ht&&Ke.createElement("div",{className:"".concat(Nn,"-extra")},In)),Ke.createElement(Fe.default,(0,oe.Z)({visible:pt,leavedClassName:"".concat(Nn,"-content-hidden")},Oe,{forceRender:at,removeOnLeave:Le}),function(fn,Pn){var an=fn.className,Ot=fn.style;return Ke.createElement(he,{ref:Pn,prefixCls:Nn,className:an,classNames:Tt,style:Ot,styles:nn,isActive:pt,forceRender:at,role:At?"tabpanel":void 0},Ge)}))}),me=fe,Ee=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Pe=function(Lt,jt){var Bt=jt.prefixCls,cn=jt.accordion,pt=jt.collapsible,ut=jt.destroyInactivePanel,at=jt.onItemClick,Wt=jt.activeKey,rn=jt.openMotion,Tt=jt.expandIcon;return Lt.map(function(Xt,nn){var Nn=Xt.children,Rt=Xt.label,At=Xt.key,Zt=Xt.collapsible,In=Xt.onItemClick,Dn=Xt.destroyInactivePanel,qe=(0,Be.Z)(Xt,Ee),Oe=String(At!=null?At:nn),Le=Zt!=null?Zt:pt,Ge=Dn!=null?Dn:ut,it=function(on){Le!=="disabled"&&(at(on),In==null||In(on))},De=!1;return cn?De=Wt[0]===Oe:De=Wt.indexOf(Oe)>-1,Ke.createElement(me,(0,oe.Z)({},qe,{prefixCls:Bt,key:Oe,panelKey:Oe,isActive:De,accordion:cn,openMotion:rn,expandIcon:Tt,header:Rt,collapsible:Le,onItemClick:it,destroyInactivePanel:Ge}),Nn)})},Ne=function(Lt,jt,Bt){if(!Lt)return null;var cn=Bt.prefixCls,pt=Bt.accordion,ut=Bt.collapsible,at=Bt.destroyInactivePanel,Wt=Bt.onItemClick,rn=Bt.activeKey,Tt=Bt.openMotion,Xt=Bt.expandIcon,nn=Lt.key||String(jt),Nn=Lt.props,Rt=Nn.header,At=Nn.headerClass,Zt=Nn.destroyInactivePanel,In=Nn.collapsible,Dn=Nn.onItemClick,qe=!1;pt?qe=rn[0]===nn:qe=rn.indexOf(nn)>-1;var Oe=In!=null?In:ut,Le=function(De){Oe!=="disabled"&&(Wt(De),Dn==null||Dn(De))},Ge={key:nn,panelKey:nn,header:Rt,headerClass:At,isActive:qe,prefixCls:cn,destroyInactivePanel:Zt!=null?Zt:at,openMotion:Tt,accordion:pt,children:Lt.props.children,onItemClick:Le,expandIcon:Xt,collapsible:Oe};return typeof Lt.type=="string"?Lt:(Object.keys(Ge).forEach(function(it){typeof Ge[it]=="undefined"&&delete Ge[it]}),Ke.cloneElement(Lt,Ge))};function We(St,Lt,jt){return Array.isArray(St)?Pe(St,jt):(0,gt.Z)(Lt).map(function(Bt,cn){return Ne(Bt,cn,jt)})}var tt=We,Ye=ae(26112);function Qe(St){var Lt=St;if(!Array.isArray(Lt)){var jt=(0,Ie.Z)(Lt);Lt=jt==="number"||jt==="string"?[Lt]:[]}return Lt.map(function(Bt){return String(Bt)})}var lt=Ke.forwardRef(function(St,Lt){var jt=St.prefixCls,Bt=jt===void 0?"rc-collapse":jt,cn=St.destroyInactivePanel,pt=cn===void 0?!1:cn,ut=St.style,at=St.accordion,Wt=St.className,rn=St.children,Tt=St.collapsible,Xt=St.openMotion,nn=St.expandIcon,Nn=St.activeKey,Rt=St.defaultActiveKey,At=St.onChange,Zt=St.items,In=Te()(Bt,Wt),Dn=(0,ze.Z)([],{value:Nn,onChange:function(ht){return At==null?void 0:At(ht)},defaultValue:Rt,postState:Qe}),qe=(0,ke.Z)(Dn,2),Oe=qe[0],Le=qe[1],Ge=function(ht){return Le(function(){if(at)return Oe[0]===ht?[]:[ht];var on=Oe.indexOf(ht),An=on>-1;return An?Oe.filter(function(Zn){return Zn!==ht}):[].concat((0,Ce.Z)(Oe),[ht])})};(0,ot.ZP)(!rn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var it=tt(Zt,rn,{prefixCls:Bt,accordion:at,openMotion:Xt,expandIcon:nn,collapsible:Tt,destroyInactivePanel:pt,onItemClick:Ge,activeKey:Oe});return Ke.createElement("div",(0,oe.Z)({ref:Lt,className:In,style:ut,role:at?"tablist":void 0},(0,Ye.Z)(St,{aria:!0,data:!0})),it)}),nt=Object.assign(lt,{Panel:me}),yt=nt,vt=nt.Panel},66042:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return yt}});var oe=ae(98506),Ce=ae(16886),ke=ae(43403),Ie=ae(34280),He=ae(59301),Te=He.createContext(null),ze=He.createContext({}),ot=Te,Ke=ae(52873),Be=ae(67711),gt=ae(92310),Je=ae.n(gt),wt=ae(77900),Fe=ae(10228),te=ae(26112),ee=ae(33346),he=ae(8654),ue=["prefixCls","className","containerRef"],fe=function(St){var Lt=St.prefixCls,jt=St.className,Bt=St.containerRef,cn=(0,ee.Z)(St,ue),pt=He.useContext(ze),ut=pt.panel,at=(0,he.x1)(ut,Bt);return He.createElement("div",(0,Be.Z)({className:Je()("".concat(Lt,"-content"),jt),role:"dialog",ref:at},(0,te.Z)(St,{aria:!0}),{"aria-modal":"true"},cn))},me=fe,Ee=ae(48736);function Pe(vt){return typeof vt=="string"&&String(Number(vt))===vt?((0,Ee.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(vt)):vt}function Ne(vt){warning(!("wrapperClassName"in vt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!vt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var We={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function tt(vt,St){var Lt,jt,Bt,cn=vt.prefixCls,pt=vt.open,ut=vt.placement,at=vt.inline,Wt=vt.push,rn=vt.forceRender,Tt=vt.autoFocus,Xt=vt.keyboard,nn=vt.classNames,Nn=vt.rootClassName,Rt=vt.rootStyle,At=vt.zIndex,Zt=vt.className,In=vt.id,Dn=vt.style,qe=vt.motion,Oe=vt.width,Le=vt.height,Ge=vt.children,it=vt.mask,De=vt.maskClosable,ht=vt.maskMotion,on=vt.maskClassName,An=vt.maskStyle,Zn=vt.afterOpenChange,Ft=vt.onClose,It=vt.onMouseEnter,Gt=vt.onMouseOver,fn=vt.onMouseLeave,Pn=vt.onClick,an=vt.onKeyDown,Ot=vt.onKeyUp,Mn=vt.styles,Ht=vt.drawerRender,Kt=He.useRef(),un=He.useRef(),Vn=He.useRef();He.useImperativeHandle(St,function(){return Kt.current});var bn=function(ti){var On=ti.keyCode,ni=ti.shiftKey;switch(On){case Fe.Z.TAB:{if(On===Fe.Z.TAB){if(!ni&&document.activeElement===Vn.current){var Ei;(Ei=un.current)===null||Ei===void 0||Ei.focus({preventScroll:!0})}else if(ni&&document.activeElement===un.current){var ui;(ui=Vn.current)===null||ui===void 0||ui.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{Ft&&Xt&&(ti.stopPropagation(),Ft(ti));break}}};He.useEffect(function(){if(pt&&Tt){var ii;(ii=Kt.current)===null||ii===void 0||ii.focus({preventScroll:!0})}},[pt]);var mt=He.useState(!1),jn=(0,Ce.Z)(mt,2),Kn=jn[0],Ut=jn[1],yi=He.useContext(ot),Vi;typeof Wt=="boolean"?Vi=Wt?{}:{distance:0}:Vi=Wt||{};var kn=(Lt=(jt=(Bt=Vi)===null||Bt===void 0?void 0:Bt.distance)!==null&&jt!==void 0?jt:yi==null?void 0:yi.pushDistance)!==null&&Lt!==void 0?Lt:180,Vt=He.useMemo(function(){return{pushDistance:kn,push:function(){Ut(!0)},pull:function(){Ut(!1)}}},[kn]);He.useEffect(function(){if(pt){var ii;yi==null||(ii=yi.push)===null||ii===void 0||ii.call(yi)}else{var ti;yi==null||(ti=yi.pull)===null||ti===void 0||ti.call(yi)}},[pt]),He.useEffect(function(){return function(){var ii;yi==null||(ii=yi.pull)===null||ii===void 0||ii.call(yi)}},[]);var Qn=it&&He.createElement(wt.default,(0,Be.Z)({key:"mask"},ht,{visible:pt}),function(ii,ti){var On=ii.className,ni=ii.style;return He.createElement("div",{className:Je()("".concat(cn,"-mask"),On,nn==null?void 0:nn.mask,on),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},ni),An),Mn==null?void 0:Mn.mask),onClick:De&&pt?Ft:void 0,ref:ti})}),ai=typeof qe=="function"?qe(ut):qe,Un={};if(Kn&&kn)switch(ut){case"top":Un.transform="translateY(".concat(kn,"px)");break;case"bottom":Un.transform="translateY(".concat(-kn,"px)");break;case"left":Un.transform="translateX(".concat(kn,"px)");break;default:Un.transform="translateX(".concat(-kn,"px)");break}ut==="left"||ut==="right"?Un.width=Pe(Oe):Un.height=Pe(Le);var si={onMouseEnter:It,onMouseOver:Gt,onMouseLeave:fn,onClick:Pn,onKeyDown:an,onKeyUp:Ot},li=He.createElement(wt.default,(0,Be.Z)({key:"panel"},ai,{visible:pt,forceRender:rn,onVisibleChanged:function(ti){Zn==null||Zn(ti)},removeOnLeave:!1,leavedClassName:"".concat(cn,"-content-wrapper-hidden")}),function(ii,ti){var On=ii.className,ni=ii.style,Ei=He.createElement(me,(0,Be.Z)({id:In,containerRef:ti,prefixCls:cn,className:Je()(Zt,nn==null?void 0:nn.content),style:(0,oe.Z)((0,oe.Z)({},Dn),Mn==null?void 0:Mn.content)},(0,te.Z)(vt,{aria:!0}),si),Ge);return He.createElement("div",(0,Be.Z)({className:Je()("".concat(cn,"-content-wrapper"),nn==null?void 0:nn.wrapper,On),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Un),ni),Mn==null?void 0:Mn.wrapper)},(0,te.Z)(vt,{data:!0})),Ht?Ht(Ei):Ei)}),Me=(0,oe.Z)({},Rt);return At&&(Me.zIndex=At),He.createElement(ot.Provider,{value:Vt},He.createElement("div",{className:Je()(cn,"".concat(cn,"-").concat(ut),Nn,(0,Ke.Z)((0,Ke.Z)({},"".concat(cn,"-open"),pt),"".concat(cn,"-inline"),at)),style:Me,tabIndex:-1,ref:Kt,onKeyDown:bn},Qn,He.createElement("div",{tabIndex:0,ref:un,style:We,"aria-hidden":"true","data-sentinel":"start"}),li,He.createElement("div",{tabIndex:0,ref:Vn,style:We,"aria-hidden":"true","data-sentinel":"end"})))}var Ye=He.forwardRef(tt),Qe=Ye,lt=function(St){var Lt=St.open,jt=Lt===void 0?!1:Lt,Bt=St.prefixCls,cn=Bt===void 0?"rc-drawer":Bt,pt=St.placement,ut=pt===void 0?"right":pt,at=St.autoFocus,Wt=at===void 0?!0:at,rn=St.keyboard,Tt=rn===void 0?!0:rn,Xt=St.width,nn=Xt===void 0?378:Xt,Nn=St.mask,Rt=Nn===void 0?!0:Nn,At=St.maskClosable,Zt=At===void 0?!0:At,In=St.getContainer,Dn=St.forceRender,qe=St.afterOpenChange,Oe=St.destroyOnClose,Le=St.onMouseEnter,Ge=St.onMouseOver,it=St.onMouseLeave,De=St.onClick,ht=St.onKeyDown,on=St.onKeyUp,An=St.panelRef,Zn=He.useState(!1),Ft=(0,Ce.Z)(Zn,2),It=Ft[0],Gt=Ft[1],fn=He.useState(!1),Pn=(0,Ce.Z)(fn,2),an=Pn[0],Ot=Pn[1];(0,Ie.Z)(function(){Ot(!0)},[]);var Mn=an?jt:!1,Ht=He.useRef(),Kt=He.useRef();(0,Ie.Z)(function(){Mn&&(Kt.current=document.activeElement)},[Mn]);var un=function(Kn){var Ut;if(Gt(Kn),qe==null||qe(Kn),!Kn&&Kt.current&&!((Ut=Ht.current)!==null&&Ut!==void 0&&Ut.contains(Kt.current))){var yi;(yi=Kt.current)===null||yi===void 0||yi.focus({preventScroll:!0})}},Vn=He.useMemo(function(){return{panel:An}},[An]);if(!Dn&&!It&&!Mn&&Oe)return null;var bn={onMouseEnter:Le,onMouseOver:Ge,onMouseLeave:it,onClick:De,onKeyDown:ht,onKeyUp:on},mt=(0,oe.Z)((0,oe.Z)({},St),{},{open:Mn,prefixCls:cn,placement:ut,autoFocus:Wt,keyboard:Tt,width:nn,mask:Rt,maskClosable:Zt,inline:In===!1,afterOpenChange:un,ref:Ht},bn);return He.createElement(ze.Provider,{value:Vn},He.createElement(ke.Z,{open:Mn||Dn||It,autoDestroy:!1,getContainer:In,autoLock:Rt&&(Mn||It)},He.createElement(Qe,mt)))},nt=lt,yt=nt},91574:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Pn}});var oe=ae(67711),Ce=ae(98506),ke=ae(52873),Ie=ae(16886),He=ae(26420),Te=ae(33346),ze=ae(92310),ot=ae.n(ze),Ke=/margin|padding|width|height|max|min|offset/,Be={left:!0,top:!0},gt={cssFloat:1,styleFloat:1,float:1};function Je(an){return an.nodeType===1?an.ownerDocument.defaultView.getComputedStyle(an,null):{}}function wt(an,Ot,Mn){if(Ot=Ot.toLowerCase(),Mn==="auto"){if(Ot==="height")return an.offsetHeight;if(Ot==="width")return an.offsetWidth}return Ot in Be||(Be[Ot]=Ke.test(Ot)),Be[Ot]?parseFloat(Mn)||0:Mn}function Fe(an,Ot){var Mn=arguments.length,Ht=Je(an);return Ot=gt[Ot]?"cssFloat"in an.style?"cssFloat":"styleFloat":Ot,Mn===1?Ht:wt(an,Ot,Ht[Ot]||an.style[Ot])}function te(an,Ot,Mn){var Ht=arguments.length;if(Ot=gt[Ot]?"cssFloat"in an.style?"cssFloat":"styleFloat":Ot,Ht===3)return typeof Mn=="number"&&Ke.test(Ot)&&(Mn="".concat(Mn,"px")),an.style[Ot]=Mn,Mn;for(var Kt in Ot)Ot.hasOwnProperty(Kt)&&te(an,Kt,Ot[Kt]);return Je(an)}function ee(an){return an===document.body?document.documentElement.clientWidth:an.offsetWidth}function he(an){return an===document.body?window.innerHeight||document.documentElement.clientHeight:an.offsetHeight}function ue(){var an=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ot=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:an,height:Ot}}function fe(){var an=document.documentElement.clientWidth,Ot=window.innerHeight||document.documentElement.clientHeight;return{width:an,height:Ot}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ee(an){var Ot=an.getBoundingClientRect(),Mn=document.documentElement;return{left:Ot.left+(window.pageXOffset||Mn.scrollLeft)-(Mn.clientLeft||document.body.clientLeft||0),top:Ot.top+(window.pageYOffset||Mn.scrollTop)-(Mn.clientTop||document.body.clientTop||0)}}var Pe=ae(18929),Ne=ae(59301),We=ae(55311),tt=ae(8224),Ye=ae(10228),Qe=ae(43403),lt=ae(77900),nt=Ne.createContext(null),yt=function(Ot){var Mn=Ot.visible,Ht=Ot.maskTransitionName,Kt=Ot.getContainer,un=Ot.prefixCls,Vn=Ot.rootClassName,bn=Ot.icons,mt=Ot.countRender,jn=Ot.showSwitch,Kn=Ot.showProgress,Ut=Ot.current,yi=Ot.transform,Vi=Ot.count,kn=Ot.scale,Vt=Ot.minScale,Qn=Ot.maxScale,ai=Ot.closeIcon,Un=Ot.onActive,si=Ot.onClose,li=Ot.onZoomIn,Me=Ot.onZoomOut,ii=Ot.onRotateRight,ti=Ot.onRotateLeft,On=Ot.onFlipX,ni=Ot.onFlipY,Ei=Ot.onReset,ui=Ot.toolbarRender,tr=Ot.zIndex,Sn=Ot.image,sn=(0,Ne.useContext)(nt),dn=bn.rotateLeft,_n=bn.rotateRight,Ri=bn.zoomIn,qn=bn.zoomOut,Ni=bn.close,mn=bn.left,Hn=bn.right,Di=bn.flipX,Yi=bn.flipY,mi="".concat(un,"-operations-operation");Ne.useEffect(function(){var Rn=function(_i){_i.keyCode===Ye.Z.ESC&&si()};return Mn&&window.addEventListener("keydown",Rn),function(){window.removeEventListener("keydown",Rn)}},[Mn]);var Ct=function(Ji,_i){Ji.preventDefault(),Ji.stopPropagation(),Un(_i)},$t=Ne.useCallback(function(Rn){var Ji=Rn.type,_i=Rn.disabled,Jn=Rn.onClick,ji=Rn.icon;return Ne.createElement("div",{key:Ji,className:ot()(mi,"".concat(un,"-operations-operation-").concat(Ji),(0,ke.Z)({},"".concat(un,"-operations-operation-disabled"),!!_i)),onClick:Jn},ji)},[mi,un]),fi=jn?$t({icon:mn,onClick:function(Ji){return Ct(Ji,-1)},type:"prev",disabled:Ut===0}):void 0,gi=jn?$t({icon:Hn,onClick:function(Ji){return Ct(Ji,1)},type:"next",disabled:Ut===Vi-1}):void 0,zt=$t({icon:Yi,onClick:ni,type:"flipY"}),pi=$t({icon:Di,onClick:On,type:"flipX"}),Fi=$t({icon:dn,onClick:ti,type:"rotateLeft"}),Cn=$t({icon:_n,onClick:ii,type:"rotateRight"}),je=$t({icon:qn,onClick:Me,type:"zoomOut",disabled:kn<=Vt}),Pi=$t({icon:Ri,onClick:li,type:"zoomIn",disabled:kn===Qn}),Ai=Ne.createElement("div",{className:"".concat(un,"-operations")},zt,pi,Fi,Cn,je,Pi);return Ne.createElement(lt.default,{visible:Mn,motionName:Ht},function(Rn){var Ji=Rn.className,_i=Rn.style;return Ne.createElement(Qe.Z,{open:!0,getContainer:Kt!=null?Kt:document.body},Ne.createElement("div",{className:ot()("".concat(un,"-operations-wrapper"),Ji,Vn),style:(0,Ce.Z)((0,Ce.Z)({},_i),{},{zIndex:tr})},ai===null?null:Ne.createElement("button",{className:"".concat(un,"-close"),onClick:si},ai||Ni),jn&&Ne.createElement(Ne.Fragment,null,Ne.createElement("div",{className:ot()("".concat(un,"-switch-left"),(0,ke.Z)({},"".concat(un,"-switch-left-disabled"),Ut===0)),onClick:function(ji){return Ct(ji,-1)}},mn),Ne.createElement("div",{className:ot()("".concat(un,"-switch-right"),(0,ke.Z)({},"".concat(un,"-switch-right-disabled"),Ut===Vi-1)),onClick:function(ji){return Ct(ji,1)}},Hn)),Ne.createElement("div",{className:"".concat(un,"-footer")},Kn&&Ne.createElement("div",{className:"".concat(un,"-progress")},mt?mt(Ut+1,Vi):"".concat(Ut+1," / ").concat(Vi)),ui?ui(Ai,(0,Ce.Z)((0,Ce.Z)({icons:{prevIcon:fi,nextIcon:gi,flipYIcon:zt,flipXIcon:pi,rotateLeftIcon:Fi,rotateRightIcon:Cn,zoomOutIcon:je,zoomInIcon:Pi},actions:{onActive:Un,onFlipY:ni,onFlipX:On,onRotateLeft:ti,onRotateRight:ii,onZoomOut:Me,onZoomIn:li,onReset:Ei,onClose:si},transform:yi},sn?{current:Ut,total:Vi}:{}),{},{image:Sn})):Ai)))})},vt=yt,St=ae(13697),Lt=ae(16089),jt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Bt(an,Ot,Mn,Ht){var Kt=(0,Ne.useRef)(null),un=(0,Ne.useRef)([]),Vn=(0,Ne.useState)(jt),bn=(0,Ie.Z)(Vn,2),mt=bn[0],jn=bn[1],Kn=function(kn){jn(jt),(0,St.Z)(jt,mt)||Ht==null||Ht({transform:jt,action:kn})},Ut=function(kn,Vt){Kt.current===null&&(un.current=[],Kt.current=(0,Lt.Z)(function(){jn(function(Qn){var ai=Qn;return un.current.forEach(function(Un){ai=(0,Ce.Z)((0,Ce.Z)({},ai),Un)}),Kt.current=null,Ht==null||Ht({transform:ai,action:Vt}),ai})})),un.current.push((0,Ce.Z)((0,Ce.Z)({},mt),kn))},yi=function(kn,Vt,Qn,ai,Un){var si=an.current,li=si.width,Me=si.height,ii=si.offsetWidth,ti=si.offsetHeight,On=si.offsetLeft,ni=si.offsetTop,Ei=kn,ui=mt.scale*kn;ui>Mn?(ui=Mn,Ei=Mn/mt.scale):ui<Ot&&(ui=Un?ui:Ot,Ei=ui/mt.scale);var tr=Qn!=null?Qn:innerWidth/2,Sn=ai!=null?ai:innerHeight/2,sn=Ei-1,dn=sn*li*.5,_n=sn*Me*.5,Ri=sn*(tr-mt.x-On),qn=sn*(Sn-mt.y-ni),Ni=mt.x-(Ri-dn),mn=mt.y-(qn-_n);if(kn<1&&ui===1){var Hn=ii*ui,Di=ti*ui,Yi=fe(),mi=Yi.width,Ct=Yi.height;Hn<=mi&&Di<=Ct&&(Ni=0,mn=0)}Ut({x:Ni,y:mn,scale:ui},Vt)};return{transform:mt,resetTransform:Kn,updateTransform:Ut,dispatchZoomChange:yi}}var cn=ae(48736);function pt(an,Ot,Mn,Ht){var Kt=Ot+Mn,un=(Mn-Ht)/2;if(Mn>Ht){if(Ot>0)return(0,ke.Z)({},an,un);if(Ot<0&&Kt<Ht)return(0,ke.Z)({},an,-un)}else if(Ot<0||Kt>Ht)return(0,ke.Z)({},an,Ot<0?un:-un);return{}}function ut(an,Ot,Mn,Ht){var Kt=fe(),un=Kt.width,Vn=Kt.height,bn=null;return an<=un&&Ot<=Vn?bn={x:0,y:0}:(an>un||Ot>Vn)&&(bn=(0,Ce.Z)((0,Ce.Z)({},pt("x",Mn,an,un)),pt("y",Ht,Ot,Vn))),bn}var at=1,Wt=1;function rn(an,Ot,Mn,Ht,Kt,un,Vn){var bn=Kt.rotate,mt=Kt.scale,jn=Kt.x,Kn=Kt.y,Ut=(0,Ne.useState)(!1),yi=(0,Ie.Z)(Ut,2),Vi=yi[0],kn=yi[1],Vt=(0,Ne.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Qn=function(Me){!Ot||Me.button!==0||(Me.preventDefault(),Me.stopPropagation(),Vt.current={diffX:Me.pageX-jn,diffY:Me.pageY-Kn,transformX:jn,transformY:Kn},kn(!0))},ai=function(Me){Mn&&Vi&&un({x:Me.pageX-Vt.current.diffX,y:Me.pageY-Vt.current.diffY},"move")},Un=function(){if(Mn&&Vi){kn(!1);var Me=Vt.current,ii=Me.transformX,ti=Me.transformY,On=jn!==ii&&Kn!==ti;if(!On)return;var ni=an.current.offsetWidth*mt,Ei=an.current.offsetHeight*mt,ui=an.current.getBoundingClientRect(),tr=ui.left,Sn=ui.top,sn=bn%180!==0,dn=ut(sn?Ei:ni,sn?ni:Ei,tr,Sn);dn&&un((0,Ce.Z)({},dn),"dragRebound")}},si=function(Me){if(!(!Mn||Me.deltaY==0)){var ii=Math.abs(Me.deltaY/100),ti=Math.min(ii,Wt),On=at+ti*Ht;Me.deltaY>0&&(On=at/On),Vn(On,"wheel",Me.clientX,Me.clientY)}};return(0,Ne.useEffect)(function(){var li,Me,ii,ti;if(Ot){ii=(0,tt.Z)(window,"mouseup",Un,!1),ti=(0,tt.Z)(window,"mousemove",ai,!1);try{window.top!==window.self&&(li=(0,tt.Z)(window.top,"mouseup",Un,!1),Me=(0,tt.Z)(window.top,"mousemove",ai,!1))}catch(On){(0,cn.Kp)(!1,"[rc-image] ".concat(On))}}return function(){var On,ni,Ei,ui;(On=ii)===null||On===void 0||On.remove(),(ni=ti)===null||ni===void 0||ni.remove(),(Ei=li)===null||Ei===void 0||Ei.remove(),(ui=Me)===null||ui===void 0||ui.remove()}},[Mn,Vi,jn,Kn,bn,Ot]),{isMoving:Vi,onMouseDown:Qn,onMouseMove:ai,onMouseUp:Un,onWheel:si}}function Tt(an){return new Promise(function(Ot){if(!an){Ot(!1);return}var Mn=document.createElement("img");Mn.onerror=function(){return Ot(!1)},Mn.onload=function(){return Ot(!0)},Mn.src=an})}function Xt(an){var Ot=an.src,Mn=an.isCustomPlaceholder,Ht=an.fallback,Kt=(0,Ne.useState)(Mn?"loading":"normal"),un=(0,Ie.Z)(Kt,2),Vn=un[0],bn=un[1],mt=(0,Ne.useRef)(!1),jn=Vn==="error";(0,Ne.useEffect)(function(){var Vi=!0;return Tt(Ot).then(function(kn){!kn&&Vi&&bn("error")}),function(){Vi=!1}},[Ot]),(0,Ne.useEffect)(function(){Mn&&!mt.current?bn("loading"):jn&&bn("normal")},[Ot]);var Kn=function(){bn("normal")},Ut=function(kn){mt.current=!1,Vn==="loading"&&kn!==null&&kn!==void 0&&kn.complete&&(kn.naturalWidth||kn.naturalHeight)&&(mt.current=!0,Kn())},yi=jn&&Ht?{src:Ht}:{onLoad:Kn,src:Ot};return[Ut,yi,Vn]}function nn(an,Ot){var Mn=an.x-Ot.x,Ht=an.y-Ot.y;return Math.hypot(Mn,Ht)}function Nn(an,Ot,Mn,Ht){var Kt=nn(an,Mn),un=nn(Ot,Ht);if(Kt===0&&un===0)return[an.x,an.y];var Vn=Kt/(Kt+un),bn=an.x+Vn*(Ot.x-an.x),mt=an.y+Vn*(Ot.y-an.y);return[bn,mt]}function Rt(an,Ot,Mn,Ht,Kt,un,Vn){var bn=Kt.rotate,mt=Kt.scale,jn=Kt.x,Kn=Kt.y,Ut=(0,Ne.useState)(!1),yi=(0,Ie.Z)(Ut,2),Vi=yi[0],kn=yi[1],Vt=(0,Ne.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Qn=function(Me){Vt.current=(0,Ce.Z)((0,Ce.Z)({},Vt.current),Me)},ai=function(Me){if(Ot){Me.stopPropagation(),kn(!0);var ii=Me.touches,ti=ii===void 0?[]:ii;ti.length>1?Qn({point1:{x:ti[0].clientX,y:ti[0].clientY},point2:{x:ti[1].clientX,y:ti[1].clientY},eventType:"touchZoom"}):Qn({point1:{x:ti[0].clientX-jn,y:ti[0].clientY-Kn},eventType:"move"})}},Un=function(Me){var ii=Me.touches,ti=ii===void 0?[]:ii,On=Vt.current,ni=On.point1,Ei=On.point2,ui=On.eventType;if(ti.length>1&&ui==="touchZoom"){var tr={x:ti[0].clientX,y:ti[0].clientY},Sn={x:ti[1].clientX,y:ti[1].clientY},sn=Nn(ni,Ei,tr,Sn),dn=(0,Ie.Z)(sn,2),_n=dn[0],Ri=dn[1],qn=nn(tr,Sn)/nn(ni,Ei);Vn(qn,"touchZoom",_n,Ri,!0),Qn({point1:tr,point2:Sn,eventType:"touchZoom"})}else ui==="move"&&(un({x:ti[0].clientX-ni.x,y:ti[0].clientY-ni.y},"move"),Qn({eventType:"move"}))},si=function(){if(Mn){if(Vi&&kn(!1),Qn({eventType:"none"}),Ht>mt)return un({x:0,y:0,scale:Ht},"touchZoom");var Me=an.current.offsetWidth*mt,ii=an.current.offsetHeight*mt,ti=an.current.getBoundingClientRect(),On=ti.left,ni=ti.top,Ei=bn%180!==0,ui=ut(Ei?ii:Me,Ei?Me:ii,On,ni);ui&&un((0,Ce.Z)({},ui),"dragRebound")}};return(0,Ne.useEffect)(function(){var li;return Mn&&Ot&&(li=(0,tt.Z)(window,"touchmove",function(Me){return Me.preventDefault()},{passive:!1})),function(){var Me;(Me=li)===null||Me===void 0||Me.remove()}},[Mn,Ot]),{isTouching:Vi,onTouchStart:ai,onTouchMove:Un,onTouchEnd:si}}var At=["fallback","src","imgRef"],Zt=["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"],In=function(Ot){var Mn=Ot.fallback,Ht=Ot.src,Kt=Ot.imgRef,un=(0,Te.Z)(Ot,At),Vn=Xt({src:Ht,fallback:Mn}),bn=(0,Ie.Z)(Vn,2),mt=bn[0],jn=bn[1];return Ne.createElement("img",(0,oe.Z)({ref:function(Ut){Kt.current=Ut,mt(Ut)}},un,jn))},Dn=function(Ot){var Mn=Ot.prefixCls,Ht=Ot.src,Kt=Ot.alt,un=Ot.imageInfo,Vn=Ot.fallback,bn=Ot.movable,mt=bn===void 0?!0:bn,jn=Ot.onClose,Kn=Ot.visible,Ut=Ot.icons,yi=Ut===void 0?{}:Ut,Vi=Ot.rootClassName,kn=Ot.closeIcon,Vt=Ot.getContainer,Qn=Ot.current,ai=Qn===void 0?0:Qn,Un=Ot.count,si=Un===void 0?1:Un,li=Ot.countRender,Me=Ot.scaleStep,ii=Me===void 0?.5:Me,ti=Ot.minScale,On=ti===void 0?1:ti,ni=Ot.maxScale,Ei=ni===void 0?50:ni,ui=Ot.transitionName,tr=ui===void 0?"zoom":ui,Sn=Ot.maskTransitionName,sn=Sn===void 0?"fade":Sn,dn=Ot.imageRender,_n=Ot.imgCommonProps,Ri=Ot.toolbarRender,qn=Ot.onTransform,Ni=Ot.onChange,mn=(0,Te.Z)(Ot,Zt),Hn=(0,Ne.useRef)(),Di=(0,Ne.useContext)(nt),Yi=Di&&si>1,mi=Di&&si>=1,Ct=(0,Ne.useState)(!0),$t=(0,Ie.Z)(Ct,2),fi=$t[0],gi=$t[1],zt=Bt(Hn,On,Ei,qn),pi=zt.transform,Fi=zt.resetTransform,Cn=zt.updateTransform,je=zt.dispatchZoomChange,Pi=rn(Hn,mt,Kn,ii,pi,Cn,je),Ai=Pi.isMoving,Rn=Pi.onMouseDown,Ji=Pi.onWheel,_i=Rt(Hn,mt,Kn,On,pi,Cn,je),Jn=_i.isTouching,ji=_i.onTouchStart,ln=_i.onTouchMove,vr=_i.onTouchEnd,Wr=pi.rotate,pn=pi.scale,ur=ot()((0,ke.Z)({},"".concat(Mn,"-moving"),Ai));(0,Ne.useEffect)(function(){fi||gi(!0)},[fi]);var yr=function(){Fi("close")},ir=function(){je(at+ii,"zoomIn")},pr=function(){je(at/(at+ii),"zoomOut")},Tr=function(){Cn({rotate:Wr+90},"rotateRight")},Br=function(){Cn({rotate:Wr-90},"rotateLeft")},Ar=function(){Cn({flipX:!pi.flipX},"flipX")},br=function(){Cn({flipY:!pi.flipY},"flipY")},_r=function(){Fi("reset")},Wn=function(Xr){var Zr=ai+Xr;!Number.isInteger(Zr)||Zr<0||Zr>si-1||(gi(!1),Fi(Xr<0?"prev":"next"),Ni==null||Ni(Zr,ai))},xr=function(Xr){!Kn||!Yi||(Xr.keyCode===Ye.Z.LEFT?Wn(-1):Xr.keyCode===Ye.Z.RIGHT&&Wn(1))},$n=function(Xr){Kn&&(pn!==1?Cn({x:0,y:0,scale:1},"doubleClick"):je(at+ii,"doubleClick",Xr.clientX,Xr.clientY))};(0,Ne.useEffect)(function(){var Sr=(0,tt.Z)(window,"keydown",xr,!1);return function(){Sr.remove()}},[Kn,Yi,ai]);var ar=Ne.createElement(In,(0,oe.Z)({},_n,{width:Ot.width,height:Ot.height,imgRef:Hn,className:"".concat(Mn,"-img"),alt:Kt,style:{transform:"translate3d(".concat(pi.x,"px, ").concat(pi.y,"px, 0) scale3d(").concat(pi.flipX?"-":"").concat(pn,", ").concat(pi.flipY?"-":"").concat(pn,", 1) rotate(").concat(Wr,"deg)"),transitionDuration:(!fi||Jn)&&"0s"},fallback:Vn,src:Ht,onWheel:Ji,onMouseDown:Rn,onDoubleClick:$n,onTouchStart:ji,onTouchMove:ln,onTouchEnd:vr,onTouchCancel:vr})),Nr=(0,Ce.Z)({url:Ht,alt:Kt},un);return Ne.createElement(Ne.Fragment,null,Ne.createElement(We.Z,(0,oe.Z)({transitionName:tr,maskTransitionName:sn,closable:!1,keyboard:!0,prefixCls:Mn,onClose:jn,visible:Kn,classNames:{wrapper:ur},rootClassName:Vi,getContainer:Vt},mn,{afterClose:yr}),Ne.createElement("div",{className:"".concat(Mn,"-img-wrapper")},dn?dn(ar,(0,Ce.Z)({transform:pi,image:Nr},Di?{current:ai}:{})):ar)),Ne.createElement(vt,{visible:Kn,transform:pi,maskTransitionName:sn,closeIcon:kn,getContainer:Vt,prefixCls:Mn,rootClassName:Vi,icons:yi,countRender:li,showSwitch:Yi,showProgress:mi,current:ai,count:si,scale:pn,minScale:On,maxScale:Ei,toolbarRender:Ri,onActive:Wn,onZoomIn:ir,onZoomOut:pr,onRotateRight:Tr,onRotateLeft:Br,onFlipX:Ar,onFlipY:br,onClose:jn,onReset:_r,zIndex:mn.zIndex!==void 0?mn.zIndex+1:void 0,image:Nr}))},qe=Dn,Oe=ae(15142),Le=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Ge(an){var Ot=Ne.useState({}),Mn=(0,Ie.Z)(Ot,2),Ht=Mn[0],Kt=Mn[1],un=Ne.useCallback(function(bn,mt){return Kt(function(jn){return(0,Ce.Z)((0,Ce.Z)({},jn),{},(0,ke.Z)({},bn,mt))}),function(){Kt(function(jn){var Kn=(0,Ce.Z)({},jn);return delete Kn[bn],Kn})}},[]),Vn=Ne.useMemo(function(){return an?an.map(function(bn){if(typeof bn=="string")return{data:{src:bn}};var mt={};return Object.keys(bn).forEach(function(jn){["src"].concat((0,Oe.Z)(Le)).includes(jn)&&(mt[jn]=bn[jn])}),{data:mt}}):Object.keys(Ht).reduce(function(bn,mt){var jn=Ht[mt],Kn=jn.canPreview,Ut=jn.data;return Kn&&bn.push({data:Ut,id:mt}),bn},[])},[an,Ht]);return[Vn,un,!!an]}var it=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],De=["src"],ht=function(Ot){var Mn,Ht=Ot.previewPrefixCls,Kt=Ht===void 0?"rc-image-preview":Ht,un=Ot.children,Vn=Ot.icons,bn=Vn===void 0?{}:Vn,mt=Ot.items,jn=Ot.preview,Kn=Ot.fallback,Ut=(0,He.Z)(jn)==="object"?jn:{},yi=Ut.visible,Vi=Ut.onVisibleChange,kn=Ut.getContainer,Vt=Ut.current,Qn=Ut.movable,ai=Ut.minScale,Un=Ut.maxScale,si=Ut.countRender,li=Ut.closeIcon,Me=Ut.onChange,ii=Ut.onTransform,ti=Ut.toolbarRender,On=Ut.imageRender,ni=(0,Te.Z)(Ut,it),Ei=Ge(mt),ui=(0,Ie.Z)(Ei,3),tr=ui[0],Sn=ui[1],sn=ui[2],dn=(0,Pe.Z)(0,{value:Vt}),_n=(0,Ie.Z)(dn,2),Ri=_n[0],qn=_n[1],Ni=(0,Ne.useState)(!1),mn=(0,Ie.Z)(Ni,2),Hn=mn[0],Di=mn[1],Yi=((Mn=tr[Ri])===null||Mn===void 0?void 0:Mn.data)||{},mi=Yi.src,Ct=(0,Te.Z)(Yi,De),$t=(0,Pe.Z)(!!yi,{value:yi,onChange:function(Jn,ji){Vi==null||Vi(Jn,ji,Ri)}}),fi=(0,Ie.Z)($t,2),gi=fi[0],zt=fi[1],pi=(0,Ne.useState)(null),Fi=(0,Ie.Z)(pi,2),Cn=Fi[0],je=Fi[1],Pi=Ne.useCallback(function(_i,Jn,ji,ln){var vr=sn?tr.findIndex(function(Wr){return Wr.data.src===Jn}):tr.findIndex(function(Wr){return Wr.id===_i});qn(vr<0?0:vr),zt(!0),je({x:ji,y:ln}),Di(!0)},[tr,sn]);Ne.useEffect(function(){gi?Hn||qn(0):Di(!1)},[gi]);var Ai=function(Jn,ji){qn(Jn),Me==null||Me(Jn,ji)},Rn=function(){zt(!1),je(null)},Ji=Ne.useMemo(function(){return{register:Sn,onPreview:Pi}},[Sn,Pi]);return Ne.createElement(nt.Provider,{value:Ji},un,Ne.createElement(qe,(0,oe.Z)({"aria-hidden":!gi,movable:Qn,visible:gi,prefixCls:Kt,closeIcon:li,onClose:Rn,mousePosition:Cn,imgCommonProps:Ct,src:mi,fallback:Kn,icons:bn,minScale:ai,maxScale:Un,getContainer:kn,current:Ri,count:tr.length,countRender:si,onTransform:ii,toolbarRender:ti,imageRender:On,onChange:Ai},ni)))},on=ht,An=0;function Zn(an,Ot){var Mn=Ne.useState(function(){return An+=1,String(An)}),Ht=(0,Ie.Z)(Mn,1),Kt=Ht[0],un=Ne.useContext(nt),Vn={data:Ot,canPreview:an};return Ne.useEffect(function(){if(un)return un.register(Kt,Vn)},[]),Ne.useEffect(function(){un&&un.register(Kt,Vn)},[an,Ot]),Kt}var Ft=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],It=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Gt=function(Ot){var Mn=Ot.src,Ht=Ot.alt,Kt=Ot.onPreviewClose,un=Ot.prefixCls,Vn=un===void 0?"rc-image":un,bn=Ot.previewPrefixCls,mt=bn===void 0?"".concat(Vn,"-preview"):bn,jn=Ot.placeholder,Kn=Ot.fallback,Ut=Ot.width,yi=Ot.height,Vi=Ot.style,kn=Ot.preview,Vt=kn===void 0?!0:kn,Qn=Ot.className,ai=Ot.onClick,Un=Ot.onError,si=Ot.wrapperClassName,li=Ot.wrapperStyle,Me=Ot.rootClassName,ii=(0,Te.Z)(Ot,Ft),ti=jn&&jn!==!0,On=(0,He.Z)(Vt)==="object"?Vt:{},ni=On.src,Ei=On.visible,ui=Ei===void 0?void 0:Ei,tr=On.onVisibleChange,Sn=tr===void 0?Kt:tr,sn=On.getContainer,dn=sn===void 0?void 0:sn,_n=On.mask,Ri=On.maskClassName,qn=On.movable,Ni=On.icons,mn=On.scaleStep,Hn=On.minScale,Di=On.maxScale,Yi=On.imageRender,mi=On.toolbarRender,Ct=(0,Te.Z)(On,It),$t=ni!=null?ni:Mn,fi=(0,Pe.Z)(!!ui,{value:ui,onChange:Sn}),gi=(0,Ie.Z)(fi,2),zt=gi[0],pi=gi[1],Fi=Xt({src:Mn,isCustomPlaceholder:ti,fallback:Kn}),Cn=(0,Ie.Z)(Fi,3),je=Cn[0],Pi=Cn[1],Ai=Cn[2],Rn=(0,Ne.useState)(null),Ji=(0,Ie.Z)(Rn,2),_i=Ji[0],Jn=Ji[1],ji=(0,Ne.useContext)(nt),ln=!!Vt,vr=function(){pi(!1),Jn(null)},Wr=ot()(Vn,si,Me,(0,ke.Z)({},"".concat(Vn,"-error"),Ai==="error")),pn=(0,Ne.useMemo)(function(){var pr={};return Le.forEach(function(Tr){Ot[Tr]!==void 0&&(pr[Tr]=Ot[Tr])}),pr},Le.map(function(pr){return Ot[pr]})),ur=(0,Ne.useMemo)(function(){return(0,Ce.Z)((0,Ce.Z)({},pn),{},{src:$t})},[$t,pn]),yr=Zn(ln,ur),ir=function(Tr){var Br=Ee(Tr.target),Ar=Br.left,br=Br.top;ji?ji.onPreview(yr,$t,Ar,br):(Jn({x:Ar,y:br}),pi(!0)),ai==null||ai(Tr)};return Ne.createElement(Ne.Fragment,null,Ne.createElement("div",(0,oe.Z)({},ii,{className:Wr,onClick:ln?ir:ai,style:(0,Ce.Z)({width:Ut,height:yi},li)}),Ne.createElement("img",(0,oe.Z)({},pn,{className:ot()("".concat(Vn,"-img"),(0,ke.Z)({},"".concat(Vn,"-img-placeholder"),jn===!0),Qn),style:(0,Ce.Z)({height:yi},Vi),ref:je},Pi,{width:Ut,height:yi,onError:Un})),Ai==="loading"&&Ne.createElement("div",{"aria-hidden":"true",className:"".concat(Vn,"-placeholder")},jn),_n&&ln&&Ne.createElement("div",{className:ot()("".concat(Vn,"-mask"),Ri),style:{display:(Vi==null?void 0:Vi.display)==="none"?"none":void 0}},_n)),!ji&&ln&&Ne.createElement(qe,(0,oe.Z)({"aria-hidden":!zt,visible:zt,prefixCls:mt,onClose:vr,mousePosition:_i,src:$t,alt:Ht,imageInfo:{width:Ut,height:yi},fallback:Kn,getContainer:dn,icons:Ni,movable:qn,scaleStep:mn,minScale:Hn,maxScale:Di,rootClassName:Me,imageRender:Yi,imgCommonProps:pn,toolbarRender:mi},Ct)))};Gt.PreviewGroup=on;var fn=Gt,Pn=fn},23425:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return We}});var oe=ae(52873),Ce=ae(67711),ke=ae(26420),Ie=ae(98506),He=ae(16886),Te=ae(92310),ze=ae.n(Te),ot=ae(18929),Ke=ae(10228),Be=ae(26112),gt=ae(48736),Je=ae(59301),wt=ae(17119),Fe=[10,20,50,100],te=function(Ye){var Qe=Ye.pageSizeOptions,lt=Qe===void 0?Fe:Qe,nt=Ye.locale,yt=Ye.changeSize,vt=Ye.pageSize,St=Ye.goButton,Lt=Ye.quickGo,jt=Ye.rootPrefixCls,Bt=Ye.disabled,cn=Ye.buildOptionText,pt=Ye.showSizeChanger,ut=Ye.sizeChangerRender,at=Je.useState(""),Wt=(0,He.Z)(at,2),rn=Wt[0],Tt=Wt[1],Xt=function(){return!rn||Number.isNaN(rn)?void 0:Number(rn)},nn=typeof cn=="function"?cn:function(Le){return"".concat(Le," ").concat(nt.items_per_page)},Nn=function(Ge){Tt(Ge.target.value)},Rt=function(Ge){St||rn===""||(Tt(""),!(Ge.relatedTarget&&(Ge.relatedTarget.className.indexOf("".concat(jt,"-item-link"))>=0||Ge.relatedTarget.className.indexOf("".concat(jt,"-item"))>=0))&&(Lt==null||Lt(Xt())))},At=function(Ge){rn!==""&&(Ge.keyCode===Ke.Z.ENTER||Ge.type==="click")&&(Tt(""),Lt==null||Lt(Xt()))},Zt=function(){return lt.some(function(Ge){return Ge.toString()===vt.toString()})?lt:lt.concat([vt]).sort(function(Ge,it){var De=Number.isNaN(Number(Ge))?0:Number(Ge),ht=Number.isNaN(Number(it))?0:Number(it);return De-ht})},In="".concat(jt,"-options");if(!pt&&!Lt)return null;var Dn=null,qe=null,Oe=null;return pt&&ut&&(Dn=ut({disabled:Bt,size:vt,onSizeChange:function(Ge){yt==null||yt(Number(Ge))},"aria-label":nt.page_size,className:"".concat(In,"-size-changer"),options:Zt().map(function(Le){return{label:nn(Le),value:Le}})})),Lt&&(St&&(Oe=typeof St=="boolean"?Je.createElement("button",{type:"button",onClick:At,onKeyUp:At,disabled:Bt,className:"".concat(In,"-quick-jumper-button")},nt.jump_to_confirm):Je.createElement("span",{onClick:At,onKeyUp:At},St)),qe=Je.createElement("div",{className:"".concat(In,"-quick-jumper")},nt.jump_to,Je.createElement("input",{disabled:Bt,type:"text",value:rn,onChange:Nn,onKeyUp:At,onBlur:Rt,"aria-label":nt.page}),nt.page,Oe)),Je.createElement("li",{className:In},Dn,qe)},ee=te,he=function(Ye){var Qe=Ye.rootPrefixCls,lt=Ye.page,nt=Ye.active,yt=Ye.className,vt=Ye.showTitle,St=Ye.onClick,Lt=Ye.onKeyPress,jt=Ye.itemRender,Bt="".concat(Qe,"-item"),cn=ze()(Bt,"".concat(Bt,"-").concat(lt),(0,oe.Z)((0,oe.Z)({},"".concat(Bt,"-active"),nt),"".concat(Bt,"-disabled"),!lt),yt),pt=function(){St(lt)},ut=function(rn){Lt(rn,St,lt)},at=jt(lt,"page",Je.createElement("a",{rel:"nofollow"},lt));return at?Je.createElement("li",{title:vt?String(lt):null,className:cn,onClick:pt,onKeyDown:ut,tabIndex:0},at):null},ue=he,fe=function(Ye,Qe,lt){return lt};function me(){}function Ee(tt){var Ye=Number(tt);return typeof Ye=="number"&&!Number.isNaN(Ye)&&isFinite(Ye)&&Math.floor(Ye)===Ye}function Pe(tt,Ye,Qe){var lt=typeof tt=="undefined"?Ye:tt;return Math.floor((Qe-1)/lt)+1}var Ne=function(Ye){var Qe=Ye.prefixCls,lt=Qe===void 0?"rc-pagination":Qe,nt=Ye.selectPrefixCls,yt=nt===void 0?"rc-select":nt,vt=Ye.className,St=Ye.current,Lt=Ye.defaultCurrent,jt=Lt===void 0?1:Lt,Bt=Ye.total,cn=Bt===void 0?0:Bt,pt=Ye.pageSize,ut=Ye.defaultPageSize,at=ut===void 0?10:ut,Wt=Ye.onChange,rn=Wt===void 0?me:Wt,Tt=Ye.hideOnSinglePage,Xt=Ye.align,nn=Ye.showPrevNextJumpers,Nn=nn===void 0?!0:nn,Rt=Ye.showQuickJumper,At=Ye.showLessItems,Zt=Ye.showTitle,In=Zt===void 0?!0:Zt,Dn=Ye.onShowSizeChange,qe=Dn===void 0?me:Dn,Oe=Ye.locale,Le=Oe===void 0?wt.Z:Oe,Ge=Ye.style,it=Ye.totalBoundaryShowSizeChanger,De=it===void 0?50:it,ht=Ye.disabled,on=Ye.simple,An=Ye.showTotal,Zn=Ye.showSizeChanger,Ft=Zn===void 0?cn>De:Zn,It=Ye.sizeChangerRender,Gt=Ye.pageSizeOptions,fn=Ye.itemRender,Pn=fn===void 0?fe:fn,an=Ye.jumpPrevIcon,Ot=Ye.jumpNextIcon,Mn=Ye.prevIcon,Ht=Ye.nextIcon,Kt=Je.useRef(null),un=(0,ot.Z)(10,{value:pt,defaultValue:at}),Vn=(0,He.Z)(un,2),bn=Vn[0],mt=Vn[1],jn=(0,ot.Z)(1,{value:St,defaultValue:jt,postState:function(Nr){return Math.max(1,Math.min(Nr,Pe(void 0,bn,cn)))}}),Kn=(0,He.Z)(jn,2),Ut=Kn[0],yi=Kn[1],Vi=Je.useState(Ut),kn=(0,He.Z)(Vi,2),Vt=kn[0],Qn=kn[1];(0,Je.useEffect)(function(){Qn(Ut)},[Ut]);var ai=rn!==me,Un="current"in Ye,si=Math.max(1,Ut-(At?3:5)),li=Math.min(Pe(void 0,bn,cn),Ut+(At?3:5));function Me(ar,Nr){var Sr=ar||Je.createElement("button",{type:"button","aria-label":Nr,className:"".concat(lt,"-item-link")});return typeof ar=="function"&&(Sr=Je.createElement(ar,(0,Ie.Z)({},Ye))),Sr}function ii(ar){var Nr=ar.target.value,Sr=Pe(void 0,bn,cn),Xr;return Nr===""?Xr=Nr:Number.isNaN(Number(Nr))?Xr=Vt:Nr>=Sr?Xr=Sr:Xr=Number(Nr),Xr}function ti(ar){return Ee(ar)&&ar!==Ut&&Ee(cn)&&cn>0}var On=cn>bn?Rt:!1;function ni(ar){(ar.keyCode===Ke.Z.UP||ar.keyCode===Ke.Z.DOWN)&&ar.preventDefault()}function Ei(ar){var Nr=ii(ar);switch(Nr!==Vt&&Qn(Nr),ar.keyCode){case Ke.Z.ENTER:Sn(Nr);break;case Ke.Z.UP:Sn(Nr-1);break;case Ke.Z.DOWN:Sn(Nr+1);break;default:break}}function ui(ar){Sn(ii(ar))}function tr(ar){var Nr=Pe(ar,bn,cn),Sr=Ut>Nr&&Nr!==0?Nr:Ut;mt(ar),Qn(Sr),qe==null||qe(Ut,ar),yi(Sr),rn==null||rn(Sr,ar)}function Sn(ar){if(ti(ar)&&!ht){var Nr=Pe(void 0,bn,cn),Sr=ar;return ar>Nr?Sr=Nr:ar<1&&(Sr=1),Sr!==Vt&&Qn(Sr),yi(Sr),rn==null||rn(Sr,bn),Sr}return Ut}var sn=Ut>1,dn=Ut<Pe(void 0,bn,cn);function _n(){sn&&Sn(Ut-1)}function Ri(){dn&&Sn(Ut+1)}function qn(){Sn(si)}function Ni(){Sn(li)}function mn(ar,Nr){if(ar.key==="Enter"||ar.charCode===Ke.Z.ENTER||ar.keyCode===Ke.Z.ENTER){for(var Sr=arguments.length,Xr=new Array(Sr>2?Sr-2:0),Zr=2;Zr<Sr;Zr++)Xr[Zr-2]=arguments[Zr];Nr.apply(void 0,Xr)}}function Hn(ar){mn(ar,_n)}function Di(ar){mn(ar,Ri)}function Yi(ar){mn(ar,qn)}function mi(ar){mn(ar,Ni)}function Ct(ar){var Nr=Pn(ar,"prev",Me(Mn,"prev page"));return Je.isValidElement(Nr)?Je.cloneElement(Nr,{disabled:!sn}):Nr}function $t(ar){var Nr=Pn(ar,"next",Me(Ht,"next page"));return Je.isValidElement(Nr)?Je.cloneElement(Nr,{disabled:!dn}):Nr}function fi(ar){(ar.type==="click"||ar.keyCode===Ke.Z.ENTER)&&Sn(Vt)}var gi=null,zt=(0,Be.Z)(Ye,{aria:!0,data:!0}),pi=An&&Je.createElement("li",{className:"".concat(lt,"-total-text")},An(cn,[cn===0?0:(Ut-1)*bn+1,Ut*bn>cn?cn:Ut*bn])),Fi=null,Cn=Pe(void 0,bn,cn);if(Tt&&cn<=bn)return null;var je=[],Pi={rootPrefixCls:lt,onClick:Sn,onKeyPress:mn,showTitle:In,itemRender:Pn,page:-1},Ai=Ut-1>0?Ut-1:0,Rn=Ut+1<Cn?Ut+1:Cn,Ji=Rt&&Rt.goButton,_i=(0,ke.Z)(on)==="object"?on.readOnly:!on,Jn=Ji,ji=null;on&&(Ji&&(typeof Ji=="boolean"?Jn=Je.createElement("button",{type:"button",onClick:fi,onKeyUp:fi},Le.jump_to_confirm):Jn=Je.createElement("span",{onClick:fi,onKeyUp:fi},Ji),Jn=Je.createElement("li",{title:In?"".concat(Le.jump_to).concat(Ut,"/").concat(Cn):null,className:"".concat(lt,"-simple-pager")},Jn)),ji=Je.createElement("li",{title:In?"".concat(Ut,"/").concat(Cn):null,className:"".concat(lt,"-simple-pager")},_i?Vt:Je.createElement("input",{type:"text","aria-label":Le.jump_to,value:Vt,disabled:ht,onKeyDown:ni,onKeyUp:Ei,onChange:Ei,onBlur:ui,size:3}),Je.createElement("span",{className:"".concat(lt,"-slash")},"/"),Cn));var ln=At?1:2;if(Cn<=3+ln*2){Cn||je.push(Je.createElement(ue,(0,Ce.Z)({},Pi,{key:"noPager",page:1,className:"".concat(lt,"-item-disabled")})));for(var vr=1;vr<=Cn;vr+=1)je.push(Je.createElement(ue,(0,Ce.Z)({},Pi,{key:vr,page:vr,active:Ut===vr})))}else{var Wr=At?Le.prev_3:Le.prev_5,pn=At?Le.next_3:Le.next_5,ur=Pn(si,"jump-prev",Me(an,"prev page")),yr=Pn(li,"jump-next",Me(Ot,"next page"));Nn&&(gi=ur?Je.createElement("li",{title:In?Wr:null,key:"prev",onClick:qn,tabIndex:0,onKeyDown:Yi,className:ze()("".concat(lt,"-jump-prev"),(0,oe.Z)({},"".concat(lt,"-jump-prev-custom-icon"),!!an))},ur):null,Fi=yr?Je.createElement("li",{title:In?pn:null,key:"next",onClick:Ni,tabIndex:0,onKeyDown:mi,className:ze()("".concat(lt,"-jump-next"),(0,oe.Z)({},"".concat(lt,"-jump-next-custom-icon"),!!Ot))},yr):null);var ir=Math.max(1,Ut-ln),pr=Math.min(Ut+ln,Cn);Ut-1<=ln&&(pr=1+ln*2),Cn-Ut<=ln&&(ir=Cn-ln*2);for(var Tr=ir;Tr<=pr;Tr+=1)je.push(Je.createElement(ue,(0,Ce.Z)({},Pi,{key:Tr,page:Tr,active:Ut===Tr})));if(Ut-1>=ln*2&&Ut!==3&&(je[0]=Je.cloneElement(je[0],{className:ze()("".concat(lt,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(gi)),Cn-Ut>=ln*2&&Ut!==Cn-2){var Br=je[je.length-1];je[je.length-1]=Je.cloneElement(Br,{className:ze()("".concat(lt,"-item-before-jump-next"),Br.props.className)}),je.push(Fi)}ir!==1&&je.unshift(Je.createElement(ue,(0,Ce.Z)({},Pi,{key:1,page:1}))),pr!==Cn&&je.push(Je.createElement(ue,(0,Ce.Z)({},Pi,{key:Cn,page:Cn})))}var Ar=Ct(Ai);if(Ar){var br=!sn||!Cn;Ar=Je.createElement("li",{title:In?Le.prev_page:null,onClick:_n,tabIndex:br?null:0,onKeyDown:Hn,className:ze()("".concat(lt,"-prev"),(0,oe.Z)({},"".concat(lt,"-disabled"),br)),"aria-disabled":br},Ar)}var _r=$t(Rn);if(_r){var Wn,xr;on?(Wn=!dn,xr=sn?0:null):(Wn=!dn||!Cn,xr=Wn?null:0),_r=Je.createElement("li",{title:In?Le.next_page:null,onClick:Ri,tabIndex:xr,onKeyDown:Di,className:ze()("".concat(lt,"-next"),(0,oe.Z)({},"".concat(lt,"-disabled"),Wn)),"aria-disabled":Wn},_r)}var $n=ze()(lt,vt,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(lt,"-start"),Xt==="start"),"".concat(lt,"-center"),Xt==="center"),"".concat(lt,"-end"),Xt==="end"),"".concat(lt,"-simple"),on),"".concat(lt,"-disabled"),ht));return Je.createElement("ul",(0,Ce.Z)({className:$n,style:Ge,ref:Kt},zt),pi,Ar,on?ji:je,_r,Je.createElement(ee,{locale:Le,rootPrefixCls:lt,disabled:ht,selectPrefixCls:yt,changeSize:tr,pageSize:bn,pageSizeOptions:Gt,quickGo:On?Sn:null,goButton:Jn,showSizeChanger:Ft,sizeChangerRender:It}))},We=Ne},25930:function(_e,be,ae){"use strict";ae.d(be,{Cd:function(){return lt}});var oe=ae(67711),Ce=ae(98506),ke=ae(33346),Ie=ae(59301),He=ae(92310),Te=ae.n(He),ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ot=function(){var vt=(0,Ie.useRef)([]),St=(0,Ie.useRef)(null);return(0,Ie.useEffect)(function(){var Lt=Date.now(),jt=!1;vt.current.forEach(function(Bt){if(Bt){jt=!0;var cn=Bt.style;cn.transitionDuration=".3s, .3s, .3s, .06s",St.current&&Lt-St.current<100&&(cn.transitionDuration="0s, 0s")}}),jt&&(St.current=Date.now())}),vt.current},Ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Be=function(vt){var St=(0,Ce.Z)((0,Ce.Z)({},ze),vt),Lt=St.className,jt=St.percent,Bt=St.prefixCls,cn=St.strokeColor,pt=St.strokeLinecap,ut=St.strokeWidth,at=St.style,Wt=St.trailColor,rn=St.trailWidth,Tt=St.transition,Xt=(0,ke.Z)(St,Ke);delete Xt.gapPosition;var nn=Array.isArray(jt)?jt:[jt],Nn=Array.isArray(cn)?cn:[cn],Rt=ot(),At=ut/2,Zt=100-ut/2,In="M ".concat(pt==="round"?At:0,",").concat(At,`
L `).concat(pt==="round"?Zt:100,",").concat(At),Dn="0 0 100 ".concat(ut),qe=0;return Ie.createElement("svg",(0,oe.Z)({className:Te()("".concat(Bt,"-line"),Lt),viewBox:Dn,preserveAspectRatio:"none",style:at},Xt),Ie.createElement("path",{className:"".concat(Bt,"-line-trail"),d:In,strokeLinecap:pt,stroke:Wt,strokeWidth:rn||ut,fillOpacity:"0"}),nn.map(function(Oe,Le){var Ge=1;switch(pt){case"round":Ge=1-ut/100;break;case"square":Ge=1-ut/2/100;break;default:Ge=1;break}var it={strokeDasharray:"".concat(Oe*Ge,"px, 100px"),strokeDashoffset:"-".concat(qe,"px"),transition:Tt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},De=Nn[Le]||Nn[Nn.length-1];return qe+=Oe,Ie.createElement("path",{key:Le,className:"".concat(Bt,"-line-path"),d:In,strokeLinecap:pt,stroke:De,strokeWidth:ut,fillOpacity:"0",ref:function(on){Rt[Le]=on},style:it})}))},gt=Be,Je=ae(26420),wt=ae(16886),Fe=ae(47273),te=0,ee=(0,Fe.Z)();function he(){var yt;return ee?(yt=te,te+=1):yt="TEST_OR_SSR",yt}var ue=function(yt){var vt=Ie.useState(),St=(0,wt.Z)(vt,2),Lt=St[0],jt=St[1];return Ie.useEffect(function(){jt("rc_progress_".concat(he()))},[]),yt||Lt},fe=function(vt){var St=vt.bg,Lt=vt.children;return Ie.createElement("div",{style:{width:"100%",height:"100%",background:St}},Lt)};function me(yt,vt){return Object.keys(yt).map(function(St){var Lt=parseFloat(St),jt="".concat(Math.floor(Lt*vt),"%");return"".concat(yt[St]," ").concat(jt)})}var Ee=Ie.forwardRef(function(yt,vt){var St=yt.prefixCls,Lt=yt.color,jt=yt.gradientId,Bt=yt.radius,cn=yt.style,pt=yt.ptg,ut=yt.strokeLinecap,at=yt.strokeWidth,Wt=yt.size,rn=yt.gapDegree,Tt=Lt&&(0,Je.Z)(Lt)==="object",Xt=Tt?"#FFF":void 0,nn=Wt/2,Nn=Ie.createElement("circle",{className:"".concat(St,"-circle-path"),r:Bt,cx:nn,cy:nn,stroke:Xt,strokeLinecap:ut,strokeWidth:at,opacity:pt===0?0:1,style:cn,ref:vt});if(!Tt)return Nn;var Rt="".concat(jt,"-conic"),At=rn?"".concat(180+rn/2,"deg"):"0deg",Zt=me(Lt,(360-rn)/360),In=me(Lt,1),Dn="conic-gradient(from ".concat(At,", ").concat(Zt.join(", "),")"),qe="linear-gradient(to ".concat(rn?"bottom":"top",", ").concat(In.join(", "),")");return Ie.createElement(Ie.Fragment,null,Ie.createElement("mask",{id:Rt},Nn),Ie.createElement("foreignObject",{x:0,y:0,width:Wt,height:Wt,mask:"url(#".concat(Rt,")")},Ie.createElement(fe,{bg:qe},Ie.createElement(fe,{bg:Dn}))))}),Pe=Ee,Ne=100,We=function(vt,St,Lt,jt,Bt,cn,pt,ut,at,Wt){var rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Tt=Lt/100*360*((360-cn)/360),Xt=cn===0?0:{bottom:0,top:180,left:90,right:-90}[pt],nn=(100-jt)/100*St;at==="round"&&jt!==100&&(nn+=Wt/2,nn>=St&&(nn=St-.01));var Nn=Ne/2;return{stroke:typeof ut=="string"?ut:void 0,strokeDasharray:"".concat(St,"px ").concat(vt),strokeDashoffset:nn+rn,transform:"rotate(".concat(Bt+Tt+Xt,"deg)"),transformOrigin:"".concat(Nn,"px ").concat(Nn,"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}},tt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ye(yt){var vt=yt!=null?yt:[];return Array.isArray(vt)?vt:[vt]}var Qe=function(vt){var St=(0,Ce.Z)((0,Ce.Z)({},ze),vt),Lt=St.id,jt=St.prefixCls,Bt=St.steps,cn=St.strokeWidth,pt=St.trailWidth,ut=St.gapDegree,at=ut===void 0?0:ut,Wt=St.gapPosition,rn=St.trailColor,Tt=St.strokeLinecap,Xt=St.style,nn=St.className,Nn=St.strokeColor,Rt=St.percent,At=(0,ke.Z)(St,tt),Zt=Ne/2,In=ue(Lt),Dn="".concat(In,"-gradient"),qe=Zt-cn/2,Oe=Math.PI*2*qe,Le=at>0?90+at/2:-90,Ge=Oe*((360-at)/360),it=(0,Je.Z)(Bt)==="object"?Bt:{count:Bt,gap:2},De=it.count,ht=it.gap,on=Ye(Rt),An=Ye(Nn),Zn=An.find(function(Ot){return Ot&&(0,Je.Z)(Ot)==="object"}),Ft=Zn&&(0,Je.Z)(Zn)==="object",It=Ft?"butt":Tt,Gt=We(Oe,Ge,0,100,Le,at,Wt,rn,It,cn),fn=ot(),Pn=function(){var Mn=0;return on.map(function(Ht,Kt){var un=An[Kt]||An[An.length-1],Vn=We(Oe,Ge,Mn,Ht,Le,at,Wt,un,It,cn);return Mn+=Ht,Ie.createElement(Pe,{key:Kt,color:un,ptg:Ht,radius:qe,prefixCls:jt,gradientId:Dn,style:Vn,strokeLinecap:It,strokeWidth:cn,gapDegree:at,ref:function(mt){fn[Kt]=mt},size:Ne})}).reverse()},an=function(){var Mn=Math.round(De*(on[0]/100)),Ht=100/De,Kt=0;return new Array(De).fill(null).map(function(un,Vn){var bn=Vn<=Mn-1?An[0]:rn,mt=bn&&(0,Je.Z)(bn)==="object"?"url(#".concat(Dn,")"):void 0,jn=We(Oe,Ge,Kt,Ht,Le,at,Wt,bn,"butt",cn,ht);return Kt+=(Ge-jn.strokeDashoffset+ht)*100/Ge,Ie.createElement("circle",{key:Vn,className:"".concat(jt,"-circle-path"),r:qe,cx:Zt,cy:Zt,stroke:mt,strokeWidth:cn,opacity:1,style:jn,ref:function(Ut){fn[Vn]=Ut}})})};return Ie.createElement("svg",(0,oe.Z)({className:Te()("".concat(jt,"-circle"),nn),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:Xt,id:Lt,role:"presentation"},At),!De&&Ie.createElement("circle",{className:"".concat(jt,"-circle-trail"),r:qe,cx:Zt,cy:Zt,stroke:rn,strokeLinecap:It,strokeWidth:pt||cn,style:Gt}),De?an():Pn())},lt=Qe,nt={Line:gt,Circle:lt}},738:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return me}});var oe=ae(67711),Ce=ae(52873),ke=ae(16886),Ie=ae(33346),He=ae(92310),Te=ae.n(He),ze=ae(18929),ot=ae(10228),Ke=ae(26112),Be=ae(59301);function gt(Ee,Pe){var Ne=Ee.disabled,We=Ee.prefixCls,tt=Ee.character,Ye=Ee.characterRender,Qe=Ee.index,lt=Ee.count,nt=Ee.value,yt=Ee.allowHalf,vt=Ee.focused,St=Ee.onHover,Lt=Ee.onClick,jt=function(Tt){St(Tt,Qe)},Bt=function(Tt){Lt(Tt,Qe)},cn=function(Tt){Tt.keyCode===ot.Z.ENTER&&Lt(Tt,Qe)},pt=Qe+1,ut=new Set([We]);nt===0&&Qe===0&&vt?ut.add("".concat(We,"-focused")):yt&&nt+.5>=pt&&nt<pt?(ut.add("".concat(We,"-half")),ut.add("".concat(We,"-active")),vt&&ut.add("".concat(We,"-focused"))):(pt<=nt?ut.add("".concat(We,"-full")):ut.add("".concat(We,"-zero")),pt===nt&&vt&&ut.add("".concat(We,"-focused")));var at=typeof tt=="function"?tt(Ee):tt,Wt=Be.createElement("li",{className:Te()(Array.from(ut)),ref:Pe},Be.createElement("div",{onClick:Ne?null:Bt,onKeyDown:Ne?null:cn,onMouseMove:Ne?null:jt,role:"radio","aria-checked":nt>Qe?"true":"false","aria-posinset":Qe+1,"aria-setsize":lt,tabIndex:Ne?-1:0},Be.createElement("div",{className:"".concat(We,"-first")},at),Be.createElement("div",{className:"".concat(We,"-second")},at)));return Ye&&(Wt=Ye(Wt,Ee)),Wt}var Je=Be.forwardRef(gt);function wt(){var Ee=Be.useRef({});function Pe(We){return Ee.current[We]}function Ne(We){return function(tt){Ee.current[We]=tt}}return[Pe,Ne]}function Fe(Ee){var Pe=Ee.pageXOffset,Ne="scrollLeft";if(typeof Pe!="number"){var We=Ee.document;Pe=We.documentElement[Ne],typeof Pe!="number"&&(Pe=We.body[Ne])}return Pe}function te(Ee){var Pe,Ne,We=Ee.ownerDocument,tt=We.body,Ye=We&&We.documentElement,Qe=Ee.getBoundingClientRect();return Pe=Qe.left,Ne=Qe.top,Pe-=Ye.clientLeft||tt.clientLeft||0,Ne-=Ye.clientTop||tt.clientTop||0,{left:Pe,top:Ne}}function ee(Ee){var Pe=te(Ee),Ne=Ee.ownerDocument,We=Ne.defaultView||Ne.parentWindow;return Pe.left+=Fe(We),Pe.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ue(Ee,Pe){var Ne=Ee.prefixCls,We=Ne===void 0?"rc-rate":Ne,tt=Ee.className,Ye=Ee.defaultValue,Qe=Ee.value,lt=Ee.count,nt=lt===void 0?5:lt,yt=Ee.allowHalf,vt=yt===void 0?!1:yt,St=Ee.allowClear,Lt=St===void 0?!0:St,jt=Ee.keyboard,Bt=jt===void 0?!0:jt,cn=Ee.character,pt=cn===void 0?"\u2605":cn,ut=Ee.characterRender,at=Ee.disabled,Wt=Ee.direction,rn=Wt===void 0?"ltr":Wt,Tt=Ee.tabIndex,Xt=Tt===void 0?0:Tt,nn=Ee.autoFocus,Nn=Ee.onHoverChange,Rt=Ee.onChange,At=Ee.onFocus,Zt=Ee.onBlur,In=Ee.onKeyDown,Dn=Ee.onMouseLeave,qe=(0,Ie.Z)(Ee,he),Oe=wt(),Le=(0,ke.Z)(Oe,2),Ge=Le[0],it=Le[1],De=Be.useRef(null),ht=function(){if(!at){var si;(si=De.current)===null||si===void 0||si.focus()}};Be.useImperativeHandle(Pe,function(){return{focus:ht,blur:function(){if(!at){var si;(si=De.current)===null||si===void 0||si.blur()}}}});var on=(0,ze.Z)(Ye||0,{value:Qe}),An=(0,ke.Z)(on,2),Zn=An[0],Ft=An[1],It=(0,ze.Z)(null),Gt=(0,ke.Z)(It,2),fn=Gt[0],Pn=Gt[1],an=function(si,li){var Me=rn==="rtl",ii=si+1;if(vt){var ti=Ge(si),On=ee(ti),ni=ti.clientWidth;(Me&&li-On>ni/2||!Me&&li-On<ni/2)&&(ii-=.5)}return ii},Ot=function(si){Ft(si),Rt==null||Rt(si)},Mn=Be.useState(!1),Ht=(0,ke.Z)(Mn,2),Kt=Ht[0],un=Ht[1],Vn=function(){un(!0),At==null||At()},bn=function(){un(!1),Zt==null||Zt()},mt=Be.useState(null),jn=(0,ke.Z)(mt,2),Kn=jn[0],Ut=jn[1],yi=function(si,li){var Me=an(li,si.pageX);Me!==fn&&(Ut(Me),Pn(null)),Nn==null||Nn(Me)},Vi=function(si){at||(Ut(null),Pn(null),Nn==null||Nn(void 0)),si&&(Dn==null||Dn(si))},kn=function(si,li){var Me=an(li,si.pageX),ii=!1;Lt&&(ii=Me===Zn),Vi(),Ot(ii?0:Me),Pn(ii?Me:null)},Vt=function(si){var li=si.keyCode,Me=rn==="rtl",ii=vt?.5:1;Bt&&(li===ot.Z.RIGHT&&Zn<nt&&!Me?(Ot(Zn+ii),si.preventDefault()):li===ot.Z.LEFT&&Zn>0&&!Me||li===ot.Z.RIGHT&&Zn>0&&Me?(Ot(Zn-ii),si.preventDefault()):li===ot.Z.LEFT&&Zn<nt&&Me&&(Ot(Zn+ii),si.preventDefault())),In==null||In(si)};Be.useEffect(function(){nn&&!at&&ht()},[]);var Qn=new Array(nt).fill(0).map(function(Un,si){return Be.createElement(Je,{ref:it(si),index:si,count:nt,disabled:at,prefixCls:"".concat(We,"-star"),allowHalf:vt,value:Kn===null?Zn:Kn,onClick:kn,onHover:yi,key:Un||si,character:pt,characterRender:ut,focused:Kt})}),ai=Te()(We,tt,(0,Ce.Z)((0,Ce.Z)({},"".concat(We,"-disabled"),at),"".concat(We,"-rtl"),rn==="rtl"));return Be.createElement("ul",(0,oe.Z)({className:ai,onMouseLeave:Vi,tabIndex:at?-1:Xt,onFocus:at?null:Vn,onBlur:at?null:bn,onKeyDown:at?null:Vt,ref:De},(0,Ke.Z)(qe,{aria:!0,data:!0,attr:!0})),Qn)}var fe=Be.forwardRef(ue),me=fe},6551:function(_e,be,ae){"use strict";ae.d(be,{ZP:function(){return ze}});var oe=ae(16886),Ce=ae(59301),ke=ae(47273),Ie=0,He=(0,ke.Z)();function Te(){var ot;return He?(ot=Ie,Ie+=1):ot="TEST_OR_SSR",ot}function ze(ot){var Ke=Ce.useState(),Be=(0,oe.Z)(Ke,2),gt=Be[0],Je=Be[1];return Ce.useEffect(function(){Je("rc_select_".concat(Te()))},[]),ot||gt}},37463:function(_e,be,ae){"use strict";ae.d(be,{Ac:function(){return un},Xo:function(){return bn},Wx:function(){return jn},ZP:function(){return mi},lk:function(){return me}});var oe=ae(67711),Ce=ae(15142),ke=ae(52873),Ie=ae(98506),He=ae(16886),Te=ae(33346),ze=ae(26420),ot=ae(18929),Ke=ae(48736),Be=ae(59301),gt=ae(92310),Je=ae.n(gt),wt=ae(34280),Fe=ae(49658),te=ae(8654),ee=function($t){var fi=$t.className,gi=$t.customizeIcon,zt=$t.customizeIconProps,pi=$t.children,Fi=$t.onMouseDown,Cn=$t.onClick,je=typeof gi=="function"?gi(zt):gi;return Be.createElement("span",{className:fi,onMouseDown:function(Ai){Ai.preventDefault(),Fi==null||Fi(Ai)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Cn,"aria-hidden":!0},je!==void 0?je:Be.createElement("span",{className:Je()(fi.split(/\s+/).map(function(Pi){return"".concat(Pi,"-icon")}))},pi))},he=ee,ue=function($t,fi,gi,zt,pi){var Fi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Cn=arguments.length>6?arguments[6]:void 0,je=arguments.length>7?arguments[7]:void 0,Pi=Be.useMemo(function(){if((0,ze.Z)(zt)==="object")return zt.clearIcon;if(pi)return pi},[zt,pi]),Ai=Be.useMemo(function(){return!!(!Fi&&zt&&(gi.length||Cn)&&!(je==="combobox"&&Cn===""))},[zt,Fi,gi.length,Cn,je]);return{allowClear:Ai,clearIcon:Be.createElement(he,{className:"".concat($t,"-clear"),onMouseDown:fi,customizeIcon:Pi},"\xD7")}},fe=Be.createContext(null);function me(){return Be.useContext(fe)}function Ee(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$t=Be.useState(!1),fi=(0,He.Z)($t,2),gi=fi[0],zt=fi[1],pi=Be.useRef(null),Fi=function(){window.clearTimeout(pi.current)};Be.useEffect(function(){return Fi},[]);var Cn=function(Pi,Ai){Fi(),pi.current=window.setTimeout(function(){zt(Pi),Ai&&Ai()},Ct)};return[gi,Cn,Fi]}function Pe(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$t=Be.useRef(null),fi=Be.useRef(null);Be.useEffect(function(){return function(){window.clearTimeout(fi.current)}},[]);function gi(zt){(zt||$t.current===null)&&($t.current=zt),window.clearTimeout(fi.current),fi.current=window.setTimeout(function(){$t.current=null},Ct)}return[function(){return $t.current},gi]}function Ne(Ct,$t,fi,gi){var zt=Be.useRef(null);zt.current={open:$t,triggerOpen:fi,customizedTrigger:gi},Be.useEffect(function(){function pi(Fi){var Cn;if(!((Cn=zt.current)!==null&&Cn!==void 0&&Cn.customizedTrigger)){var je=Fi.target;je.shadowRoot&&Fi.composed&&(je=Fi.composedPath()[0]||je),zt.current.open&&Ct().filter(function(Pi){return Pi}).every(function(Pi){return!Pi.contains(je)&&Pi!==je})&&zt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pi),function(){return window.removeEventListener("mousedown",pi)}},[])}var We=ae(10228);function tt(Ct){return Ct&&![We.Z.ESC,We.Z.SHIFT,We.Z.BACKSPACE,We.Z.TAB,We.Z.WIN_KEY,We.Z.ALT,We.Z.META,We.Z.WIN_KEY_RIGHT,We.Z.CTRL,We.Z.SEMICOLON,We.Z.EQUALS,We.Z.CAPS_LOCK,We.Z.CONTEXT_MENU,We.Z.F1,We.Z.F2,We.Z.F3,We.Z.F4,We.Z.F5,We.Z.F6,We.Z.F7,We.Z.F8,We.Z.F9,We.Z.F10,We.Z.F11,We.Z.F12].includes(Ct)}var Ye=ae(26112),Qe=ae(11780);function lt(Ct,$t,fi){var gi=(0,Ie.Z)((0,Ie.Z)({},Ct),fi?$t:{});return Object.keys($t).forEach(function(zt){var pi=$t[zt];typeof pi=="function"&&(gi[zt]=function(){for(var Fi,Cn=arguments.length,je=new Array(Cn),Pi=0;Pi<Cn;Pi++)je[Pi]=arguments[Pi];return pi.apply(void 0,je),(Fi=Ct[zt])===null||Fi===void 0?void 0:Fi.call.apply(Fi,[Ct].concat(je))})}),gi}var nt=lt,yt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],vt=function($t,fi){var gi=$t.prefixCls,zt=$t.id,pi=$t.inputElement,Fi=$t.autoFocus,Cn=$t.autoComplete,je=$t.editable,Pi=$t.activeDescendantId,Ai=$t.value,Rn=$t.open,Ji=$t.attrs,_i=(0,Te.Z)($t,yt),Jn=pi||Be.createElement("input",null),ji=Jn,ln=ji.ref,vr=ji.props;return(0,Ke.Kp)(!("maxLength"in Jn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Jn=Be.cloneElement(Jn,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},nt(_i,vr,!0)),{},{id:zt,ref:(0,te.sQ)(fi,ln),autoComplete:Cn||"off",autoFocus:Fi,className:Je()("".concat(gi,"-selection-search-input"),vr==null?void 0:vr.className),role:"combobox","aria-expanded":Rn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(zt,"_list"),"aria-activedescendant":Rn?Pi:void 0},Ji),{},{value:je?Ai:"",readOnly:!je,unselectable:je?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},vr.style),{},{opacity:je?null:0})})),Jn},St=Be.forwardRef(vt),Lt=St;function jt(Ct){return Array.isArray(Ct)?Ct:Ct!==void 0?[Ct]:[]}var Bt=typeof window!="undefined"&&window.document&&window.document.documentElement,cn=Bt;function pt(Ct){return Ct!=null}function ut(Ct){return!Ct&&Ct!==0}function at(Ct){return["string","number"].includes((0,ze.Z)(Ct))}function Wt(Ct){var $t=void 0;return Ct&&(at(Ct.title)?$t=Ct.title.toString():at(Ct.label)&&($t=Ct.label.toString())),$t}function rn(Ct,$t){cn?Be.useLayoutEffect(Ct,$t):Be.useEffect(Ct,$t)}function Tt(Ct){var $t;return($t=Ct.key)!==null&&$t!==void 0?$t:Ct.value}var Xt=function($t){$t.preventDefault(),$t.stopPropagation()},nn=function($t){var fi=$t.id,gi=$t.prefixCls,zt=$t.values,pi=$t.open,Fi=$t.searchValue,Cn=$t.autoClearSearchValue,je=$t.inputRef,Pi=$t.placeholder,Ai=$t.disabled,Rn=$t.mode,Ji=$t.showSearch,_i=$t.autoFocus,Jn=$t.autoComplete,ji=$t.activeDescendantId,ln=$t.tabIndex,vr=$t.removeIcon,Wr=$t.maxTagCount,pn=$t.maxTagTextLength,ur=$t.maxTagPlaceholder,yr=ur===void 0?function(gn){return"+ ".concat(gn.length," ...")}:ur,ir=$t.tagRender,pr=$t.onToggleOpen,Tr=$t.onRemove,Br=$t.onInputChange,Ar=$t.onInputPaste,br=$t.onInputKeyDown,_r=$t.onInputMouseDown,Wn=$t.onInputCompositionStart,xr=$t.onInputCompositionEnd,$n=$t.onInputBlur,ar=Be.useRef(null),Nr=(0,Be.useState)(0),Sr=(0,He.Z)(Nr,2),Xr=Sr[0],Zr=Sr[1],Rr=(0,Be.useState)(!1),So=(0,He.Z)(Rr,2),Ln=So[0],ci=So[1],yn="".concat(gi,"-selection"),rt=pi||Rn==="multiple"&&Cn===!1||Rn==="tags"?Fi:"",Ii=Rn==="tags"||Rn==="multiple"&&Cn===!1||Ji&&(pi||Ln);rn(function(){Zr(ar.current.scrollWidth)},[rt]);var Hi=function(vn,Bn,hn,Yn,Gn){return Be.createElement("span",{title:Wt(vn),className:Je()("".concat(yn,"-item"),(0,ke.Z)({},"".concat(yn,"-item-disabled"),hn))},Be.createElement("span",{className:"".concat(yn,"-item-content")},Bn),Yn&&Be.createElement(he,{className:"".concat(yn,"-item-remove"),onMouseDown:Xt,onClick:Gn,customizeIcon:vr},"\xD7"))},nr=function(vn,Bn,hn,Yn,Gn,en){var ri=function(dr){Xt(dr),pr(!pi)};return Be.createElement("span",{onMouseDown:ri},ir({label:Bn,value:vn,disabled:hn,closable:Yn,onClose:Gn,isMaxTag:!!en}))},qi=function(vn){var Bn=vn.disabled,hn=vn.label,Yn=vn.value,Gn=!Ai&&!Bn,en=hn;if(typeof pn=="number"&&(typeof hn=="string"||typeof hn=="number")){var ri=String(en);ri.length>pn&&(en="".concat(ri.slice(0,pn),"..."))}var Bi=function(Ki){Ki&&Ki.stopPropagation(),Tr(vn)};return typeof ir=="function"?nr(Yn,en,Bn,Gn,Bi):Hi(vn,en,Bn,Gn,Bi)},Zi=function(vn){if(!zt.length)return null;var Bn=typeof yr=="function"?yr(vn):yr;return typeof ir=="function"?nr(void 0,Bn,!1,!1,void 0,!0):Hi({title:Bn},Bn,!1)},di=Be.createElement("div",{className:"".concat(yn,"-search"),style:{width:Xr},onFocus:function(){ci(!0)},onBlur:function(){ci(!1)}},Be.createElement(Lt,{ref:je,open:pi,prefixCls:gi,id:fi,inputElement:null,disabled:Ai,autoFocus:_i,autoComplete:Jn,editable:Ii,activeDescendantId:ji,value:rt,onKeyDown:br,onMouseDown:_r,onChange:Br,onPaste:Ar,onCompositionStart:Wn,onCompositionEnd:xr,onBlur:$n,tabIndex:ln,attrs:(0,Ye.Z)($t,!0)}),Be.createElement("span",{ref:ar,className:"".concat(yn,"-search-mirror"),"aria-hidden":!0},rt,"\xA0")),dt=Be.createElement(Qe.Z,{prefixCls:"".concat(yn,"-overflow"),data:zt,renderItem:qi,renderRest:Zi,suffix:di,itemKey:Tt,maxCount:Wr});return Be.createElement("span",{className:"".concat(yn,"-wrap")},dt,!zt.length&&!rt&&Be.createElement("span",{className:"".concat(yn,"-placeholder")},Pi))},Nn=nn,Rt=function($t){var fi=$t.inputElement,gi=$t.prefixCls,zt=$t.id,pi=$t.inputRef,Fi=$t.disabled,Cn=$t.autoFocus,je=$t.autoComplete,Pi=$t.activeDescendantId,Ai=$t.mode,Rn=$t.open,Ji=$t.values,_i=$t.placeholder,Jn=$t.tabIndex,ji=$t.showSearch,ln=$t.searchValue,vr=$t.activeValue,Wr=$t.maxLength,pn=$t.onInputKeyDown,ur=$t.onInputMouseDown,yr=$t.onInputChange,ir=$t.onInputPaste,pr=$t.onInputCompositionStart,Tr=$t.onInputCompositionEnd,Br=$t.onInputBlur,Ar=$t.title,br=Be.useState(!1),_r=(0,He.Z)(br,2),Wn=_r[0],xr=_r[1],$n=Ai==="combobox",ar=$n||ji,Nr=Ji[0],Sr=ln||"";$n&&vr&&!Wn&&(Sr=vr),Be.useEffect(function(){$n&&xr(!1)},[$n,vr]);var Xr=Ai!=="combobox"&&!Rn&&!ji?!1:!!Sr,Zr=Ar===void 0?Wt(Nr):Ar,Rr=Be.useMemo(function(){return Nr?null:Be.createElement("span",{className:"".concat(gi,"-selection-placeholder"),style:Xr?{visibility:"hidden"}:void 0},_i)},[Nr,Xr,_i,gi]);return Be.createElement("span",{className:"".concat(gi,"-selection-wrap")},Be.createElement("span",{className:"".concat(gi,"-selection-search")},Be.createElement(Lt,{ref:pi,prefixCls:gi,id:zt,open:Rn,inputElement:fi,disabled:Fi,autoFocus:Cn,autoComplete:je,editable:ar,activeDescendantId:Pi,value:Sr,onKeyDown:pn,onMouseDown:ur,onChange:function(Ln){xr(!0),yr(Ln)},onPaste:ir,onCompositionStart:pr,onCompositionEnd:Tr,onBlur:Br,tabIndex:Jn,attrs:(0,Ye.Z)($t,!0),maxLength:$n?Wr:void 0})),!$n&&Nr?Be.createElement("span",{className:"".concat(gi,"-selection-item"),title:Zr,style:Xr?{visibility:"hidden"}:void 0},Nr.label):null,Rr)},At=Rt,Zt=function($t,fi){var gi=(0,Be.useRef)(null),zt=(0,Be.useRef)(!1),pi=$t.prefixCls,Fi=$t.open,Cn=$t.mode,je=$t.showSearch,Pi=$t.tokenWithEnter,Ai=$t.disabled,Rn=$t.prefix,Ji=$t.autoClearSearchValue,_i=$t.onSearch,Jn=$t.onSearchSubmit,ji=$t.onToggleOpen,ln=$t.onInputKeyDown,vr=$t.onInputBlur,Wr=$t.domRef;Be.useImperativeHandle(fi,function(){return{focus:function(Zr){gi.current.focus(Zr)},blur:function(){gi.current.blur()}}});var pn=Pe(0),ur=(0,He.Z)(pn,2),yr=ur[0],ir=ur[1],pr=function(Zr){var Rr=Zr.which,So=gi.current instanceof HTMLTextAreaElement;!So&&Fi&&(Rr===We.Z.UP||Rr===We.Z.DOWN)&&Zr.preventDefault(),ln&&ln(Zr),Rr===We.Z.ENTER&&Cn==="tags"&&!zt.current&&!Fi&&(Jn==null||Jn(Zr.target.value)),!(So&&!Fi&&~[We.Z.UP,We.Z.DOWN,We.Z.LEFT,We.Z.RIGHT].indexOf(Rr))&&tt(Rr)&&ji(!0)},Tr=function(){ir(!0)},Br=(0,Be.useRef)(null),Ar=function(Zr){_i(Zr,!0,zt.current)!==!1&&ji(!0)},br=function(){zt.current=!0},_r=function(Zr){zt.current=!1,Cn!=="combobox"&&Ar(Zr.target.value)},Wn=function(Zr){var Rr=Zr.target.value;if(Pi&&Br.current&&/[\r\n]/.test(Br.current)){var So=Br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Rr=Rr.replace(So,Br.current)}Br.current=null,Ar(Rr)},xr=function(Zr){var Rr=Zr.clipboardData,So=Rr==null?void 0:Rr.getData("text");Br.current=So||""},$n=function(Zr){var Rr=Zr.target;if(Rr!==gi.current){var So=document.body.style.msTouchAction!==void 0;So?setTimeout(function(){gi.current.focus()}):gi.current.focus()}},ar=function(Zr){var Rr=yr();Zr.target!==gi.current&&!Rr&&!(Cn==="combobox"&&Ai)&&Zr.preventDefault(),(Cn!=="combobox"&&(!je||!Rr)||!Fi)&&(Fi&&Ji!==!1&&_i("",!0,!1),ji())},Nr={inputRef:gi,onInputKeyDown:pr,onInputMouseDown:Tr,onInputChange:Wn,onInputPaste:xr,onInputCompositionStart:br,onInputCompositionEnd:_r,onInputBlur:vr},Sr=Cn==="multiple"||Cn==="tags"?Be.createElement(Nn,(0,oe.Z)({},$t,Nr)):Be.createElement(At,(0,oe.Z)({},$t,Nr));return Be.createElement("div",{ref:Wr,className:"".concat(pi,"-selector"),onClick:$n,onMouseDown:ar},Rn&&Be.createElement("div",{className:"".concat(pi,"-prefix")},Rn),Sr)},In=Be.forwardRef(Zt),Dn=In,qe=ae(65030),Oe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Le=function($t){var fi=$t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fi,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fi,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fi,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fi,adjustY:1},htmlRegion:"scroll"}}},Ge=function($t,fi){var gi=$t.prefixCls,zt=$t.disabled,pi=$t.visible,Fi=$t.children,Cn=$t.popupElement,je=$t.animation,Pi=$t.transitionName,Ai=$t.dropdownStyle,Rn=$t.dropdownClassName,Ji=$t.direction,_i=Ji===void 0?"ltr":Ji,Jn=$t.placement,ji=$t.builtinPlacements,ln=$t.dropdownMatchSelectWidth,vr=$t.dropdownRender,Wr=$t.dropdownAlign,pn=$t.getPopupContainer,ur=$t.empty,yr=$t.getTriggerDOMNode,ir=$t.onPopupVisibleChange,pr=$t.onPopupMouseEnter,Tr=(0,Te.Z)($t,Oe),Br="".concat(gi,"-dropdown"),Ar=Cn;vr&&(Ar=vr(Cn));var br=Be.useMemo(function(){return ji||Le(ln)},[ji,ln]),_r=je?"".concat(Br,"-").concat(je):Pi,Wn=typeof ln=="number",xr=Be.useMemo(function(){return Wn?null:ln===!1?"minWidth":"width"},[ln,Wn]),$n=Ai;Wn&&($n=(0,Ie.Z)((0,Ie.Z)({},$n),{},{width:ln}));var ar=Be.useRef(null);return Be.useImperativeHandle(fi,function(){return{getPopupElement:function(){var Sr;return(Sr=ar.current)===null||Sr===void 0?void 0:Sr.popupElement}}}),Be.createElement(qe.Z,(0,oe.Z)({},Tr,{showAction:ir?["click"]:[],hideAction:ir?["click"]:[],popupPlacement:Jn||(_i==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:br,prefixCls:Br,popupTransitionName:_r,popup:Be.createElement("div",{onMouseEnter:pr},Ar),ref:ar,stretch:xr,popupAlign:Wr,popupVisible:pi,getPopupContainer:pn,popupClassName:Je()(Rn,(0,ke.Z)({},"".concat(Br,"-empty"),ur)),popupStyle:$n,getTriggerDOMNode:yr,onPopupVisibleChange:ir}),Fi)},it=Be.forwardRef(Ge),De=it,ht=ae(57879);function on(Ct,$t){var fi=Ct.key,gi;return"value"in Ct&&(gi=Ct.value),fi!=null?fi:gi!==void 0?gi:"rc-index-key-".concat($t)}function An(Ct){return typeof Ct!="undefined"&&!Number.isNaN(Ct)}function Zn(Ct,$t){var fi=Ct||{},gi=fi.label,zt=fi.value,pi=fi.options,Fi=fi.groupLabel,Cn=gi||($t?"children":"label");return{label:Cn,value:zt||"value",options:pi||"options",groupLabel:Fi||Cn}}function Ft(Ct){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fi=$t.fieldNames,gi=$t.childrenAsData,zt=[],pi=Zn(fi,!1),Fi=pi.label,Cn=pi.value,je=pi.options,Pi=pi.groupLabel;function Ai(Rn,Ji){Array.isArray(Rn)&&Rn.forEach(function(_i){if(Ji||!(je in _i)){var Jn=_i[Cn];zt.push({key:on(_i,zt.length),groupOption:Ji,data:_i,label:_i[Fi],value:Jn})}else{var ji=_i[Pi];ji===void 0&&gi&&(ji=_i.label),zt.push({key:on(_i,zt.length),group:!0,data:_i,label:ji}),Ai(_i[je],!0)}})}return Ai(Ct,!1),zt}function It(Ct){var $t=(0,Ie.Z)({},Ct);return"props"in $t||Object.defineProperty($t,"props",{get:function(){return(0,Ke.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$t}}),$t}var Gt=function($t,fi,gi){if(!fi||!fi.length)return null;var zt=!1,pi=function Cn(je,Pi){var Ai=(0,ht.Z)(Pi),Rn=Ai[0],Ji=Ai.slice(1);if(!Rn)return[je];var _i=je.split(Rn);return zt=zt||_i.length>1,_i.reduce(function(Jn,ji){return[].concat((0,Ce.Z)(Jn),(0,Ce.Z)(Cn(ji,Ji)))},[]).filter(Boolean)},Fi=pi($t,fi);return zt?typeof gi!="undefined"?Fi.slice(0,gi):Fi:null},fn=Be.createContext(null),Pn=fn;function an(Ct){var $t=Ct.visible,fi=Ct.values;if(!$t)return null;var gi=50;return Be.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(fi.slice(0,gi).map(function(zt){var pi=zt.label,Fi=zt.value;return["number","string"].includes((0,ze.Z)(pi))?pi:Fi}).join(", ")),fi.length>gi?", ...":null)}var Ot=["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"],Mn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ht=function($t){return $t==="tags"||$t==="multiple"},Kt=Be.forwardRef(function(Ct,$t){var fi,gi=Ct.id,zt=Ct.prefixCls,pi=Ct.className,Fi=Ct.showSearch,Cn=Ct.tagRender,je=Ct.direction,Pi=Ct.omitDomProps,Ai=Ct.displayValues,Rn=Ct.onDisplayValuesChange,Ji=Ct.emptyOptions,_i=Ct.notFoundContent,Jn=_i===void 0?"Not Found":_i,ji=Ct.onClear,ln=Ct.mode,vr=Ct.disabled,Wr=Ct.loading,pn=Ct.getInputElement,ur=Ct.getRawInputElement,yr=Ct.open,ir=Ct.defaultOpen,pr=Ct.onDropdownVisibleChange,Tr=Ct.activeValue,Br=Ct.onActiveValueChange,Ar=Ct.activeDescendantId,br=Ct.searchValue,_r=Ct.autoClearSearchValue,Wn=Ct.onSearch,xr=Ct.onSearchSplit,$n=Ct.tokenSeparators,ar=Ct.allowClear,Nr=Ct.prefix,Sr=Ct.suffixIcon,Xr=Ct.clearIcon,Zr=Ct.OptionList,Rr=Ct.animation,So=Ct.transitionName,Ln=Ct.dropdownStyle,ci=Ct.dropdownClassName,yn=Ct.dropdownMatchSelectWidth,rt=Ct.dropdownRender,Ii=Ct.dropdownAlign,Hi=Ct.placement,nr=Ct.builtinPlacements,qi=Ct.getPopupContainer,Zi=Ct.showAction,di=Zi===void 0?[]:Zi,dt=Ct.onFocus,gn=Ct.onBlur,vn=Ct.onKeyUp,Bn=Ct.onKeyDown,hn=Ct.onMouseDown,Yn=(0,Te.Z)(Ct,Ot),Gn=Ht(ln),en=(Fi!==void 0?Fi:Gn)||ln==="combobox",ri=(0,Ie.Z)({},Yn);Mn.forEach(function(Zo){delete ri[Zo]}),Pi==null||Pi.forEach(function(Zo){delete ri[Zo]});var Bi=Be.useState(!1),dr=(0,He.Z)(Bi,2),Ki=dr[0],sr=dr[1];Be.useEffect(function(){sr((0,Fe.Z)())},[]);var gr=Be.useRef(null),wr=Be.useRef(null),zr=Be.useRef(null),eo=Be.useRef(null),yo=Be.useRef(null),xn=Be.useRef(!1),so=Ee(),Qr=(0,He.Z)(so,3),Lr=Qr[0],Cr=Qr[1],fo=Qr[2];Be.useImperativeHandle($t,function(){var Zo,Ro;return{focus:(Zo=eo.current)===null||Zo===void 0?void 0:Zo.focus,blur:(Ro=eo.current)===null||Ro===void 0?void 0:Ro.blur,scrollTo:function(mr){var Xa;return(Xa=yo.current)===null||Xa===void 0?void 0:Xa.scrollTo(mr)},nativeElement:gr.current||wr.current}});var Co=Be.useMemo(function(){var Zo;if(ln!=="combobox")return br;var Ro=(Zo=Ai[0])===null||Zo===void 0?void 0:Zo.value;return typeof Ro=="string"||typeof Ro=="number"?String(Ro):""},[br,ln,Ai]),Fn=ln==="combobox"&&typeof pn=="function"&&pn()||null,Jr=typeof ur=="function"&&ur(),Do=(0,te.x1)(wr,Jr==null||(fi=Jr.props)===null||fi===void 0?void 0:fi.ref),ma=Be.useState(!1),Ga=(0,He.Z)(ma,2),js=Ga[0],as=Ga[1];(0,wt.Z)(function(){as(!0)},[]);var Fr=(0,ot.Z)(!1,{defaultValue:ir,value:yr}),la=(0,He.Z)(Fr,2),ua=la[0],Ua=la[1],ca=js?ua:!1,Ea=!Jn&&Ji;(vr||Ea&&ca&&ln==="combobox")&&(ca=!1);var $i=Ea?!1:ca,Mr=Be.useCallback(function(Zo){var Ro=Zo!==void 0?Zo:!ca;vr||(Ua(Ro),ca!==Ro&&(pr==null||pr(Ro)))},[vr,ca,Ua,pr]),Kr=Be.useMemo(function(){return($n||[]).some(function(Zo){return[`
`,`\r
`].includes(Zo)})},[$n]),uo=Be.useContext(Pn)||{},ho=uo.maxCount,jo=uo.rawValues,Dr=function(Ro,Ha,mr){if(!(Gn&&An(ho)&&(jo==null?void 0:jo.size)>=ho)){var Xa=!0,Qt=Ro;Br==null||Br(null);var Ti=Gt(Ro,$n,An(ho)?ho-jo.size:void 0),pl=mr?null:Ti;return ln!=="combobox"&&pl&&(Qt="",xr==null||xr(pl),Mr(!1),Xa=!1),Wn&&Co!==Qt&&Wn(Qt,{source:Ha?"typing":"effect"}),Xa}},Ya=function(Ro){!Ro||!Ro.trim()||Wn(Ro,{source:"submit"})};Be.useEffect(function(){!ca&&!Gn&&ln!=="combobox"&&Dr("",!1,!1)},[ca]),Be.useEffect(function(){ua&&vr&&Ua(!1),vr&&!xn.current&&Cr(!1)},[vr]);var va=Pe(),fa=(0,He.Z)(va,2),vo=fa[0],Wo=fa[1],gs=Be.useRef(!1),Jo=function(Ro){var Ha=vo(),mr=Ro.key,Xa=mr==="Enter";if(Xa&&(ln!=="combobox"&&Ro.preventDefault(),ca||Mr(!0)),Wo(!!Co),mr==="Backspace"&&!Ha&&Gn&&!Co&&Ai.length){for(var Qt=(0,Ce.Z)(Ai),Ti=null,pl=Qt.length-1;pl>=0;pl-=1){var Jl=Qt[pl];if(!Jl.disabled){Qt.splice(pl,1),Ti=Jl;break}}Ti&&Rn(Qt,{type:"remove",values:[Ti]})}for(var Ma=arguments.length,Qa=new Array(Ma>1?Ma-1:0),qs=1;qs<Ma;qs++)Qa[qs-1]=arguments[qs];if(ca&&(!Xa||!gs.current)){var gl;Xa&&(gs.current=!0),(gl=yo.current)===null||gl===void 0||gl.onKeyDown.apply(gl,[Ro].concat(Qa))}Bn==null||Bn.apply(void 0,[Ro].concat(Qa))},ss=function(Ro){for(var Ha=arguments.length,mr=new Array(Ha>1?Ha-1:0),Xa=1;Xa<Ha;Xa++)mr[Xa-1]=arguments[Xa];if(ca){var Qt;(Qt=yo.current)===null||Qt===void 0||Qt.onKeyUp.apply(Qt,[Ro].concat(mr))}Ro.key==="Enter"&&(gs.current=!1),vn==null||vn.apply(void 0,[Ro].concat(mr))},Os=function(Ro){var Ha=Ai.filter(function(mr){return mr!==Ro});Rn(Ha,{type:"remove",values:[Ro]})},ws=function(){gs.current=!1},Pa=Be.useRef(!1),Al=function(){Cr(!0),vr||(dt&&!Pa.current&&dt.apply(void 0,arguments),di.includes("focus")&&Mr(!0)),Pa.current=!0},Uu=function(){xn.current=!0,Cr(!1,function(){Pa.current=!1,xn.current=!1,Mr(!1)}),!vr&&(Co&&(ln==="tags"?Wn(Co,{source:"submit"}):ln==="multiple"&&Wn("",{source:"blur"})),gn&&gn.apply(void 0,arguments))},Rs=[];Be.useEffect(function(){return function(){Rs.forEach(function(Zo){return clearTimeout(Zo)}),Rs.splice(0,Rs.length)}},[]);var Js=function(Ro){var Ha,mr=Ro.target,Xa=(Ha=zr.current)===null||Ha===void 0?void 0:Ha.getPopupElement();if(Xa&&Xa.contains(mr)){var Qt=setTimeout(function(){var Ma=Rs.indexOf(Qt);if(Ma!==-1&&Rs.splice(Ma,1),fo(),!Ki&&!Xa.contains(document.activeElement)){var Qa;(Qa=eo.current)===null||Qa===void 0||Qa.focus()}});Rs.push(Qt)}for(var Ti=arguments.length,pl=new Array(Ti>1?Ti-1:0),Jl=1;Jl<Ti;Jl++)pl[Jl-1]=arguments[Jl];hn==null||hn.apply(void 0,[Ro].concat(pl))},Ds=Be.useState({}),Ql=(0,He.Z)(Ds,2),rc=Ql[1];function oc(){rc({})}var Ia;Jr&&(Ia=function(Ro){Mr(Ro)}),Ne(function(){var Zo;return[gr.current,(Zo=zr.current)===null||Zo===void 0?void 0:Zo.getPopupElement()]},$i,Mr,!!Jr);var Hu=Be.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},Ct),{},{notFoundContent:Jn,open:ca,triggerOpen:$i,id:gi,showSearch:en,multiple:Gn,toggleOpen:Mr})},[Ct,Jn,$i,ca,gi,en,Gn,Mr]),ac=!!Sr||Wr,cu;ac&&(cu=Be.createElement(he,{className:Je()("".concat(zt,"-arrow"),(0,ke.Z)({},"".concat(zt,"-arrow-loading"),Wr)),customizeIcon:Sr,customizeIconProps:{loading:Wr,searchValue:Co,open:ca,focused:Lr,showSearch:en}}));var Pu=function(){var Ro;ji==null||ji(),(Ro=eo.current)===null||Ro===void 0||Ro.focus(),Rn([],{type:"clear",values:Ai}),Dr("",!1,!1)},ls=ue(zt,Pu,Ai,ar,Xr,vr,Co,ln),Es=ls.allowClear,Va=ls.clearIcon,is=Be.createElement(Zr,{ref:yo}),du=Je()(zt,pi,(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(zt,"-focused"),Lr),"".concat(zt,"-multiple"),Gn),"".concat(zt,"-single"),!Gn),"".concat(zt,"-allow-clear"),ar),"".concat(zt,"-show-arrow"),ac),"".concat(zt,"-disabled"),vr),"".concat(zt,"-loading"),Wr),"".concat(zt,"-open"),ca),"".concat(zt,"-customize-input"),Fn),"".concat(zt,"-show-search"),en)),Cs=Be.createElement(De,{ref:zr,disabled:vr,prefixCls:zt,visible:$i,popupElement:is,animation:Rr,transitionName:So,dropdownStyle:Ln,dropdownClassName:ci,direction:je,dropdownMatchSelectWidth:yn,dropdownRender:rt,dropdownAlign:Ii,placement:Hi,builtinPlacements:nr,getPopupContainer:qi,empty:Ji,getTriggerDOMNode:function(Ro){return wr.current||Ro},onPopupVisibleChange:Ia,onPopupMouseEnter:oc},Jr?Be.cloneElement(Jr,{ref:Do}):Be.createElement(Dn,(0,oe.Z)({},Ct,{domRef:wr,prefixCls:zt,inputElement:Fn,ref:eo,id:gi,prefix:Nr,showSearch:en,autoClearSearchValue:_r,mode:ln,activeDescendantId:Ar,tagRender:Cn,values:Ai,open:ca,onToggleOpen:Mr,activeValue:Tr,searchValue:Co,onSearch:Dr,onSearchSubmit:Ya,onRemove:Os,tokenWithEnter:Kr,onInputBlur:ws}))),$o;return Jr?$o=Cs:$o=Be.createElement("div",(0,oe.Z)({className:du},ri,{ref:gr,onMouseDown:Js,onKeyDown:Jo,onKeyUp:ss,onFocus:Al,onBlur:Uu}),Be.createElement(an,{visible:Lr&&!ca,values:Ai}),Cs,cu,Es&&Va),Be.createElement(fe.Provider,{value:Hu},$o)}),un=Kt,Vn=function(){return null};Vn.isSelectOptGroup=!0;var bn=Vn,mt=function(){return null};mt.isSelectOption=!0;var jn=mt,Kn=ae(80547),Ut=ae(2738),yi=ae(6790);function Vi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kn=["disabled","title","children","style","className"];function Vt(Ct){return typeof Ct=="string"||typeof Ct=="number"}var Qn=function($t,fi){var gi=me(),zt=gi.prefixCls,pi=gi.id,Fi=gi.open,Cn=gi.multiple,je=gi.mode,Pi=gi.searchValue,Ai=gi.toggleOpen,Rn=gi.notFoundContent,Ji=gi.onPopupScroll,_i=Be.useContext(Pn),Jn=_i.maxCount,ji=_i.flattenOptions,ln=_i.onActiveValue,vr=_i.defaultActiveFirstOption,Wr=_i.onSelect,pn=_i.menuItemSelectedIcon,ur=_i.rawValues,yr=_i.fieldNames,ir=_i.virtual,pr=_i.direction,Tr=_i.listHeight,Br=_i.listItemHeight,Ar=_i.optionRender,br="".concat(zt,"-item"),_r=(0,Kn.Z)(function(){return ji},[Fi,ji],function(Zi,di){return di[0]&&Zi[1]!==di[1]}),Wn=Be.useRef(null),xr=Be.useMemo(function(){return Cn&&An(Jn)&&(ur==null?void 0:ur.size)>=Jn},[Cn,Jn,ur==null?void 0:ur.size]),$n=function(di){di.preventDefault()},ar=function(di){var dt;(dt=Wn.current)===null||dt===void 0||dt.scrollTo(typeof di=="number"?{index:di}:di)},Nr=Be.useCallback(function(Zi){return je==="combobox"?!1:ur.has(Zi)},[je,(0,Ce.Z)(ur).toString(),ur.size]),Sr=function(di){for(var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gn=_r.length,vn=0;vn<gn;vn+=1){var Bn=(di+vn*dt+gn)%gn,hn=_r[Bn]||{},Yn=hn.group,Gn=hn.data;if(!Yn&&!(Gn!=null&&Gn.disabled)&&(Nr(Gn.value)||!xr))return Bn}return-1},Xr=Be.useState(function(){return Sr(0)}),Zr=(0,He.Z)(Xr,2),Rr=Zr[0],So=Zr[1],Ln=function(di){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;So(di);var gn={source:dt?"keyboard":"mouse"},vn=_r[di];if(!vn){ln(null,-1,gn);return}ln(vn.value,di,gn)};(0,Be.useEffect)(function(){Ln(vr!==!1?Sr(0):-1)},[_r.length,Pi]);var ci=Be.useCallback(function(Zi){return je==="combobox"?String(Zi).toLowerCase()===Pi.toLowerCase():ur.has(Zi)},[je,Pi,(0,Ce.Z)(ur).toString(),ur.size]);(0,Be.useEffect)(function(){var Zi=setTimeout(function(){if(!Cn&&Fi&&ur.size===1){var dt=Array.from(ur)[0],gn=_r.findIndex(function(vn){var Bn=vn.data;return Pi?String(Bn.value).startsWith(Pi):Bn.value===dt});gn!==-1&&(Ln(gn),ar(gn))}});if(Fi){var di;(di=Wn.current)===null||di===void 0||di.scrollTo(void 0)}return function(){return clearTimeout(Zi)}},[Fi,Pi]);var yn=function(di){di!==void 0&&Wr(di,{selected:!ur.has(di)}),Cn||Ai(!1)};if(Be.useImperativeHandle(fi,function(){return{onKeyDown:function(di){var dt=di.which,gn=di.ctrlKey;switch(dt){case We.Z.N:case We.Z.P:case We.Z.UP:case We.Z.DOWN:{var vn=0;if(dt===We.Z.UP?vn=-1:dt===We.Z.DOWN?vn=1:Vi()&&gn&&(dt===We.Z.N?vn=1:dt===We.Z.P&&(vn=-1)),vn!==0){var Bn=Sr(Rr+vn,vn);ar(Bn),Ln(Bn,!0)}break}case We.Z.TAB:case We.Z.ENTER:{var hn,Yn=_r[Rr];Yn&&!(Yn!=null&&(hn=Yn.data)!==null&&hn!==void 0&&hn.disabled)&&!xr?yn(Yn.value):yn(void 0),Fi&&di.preventDefault();break}case We.Z.ESC:Ai(!1),Fi&&di.stopPropagation()}},onKeyUp:function(){},scrollTo:function(di){ar(di)}}}),_r.length===0)return Be.createElement("div",{role:"listbox",id:"".concat(pi,"_list"),className:"".concat(br,"-empty"),onMouseDown:$n},Rn);var rt=Object.keys(yr).map(function(Zi){return yr[Zi]}),Ii=function(di){return di.label};function Hi(Zi,di){var dt=Zi.group;return{role:dt?"presentation":"option",id:"".concat(pi,"_list_").concat(di)}}var nr=function(di){var dt=_r[di];if(!dt)return null;var gn=dt.data||{},vn=gn.value,Bn=dt.group,hn=(0,Ye.Z)(gn,!0),Yn=Ii(dt);return dt?Be.createElement("div",(0,oe.Z)({"aria-label":typeof Yn=="string"&&!Bn?Yn:null},hn,{key:di},Hi(dt,di),{"aria-selected":ci(vn)}),vn):null},qi={role:"listbox",id:"".concat(pi,"_list")};return Be.createElement(Be.Fragment,null,ir&&Be.createElement("div",(0,oe.Z)({},qi,{style:{height:0,width:0,overflow:"hidden"}}),nr(Rr-1),nr(Rr),nr(Rr+1)),Be.createElement(yi.Z,{itemKey:"key",ref:Wn,data:_r,height:Tr,itemHeight:Br,fullHeight:!1,onMouseDown:$n,onScroll:Ji,virtual:ir,direction:pr,innerProps:ir?null:qi},function(Zi,di){var dt=Zi.group,gn=Zi.groupOption,vn=Zi.data,Bn=Zi.label,hn=Zi.value,Yn=vn.key;if(dt){var Gn,en=(Gn=vn.title)!==null&&Gn!==void 0?Gn:Vt(Bn)?Bn.toString():void 0;return Be.createElement("div",{className:Je()(br,"".concat(br,"-group"),vn.className),title:en},Bn!==void 0?Bn:Yn)}var ri=vn.disabled,Bi=vn.title,dr=vn.children,Ki=vn.style,sr=vn.className,gr=(0,Te.Z)(vn,kn),wr=(0,Ut.Z)(gr,rt),zr=Nr(hn),eo=ri||!zr&&xr,yo="".concat(br,"-option"),xn=Je()(br,yo,sr,(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(yo,"-grouped"),gn),"".concat(yo,"-active"),Rr===di&&!eo),"".concat(yo,"-disabled"),eo),"".concat(yo,"-selected"),zr)),so=Ii(Zi),Qr=!pn||typeof pn=="function"||zr,Lr=typeof so=="number"?so:so||hn,Cr=Vt(Lr)?Lr.toString():void 0;return Bi!==void 0&&(Cr=Bi),Be.createElement("div",(0,oe.Z)({},(0,Ye.Z)(wr),ir?{}:Hi(Zi,di),{"aria-selected":ci(hn),className:xn,title:Cr,onMouseMove:function(){Rr===di||eo||Ln(di)},onClick:function(){eo||yn(hn)},style:Ki}),Be.createElement("div",{className:"".concat(yo,"-content")},typeof Ar=="function"?Ar(Zi,{index:di}):Lr),Be.isValidElement(pn)||zr,Qr&&Be.createElement(he,{className:"".concat(br,"-option-state"),customizeIcon:pn,customizeIconProps:{value:hn,disabled:eo,isSelected:zr}},zr?"\u2713":null))}))},ai=Be.forwardRef(Qn),Un=ai,si=function(Ct,$t){var fi=Be.useRef({values:new Map,options:new Map}),gi=Be.useMemo(function(){var pi=fi.current,Fi=pi.values,Cn=pi.options,je=Ct.map(function(Rn){if(Rn.label===void 0){var Ji;return(0,Ie.Z)((0,Ie.Z)({},Rn),{},{label:(Ji=Fi.get(Rn.value))===null||Ji===void 0?void 0:Ji.label})}return Rn}),Pi=new Map,Ai=new Map;return je.forEach(function(Rn){Pi.set(Rn.value,Rn),Ai.set(Rn.value,$t.get(Rn.value)||Cn.get(Rn.value))}),fi.current.values=Pi,fi.current.options=Ai,je},[Ct,$t]),zt=Be.useCallback(function(pi){return $t.get(pi)||fi.current.options.get(pi)},[$t]);return[gi,zt]};function li(Ct,$t){return jt(Ct).join("").toUpperCase().includes($t)}var Me=function(Ct,$t,fi,gi,zt){return Be.useMemo(function(){if(!fi||gi===!1)return Ct;var pi=$t.options,Fi=$t.label,Cn=$t.value,je=[],Pi=typeof gi=="function",Ai=fi.toUpperCase(),Rn=Pi?gi:function(_i,Jn){return zt?li(Jn[zt],Ai):Jn[pi]?li(Jn[Fi!=="children"?Fi:"label"],Ai):li(Jn[Cn],Ai)},Ji=Pi?function(_i){return It(_i)}:function(_i){return _i};return Ct.forEach(function(_i){if(_i[pi]){var Jn=Rn(fi,Ji(_i));if(Jn)je.push(_i);else{var ji=_i[pi].filter(function(ln){return Rn(fi,Ji(ln))});ji.length&&je.push((0,Ie.Z)((0,Ie.Z)({},_i),{},(0,ke.Z)({},pi,ji)))}return}Rn(fi,Ji(_i))&&je.push(_i)}),je},[Ct,gi,zt,fi,$t])},ii=ae(6551),ti=ae(11592),On=["children","value"],ni=["children"];function Ei(Ct){var $t=Ct,fi=$t.key,gi=$t.props,zt=gi.children,pi=gi.value,Fi=(0,Te.Z)(gi,On);return(0,Ie.Z)({key:fi,value:pi!==void 0?pi:fi,children:zt},Fi)}function ui(Ct){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ti.Z)(Ct).map(function(fi,gi){if(!Be.isValidElement(fi)||!fi.type)return null;var zt=fi,pi=zt.type.isSelectOptGroup,Fi=zt.key,Cn=zt.props,je=Cn.children,Pi=(0,Te.Z)(Cn,ni);return $t||!pi?Ei(fi):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(Fi===null?gi:Fi,"__"),label:Fi},Pi),{},{options:ui(je)})}).filter(function(fi){return fi})}var tr=function($t,fi,gi,zt,pi){return Be.useMemo(function(){var Fi=$t,Cn=!$t;Cn&&(Fi=ui(fi));var je=new Map,Pi=new Map,Ai=function(_i,Jn,ji){ji&&typeof ji=="string"&&_i.set(Jn[ji],Jn)},Rn=function Ji(_i){for(var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ji=0;ji<_i.length;ji+=1){var ln=_i[ji];!ln[gi.options]||Jn?(je.set(ln[gi.value],ln),Ai(Pi,ln,gi.label),Ai(Pi,ln,zt),Ai(Pi,ln,pi)):Ji(ln[gi.options],!0)}};return Rn(Fi),{options:Fi,valueOptions:je,labelOptions:Pi}},[$t,fi,gi,zt,pi])},Sn=tr;function sn(Ct){var $t=Be.useRef();$t.current=Ct;var fi=Be.useCallback(function(){return $t.current.apply($t,arguments)},[]);return fi}function dn(Ct){var $t=Ct.mode,fi=Ct.options,gi=Ct.children,zt=Ct.backfill,pi=Ct.allowClear,Fi=Ct.placeholder,Cn=Ct.getInputElement,je=Ct.showSearch,Pi=Ct.onSearch,Ai=Ct.defaultOpen,Rn=Ct.autoFocus,Ji=Ct.labelInValue,_i=Ct.value,Jn=Ct.inputValue,ji=Ct.optionLabelProp,ln=isMultiple($t),vr=je!==void 0?je:ln||$t==="combobox",Wr=fi||convertChildrenToData(gi);if(warning($t!=="tags"||Wr.every(function(ir){return!ir.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$t==="tags"||$t==="combobox"){var pn=Wr.some(function(ir){return ir.options?ir.options.some(function(pr){return typeof("value"in pr?pr.value:pr.key)=="number"}):typeof("value"in ir?ir.value:ir.key)=="number"});warning(!pn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning($t!=="combobox"||!ji,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning($t==="combobox"||!zt,"`backfill` only works with `combobox` mode."),warning($t==="combobox"||!Cn,"`getInputElement` only work with `combobox` mode."),noteOnce($t!=="combobox"||!Cn||!pi||!Fi,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Pi&&!vr&&$t!=="combobox"&&$t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ai||Rn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_i!=null){var ur=toArray(_i);warning(!Ji||ur.every(function(ir){return _typeof(ir)==="object"&&("key"in ir||"value"in ir)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ln||Array.isArray(_i),"`value` should be array when `mode` is `multiple` or `tags`")}if(gi){var yr=null;toNodeArray(gi).some(function(ir){if(!React.isValidElement(ir)||!ir.type)return!1;var pr=ir,Tr=pr.type;if(Tr.isSelectOption)return!1;if(Tr.isSelectOptGroup){var Br=toNodeArray(ir.props.children).every(function(Ar){return!React.isValidElement(Ar)||!ir.type||Ar.type.isSelectOption?!0:(yr=Ar.type,!1)});return!Br}return yr=Tr,!0}),yr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(yr.displayName||yr.name||yr,"`.")),warning(Jn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _n(Ct,$t){if(Ct){var fi=function gi(zt){for(var pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fi=0;Fi<zt.length;Fi++){var Cn=zt[Fi];if(Cn[$t==null?void 0:$t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!pi&&Array.isArray(Cn[$t==null?void 0:$t.options])&&gi(Cn[$t==null?void 0:$t.options],!0))break}};fi(Ct)}}var Ri=null,qn=["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"],Ni=["inputValue"];function mn(Ct){return!Ct||(0,ze.Z)(Ct)!=="object"}var Hn=Be.forwardRef(function(Ct,$t){var fi=Ct.id,gi=Ct.mode,zt=Ct.prefixCls,pi=zt===void 0?"rc-select":zt,Fi=Ct.backfill,Cn=Ct.fieldNames,je=Ct.inputValue,Pi=Ct.searchValue,Ai=Ct.onSearch,Rn=Ct.autoClearSearchValue,Ji=Rn===void 0?!0:Rn,_i=Ct.onSelect,Jn=Ct.onDeselect,ji=Ct.dropdownMatchSelectWidth,ln=ji===void 0?!0:ji,vr=Ct.filterOption,Wr=Ct.filterSort,pn=Ct.optionFilterProp,ur=Ct.optionLabelProp,yr=Ct.options,ir=Ct.optionRender,pr=Ct.children,Tr=Ct.defaultActiveFirstOption,Br=Ct.menuItemSelectedIcon,Ar=Ct.virtual,br=Ct.direction,_r=Ct.listHeight,Wn=_r===void 0?200:_r,xr=Ct.listItemHeight,$n=xr===void 0?20:xr,ar=Ct.labelRender,Nr=Ct.value,Sr=Ct.defaultValue,Xr=Ct.labelInValue,Zr=Ct.onChange,Rr=Ct.maxCount,So=(0,Te.Z)(Ct,qn),Ln=(0,ii.ZP)(fi),ci=Ht(gi),yn=!!(!yr&&pr),rt=Be.useMemo(function(){return vr===void 0&&gi==="combobox"?!1:vr},[vr,gi]),Ii=Be.useMemo(function(){return Zn(Cn,yn)},[JSON.stringify(Cn),yn]),Hi=(0,ot.Z)("",{value:Pi!==void 0?Pi:je,postState:function(Kr){return Kr||""}}),nr=(0,He.Z)(Hi,2),qi=nr[0],Zi=nr[1],di=Sn(yr,pr,Ii,pn,ur),dt=di.valueOptions,gn=di.labelOptions,vn=di.options,Bn=Be.useCallback(function(Mr){var Kr=jt(Mr);return Kr.map(function(uo){var ho,jo,Dr,Ya,va;if(mn(uo))ho=uo;else{var fa;Dr=uo.key,jo=uo.label,ho=(fa=uo.value)!==null&&fa!==void 0?fa:Dr}var vo=dt.get(ho);if(vo){var Wo;if(jo===void 0&&(jo=vo==null?void 0:vo[ur||Ii.label]),Dr===void 0&&(Dr=(Wo=vo==null?void 0:vo.key)!==null&&Wo!==void 0?Wo:ho),Ya=vo==null?void 0:vo.disabled,va=vo==null?void 0:vo.title,0)var gs}return{label:jo,value:ho,key:Dr,disabled:Ya,title:va}})},[Ii,ur,dt]),hn=(0,ot.Z)(Sr,{value:Nr}),Yn=(0,He.Z)(hn,2),Gn=Yn[0],en=Yn[1],ri=Be.useMemo(function(){var Mr,Kr=ci&&Gn===null?[]:Gn,uo=Bn(Kr);return gi==="combobox"&&ut((Mr=uo[0])===null||Mr===void 0?void 0:Mr.value)?[]:uo},[Gn,Bn,gi,ci]),Bi=si(ri,dt),dr=(0,He.Z)(Bi,2),Ki=dr[0],sr=dr[1],gr=Be.useMemo(function(){if(!gi&&Ki.length===1){var Mr=Ki[0];if(Mr.value===null&&(Mr.label===null||Mr.label===void 0))return[]}return Ki.map(function(Kr){var uo;return(0,Ie.Z)((0,Ie.Z)({},Kr),{},{label:(uo=typeof ar=="function"?ar(Kr):Kr.label)!==null&&uo!==void 0?uo:Kr.value})})},[gi,Ki,ar]),wr=Be.useMemo(function(){return new Set(Ki.map(function(Mr){return Mr.value}))},[Ki]);Be.useEffect(function(){if(gi==="combobox"){var Mr,Kr=(Mr=Ki[0])===null||Mr===void 0?void 0:Mr.value;Zi(pt(Kr)?String(Kr):"")}},[Ki]);var zr=sn(function(Mr,Kr){var uo=Kr!=null?Kr:Mr;return(0,ke.Z)((0,ke.Z)({},Ii.value,Mr),Ii.label,uo)}),eo=Be.useMemo(function(){if(gi!=="tags")return vn;var Mr=(0,Ce.Z)(vn),Kr=function(ho){return dt.has(ho)};return(0,Ce.Z)(Ki).sort(function(uo,ho){return uo.value<ho.value?-1:1}).forEach(function(uo){var ho=uo.value;Kr(ho)||Mr.push(zr(ho,uo.label))}),Mr},[zr,vn,dt,Ki,gi]),yo=Me(eo,Ii,qi,rt,pn),xn=Be.useMemo(function(){return gi!=="tags"||!qi||yo.some(function(Mr){return Mr[pn||"value"]===qi})||yo.some(function(Mr){return Mr[Ii.value]===qi})?yo:[zr(qi)].concat((0,Ce.Z)(yo))},[zr,pn,gi,yo,qi,Ii]),so=function Mr(Kr){var uo=(0,Ce.Z)(Kr).sort(function(ho,jo){return Wr(ho,jo,{searchValue:qi})});return uo.map(function(ho){return Array.isArray(ho.options)?(0,Ie.Z)((0,Ie.Z)({},ho),{},{options:ho.options.length>0?Mr(ho.options):ho.options}):ho})},Qr=Be.useMemo(function(){return Wr?so(xn):xn},[xn,Wr,qi]),Lr=Be.useMemo(function(){return Ft(Qr,{fieldNames:Ii,childrenAsData:yn})},[Qr,Ii,yn]),Cr=function(Kr){var uo=Bn(Kr);if(en(uo),Zr&&(uo.length!==Ki.length||uo.some(function(Dr,Ya){var va;return((va=Ki[Ya])===null||va===void 0?void 0:va.value)!==(Dr==null?void 0:Dr.value)}))){var ho=Xr?uo:uo.map(function(Dr){return Dr.value}),jo=uo.map(function(Dr){return It(sr(Dr.value))});Zr(ci?ho:ho[0],ci?jo:jo[0])}},fo=Be.useState(null),Co=(0,He.Z)(fo,2),Fn=Co[0],Jr=Co[1],Do=Be.useState(0),ma=(0,He.Z)(Do,2),Ga=ma[0],js=ma[1],as=Tr!==void 0?Tr:gi!=="combobox",Fr=Be.useCallback(function(Mr,Kr){var uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ho=uo.source,jo=ho===void 0?"keyboard":ho;js(Kr),Fi&&gi==="combobox"&&Mr!==null&&jo==="keyboard"&&Jr(String(Mr))},[Fi,gi]),la=function(Kr,uo,ho){var jo=function(){var Os,ws=sr(Kr);return[Xr?{label:ws==null?void 0:ws[Ii.label],value:Kr,key:(Os=ws==null?void 0:ws.key)!==null&&Os!==void 0?Os:Kr}:Kr,It(ws)]};if(uo&&_i){var Dr=jo(),Ya=(0,He.Z)(Dr,2),va=Ya[0],fa=Ya[1];_i(va,fa)}else if(!uo&&Jn&&ho!=="clear"){var vo=jo(),Wo=(0,He.Z)(vo,2),gs=Wo[0],Jo=Wo[1];Jn(gs,Jo)}},ua=sn(function(Mr,Kr){var uo,ho=ci?Kr.selected:!0;ho?uo=ci?[].concat((0,Ce.Z)(Ki),[Mr]):[Mr]:uo=Ki.filter(function(jo){return jo.value!==Mr}),Cr(uo),la(Mr,ho),gi==="combobox"?Jr(""):(!Ht||Ji)&&(Zi(""),Jr(""))}),Ua=function(Kr,uo){Cr(Kr);var ho=uo.type,jo=uo.values;(ho==="remove"||ho==="clear")&&jo.forEach(function(Dr){la(Dr.value,!1,ho)})},ca=function(Kr,uo){if(Zi(Kr),Jr(null),uo.source==="submit"){var ho=(Kr||"").trim();if(ho){var jo=Array.from(new Set([].concat((0,Ce.Z)(wr),[ho])));Cr(jo),la(ho,!0),Zi("")}return}uo.source!=="blur"&&(gi==="combobox"&&Cr(Kr),Ai==null||Ai(Kr))},Ea=function(Kr){var uo=Kr;gi!=="tags"&&(uo=Kr.map(function(jo){var Dr=gn.get(jo);return Dr==null?void 0:Dr.value}).filter(function(jo){return jo!==void 0}));var ho=Array.from(new Set([].concat((0,Ce.Z)(wr),(0,Ce.Z)(uo))));Cr(ho),ho.forEach(function(jo){la(jo,!0)})},$i=Be.useMemo(function(){var Mr=Ar!==!1&&ln!==!1;return(0,Ie.Z)((0,Ie.Z)({},di),{},{flattenOptions:Lr,onActiveValue:Fr,defaultActiveFirstOption:as,onSelect:ua,menuItemSelectedIcon:Br,rawValues:wr,fieldNames:Ii,virtual:Mr,direction:br,listHeight:Wn,listItemHeight:$n,childrenAsData:yn,maxCount:Rr,optionRender:ir})},[Rr,di,Lr,Fr,as,ua,Br,wr,Ii,Ar,ln,br,Wn,$n,yn,ir]);return Be.createElement(Pn.Provider,{value:$i},Be.createElement(un,(0,oe.Z)({},So,{id:Ln,prefixCls:pi,ref:$t,omitDomProps:Ni,mode:gi,displayValues:gr,onDisplayValuesChange:Ua,direction:br,searchValue:qi,onSearch:ca,autoClearSearchValue:Ji,onSearchSplit:Ea,dropdownMatchSelectWidth:ln,OptionList:Un,emptyOptions:!Lr.length,activeValue:Fn,activeDescendantId:"".concat(Ln,"_list_").concat(Ga)})))}),Di=Hn;Di.Option=jn,Di.OptGroup=bn;var Yi=Di,mi=Yi},63158:function(_e,be,ae){"use strict";var oe=ae(67711),Ce=ae(52873),ke=ae(16886),Ie=ae(33346),He=ae(59301),Te=ae(92310),ze=ae.n(Te),ot=ae(18929),Ke=ae(10228),Be=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],gt=He.forwardRef(function(Je,wt){var Fe,te=Je.prefixCls,ee=te===void 0?"rc-switch":te,he=Je.className,ue=Je.checked,fe=Je.defaultChecked,me=Je.disabled,Ee=Je.loadingIcon,Pe=Je.checkedChildren,Ne=Je.unCheckedChildren,We=Je.onClick,tt=Je.onChange,Ye=Je.onKeyDown,Qe=(0,Ie.Z)(Je,Be),lt=(0,ot.Z)(!1,{value:ue,defaultValue:fe}),nt=(0,ke.Z)(lt,2),yt=nt[0],vt=nt[1];function St(cn,pt){var ut=yt;return me||(ut=cn,vt(ut),tt==null||tt(ut,pt)),ut}function Lt(cn){cn.which===Ke.Z.LEFT?St(!1,cn):cn.which===Ke.Z.RIGHT&&St(!0,cn),Ye==null||Ye(cn)}function jt(cn){var pt=St(!yt,cn);We==null||We(pt,cn)}var Bt=ze()(ee,he,(Fe={},(0,Ce.Z)(Fe,"".concat(ee,"-checked"),yt),(0,Ce.Z)(Fe,"".concat(ee,"-disabled"),me),Fe));return He.createElement("button",(0,oe.Z)({},Qe,{type:"button",role:"switch","aria-checked":yt,disabled:me,className:Bt,ref:wt,onKeyDown:Lt,onClick:jt}),Ee,He.createElement("span",{className:"".concat(ee,"-inner")},He.createElement("span",{className:"".concat(ee,"-inner-checked")},Pe),He.createElement("span",{className:"".concat(ee,"-inner-unchecked")},Ne)))});gt.displayName="Switch",be.Z=gt},86351:function(_e,be,ae){"use strict";ae.d(be,{R:function(){return Ce},w:function(){return oe}});var oe={},Ce="rc-table-internal-hook"},97347:function(_e,be,ae){"use strict";ae.d(be,{L:function(){return ee},Z:function(){return Ee}});var oe=ae(16886),Ce=ae(52873),ke=ae(15142),Ie=ae(26420),He=ae(98506),Te=ae(33346),ze=ae(11592),ot=ae(48736),Ke=ae(59301),Be=ae(86351),gt=ae(54451);function Je(Pe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ne=="number"?Ne:Ne.endsWith("%")?Pe*parseFloat(Ne)/100:null}function wt(Pe,Ne,We){return Ke.useMemo(function(){if(Ne&&Ne>0){var tt=0,Ye=0;Pe.forEach(function(jt){var Bt=Je(Ne,jt.width);Bt?tt+=Bt:Ye+=1});var Qe=Math.max(Ne,We),lt=Math.max(Qe-tt,Ye),nt=Ye,yt=lt/Ye,vt=0,St=Pe.map(function(jt){var Bt=(0,He.Z)({},jt),cn=Je(Ne,Bt.width);if(cn)Bt.width=cn;else{var pt=Math.floor(yt);Bt.width=nt===1?lt:pt,lt-=pt,nt-=1}return vt+=Bt.width,Bt});if(vt<Qe){var Lt=Qe/vt;lt=Qe,St.forEach(function(jt,Bt){var cn=Math.floor(jt.width*Lt);jt.width=Bt===St.length-1?lt:cn,lt-=cn})}return[St,Math.max(vt,Qe)]}return[Pe,Ne]},[Pe,Ne,We])}var Fe=["children"],te=["fixed"];function ee(Pe){return(0,ze.Z)(Pe).filter(function(Ne){return Ke.isValidElement(Ne)}).map(function(Ne){var We=Ne.key,tt=Ne.props,Ye=tt.children,Qe=(0,Te.Z)(tt,Fe),lt=(0,He.Z)({key:We},Qe);return Ye&&(lt.children=ee(Ye)),lt})}function he(Pe){return Pe.filter(function(Ne){return Ne&&(0,Ie.Z)(Ne)==="object"&&!Ne.hidden}).map(function(Ne){var We=Ne.children;return We&&We.length>0?(0,He.Z)((0,He.Z)({},Ne),{},{children:he(We)}):Ne})}function ue(Pe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Pe.filter(function(We){return We&&(0,Ie.Z)(We)==="object"}).reduce(function(We,tt,Ye){var Qe=tt.fixed,lt=Qe===!0?"left":Qe,nt="".concat(Ne,"-").concat(Ye),yt=tt.children;return yt&&yt.length>0?[].concat((0,ke.Z)(We),(0,ke.Z)(ue(yt,nt).map(function(vt){return(0,He.Z)({fixed:lt},vt)}))):[].concat((0,ke.Z)(We),[(0,He.Z)((0,He.Z)({key:nt},tt),{},{fixed:lt})])},[])}function fe(Pe){return Pe.map(function(Ne){var We=Ne.fixed,tt=(0,Te.Z)(Ne,te),Ye=We;return We==="left"?Ye="right":We==="right"&&(Ye="left"),(0,He.Z)({fixed:Ye},tt)})}function me(Pe,Ne){var We=Pe.prefixCls,tt=Pe.columns,Ye=Pe.children,Qe=Pe.expandable,lt=Pe.expandedKeys,nt=Pe.columnTitle,yt=Pe.getRowKey,vt=Pe.onTriggerExpand,St=Pe.expandIcon,Lt=Pe.rowExpandable,jt=Pe.expandIconColumnIndex,Bt=Pe.direction,cn=Pe.expandRowByClick,pt=Pe.columnWidth,ut=Pe.fixed,at=Pe.scrollWidth,Wt=Pe.clientWidth,rn=Ke.useMemo(function(){var Dn=tt||ee(Ye)||[];return he(Dn.slice())},[tt,Ye]),Tt=Ke.useMemo(function(){if(Qe){var Dn=rn.slice();if(!Dn.includes(Be.w)){var qe=jt||0;qe>=0&&(qe||ut==="left"||!ut)&&Dn.splice(qe,0,Be.w),ut==="right"&&Dn.splice(rn.length,0,Be.w)}var Oe=Dn.indexOf(Be.w);Dn=Dn.filter(function(De,ht){return De!==Be.w||ht===Oe});var Le=rn[Oe],Ge;ut?Ge=ut:Ge=Le?Le.fixed:null;var it=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},gt.v,{className:"".concat(We,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",nt),"fixed",Ge),"className","".concat(We,"-row-expand-icon-cell")),"width",pt),"render",function(ht,on,An){var Zn=yt(on,An),Ft=lt.has(Zn),It=Lt?Lt(on):!0,Gt=St({prefixCls:We,expanded:Ft,expandable:It,record:on,onExpand:vt});return cn?Ke.createElement("span",{onClick:function(Pn){return Pn.stopPropagation()}},Gt):Gt});return Dn.map(function(De){return De===Be.w?it:De})}return rn.filter(function(De){return De!==Be.w})},[Qe,rn,yt,lt,St,Bt]),Xt=Ke.useMemo(function(){var Dn=Tt;return Ne&&(Dn=Ne(Dn)),Dn.length||(Dn=[{render:function(){return null}}]),Dn},[Ne,Tt,Bt]),nn=Ke.useMemo(function(){return Bt==="rtl"?fe(ue(Xt)):ue(Xt)},[Xt,Bt,at]),Nn=Ke.useMemo(function(){for(var Dn=-1,qe=nn.length-1;qe>=0;qe-=1){var Oe=nn[qe].fixed;if(Oe==="left"||Oe===!0){Dn=qe;break}}if(Dn>=0)for(var Le=0;Le<=Dn;Le+=1){var Ge=nn[Le].fixed;if(Ge!=="left"&&Ge!==!0)return!0}var it=nn.findIndex(function(on){var An=on.fixed;return An==="right"});if(it>=0)for(var De=it;De<nn.length;De+=1){var ht=nn[De].fixed;if(ht!=="right")return!0}return!1},[nn]),Rt=wt(nn,at,Wt),At=(0,oe.Z)(Rt,2),Zt=At[0],In=At[1];return[Xt,Zt,In,Nn]}var Ee=me},4030:function(_e,be,ae){"use strict";ae.d(be,{w2:function(){return oe.w},vP:function(){return Vt.v},RQ:function(){return oe.R},ER:function(){return Zn},Q$:function(){return vr},TN:function(){return Zr}});var oe=ae(86351),Ce=ae(16886),ke=ae(6089),Ie=ae(34280),He=ae(13697),Te=ae(59301),ze=ae(4676);function ot(Ln){var ci=Te.createContext(void 0),yn=function(Ii){var Hi=Ii.value,nr=Ii.children,qi=Te.useRef(Hi);qi.current=Hi;var Zi=Te.useState(function(){return{getValue:function(){return qi.current},listeners:new Set}}),di=(0,Ce.Z)(Zi,1),dt=di[0];return(0,Ie.Z)(function(){(0,ze.unstable_batchedUpdates)(function(){dt.listeners.forEach(function(gn){gn(Hi)})})},[Hi]),Te.createElement(ci.Provider,{value:dt},nr)};return{Context:ci,Provider:yn,defaultValue:Ln}}function Ke(Ln,ci){var yn=(0,ke.Z)(typeof ci=="function"?ci:function(gn){if(ci===void 0)return gn;if(!Array.isArray(ci))return gn[ci];var vn={};return ci.forEach(function(Bn){vn[Bn]=gn[Bn]}),vn}),rt=Te.useContext(Ln==null?void 0:Ln.Context),Ii=rt||{},Hi=Ii.listeners,nr=Ii.getValue,qi=Te.useRef();qi.current=yn(rt?nr():Ln==null?void 0:Ln.defaultValue);var Zi=Te.useState({}),di=(0,Ce.Z)(Zi,2),dt=di[1];return(0,Ie.Z)(function(){if(!rt)return;function gn(vn){var Bn=yn(vn);(0,He.Z)(qi.current,Bn,!0)||dt({})}return Hi.add(gn),function(){Hi.delete(gn)}},[rt]),qi.current}var Be=ae(67711),gt=ae(8654);function Je(){var Ln=Te.createContext(null);function ci(){return Te.useContext(Ln)}function yn(Ii,Hi){var nr=(0,gt.Yr)(Ii),qi=function(di,dt){var gn=nr?{ref:dt}:{},vn=Te.useRef(0),Bn=Te.useRef(di),hn=ci();return hn!==null?Te.createElement(Ii,(0,Be.Z)({},di,gn)):((!Hi||Hi(Bn.current,di))&&(vn.current+=1),Bn.current=di,Te.createElement(Ln.Provider,{value:vn.current},Te.createElement(Ii,(0,Be.Z)({},di,gn))))};return nr?Te.forwardRef(qi):qi}function rt(Ii,Hi){var nr=(0,gt.Yr)(Ii),qi=function(di,dt){var gn=nr?{ref:dt}:{};return ci(),Te.createElement(Ii,(0,Be.Z)({},di,gn))};return nr?Te.memo(Te.forwardRef(qi),Hi):Te.memo(qi,Hi)}return{makeImmutable:yn,responseImmutable:rt,useImmutableMark:ci}}var wt=Je(),Fe=wt.makeImmutable,te=wt.responseImmutable,ee=wt.useImmutableMark,he=Je(),ue=he.makeImmutable,fe=he.responseImmutable,me=he.useImmutableMark,Ee=ot(),Pe=Ee;function Ne(Ln,ci){var yn=React.useRef(0);yn.current+=1;var rt=React.useRef(Ln),Ii=[];Object.keys(Ln||{}).map(function(nr){var qi;(Ln==null?void 0:Ln[nr])!==((qi=rt.current)===null||qi===void 0?void 0:qi[nr])&&Ii.push(nr)}),rt.current=Ln;var Hi=React.useRef([]);return Ii.length&&(Hi.current=Ii),React.useDebugValue(yn.current),React.useDebugValue(Hi.current.join(", ")),ci&&console.log("".concat(ci,":"),yn.current,Hi.current),yn.current}var We=null,tt=null,Ye=ae(26420),Qe=ae(98506),lt=ae(52873),nt=ae(92310),yt=ae.n(nt),vt=ae(80547),St=ae(97938),Lt=ae(48736),jt=Te.createContext({renderWithProps:!1}),Bt=jt,cn="RC_TABLE_KEY";function pt(Ln){return Ln==null?[]:Array.isArray(Ln)?Ln:[Ln]}function ut(Ln){var ci=[],yn={};return Ln.forEach(function(rt){for(var Ii=rt||{},Hi=Ii.key,nr=Ii.dataIndex,qi=Hi||pt(nr).join("-")||cn;yn[qi];)qi="".concat(qi,"_next");yn[qi]=!0,ci.push(qi)}),ci}function at(Ln){return Ln!=null}function Wt(Ln){return typeof Ln=="number"&&!Number.isNaN(Ln)}function rn(Ln){return Ln&&(0,Ye.Z)(Ln)==="object"&&!Array.isArray(Ln)&&!Te.isValidElement(Ln)}function Tt(Ln,ci,yn,rt,Ii,Hi){var nr=Te.useContext(Bt),qi=me(),Zi=(0,vt.Z)(function(){if(at(rt))return[rt];var di=ci==null||ci===""?[]:Array.isArray(ci)?ci:[ci],dt=(0,St.Z)(Ln,di),gn=dt,vn=void 0;if(Ii){var Bn=Ii(dt,Ln,yn);rn(Bn)?(gn=Bn.children,vn=Bn.props,nr.renderWithProps=!0):gn=Bn}return[gn,vn]},[qi,Ln,rt,ci,Ii,yn],function(di,dt){if(Hi){var gn=(0,Ce.Z)(di,2),vn=gn[1],Bn=(0,Ce.Z)(dt,2),hn=Bn[1];return Hi(hn,vn)}return nr.renderWithProps?!0:!(0,He.Z)(di,dt,!0)});return Zi}function Xt(Ln,ci,yn,rt){var Ii=Ln+ci-1;return Ln<=rt&&Ii>=yn}function nn(Ln,ci){return Ke(Pe,function(yn){var rt=Xt(Ln,ci||1,yn.hoverStartRow,yn.hoverEndRow);return[rt,yn.onHover]})}var Nn=ae(70425),Rt=function(ci){var yn=ci.ellipsis,rt=ci.rowType,Ii=ci.children,Hi,nr=yn===!0?{showTitle:!0}:yn;return nr&&(nr.showTitle||rt==="header")&&(typeof Ii=="string"||typeof Ii=="number"?Hi=Ii.toString():Te.isValidElement(Ii)&&typeof Ii.props.children=="string"&&(Hi=Ii.props.children)),Hi};function At(Ln){var ci,yn,rt,Ii,Hi,nr,qi,Zi,di=Ln.component,dt=Ln.children,gn=Ln.ellipsis,vn=Ln.scope,Bn=Ln.prefixCls,hn=Ln.className,Yn=Ln.align,Gn=Ln.record,en=Ln.render,ri=Ln.dataIndex,Bi=Ln.renderIndex,dr=Ln.shouldCellUpdate,Ki=Ln.index,sr=Ln.rowType,gr=Ln.colSpan,wr=Ln.rowSpan,zr=Ln.fixLeft,eo=Ln.fixRight,yo=Ln.firstFixLeft,xn=Ln.lastFixLeft,so=Ln.firstFixRight,Qr=Ln.lastFixRight,Lr=Ln.appendNode,Cr=Ln.additionalProps,fo=Cr===void 0?{}:Cr,Co=Ln.isSticky,Fn="".concat(Bn,"-cell"),Jr=Ke(Pe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Do=Jr.supportSticky,ma=Jr.allColumnsFixedLeft,Ga=Jr.rowHoverable,js=Tt(Gn,ri,Bi,dt,en,dr),as=(0,Ce.Z)(js,2),Fr=as[0],la=as[1],ua={},Ua=typeof zr=="number"&&Do,ca=typeof eo=="number"&&Do;Ua&&(ua.position="sticky",ua.left=zr),ca&&(ua.position="sticky",ua.right=eo);var Ea=(ci=(yn=(rt=la==null?void 0:la.colSpan)!==null&&rt!==void 0?rt:fo.colSpan)!==null&&yn!==void 0?yn:gr)!==null&&ci!==void 0?ci:1,$i=(Ii=(Hi=(nr=la==null?void 0:la.rowSpan)!==null&&nr!==void 0?nr:fo.rowSpan)!==null&&Hi!==void 0?Hi:wr)!==null&&Ii!==void 0?Ii:1,Mr=nn(Ki,$i),Kr=(0,Ce.Z)(Mr,2),uo=Kr[0],ho=Kr[1],jo=(0,Nn.zX)(function(gs){var Jo;Gn&&ho(Ki,Ki+$i-1),fo==null||(Jo=fo.onMouseEnter)===null||Jo===void 0||Jo.call(fo,gs)}),Dr=(0,Nn.zX)(function(gs){var Jo;Gn&&ho(-1,-1),fo==null||(Jo=fo.onMouseLeave)===null||Jo===void 0||Jo.call(fo,gs)});if(Ea===0||$i===0)return null;var Ya=(qi=fo.title)!==null&&qi!==void 0?qi:Rt({rowType:sr,ellipsis:gn,children:Fr}),va=yt()(Fn,hn,(Zi={},(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)(Zi,"".concat(Fn,"-fix-left"),Ua&&Do),"".concat(Fn,"-fix-left-first"),yo&&Do),"".concat(Fn,"-fix-left-last"),xn&&Do),"".concat(Fn,"-fix-left-all"),xn&&ma&&Do),"".concat(Fn,"-fix-right"),ca&&Do),"".concat(Fn,"-fix-right-first"),so&&Do),"".concat(Fn,"-fix-right-last"),Qr&&Do),"".concat(Fn,"-ellipsis"),gn),"".concat(Fn,"-with-append"),Lr),"".concat(Fn,"-fix-sticky"),(Ua||ca)&&Co&&Do),(0,lt.Z)(Zi,"".concat(Fn,"-row-hover"),!la&&uo)),fo.className,la==null?void 0:la.className),fa={};Yn&&(fa.textAlign=Yn);var vo=(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},la==null?void 0:la.style),ua),fa),fo.style),Wo=Fr;return(0,Ye.Z)(Wo)==="object"&&!Array.isArray(Wo)&&!Te.isValidElement(Wo)&&(Wo=null),gn&&(xn||so)&&(Wo=Te.createElement("span",{className:"".concat(Fn,"-content")},Wo)),Te.createElement(di,(0,Be.Z)({},la,fo,{className:va,style:vo,title:Ya,scope:vn,onMouseEnter:Ga?jo:void 0,onMouseLeave:Ga?Dr:void 0,colSpan:Ea!==1?Ea:null,rowSpan:$i!==1?$i:null}),Lr,Wo)}var Zt=Te.memo(At);function In(Ln,ci,yn,rt,Ii){var Hi=yn[Ln]||{},nr=yn[ci]||{},qi,Zi;Hi.fixed==="left"?qi=rt.left[Ii==="rtl"?ci:Ln]:nr.fixed==="right"&&(Zi=rt.right[Ii==="rtl"?Ln:ci]);var di=!1,dt=!1,gn=!1,vn=!1,Bn=yn[ci+1],hn=yn[Ln-1],Yn=Bn&&!Bn.fixed||hn&&!hn.fixed||yn.every(function(dr){return dr.fixed==="left"});if(Ii==="rtl"){if(qi!==void 0){var Gn=hn&&hn.fixed==="left";vn=!Gn&&Yn}else if(Zi!==void 0){var en=Bn&&Bn.fixed==="right";gn=!en&&Yn}}else if(qi!==void 0){var ri=Bn&&Bn.fixed==="left";di=!ri&&Yn}else if(Zi!==void 0){var Bi=hn&&hn.fixed==="right";dt=!Bi&&Yn}return{fixLeft:qi,fixRight:Zi,lastFixLeft:di,firstFixRight:dt,lastFixRight:gn,firstFixLeft:vn,isSticky:rt.isSticky}}var Dn=Te.createContext({}),qe=Dn;function Oe(Ln){var ci=Ln.className,yn=Ln.index,rt=Ln.children,Ii=Ln.colSpan,Hi=Ii===void 0?1:Ii,nr=Ln.rowSpan,qi=Ln.align,Zi=Ke(Pe,["prefixCls","direction"]),di=Zi.prefixCls,dt=Zi.direction,gn=Te.useContext(qe),vn=gn.scrollColumnIndex,Bn=gn.stickyOffsets,hn=gn.flattenColumns,Yn=yn+Hi-1,Gn=Yn+1===vn?Hi+1:Hi,en=In(yn,yn+Gn-1,hn,Bn,dt);return Te.createElement(Zt,(0,Be.Z)({className:ci,index:yn,component:"td",prefixCls:di,record:null,dataIndex:null,align:qi,colSpan:Gn,rowSpan:nr,render:function(){return rt}},en))}var Le=ae(33346),Ge=["children"];function it(Ln){var ci=Ln.children,yn=(0,Le.Z)(Ln,Ge);return Te.createElement("tr",yn,ci)}function De(Ln){var ci=Ln.children;return ci}De.Row=it,De.Cell=Oe;var ht=De;function on(Ln){var ci=Ln.children,yn=Ln.stickyOffsets,rt=Ln.flattenColumns,Ii=Ke(Pe,"prefixCls"),Hi=rt.length-1,nr=rt[Hi],qi=Te.useMemo(function(){return{stickyOffsets:yn,flattenColumns:rt,scrollColumnIndex:nr!=null&&nr.scrollbar?Hi:null}},[nr,rt,Hi,yn]);return Te.createElement(qe.Provider,{value:qi},Te.createElement("tfoot",{className:"".concat(Ii,"-summary")},ci))}var An=fe(on),Zn=ht,Ft=ae(29301),It=ae(24514),Gt=ae(75152),fn=ae(26112);function Pn(Ln,ci,yn,rt,Ii,Hi,nr){Ln.push({record:ci,indent:yn,index:nr});var qi=Hi(ci),Zi=Ii==null?void 0:Ii.has(qi);if(ci&&Array.isArray(ci[rt])&&Zi)for(var di=0;di<ci[rt].length;di+=1)Pn(Ln,ci[rt][di],yn+1,rt,Ii,Hi,di)}function an(Ln,ci,yn,rt){var Ii=Te.useMemo(function(){if(yn!=null&&yn.size){for(var Hi=[],nr=0;nr<(Ln==null?void 0:Ln.length);nr+=1){var qi=Ln[nr];Pn(Hi,qi,0,ci,yn,rt,nr)}return Hi}return Ln==null?void 0:Ln.map(function(Zi,di){return{record:Zi,indent:0,index:di}})},[Ln,ci,yn,rt]);return Ii}function Ot(Ln,ci,yn,rt){var Ii=Ke(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Hi=Ii.flattenColumns,nr=Ii.expandableType,qi=Ii.expandedKeys,Zi=Ii.childrenColumnName,di=Ii.onTriggerExpand,dt=Ii.rowExpandable,gn=Ii.onRow,vn=Ii.expandRowByClick,Bn=Ii.rowClassName,hn=nr==="nest",Yn=nr==="row"&&(!dt||dt(Ln)),Gn=Yn||hn,en=qi&&qi.has(ci),ri=Zi&&Ln&&Ln[Zi],Bi=(0,Nn.zX)(di),dr=gn==null?void 0:gn(Ln,yn),Ki=dr==null?void 0:dr.onClick,sr=function(eo){vn&&Gn&&di(Ln,eo);for(var yo=arguments.length,xn=new Array(yo>1?yo-1:0),so=1;so<yo;so++)xn[so-1]=arguments[so];Ki==null||Ki.apply(void 0,[eo].concat(xn))},gr;typeof Bn=="string"?gr=Bn:typeof Bn=="function"&&(gr=Bn(Ln,yn,rt));var wr=ut(Hi);return(0,Qe.Z)((0,Qe.Z)({},Ii),{},{columnsKey:wr,nestExpandable:hn,expanded:en,hasNestChildren:ri,record:Ln,onTriggerExpand:Bi,rowSupportExpand:Yn,expandable:Gn,rowProps:(0,Qe.Z)((0,Qe.Z)({},dr),{},{className:yt()(gr,dr==null?void 0:dr.className),onClick:sr})})}function Mn(Ln){var ci=Ln.prefixCls,yn=Ln.children,rt=Ln.component,Ii=Ln.cellComponent,Hi=Ln.className,nr=Ln.expanded,qi=Ln.colSpan,Zi=Ln.isEmpty,di=Ke(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),dt=di.scrollbarSize,gn=di.fixHeader,vn=di.fixColumn,Bn=di.componentWidth,hn=di.horizonScroll,Yn=yn;return(Zi?hn&&Bn:vn)&&(Yn=Te.createElement("div",{style:{width:Bn-(gn&&!Zi?dt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ci,"-expanded-row-fixed")},Yn)),Te.createElement(rt,{className:Hi,style:{display:nr?null:"none"}},Te.createElement(Zt,{component:Ii,prefixCls:ci,colSpan:qi},Yn))}var Ht=Mn;function Kt(Ln){var ci=Ln.prefixCls,yn=Ln.record,rt=Ln.onExpand,Ii=Ln.expanded,Hi=Ln.expandable,nr="".concat(ci,"-row-expand-icon");if(!Hi)return Te.createElement("span",{className:yt()(nr,"".concat(ci,"-row-spaced"))});var qi=function(di){rt(yn,di),di.stopPropagation()};return Te.createElement("span",{className:yt()(nr,(0,lt.Z)((0,lt.Z)({},"".concat(ci,"-row-expanded"),Ii),"".concat(ci,"-row-collapsed"),!Ii)),onClick:qi})}function un(Ln,ci,yn){var rt=[];function Ii(Hi){(Hi||[]).forEach(function(nr,qi){rt.push(ci(nr,qi)),Ii(nr[yn])})}return Ii(Ln),rt}function Vn(Ln,ci,yn,rt){return typeof Ln=="string"?Ln:typeof Ln=="function"?Ln(ci,yn,rt):""}function bn(Ln,ci,yn,rt,Ii){var Hi=Ln.record,nr=Ln.prefixCls,qi=Ln.columnsKey,Zi=Ln.fixedInfoList,di=Ln.expandIconColumnIndex,dt=Ln.nestExpandable,gn=Ln.indentSize,vn=Ln.expandIcon,Bn=Ln.expanded,hn=Ln.hasNestChildren,Yn=Ln.onTriggerExpand,Gn=qi[yn],en=Zi[yn],ri;yn===(di||0)&&dt&&(ri=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(gn*rt,"px")},className:"".concat(nr,"-row-indent indent-level-").concat(rt)}),vn({prefixCls:nr,expanded:Bn,expandable:hn,record:Hi,onExpand:Yn})));var Bi;return ci.onCell&&(Bi=ci.onCell(Hi,Ii)),{key:Gn,fixedInfo:en,appendCellNode:ri,additionalCellProps:Bi||{}}}function mt(Ln){var ci=Ln.className,yn=Ln.style,rt=Ln.record,Ii=Ln.index,Hi=Ln.renderIndex,nr=Ln.rowKey,qi=Ln.indent,Zi=qi===void 0?0:qi,di=Ln.rowComponent,dt=Ln.cellComponent,gn=Ln.scopeCellComponent,vn=Ot(rt,nr,Ii,Zi),Bn=vn.prefixCls,hn=vn.flattenColumns,Yn=vn.expandedRowClassName,Gn=vn.expandedRowRender,en=vn.rowProps,ri=vn.expanded,Bi=vn.rowSupportExpand,dr=Te.useRef(!1);dr.current||(dr.current=ri);var Ki=Vn(Yn,rt,Ii,Zi),sr=Te.createElement(di,(0,Be.Z)({},en,{"data-row-key":nr,className:yt()(ci,"".concat(Bn,"-row"),"".concat(Bn,"-row-level-").concat(Zi),en==null?void 0:en.className,(0,lt.Z)({},Ki,Zi>=1)),style:(0,Qe.Z)((0,Qe.Z)({},yn),en==null?void 0:en.style)}),hn.map(function(zr,eo){var yo=zr.render,xn=zr.dataIndex,so=zr.className,Qr=bn(vn,zr,eo,Zi,Ii),Lr=Qr.key,Cr=Qr.fixedInfo,fo=Qr.appendCellNode,Co=Qr.additionalCellProps;return Te.createElement(Zt,(0,Be.Z)({className:so,ellipsis:zr.ellipsis,align:zr.align,scope:zr.rowScope,component:zr.rowScope?gn:dt,prefixCls:Bn,key:Lr,record:rt,index:Ii,renderIndex:Hi,dataIndex:xn,render:yo,shouldCellUpdate:zr.shouldCellUpdate},Cr,{appendNode:fo,additionalProps:Co}))})),gr;if(Bi&&(dr.current||ri)){var wr=Gn(rt,Ii,Zi+1,ri);gr=Te.createElement(Ht,{expanded:ri,className:yt()("".concat(Bn,"-expanded-row"),"".concat(Bn,"-expanded-row-level-").concat(Zi+1),Ki),prefixCls:Bn,component:di,cellComponent:dt,colSpan:hn.length,isEmpty:!1},wr)}return Te.createElement(Te.Fragment,null,sr,gr)}var jn=fe(mt);function Kn(Ln){var ci=Ln.columnKey,yn=Ln.onColumnResize,rt=Te.useRef();return(0,Ie.Z)(function(){rt.current&&yn(ci,rt.current.offsetWidth)},[]),Te.createElement(Ft.Z,{data:ci},Te.createElement("td",{ref:rt,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ut=ae(29194);function yi(Ln){var ci=Ln.prefixCls,yn=Ln.columnsKey,rt=Ln.onColumnResize,Ii=Te.useRef(null);return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(ci,"-measure-row"),style:{height:0,fontSize:0},ref:Ii},Te.createElement(Ft.Z.Collection,{onBatchResize:function(nr){(0,Ut.Z)(Ii.current)&&nr.forEach(function(qi){var Zi=qi.data,di=qi.size;rt(Zi,di.offsetWidth)})}},yn.map(function(Hi){return Te.createElement(Kn,{key:Hi,columnKey:Hi,onColumnResize:rt})})))}function Vi(Ln){var ci=Ln.data,yn=Ln.measureColumnWidth,rt=Ke(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ii=rt.prefixCls,Hi=rt.getComponent,nr=rt.onColumnResize,qi=rt.flattenColumns,Zi=rt.getRowKey,di=rt.expandedKeys,dt=rt.childrenColumnName,gn=rt.emptyNode,vn=an(ci,dt,di,Zi),Bn=Te.useRef({renderWithProps:!1}),hn=Hi(["body","wrapper"],"tbody"),Yn=Hi(["body","row"],"tr"),Gn=Hi(["body","cell"],"td"),en=Hi(["body","cell"],"th"),ri;ci.length?ri=vn.map(function(dr,Ki){var sr=dr.record,gr=dr.indent,wr=dr.index,zr=Zi(sr,Ki);return Te.createElement(jn,{key:zr,rowKey:zr,record:sr,index:Ki,renderIndex:wr,rowComponent:Yn,cellComponent:Gn,scopeCellComponent:en,indent:gr})}):ri=Te.createElement(Ht,{expanded:!0,className:"".concat(Ii,"-placeholder"),prefixCls:Ii,component:Yn,cellComponent:Gn,colSpan:qi.length,isEmpty:!0},gn);var Bi=ut(qi);return Te.createElement(Bt.Provider,{value:Bn.current},Te.createElement(hn,{className:"".concat(Ii,"-tbody")},yn&&Te.createElement(yi,{prefixCls:Ii,columnsKey:Bi,onColumnResize:nr}),ri))}var kn=fe(Vi),Vt=ae(54451),Qn=["columnType"];function ai(Ln){for(var ci=Ln.colWidths,yn=Ln.columns,rt=Ln.columCount,Ii=Ke(Pe,["tableLayout"]),Hi=Ii.tableLayout,nr=[],qi=rt||yn.length,Zi=!1,di=qi-1;di>=0;di-=1){var dt=ci[di],gn=yn&&yn[di],vn=void 0,Bn=void 0;if(gn&&(vn=gn[Vt.v],Hi==="auto"&&(Bn=gn.minWidth)),dt||Bn||vn||Zi){var hn=vn||{},Yn=hn.columnType,Gn=(0,Le.Z)(hn,Qn);nr.unshift(Te.createElement("col",(0,Be.Z)({key:di,style:{width:dt,minWidth:Bn}},Gn))),Zi=!0}}return Te.createElement("colgroup",null,nr)}var Un=ai,si=ae(15142),li=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Me(Ln,ci){return(0,Te.useMemo)(function(){for(var yn=[],rt=0;rt<ci;rt+=1){var Ii=Ln[rt];if(Ii!==void 0)yn[rt]=Ii;else return null}return yn},[Ln.join("_"),ci])}var ii=Te.forwardRef(function(Ln,ci){var yn=Ln.className,rt=Ln.noData,Ii=Ln.columns,Hi=Ln.flattenColumns,nr=Ln.colWidths,qi=Ln.columCount,Zi=Ln.stickyOffsets,di=Ln.direction,dt=Ln.fixHeader,gn=Ln.stickyTopOffset,vn=Ln.stickyBottomOffset,Bn=Ln.stickyClassName,hn=Ln.onScroll,Yn=Ln.maxContentScroll,Gn=Ln.children,en=(0,Le.Z)(Ln,li),ri=Ke(Pe,["prefixCls","scrollbarSize","isSticky","getComponent"]),Bi=ri.prefixCls,dr=ri.scrollbarSize,Ki=ri.isSticky,sr=ri.getComponent,gr=sr(["header","table"],"table"),wr=Ki&&!dt?0:dr,zr=Te.useRef(null),eo=Te.useCallback(function(Co){(0,gt.mH)(ci,Co),(0,gt.mH)(zr,Co)},[]);Te.useEffect(function(){var Co;function Fn(Jr){var Do=Jr,ma=Do.currentTarget,Ga=Do.deltaX;Ga&&(hn({currentTarget:ma,scrollLeft:ma.scrollLeft+Ga}),Jr.preventDefault())}return(Co=zr.current)===null||Co===void 0||Co.addEventListener("wheel",Fn,{passive:!1}),function(){var Jr;(Jr=zr.current)===null||Jr===void 0||Jr.removeEventListener("wheel",Fn)}},[]);var yo=Te.useMemo(function(){return Hi.every(function(Co){return Co.width})},[Hi]),xn=Hi[Hi.length-1],so={fixed:xn?xn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Bi,"-cell-scrollbar")}}},Qr=(0,Te.useMemo)(function(){return wr?[].concat((0,si.Z)(Ii),[so]):Ii},[wr,Ii]),Lr=(0,Te.useMemo)(function(){return wr?[].concat((0,si.Z)(Hi),[so]):Hi},[wr,Hi]),Cr=(0,Te.useMemo)(function(){var Co=Zi.right,Fn=Zi.left;return(0,Qe.Z)((0,Qe.Z)({},Zi),{},{left:di==="rtl"?[].concat((0,si.Z)(Fn.map(function(Jr){return Jr+wr})),[0]):Fn,right:di==="rtl"?Co:[].concat((0,si.Z)(Co.map(function(Jr){return Jr+wr})),[0]),isSticky:Ki})},[wr,Zi,Ki]),fo=Me(nr,qi);return Te.createElement("div",{style:(0,Qe.Z)({overflow:"hidden"},Ki?{top:gn,bottom:vn}:{}),ref:eo,className:yt()(yn,(0,lt.Z)({},Bn,!!Bn))},Te.createElement(gr,{style:{tableLayout:"fixed",visibility:rt||fo?null:"hidden"}},(!rt||!Yn||yo)&&Te.createElement(Un,{colWidths:fo?[].concat((0,si.Z)(fo),[wr]):[],columCount:qi+1,columns:Lr}),Gn((0,Qe.Z)((0,Qe.Z)({},en),{},{stickyOffsets:Cr,columns:Qr,flattenColumns:Lr}))))}),ti=Te.memo(ii),On=function(ci){var yn=ci.cells,rt=ci.stickyOffsets,Ii=ci.flattenColumns,Hi=ci.rowComponent,nr=ci.cellComponent,qi=ci.onHeaderRow,Zi=ci.index,di=Ke(Pe,["prefixCls","direction"]),dt=di.prefixCls,gn=di.direction,vn;qi&&(vn=qi(yn.map(function(hn){return hn.column}),Zi));var Bn=ut(yn.map(function(hn){return hn.column}));return Te.createElement(Hi,vn,yn.map(function(hn,Yn){var Gn=hn.column,en=In(hn.colStart,hn.colEnd,Ii,rt,gn),ri;return Gn&&Gn.onHeaderCell&&(ri=hn.column.onHeaderCell(Gn)),Te.createElement(Zt,(0,Be.Z)({},hn,{scope:Gn.title?hn.colSpan>1?"colgroup":"col":null,ellipsis:Gn.ellipsis,align:Gn.align,component:nr,prefixCls:dt,key:Bn[Yn]},en,{additionalProps:ri,rowType:"header"}))}))},ni=On;function Ei(Ln){var ci=[];function yn(nr,qi){var Zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ci[Zi]=ci[Zi]||[];var di=qi,dt=nr.filter(Boolean).map(function(gn){var vn={key:gn.key,className:gn.className||"",children:gn.title,column:gn,colStart:di},Bn=1,hn=gn.children;return hn&&hn.length>0&&(Bn=yn(hn,di,Zi+1).reduce(function(Yn,Gn){return Yn+Gn},0),vn.hasSubColumns=!0),"colSpan"in gn&&(Bn=gn.colSpan),"rowSpan"in gn&&(vn.rowSpan=gn.rowSpan),vn.colSpan=Bn,vn.colEnd=vn.colStart+Bn-1,ci[Zi].push(vn),di+=Bn,Bn});return dt}yn(Ln,0);for(var rt=ci.length,Ii=function(qi){ci[qi].forEach(function(Zi){!("rowSpan"in Zi)&&!Zi.hasSubColumns&&(Zi.rowSpan=rt-qi)})},Hi=0;Hi<rt;Hi+=1)Ii(Hi);return ci}var ui=function(ci){var yn=ci.stickyOffsets,rt=ci.columns,Ii=ci.flattenColumns,Hi=ci.onHeaderRow,nr=Ke(Pe,["prefixCls","getComponent"]),qi=nr.prefixCls,Zi=nr.getComponent,di=Te.useMemo(function(){return Ei(rt)},[rt]),dt=Zi(["header","wrapper"],"thead"),gn=Zi(["header","row"],"tr"),vn=Zi(["header","cell"],"th");return Te.createElement(dt,{className:"".concat(qi,"-thead")},di.map(function(Bn,hn){var Yn=Te.createElement(ni,{key:hn,flattenColumns:Ii,cells:Bn,stickyOffsets:yn,rowComponent:gn,cellComponent:vn,onHeaderRow:Hi,index:hn});return Yn}))},tr=fe(ui),Sn=ae(97347);function sn(Ln,ci,yn){var rt=(0,Vt.g)(Ln),Ii=rt.expandIcon,Hi=rt.expandedRowKeys,nr=rt.defaultExpandedRowKeys,qi=rt.defaultExpandAllRows,Zi=rt.expandedRowRender,di=rt.onExpand,dt=rt.onExpandedRowsChange,gn=rt.childrenColumnName,vn=Ii||Kt,Bn=gn||"children",hn=Te.useMemo(function(){return Zi?"row":Ln.expandable&&Ln.internalHooks===oe.R&&Ln.expandable.__PARENT_RENDER_ICON__||ci.some(function(Ki){return Ki&&(0,Ye.Z)(Ki)==="object"&&Ki[Bn]})?"nest":!1},[!!Zi,ci]),Yn=Te.useState(function(){return nr||(qi?un(ci,yn,Bn):[])}),Gn=(0,Ce.Z)(Yn,2),en=Gn[0],ri=Gn[1],Bi=Te.useMemo(function(){return new Set(Hi||en||[])},[Hi,en]),dr=Te.useCallback(function(Ki){var sr=yn(Ki,ci.indexOf(Ki)),gr,wr=Bi.has(sr);wr?(Bi.delete(sr),gr=(0,si.Z)(Bi)):gr=[].concat((0,si.Z)(Bi),[sr]),ri(gr),di&&di(!wr,Ki),dt&&dt(gr)},[yn,Bi,ci,di,dt]);return[rt,hn,Bi,vn,Bn,dr]}function dn(Ln,ci,yn){var rt=Ln.map(function(Ii,Hi){return In(Hi,Hi,Ln,ci,yn)});return(0,vt.Z)(function(){return rt},[rt],function(Ii,Hi){return!(0,He.Z)(Ii,Hi)})}function _n(Ln){var ci=(0,Te.useRef)(Ln),yn=(0,Te.useState)({}),rt=(0,Ce.Z)(yn,2),Ii=rt[1],Hi=(0,Te.useRef)(null),nr=(0,Te.useRef)([]);function qi(Zi){nr.current.push(Zi);var di=Promise.resolve();Hi.current=di,di.then(function(){if(Hi.current===di){var dt=nr.current,gn=ci.current;nr.current=[],dt.forEach(function(vn){ci.current=vn(ci.current)}),Hi.current=null,gn!==ci.current&&Ii({})}})}return(0,Te.useEffect)(function(){return function(){Hi.current=null}},[]),[ci.current,qi]}function Ri(Ln){var ci=(0,Te.useRef)(Ln||null),yn=(0,Te.useRef)();function rt(){window.clearTimeout(yn.current)}function Ii(nr){ci.current=nr,rt(),yn.current=window.setTimeout(function(){ci.current=null,yn.current=void 0},100)}function Hi(){return ci.current}return(0,Te.useEffect)(function(){return rt},[]),[Ii,Hi]}function qn(){var Ln=Te.useState(-1),ci=(0,Ce.Z)(Ln,2),yn=ci[0],rt=ci[1],Ii=Te.useState(-1),Hi=(0,Ce.Z)(Ii,2),nr=Hi[0],qi=Hi[1],Zi=Te.useCallback(function(di,dt){rt(di),qi(dt)},[]);return[yn,nr,Zi]}var Ni=ae(47273),mn=(0,Ni.Z)()?window:null;function Hn(Ln,ci){var yn=(0,Ye.Z)(Ln)==="object"?Ln:{},rt=yn.offsetHeader,Ii=rt===void 0?0:rt,Hi=yn.offsetSummary,nr=Hi===void 0?0:Hi,qi=yn.offsetScroll,Zi=qi===void 0?0:qi,di=yn.getContainer,dt=di===void 0?function(){return mn}:di,gn=dt()||mn,vn=!!Ln;return Te.useMemo(function(){return{isSticky:vn,stickyClassName:vn?"".concat(ci,"-sticky-holder"):"",offsetHeader:Ii,offsetSummary:nr,offsetScroll:Zi,container:gn}},[vn,Zi,Ii,nr,ci,gn])}function Di(Ln,ci,yn){var rt=(0,Te.useMemo)(function(){var Ii=ci.length,Hi=function(di,dt,gn){for(var vn=[],Bn=0,hn=di;hn!==dt;hn+=gn)vn.push(Bn),ci[hn].fixed&&(Bn+=Ln[hn]||0);return vn},nr=Hi(0,Ii,1),qi=Hi(Ii-1,-1,-1).reverse();return yn==="rtl"?{left:qi,right:nr}:{left:nr,right:qi}},[Ln,ci,yn]);return rt}var Yi=Di;function mi(Ln){var ci=Ln.className,yn=Ln.children;return Te.createElement("div",{className:ci},yn)}var Ct=mi,$t=ae(8224),fi=ae(16089),gi=ae(76846);function zt(Ln){var ci=(0,gi.bn)(Ln),yn=ci.getBoundingClientRect(),rt=document.documentElement;return{left:yn.left+(window.pageXOffset||rt.scrollLeft)-(rt.clientLeft||document.body.clientLeft||0),top:yn.top+(window.pageYOffset||rt.scrollTop)-(rt.clientTop||document.body.clientTop||0)}}var pi=function(ci,yn){var rt,Ii,Hi=ci.scrollBodyRef,nr=ci.onScroll,qi=ci.offsetScroll,Zi=ci.container,di=ci.direction,dt=Ke(Pe,"prefixCls"),gn=((rt=Hi.current)===null||rt===void 0?void 0:rt.scrollWidth)||0,vn=((Ii=Hi.current)===null||Ii===void 0?void 0:Ii.clientWidth)||0,Bn=gn&&vn*(vn/gn),hn=Te.useRef(),Yn=_n({scrollLeft:0,isHiddenScrollBar:!0}),Gn=(0,Ce.Z)(Yn,2),en=Gn[0],ri=Gn[1],Bi=Te.useRef({delta:0,x:0}),dr=Te.useState(!1),Ki=(0,Ce.Z)(dr,2),sr=Ki[0],gr=Ki[1],wr=Te.useRef(null);Te.useEffect(function(){return function(){fi.Z.cancel(wr.current)}},[]);var zr=function(){gr(!1)},eo=function(Lr){Lr.persist(),Bi.current.delta=Lr.pageX-en.scrollLeft,Bi.current.x=0,gr(!0),Lr.preventDefault()},yo=function(Lr){var Cr,fo=Lr||((Cr=window)===null||Cr===void 0?void 0:Cr.event),Co=fo.buttons;if(!sr||Co===0){sr&&gr(!1);return}var Fn=Bi.current.x+Lr.pageX-Bi.current.x-Bi.current.delta,Jr=di==="rtl";Fn=Math.max(Jr?Bn-vn:0,Math.min(Jr?0:vn-Bn,Fn));var Do=!Jr||Math.abs(Fn)+Math.abs(Bn)<vn;Do&&(nr({scrollLeft:Fn/vn*(gn+2)}),Bi.current.x=Lr.pageX)},xn=function(){fi.Z.cancel(wr.current),wr.current=(0,fi.Z)(function(){if(Hi.current){var Lr=zt(Hi.current).top,Cr=Lr+Hi.current.offsetHeight,fo=Zi===window?document.documentElement.scrollTop+window.innerHeight:zt(Zi).top+Zi.clientHeight;Cr-(0,Gt.Z)()<=fo||Lr>=fo-qi?ri(function(Co){return(0,Qe.Z)((0,Qe.Z)({},Co),{},{isHiddenScrollBar:!0})}):ri(function(Co){return(0,Qe.Z)((0,Qe.Z)({},Co),{},{isHiddenScrollBar:!1})})}})},so=function(Lr){ri(function(Cr){return(0,Qe.Z)((0,Qe.Z)({},Cr),{},{scrollLeft:Lr/gn*vn||0})})};return Te.useImperativeHandle(yn,function(){return{setScrollLeft:so,checkScrollBarVisible:xn}}),Te.useEffect(function(){var Qr=(0,$t.Z)(document.body,"mouseup",zr,!1),Lr=(0,$t.Z)(document.body,"mousemove",yo,!1);return xn(),function(){Qr.remove(),Lr.remove()}},[Bn,sr]),Te.useEffect(function(){if(Hi.current){for(var Qr=[],Lr=(0,gi.bn)(Hi.current);Lr;)Qr.push(Lr),Lr=Lr.parentElement;return Qr.forEach(function(Cr){return Cr.addEventListener("scroll",xn,!1)}),window.addEventListener("resize",xn,!1),window.addEventListener("scroll",xn,!1),Zi.addEventListener("scroll",xn,!1),function(){Qr.forEach(function(Cr){return Cr.removeEventListener("scroll",xn)}),window.removeEventListener("resize",xn),window.removeEventListener("scroll",xn),Zi.removeEventListener("scroll",xn)}}},[Zi]),Te.useEffect(function(){en.isHiddenScrollBar||ri(function(Qr){var Lr=Hi.current;return Lr?(0,Qe.Z)((0,Qe.Z)({},Qr),{},{scrollLeft:Lr.scrollLeft/Lr.scrollWidth*Lr.clientWidth}):Qr})},[en.isHiddenScrollBar]),gn<=vn||!Bn||en.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,Gt.Z)(),width:vn,bottom:qi},className:"".concat(dt,"-sticky-scroll")},Te.createElement("div",{onMouseDown:eo,ref:hn,className:yt()("".concat(dt,"-sticky-scroll-bar"),(0,lt.Z)({},"".concat(dt,"-sticky-scroll-bar-active"),sr)),style:{width:"".concat(Bn,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},Fi=Te.forwardRef(pi);function Cn(Ln){return null}var je=Cn;function Pi(Ln){return null}var Ai=Pi,Rn="rc-table",Ji=[],_i={};function Jn(){return"No Data"}function ji(Ln,ci){var yn=(0,Qe.Z)({rowKey:"key",prefixCls:Rn,emptyText:Jn},Ln),rt=yn.prefixCls,Ii=yn.className,Hi=yn.rowClassName,nr=yn.style,qi=yn.data,Zi=yn.rowKey,di=yn.scroll,dt=yn.tableLayout,gn=yn.direction,vn=yn.title,Bn=yn.footer,hn=yn.summary,Yn=yn.caption,Gn=yn.id,en=yn.showHeader,ri=yn.components,Bi=yn.emptyText,dr=yn.onRow,Ki=yn.onHeaderRow,sr=yn.onScroll,gr=yn.internalHooks,wr=yn.transformColumns,zr=yn.internalRefs,eo=yn.tailor,yo=yn.getContainerWidth,xn=yn.sticky,so=yn.rowHoverable,Qr=so===void 0?!0:so,Lr=qi||Ji,Cr=!!Lr.length,fo=gr===oe.R,Co=Te.useCallback(function(Io,Yo){return(0,St.Z)(ri,Io)||Yo},[ri]),Fn=Te.useMemo(function(){return typeof Zi=="function"?Zi:function(Io){var Yo=Io&&Io[Zi];return Yo}},[Zi]),Jr=Co(["body"]),Do=qn(),ma=(0,Ce.Z)(Do,3),Ga=ma[0],js=ma[1],as=ma[2],Fr=sn(yn,Lr,Fn),la=(0,Ce.Z)(Fr,6),ua=la[0],Ua=la[1],ca=la[2],Ea=la[3],$i=la[4],Mr=la[5],Kr=di==null?void 0:di.x,uo=Te.useState(0),ho=(0,Ce.Z)(uo,2),jo=ho[0],Dr=ho[1],Ya=(0,Sn.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},yn),ua),{},{expandable:!!ua.expandedRowRender,columnTitle:ua.columnTitle,expandedKeys:ca,getRowKey:Fn,onTriggerExpand:Mr,expandIcon:Ea,expandIconColumnIndex:ua.expandIconColumnIndex,direction:gn,scrollWidth:fo&&eo&&typeof Kr=="number"?Kr:null,clientWidth:jo}),fo?wr:null),va=(0,Ce.Z)(Ya,4),fa=va[0],vo=va[1],Wo=va[2],gs=va[3],Jo=Wo!=null?Wo:Kr,ss=Te.useMemo(function(){return{columns:fa,flattenColumns:vo}},[fa,vo]),Os=Te.useRef(),ws=Te.useRef(),Pa=Te.useRef(),Al=Te.useRef();Te.useImperativeHandle(ci,function(){return{nativeElement:Os.current,scrollTo:function(Yo){var xa;if(Pa.current instanceof HTMLElement){var ds=Yo.index,qa=Yo.top,ml=Yo.key;if(Wt(qa)){var vl;(vl=Pa.current)===null||vl===void 0||vl.scrollTo({top:qa})}else{var yl,$s=ml!=null?ml:Fn(Lr[ds]);(yl=Pa.current.querySelector('[data-row-key="'.concat($s,'"]')))===null||yl===void 0||yl.scrollIntoView()}}else(xa=Pa.current)!==null&&xa!==void 0&&xa.scrollTo&&Pa.current.scrollTo(Yo)}}});var Uu=Te.useRef(),Rs=Te.useState(!1),Js=(0,Ce.Z)(Rs,2),Ds=Js[0],Ql=Js[1],rc=Te.useState(!1),oc=(0,Ce.Z)(rc,2),Ia=oc[0],Hu=oc[1],ac=Te.useState(new Map),cu=(0,Ce.Z)(ac,2),Pu=cu[0],ls=cu[1],Es=ut(vo),Va=Es.map(function(Io){return Pu.get(Io)}),is=Te.useMemo(function(){return Va},[Va.join("_")]),du=Yi(is,vo,gn),Cs=di&&at(di.y),$o=di&&at(Jo)||!!ua.fixed,Zo=$o&&vo.some(function(Io){var Yo=Io.fixed;return Yo}),Ro=Te.useRef(),Ha=Hn(xn,rt),mr=Ha.isSticky,Xa=Ha.offsetHeader,Qt=Ha.offsetSummary,Ti=Ha.offsetScroll,pl=Ha.stickyClassName,Jl=Ha.container,Ma=Te.useMemo(function(){return hn==null?void 0:hn(Lr)},[hn,Lr]),Qa=(Cs||mr)&&Te.isValidElement(Ma)&&Ma.type===ht&&Ma.props.fixed,qs,gl,zu;Cs&&(gl={overflowY:Cr?"scroll":"auto",maxHeight:di.y}),$o&&(qs={overflowX:"auto"},Cs||(gl={overflowY:"hidden"}),zu={width:Jo===!0?"auto":Jo,minWidth:"100%"});var ya=Te.useCallback(function(Io,Yo){ls(function(xa){if(xa.get(Io)!==Yo){var ds=new Map(xa);return ds.set(Io,Yo),ds}return xa})},[]),no=Ri(null),us=(0,Ce.Z)(no,2),Ls=us[0],Go=us[1];function To(Io,Yo){Yo&&(typeof Yo=="function"?Yo(Io):Yo.scrollLeft!==Io&&(Yo.scrollLeft=Io,Yo.scrollLeft!==Io&&setTimeout(function(){Yo.scrollLeft=Io},0)))}var ba=(0,ke.Z)(function(Io){var Yo=Io.currentTarget,xa=Io.scrollLeft,ds=gn==="rtl",qa=typeof xa=="number"?xa:Yo.scrollLeft,ml=Yo||_i;if(!Go()||Go()===ml){var vl;Ls(ml),To(qa,ws.current),To(qa,Pa.current),To(qa,Uu.current),To(qa,(vl=Ro.current)===null||vl===void 0?void 0:vl.setScrollLeft)}var yl=Yo||ws.current;if(yl){var $s=fo&&eo&&typeof Jo=="number"?Jo:yl.scrollWidth,Ul=yl.clientWidth;if($s===Ul){Ql(!1),Hu(!1);return}ds?(Ql(-qa<$s-Ul),Hu(-qa>0)):(Ql(qa>0),Hu(qa<$s-Ul))}}),Fs=(0,ke.Z)(function(Io){ba(Io),sr==null||sr(Io)}),sa=function(){if($o&&Pa.current){var Yo;ba({currentTarget:(0,gi.bn)(Pa.current),scrollLeft:(Yo=Pa.current)===null||Yo===void 0?void 0:Yo.scrollLeft})}else Ql(!1),Hu(!1)},Gs=function(Yo){var xa,ds=Yo.width;(xa=Ro.current)===null||xa===void 0||xa.checkScrollBarVisible();var qa=Os.current?Os.current.offsetWidth:ds;fo&&yo&&Os.current&&(qa=yo(Os.current,qa)||qa),qa!==jo&&(sa(),Dr(qa))},Ja=Te.useRef(!1);Te.useEffect(function(){Ja.current&&sa()},[$o,qi,fa.length]),Te.useEffect(function(){Ja.current=!0},[]);var hu=Te.useState(0),Ko=(0,Ce.Z)(hu,2),cs=Ko[0],Bo=Ko[1],na=Te.useState(!0),aa=(0,Ce.Z)(na,2),Sa=aa[0],Lo=aa[1];(0,Ie.Z)(function(){(!eo||!fo)&&(Pa.current instanceof Element?Bo((0,Gt.o)(Pa.current).width):Bo((0,Gt.o)(Al.current).width)),Lo((0,It.G)("position","sticky"))},[]),Te.useEffect(function(){fo&&zr&&(zr.body.current=Pa.current)});var ju=Te.useCallback(function(Io){return Te.createElement(Te.Fragment,null,Te.createElement(tr,Io),Qa==="top"&&Te.createElement(An,Io,Ma))},[Qa,Ma]),qr=Te.useCallback(function(Io){return Te.createElement(An,Io,Ma)},[Ma]),Qc=Co(["table"],"table"),Fo=Te.useMemo(function(){return dt||(Zo?Jo==="max-content"?"auto":"fixed":Cs||mr||vo.some(function(Io){var Yo=Io.ellipsis;return Yo})?"fixed":"auto")},[Cs,Zo,vo,dt,mr]),Lc,Au={colWidths:is,columCount:vo.length,stickyOffsets:du,onHeaderRow:Ki,fixHeader:Cs,scroll:di},ql=Te.useMemo(function(){return Cr?null:typeof Bi=="function"?Bi():Bi},[Cr,Bi]),Ic=Te.createElement(kn,{data:Lr,measureColumnWidth:Cs||$o||mr}),Ec=Te.createElement(Un,{colWidths:vo.map(function(Io){var Yo=Io.width;return Yo}),columns:vo}),Nl=Yn!=null?Te.createElement("caption",{className:"".concat(rt,"-caption")},Yn):void 0,kl=(0,fn.Z)(yn,{data:!0}),_o=(0,fn.Z)(yn,{aria:!0});if(Cs||mr){var Ts;typeof Jr=="function"?(Ts=Jr(Lr,{scrollbarSize:cs,ref:Pa,onScroll:ba}),Au.colWidths=vo.map(function(Io,Yo){var xa=Io.width,ds=Yo===vo.length-1?xa-cs:xa;return typeof ds=="number"&&!Number.isNaN(ds)?ds:0})):Ts=Te.createElement("div",{style:(0,Qe.Z)((0,Qe.Z)({},qs),gl),onScroll:Fs,ref:Pa,className:yt()("".concat(rt,"-body"))},Te.createElement(Qc,(0,Be.Z)({style:(0,Qe.Z)((0,Qe.Z)({},zu),{},{tableLayout:Fo})},_o),Nl,Ec,Ic,!Qa&&Ma&&Te.createElement(An,{stickyOffsets:du,flattenColumns:vo},Ma)));var Gu=(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({noData:!Lr.length,maxContentScroll:$o&&Jo==="max-content"},Au),ss),{},{direction:gn,stickyClassName:pl,onScroll:ba});Lc=Te.createElement(Te.Fragment,null,en!==!1&&Te.createElement(ti,(0,Be.Z)({},Gu,{stickyTopOffset:Xa,className:"".concat(rt,"-header"),ref:ws}),ju),Ts,Qa&&Qa!=="top"&&Te.createElement(ti,(0,Be.Z)({},Gu,{stickyBottomOffset:Qt,className:"".concat(rt,"-summary"),ref:Uu}),qr),mr&&Pa.current&&Pa.current instanceof Element&&Te.createElement(Fi,{ref:Ro,offsetScroll:Ti,scrollBodyRef:Pa,onScroll:ba,container:Jl,direction:gn}))}else Lc=Te.createElement("div",{style:(0,Qe.Z)((0,Qe.Z)({},qs),gl),className:yt()("".concat(rt,"-content")),onScroll:ba,ref:Pa},Te.createElement(Qc,(0,Be.Z)({style:(0,Qe.Z)((0,Qe.Z)({},zu),{},{tableLayout:Fo})},_o),Nl,Ec,en!==!1&&Te.createElement(tr,(0,Be.Z)({},Au,ss)),Ic,Ma&&Te.createElement(An,{stickyOffsets:du,flattenColumns:vo},Ma)));var Ll=Te.createElement("div",(0,Be.Z)({className:yt()(rt,Ii,(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)({},"".concat(rt,"-rtl"),gn==="rtl"),"".concat(rt,"-ping-left"),Ds),"".concat(rt,"-ping-right"),Ia),"".concat(rt,"-layout-fixed"),dt==="fixed"),"".concat(rt,"-fixed-header"),Cs),"".concat(rt,"-fixed-column"),Zo),"".concat(rt,"-fixed-column-gapped"),Zo&&gs),"".concat(rt,"-scroll-horizontal"),$o),"".concat(rt,"-has-fix-left"),vo[0]&&vo[0].fixed),"".concat(rt,"-has-fix-right"),vo[vo.length-1]&&vo[vo.length-1].fixed==="right")),style:nr,id:Gn,ref:Os},kl),vn&&Te.createElement(Ct,{className:"".concat(rt,"-title")},vn(Lr)),Te.createElement("div",{ref:Al,className:"".concat(rt,"-container")},Lc),Bn&&Te.createElement(Ct,{className:"".concat(rt,"-footer")},Bn(Lr)));$o&&(Ll=Te.createElement(Ft.Z,{onResize:Gs},Ll));var $l=dn(vo,du,gn),_l=Te.useMemo(function(){return{scrollX:Jo,prefixCls:rt,getComponent:Co,scrollbarSize:cs,direction:gn,fixedInfoList:$l,isSticky:mr,supportSticky:Sa,componentWidth:jo,fixHeader:Cs,fixColumn:Zo,horizonScroll:$o,tableLayout:Fo,rowClassName:Hi,expandedRowClassName:ua.expandedRowClassName,expandIcon:Ea,expandableType:Ua,expandRowByClick:ua.expandRowByClick,expandedRowRender:ua.expandedRowRender,onTriggerExpand:Mr,expandIconColumnIndex:ua.expandIconColumnIndex,indentSize:ua.indentSize,allColumnsFixedLeft:vo.every(function(Io){return Io.fixed==="left"}),emptyNode:ql,columns:fa,flattenColumns:vo,onColumnResize:ya,hoverStartRow:Ga,hoverEndRow:js,onHover:as,rowExpandable:ua.rowExpandable,onRow:dr,getRowKey:Fn,expandedKeys:ca,childrenColumnName:$i,rowHoverable:Qr}},[Jo,rt,Co,cs,gn,$l,mr,Sa,jo,Cs,Zo,$o,Fo,Hi,ua.expandedRowClassName,Ea,Ua,ua.expandRowByClick,ua.expandedRowRender,Mr,ua.expandIconColumnIndex,ua.indentSize,ql,fa,vo,ya,Ga,js,as,ua.rowExpandable,dr,Fn,ca,$i,Qr]);return Te.createElement(Pe.Provider,{value:_l},Ll)}var ln=Te.forwardRef(ji);function vr(Ln){return ue(ln,Ln)}var Wr=vr();Wr.EXPAND_COLUMN=oe.w,Wr.INTERNAL_HOOKS=oe.R,Wr.Column=je,Wr.ColumnGroup=Ai,Wr.Summary=Zn;var pn=Wr,ur=ae(6790),yr=ot(null),ir=ot(null);function pr(Ln,ci,yn){var rt=ci||1;return yn[Ln+rt]-(yn[Ln]||0)}function Tr(Ln){var ci=Ln.rowInfo,yn=Ln.column,rt=Ln.colIndex,Ii=Ln.indent,Hi=Ln.index,nr=Ln.component,qi=Ln.renderIndex,Zi=Ln.record,di=Ln.style,dt=Ln.className,gn=Ln.inverse,vn=Ln.getHeight,Bn=yn.render,hn=yn.dataIndex,Yn=yn.className,Gn=yn.width,en=Ke(ir,["columnsOffset"]),ri=en.columnsOffset,Bi=bn(ci,yn,rt,Ii,Hi),dr=Bi.key,Ki=Bi.fixedInfo,sr=Bi.appendCellNode,gr=Bi.additionalCellProps,wr=gr.style,zr=gr.colSpan,eo=zr===void 0?1:zr,yo=gr.rowSpan,xn=yo===void 0?1:yo,so=rt-1,Qr=pr(so,eo,ri),Lr=eo>1?Gn-Qr:0,Cr=(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},wr),di),{},{flex:"0 0 ".concat(Qr,"px"),width:"".concat(Qr,"px"),marginRight:Lr,pointerEvents:"auto"}),fo=Te.useMemo(function(){return gn?xn<=1:eo===0||xn===0||xn>1},[xn,eo,gn]);fo?Cr.visibility="hidden":gn&&(Cr.height=vn==null?void 0:vn(xn));var Co=fo?function(){return null}:Bn,Fn={};return(xn===0||eo===0)&&(Fn.rowSpan=1,Fn.colSpan=1),Te.createElement(Zt,(0,Be.Z)({className:yt()(Yn,dt),ellipsis:yn.ellipsis,align:yn.align,scope:yn.rowScope,component:nr,prefixCls:ci.prefixCls,key:dr,record:Zi,index:Hi,renderIndex:qi,dataIndex:hn,render:Co,shouldCellUpdate:yn.shouldCellUpdate},Ki,{appendNode:sr,additionalProps:(0,Qe.Z)((0,Qe.Z)({},gr),{},{style:Cr},Fn)}))}var Br=Tr,Ar=["data","index","className","rowKey","style","extra","getHeight"],br=Te.forwardRef(function(Ln,ci){var yn=Ln.data,rt=Ln.index,Ii=Ln.className,Hi=Ln.rowKey,nr=Ln.style,qi=Ln.extra,Zi=Ln.getHeight,di=(0,Le.Z)(Ln,Ar),dt=yn.record,gn=yn.indent,vn=yn.index,Bn=Ke(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),hn=Bn.scrollX,Yn=Bn.flattenColumns,Gn=Bn.prefixCls,en=Bn.fixColumn,ri=Bn.componentWidth,Bi=Ke(yr,["getComponent"]),dr=Bi.getComponent,Ki=Ot(dt,Hi,rt,gn),sr=dr(["body","row"],"div"),gr=dr(["body","cell"],"div"),wr=Ki.rowSupportExpand,zr=Ki.expanded,eo=Ki.rowProps,yo=Ki.expandedRowRender,xn=Ki.expandedRowClassName,so;if(wr&&zr){var Qr=yo(dt,rt,gn+1,zr),Lr=Vn(xn,dt,rt,gn),Cr={};en&&(Cr={style:(0,lt.Z)({},"--virtual-width","".concat(ri,"px"))});var fo="".concat(Gn,"-expanded-row-cell");so=Te.createElement(sr,{className:yt()("".concat(Gn,"-expanded-row"),"".concat(Gn,"-expanded-row-level-").concat(gn+1),Lr)},Te.createElement(Zt,{component:gr,prefixCls:Gn,className:yt()(fo,(0,lt.Z)({},"".concat(fo,"-fixed"),en)),additionalProps:Cr},Qr))}var Co=(0,Qe.Z)((0,Qe.Z)({},nr),{},{width:hn});qi&&(Co.position="absolute",Co.pointerEvents="none");var Fn=Te.createElement(sr,(0,Be.Z)({},eo,di,{"data-row-key":Hi,ref:wr?null:ci,className:yt()(Ii,"".concat(Gn,"-row"),eo==null?void 0:eo.className,(0,lt.Z)({},"".concat(Gn,"-row-extra"),qi)),style:(0,Qe.Z)((0,Qe.Z)({},Co),eo==null?void 0:eo.style)}),Yn.map(function(Jr,Do){return Te.createElement(Br,{key:Do,component:gr,rowInfo:Ki,column:Jr,colIndex:Do,indent:gn,index:rt,renderIndex:vn,record:dt,inverse:qi,getHeight:Zi})}));return wr?Te.createElement("div",{ref:ci},Fn,so):Fn}),_r=fe(br),Wn=_r,xr=Te.forwardRef(function(Ln,ci){var yn=Ln.data,rt=Ln.onScroll,Ii=Ke(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Hi=Ii.flattenColumns,nr=Ii.onColumnResize,qi=Ii.getRowKey,Zi=Ii.expandedKeys,di=Ii.prefixCls,dt=Ii.childrenColumnName,gn=Ii.scrollX,vn=Ii.direction,Bn=Ke(yr),hn=Bn.sticky,Yn=Bn.scrollY,Gn=Bn.listItemHeight,en=Bn.getComponent,ri=Bn.onScroll,Bi=Te.useRef(),dr=an(yn,dt,Zi,qi),Ki=Te.useMemo(function(){var so=0;return Hi.map(function(Qr){var Lr=Qr.width,Cr=Qr.key;return so+=Lr,[Cr,Lr,so]})},[Hi]),sr=Te.useMemo(function(){return Ki.map(function(so){return so[2]})},[Ki]);Te.useEffect(function(){Ki.forEach(function(so){var Qr=(0,Ce.Z)(so,2),Lr=Qr[0],Cr=Qr[1];nr(Lr,Cr)})},[Ki]),Te.useImperativeHandle(ci,function(){var so,Qr={scrollTo:function(Cr){var fo;(fo=Bi.current)===null||fo===void 0||fo.scrollTo(Cr)},nativeElement:(so=Bi.current)===null||so===void 0?void 0:so.nativeElement};return Object.defineProperty(Qr,"scrollLeft",{get:function(){var Cr;return((Cr=Bi.current)===null||Cr===void 0?void 0:Cr.getScrollInfo().x)||0},set:function(Cr){var fo;(fo=Bi.current)===null||fo===void 0||fo.scrollTo({left:Cr})}}),Qr});var gr=function(Qr,Lr){var Cr,fo=(Cr=dr[Lr])===null||Cr===void 0?void 0:Cr.record,Co=Qr.onCell;if(Co){var Fn,Jr=Co(fo,Lr);return(Fn=Jr==null?void 0:Jr.rowSpan)!==null&&Fn!==void 0?Fn:1}return 1},wr=function(Qr){var Lr=Qr.start,Cr=Qr.end,fo=Qr.getSize,Co=Qr.offsetY;if(Cr<0)return null;for(var Fn=Hi.filter(function(Ea){return gr(Ea,Lr)===0}),Jr=Lr,Do=function($i){if(Fn=Fn.filter(function(Mr){return gr(Mr,$i)===0}),!Fn.length)return Jr=$i,1},ma=Lr;ma>=0&&!Do(ma);ma-=1);for(var Ga=Hi.filter(function(Ea){return gr(Ea,Cr)!==1}),js=Cr,as=function($i){if(Ga=Ga.filter(function(Mr){return gr(Mr,$i)!==1}),!Ga.length)return js=Math.max($i-1,Cr),1},Fr=Cr;Fr<dr.length&&!as(Fr);Fr+=1);for(var la=[],ua=function($i){var Mr=dr[$i];if(!Mr)return 1;Hi.some(function(Kr){return gr(Kr,$i)>1})&&la.push($i)},Ua=Jr;Ua<=js;Ua+=1)ua(Ua);var ca=la.map(function(Ea){var $i=dr[Ea],Mr=qi($i.record,Ea),Kr=function(jo){var Dr=Ea+jo-1,Ya=qi(dr[Dr].record,Dr),va=fo(Mr,Ya);return va.bottom-va.top},uo=fo(Mr);return Te.createElement(Wn,{key:Ea,data:$i,rowKey:Mr,index:Ea,style:{top:-Co+uo.top},extra:!0,getHeight:Kr})});return ca},zr=Te.useMemo(function(){return{columnsOffset:sr}},[sr]),eo="".concat(di,"-tbody"),yo=en(["body","wrapper"]),xn={};return hn&&(xn.position="sticky",xn.bottom=0,(0,Ye.Z)(hn)==="object"&&hn.offsetScroll&&(xn.bottom=hn.offsetScroll)),Te.createElement(ir.Provider,{value:zr},Te.createElement(ur.Z,{fullHeight:!1,ref:Bi,prefixCls:"".concat(eo,"-virtual"),styles:{horizontalScrollBar:xn},className:eo,height:Yn,itemHeight:Gn||24,data:dr,itemKey:function(Qr){return qi(Qr.record)},component:yo,scrollWidth:gn,direction:vn,onVirtualScroll:function(Qr){var Lr,Cr=Qr.x;rt({currentTarget:(Lr=Bi.current)===null||Lr===void 0?void 0:Lr.nativeElement,scrollLeft:Cr})},onScroll:ri,extraRender:wr},function(so,Qr,Lr){var Cr=qi(so.record,Qr);return Te.createElement(Wn,{data:so,rowKey:Cr,index:Qr,style:Lr.style})}))}),$n=fe(xr),ar=$n,Nr=function(ci,yn){var rt=yn.ref,Ii=yn.onScroll;return Te.createElement(ar,{ref:rt,data:ci,onScroll:Ii})};function Sr(Ln,ci){var yn=Ln.data,rt=Ln.columns,Ii=Ln.scroll,Hi=Ln.sticky,nr=Ln.prefixCls,qi=nr===void 0?Rn:nr,Zi=Ln.className,di=Ln.listItemHeight,dt=Ln.components,gn=Ln.onScroll,vn=Ii||{},Bn=vn.x,hn=vn.y;typeof Bn!="number"&&(Bn=1),typeof hn!="number"&&(hn=500);var Yn=(0,Nn.zX)(function(ri,Bi){return(0,St.Z)(dt,ri)||Bi}),Gn=(0,Nn.zX)(gn),en=Te.useMemo(function(){return{sticky:Hi,scrollY:hn,listItemHeight:di,getComponent:Yn,onScroll:Gn}},[Hi,hn,di,Yn,Gn]);return Te.createElement(yr.Provider,{value:en},Te.createElement(pn,(0,Be.Z)({},Ln,{className:yt()(Zi,"".concat(qi,"-virtual")),scroll:(0,Qe.Z)((0,Qe.Z)({},Ii),{},{x:Bn}),components:(0,Qe.Z)((0,Qe.Z)({},dt),{},{body:yn!=null&&yn.length?Nr:void 0}),columns:rt,internalHooks:oe.R,tailor:!0,ref:ci})))}var Xr=Te.forwardRef(Sr);function Zr(Ln){return ue(Xr,Ln)}var Rr=Zr(),So=null},54451:function(_e,be,ae){"use strict";ae.d(be,{g:function(){return Te},v:function(){return He}});var oe=ae(98506),Ce=ae(33346),ke=ae(48736),Ie=["expandable"],He="RC_TABLE_INTERNAL_COL_DEFINE";function Te(ze){var ot=ze.expandable,Ke=(0,Ce.Z)(ze,Ie),Be;return"expandable"in ze?Be=(0,oe.Z)((0,oe.Z)({},Ke),ot):Be=Ke,Be.showExpandColumn===!1&&(Be.expandIconColumnIndex=-1),Be}},22711:function(_e,be,ae){"use strict";ae.r(be),ae.d(be,{ResizableTextArea:function(){return nt},default:function(){return Lt}});var oe=ae(67711),Ce=ae(52873),ke=ae(98506),Ie=ae(15142),He=ae(16886),Te=ae(33346),ze=ae(92310),ot=ae.n(ze),Ke=ae(36901),Be=ae(66003),gt=ae(30292),Je=ae(18929),wt=ae(59301),Fe=ae(26420),te=ae(29301),ee=ae(34280),he=ae(16089),ue=`
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;
`,fe=["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"],me={},Ee;function Pe(jt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=jt.getAttribute("id")||jt.getAttribute("data-reactid")||jt.getAttribute("name");if(Bt&&me[cn])return me[cn];var pt=window.getComputedStyle(jt),ut=pt.getPropertyValue("box-sizing")||pt.getPropertyValue("-moz-box-sizing")||pt.getPropertyValue("-webkit-box-sizing"),at=parseFloat(pt.getPropertyValue("padding-bottom"))+parseFloat(pt.getPropertyValue("padding-top")),Wt=parseFloat(pt.getPropertyValue("border-bottom-width"))+parseFloat(pt.getPropertyValue("border-top-width")),rn=fe.map(function(Xt){return"".concat(Xt,":").concat(pt.getPropertyValue(Xt))}).join(";"),Tt={sizingStyle:rn,paddingSize:at,borderSize:Wt,boxSizing:ut};return Bt&&cn&&(me[cn]=Tt),Tt}function Ne(jt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ee||(Ee=document.createElement("textarea"),Ee.setAttribute("tab-index","-1"),Ee.setAttribute("aria-hidden","true"),Ee.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ee)),jt.getAttribute("wrap")?Ee.setAttribute("wrap",jt.getAttribute("wrap")):Ee.removeAttribute("wrap");var ut=Pe(jt,Bt),at=ut.paddingSize,Wt=ut.borderSize,rn=ut.boxSizing,Tt=ut.sizingStyle;Ee.setAttribute("style","".concat(Tt,";").concat(ue)),Ee.value=jt.value||jt.placeholder||"";var Xt=void 0,nn=void 0,Nn,Rt=Ee.scrollHeight;if(rn==="border-box"?Rt+=Wt:rn==="content-box"&&(Rt-=at),cn!==null||pt!==null){Ee.value=" ";var At=Ee.scrollHeight-at;cn!==null&&(Xt=At*cn,rn==="border-box"&&(Xt=Xt+at+Wt),Rt=Math.max(Xt,Rt)),pt!==null&&(nn=At*pt,rn==="border-box"&&(nn=nn+at+Wt),Nn=Rt>nn?"":"hidden",Rt=Math.min(nn,Rt))}var Zt={height:Rt,overflowY:Nn,resize:"none"};return Xt&&(Zt.minHeight=Xt),nn&&(Zt.maxHeight=nn),Zt}var We=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],tt=0,Ye=1,Qe=2,lt=wt.forwardRef(function(jt,Bt){var cn=jt,pt=cn.prefixCls,ut=cn.defaultValue,at=cn.value,Wt=cn.autoSize,rn=cn.onResize,Tt=cn.className,Xt=cn.style,nn=cn.disabled,Nn=cn.onChange,Rt=cn.onInternalAutoSize,At=(0,Te.Z)(cn,We),Zt=(0,Je.Z)(ut,{value:at,postState:function(jn){return jn!=null?jn:""}}),In=(0,He.Z)(Zt,2),Dn=In[0],qe=In[1],Oe=function(jn){qe(jn.target.value),Nn==null||Nn(jn)},Le=wt.useRef();wt.useImperativeHandle(Bt,function(){return{textArea:Le.current}});var Ge=wt.useMemo(function(){return Wt&&(0,Fe.Z)(Wt)==="object"?[Wt.minRows,Wt.maxRows]:[]},[Wt]),it=(0,He.Z)(Ge,2),De=it[0],ht=it[1],on=!!Wt,An=function(){try{if(document.activeElement===Le.current){var jn=Le.current,Kn=jn.selectionStart,Ut=jn.selectionEnd,yi=jn.scrollTop;Le.current.setSelectionRange(Kn,Ut),Le.current.scrollTop=yi}}catch(Vi){}},Zn=wt.useState(Qe),Ft=(0,He.Z)(Zn,2),It=Ft[0],Gt=Ft[1],fn=wt.useState(),Pn=(0,He.Z)(fn,2),an=Pn[0],Ot=Pn[1],Mn=function(){Gt(tt)};(0,ee.Z)(function(){on&&Mn()},[at,De,ht,on]),(0,ee.Z)(function(){if(It===tt)Gt(Ye);else if(It===Ye){var mt=Ne(Le.current,!1,De,ht);Gt(Qe),Ot(mt)}else An()},[It]);var Ht=wt.useRef(),Kt=function(){he.Z.cancel(Ht.current)},un=function(jn){It===Qe&&(rn==null||rn(jn),Wt&&(Kt(),Ht.current=(0,he.Z)(function(){Mn()})))};wt.useEffect(function(){return Kt},[]);var Vn=on?an:null,bn=(0,ke.Z)((0,ke.Z)({},Xt),Vn);return(It===tt||It===Ye)&&(bn.overflowY="hidden",bn.overflowX="hidden"),wt.createElement(te.Z,{onResize:un,disabled:!(Wt||rn)},wt.createElement("textarea",(0,oe.Z)({},At,{ref:Le,style:bn,className:ot()(pt,Tt,(0,Ce.Z)({},"".concat(pt,"-disabled"),nn)),disabled:nn,value:Dn,onChange:Oe})))}),nt=lt,yt=["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"],vt=wt.forwardRef(function(jt,Bt){var cn,pt=jt.defaultValue,ut=jt.value,at=jt.onFocus,Wt=jt.onBlur,rn=jt.onChange,Tt=jt.allowClear,Xt=jt.maxLength,nn=jt.onCompositionStart,Nn=jt.onCompositionEnd,Rt=jt.suffix,At=jt.prefixCls,Zt=At===void 0?"rc-textarea":At,In=jt.showCount,Dn=jt.count,qe=jt.className,Oe=jt.style,Le=jt.disabled,Ge=jt.hidden,it=jt.classNames,De=jt.styles,ht=jt.onResize,on=jt.onClear,An=jt.onPressEnter,Zn=jt.readOnly,Ft=jt.autoSize,It=jt.onKeyDown,Gt=(0,Te.Z)(jt,yt),fn=(0,Je.Z)(pt,{value:ut,defaultValue:pt}),Pn=(0,He.Z)(fn,2),an=Pn[0],Ot=Pn[1],Mn=an==null?"":String(an),Ht=wt.useState(!1),Kt=(0,He.Z)(Ht,2),un=Kt[0],Vn=Kt[1],bn=wt.useRef(!1),mt=wt.useState(null),jn=(0,He.Z)(mt,2),Kn=jn[0],Ut=jn[1],yi=(0,wt.useRef)(null),Vi=(0,wt.useRef)(null),kn=function(){var Di;return(Di=Vi.current)===null||Di===void 0?void 0:Di.textArea},Vt=function(){kn().focus()};(0,wt.useImperativeHandle)(Bt,function(){var Hn;return{resizableTextArea:Vi.current,focus:Vt,blur:function(){kn().blur()},nativeElement:((Hn=yi.current)===null||Hn===void 0?void 0:Hn.nativeElement)||kn()}}),(0,wt.useEffect)(function(){Vn(function(Hn){return!Le&&Hn})},[Le]);var Qn=wt.useState(null),ai=(0,He.Z)(Qn,2),Un=ai[0],si=ai[1];wt.useEffect(function(){if(Un){var Hn;(Hn=kn()).setSelectionRange.apply(Hn,(0,Ie.Z)(Un))}},[Un]);var li=(0,Be.Z)(Dn,In),Me=(cn=li.max)!==null&&cn!==void 0?cn:Xt,ii=Number(Me)>0,ti=li.strategy(Mn),On=!!Me&&ti>Me,ni=function(Di,Yi){var mi=Yi;!bn.current&&li.exceedFormatter&&li.max&&li.strategy(Yi)>li.max&&(mi=li.exceedFormatter(Yi,{max:li.max}),Yi!==mi&&si([kn().selectionStart||0,kn().selectionEnd||0])),Ot(mi),(0,gt.rJ)(Di.currentTarget,Di,rn,mi)},Ei=function(Di){bn.current=!0,nn==null||nn(Di)},ui=function(Di){bn.current=!1,ni(Di,Di.currentTarget.value),Nn==null||Nn(Di)},tr=function(Di){ni(Di,Di.target.value)},Sn=function(Di){Di.key==="Enter"&&An&&An(Di),It==null||It(Di)},sn=function(Di){Vn(!0),at==null||at(Di)},dn=function(Di){Vn(!1),Wt==null||Wt(Di)},_n=function(Di){Ot(""),Vt(),(0,gt.rJ)(kn(),Di,rn)},Ri=Rt,qn;li.show&&(li.showFormatter?qn=li.showFormatter({value:Mn,count:ti,maxLength:Me}):qn="".concat(ti).concat(ii?" / ".concat(Me):""),Ri=wt.createElement(wt.Fragment,null,Ri,wt.createElement("span",{className:ot()("".concat(Zt,"-data-count"),it==null?void 0:it.count),style:De==null?void 0:De.count},qn)));var Ni=function(Di){var Yi;ht==null||ht(Di),(Yi=kn())!==null&&Yi!==void 0&&Yi.style.height&&Ut(!0)},mn=!Ft&&!In&&!Tt;return wt.createElement(Ke.BaseInput,{ref:yi,value:Mn,allowClear:Tt,handleReset:_n,suffix:Ri,prefixCls:Zt,classNames:(0,ke.Z)((0,ke.Z)({},it),{},{affixWrapper:ot()(it==null?void 0:it.affixWrapper,(0,Ce.Z)((0,Ce.Z)({},"".concat(Zt,"-show-count"),In),"".concat(Zt,"-textarea-allow-clear"),Tt))}),disabled:Le,focused:un,className:ot()(qe,On&&"".concat(Zt,"-out-of-range")),style:(0,ke.Z)((0,ke.Z)({},Oe),Kn&&!mn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof qn=="string"?qn:void 0}},hidden:Ge,readOnly:Zn,onClear:on},wt.createElement(nt,(0,oe.Z)({},Gt,{autoSize:Ft,maxLength:Xt,onKeyDown:Sn,onChange:tr,onFocus:sn,onBlur:dn,onCompositionStart:Ei,onCompositionEnd:ui,className:ot()(it==null?void 0:it.textarea),style:(0,ke.Z)((0,ke.Z)({},De==null?void 0:De.textarea),{},{resize:Oe==null?void 0:Oe.resize}),disabled:Le,prefixCls:Zt,onResize:Ni,ref:Vi,readOnly:Zn})))}),St=vt,Lt=St},9940:function(_e,be,ae){"use strict";ae.d(be,{Qw:function(){return In},FJ:function(){return qe},hT:function(){return Dn},OF:function(){return Ee},ZP:function(){return Zn}});var oe=ae(67711),Ce=ae(15142),ke=ae(98506),Ie=ae(16886),He=ae(33346),Te=ae(26420),ze=ae(37463),ot=ae(6551),Ke=ae(34643),Be=ae(18929),gt=ae(48736),Je=ae(59301),wt=function(Ft){var It=Je.useRef({valueLabels:new Map});return Je.useMemo(function(){var Gt=It.current.valueLabels,fn=new Map,Pn=Ft.map(function(an){var Ot=an.value,Mn=an.label,Ht=Mn!=null?Mn:Gt.get(Ot);return fn.set(Ot,Ht),(0,ke.Z)((0,ke.Z)({},an),{},{label:Ht})});return It.current.valueLabels=fn,[Pn]},[Ft])},Fe=function(It,Gt,fn,Pn){return Je.useMemo(function(){var an=function(mt){return mt.map(function(jn){var Kn=jn.value;return Kn})},Ot=an(It),Mn=an(Gt),Ht=Ot.filter(function(bn){return!Pn[bn]}),Kt=Ot,un=Mn;if(fn){var Vn=(0,Ke.S)(Ot,!0,Pn);Kt=Vn.checkedKeys,un=Vn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ce.Z)(Ht),(0,Ce.Z)(Kt)))),un]},[It,Gt,fn,Pn])},te=Fe,ee=ae(34061),he=function(Ft,It){return Je.useMemo(function(){var Gt=(0,ee.I8)(Ft,{fieldNames:It,initWrapper:function(Pn){return(0,ke.Z)((0,ke.Z)({},Pn),{},{valueEntities:new Map})},processEntity:function(Pn,an){var Ot=Pn.node[It.value];if(0)var Mn;an.valueEntities.set(Ot,Pn)}});return Gt},[Ft,It])},ue=ae(52873),fe=ae(11592),me=function(){return null},Ee=me,Pe=["children","value"];function Ne(Ft){return(0,fe.Z)(Ft).map(function(It){if(!Je.isValidElement(It)||!It.type)return null;var Gt=It,fn=Gt.key,Pn=Gt.props,an=Pn.children,Ot=Pn.value,Mn=(0,He.Z)(Pn,Pe),Ht=(0,ke.Z)({key:fn,value:Ot},Mn),Kt=Ne(an);return Kt.length&&(Ht.children=Kt),Ht}).filter(function(It){return It})}function We(Ft){if(!Ft)return Ft;var It=(0,ke.Z)({},Ft);return"props"in It||Object.defineProperty(It,"props",{get:function(){return(0,gt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),It}}),It}function tt(Ft,It,Gt,fn,Pn,an){var Ot=null,Mn=null;function Ht(){function Kt(un){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return un.map(function(mt,jn){var Kn="".concat(Vn,"-").concat(jn),Ut=mt[an.value],yi=Gt.includes(Ut),Vi=Kt(mt[an.children]||[],Kn,yi),kn=Je.createElement(Ee,mt,Vi.map(function(Qn){return Qn.node}));if(It===Ut&&(Ot=kn),yi){var Vt={pos:Kn,node:kn,children:Vi};return bn||Mn.push(Vt),Vt}return null}).filter(function(mt){return mt})}Mn||(Mn=[],Kt(fn),Mn.sort(function(un,Vn){var bn=un.node.props.value,mt=Vn.node.props.value,jn=Gt.indexOf(bn),Kn=Gt.indexOf(mt);return jn-Kn}))}Object.defineProperty(Ft,"triggerNode",{get:function(){return(0,gt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ht(),Ot}}),Object.defineProperty(Ft,"allCheckedNodes",{get:function(){return(0,gt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ht(),Pn?Mn:Mn.map(function(un){var Vn=un.node;return Vn})}})}var Ye=function(It,Gt,fn){var Pn=fn.fieldNames,an=fn.treeNodeFilterProp,Ot=fn.filterTreeNode,Mn=Pn.children;return Je.useMemo(function(){if(!Gt||Ot===!1)return It;var Ht=typeof Ot=="function"?Ot:function(un,Vn){return String(Vn[an]).toUpperCase().includes(Gt.toUpperCase())},Kt=function un(Vn){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vn.reduce(function(mt,jn){var Kn=jn[Mn],Ut=bn||Ht(Gt,We(jn)),yi=un(Kn||[],Ut);return(Ut||yi.length)&&mt.push((0,ke.Z)((0,ke.Z)({},jn),{},(0,ue.Z)({isLeaf:void 0},Mn,yi))),mt},[])};return Kt(It)},[It,Gt,Mn,an,Ot])},Qe=Ye;function lt(Ft){var It=Je.useRef();It.current=Ft;var Gt=Je.useCallback(function(){return It.current.apply(It,arguments)},[]);return Gt}function nt(Ft,It){var Gt=It.id,fn=It.pId,Pn=It.rootPId,an=new Map,Ot=[];return Ft.forEach(function(Mn){var Ht=Mn[Gt],Kt=(0,ke.Z)((0,ke.Z)({},Mn),{},{key:Mn.key||Ht});an.set(Ht,Kt)}),an.forEach(function(Mn){var Ht=Mn[fn],Kt=an.get(Ht);Kt?(Kt.children=Kt.children||[],Kt.children.push(Mn)):(Ht===Pn||Pn===null)&&Ot.push(Mn)}),Ot}function yt(Ft,It,Gt){return Je.useMemo(function(){if(Ft){if(Gt){var fn=(0,ke.Z)({id:"id",pId:"pId",rootPId:null},(0,Te.Z)(Gt)==="object"?Gt:{});return nt(Ft,fn)}return Ft}return Ne(It)},[It,Gt,Ft])}var vt=Je.createContext(null),St=vt,Lt=ae(69889),jt=ae(71598),Bt=ae(10228),cn=ae(80547),pt=Je.createContext(null),ut=pt,at=function(It){return Array.isArray(It)?It:It!==void 0?[It]:[]},Wt=function(It){var Gt=It||{},fn=Gt.label,Pn=Gt.value,an=Gt.children;return{_title:fn?[fn]:["title","label"],value:Pn||"value",key:Pn||"value",children:an||"children"}},rn=function(It){return!It||It.disabled||It.disableCheckbox||It.checkable===!1},Tt=function(It,Gt){var fn=[],Pn=function an(Ot){Ot.forEach(function(Mn){var Ht=Mn[Gt.children];Ht&&(fn.push(Mn[Gt.value]),an(Ht))})};return Pn(It),fn},Xt=function(It){return It==null},nn=ae(70425),Nn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Rt=function(It,Gt){var fn=(0,ze.lk)(),Pn=fn.prefixCls,an=fn.multiple,Ot=fn.searchValue,Mn=fn.toggleOpen,Ht=fn.open,Kt=fn.notFoundContent,un=Je.useContext(ut),Vn=un.virtual,bn=un.listHeight,mt=un.listItemHeight,jn=un.listItemScrollOffset,Kn=un.treeData,Ut=un.fieldNames,yi=un.onSelect,Vi=un.dropdownMatchSelectWidth,kn=un.treeExpandAction,Vt=un.treeTitleRender,Qn=un.onPopupScroll,ai=un.leftMaxCount,Un=un.leafCountOnly,si=un.valueEntities,li=Je.useContext(St),Me=li.checkable,ii=li.checkedKeys,ti=li.halfCheckedKeys,On=li.treeExpandedKeys,ni=li.treeDefaultExpandAll,Ei=li.treeDefaultExpandedKeys,ui=li.onTreeExpand,tr=li.treeIcon,Sn=li.showTreeIcon,sn=li.switcherIcon,dn=li.treeLine,_n=li.treeNodeFilterProp,Ri=li.loadData,qn=li.treeLoadedKeys,Ni=li.treeMotion,mn=li.onTreeLoad,Hn=li.keyEntities,Di=Je.useRef(),Yi=(0,cn.Z)(function(){return Kn},[Ht,Kn],function(Wn,xr){return xr[0]&&Wn[1]!==xr[1]}),mi=Je.useMemo(function(){return Me?{checked:ii,halfChecked:ti}:null},[Me,ii,ti]);Je.useEffect(function(){if(Ht&&!an&&ii.length){var Wn;(Wn=Di.current)===null||Wn===void 0||Wn.scrollTo({key:ii[0]})}},[Ht]);var Ct=function(xr){xr.preventDefault()},$t=function(xr,$n){var ar=$n.node;Me&&rn(ar)||(yi(ar.key,{selected:!ii.includes(ar.key)}),an||Mn(!1))},fi=Je.useState(Ei),gi=(0,Ie.Z)(fi,2),zt=gi[0],pi=gi[1],Fi=Je.useState(null),Cn=(0,Ie.Z)(Fi,2),je=Cn[0],Pi=Cn[1],Ai=Je.useMemo(function(){return On?(0,Ce.Z)(On):Ot?je:zt},[zt,je,On,Ot]),Rn=function(xr){pi(xr),Pi(xr),ui&&ui(xr)},Ji=String(Ot).toLowerCase(),_i=function(xr){return Ji?String(xr[_n]).toLowerCase().includes(Ji):!1};Je.useEffect(function(){Ot&&Pi(Tt(Kn,Ut))},[Ot]);var Jn=Je.useState(function(){return new Map}),ji=(0,Ie.Z)(Jn,2),ln=ji[0],vr=ji[1];Je.useEffect(function(){ai&&vr(new Map)},[ai]);function Wr(Wn){var xr=Wn[Ut.value];if(!ln.has(xr)){var $n=si.get(xr),ar=($n.children||[]).length===0;if(ar)ln.set(xr,!1);else{var Nr=$n.children.filter(function(Xr){return!Xr.node.disabled&&!Xr.node.disableCheckbox&&!ii.includes(Xr.node[Ut.value])}),Sr=Nr.length;ln.set(xr,Sr>ai)}}return ln.get(xr)}var pn=(0,nn.zX)(function(Wn){var xr=Wn[Ut.value];return ii.includes(xr)||ai===null?!1:ai<=0?!0:Un&&ai?Wr(Wn):!1}),ur=function Wn(xr){var $n=(0,Lt.Z)(xr),ar;try{for($n.s();!(ar=$n.n()).done;){var Nr=ar.value;if(!(Nr.disabled||Nr.selectable===!1)){if(Ot){if(_i(Nr))return Nr}else return Nr;if(Nr[Ut.children]){var Sr=Wn(Nr[Ut.children]);if(Sr)return Sr}}}}catch(Xr){$n.e(Xr)}finally{$n.f()}return null},yr=Je.useState(null),ir=(0,Ie.Z)(yr,2),pr=ir[0],Tr=ir[1],Br=Hn[pr];Je.useEffect(function(){if(Ht){var Wn=null,xr=function(){var ar=ur(Yi);return ar?ar[Ut.value]:null};!an&&ii.length&&!Ot?Wn=ii[0]:Wn=xr(),Tr(Wn)}},[Ht,Ot]),Je.useImperativeHandle(Gt,function(){var Wn;return{scrollTo:(Wn=Di.current)===null||Wn===void 0?void 0:Wn.scrollTo,onKeyDown:function($n){var ar,Nr=$n.which;switch(Nr){case Bt.Z.UP:case Bt.Z.DOWN:case Bt.Z.LEFT:case Bt.Z.RIGHT:(ar=Di.current)===null||ar===void 0||ar.onKeyDown($n);break;case Bt.Z.ENTER:{if(Br){var Sr=pn(Br.node),Xr=(Br==null?void 0:Br.node)||{},Zr=Xr.selectable,Rr=Xr.value,So=Xr.disabled;Zr!==!1&&!So&&!Sr&&$t(null,{node:{key:pr},selected:!ii.includes(Rr)})}break}case Bt.Z.ESC:Mn(!1)}},onKeyUp:function(){}}});var Ar=(0,cn.Z)(function(){return!Ot},[Ot,On||zt],function(Wn,xr){var $n=(0,Ie.Z)(Wn,1),ar=$n[0],Nr=(0,Ie.Z)(xr,2),Sr=Nr[0],Xr=Nr[1];return ar!==Sr&&!!(Sr||Xr)}),br=Ar?Ri:null;if(Yi.length===0)return Je.createElement("div",{role:"listbox",className:"".concat(Pn,"-empty"),onMouseDown:Ct},Kt);var _r={fieldNames:Ut};return qn&&(_r.loadedKeys=qn),Ai&&(_r.expandedKeys=Ai),Je.createElement("div",{onMouseDown:Ct},Br&&Ht&&Je.createElement("span",{style:Nn,"aria-live":"assertive"},Br.node.value),Je.createElement(jt.y6.Provider,{value:{nodeDisabled:pn}},Je.createElement(jt.ZP,(0,oe.Z)({ref:Di,focusable:!1,prefixCls:"".concat(Pn,"-tree"),treeData:Yi,height:bn,itemHeight:mt,itemScrollOffset:jn,virtual:Vn!==!1&&Vi!==!1,multiple:an,icon:tr,showIcon:Sn,switcherIcon:sn,showLine:dn,loadData:br,motion:Ni,activeKey:pr,checkable:Me,checkStrictly:!0,checkedKeys:mi,selectedKeys:Me?[]:ii,defaultExpandAll:ni,titleRender:Vt},_r,{onActiveChange:Tr,onSelect:$t,onCheck:$t,onExpand:Rn,onLoad:mn,filterTreeNode:_i,expandAction:kn,onScroll:Qn}))))},At=Je.forwardRef(Rt),Zt=At,In="SHOW_ALL",Dn="SHOW_PARENT",qe="SHOW_CHILD";function Oe(Ft,It,Gt,fn){var Pn=new Set(Ft);return It===qe?Ft.filter(function(an){var Ot=Gt[an];return!Ot||!Ot.children||!Ot.children.some(function(Mn){var Ht=Mn.node;return Pn.has(Ht[fn.value])})||!Ot.children.every(function(Mn){var Ht=Mn.node;return rn(Ht)||Pn.has(Ht[fn.value])})}):It===Dn?Ft.filter(function(an){var Ot=Gt[an],Mn=Ot?Ot.parent:null;return!Mn||rn(Mn.node)||!Pn.has(Mn.key)}):Ft}function Le(Ft){var It=Ft.searchPlaceholder,Gt=Ft.treeCheckStrictly,fn=Ft.treeCheckable,Pn=Ft.labelInValue,an=Ft.value,Ot=Ft.multiple,Mn=Ft.showCheckedStrategy,Ht=Ft.maxCount;warning(!It,"`searchPlaceholder` has been removed."),Gt&&Pn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Pn||Gt)&&warning(toArray(an).every(function(Kt){return Kt&&_typeof(Kt)==="object"&&"value"in Kt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Gt||Ot||fn?warning(!an||Array.isArray(an),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(an),"`value` should not be array when `TreeSelect` is single mode."),Ht&&(Mn==="SHOW_ALL"&&!Gt||Mn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Ge=null,it=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function De(Ft){return!Ft||(0,Te.Z)(Ft)!=="object"}var ht=Je.forwardRef(function(Ft,It){var Gt=Ft.id,fn=Ft.prefixCls,Pn=fn===void 0?"rc-tree-select":fn,an=Ft.value,Ot=Ft.defaultValue,Mn=Ft.onChange,Ht=Ft.onSelect,Kt=Ft.onDeselect,un=Ft.searchValue,Vn=Ft.inputValue,bn=Ft.onSearch,mt=Ft.autoClearSearchValue,jn=mt===void 0?!0:mt,Kn=Ft.filterTreeNode,Ut=Ft.treeNodeFilterProp,yi=Ut===void 0?"value":Ut,Vi=Ft.showCheckedStrategy,kn=Ft.treeNodeLabelProp,Vt=Ft.multiple,Qn=Ft.treeCheckable,ai=Ft.treeCheckStrictly,Un=Ft.labelInValue,si=Ft.maxCount,li=Ft.fieldNames,Me=Ft.treeDataSimpleMode,ii=Ft.treeData,ti=Ft.children,On=Ft.loadData,ni=Ft.treeLoadedKeys,Ei=Ft.onTreeLoad,ui=Ft.treeDefaultExpandAll,tr=Ft.treeExpandedKeys,Sn=Ft.treeDefaultExpandedKeys,sn=Ft.onTreeExpand,dn=Ft.treeExpandAction,_n=Ft.virtual,Ri=Ft.listHeight,qn=Ri===void 0?200:Ri,Ni=Ft.listItemHeight,mn=Ni===void 0?20:Ni,Hn=Ft.listItemScrollOffset,Di=Hn===void 0?0:Hn,Yi=Ft.onDropdownVisibleChange,mi=Ft.dropdownMatchSelectWidth,Ct=mi===void 0?!0:mi,$t=Ft.treeLine,fi=Ft.treeIcon,gi=Ft.showTreeIcon,zt=Ft.switcherIcon,pi=Ft.treeMotion,Fi=Ft.treeTitleRender,Cn=Ft.onPopupScroll,je=(0,He.Z)(Ft,it),Pi=(0,ot.ZP)(Gt),Ai=Qn&&!ai,Rn=Qn||ai,Ji=ai||Un,_i=Rn||Vt,Jn=(0,Be.Z)(Ot,{value:an}),ji=(0,Ie.Z)(Jn,2),ln=ji[0],vr=ji[1],Wr=Je.useMemo(function(){return Qn?Vi||qe:In},[Vi,Qn]),pn=Je.useMemo(function(){return Wt(li)},[JSON.stringify(li)]),ur=(0,Be.Z)("",{value:un!==void 0?un:Vn,postState:function(en){return en||""}}),yr=(0,Ie.Z)(ur,2),ir=yr[0],pr=yr[1],Tr=function(en){pr(en),bn==null||bn(en)},Br=yt(ii,ti,Me),Ar=he(Br,pn),br=Ar.keyEntities,_r=Ar.valueEntities,Wn=Je.useCallback(function(Gn){var en=[],ri=[];return Gn.forEach(function(Bi){_r.has(Bi)?ri.push(Bi):en.push(Bi)}),{missingRawValues:en,existRawValues:ri}},[_r]),xr=Qe(Br,ir,{fieldNames:pn,treeNodeFilterProp:yi,filterTreeNode:Kn}),$n=Je.useCallback(function(Gn){if(Gn){if(kn)return Gn[kn];for(var en=pn._title,ri=0;ri<en.length;ri+=1){var Bi=Gn[en[ri]];if(Bi!==void 0)return Bi}}},[pn,kn]),ar=Je.useCallback(function(Gn){var en=at(Gn);return en.map(function(ri){return De(ri)?{value:ri}:ri})},[]),Nr=Je.useCallback(function(Gn){var en=ar(Gn);return en.map(function(ri){var Bi=ri.label,dr=ri.value,Ki=ri.halfChecked,sr,gr=_r.get(dr);if(gr){var wr;Bi=Fi?Fi(gr.node):(wr=Bi)!==null&&wr!==void 0?wr:$n(gr.node),sr=gr.node.disabled}else if(Bi===void 0){var zr=ar(ln).find(function(eo){return eo.value===dr});Bi=zr.label}return{label:Bi,value:dr,halfChecked:Ki,disabled:sr}})},[_r,$n,ar,ln]),Sr=Je.useMemo(function(){return ar(ln===null?[]:ln)},[ar,ln]),Xr=Je.useMemo(function(){var Gn=[],en=[];return Sr.forEach(function(ri){ri.halfChecked?en.push(ri):Gn.push(ri)}),[Gn,en]},[Sr]),Zr=(0,Ie.Z)(Xr,2),Rr=Zr[0],So=Zr[1],Ln=Je.useMemo(function(){return Rr.map(function(Gn){return Gn.value})},[Rr]),ci=te(Rr,So,Ai,br),yn=(0,Ie.Z)(ci,2),rt=yn[0],Ii=yn[1],Hi=Je.useMemo(function(){var Gn=Oe(rt,Wr,br,pn),en=Gn.map(function(Ki){var sr,gr;return(sr=(gr=br[Ki])===null||gr===void 0||(gr=gr.node)===null||gr===void 0?void 0:gr[pn.value])!==null&&sr!==void 0?sr:Ki}),ri=en.map(function(Ki){var sr=Rr.find(function(wr){return wr.value===Ki}),gr=Un?sr==null?void 0:sr.label:Fi==null?void 0:Fi(sr);return{value:Ki,label:gr}}),Bi=Nr(ri),dr=Bi[0];return!_i&&dr&&Xt(dr.value)&&Xt(dr.label)?[]:Bi.map(function(Ki){var sr;return(0,ke.Z)((0,ke.Z)({},Ki),{},{label:(sr=Ki.label)!==null&&sr!==void 0?sr:Ki.value})})},[pn,_i,rt,Rr,Nr,Wr,br]),nr=wt(Hi),qi=(0,Ie.Z)(nr,1),Zi=qi[0],di=Je.useMemo(function(){return _i&&(Wr==="SHOW_CHILD"||ai||!Qn)?si:null},[si,_i,ai,Wr,Qn]),dt=lt(function(Gn,en,ri){var Bi=Oe(Gn,Wr,br,pn);if(!(di&&Bi.length>di)){var dr=Nr(Gn);if(vr(dr),jn&&pr(""),Mn){var Ki=Gn;Ai&&(Ki=Bi.map(function(Lr){var Cr=_r.get(Lr);return Cr?Cr.node[pn.value]:Lr}));var sr=en||{triggerValue:void 0,selected:void 0},gr=sr.triggerValue,wr=sr.selected,zr=Ki;if(ai){var eo=So.filter(function(Lr){return!Ki.includes(Lr.value)});zr=[].concat((0,Ce.Z)(zr),(0,Ce.Z)(eo))}var yo=Nr(zr),xn={preValue:Rr,triggerValue:gr},so=!0;(ai||ri==="selection"&&!wr)&&(so=!1),tt(xn,gr,Gn,Br,so,pn),Rn?xn.checked=wr:xn.selected=wr;var Qr=Ji?yo:yo.map(function(Lr){return Lr.value});Mn(_i?Qr:Qr[0],Ji?null:yo.map(function(Lr){return Lr.label}),xn)}}}),gn=Je.useCallback(function(Gn,en){var ri,Bi=en.selected,dr=en.source,Ki=br[Gn],sr=Ki==null?void 0:Ki.node,gr=(ri=sr==null?void 0:sr[pn.value])!==null&&ri!==void 0?ri:Gn;if(!_i)dt([gr],{selected:!0,triggerValue:gr},"option");else{var wr=Bi?[].concat((0,Ce.Z)(Ln),[gr]):rt.filter(function(Cr){return Cr!==gr});if(Ai){var zr=Wn(wr),eo=zr.missingRawValues,yo=zr.existRawValues,xn=yo.map(function(Cr){return _r.get(Cr).key}),so;if(Bi){var Qr=(0,Ke.S)(xn,!0,br);so=Qr.checkedKeys}else{var Lr=(0,Ke.S)(xn,{checked:!1,halfCheckedKeys:Ii},br);so=Lr.checkedKeys}wr=[].concat((0,Ce.Z)(eo),(0,Ce.Z)(so.map(function(Cr){return br[Cr].node[pn.value]})))}dt(wr,{selected:Bi,triggerValue:gr},dr||"option")}Bi||!_i?Ht==null||Ht(gr,We(sr)):Kt==null||Kt(gr,We(sr))},[Wn,_r,br,pn,_i,Ln,dt,Ai,Ht,Kt,rt,Ii,si]),vn=Je.useCallback(function(Gn){if(Yi){var en={};Object.defineProperty(en,"documentClickClose",{get:function(){return(0,gt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Yi(Gn,en)}},[Yi]),Bn=lt(function(Gn,en){var ri=Gn.map(function(Bi){return Bi.value});if(en.type==="clear"){dt(ri,{},"selection");return}en.values.length&&gn(en.values[0].value,{selected:!1,source:"selection"})}),hn=Je.useMemo(function(){return{virtual:_n,dropdownMatchSelectWidth:Ct,listHeight:qn,listItemHeight:mn,listItemScrollOffset:Di,treeData:xr,fieldNames:pn,onSelect:gn,treeExpandAction:dn,treeTitleRender:Fi,onPopupScroll:Cn,leftMaxCount:si===void 0?null:si-Zi.length,leafCountOnly:Wr==="SHOW_CHILD"&&!ai&&!!Qn,valueEntities:_r}},[_n,Ct,qn,mn,Di,xr,pn,gn,dn,Fi,Cn,si,Zi.length,Wr,ai,Qn,_r]),Yn=Je.useMemo(function(){return{checkable:Rn,loadData:On,treeLoadedKeys:ni,onTreeLoad:Ei,checkedKeys:rt,halfCheckedKeys:Ii,treeDefaultExpandAll:ui,treeExpandedKeys:tr,treeDefaultExpandedKeys:Sn,onTreeExpand:sn,treeIcon:fi,treeMotion:pi,showTreeIcon:gi,switcherIcon:zt,treeLine:$t,treeNodeFilterProp:yi,keyEntities:br}},[Rn,On,ni,Ei,rt,Ii,ui,tr,Sn,sn,fi,pi,gi,zt,$t,yi,br]);return Je.createElement(ut.Provider,{value:hn},Je.createElement(St.Provider,{value:Yn},Je.createElement(ze.Ac,(0,oe.Z)({ref:It},je,{id:Pi,prefixCls:Pn,mode:_i?"multiple":void 0,displayValues:Zi,onDisplayValuesChange:Bn,searchValue:ir,onSearch:Tr,OptionList:Zt,emptyOptions:!Br.length,onDropdownVisibleChange:vn,dropdownMatchSelectWidth:Ct}))))}),on=ht;on.TreeNode=Ee,on.SHOW_ALL=In,on.SHOW_PARENT=Dn,on.SHOW_CHILD=qe;var An=on,Zn=An},639:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return me}});var oe=ae(67711),Ce=ae(52873),ke=ae(98506),Ie=ae(16886),He=ae(33346),Te=ae(59301),ze=ae(92310),ot=ae.n(ze),Ke=ae(26112),Be=ae(30699),gt=function(Pe){for(var Ne=Pe.prefixCls,We=Pe.level,tt=Pe.isStart,Ye=Pe.isEnd,Qe="".concat(Ne,"-indent-unit"),lt=[],nt=0;nt<We;nt+=1)lt.push(Te.createElement("span",{key:nt,className:ot()(Qe,(0,Ce.Z)((0,Ce.Z)({},"".concat(Qe,"-start"),tt[nt]),"".concat(Qe,"-end"),Ye[nt]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(Ne,"-indent")},lt)},Je=Te.memo(gt),wt=ae(65065),Fe=ae(34061),te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",he="close",ue="---",fe=function(Pe){var Ne,We,tt,Ye=Pe.eventKey,Qe=Pe.className,lt=Pe.style,nt=Pe.dragOver,yt=Pe.dragOverGapTop,vt=Pe.dragOverGapBottom,St=Pe.isLeaf,Lt=Pe.isStart,jt=Pe.isEnd,Bt=Pe.expanded,cn=Pe.selected,pt=Pe.checked,ut=Pe.halfChecked,at=Pe.loading,Wt=Pe.domRef,rn=Pe.active,Tt=Pe.data,Xt=Pe.onMouseMove,nn=Pe.selectable,Nn=(0,He.Z)(Pe,te),Rt=Te.useContext(Be.k),At=Te.useContext(Be.y),Zt=Te.useRef(null),In=Te.useState(!1),Dn=(0,Ie.Z)(In,2),qe=Dn[0],Oe=Dn[1],Le=!!(Rt.disabled||Pe.disabled||(Ne=At.nodeDisabled)!==null&&Ne!==void 0&&Ne.call(At,Tt)),Ge=Te.useMemo(function(){return!Rt.checkable||Pe.checkable===!1?!1:Rt.checkable},[Rt.checkable,Pe.checkable]),it=function(ti){Le||Rt.onNodeSelect(ti,(0,Fe.F)(Pe))},De=function(ti){Le||!Ge||Pe.disableCheckbox||Rt.onNodeCheck(ti,(0,Fe.F)(Pe),!pt)},ht=Te.useMemo(function(){return typeof nn=="boolean"?nn:Rt.selectable},[nn,Rt.selectable]),on=function(ti){Rt.onNodeClick(ti,(0,Fe.F)(Pe)),ht?it(ti):De(ti)},An=function(ti){Rt.onNodeDoubleClick(ti,(0,Fe.F)(Pe))},Zn=function(ti){Rt.onNodeMouseEnter(ti,(0,Fe.F)(Pe))},Ft=function(ti){Rt.onNodeMouseLeave(ti,(0,Fe.F)(Pe))},It=function(ti){Rt.onNodeContextMenu(ti,(0,Fe.F)(Pe))},Gt=Te.useMemo(function(){return!!(Rt.draggable&&(!Rt.draggable.nodeDraggable||Rt.draggable.nodeDraggable(Tt)))},[Rt.draggable,Tt]),fn=function(ti){ti.stopPropagation(),Oe(!0),Rt.onNodeDragStart(ti,Pe);try{ti.dataTransfer.setData("text/plain","")}catch(On){}},Pn=function(ti){ti.preventDefault(),ti.stopPropagation(),Rt.onNodeDragEnter(ti,Pe)},an=function(ti){ti.preventDefault(),ti.stopPropagation(),Rt.onNodeDragOver(ti,Pe)},Ot=function(ti){ti.stopPropagation(),Rt.onNodeDragLeave(ti,Pe)},Mn=function(ti){ti.stopPropagation(),Oe(!1),Rt.onNodeDragEnd(ti,Pe)},Ht=function(ti){ti.preventDefault(),ti.stopPropagation(),Oe(!1),Rt.onNodeDrop(ti,Pe)},Kt=function(ti){at||Rt.onNodeExpand(ti,(0,Fe.F)(Pe))},un=Te.useMemo(function(){var ii=(0,wt.Z)(Rt.keyEntities,Ye)||{},ti=ii.children;return!!(ti||[]).length},[Rt.keyEntities,Ye]),Vn=Te.useMemo(function(){return St===!1?!1:St||!Rt.loadData&&!un||Rt.loadData&&Pe.loaded&&!un},[St,Rt.loadData,un,Pe.loaded]);Te.useEffect(function(){at||typeof Rt.loadData=="function"&&Bt&&!Vn&&!Pe.loaded&&Rt.onNodeLoad((0,Fe.F)(Pe))},[at,Rt.loadData,Rt.onNodeLoad,Bt,Vn,Pe]);var bn=Te.useMemo(function(){var ii;return(ii=Rt.draggable)!==null&&ii!==void 0&&ii.icon?Te.createElement("span",{className:"".concat(Rt.prefixCls,"-draggable-icon")},Rt.draggable.icon):null},[Rt.draggable]),mt=function(ti){var On=Pe.switcherIcon||Rt.switcherIcon;return typeof On=="function"?On((0,ke.Z)((0,ke.Z)({},Pe),{},{isLeaf:ti})):On},jn=function(){if(Vn){var ti=mt(!0);return ti!==!1?Te.createElement("span",{className:ot()("".concat(Rt.prefixCls,"-switcher"),"".concat(Rt.prefixCls,"-switcher-noop"))},ti):null}var On=mt(!1);return On!==!1?Te.createElement("span",{onClick:Kt,className:ot()("".concat(Rt.prefixCls,"-switcher"),"".concat(Rt.prefixCls,"-switcher_").concat(Bt?ee:he))},On):null},Kn=Te.useMemo(function(){if(!Ge)return null;var ii=typeof Ge!="boolean"?Ge:null;return Te.createElement("span",{className:ot()("".concat(Rt.prefixCls,"-checkbox"),(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(Rt.prefixCls,"-checkbox-checked"),pt),"".concat(Rt.prefixCls,"-checkbox-indeterminate"),!pt&&ut),"".concat(Rt.prefixCls,"-checkbox-disabled"),Le||Pe.disableCheckbox)),onClick:De,role:"checkbox","aria-checked":ut?"mixed":pt,"aria-disabled":Le||Pe.disableCheckbox,"aria-label":"Select ".concat(typeof Pe.title=="string"?Pe.title:"tree node")},ii)},[Ge,pt,ut,Le,Pe.disableCheckbox,Pe.title]),Ut=Te.useMemo(function(){return Vn?null:Bt?ee:he},[Vn,Bt]),yi=Te.useMemo(function(){return Te.createElement("span",{className:ot()("".concat(Rt.prefixCls,"-iconEle"),"".concat(Rt.prefixCls,"-icon__").concat(Ut||"docu"),(0,Ce.Z)({},"".concat(Rt.prefixCls,"-icon_loading"),at))})},[Rt.prefixCls,Ut,at]),Vi=Te.useMemo(function(){var ii=!!Rt.draggable,ti=!Pe.disabled&&ii&&Rt.dragOverNodeKey===Ye;return ti?Rt.dropIndicatorRender({dropPosition:Rt.dropPosition,dropLevelOffset:Rt.dropLevelOffset,indent:Rt.indent,prefixCls:Rt.prefixCls,direction:Rt.direction}):null},[Rt.dropPosition,Rt.dropLevelOffset,Rt.indent,Rt.prefixCls,Rt.direction,Rt.draggable,Rt.dragOverNodeKey,Rt.dropIndicatorRender]),kn=Te.useMemo(function(){var ii=Pe.title,ti=ii===void 0?ue:ii,On="".concat(Rt.prefixCls,"-node-content-wrapper"),ni;if(Rt.showIcon){var Ei=Pe.icon||Rt.icon;ni=Ei?Te.createElement("span",{className:ot()("".concat(Rt.prefixCls,"-iconEle"),"".concat(Rt.prefixCls,"-icon__customize"))},typeof Ei=="function"?Ei(Pe):Ei):yi}else Rt.loadData&&at&&(ni=yi);var ui;return typeof ti=="function"?ui=ti(Tt):Rt.titleRender?ui=Rt.titleRender(Tt):ui=ti,Te.createElement("span",{ref:Zt,title:typeof ti=="string"?ti:"",className:ot()(On,"".concat(On,"-").concat(Ut||"normal"),(0,Ce.Z)({},"".concat(Rt.prefixCls,"-node-selected"),!Le&&(cn||qe))),onMouseEnter:Zn,onMouseLeave:Ft,onContextMenu:It,onClick:on,onDoubleClick:An},ni,Te.createElement("span",{className:"".concat(Rt.prefixCls,"-title")},ui),Vi)},[Rt.prefixCls,Rt.showIcon,Pe,Rt.icon,yi,Rt.titleRender,Tt,Ut,Zn,Ft,It,on,An]),Vt=(0,Ke.Z)(Nn,{aria:!0,data:!0}),Qn=(0,wt.Z)(Rt.keyEntities,Ye)||{},ai=Qn.level,Un=jt[jt.length-1],si=!Le&&Gt,li=Rt.draggingNodeKey===Ye,Me=nn!==void 0?{"aria-selected":!!nn}:void 0;return Te.createElement("div",(0,oe.Z)({ref:Wt,role:"treeitem","aria-expanded":St?void 0:Bt,className:ot()(Qe,"".concat(Rt.prefixCls,"-treenode"),(tt={},(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)(tt,"".concat(Rt.prefixCls,"-treenode-disabled"),Le),"".concat(Rt.prefixCls,"-treenode-switcher-").concat(Bt?"open":"close"),!St),"".concat(Rt.prefixCls,"-treenode-checkbox-checked"),pt),"".concat(Rt.prefixCls,"-treenode-checkbox-indeterminate"),ut),"".concat(Rt.prefixCls,"-treenode-selected"),cn),"".concat(Rt.prefixCls,"-treenode-loading"),at),"".concat(Rt.prefixCls,"-treenode-active"),rn),"".concat(Rt.prefixCls,"-treenode-leaf-last"),Un),"".concat(Rt.prefixCls,"-treenode-draggable"),Gt),"dragging",li),(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)(tt,"drop-target",Rt.dropTargetKey===Ye),"drop-container",Rt.dropContainerKey===Ye),"drag-over",!Le&&nt),"drag-over-gap-top",!Le&&yt),"drag-over-gap-bottom",!Le&&vt),"filter-node",(We=Rt.filterTreeNode)===null||We===void 0?void 0:We.call(Rt,(0,Fe.F)(Pe))),"".concat(Rt.prefixCls,"-treenode-leaf"),Vn))),style:lt,draggable:si,onDragStart:si?fn:void 0,onDragEnter:Gt?Pn:void 0,onDragOver:Gt?an:void 0,onDragLeave:Gt?Ot:void 0,onDrop:Gt?Ht:void 0,onDragEnd:Gt?Mn:void 0,onMouseMove:Xt},Me,Vt),Te.createElement(Je,{prefixCls:Rt.prefixCls,level:ai,isStart:Lt,isEnd:jt}),bn,jn(),Kn,kn)};fe.isTreeNode=1;var me=fe},30699:function(_e,be,ae){"use strict";ae.d(be,{k:function(){return Ce},y:function(){return ke}});var oe=ae(59301),Ce=oe.createContext(null),ke=oe.createContext({})},71598:function(_e,be,ae){"use strict";ae.d(be,{OF:function(){return Ye.Z},y6:function(){return he.y},ZP:function(){return Le}});var oe=ae(67711),Ce=ae(26420),ke=ae(98506),Ie=ae(15142),He=ae(42573),Te=ae(58698),ze=ae(62437),ot=ae(74700),Ke=ae(45080),Be=ae(52873),gt=ae(92310),Je=ae.n(gt),wt=ae(10228),Fe=ae(26112),te=ae(48736),ee=ae(59301),he=ae(30699),ue=function(it){var De=it.dropPosition,ht=it.dropLevelOffset,on=it.indent,An={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(De){case-1:An.top=0,An.left=-ht*on;break;case 1:An.bottom=0,An.left=-ht*on;break;case 0:An.bottom=0,An.left=on;break}return ee.createElement("div",{style:An})},fe=ue;function me(Ge){if(Ge==null)throw new TypeError("Cannot destructure "+Ge)}var Ee=ae(16886),Pe=ae(33346),Ne=ae(34280),We=ae(6790),tt=ae(77900),Ye=ae(639);function Qe(Ge,it){var De=ee.useState(!1),ht=(0,Ee.Z)(De,2),on=ht[0],An=ht[1];(0,Ne.Z)(function(){if(on)return Ge(),function(){it()}},[on]),(0,Ne.Z)(function(){return An(!0),function(){An(!1)}},[])}var lt=Qe,nt=ae(34061),yt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],vt=ee.forwardRef(function(Ge,it){var De=Ge.className,ht=Ge.style,on=Ge.motion,An=Ge.motionNodes,Zn=Ge.motionType,Ft=Ge.onMotionStart,It=Ge.onMotionEnd,Gt=Ge.active,fn=Ge.treeNodeRequiredProps,Pn=(0,Pe.Z)(Ge,yt),an=ee.useState(!0),Ot=(0,Ee.Z)(an,2),Mn=Ot[0],Ht=Ot[1],Kt=ee.useContext(he.k),un=Kt.prefixCls,Vn=An&&Zn!=="hide";(0,Ne.Z)(function(){An&&Vn!==Mn&&Ht(Vn)},[An]);var bn=function(){An&&Ft()},mt=ee.useRef(!1),jn=function(){An&&!mt.current&&(mt.current=!0,It())};lt(bn,jn);var Kn=function(yi){Vn===yi&&jn()};return An?ee.createElement(tt.default,(0,oe.Z)({ref:it,visible:Mn},on,{motionAppear:Zn==="show",onVisibleChanged:Kn}),function(Ut,yi){var Vi=Ut.className,kn=Ut.style;return ee.createElement("div",{ref:yi,className:Je()("".concat(un,"-treenode-motion"),Vi),style:kn},An.map(function(Vt){var Qn=Object.assign({},(me(Vt.data),Vt.data)),ai=Vt.title,Un=Vt.key,si=Vt.isStart,li=Vt.isEnd;delete Qn.children;var Me=(0,nt.H8)(Un,fn);return ee.createElement(Ye.Z,(0,oe.Z)({},Qn,Me,{title:ai,active:Gt,data:Vt.data,key:Un,isStart:si,isEnd:li}))}))}):ee.createElement(Ye.Z,(0,oe.Z)({domRef:it,className:De,style:ht},Pn,{active:Gt}))}),St=vt;function Lt(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],De=Ge.length,ht=it.length;if(Math.abs(De-ht)!==1)return{add:!1,key:null};function on(An,Zn){var Ft=new Map;An.forEach(function(Gt){Ft.set(Gt,!0)});var It=Zn.filter(function(Gt){return!Ft.has(Gt)});return It.length===1?It[0]:null}return De<ht?{add:!0,key:on(Ge,it)}:{add:!1,key:on(it,Ge)}}function jt(Ge,it,De){var ht=Ge.findIndex(function(Ft){return Ft.key===De}),on=Ge[ht+1],An=it.findIndex(function(Ft){return Ft.key===De});if(on){var Zn=it.findIndex(function(Ft){return Ft.key===on.key});return it.slice(An+1,Zn)}return it.slice(An+1)}var Bt=["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"],cn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pt=function(){},ut="RC_TREE_MOTION_".concat(Math.random()),at={key:ut},Wt={key:ut,level:0,index:0,pos:"0",node:at,nodes:[at]},rn={parent:null,children:[],pos:Wt.pos,data:at,title:null,key:ut,isStart:[],isEnd:[]};function Tt(Ge,it,De,ht){return it===!1||!De?Ge:Ge.slice(0,Math.ceil(De/ht)+1)}function Xt(Ge){var it=Ge.key,De=Ge.pos;return(0,nt.km)(it,De)}function nn(Ge){for(var it=String(Ge.data.key),De=Ge;De.parent;)De=De.parent,it="".concat(De.data.key," > ").concat(it);return it}var Nn=ee.forwardRef(function(Ge,it){var De=Ge.prefixCls,ht=Ge.data,on=Ge.selectable,An=Ge.checkable,Zn=Ge.expandedKeys,Ft=Ge.selectedKeys,It=Ge.checkedKeys,Gt=Ge.loadedKeys,fn=Ge.loadingKeys,Pn=Ge.halfCheckedKeys,an=Ge.keyEntities,Ot=Ge.disabled,Mn=Ge.dragging,Ht=Ge.dragOverNodeKey,Kt=Ge.dropPosition,un=Ge.motion,Vn=Ge.height,bn=Ge.itemHeight,mt=Ge.virtual,jn=Ge.scrollWidth,Kn=Ge.focusable,Ut=Ge.activeItem,yi=Ge.focused,Vi=Ge.tabIndex,kn=Ge.onKeyDown,Vt=Ge.onFocus,Qn=Ge.onBlur,ai=Ge.onActiveChange,Un=Ge.onListChangeStart,si=Ge.onListChangeEnd,li=(0,Pe.Z)(Ge,Bt),Me=ee.useRef(null),ii=ee.useRef(null);ee.useImperativeHandle(it,function(){return{scrollTo:function(Cn){Me.current.scrollTo(Cn)},getIndentWidth:function(){return ii.current.offsetWidth}}});var ti=ee.useState(Zn),On=(0,Ee.Z)(ti,2),ni=On[0],Ei=On[1],ui=ee.useState(ht),tr=(0,Ee.Z)(ui,2),Sn=tr[0],sn=tr[1],dn=ee.useState(ht),_n=(0,Ee.Z)(dn,2),Ri=_n[0],qn=_n[1],Ni=ee.useState([]),mn=(0,Ee.Z)(Ni,2),Hn=mn[0],Di=mn[1],Yi=ee.useState(null),mi=(0,Ee.Z)(Yi,2),Ct=mi[0],$t=mi[1],fi=ee.useRef(ht);fi.current=ht;function gi(){var Fi=fi.current;sn(Fi),qn(Fi),Di([]),$t(null),si()}(0,Ne.Z)(function(){Ei(Zn);var Fi=Lt(ni,Zn);if(Fi.key!==null)if(Fi.add){var Cn=Sn.findIndex(function(_i){var Jn=_i.key;return Jn===Fi.key}),je=Tt(jt(Sn,ht,Fi.key),mt,Vn,bn),Pi=Sn.slice();Pi.splice(Cn+1,0,rn),qn(Pi),Di(je),$t("show")}else{var Ai=ht.findIndex(function(_i){var Jn=_i.key;return Jn===Fi.key}),Rn=Tt(jt(ht,Sn,Fi.key),mt,Vn,bn),Ji=ht.slice();Ji.splice(Ai+1,0,rn),qn(Ji),Di(Rn),$t("hide")}else Sn!==ht&&(sn(ht),qn(ht))},[Zn,ht]),ee.useEffect(function(){Mn||gi()},[Mn]);var zt=un?Ri:ht,pi={expandedKeys:Zn,selectedKeys:Ft,loadedKeys:Gt,loadingKeys:fn,checkedKeys:It,halfCheckedKeys:Pn,dragOverNodeKey:Ht,dropPosition:Kt,keyEntities:an};return ee.createElement(ee.Fragment,null,yi&&Ut&&ee.createElement("span",{style:cn,"aria-live":"assertive"},nn(Ut)),ee.createElement("div",null,ee.createElement("input",{style:cn,disabled:Kn===!1||Ot,tabIndex:Kn!==!1?Vi:null,onKeyDown:kn,onFocus:Vt,onBlur:Qn,value:"",onChange:pt,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(De,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(De,"-indent")},ee.createElement("div",{ref:ii,className:"".concat(De,"-indent-unit")}))),ee.createElement(We.Z,(0,oe.Z)({},li,{data:zt,itemKey:Xt,height:Vn,fullHeight:!1,virtual:mt,itemHeight:bn,scrollWidth:jn,prefixCls:"".concat(De,"-list"),ref:Me,role:"tree",onVisibleChange:function(Cn){Cn.every(function(je){return Xt(je)!==ut})&&gi()}}),function(Fi){var Cn=Fi.pos,je=Object.assign({},(me(Fi.data),Fi.data)),Pi=Fi.title,Ai=Fi.key,Rn=Fi.isStart,Ji=Fi.isEnd,_i=(0,nt.km)(Ai,Cn);delete je.key,delete je.children;var Jn=(0,nt.H8)(_i,pi);return ee.createElement(St,(0,oe.Z)({},je,Jn,{title:Pi,active:!!Ut&&Ai===Ut.key,pos:Cn,data:Fi.data,isStart:Rn,isEnd:Ji,motion:un,motionNodes:Ai===ut?Hn:null,motionType:Ct,onMotionStart:Un,onMotionEnd:gi,treeNodeRequiredProps:pi,onMouseMove:function(){ai(null)}}))}))}),Rt=Nn,At=ae(82661),Zt=ae(34643),In=ae(65065),Dn=10,qe=function(Ge){(0,ot.Z)(De,Ge);var it=(0,Ke.Z)(De);function De(){var ht;(0,He.Z)(this,De);for(var on=arguments.length,An=new Array(on),Zn=0;Zn<on;Zn++)An[Zn]=arguments[Zn];return ht=it.call.apply(it,[this].concat(An)),(0,Be.Z)((0,ze.Z)(ht),"destroyed",!1),(0,Be.Z)((0,ze.Z)(ht),"delayedDragEnterLogic",void 0),(0,Be.Z)((0,ze.Z)(ht),"loadingRetryTimes",{}),(0,Be.Z)((0,ze.Z)(ht),"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,nt.w$)()}),(0,Be.Z)((0,ze.Z)(ht),"dragStartMousePosition",null),(0,Be.Z)((0,ze.Z)(ht),"dragNodeProps",null),(0,Be.Z)((0,ze.Z)(ht),"currentMouseOverDroppableNodeKey",null),(0,Be.Z)((0,ze.Z)(ht),"listRef",ee.createRef()),(0,Be.Z)((0,ze.Z)(ht),"onNodeDragStart",function(Ft,It){var Gt=ht.state,fn=Gt.expandedKeys,Pn=Gt.keyEntities,an=ht.props.onDragStart,Ot=It.eventKey;ht.dragNodeProps=It,ht.dragStartMousePosition={x:Ft.clientX,y:Ft.clientY};var Mn=(0,At._5)(fn,Ot);ht.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,At.wA)(Ot,Pn),indent:ht.listRef.current.getIndentWidth()}),ht.setExpandedKeys(Mn),window.addEventListener("dragend",ht.onWindowDragEnd),an==null||an({event:Ft,node:(0,nt.F)(It)})}),(0,Be.Z)((0,ze.Z)(ht),"onNodeDragEnter",function(Ft,It){var Gt=ht.state,fn=Gt.expandedKeys,Pn=Gt.keyEntities,an=Gt.dragChildrenKeys,Ot=Gt.flattenNodes,Mn=Gt.indent,Ht=ht.props,Kt=Ht.onDragEnter,un=Ht.onExpand,Vn=Ht.allowDrop,bn=Ht.direction,mt=It.pos,jn=It.eventKey;if(ht.currentMouseOverDroppableNodeKey!==jn&&(ht.currentMouseOverDroppableNodeKey=jn),!ht.dragNodeProps){ht.resetDragState();return}var Kn=(0,At.OM)(Ft,ht.dragNodeProps,It,Mn,ht.dragStartMousePosition,Vn,Ot,Pn,fn,bn),Ut=Kn.dropPosition,yi=Kn.dropLevelOffset,Vi=Kn.dropTargetKey,kn=Kn.dropContainerKey,Vt=Kn.dropTargetPos,Qn=Kn.dropAllowed,ai=Kn.dragOverNodeKey;if(an.includes(Vi)||!Qn){ht.resetDragState();return}if(ht.delayedDragEnterLogic||(ht.delayedDragEnterLogic={}),Object.keys(ht.delayedDragEnterLogic).forEach(function(Un){clearTimeout(ht.delayedDragEnterLogic[Un])}),ht.dragNodeProps.eventKey!==It.eventKey&&(Ft.persist(),ht.delayedDragEnterLogic[mt]=window.setTimeout(function(){if(ht.state.draggingNodeKey!==null){var Un=(0,Ie.Z)(fn),si=(0,In.Z)(Pn,It.eventKey);si&&(si.children||[]).length&&(Un=(0,At.L0)(fn,It.eventKey)),ht.props.hasOwnProperty("expandedKeys")||ht.setExpandedKeys(Un),un==null||un(Un,{node:(0,nt.F)(It),expanded:!0,nativeEvent:Ft.nativeEvent})}},800)),ht.dragNodeProps.eventKey===Vi&&yi===0){ht.resetDragState();return}ht.setState({dragOverNodeKey:ai,dropPosition:Ut,dropLevelOffset:yi,dropTargetKey:Vi,dropContainerKey:kn,dropTargetPos:Vt,dropAllowed:Qn}),Kt==null||Kt({event:Ft,node:(0,nt.F)(It),expandedKeys:fn})}),(0,Be.Z)((0,ze.Z)(ht),"onNodeDragOver",function(Ft,It){var Gt=ht.state,fn=Gt.dragChildrenKeys,Pn=Gt.flattenNodes,an=Gt.keyEntities,Ot=Gt.expandedKeys,Mn=Gt.indent,Ht=ht.props,Kt=Ht.onDragOver,un=Ht.allowDrop,Vn=Ht.direction;if(ht.dragNodeProps){var bn=(0,At.OM)(Ft,ht.dragNodeProps,It,Mn,ht.dragStartMousePosition,un,Pn,an,Ot,Vn),mt=bn.dropPosition,jn=bn.dropLevelOffset,Kn=bn.dropTargetKey,Ut=bn.dropContainerKey,yi=bn.dropTargetPos,Vi=bn.dropAllowed,kn=bn.dragOverNodeKey;fn.includes(Kn)||!Vi||(ht.dragNodeProps.eventKey===Kn&&jn===0?ht.state.dropPosition===null&&ht.state.dropLevelOffset===null&&ht.state.dropTargetKey===null&&ht.state.dropContainerKey===null&&ht.state.dropTargetPos===null&&ht.state.dropAllowed===!1&&ht.state.dragOverNodeKey===null||ht.resetDragState():mt===ht.state.dropPosition&&jn===ht.state.dropLevelOffset&&Kn===ht.state.dropTargetKey&&Ut===ht.state.dropContainerKey&&yi===ht.state.dropTargetPos&&Vi===ht.state.dropAllowed&&kn===ht.state.dragOverNodeKey||ht.setState({dropPosition:mt,dropLevelOffset:jn,dropTargetKey:Kn,dropContainerKey:Ut,dropTargetPos:yi,dropAllowed:Vi,dragOverNodeKey:kn}),Kt==null||Kt({event:Ft,node:(0,nt.F)(It)}))}}),(0,Be.Z)((0,ze.Z)(ht),"onNodeDragLeave",function(Ft,It){ht.currentMouseOverDroppableNodeKey===It.eventKey&&!Ft.currentTarget.contains(Ft.relatedTarget)&&(ht.resetDragState(),ht.currentMouseOverDroppableNodeKey=null);var Gt=ht.props.onDragLeave;Gt==null||Gt({event:Ft,node:(0,nt.F)(It)})}),(0,Be.Z)((0,ze.Z)(ht),"onWindowDragEnd",function(Ft){ht.onNodeDragEnd(Ft,null,!0),window.removeEventListener("dragend",ht.onWindowDragEnd)}),(0,Be.Z)((0,ze.Z)(ht),"onNodeDragEnd",function(Ft,It){var Gt=ht.props.onDragEnd;ht.setState({dragOverNodeKey:null}),ht.cleanDragState(),Gt==null||Gt({event:Ft,node:(0,nt.F)(It)}),ht.dragNodeProps=null,window.removeEventListener("dragend",ht.onWindowDragEnd)}),(0,Be.Z)((0,ze.Z)(ht),"onNodeDrop",function(Ft,It){var Gt,fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pn=ht.state,an=Pn.dragChildrenKeys,Ot=Pn.dropPosition,Mn=Pn.dropTargetKey,Ht=Pn.dropTargetPos,Kt=Pn.dropAllowed;if(Kt){var un=ht.props.onDrop;if(ht.setState({dragOverNodeKey:null}),ht.cleanDragState(),Mn!==null){var Vn=(0,ke.Z)((0,ke.Z)({},(0,nt.H8)(Mn,ht.getTreeNodeRequiredProps())),{},{active:((Gt=ht.getActiveItem())===null||Gt===void 0?void 0:Gt.key)===Mn,data:(0,In.Z)(ht.state.keyEntities,Mn).node}),bn=an.includes(Mn);(0,te.ZP)(!bn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var mt=(0,At.yx)(Ht),jn={event:Ft,node:(0,nt.F)(Vn),dragNode:ht.dragNodeProps?(0,nt.F)(ht.dragNodeProps):null,dragNodesKeys:[ht.dragNodeProps.eventKey].concat(an),dropToGap:Ot!==0,dropPosition:Ot+Number(mt[mt.length-1])};fn||un==null||un(jn),ht.dragNodeProps=null}}}),(0,Be.Z)((0,ze.Z)(ht),"cleanDragState",function(){var Ft=ht.state.draggingNodeKey;Ft!==null&&ht.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ht.dragStartMousePosition=null,ht.currentMouseOverDroppableNodeKey=null}),(0,Be.Z)((0,ze.Z)(ht),"triggerExpandActionExpand",function(Ft,It){var Gt=ht.state,fn=Gt.expandedKeys,Pn=Gt.flattenNodes,an=It.expanded,Ot=It.key,Mn=It.isLeaf;if(!(Mn||Ft.shiftKey||Ft.metaKey||Ft.ctrlKey)){var Ht=Pn.filter(function(un){return un.key===Ot})[0],Kt=(0,nt.F)((0,ke.Z)((0,ke.Z)({},(0,nt.H8)(Ot,ht.getTreeNodeRequiredProps())),{},{data:Ht.data}));ht.setExpandedKeys(an?(0,At._5)(fn,Ot):(0,At.L0)(fn,Ot)),ht.onNodeExpand(Ft,Kt)}}),(0,Be.Z)((0,ze.Z)(ht),"onNodeClick",function(Ft,It){var Gt=ht.props,fn=Gt.onClick,Pn=Gt.expandAction;Pn==="click"&&ht.triggerExpandActionExpand(Ft,It),fn==null||fn(Ft,It)}),(0,Be.Z)((0,ze.Z)(ht),"onNodeDoubleClick",function(Ft,It){var Gt=ht.props,fn=Gt.onDoubleClick,Pn=Gt.expandAction;Pn==="doubleClick"&&ht.triggerExpandActionExpand(Ft,It),fn==null||fn(Ft,It)}),(0,Be.Z)((0,ze.Z)(ht),"onNodeSelect",function(Ft,It){var Gt=ht.state.selectedKeys,fn=ht.state,Pn=fn.keyEntities,an=fn.fieldNames,Ot=ht.props,Mn=Ot.onSelect,Ht=Ot.multiple,Kt=It.selected,un=It[an.key],Vn=!Kt;Vn?Ht?Gt=(0,At.L0)(Gt,un):Gt=[un]:Gt=(0,At._5)(Gt,un);var bn=Gt.map(function(mt){var jn=(0,In.Z)(Pn,mt);return jn?jn.node:null}).filter(Boolean);ht.setUncontrolledState({selectedKeys:Gt}),Mn==null||Mn(Gt,{event:"select",selected:Vn,node:It,selectedNodes:bn,nativeEvent:Ft.nativeEvent})}),(0,Be.Z)((0,ze.Z)(ht),"onNodeCheck",function(Ft,It,Gt){var fn=ht.state,Pn=fn.keyEntities,an=fn.checkedKeys,Ot=fn.halfCheckedKeys,Mn=ht.props,Ht=Mn.checkStrictly,Kt=Mn.onCheck,un=It.key,Vn,bn={event:"check",node:It,checked:Gt,nativeEvent:Ft.nativeEvent};if(Ht){var mt=Gt?(0,At.L0)(an,un):(0,At._5)(an,un),jn=(0,At._5)(Ot,un);Vn={checked:mt,halfChecked:jn},bn.checkedNodes=mt.map(function(Vt){return(0,In.Z)(Pn,Vt)}).filter(Boolean).map(function(Vt){return Vt.node}),ht.setUncontrolledState({checkedKeys:mt})}else{var Kn=(0,Zt.S)([].concat((0,Ie.Z)(an),[un]),!0,Pn),Ut=Kn.checkedKeys,yi=Kn.halfCheckedKeys;if(!Gt){var Vi=new Set(Ut);Vi.delete(un);var kn=(0,Zt.S)(Array.from(Vi),{checked:!1,halfCheckedKeys:yi},Pn);Ut=kn.checkedKeys,yi=kn.halfCheckedKeys}Vn=Ut,bn.checkedNodes=[],bn.checkedNodesPositions=[],bn.halfCheckedKeys=yi,Ut.forEach(function(Vt){var Qn=(0,In.Z)(Pn,Vt);if(Qn){var ai=Qn.node,Un=Qn.pos;bn.checkedNodes.push(ai),bn.checkedNodesPositions.push({node:ai,pos:Un})}}),ht.setUncontrolledState({checkedKeys:Ut},!1,{halfCheckedKeys:yi})}Kt==null||Kt(Vn,bn)}),(0,Be.Z)((0,ze.Z)(ht),"onNodeLoad",function(Ft){var It,Gt=Ft.key,fn=ht.state.keyEntities,Pn=(0,In.Z)(fn,Gt);if(!(Pn!=null&&(It=Pn.children)!==null&&It!==void 0&&It.length)){var an=new Promise(function(Ot,Mn){ht.setState(function(Ht){var Kt=Ht.loadedKeys,un=Kt===void 0?[]:Kt,Vn=Ht.loadingKeys,bn=Vn===void 0?[]:Vn,mt=ht.props,jn=mt.loadData,Kn=mt.onLoad;if(!jn||un.includes(Gt)||bn.includes(Gt))return null;var Ut=jn(Ft);return Ut.then(function(){var yi=ht.state.loadedKeys,Vi=(0,At.L0)(yi,Gt);Kn==null||Kn(Vi,{event:"load",node:Ft}),ht.setUncontrolledState({loadedKeys:Vi}),ht.setState(function(kn){return{loadingKeys:(0,At._5)(kn.loadingKeys,Gt)}}),Ot()}).catch(function(yi){if(ht.setState(function(kn){return{loadingKeys:(0,At._5)(kn.loadingKeys,Gt)}}),ht.loadingRetryTimes[Gt]=(ht.loadingRetryTimes[Gt]||0)+1,ht.loadingRetryTimes[Gt]>=Dn){var Vi=ht.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ht.setUncontrolledState({loadedKeys:(0,At.L0)(Vi,Gt)}),Ot()}Mn(yi)}),{loadingKeys:(0,At.L0)(bn,Gt)}})});return an.catch(function(){}),an}}),(0,Be.Z)((0,ze.Z)(ht),"onNodeMouseEnter",function(Ft,It){var Gt=ht.props.onMouseEnter;Gt==null||Gt({event:Ft,node:It})}),(0,Be.Z)((0,ze.Z)(ht),"onNodeMouseLeave",function(Ft,It){var Gt=ht.props.onMouseLeave;Gt==null||Gt({event:Ft,node:It})}),(0,Be.Z)((0,ze.Z)(ht),"onNodeContextMenu",function(Ft,It){var Gt=ht.props.onRightClick;Gt&&(Ft.preventDefault(),Gt({event:Ft,node:It}))}),(0,Be.Z)((0,ze.Z)(ht),"onFocus",function(){var Ft=ht.props.onFocus;ht.setState({focused:!0});for(var It=arguments.length,Gt=new Array(It),fn=0;fn<It;fn++)Gt[fn]=arguments[fn];Ft==null||Ft.apply(void 0,Gt)}),(0,Be.Z)((0,ze.Z)(ht),"onBlur",function(){var Ft=ht.props.onBlur;ht.setState({focused:!1}),ht.onActiveChange(null);for(var It=arguments.length,Gt=new Array(It),fn=0;fn<It;fn++)Gt[fn]=arguments[fn];Ft==null||Ft.apply(void 0,Gt)}),(0,Be.Z)((0,ze.Z)(ht),"getTreeNodeRequiredProps",function(){var Ft=ht.state,It=Ft.expandedKeys,Gt=Ft.selectedKeys,fn=Ft.loadedKeys,Pn=Ft.loadingKeys,an=Ft.checkedKeys,Ot=Ft.halfCheckedKeys,Mn=Ft.dragOverNodeKey,Ht=Ft.dropPosition,Kt=Ft.keyEntities;return{expandedKeys:It||[],selectedKeys:Gt||[],loadedKeys:fn||[],loadingKeys:Pn||[],checkedKeys:an||[],halfCheckedKeys:Ot||[],dragOverNodeKey:Mn,dropPosition:Ht,keyEntities:Kt}}),(0,Be.Z)((0,ze.Z)(ht),"setExpandedKeys",function(Ft){var It=ht.state,Gt=It.treeData,fn=It.fieldNames,Pn=(0,nt.oH)(Gt,Ft,fn);ht.setUncontrolledState({expandedKeys:Ft,flattenNodes:Pn},!0)}),(0,Be.Z)((0,ze.Z)(ht),"onNodeExpand",function(Ft,It){var Gt=ht.state.expandedKeys,fn=ht.state,Pn=fn.listChanging,an=fn.fieldNames,Ot=ht.props,Mn=Ot.onExpand,Ht=Ot.loadData,Kt=It.expanded,un=It[an.key];if(!Pn){var Vn=Gt.includes(un),bn=!Kt;if((0,te.ZP)(Kt&&Vn||!Kt&&!Vn,"Expand state not sync with index check"),Gt=bn?(0,At.L0)(Gt,un):(0,At._5)(Gt,un),ht.setExpandedKeys(Gt),Mn==null||Mn(Gt,{node:It,expanded:bn,nativeEvent:Ft.nativeEvent}),bn&&Ht){var mt=ht.onNodeLoad(It);mt&&mt.then(function(){var jn=(0,nt.oH)(ht.state.treeData,Gt,an);ht.setUncontrolledState({flattenNodes:jn})}).catch(function(){var jn=ht.state.expandedKeys,Kn=(0,At._5)(jn,un);ht.setExpandedKeys(Kn)})}}}),(0,Be.Z)((0,ze.Z)(ht),"onListChangeStart",function(){ht.setUncontrolledState({listChanging:!0})}),(0,Be.Z)((0,ze.Z)(ht),"onListChangeEnd",function(){setTimeout(function(){ht.setUncontrolledState({listChanging:!1})})}),(0,Be.Z)((0,ze.Z)(ht),"onActiveChange",function(Ft){var It=ht.state.activeKey,Gt=ht.props,fn=Gt.onActiveChange,Pn=Gt.itemScrollOffset,an=Pn===void 0?0:Pn;It!==Ft&&(ht.setState({activeKey:Ft}),Ft!==null&&ht.scrollTo({key:Ft,offset:an}),fn==null||fn(Ft))}),(0,Be.Z)((0,ze.Z)(ht),"getActiveItem",function(){var Ft=ht.state,It=Ft.activeKey,Gt=Ft.flattenNodes;return It===null?null:Gt.find(function(fn){var Pn=fn.key;return Pn===It})||null}),(0,Be.Z)((0,ze.Z)(ht),"offsetActiveKey",function(Ft){var It=ht.state,Gt=It.flattenNodes,fn=It.activeKey,Pn=Gt.findIndex(function(Mn){var Ht=Mn.key;return Ht===fn});Pn===-1&&Ft<0&&(Pn=Gt.length),Pn=(Pn+Ft+Gt.length)%Gt.length;var an=Gt[Pn];if(an){var Ot=an.key;ht.onActiveChange(Ot)}else ht.onActiveChange(null)}),(0,Be.Z)((0,ze.Z)(ht),"onKeyDown",function(Ft){var It=ht.state,Gt=It.activeKey,fn=It.expandedKeys,Pn=It.checkedKeys,an=It.fieldNames,Ot=ht.props,Mn=Ot.onKeyDown,Ht=Ot.checkable,Kt=Ot.selectable;switch(Ft.which){case wt.Z.UP:{ht.offsetActiveKey(-1),Ft.preventDefault();break}case wt.Z.DOWN:{ht.offsetActiveKey(1),Ft.preventDefault();break}}var un=ht.getActiveItem();if(un&&un.data){var Vn=ht.getTreeNodeRequiredProps(),bn=un.data.isLeaf===!1||!!(un.data[an.children]||[]).length,mt=(0,nt.F)((0,ke.Z)((0,ke.Z)({},(0,nt.H8)(Gt,Vn)),{},{data:un.data,active:!0}));switch(Ft.which){case wt.Z.LEFT:{bn&&fn.includes(Gt)?ht.onNodeExpand({},mt):un.parent&&ht.onActiveChange(un.parent.key),Ft.preventDefault();break}case wt.Z.RIGHT:{bn&&!fn.includes(Gt)?ht.onNodeExpand({},mt):un.children&&un.children.length&&ht.onActiveChange(un.children[0].key),Ft.preventDefault();break}case wt.Z.ENTER:case wt.Z.SPACE:{Ht&&!mt.disabled&&mt.checkable!==!1&&!mt.disableCheckbox?ht.onNodeCheck({},mt,!Pn.includes(Gt)):!Ht&&Kt&&!mt.disabled&&mt.selectable!==!1&&ht.onNodeSelect({},mt);break}}}Mn==null||Mn(Ft)}),(0,Be.Z)((0,ze.Z)(ht),"setUncontrolledState",function(Ft){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ht.destroyed){var fn=!1,Pn=!0,an={};Object.keys(Ft).forEach(function(Ot){if(ht.props.hasOwnProperty(Ot)){Pn=!1;return}fn=!0,an[Ot]=Ft[Ot]}),fn&&(!It||Pn)&&ht.setState((0,ke.Z)((0,ke.Z)({},an),Gt))}}),(0,Be.Z)((0,ze.Z)(ht),"scrollTo",function(Ft){ht.listRef.current.scrollTo(Ft)}),ht}return(0,Te.Z)(De,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var on=this.props,An=on.activeKey,Zn=on.itemScrollOffset,Ft=Zn===void 0?0:Zn;An!==void 0&&An!==this.state.activeKey&&(this.setState({activeKey:An}),An!==null&&this.scrollTo({key:An,offset:Ft}))}},{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 on=this.state,An=on.focused,Zn=on.flattenNodes,Ft=on.keyEntities,It=on.draggingNodeKey,Gt=on.activeKey,fn=on.dropLevelOffset,Pn=on.dropContainerKey,an=on.dropTargetKey,Ot=on.dropPosition,Mn=on.dragOverNodeKey,Ht=on.indent,Kt=this.props,un=Kt.prefixCls,Vn=Kt.className,bn=Kt.style,mt=Kt.showLine,jn=Kt.focusable,Kn=Kt.tabIndex,Ut=Kn===void 0?0:Kn,yi=Kt.selectable,Vi=Kt.showIcon,kn=Kt.icon,Vt=Kt.switcherIcon,Qn=Kt.draggable,ai=Kt.checkable,Un=Kt.checkStrictly,si=Kt.disabled,li=Kt.motion,Me=Kt.loadData,ii=Kt.filterTreeNode,ti=Kt.height,On=Kt.itemHeight,ni=Kt.scrollWidth,Ei=Kt.virtual,ui=Kt.titleRender,tr=Kt.dropIndicatorRender,Sn=Kt.onContextMenu,sn=Kt.onScroll,dn=Kt.direction,_n=Kt.rootClassName,Ri=Kt.rootStyle,qn=(0,Fe.Z)(this.props,{aria:!0,data:!0}),Ni;Qn&&((0,Ce.Z)(Qn)==="object"?Ni=Qn:typeof Qn=="function"?Ni={nodeDraggable:Qn}:Ni={});var mn={prefixCls:un,selectable:yi,showIcon:Vi,icon:kn,switcherIcon:Vt,draggable:Ni,draggingNodeKey:It,checkable:ai,checkStrictly:Un,disabled:si,keyEntities:Ft,dropLevelOffset:fn,dropContainerKey:Pn,dropTargetKey:an,dropPosition:Ot,dragOverNodeKey:Mn,indent:Ht,direction:dn,dropIndicatorRender:tr,loadData:Me,filterTreeNode:ii,titleRender:ui,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 ee.createElement(he.k.Provider,{value:mn},ee.createElement("div",{className:Je()(un,Vn,_n,(0,Be.Z)((0,Be.Z)((0,Be.Z)({},"".concat(un,"-show-line"),mt),"".concat(un,"-focused"),An),"".concat(un,"-active-focused"),Gt!==null)),style:Ri},ee.createElement(Rt,(0,oe.Z)({ref:this.listRef,prefixCls:un,style:bn,data:Zn,disabled:si,selectable:yi,checkable:!!ai,motion:li,dragging:It!==null,height:ti,itemHeight:On,virtual:Ei,focusable:jn,focused:An,tabIndex:Ut,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Sn,onScroll:sn,scrollWidth:ni},this.getTreeNodeRequiredProps(),qn))))}}],[{key:"getDerivedStateFromProps",value:function(on,An){var Zn=An.prevProps,Ft={prevProps:on};function It(Ut){return!Zn&&on.hasOwnProperty(Ut)||Zn&&Zn[Ut]!==on[Ut]}var Gt,fn=An.fieldNames;if(It("fieldNames")&&(fn=(0,nt.w$)(on.fieldNames),Ft.fieldNames=fn),It("treeData")?Gt=on.treeData:It("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Gt=(0,nt.zn)(on.children)),Gt){Ft.treeData=Gt;var Pn=(0,nt.I8)(Gt,{fieldNames:fn});Ft.keyEntities=(0,ke.Z)((0,Be.Z)({},ut,Wt),Pn.keyEntities)}var an=Ft.keyEntities||An.keyEntities;if(It("expandedKeys")||Zn&&It("autoExpandParent"))Ft.expandedKeys=on.autoExpandParent||!Zn&&on.defaultExpandParent?(0,At.r7)(on.expandedKeys,an):on.expandedKeys;else if(!Zn&&on.defaultExpandAll){var Ot=(0,ke.Z)({},an);delete Ot[ut];var Mn=[];Object.keys(Ot).forEach(function(Ut){var yi=Ot[Ut];yi.children&&yi.children.length&&Mn.push(yi.key)}),Ft.expandedKeys=Mn}else!Zn&&on.defaultExpandedKeys&&(Ft.expandedKeys=on.autoExpandParent||on.defaultExpandParent?(0,At.r7)(on.defaultExpandedKeys,an):on.defaultExpandedKeys);if(Ft.expandedKeys||delete Ft.expandedKeys,Gt||Ft.expandedKeys){var Ht=(0,nt.oH)(Gt||An.treeData,Ft.expandedKeys||An.expandedKeys,fn);Ft.flattenNodes=Ht}if(on.selectable&&(It("selectedKeys")?Ft.selectedKeys=(0,At.BT)(on.selectedKeys,on):!Zn&&on.defaultSelectedKeys&&(Ft.selectedKeys=(0,At.BT)(on.defaultSelectedKeys,on))),on.checkable){var Kt;if(It("checkedKeys")?Kt=(0,At.E6)(on.checkedKeys)||{}:!Zn&&on.defaultCheckedKeys?Kt=(0,At.E6)(on.defaultCheckedKeys)||{}:Gt&&(Kt=(0,At.E6)(on.checkedKeys)||{checkedKeys:An.checkedKeys,halfCheckedKeys:An.halfCheckedKeys}),Kt){var un=Kt,Vn=un.checkedKeys,bn=Vn===void 0?[]:Vn,mt=un.halfCheckedKeys,jn=mt===void 0?[]:mt;if(!on.checkStrictly){var Kn=(0,Zt.S)(bn,!0,an);bn=Kn.checkedKeys,jn=Kn.halfCheckedKeys}Ft.checkedKeys=bn,Ft.halfCheckedKeys=jn}}return It("loadedKeys")&&(Ft.loadedKeys=on.loadedKeys),Ft}}]),De}(ee.Component);(0,Be.Z)(qe,"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:fe,allowDrop:function(){return!0},expandAction:!1}),(0,Be.Z)(qe,"TreeNode",Ye.Z);var Oe=qe,Le=Oe},82661:function(_e,be,ae){"use strict";ae.d(be,{BT:function(){return ee},E6:function(){return fe},L0:function(){return Be},OM:function(){return te},_5:function(){return Ke},r7:function(){return me},wA:function(){return Je},yx:function(){return gt}});var oe=ae(15142),Ce=ae(26420),ke=ae(48736),Ie=ae(59301),He=ae(639),Te=ae(65065),ze=ae(34061),ot=null;function Ke(Ee,Pe){if(!Ee)return[];var Ne=Ee.slice(),We=Ne.indexOf(Pe);return We>=0&&Ne.splice(We,1),Ne}function Be(Ee,Pe){var Ne=(Ee||[]).slice();return Ne.indexOf(Pe)===-1&&Ne.push(Pe),Ne}function gt(Ee){return Ee.split("-")}function Je(Ee,Pe){var Ne=[],We=(0,Te.Z)(Pe,Ee);function tt(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ye.forEach(function(Qe){var lt=Qe.key,nt=Qe.children;Ne.push(lt),tt(nt)})}return tt(We.children),Ne}function wt(Ee){if(Ee.parent){var Pe=gt(Ee.pos);return Number(Pe[Pe.length-1])===Ee.parent.children.length-1}return!1}function Fe(Ee){var Pe=gt(Ee.pos);return Number(Pe[Pe.length-1])===0}function te(Ee,Pe,Ne,We,tt,Ye,Qe,lt,nt,yt){var vt,St=Ee.clientX,Lt=Ee.clientY,jt=Ee.target.getBoundingClientRect(),Bt=jt.top,cn=jt.height,pt=(yt==="rtl"?-1:1)*(((tt==null?void 0:tt.x)||0)-St),ut=(pt-12)/We,at=nt.filter(function(Le){var Ge;return(Ge=lt[Le])===null||Ge===void 0||(Ge=Ge.children)===null||Ge===void 0?void 0:Ge.length}),Wt=(0,Te.Z)(lt,Ne.eventKey);if(Lt<Bt+cn/2){var rn=Qe.findIndex(function(Le){return Le.key===Wt.key}),Tt=rn<=0?0:rn-1,Xt=Qe[Tt].key;Wt=(0,Te.Z)(lt,Xt)}var nn=Wt.key,Nn=Wt,Rt=Wt.key,At=0,Zt=0;if(!at.includes(nn))for(var In=0;In<ut&&wt(Wt);In+=1)Wt=Wt.parent,Zt+=1;var Dn=Pe.data,qe=Wt.node,Oe=!0;return Fe(Wt)&&Wt.level===0&&Lt<Bt+cn/2&&Ye({dragNode:Dn,dropNode:qe,dropPosition:-1})&&Wt.key===Ne.eventKey?At=-1:(Nn.children||[]).length&&at.includes(Rt)?Ye({dragNode:Dn,dropNode:qe,dropPosition:0})?At=0:Oe=!1:Zt===0?ut>-1.5?Ye({dragNode:Dn,dropNode:qe,dropPosition:1})?At=1:Oe=!1:Ye({dragNode:Dn,dropNode:qe,dropPosition:0})?At=0:Ye({dragNode:Dn,dropNode:qe,dropPosition:1})?At=1:Oe=!1:Ye({dragNode:Dn,dropNode:qe,dropPosition:1})?At=1:Oe=!1,{dropPosition:At,dropLevelOffset:Zt,dropTargetKey:Wt.key,dropTargetPos:Wt.pos,dragOverNodeKey:Rt,dropContainerKey:At===0?null:((vt=Wt.parent)===null||vt===void 0?void 0:vt.key)||null,dropAllowed:Oe}}function ee(Ee,Pe){if(Ee){var Ne=Pe.multiple;return Ne?Ee.slice():Ee.length?[Ee[0]]:Ee}}var he=function(Pe){return Pe};function ue(Ee,Pe){if(!Ee)return[];var Ne=Pe||{},We=Ne.processProps,tt=We===void 0?he:We,Ye=Array.isArray(Ee)?Ee:[Ee];return Ye.map(function(Qe){var lt=Qe.children,nt=_objectWithoutProperties(Qe,ot),yt=ue(lt,Pe);return React.createElement(TreeNode,_extends({key:nt.key},tt(nt)),yt)})}function fe(Ee){if(!Ee)return null;var Pe;if(Array.isArray(Ee))Pe={checkedKeys:Ee,halfCheckedKeys:void 0};else if((0,Ce.Z)(Ee)==="object")Pe={checkedKeys:Ee.checked||void 0,halfCheckedKeys:Ee.halfChecked||void 0};else return(0,ke.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Pe}function me(Ee,Pe){var Ne=new Set;function We(tt){if(!Ne.has(tt)){var Ye=(0,Te.Z)(Pe,tt);if(Ye){Ne.add(tt);var Qe=Ye.parent,lt=Ye.node;lt.disabled||Qe&&We(Qe.key)}}}return(Ee||[]).forEach(function(tt){We(tt)}),(0,oe.Z)(Ne)}},34643:function(_e,be,ae){"use strict";ae.d(be,{S:function(){return ze}});var oe=ae(48736),Ce=ae(65065);function ke(ot,Ke){var Be=new Set;return ot.forEach(function(gt){Ke.has(gt)||Be.add(gt)}),Be}function Ie(ot){var Ke=ot||{},Be=Ke.disabled,gt=Ke.disableCheckbox,Je=Ke.checkable;return!!(Be||gt)||Je===!1}function He(ot,Ke,Be,gt){for(var Je=new Set(ot),wt=new Set,Fe=0;Fe<=Be;Fe+=1){var te=Ke.get(Fe)||new Set;te.forEach(function(fe){var me=fe.key,Ee=fe.node,Pe=fe.children,Ne=Pe===void 0?[]:Pe;Je.has(me)&&!gt(Ee)&&Ne.filter(function(We){return!gt(We.node)}).forEach(function(We){Je.add(We.key)})})}for(var ee=new Set,he=Be;he>=0;he-=1){var ue=Ke.get(he)||new Set;ue.forEach(function(fe){var me=fe.parent,Ee=fe.node;if(!(gt(Ee)||!fe.parent||ee.has(fe.parent.key))){if(gt(fe.parent.node)){ee.add(me.key);return}var Pe=!0,Ne=!1;(me.children||[]).filter(function(We){return!gt(We.node)}).forEach(function(We){var tt=We.key,Ye=Je.has(tt);Pe&&!Ye&&(Pe=!1),!Ne&&(Ye||wt.has(tt))&&(Ne=!0)}),Pe&&Je.add(me.key),Ne&&wt.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(ke(wt,Je))}}function Te(ot,Ke,Be,gt,Je){for(var wt=new Set(ot),Fe=new Set(Ke),te=0;te<=gt;te+=1){var ee=Be.get(te)||new Set;ee.forEach(function(me){var Ee=me.key,Pe=me.node,Ne=me.children,We=Ne===void 0?[]:Ne;!wt.has(Ee)&&!Fe.has(Ee)&&!Je(Pe)&&We.filter(function(tt){return!Je(tt.node)}).forEach(function(tt){wt.delete(tt.key)})})}Fe=new Set;for(var he=new Set,ue=gt;ue>=0;ue-=1){var fe=Be.get(ue)||new Set;fe.forEach(function(me){var Ee=me.parent,Pe=me.node;if(!(Je(Pe)||!me.parent||he.has(me.parent.key))){if(Je(me.parent.node)){he.add(Ee.key);return}var Ne=!0,We=!1;(Ee.children||[]).filter(function(tt){return!Je(tt.node)}).forEach(function(tt){var Ye=tt.key,Qe=wt.has(Ye);Ne&&!Qe&&(Ne=!1),!We&&(Qe||Fe.has(Ye))&&(We=!0)}),Ne||wt.delete(Ee.key),We&&Fe.add(Ee.key),he.add(Ee.key)}})}return{checkedKeys:Array.from(wt),halfCheckedKeys:Array.from(ke(Fe,wt))}}function ze(ot,Ke,Be,gt){var Je=[],wt;gt?wt=gt:wt=Ie;var Fe=new Set(ot.filter(function(ue){var fe=!!(0,Ce.Z)(Be,ue);return fe||Je.push(ue),fe})),te=new Map,ee=0;Object.keys(Be).forEach(function(ue){var fe=Be[ue],me=fe.level,Ee=te.get(me);Ee||(Ee=new Set,te.set(me,Ee)),Ee.add(fe),ee=Math.max(ee,me)}),(0,oe.ZP)(!Je.length,"Tree missing follow keys: ".concat(Je.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var he;return Ke===!0?he=He(Fe,te,ee,wt):he=Te(Fe,Ke.halfCheckedKeys,te,ee,wt),he}},65065:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return oe}});function oe(Ce,ke){return Ce[ke]}},34061:function(_e,be,ae){"use strict";ae.d(be,{F:function(){return me},H8:function(){return fe},I8:function(){return ue},km:function(){return Je},oH:function(){return ee},w$:function(){return wt},zn:function(){return te}});var oe=ae(26420),Ce=ae(15142),ke=ae(98506),Ie=ae(33346),He=ae(11592),Te=ae(2738),ze=ae(48736),ot=ae(65065),Ke=["children"];function Be(Ee,Pe){return"".concat(Ee,"-").concat(Pe)}function gt(Ee){return Ee&&Ee.type&&Ee.type.isTreeNode}function Je(Ee,Pe){return Ee!=null?Ee:Pe}function wt(Ee){var Pe=Ee||{},Ne=Pe.title,We=Pe._title,tt=Pe.key,Ye=Pe.children,Qe=Ne||"title";return{title:Qe,_title:We||[Qe],key:tt||"key",children:Ye||"children"}}function Fe(Ee,Pe){var Ne=new Map;function We(tt){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(tt||[]).forEach(function(Qe){var lt=Qe[Pe.key],nt=Qe[Pe.children];warning(lt!=null,"Tree node must have a certain key: [".concat(Ye).concat(lt,"]"));var yt=String(lt);warning(!Ne.has(yt)||lt===null||lt===void 0,"Same 'key' exist in the Tree: ".concat(yt)),Ne.set(yt,!0),We(nt,"".concat(Ye).concat(yt," > "))})}We(Ee)}function te(Ee){function Pe(Ne){var We=(0,He.Z)(Ne);return We.map(function(tt){if(!gt(tt))return(0,ze.ZP)(!tt,"Tree/TreeNode can only accept TreeNode as children."),null;var Ye=tt.key,Qe=tt.props,lt=Qe.children,nt=(0,Ie.Z)(Qe,Ke),yt=(0,ke.Z)({key:Ye},nt),vt=Pe(lt);return vt.length&&(yt.children=vt),yt}).filter(function(tt){return tt})}return Pe(Ee)}function ee(Ee,Pe,Ne){var We=wt(Ne),tt=We._title,Ye=We.key,Qe=We.children,lt=new Set(Pe===!0?[]:Pe),nt=[];function yt(vt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return vt.map(function(Lt,jt){for(var Bt=Be(St?St.pos:"0",jt),cn=Je(Lt[Ye],Bt),pt,ut=0;ut<tt.length;ut+=1){var at=tt[ut];if(Lt[at]!==void 0){pt=Lt[at];break}}var Wt=Object.assign((0,Te.Z)(Lt,[].concat((0,Ce.Z)(tt),[Ye,Qe])),{title:pt,key:cn,parent:St,pos:Bt,children:null,data:Lt,isStart:[].concat((0,Ce.Z)(St?St.isStart:[]),[jt===0]),isEnd:[].concat((0,Ce.Z)(St?St.isEnd:[]),[jt===vt.length-1])});return nt.push(Wt),Pe===!0||lt.has(cn)?Wt.children=yt(Lt[Qe]||[],Wt):Wt.children=[],Wt})}return yt(Ee),nt}function he(Ee,Pe,Ne){var We={};(0,oe.Z)(Ne)==="object"?We=Ne:We={externalGetKey:Ne},We=We||{};var tt=We,Ye=tt.childrenPropName,Qe=tt.externalGetKey,lt=tt.fieldNames,nt=wt(lt),yt=nt.key,vt=nt.children,St=Ye||vt,Lt;Qe?typeof Qe=="string"?Lt=function(cn){return cn[Qe]}:typeof Qe=="function"&&(Lt=function(cn){return Qe(cn)}):Lt=function(cn,pt){return Je(cn[yt],pt)};function jt(Bt,cn,pt,ut){var at=Bt?Bt[St]:Ee,Wt=Bt?Be(pt.pos,cn):"0",rn=Bt?[].concat((0,Ce.Z)(ut),[Bt]):[];if(Bt){var Tt=Lt(Bt,Wt),Xt={node:Bt,index:cn,pos:Wt,key:Tt,parentPos:pt.node?pt.pos:null,level:pt.level+1,nodes:rn};Pe(Xt)}at&&at.forEach(function(nn,Nn){jt(nn,Nn,{node:Bt,pos:Wt,level:pt?pt.level+1:-1},rn)})}jt(null)}function ue(Ee){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=Pe.initWrapper,We=Pe.processEntity,tt=Pe.onProcessFinished,Ye=Pe.externalGetKey,Qe=Pe.childrenPropName,lt=Pe.fieldNames,nt=arguments.length>2?arguments[2]:void 0,yt=Ye||nt,vt={},St={},Lt={posEntities:vt,keyEntities:St};return Ne&&(Lt=Ne(Lt)||Lt),he(Ee,function(jt){var Bt=jt.node,cn=jt.index,pt=jt.pos,ut=jt.key,at=jt.parentPos,Wt=jt.level,rn=jt.nodes,Tt={node:Bt,nodes:rn,index:cn,key:ut,pos:pt,level:Wt},Xt=Je(ut,pt);vt[pt]=Tt,St[Xt]=Tt,Tt.parent=vt[at],Tt.parent&&(Tt.parent.children=Tt.parent.children||[],Tt.parent.children.push(Tt)),We&&We(Tt,Lt)},{externalGetKey:yt,childrenPropName:Qe,fieldNames:lt}),tt&&tt(Lt),Lt}function fe(Ee,Pe){var Ne=Pe.expandedKeys,We=Pe.selectedKeys,tt=Pe.loadedKeys,Ye=Pe.loadingKeys,Qe=Pe.checkedKeys,lt=Pe.halfCheckedKeys,nt=Pe.dragOverNodeKey,yt=Pe.dropPosition,vt=Pe.keyEntities,St=(0,ot.Z)(vt,Ee),Lt={eventKey:Ee,expanded:Ne.indexOf(Ee)!==-1,selected:We.indexOf(Ee)!==-1,loaded:tt.indexOf(Ee)!==-1,loading:Ye.indexOf(Ee)!==-1,checked:Qe.indexOf(Ee)!==-1,halfChecked:lt.indexOf(Ee)!==-1,pos:String(St?St.pos:""),dragOver:nt===Ee&&yt===0,dragOverGapTop:nt===Ee&&yt===-1,dragOverGapBottom:nt===Ee&&yt===1};return Lt}function me(Ee){var Pe=Ee.data,Ne=Ee.expanded,We=Ee.selected,tt=Ee.checked,Ye=Ee.loaded,Qe=Ee.loading,lt=Ee.halfChecked,nt=Ee.dragOver,yt=Ee.dragOverGapTop,vt=Ee.dragOverGapBottom,St=Ee.pos,Lt=Ee.active,jt=Ee.eventKey,Bt=(0,ke.Z)((0,ke.Z)({},Pe),{},{expanded:Ne,selected:We,checked:tt,loaded:Ye,loading:Qe,halfChecked:lt,dragOver:nt,dragOverGapTop:yt,dragOverGapBottom:vt,pos:St,active:Lt,key:jt});return"props"in Bt||Object.defineProperty(Bt,"props",{get:function(){return(0,ze.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ee}}),Bt}},90472:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return jt}});var oe=ae(67711),Ce=ae(42573),ke=ae(58698),Ie=ae(62437),He=ae(74700),Te=ae(45080),ze=ae(52873),ot=ae(59301),Ke=ae(98506),Be=ae(33346),gt=ae(26420),Je=ae(77910),wt=ae(51343),Fe=ae(15142),te=ae(92310),ee=ae.n(te),he=ae(26112),ue=ae(48736),fe=function(Bt,cn){if(Bt&&cn){var pt=Array.isArray(cn)?cn:cn.split(","),ut=Bt.name||"",at=Bt.type||"",Wt=at.replace(/\/.*$/,"");return pt.some(function(rn){var Tt=rn.trim();if(/^\*(\/\*)?$/.test(rn))return!0;if(Tt.charAt(0)==="."){var Xt=ut.toLowerCase(),nn=Tt.toLowerCase(),Nn=[nn];return(nn===".jpg"||nn===".jpeg")&&(Nn=[".jpg",".jpeg"]),Nn.some(function(Rt){return Xt.endsWith(Rt)})}return/\/\*$/.test(Tt)?Wt===Tt.replace(/\/.*$/,""):at===Tt?!0:/^\w+$/.test(Tt)?((0,ue.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Tt,"'.Skip for check.")),!0):!1})}return!0};function me(Bt,cn){var pt="cannot ".concat(Bt.method," ").concat(Bt.action," ").concat(cn.status,"'"),ut=new Error(pt);return ut.status=cn.status,ut.method=Bt.method,ut.url=Bt.action,ut}function Ee(Bt){var cn=Bt.responseText||Bt.response;if(!cn)return cn;try{return JSON.parse(cn)}catch(pt){return cn}}function Pe(Bt){var cn=new XMLHttpRequest;Bt.onProgress&&cn.upload&&(cn.upload.onprogress=function(Wt){Wt.total>0&&(Wt.percent=Wt.loaded/Wt.total*100),Bt.onProgress(Wt)});var pt=new FormData;Bt.data&&Object.keys(Bt.data).forEach(function(at){var Wt=Bt.data[at];if(Array.isArray(Wt)){Wt.forEach(function(rn){pt.append("".concat(at,"[]"),rn)});return}pt.append(at,Wt)}),Bt.file instanceof Blob?pt.append(Bt.filename,Bt.file,Bt.file.name):pt.append(Bt.filename,Bt.file),cn.onerror=function(Wt){Bt.onError(Wt)},cn.onload=function(){return cn.status<200||cn.status>=300?Bt.onError(me(Bt,cn),Ee(cn)):Bt.onSuccess(Ee(cn),cn)},cn.open(Bt.method,Bt.action,!0),Bt.withCredentials&&"withCredentials"in cn&&(cn.withCredentials=!0);var ut=Bt.headers||{};return ut["X-Requested-With"]!==null&&cn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ut).forEach(function(at){ut[at]!==null&&cn.setRequestHeader(at,ut[at])}),cn.send(pt),{abort:function(){cn.abort()}}}var Ne=function(){var Bt=(0,wt.Z)((0,Je.Z)().mark(function cn(pt,ut){var at,Wt,rn,Tt,Xt,nn,Nn,Rt;return(0,Je.Z)().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:nn=function(){return nn=(0,wt.Z)((0,Je.Z)().mark(function Dn(qe){return(0,Je.Z)().wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Le.abrupt("return",new Promise(function(Ge){qe.file(function(it){ut(it)?(qe.fullPath&&!it.webkitRelativePath&&(Object.defineProperties(it,{webkitRelativePath:{writable:!0}}),it.webkitRelativePath=qe.fullPath.replace(/^\//,""),Object.defineProperties(it,{webkitRelativePath:{writable:!1}})),Ge(it)):Ge(null)})}));case 1:case"end":return Le.stop()}},Dn)})),nn.apply(this,arguments)},Xt=function(Dn){return nn.apply(this,arguments)},Tt=function(){return Tt=(0,wt.Z)((0,Je.Z)().mark(function Dn(qe){var Oe,Le,Ge,it,De;return(0,Je.Z)().wrap(function(on){for(;;)switch(on.prev=on.next){case 0:Oe=qe.createReader(),Le=[];case 2:return on.next=5,new Promise(function(An){Oe.readEntries(An,function(){return An([])})});case 5:if(Ge=on.sent,it=Ge.length,it){on.next=9;break}return on.abrupt("break",12);case 9:for(De=0;De<it;De++)Le.push(Ge[De]);on.next=2;break;case 12:return on.abrupt("return",Le);case 13:case"end":return on.stop()}},Dn)})),Tt.apply(this,arguments)},rn=function(Dn){return Tt.apply(this,arguments)},at=[],Wt=[],pt.forEach(function(In){return Wt.push(In.webkitGetAsEntry())}),Nn=function(){var In=(0,wt.Z)((0,Je.Z)().mark(function Dn(qe,Oe){var Le,Ge;return(0,Je.Z)().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(qe){De.next=2;break}return De.abrupt("return");case 2:if(qe.path=Oe||"",!qe.isFile){De.next=10;break}return De.next=6,Xt(qe);case 6:Le=De.sent,Le&&at.push(Le),De.next=15;break;case 10:if(!qe.isDirectory){De.next=15;break}return De.next=13,rn(qe);case 13:Ge=De.sent,Wt.push.apply(Wt,(0,Fe.Z)(Ge));case 15:case"end":return De.stop()}},Dn)}));return function(qe,Oe){return In.apply(this,arguments)}}(),Rt=0;case 9:if(!(Rt<Wt.length)){Zt.next=15;break}return Zt.next=12,Nn(Wt[Rt]);case 12:Rt++,Zt.next=9;break;case 15:return Zt.abrupt("return",at);case 16:case"end":return Zt.stop()}},cn)}));return function(pt,ut){return Bt.apply(this,arguments)}}(),We=Ne,tt=+new Date,Ye=0;function Qe(){return"rc-upload-".concat(tt,"-").concat(++Ye)}var lt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],nt=function(Bt){(0,He.Z)(pt,Bt);var cn=(0,Te.Z)(pt);function pt(){var ut;(0,Ce.Z)(this,pt);for(var at=arguments.length,Wt=new Array(at),rn=0;rn<at;rn++)Wt[rn]=arguments[rn];return ut=cn.call.apply(cn,[this].concat(Wt)),(0,ze.Z)((0,Ie.Z)(ut),"state",{uid:Qe()}),(0,ze.Z)((0,Ie.Z)(ut),"reqs",{}),(0,ze.Z)((0,Ie.Z)(ut),"fileInput",void 0),(0,ze.Z)((0,Ie.Z)(ut),"_isMounted",void 0),(0,ze.Z)((0,Ie.Z)(ut),"onChange",function(Tt){var Xt=ut.props,nn=Xt.accept,Nn=Xt.directory,Rt=Tt.target.files,At=(0,Fe.Z)(Rt).filter(function(Zt){return!Nn||fe(Zt,nn)});ut.uploadFiles(At),ut.reset()}),(0,ze.Z)((0,Ie.Z)(ut),"onClick",function(Tt){var Xt=ut.fileInput;if(Xt){var nn=Tt.target,Nn=ut.props.onClick;if(nn&&nn.tagName==="BUTTON"){var Rt=Xt.parentNode;Rt.focus(),nn.blur()}Xt.click(),Nn&&Nn(Tt)}}),(0,ze.Z)((0,Ie.Z)(ut),"onKeyDown",function(Tt){Tt.key==="Enter"&&ut.onClick(Tt)}),(0,ze.Z)((0,Ie.Z)(ut),"onFileDrop",function(){var Tt=(0,wt.Z)((0,Je.Z)().mark(function Xt(nn){var Nn,Rt,At;return(0,Je.Z)().wrap(function(In){for(;;)switch(In.prev=In.next){case 0:if(Nn=ut.props.multiple,nn.preventDefault(),nn.type!=="dragover"){In.next=4;break}return In.abrupt("return");case 4:if(!ut.props.directory){In.next=11;break}return In.next=7,We(Array.prototype.slice.call(nn.dataTransfer.items),function(Dn){return fe(Dn,ut.props.accept)});case 7:Rt=In.sent,ut.uploadFiles(Rt),In.next=14;break;case 11:At=(0,Fe.Z)(nn.dataTransfer.files).filter(function(Dn){return fe(Dn,ut.props.accept)}),Nn===!1&&(At=At.slice(0,1)),ut.uploadFiles(At);case 14:case"end":return In.stop()}},Xt)}));return function(Xt){return Tt.apply(this,arguments)}}()),(0,ze.Z)((0,Ie.Z)(ut),"uploadFiles",function(Tt){var Xt=(0,Fe.Z)(Tt),nn=Xt.map(function(Nn){return Nn.uid=Qe(),ut.processFile(Nn,Xt)});Promise.all(nn).then(function(Nn){var Rt=ut.props.onBatchStart;Rt==null||Rt(Nn.map(function(At){var Zt=At.origin,In=At.parsedFile;return{file:Zt,parsedFile:In}})),Nn.filter(function(At){return At.parsedFile!==null}).forEach(function(At){ut.post(At)})})}),(0,ze.Z)((0,Ie.Z)(ut),"processFile",function(){var Tt=(0,wt.Z)((0,Je.Z)().mark(function Xt(nn,Nn){var Rt,At,Zt,In,Dn,qe,Oe,Le,Ge;return(0,Je.Z)().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Rt=ut.props.beforeUpload,At=nn,!Rt){De.next=14;break}return De.prev=3,De.next=6,Rt(nn,Nn);case 6:At=De.sent,De.next=12;break;case 9:De.prev=9,De.t0=De.catch(3),At=!1;case 12:if(At!==!1){De.next=14;break}return De.abrupt("return",{origin:nn,parsedFile:null,action:null,data:null});case 14:if(Zt=ut.props.action,typeof Zt!="function"){De.next=21;break}return De.next=18,Zt(nn);case 18:In=De.sent,De.next=22;break;case 21:In=Zt;case 22:if(Dn=ut.props.data,typeof Dn!="function"){De.next=29;break}return De.next=26,Dn(nn);case 26:qe=De.sent,De.next=30;break;case 29:qe=Dn;case 30:return Oe=((0,gt.Z)(At)==="object"||typeof At=="string")&&At?At:nn,Oe instanceof File?Le=Oe:Le=new File([Oe],nn.name,{type:nn.type}),Ge=Le,Ge.uid=nn.uid,De.abrupt("return",{origin:nn,data:qe,parsedFile:Ge,action:In});case 35:case"end":return De.stop()}},Xt,null,[[3,9]])}));return function(Xt,nn){return Tt.apply(this,arguments)}}()),(0,ze.Z)((0,Ie.Z)(ut),"saveFileInput",function(Tt){ut.fileInput=Tt}),ut}return(0,ke.Z)(pt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var Wt=this,rn=at.data,Tt=at.origin,Xt=at.action,nn=at.parsedFile;if(this._isMounted){var Nn=this.props,Rt=Nn.onStart,At=Nn.customRequest,Zt=Nn.name,In=Nn.headers,Dn=Nn.withCredentials,qe=Nn.method,Oe=Tt.uid,Le=At||Pe,Ge={action:Xt,filename:Zt,data:rn,file:nn,headers:In,withCredentials:Dn,method:qe||"post",onProgress:function(De){var ht=Wt.props.onProgress;ht==null||ht(De,nn)},onSuccess:function(De,ht){var on=Wt.props.onSuccess;on==null||on(De,nn,ht),delete Wt.reqs[Oe]},onError:function(De,ht){var on=Wt.props.onError;on==null||on(De,ht,nn),delete Wt.reqs[Oe]}};Rt(Tt),this.reqs[Oe]=Le(Ge)}}},{key:"reset",value:function(){this.setState({uid:Qe()})}},{key:"abort",value:function(at){var Wt=this.reqs;if(at){var rn=at.uid?at.uid:at;Wt[rn]&&Wt[rn].abort&&Wt[rn].abort(),delete Wt[rn]}else Object.keys(Wt).forEach(function(Tt){Wt[Tt]&&Wt[Tt].abort&&Wt[Tt].abort(),delete Wt[Tt]})}},{key:"render",value:function(){var at=this.props,Wt=at.component,rn=at.prefixCls,Tt=at.className,Xt=at.classNames,nn=Xt===void 0?{}:Xt,Nn=at.disabled,Rt=at.id,At=at.name,Zt=at.style,In=at.styles,Dn=In===void 0?{}:In,qe=at.multiple,Oe=at.accept,Le=at.capture,Ge=at.children,it=at.directory,De=at.openFileDialogOnClick,ht=at.onMouseEnter,on=at.onMouseLeave,An=at.hasControlInside,Zn=(0,Be.Z)(at,lt),Ft=ee()((0,ze.Z)((0,ze.Z)((0,ze.Z)({},rn,!0),"".concat(rn,"-disabled"),Nn),Tt,Tt)),It=it?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Gt=Nn?{}:{onClick:De?this.onClick:function(){},onKeyDown:De?this.onKeyDown:function(){},onMouseEnter:ht,onMouseLeave:on,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:An?void 0:"0"};return ot.createElement(Wt,(0,oe.Z)({},Gt,{className:Ft,role:An?void 0:"button",style:Zt}),ot.createElement("input",(0,oe.Z)({},(0,he.Z)(Zn,{aria:!0,data:!0}),{id:Rt,name:At,disabled:Nn,type:"file",ref:this.saveFileInput,onClick:function(Pn){return Pn.stopPropagation()},key:this.state.uid,style:(0,Ke.Z)({display:"none"},Dn.input),className:nn.input,accept:Oe},It,{multiple:qe,onChange:this.onChange},Le!=null?{capture:Le}:{})),Ge)}}]),pt}(ot.Component),yt=nt;function vt(){}var St=function(Bt){(0,He.Z)(pt,Bt);var cn=(0,Te.Z)(pt);function pt(){var ut;(0,Ce.Z)(this,pt);for(var at=arguments.length,Wt=new Array(at),rn=0;rn<at;rn++)Wt[rn]=arguments[rn];return ut=cn.call.apply(cn,[this].concat(Wt)),(0,ze.Z)((0,Ie.Z)(ut),"uploader",void 0),(0,ze.Z)((0,Ie.Z)(ut),"saveUploader",function(Tt){ut.uploader=Tt}),ut}return(0,ke.Z)(pt,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ot.createElement(yt,(0,oe.Z)({},this.props,{ref:this.saveUploader}))}}]),pt}(ot.Component);(0,ze.Z)(St,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:vt,onError:vt,onSuccess:vt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Lt=St,jt=Lt},8224:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Ce}});var oe=ae(4676);function Ce(ke,Ie,He,Te){var ze=oe.unstable_batchedUpdates?function(Ke){oe.unstable_batchedUpdates(He,Ke)}:He;return ke!=null&&ke.addEventListener&&ke.addEventListener(Ie,ze,Te),{remove:function(){ke!=null&&ke.removeEventListener&&ke.removeEventListener(Ie,ze,Te)}}}},24514:function(_e,be,ae){"use strict";ae.d(be,{G:function(){return Ie}});var oe=ae(47273),Ce=function(Te){if((0,oe.Z)()&&window.document.documentElement){var ze=Array.isArray(Te)?Te:[Te],ot=window.document.documentElement;return ze.some(function(Ke){return Ke in ot.style})}return!1},ke=function(Te,ze){if(!Ce(Te))return!1;var ot=document.createElement("div"),Ke=ot.style[Te];return ot.style[Te]=ze,ot.style[Te]!==Ke};function Ie(He,Te){return!Array.isArray(He)&&Te!==void 0?ke(He,Te):Ce(He)}},6790:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Dn}});var oe=ae(67711),Ce=ae(26420),ke=ae(98506),Ie=ae(52873),He=ae(16886),Te=ae(33346),ze=ae(92310),ot=ae.n(ze),Ke=ae(29301),Be=ae(70425),gt=ae(34280),Je=ae(59301),wt=ae(4676),Fe=Je.forwardRef(function(qe,Oe){var Le=qe.height,Ge=qe.offsetY,it=qe.offsetX,De=qe.children,ht=qe.prefixCls,on=qe.onInnerResize,An=qe.innerProps,Zn=qe.rtl,Ft=qe.extra,It={},Gt={display:"flex",flexDirection:"column"};return Ge!==void 0&&(It={height:Le,position:"relative",overflow:"hidden"},Gt=(0,ke.Z)((0,ke.Z)({},Gt),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(Ge,"px)")},Zn?"marginRight":"marginLeft",-it),"position","absolute"),"left",0),"right",0),"top",0))),Je.createElement("div",{style:It},Je.createElement(Ke.Z,{onResize:function(Pn){var an=Pn.offsetHeight;an&&on&&on()}},Je.createElement("div",(0,oe.Z)({style:Gt,className:ot()((0,Ie.Z)({},"".concat(ht,"-holder-inner"),ht)),ref:Oe},An),De,Ft)))});Fe.displayName="Filler";var te=Fe;function ee(qe){var Oe=qe.children,Le=qe.setRef,Ge=Je.useCallback(function(it){Le(it)},[]);return Je.cloneElement(Oe,{ref:Ge})}function he(qe,Oe,Le,Ge,it,De,ht,on){var An=on.getKey;return qe.slice(Oe,Le+1).map(function(Zn,Ft){var It=Oe+Ft,Gt=ht(Zn,It,{style:{width:Ge},offsetX:it}),fn=An(Zn);return Je.createElement(ee,{key:fn,setRef:function(an){return De(Zn,an)}},Gt)})}function ue(qe,Oe,Le,Ge){var it=Le-qe,De=Oe-Le,ht=Math.min(it,De)*2;if(Ge<=ht){var on=Math.floor(Ge/2);return Ge%2?Le+on+1:Le-on}return it>De?Le-(Ge-De):Le+(Ge-it)}function fe(qe,Oe,Le){var Ge=qe.length,it=Oe.length,De,ht;if(Ge===0&&it===0)return null;Ge<it?(De=qe,ht=Oe):(De=Oe,ht=qe);var on={__EMPTY_ITEM__:!0};function An(Pn){return Pn!==void 0?Le(Pn):on}for(var Zn=null,Ft=Math.abs(Ge-it)!==1,It=0;It<ht.length;It+=1){var Gt=An(De[It]),fn=An(ht[It]);if(Gt!==fn){Zn=It,Ft=Ft||Gt!==An(ht[It+1]);break}}return Zn===null?null:{index:Zn,multiple:Ft}}function me(qe,Oe,Le){var Ge=Je.useState(qe),it=(0,He.Z)(Ge,2),De=it[0],ht=it[1],on=Je.useState(null),An=(0,He.Z)(on,2),Zn=An[0],Ft=An[1];return Je.useEffect(function(){var It=fe(De||[],qe||[],Oe);(It==null?void 0:It.index)!==void 0&&(Le==null||Le(It.index),Ft(qe[It.index])),ht(qe)},[qe]),[Zn]}var Ee=ae(16089),Pe=(typeof navigator=="undefined"?"undefined":(0,Ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ne=Pe,We=function(qe,Oe,Le,Ge){var it=(0,Je.useRef)(!1),De=(0,Je.useRef)(null);function ht(){clearTimeout(De.current),it.current=!0,De.current=setTimeout(function(){it.current=!1},50)}var on=(0,Je.useRef)({top:qe,bottom:Oe,left:Le,right:Ge});return on.current.top=qe,on.current.bottom=Oe,on.current.left=Le,on.current.right=Ge,function(An,Zn){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,It=An?Zn<0&&on.current.left||Zn>0&&on.current.right:Zn<0&&on.current.top||Zn>0&&on.current.bottom;return Ft&&It?(clearTimeout(De.current),it.current=!1):(!It||it.current)&&ht(),!it.current&&It}};function tt(qe,Oe,Le,Ge,it,De,ht){var on=(0,Je.useRef)(0),An=(0,Je.useRef)(null),Zn=(0,Je.useRef)(null),Ft=(0,Je.useRef)(!1),It=We(Oe,Le,Ge,it);function Gt(Ht,Kt){if(Ee.Z.cancel(An.current),!It(!1,Kt)){var un=Ht;if(!un._virtualHandled)un._virtualHandled=!0;else return;on.current+=Kt,Zn.current=Kt,Ne||un.preventDefault(),An.current=(0,Ee.Z)(function(){var Vn=Ft.current?10:1;ht(on.current*Vn,!1),on.current=0})}}function fn(Ht,Kt){ht(Kt,!0),Ne||Ht.preventDefault()}var Pn=(0,Je.useRef)(null),an=(0,Je.useRef)(null);function Ot(Ht){if(qe){Ee.Z.cancel(an.current),an.current=(0,Ee.Z)(function(){Pn.current=null},2);var Kt=Ht.deltaX,un=Ht.deltaY,Vn=Ht.shiftKey,bn=Kt,mt=un;(Pn.current==="sx"||!Pn.current&&Vn&&un&&!Kt)&&(bn=un,mt=0,Pn.current="sx");var jn=Math.abs(bn),Kn=Math.abs(mt);Pn.current===null&&(Pn.current=De&&jn>Kn?"x":"y"),Pn.current==="y"?Gt(Ht,mt):fn(Ht,bn)}}function Mn(Ht){qe&&(Ft.current=Ht.detail===Zn.current)}return[Ot,Mn]}function Ye(qe,Oe,Le,Ge){var it=Je.useMemo(function(){return[new Map,[]]},[qe,Le.id,Ge]),De=(0,He.Z)(it,2),ht=De[0],on=De[1],An=function(Ft){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ft,Gt=ht.get(Ft),fn=ht.get(It);if(Gt===void 0||fn===void 0)for(var Pn=qe.length,an=on.length;an<Pn;an+=1){var Ot,Mn=qe[an],Ht=Oe(Mn);ht.set(Ht,an);var Kt=(Ot=Le.get(Ht))!==null&&Ot!==void 0?Ot:Ge;if(on[an]=(on[an-1]||0)+Kt,Ht===Ft&&(Gt=an),Ht===It&&(fn=an),Gt!==void 0&&fn!==void 0)break}return{top:on[Gt-1]||0,bottom:on[fn]}};return An}var Qe=ae(42573),lt=ae(58698),nt=function(){function qe(){(0,Qe.Z)(this,qe),(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,lt.Z)(qe,[{key:"set",value:function(Le,Ge){this.diffRecords.set(Le,this.maps[Le]),this.maps[Le]=Ge,this.id+=1}},{key:"get",value:function(Le){return this.maps[Le]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),qe}(),yt=nt;function vt(qe){var Oe=parseFloat(qe);return isNaN(Oe)?0:Oe}function St(qe,Oe,Le){var Ge=Je.useState(0),it=(0,He.Z)(Ge,2),De=it[0],ht=it[1],on=(0,Je.useRef)(new Map),An=(0,Je.useRef)(new yt),Zn=(0,Je.useRef)(0);function Ft(){Zn.current+=1}function It(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ft();var Pn=function(){var Mn=!1;on.current.forEach(function(Ht,Kt){if(Ht&&Ht.offsetParent){var un=Ht.offsetHeight,Vn=getComputedStyle(Ht),bn=Vn.marginTop,mt=Vn.marginBottom,jn=vt(bn),Kn=vt(mt),Ut=un+jn+Kn;An.current.get(Kt)!==Ut&&(An.current.set(Kt,Ut),Mn=!0)}}),Mn&&ht(function(Ht){return Ht+1})};if(fn)Pn();else{Zn.current+=1;var an=Zn.current;Promise.resolve().then(function(){an===Zn.current&&Pn()})}}function Gt(fn,Pn){var an=qe(fn),Ot=on.current.get(an);Pn?(on.current.set(an,Pn),It()):on.current.delete(an),!Ot!=!Pn&&(Pn?Oe==null||Oe(fn):Le==null||Le(fn))}return(0,Je.useEffect)(function(){return Ft},[]),[Gt,It,An.current,De]}var Lt=14/15;function jt(qe,Oe,Le){var Ge=(0,Je.useRef)(!1),it=(0,Je.useRef)(0),De=(0,Je.useRef)(0),ht=(0,Je.useRef)(null),on=(0,Je.useRef)(null),An,Zn=function(fn){if(Ge.current){var Pn=Math.ceil(fn.touches[0].pageX),an=Math.ceil(fn.touches[0].pageY),Ot=it.current-Pn,Mn=De.current-an,Ht=Math.abs(Ot)>Math.abs(Mn);Ht?it.current=Pn:De.current=an;var Kt=Le(Ht,Ht?Ot:Mn,!1,fn);Kt&&fn.preventDefault(),clearInterval(on.current),Kt&&(on.current=setInterval(function(){Ht?Ot*=Lt:Mn*=Lt;var un=Math.floor(Ht?Ot:Mn);(!Le(Ht,un,!0)||Math.abs(un)<=.1)&&clearInterval(on.current)},16))}},Ft=function(){Ge.current=!1,An()},It=function(fn){An(),fn.touches.length===1&&!Ge.current&&(Ge.current=!0,it.current=Math.ceil(fn.touches[0].pageX),De.current=Math.ceil(fn.touches[0].pageY),ht.current=fn.target,ht.current.addEventListener("touchmove",Zn,{passive:!1}),ht.current.addEventListener("touchend",Ft,{passive:!0}))};An=function(){ht.current&&(ht.current.removeEventListener("touchmove",Zn),ht.current.removeEventListener("touchend",Ft))},(0,gt.Z)(function(){return qe&&Oe.current.addEventListener("touchstart",It,{passive:!0}),function(){var Gt;(Gt=Oe.current)===null||Gt===void 0||Gt.removeEventListener("touchstart",It),An(),clearInterval(on.current)}},[qe])}function Bt(qe){return Math.floor(Math.pow(qe,.5))}function cn(qe,Oe){var Le="touches"in qe?qe.touches[0]:qe;return Le[Oe?"pageX":"pageY"]-window[Oe?"scrollX":"scrollY"]}function pt(qe,Oe,Le){Je.useEffect(function(){var Ge=Oe.current;if(qe&&Ge){var it=!1,De,ht,on=function(){Ee.Z.cancel(De)},An=function Gt(){on(),De=(0,Ee.Z)(function(){Le(ht),Gt()})},Zn=function(fn){if(!(fn.target.draggable||fn.button!==0)){var Pn=fn;Pn._virtualHandled||(Pn._virtualHandled=!0,it=!0)}},Ft=function(){it=!1,on()},It=function(fn){if(it){var Pn=cn(fn,!1),an=Ge.getBoundingClientRect(),Ot=an.top,Mn=an.bottom;if(Pn<=Ot){var Ht=Ot-Pn;ht=-Bt(Ht),An()}else if(Pn>=Mn){var Kt=Pn-Mn;ht=Bt(Kt),An()}else on()}};return Ge.addEventListener("mousedown",Zn),Ge.ownerDocument.addEventListener("mouseup",Ft),Ge.ownerDocument.addEventListener("mousemove",It),function(){Ge.removeEventListener("mousedown",Zn),Ge.ownerDocument.removeEventListener("mouseup",Ft),Ge.ownerDocument.removeEventListener("mousemove",It),on()}}},[qe])}var ut=10;function at(qe,Oe,Le,Ge,it,De,ht,on){var An=Je.useRef(),Zn=Je.useState(null),Ft=(0,He.Z)(Zn,2),It=Ft[0],Gt=Ft[1];return(0,gt.Z)(function(){if(It&&It.times<ut){if(!qe.current){Gt(function(li){return(0,ke.Z)({},li)});return}De();var fn=It.targetAlign,Pn=It.originAlign,an=It.index,Ot=It.offset,Mn=qe.current.clientHeight,Ht=!1,Kt=fn,un=null;if(Mn){for(var Vn=fn||Pn,bn=0,mt=0,jn=0,Kn=Math.min(Oe.length-1,an),Ut=0;Ut<=Kn;Ut+=1){var yi=it(Oe[Ut]);mt=bn;var Vi=Le.get(yi);jn=mt+(Vi===void 0?Ge:Vi),bn=jn}for(var kn=Vn==="top"?Ot:Mn-Ot,Vt=Kn;Vt>=0;Vt-=1){var Qn=it(Oe[Vt]),ai=Le.get(Qn);if(ai===void 0){Ht=!0;break}if(kn-=ai,kn<=0)break}switch(Vn){case"top":un=mt-Ot;break;case"bottom":un=jn-Mn+Ot;break;default:{var Un=qe.current.scrollTop,si=Un+Mn;mt<Un?Kt="top":jn>si&&(Kt="bottom")}}un!==null&&ht(un),un!==It.lastTop&&(Ht=!0)}Ht&&Gt((0,ke.Z)((0,ke.Z)({},It),{},{times:It.times+1,targetAlign:Kt,lastTop:un}))}},[It,qe.current]),function(fn){if(fn==null){on();return}if(Ee.Z.cancel(An.current),typeof fn=="number")ht(fn);else if(fn&&(0,Ce.Z)(fn)==="object"){var Pn,an=fn.align;"index"in fn?Pn=fn.index:Pn=Oe.findIndex(function(Ht){return it(Ht)===fn.key});var Ot=fn.offset,Mn=Ot===void 0?0:Ot;Gt({times:0,index:Pn,offset:Mn,originAlign:an})}}}var Wt=Je.forwardRef(function(qe,Oe){var Le=qe.prefixCls,Ge=qe.rtl,it=qe.scrollOffset,De=qe.scrollRange,ht=qe.onStartMove,on=qe.onStopMove,An=qe.onScroll,Zn=qe.horizontal,Ft=qe.spinSize,It=qe.containerSize,Gt=qe.style,fn=qe.thumbStyle,Pn=qe.showScrollBar,an=Je.useState(!1),Ot=(0,He.Z)(an,2),Mn=Ot[0],Ht=Ot[1],Kt=Je.useState(null),un=(0,He.Z)(Kt,2),Vn=un[0],bn=un[1],mt=Je.useState(null),jn=(0,He.Z)(mt,2),Kn=jn[0],Ut=jn[1],yi=!Ge,Vi=Je.useRef(),kn=Je.useRef(),Vt=Je.useState(Pn),Qn=(0,He.Z)(Vt,2),ai=Qn[0],Un=Qn[1],si=Je.useRef(),li=function(){Pn===!0||Pn===!1||(clearTimeout(si.current),Un(!0),si.current=setTimeout(function(){Un(!1)},3e3))},Me=De-It||0,ii=It-Ft||0,ti=Je.useMemo(function(){if(it===0||Me===0)return 0;var _n=it/Me;return _n*ii},[it,Me,ii]),On=function(Ri){Ri.stopPropagation(),Ri.preventDefault()},ni=Je.useRef({top:ti,dragging:Mn,pageY:Vn,startTop:Kn});ni.current={top:ti,dragging:Mn,pageY:Vn,startTop:Kn};var Ei=function(Ri){Ht(!0),bn(cn(Ri,Zn)),Ut(ni.current.top),ht(),Ri.stopPropagation(),Ri.preventDefault()};Je.useEffect(function(){var _n=function(mn){mn.preventDefault()},Ri=Vi.current,qn=kn.current;return Ri.addEventListener("touchstart",_n,{passive:!1}),qn.addEventListener("touchstart",Ei,{passive:!1}),function(){Ri.removeEventListener("touchstart",_n),qn.removeEventListener("touchstart",Ei)}},[]);var ui=Je.useRef();ui.current=Me;var tr=Je.useRef();tr.current=ii,Je.useEffect(function(){if(Mn){var _n,Ri=function(mn){var Hn=ni.current,Di=Hn.dragging,Yi=Hn.pageY,mi=Hn.startTop;Ee.Z.cancel(_n);var Ct=Vi.current.getBoundingClientRect(),$t=It/(Zn?Ct.width:Ct.height);if(Di){var fi=(cn(mn,Zn)-Yi)*$t,gi=mi;!yi&&Zn?gi-=fi:gi+=fi;var zt=ui.current,pi=tr.current,Fi=pi?gi/pi:0,Cn=Math.ceil(Fi*zt);Cn=Math.max(Cn,0),Cn=Math.min(Cn,zt),_n=(0,Ee.Z)(function(){An(Cn,Zn)})}},qn=function(){Ht(!1),on()};return window.addEventListener("mousemove",Ri,{passive:!0}),window.addEventListener("touchmove",Ri,{passive:!0}),window.addEventListener("mouseup",qn,{passive:!0}),window.addEventListener("touchend",qn,{passive:!0}),function(){window.removeEventListener("mousemove",Ri),window.removeEventListener("touchmove",Ri),window.removeEventListener("mouseup",qn),window.removeEventListener("touchend",qn),Ee.Z.cancel(_n)}}},[Mn]),Je.useEffect(function(){return li(),function(){clearTimeout(si.current)}},[it]),Je.useImperativeHandle(Oe,function(){return{delayHidden:li}});var Sn="".concat(Le,"-scrollbar"),sn={position:"absolute",visibility:ai?null:"hidden"},dn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Zn?(Object.assign(sn,{height:8,left:0,right:0,bottom:0}),Object.assign(dn,(0,Ie.Z)({height:"100%",width:Ft},yi?"left":"right",ti))):(Object.assign(sn,(0,Ie.Z)({width:8,top:0,bottom:0},yi?"right":"left",0)),Object.assign(dn,{width:"100%",height:Ft,top:ti})),Je.createElement("div",{ref:Vi,className:ot()(Sn,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Sn,"-horizontal"),Zn),"".concat(Sn,"-vertical"),!Zn),"".concat(Sn,"-visible"),ai)),style:(0,ke.Z)((0,ke.Z)({},sn),Gt),onMouseDown:On,onMouseMove:li},Je.createElement("div",{ref:kn,className:ot()("".concat(Sn,"-thumb"),(0,Ie.Z)({},"".concat(Sn,"-thumb-moving"),Mn)),style:(0,ke.Z)((0,ke.Z)({},dn),fn),onMouseDown:Ei}))}),rn=Wt,Tt=20;function Xt(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Le=qe/Oe*qe;return isNaN(Le)&&(Le=0),Le=Math.max(Le,Tt),Math.floor(Le)}var nn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nn=[],Rt={overflowY:"auto",overflowAnchor:"none"};function At(qe,Oe){var Le=qe.prefixCls,Ge=Le===void 0?"rc-virtual-list":Le,it=qe.className,De=qe.height,ht=qe.itemHeight,on=qe.fullHeight,An=on===void 0?!0:on,Zn=qe.style,Ft=qe.data,It=qe.children,Gt=qe.itemKey,fn=qe.virtual,Pn=qe.direction,an=qe.scrollWidth,Ot=qe.component,Mn=Ot===void 0?"div":Ot,Ht=qe.onScroll,Kt=qe.onVirtualScroll,un=qe.onVisibleChange,Vn=qe.innerProps,bn=qe.extraRender,mt=qe.styles,jn=qe.showScrollBar,Kn=jn===void 0?"optional":jn,Ut=(0,Te.Z)(qe,nn),yi=Je.useCallback(function(di){return typeof Gt=="function"?Gt(di):di==null?void 0:di[Gt]},[Gt]),Vi=St(yi,null,null),kn=(0,He.Z)(Vi,4),Vt=kn[0],Qn=kn[1],ai=kn[2],Un=kn[3],si=!!(fn!==!1&&De&&ht),li=Je.useMemo(function(){return Object.values(ai.maps).reduce(function(di,dt){return di+dt},0)},[ai.id,ai.maps]),Me=si&&Ft&&(Math.max(ht*Ft.length,li)>De||!!an),ii=Pn==="rtl",ti=ot()(Ge,(0,Ie.Z)({},"".concat(Ge,"-rtl"),ii),it),On=Ft||Nn,ni=(0,Je.useRef)(),Ei=(0,Je.useRef)(),ui=(0,Je.useRef)(),tr=(0,Je.useState)(0),Sn=(0,He.Z)(tr,2),sn=Sn[0],dn=Sn[1],_n=(0,Je.useState)(0),Ri=(0,He.Z)(_n,2),qn=Ri[0],Ni=Ri[1],mn=(0,Je.useState)(!1),Hn=(0,He.Z)(mn,2),Di=Hn[0],Yi=Hn[1],mi=function(){Yi(!0)},Ct=function(){Yi(!1)},$t={getKey:yi};function fi(di){dn(function(dt){var gn;typeof di=="function"?gn=di(dt):gn=di;var vn=Tr(gn);return ni.current.scrollTop=vn,vn})}var gi=(0,Je.useRef)({start:0,end:On.length}),zt=(0,Je.useRef)(),pi=me(On,yi),Fi=(0,He.Z)(pi,1),Cn=Fi[0];zt.current=Cn;var je=Je.useMemo(function(){if(!si)return{scrollHeight:void 0,start:0,end:On.length-1,offset:void 0};if(!Me){var di;return{scrollHeight:((di=Ei.current)===null||di===void 0?void 0:di.offsetHeight)||0,start:0,end:On.length-1,offset:void 0}}for(var dt=0,gn,vn,Bn,hn=On.length,Yn=0;Yn<hn;Yn+=1){var Gn=On[Yn],en=yi(Gn),ri=ai.get(en),Bi=dt+(ri===void 0?ht:ri);Bi>=sn&&gn===void 0&&(gn=Yn,vn=dt),Bi>sn+De&&Bn===void 0&&(Bn=Yn),dt=Bi}return gn===void 0&&(gn=0,vn=0,Bn=Math.ceil(De/ht)),Bn===void 0&&(Bn=On.length-1),Bn=Math.min(Bn+1,On.length-1),{scrollHeight:dt,start:gn,end:Bn,offset:vn}},[Me,si,sn,On,Un,De]),Pi=je.scrollHeight,Ai=je.start,Rn=je.end,Ji=je.offset;gi.current.start=Ai,gi.current.end=Rn,Je.useLayoutEffect(function(){var di=ai.getRecord();if(di.size===1){var dt=Array.from(di.keys())[0],gn=di.get(dt),vn=On[Ai];if(vn&&gn===void 0){var Bn=yi(vn);if(Bn===dt){var hn=ai.get(dt),Yn=hn-ht;fi(function(Gn){return Gn+Yn})}}}ai.resetRecord()},[Pi]);var _i=Je.useState({width:0,height:De}),Jn=(0,He.Z)(_i,2),ji=Jn[0],ln=Jn[1],vr=function(dt){ln({width:dt.offsetWidth,height:dt.offsetHeight})},Wr=(0,Je.useRef)(),pn=(0,Je.useRef)(),ur=Je.useMemo(function(){return Xt(ji.width,an)},[ji.width,an]),yr=Je.useMemo(function(){return Xt(ji.height,Pi)},[ji.height,Pi]),ir=Pi-De,pr=(0,Je.useRef)(ir);pr.current=ir;function Tr(di){var dt=di;return Number.isNaN(pr.current)||(dt=Math.min(dt,pr.current)),dt=Math.max(dt,0),dt}var Br=sn<=0,Ar=sn>=ir,br=qn<=0,_r=qn>=an,Wn=We(Br,Ar,br,_r),xr=function(){return{x:ii?-qn:qn,y:sn}},$n=(0,Je.useRef)(xr()),ar=(0,Be.zX)(function(di){if(Kt){var dt=(0,ke.Z)((0,ke.Z)({},xr()),di);($n.current.x!==dt.x||$n.current.y!==dt.y)&&(Kt(dt),$n.current=dt)}});function Nr(di,dt){var gn=di;dt?((0,wt.flushSync)(function(){Ni(gn)}),ar()):fi(gn)}function Sr(di){var dt=di.currentTarget.scrollTop;dt!==sn&&fi(dt),Ht==null||Ht(di),ar()}var Xr=function(dt){var gn=dt,vn=an?an-ji.width:0;return gn=Math.max(gn,0),gn=Math.min(gn,vn),gn},Zr=(0,Be.zX)(function(di,dt){dt?((0,wt.flushSync)(function(){Ni(function(gn){var vn=gn+(ii?-di:di);return Xr(vn)})}),ar()):fi(function(gn){var vn=gn+di;return vn})}),Rr=tt(si,Br,Ar,br,_r,!!an,Zr),So=(0,He.Z)(Rr,2),Ln=So[0],ci=So[1];jt(si,ni,function(di,dt,gn,vn){var Bn=vn;return Wn(di,dt,gn)?!1:!Bn||!Bn._virtualHandled?(Bn&&(Bn._virtualHandled=!0),Ln({preventDefault:function(){},deltaX:di?dt:0,deltaY:di?0:dt}),!0):!1}),pt(Me,ni,function(di){fi(function(dt){return dt+di})}),(0,gt.Z)(function(){function di(gn){var vn=Br&&gn.detail<0,Bn=Ar&&gn.detail>0;si&&!vn&&!Bn&&gn.preventDefault()}var dt=ni.current;return dt.addEventListener("wheel",Ln,{passive:!1}),dt.addEventListener("DOMMouseScroll",ci,{passive:!0}),dt.addEventListener("MozMousePixelScroll",di,{passive:!1}),function(){dt.removeEventListener("wheel",Ln),dt.removeEventListener("DOMMouseScroll",ci),dt.removeEventListener("MozMousePixelScroll",di)}},[si,Br,Ar]),(0,gt.Z)(function(){if(an){var di=Xr(qn);Ni(di),ar({x:di})}},[ji.width,an]);var yn=function(){var dt,gn;(dt=Wr.current)===null||dt===void 0||dt.delayHidden(),(gn=pn.current)===null||gn===void 0||gn.delayHidden()},rt=at(ni,On,ai,ht,yi,function(){return Qn(!0)},fi,yn);Je.useImperativeHandle(Oe,function(){return{nativeElement:ui.current,getScrollInfo:xr,scrollTo:function(dt){function gn(vn){return vn&&(0,Ce.Z)(vn)==="object"&&("left"in vn||"top"in vn)}gn(dt)?(dt.left!==void 0&&Ni(Xr(dt.left)),rt(dt.top)):rt(dt)}}}),(0,gt.Z)(function(){if(un){var di=On.slice(Ai,Rn+1);un(di,On)}},[Ai,Rn,On]);var Ii=Ye(On,yi,ai,ht),Hi=bn==null?void 0:bn({start:Ai,end:Rn,virtual:Me,offsetX:qn,offsetY:Ji,rtl:ii,getSize:Ii}),nr=he(On,Ai,Rn,an,qn,Vt,It,$t),qi=null;De&&(qi=(0,ke.Z)((0,Ie.Z)({},An?"height":"maxHeight",De),Rt),si&&(qi.overflowY="hidden",an&&(qi.overflowX="hidden"),Di&&(qi.pointerEvents="none")));var Zi={};return ii&&(Zi.dir="rtl"),Je.createElement("div",(0,oe.Z)({ref:ui,style:(0,ke.Z)((0,ke.Z)({},Zn),{},{position:"relative"}),className:ti},Zi,Ut),Je.createElement(Ke.Z,{onResize:vr},Je.createElement(Mn,{className:"".concat(Ge,"-holder"),style:qi,ref:ni,onScroll:Sr,onMouseEnter:yn},Je.createElement(te,{prefixCls:Ge,height:Pi,offsetX:qn,offsetY:Ji,scrollWidth:an,onInnerResize:Qn,ref:Ei,innerProps:Vn,rtl:ii,extra:Hi},nr))),Me&&Pi>De&&Je.createElement(rn,{ref:Wr,prefixCls:Ge,scrollOffset:sn,scrollRange:Pi,rtl:ii,onScroll:Nr,onStartMove:mi,onStopMove:Ct,spinSize:yr,containerSize:ji.height,style:mt==null?void 0:mt.verticalScrollBar,thumbStyle:mt==null?void 0:mt.verticalScrollBarThumb,showScrollBar:Kn}),Me&&an>ji.width&&Je.createElement(rn,{ref:pn,prefixCls:Ge,scrollOffset:qn,scrollRange:an,rtl:ii,onScroll:Nr,onStartMove:mi,onStopMove:Ct,spinSize:ur,containerSize:ji.width,horizontal:!0,style:mt==null?void 0:mt.horizontalScrollBar,thumbStyle:mt==null?void 0:mt.horizontalScrollBarThumb,showScrollBar:Kn}))}var Zt=Je.forwardRef(At);Zt.displayName="List";var In=Zt,Dn=In},77596:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return ut}});var oe=ae(33346),Ce=ae(15142),ke=ae(52873),Ie=ae(59301),He=ae(67711);function Te(at,Wt){var rn=Object.keys(at);if(Object.getOwnPropertySymbols){var Tt=Object.getOwnPropertySymbols(at);Wt&&(Tt=Tt.filter(function(Xt){return Object.getOwnPropertyDescriptor(at,Xt).enumerable})),rn.push.apply(rn,Tt)}return rn}function ze(at){for(var Wt=1;Wt<arguments.length;Wt++){var rn=arguments[Wt]!=null?arguments[Wt]:{};Wt%2?Te(Object(rn),!0).forEach(function(Tt){(0,ke.Z)(at,Tt,rn[Tt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(at,Object.getOwnPropertyDescriptors(rn)):Te(Object(rn)).forEach(function(Tt){Object.defineProperty(at,Tt,Object.getOwnPropertyDescriptor(rn,Tt))})}return at}function ot(at){var Wt=at.length;if(Wt===0||Wt===1)return at;if(Wt===2)return[at[0],at[1],"".concat(at[0],".").concat(at[1]),"".concat(at[1],".").concat(at[0])];if(Wt===3)return[at[0],at[1],at[2],"".concat(at[0],".").concat(at[1]),"".concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[0]),"".concat(at[1],".").concat(at[2]),"".concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[1]),"".concat(at[0],".").concat(at[1],".").concat(at[2]),"".concat(at[0],".").concat(at[2],".").concat(at[1]),"".concat(at[1],".").concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[0],".").concat(at[1]),"".concat(at[2],".").concat(at[1],".").concat(at[0])];if(Wt>=4)return[at[0],at[1],at[2],at[3],"".concat(at[0],".").concat(at[1]),"".concat(at[0],".").concat(at[2]),"".concat(at[0],".").concat(at[3]),"".concat(at[1],".").concat(at[0]),"".concat(at[1],".").concat(at[2]),"".concat(at[1],".").concat(at[3]),"".concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[1]),"".concat(at[2],".").concat(at[3]),"".concat(at[3],".").concat(at[0]),"".concat(at[3],".").concat(at[1]),"".concat(at[3],".").concat(at[2]),"".concat(at[0],".").concat(at[1],".").concat(at[2]),"".concat(at[0],".").concat(at[1],".").concat(at[3]),"".concat(at[0],".").concat(at[2],".").concat(at[1]),"".concat(at[0],".").concat(at[2],".").concat(at[3]),"".concat(at[0],".").concat(at[3],".").concat(at[1]),"".concat(at[0],".").concat(at[3],".").concat(at[2]),"".concat(at[1],".").concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[0],".").concat(at[3]),"".concat(at[1],".").concat(at[2],".").concat(at[0]),"".concat(at[1],".").concat(at[2],".").concat(at[3]),"".concat(at[1],".").concat(at[3],".").concat(at[0]),"".concat(at[1],".").concat(at[3],".").concat(at[2]),"".concat(at[2],".").concat(at[0],".").concat(at[1]),"".concat(at[2],".").concat(at[0],".").concat(at[3]),"".concat(at[2],".").concat(at[1],".").concat(at[0]),"".concat(at[2],".").concat(at[1],".").concat(at[3]),"".concat(at[2],".").concat(at[3],".").concat(at[0]),"".concat(at[2],".").concat(at[3],".").concat(at[1]),"".concat(at[3],".").concat(at[0],".").concat(at[1]),"".concat(at[3],".").concat(at[0],".").concat(at[2]),"".concat(at[3],".").concat(at[1],".").concat(at[0]),"".concat(at[3],".").concat(at[1],".").concat(at[2]),"".concat(at[3],".").concat(at[2],".").concat(at[0]),"".concat(at[3],".").concat(at[2],".").concat(at[1]),"".concat(at[0],".").concat(at[1],".").concat(at[2],".").concat(at[3]),"".concat(at[0],".").concat(at[1],".").concat(at[3],".").concat(at[2]),"".concat(at[0],".").concat(at[2],".").concat(at[1],".").concat(at[3]),"".concat(at[0],".").concat(at[2],".").concat(at[3],".").concat(at[1]),"".concat(at[0],".").concat(at[3],".").concat(at[1],".").concat(at[2]),"".concat(at[0],".").concat(at[3],".").concat(at[2],".").concat(at[1]),"".concat(at[1],".").concat(at[0],".").concat(at[2],".").concat(at[3]),"".concat(at[1],".").concat(at[0],".").concat(at[3],".").concat(at[2]),"".concat(at[1],".").concat(at[2],".").concat(at[0],".").concat(at[3]),"".concat(at[1],".").concat(at[2],".").concat(at[3],".").concat(at[0]),"".concat(at[1],".").concat(at[3],".").concat(at[0],".").concat(at[2]),"".concat(at[1],".").concat(at[3],".").concat(at[2],".").concat(at[0]),"".concat(at[2],".").concat(at[0],".").concat(at[1],".").concat(at[3]),"".concat(at[2],".").concat(at[0],".").concat(at[3],".").concat(at[1]),"".concat(at[2],".").concat(at[1],".").concat(at[0],".").concat(at[3]),"".concat(at[2],".").concat(at[1],".").concat(at[3],".").concat(at[0]),"".concat(at[2],".").concat(at[3],".").concat(at[0],".").concat(at[1]),"".concat(at[2],".").concat(at[3],".").concat(at[1],".").concat(at[0]),"".concat(at[3],".").concat(at[0],".").concat(at[1],".").concat(at[2]),"".concat(at[3],".").concat(at[0],".").concat(at[2],".").concat(at[1]),"".concat(at[3],".").concat(at[1],".").concat(at[0],".").concat(at[2]),"".concat(at[3],".").concat(at[1],".").concat(at[2],".").concat(at[0]),"".concat(at[3],".").concat(at[2],".").concat(at[0],".").concat(at[1]),"".concat(at[3],".").concat(at[2],".").concat(at[1],".").concat(at[0])]}var Ke={};function Be(at){if(at.length===0||at.length===1)return at;var Wt=at.join(".");return Ke[Wt]||(Ke[Wt]=ot(at)),Ke[Wt]}function gt(at){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rn=arguments.length>2?arguments[2]:void 0,Tt=at.filter(function(nn){return nn!=="token"}),Xt=Be(Tt);return Xt.reduce(function(nn,Nn){return ze(ze({},nn),rn[Nn])},Wt)}function Je(at){return at.join(" ")}function wt(at,Wt){var rn=0;return function(Tt){return rn+=1,Tt.map(function(Xt,nn){return Fe({node:Xt,stylesheet:at,useInlineStyles:Wt,key:"code-segment-".concat(rn,"-").concat(nn)})})}}function Fe(at){var Wt=at.node,rn=at.stylesheet,Tt=at.style,Xt=Tt===void 0?{}:Tt,nn=at.useInlineStyles,Nn=at.key,Rt=Wt.properties,At=Wt.type,Zt=Wt.tagName,In=Wt.value;if(At==="text")return In;if(Zt){var Dn=wt(rn,nn),qe;if(!nn)qe=ze(ze({},Rt),{},{className:Je(Rt.className)});else{var Oe=Object.keys(rn).reduce(function(De,ht){return ht.split(".").forEach(function(on){De.includes(on)||De.push(on)}),De},[]),Le=Rt.className&&Rt.className.includes("token")?["token"]:[],Ge=Rt.className&&Le.concat(Rt.className.filter(function(De){return!Oe.includes(De)}));qe=ze(ze({},Rt),{},{className:Je(Ge)||void 0,style:gt(Rt.className,Object.assign({},Rt.style,Xt),rn)})}var it=Dn(Wt.children);return Ie.createElement(Zt,(0,He.Z)({key:Nn},qe),it)}}var te=function(at,Wt){var rn=at.listLanguages();return rn.indexOf(Wt)!==-1},ee=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(at,Wt){var rn=Object.keys(at);if(Object.getOwnPropertySymbols){var Tt=Object.getOwnPropertySymbols(at);Wt&&(Tt=Tt.filter(function(Xt){return Object.getOwnPropertyDescriptor(at,Xt).enumerable})),rn.push.apply(rn,Tt)}return rn}function ue(at){for(var Wt=1;Wt<arguments.length;Wt++){var rn=arguments[Wt]!=null?arguments[Wt]:{};Wt%2?he(Object(rn),!0).forEach(function(Tt){(0,ke.Z)(at,Tt,rn[Tt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(at,Object.getOwnPropertyDescriptors(rn)):he(Object(rn)).forEach(function(Tt){Object.defineProperty(at,Tt,Object.getOwnPropertyDescriptor(rn,Tt))})}return at}var fe=/\n/g;function me(at){return at.match(fe)}function Ee(at){var Wt=at.lines,rn=at.startingLineNumber,Tt=at.style;return Wt.map(function(Xt,nn){var Nn=nn+rn;return Ie.createElement("span",{key:"line-".concat(nn),className:"react-syntax-highlighter-line-number",style:typeof Tt=="function"?Tt(Nn):Tt},"".concat(Nn,`
`))})}function Pe(at){var Wt=at.codeString,rn=at.codeStyle,Tt=at.containerStyle,Xt=Tt===void 0?{float:"left",paddingRight:"10px"}:Tt,nn=at.numberStyle,Nn=nn===void 0?{}:nn,Rt=at.startingLineNumber;return Ie.createElement("code",{style:Object.assign({},rn,Xt)},Ee({lines:Wt.replace(/\n$/,"").split(`
`),style:Nn,startingLineNumber:Rt}))}function Ne(at){return"".concat(at.toString().length,".25em")}function We(at,Wt){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(at),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Wt},children:[{type:"text",value:at}]}}function tt(at,Wt,rn){var Tt={display:"inline-block",minWidth:Ne(rn),paddingRight:"1em",textAlign:"right",userSelect:"none"},Xt=typeof at=="function"?at(Wt):at,nn=ue(ue({},Tt),Xt);return nn}function Ye(at){var Wt=at.children,rn=at.lineNumber,Tt=at.lineNumberStyle,Xt=at.largestLineNumber,nn=at.showInlineLineNumbers,Nn=at.lineProps,Rt=Nn===void 0?{}:Nn,At=at.className,Zt=At===void 0?[]:At,In=at.showLineNumbers,Dn=at.wrapLongLines,qe=at.wrapLines,Oe=qe===void 0?!1:qe,Le=Oe?ue({},typeof Rt=="function"?Rt(rn):Rt):{};if(Le.className=Le.className?[].concat((0,Ce.Z)(Le.className.trim().split(/\s+/)),(0,Ce.Z)(Zt)):Zt,rn&&nn){var Ge=tt(Tt,rn,Xt);Wt.unshift(We(rn,Ge))}return Dn&In&&(Le.style=ue({display:"flex"},Le.style)),{type:"element",tagName:"span",properties:Le,children:Wt}}function Qe(at){for(var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Tt=0;Tt<at.length;Tt++){var Xt=at[Tt];if(Xt.type==="text")rn.push(Ye({children:[Xt],className:(0,Ce.Z)(new Set(Wt))}));else if(Xt.children){var nn=Wt.concat(Xt.properties.className);Qe(Xt.children,nn).forEach(function(Nn){return rn.push(Nn)})}}return rn}function lt(at,Wt,rn,Tt,Xt,nn,Nn,Rt,At){var Zt,In=Qe(at.value),Dn=[],qe=-1,Oe=0;function Le(Zn,Ft){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ye({children:Zn,lineNumber:Ft,lineNumberStyle:Rt,largestLineNumber:Nn,showInlineLineNumbers:Xt,lineProps:rn,className:It,showLineNumbers:Tt,wrapLongLines:At,wrapLines:Wt})}function Ge(Zn,Ft){if(Tt&&Ft&&Xt){var It=tt(Rt,Ft,Nn);Zn.unshift(We(Ft,It))}return Zn}function it(Zn,Ft){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Wt||It.length>0?Le(Zn,Ft,It):Ge(Zn,Ft)}for(var De=function(){var Ft=In[Oe],It=Ft.children[0].value,Gt=me(It);if(Gt){var fn=It.split(`
`);fn.forEach(function(Pn,an){var Ot=Tt&&Dn.length+nn,Mn={type:"text",value:"".concat(Pn,`
`)};if(an===0){var Ht=In.slice(qe+1,Oe).concat(Ye({children:[Mn],className:Ft.properties.className})),Kt=it(Ht,Ot);Dn.push(Kt)}else if(an===fn.length-1){var un=In[Oe+1]&&In[Oe+1].children&&In[Oe+1].children[0],Vn={type:"text",value:"".concat(Pn)};if(un){var bn=Ye({children:[Vn],className:Ft.properties.className});In.splice(Oe+1,0,bn)}else{var mt=[Vn],jn=it(mt,Ot,Ft.properties.className);Dn.push(jn)}}else{var Kn=[Mn],Ut=it(Kn,Ot,Ft.properties.className);Dn.push(Ut)}}),qe=Oe}Oe++};Oe<In.length;)De();if(qe!==In.length-1){var ht=In.slice(qe+1,In.length);if(ht&&ht.length){var on=Tt&&Dn.length+nn,An=it(ht,on);Dn.push(An)}}return Wt?Dn:(Zt=[]).concat.apply(Zt,Dn)}function nt(at){var Wt=at.rows,rn=at.stylesheet,Tt=at.useInlineStyles;return Wt.map(function(Xt,nn){return Fe({node:Xt,stylesheet:rn,useInlineStyles:Tt,key:"code-segement".concat(nn)})})}function yt(at){return at&&typeof at.highlightAuto!="undefined"}function vt(at){var Wt=at.astGenerator,rn=at.language,Tt=at.code,Xt=at.defaultCodeValue;if(yt(Wt)){var nn=te(Wt,rn);return rn==="text"?{value:Xt,language:"text"}:nn?Wt.highlight(rn,Tt):Wt.highlightAuto(Tt)}try{return rn&&rn!=="text"?{value:Wt.highlight(Tt,rn)}:{value:Xt}}catch(Nn){return{value:Xt}}}function St(at,Wt){return function(Tt){var Xt=Tt.language,nn=Tt.children,Nn=Tt.style,Rt=Nn===void 0?Wt:Nn,At=Tt.customStyle,Zt=At===void 0?{}:At,In=Tt.codeTagProps,Dn=In===void 0?{className:Xt?"language-".concat(Xt):void 0,style:ue(ue({},Rt['code[class*="language-"]']),Rt['code[class*="language-'.concat(Xt,'"]')])}:In,qe=Tt.useInlineStyles,Oe=qe===void 0?!0:qe,Le=Tt.showLineNumbers,Ge=Le===void 0?!1:Le,it=Tt.showInlineLineNumbers,De=it===void 0?!0:it,ht=Tt.startingLineNumber,on=ht===void 0?1:ht,An=Tt.lineNumberContainerStyle,Zn=Tt.lineNumberStyle,Ft=Zn===void 0?{}:Zn,It=Tt.wrapLines,Gt=Tt.wrapLongLines,fn=Gt===void 0?!1:Gt,Pn=Tt.lineProps,an=Pn===void 0?{}:Pn,Ot=Tt.renderer,Mn=Tt.PreTag,Ht=Mn===void 0?"pre":Mn,Kt=Tt.CodeTag,un=Kt===void 0?"code":Kt,Vn=Tt.code,bn=Vn===void 0?(Array.isArray(nn)?nn[0]:nn)||"":Vn,mt=Tt.astGenerator,jn=(0,oe.Z)(Tt,ee);mt=mt||at;var Kn=Ge?Ie.createElement(Pe,{containerStyle:An,codeStyle:Dn.style||{},numberStyle:Ft,startingLineNumber:on,codeString:bn}):null,Ut=Rt.hljs||Rt['pre[class*="language-"]']||{backgroundColor:"#fff"},yi=yt(mt)?"hljs":"prismjs",Vi=Oe?Object.assign({},jn,{style:Object.assign({},Ut,Zt)}):Object.assign({},jn,{className:jn.className?"".concat(yi," ").concat(jn.className):yi,style:Object.assign({},Zt)});if(fn?Dn.style=ue({whiteSpace:"pre-wrap"},Dn.style):Dn.style=ue({whiteSpace:"pre"},Dn.style),!mt)return Ie.createElement(Ht,Vi,Kn,Ie.createElement(un,Dn,bn));(It===void 0&&Ot||fn)&&(It=!0),Ot=Ot||nt;var kn=[{type:"text",value:bn}],Vt=vt({astGenerator:mt,language:Xt,code:bn,defaultCodeValue:kn});Vt.language===null&&(Vt.value=kn);var Qn=Vt.value.length;Qn===1&&Vt.value[0].type==="text"&&(Qn=Vt.value[0].value.split(`
`).length);var ai=Qn+on,Un=lt(Vt,It,an,Ge,De,on,ai,Ft,fn);return Ie.createElement(Ht,Vi,Ie.createElement(un,Dn,!De&&Kn,Ot({rows:Un,stylesheet:Rt,useInlineStyles:Oe})))}}var Lt={'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"}},jt=ae(11594),Bt=ae.n(jt),cn=["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"],pt=St(Bt(),Lt);pt.supportedLanguages=cn;var ut=pt},14179:function(_e,be){"use strict";be.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(_e,be,ae){"use strict";ae(84126);var oe=ae(59301),Ce=60103;if(be.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var ke=Symbol.for;Ce=ke("react.element"),be.Fragment=ke("react.fragment")}var Ie=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,He=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function ze(ot,Ke,Be){var gt,Je={},wt=null,Fe=null;Be!==void 0&&(wt=""+Be),Ke.key!==void 0&&(wt=""+Ke.key),Ke.ref!==void 0&&(Fe=Ke.ref);for(gt in Ke)He.call(Ke,gt)&&!Te.hasOwnProperty(gt)&&(Je[gt]=Ke[gt]);if(ot&&ot.defaultProps)for(gt in Ke=ot.defaultProps,Ke)Je[gt]===void 0&&(Je[gt]=Ke[gt]);return{$$typeof:Ce,type:ot,key:wt,ref:Fe,props:Je,_owner:Ie.current}}be.jsx=ze,be.jsxs=ze},37712:function(_e,be,ae){"use strict";_e.exports=ae(19524)},95489:function(_e,be,ae){"use strict";var oe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Ce=Pe();oe.Prism={manual:!0,disableWorkerMessageHandler:!0};var ke=ae(43621),Ie=ae(12256),He=ae(68398),Te=ae(70614),ze=ae(54212),ot=ae(9720),Ke=ae(88786);Ce();var Be={}.hasOwnProperty;function gt(){}gt.prototype=He;var Je=new gt;_e.exports=Je,Je.highlight=te,Je.register=wt,Je.alias=Fe,Je.registered=ee,Je.listLanguages=he,wt(Te),wt(ze),wt(ot),wt(Ke),Je.util.encode=me,Je.Token.stringify=ue;function wt(Ne){if(typeof Ne!="function"||!Ne.displayName)throw new Error("Expected `function` for `grammar`, got `"+Ne+"`");Je.languages[Ne.displayName]===void 0&&Ne(Je)}function Fe(Ne,We){var tt=Je.languages,Ye=Ne,Qe,lt,nt,yt;We&&(Ye={},Ye[Ne]=We);for(Qe in Ye)for(lt=Ye[Qe],lt=typeof lt=="string"?[lt]:lt,nt=lt.length,yt=-1;++yt<nt;)tt[lt[yt]]=tt[Qe]}function te(Ne,We){var tt=He.highlight,Ye;if(typeof Ne!="string")throw new Error("Expected `string` for `value`, got `"+Ne+"`");if(Je.util.type(We)==="Object")Ye=We,We=null;else{if(typeof We!="string")throw new Error("Expected `string` for `name`, got `"+We+"`");if(Be.call(Je.languages,We))Ye=Je.languages[We];else throw new Error("Unknown language: `"+We+"` is not registered")}return tt.call(this,Ne,Ye,We)}function ee(Ne){if(typeof Ne!="string")throw new Error("Expected `string` for `language`, got `"+Ne+"`");return Be.call(Je.languages,Ne)}function he(){var Ne=Je.languages,We=[],tt;for(tt in Ne)Be.call(Ne,tt)&&typeof Ne[tt]=="object"&&We.push(tt);return We}function ue(Ne,We,tt){var Ye;return typeof Ne=="string"?{type:"text",value:Ne}:Je.util.type(Ne)==="Array"?fe(Ne,We):(Ye={type:Ne.type,content:Je.Token.stringify(Ne.content,We,tt),tag:"span",classes:["token",Ne.type],attributes:{},language:We,parent:tt},Ne.alias&&(Ye.classes=Ye.classes.concat(Ne.alias)),Je.hooks.run("wrap",Ye),ke(Ye.tag+"."+Ye.classes.join("."),Ee(Ye.attributes),Ye.content))}function fe(Ne,We){for(var tt=[],Ye=Ne.length,Qe=-1,lt;++Qe<Ye;)lt=Ne[Qe],lt!==""&&lt!==null&&lt!==void 0&&tt.push(lt);for(Qe=-1,Ye=tt.length;++Qe<Ye;)lt=tt[Qe],tt[Qe]=Je.Token.stringify(lt,We,tt);return tt}function me(Ne){return Ne}function Ee(Ne){var We;for(We in Ne)Ne[We]=Ie(Ne[We]);return Ne}function Pe(){var Ne="Prism"in oe,We=Ne?oe.Prism:void 0;return tt;function tt(){Ne?oe.Prism=We:delete oe.Prism,Ne=void 0,We=void 0}}},11594:function(_e,be,ae){"use strict";var oe=ae(95489);_e.exports=oe,oe.register(ae(79007)),oe.register(ae(15465)),oe.register(ae(42746)),oe.register(ae(93281)),oe.register(ae(95143)),oe.register(ae(65924)),oe.register(ae(65043)),oe.register(ae(43556)),oe.register(ae(14901)),oe.register(ae(4248)),oe.register(ae(17758)),oe.register(ae(33335)),oe.register(ae(17427)),oe.register(ae(22956)),oe.register(ae(56007)),oe.register(ae(45652)),oe.register(ae(33819)),oe.register(ae(84230)),oe.register(ae(20803)),oe.register(ae(65235)),oe.register(ae(52406)),oe.register(ae(79571)),oe.register(ae(3058)),oe.register(ae(51422)),oe.register(ae(1618)),oe.register(ae(2505)),oe.register(ae(51274)),oe.register(ae(23796)),oe.register(ae(13979)),oe.register(ae(87994)),oe.register(ae(47035)),oe.register(ae(36142)),oe.register(ae(85290)),oe.register(ae(7407)),oe.register(ae(79440)),oe.register(ae(7110)),oe.register(ae(73435)),oe.register(ae(91372)),oe.register(ae(63663)),oe.register(ae(92987)),oe.register(ae(91657)),oe.register(ae(34367)),oe.register(ae(35348)),oe.register(ae(26841)),oe.register(ae(87071)),oe.register(ae(13652)),oe.register(ae(87648)),oe.register(ae(10617)),oe.register(ae(5348)),oe.register(ae(71053)),oe.register(ae(69820)),oe.register(ae(41929)),oe.register(ae(51837)),oe.register(ae(4182)),oe.register(ae(22117)),oe.register(ae(95627)),oe.register(ae(34265)),oe.register(ae(50618)),oe.register(ae(32126)),oe.register(ae(26737)),oe.register(ae(90134)),oe.register(ae(51348)),oe.register(ae(60841)),oe.register(ae(42857)),oe.register(ae(81269)),oe.register(ae(31134)),oe.register(ae(83125)),oe.register(ae(9438)),oe.register(ae(27771)),oe.register(ae(86549)),oe.register(ae(37079)),oe.register(ae(59250)),oe.register(ae(81226)),oe.register(ae(65245)),oe.register(ae(25040)),oe.register(ae(40284)),oe.register(ae(39187)),oe.register(ae(34302)),oe.register(ae(90515)),oe.register(ae(33534)),oe.register(ae(9885)),oe.register(ae(76364)),oe.register(ae(56452)),oe.register(ae(8477)),oe.register(ae(58230)),oe.register(ae(66192)),oe.register(ae(81084)),oe.register(ae(50318)),oe.register(ae(95769)),oe.register(ae(14155)),oe.register(ae(92823)),oe.register(ae(63092)),oe.register(ae(21550)),oe.register(ae(29710)),oe.register(ae(2050)),oe.register(ae(67967)),oe.register(ae(29138)),oe.register(ae(67915)),oe.register(ae(54853)),oe.register(ae(68330)),oe.register(ae(76823)),oe.register(ae(86712)),oe.register(ae(72252)),oe.register(ae(78634)),oe.register(ae(43583)),oe.register(ae(23328)),oe.register(ae(74494)),oe.register(ae(46745)),oe.register(ae(22152)),oe.register(ae(83698)),oe.register(ae(26619)),oe.register(ae(53990)),oe.register(ae(7093)),oe.register(ae(4005)),oe.register(ae(53510)),oe.register(ae(24799)),oe.register(ae(97443)),oe.register(ae(80746)),oe.register(ae(17015)),oe.register(ae(89246)),oe.register(ae(487)),oe.register(ae(79539)),oe.register(ae(15628)),oe.register(ae(14320)),oe.register(ae(73222)),oe.register(ae(92486)),oe.register(ae(24103)),oe.register(ae(40604)),oe.register(ae(23109)),oe.register(ae(32082)),oe.register(ae(77674)),oe.register(ae(37524)),oe.register(ae(6658)),oe.register(ae(24824)),oe.register(ae(22776)),oe.register(ae(89700)),oe.register(ae(99296)),oe.register(ae(39940)),oe.register(ae(34973)),oe.register(ae(98135)),oe.register(ae(36907)),oe.register(ae(3567)),oe.register(ae(23763)),oe.register(ae(33978)),oe.register(ae(40472)),oe.register(ae(44695)),oe.register(ae(53885)),oe.register(ae(51478)),oe.register(ae(16928)),oe.register(ae(13586)),oe.register(ae(37164)),oe.register(ae(25153)),oe.register(ae(33245)),oe.register(ae(32218)),oe.register(ae(65626)),oe.register(ae(60090)),oe.register(ae(40722)),oe.register(ae(37783)),oe.register(ae(41224)),oe.register(ae(71365)),oe.register(ae(42846)),oe.register(ae(32964)),oe.register(ae(78830)),oe.register(ae(88799)),oe.register(ae(66791)),oe.register(ae(41735)),oe.register(ae(13490)),oe.register(ae(7383)),oe.register(ae(66894)),oe.register(ae(45779)),oe.register(ae(27734)),oe.register(ae(91889)),oe.register(ae(55965)),oe.register(ae(37326)),oe.register(ae(92949)),oe.register(ae(5681)),oe.register(ae(70696)),oe.register(ae(35790)),oe.register(ae(25777)),oe.register(ae(65889)),oe.register(ae(53852)),oe.register(ae(97719)),oe.register(ae(63839)),oe.register(ae(67623)),oe.register(ae(32530)),oe.register(ae(8938)),oe.register(ae(55259)),oe.register(ae(67411)),oe.register(ae(15375)),oe.register(ae(12093)),oe.register(ae(83588)),oe.register(ae(94127)),oe.register(ae(21294)),oe.register(ae(38709)),oe.register(ae(15008)),oe.register(ae(96549)),oe.register(ae(5221)),oe.register(ae(27447)),oe.register(ae(73191)),oe.register(ae(75542)),oe.register(ae(50323)),oe.register(ae(44298)),oe.register(ae(9634)),oe.register(ae(75266)),oe.register(ae(48139)),oe.register(ae(97534)),oe.register(ae(90826)),oe.register(ae(63919)),oe.register(ae(68862)),oe.register(ae(39523)),oe.register(ae(31207)),oe.register(ae(75308)),oe.register(ae(45315)),oe.register(ae(13794)),oe.register(ae(41299)),oe.register(ae(98177)),oe.register(ae(48780)),oe.register(ae(79793)),oe.register(ae(52085)),oe.register(ae(65411)),oe.register(ae(84750)),oe.register(ae(88216)),oe.register(ae(66433)),oe.register(ae(34855)),oe.register(ae(12998)),oe.register(ae(10202)),oe.register(ae(41186)),oe.register(ae(68963)),oe.register(ae(5569)),oe.register(ae(69435)),oe.register(ae(42766)),oe.register(ae(46449)),oe.register(ae(89032)),oe.register(ae(40241)),oe.register(ae(24812)),oe.register(ae(16747)),oe.register(ae(73584)),oe.register(ae(79243)),oe.register(ae(31788)),oe.register(ae(60871)),oe.register(ae(21023)),oe.register(ae(14693)),oe.register(ae(8743)),oe.register(ae(1689)),oe.register(ae(69210)),oe.register(ae(58710)),oe.register(ae(60452)),oe.register(ae(92784)),oe.register(ae(36489)),oe.register(ae(78380)),oe.register(ae(10409)),oe.register(ae(6539)),oe.register(ae(82028)),oe.register(ae(62282)),oe.register(ae(55686)),oe.register(ae(70889)),oe.register(ae(37116)),oe.register(ae(66963)),oe.register(ae(21078)),oe.register(ae(96198)),oe.register(ae(17723)),oe.register(ae(67771)),oe.register(ae(30307)),oe.register(ae(8921)),oe.register(ae(13429)),oe.register(ae(65197)),oe.register(ae(88904)),oe.register(ae(35)),oe.register(ae(86095)),oe.register(ae(76998)),oe.register(ae(14409)),oe.register(ae(33460)),oe.register(ae(28108))},79007:function(_e){"use strict";_e.exports=be,be.displayName="abap",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="abnf",be.aliases=[];function be(ae){(function(oe){var Ce="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";oe.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-])"+Ce+"|<"+Ce+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(ae)}},42746:function(_e){"use strict";_e.exports=be,be.displayName="actionscript",be.aliases=[];function be(ae){ae.languages.actionscript=ae.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),ae.languages.actionscript["class-name"].alias="function",delete ae.languages.actionscript.parameter,delete ae.languages.actionscript["literal-property"],ae.languages.markup&&ae.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:ae.languages.markup}})}},93281:function(_e){"use strict";_e.exports=be,be.displayName="ada",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="agda",be.aliases=[];function be(ae){(function(oe){oe.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/}})(ae)}},65924:function(_e){"use strict";_e.exports=be,be.displayName="al",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="antlr4",be.aliases=["g4"];function be(ae){ae.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:/[;:()=]/},ae.languages.g4=ae.languages.antlr4}},43556:function(_e){"use strict";_e.exports=be,be.displayName="apacheconf",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(69435);_e.exports=Ce,Ce.displayName="apex",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var He=/\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 He.source});function ze(Ke){return RegExp(Ke.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var ot={keyword:He,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:ze(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:ot},{pattern:ze(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:ot},{pattern:ze(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:ot}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:He,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:/[()\[\]{};,.]/}}(ke)}},4248:function(_e){"use strict";_e.exports=be,be.displayName="apl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="applescript",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="aql",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(87071);_e.exports=Ce,Ce.displayName="arduino",Ce.aliases=["ino"];function Ce(ke){ke.register(oe),ke.languages.arduino=ke.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/}),ke.languages.ino=ke.languages.arduino}},22956:function(_e){"use strict";_e.exports=be,be.displayName="arff",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="asciidoc",be.aliases=["adoc"];function be(ae){(function(oe){var Ce={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+$).+/}},ke=oe.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:Ce,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:Ce.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:Ce,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(He){He=He.split(" ");for(var Te={},ze=0,ot=He.length;ze<ot;ze++)Te[He[ze]]=ke[He[ze]];return Te}Ce.inside.interpreted.inside.rest=Ie("macro inline replacement entity"),ke["passthrough-block"].inside.rest=Ie("macro"),ke["literal-block"].inside.rest=Ie("callout"),ke.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"),ke["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"),ke.title.inside.rest=Ie("macro inline replacement entity"),oe.hooks.add("wrap",function(He){He.type==="entity"&&(He.attributes.title=He.content.value.replace(/&amp;/,"&"))}),oe.languages.adoc=oe.languages.asciidoc})(ae)}},45652:function(_e){"use strict";_e.exports=be,be.displayName="asm6502",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="asmatmel",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(87648);_e.exports=Ce,Ce.displayName="aspnet",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.aspnet=ke.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:ke.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:ke.languages.csharp}}}),ke.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,ke.languages.insertBefore("inside","punctuation",{directive:ke.languages.aspnet.directive},ke.languages.aspnet.tag.inside["attr-value"]),ke.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),ke.languages.insertBefore("aspnet",ke.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:ke.languages.csharp||{}}})}},20803:function(_e){"use strict";_e.exports=be,be.displayName="autohotkey",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="autoit",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="avisynth",be.aliases=["avs"];function be(ae){(function(oe){function Ce(Ke,Be){return Ke.replace(/<<(\d+)>>/g,function(gt,Je){return Be[+Je]})}function ke(Ke,Be,gt){return RegExp(Ce(Ke,Be),gt||"")}var Ie=/bool|clip|float|int|string|val/.source,He=[/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("|"),ze=[/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("|"),ot=[He,Te,ze].join("|");oe.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:ke(/\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:ke(/\b(?:<<0>>)\b/.source,[ot],"i"),alias:"function"},"type-cast":{pattern:ke(/\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:/[{}\[\]();,.]/},oe.languages.avs=oe.languages.avisynth})(ae)}},79571:function(_e){"use strict";_e.exports=be,be.displayName="avroIdl",be.aliases=[];function be(ae){ae.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:/[()\[\]{}<>.:,;-]/},ae.languages.avdl=ae.languages["avro-idl"]}},3058:function(_e){"use strict";_e.exports=be,be.displayName="bash",be.aliases=["shell"];function be(ae){(function(oe){var Ce="\\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",ke={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Ie={bash:ke,environment:{pattern:RegExp("\\$"+Ce),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("(\\{)"+Ce),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})/};oe.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;|&]|[<>]\\()"+Ce),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:ke}},{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("\\$?"+Ce),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}},ke.inside=oe.languages.bash;for(var He=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=Ie.variable[1].inside,ze=0;ze<He.length;ze++)Te[He[ze]]=oe.languages.bash[He[ze]];oe.languages.shell=oe.languages.bash})(ae)}},51422:function(_e){"use strict";_e.exports=be,be.displayName="basic",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="batch",be.aliases=[];function be(ae){(function(oe){var Ce=/%%?[~:\w]+%?|!\S+!/,ke={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Ie=/"(?:[\\"]"|[^"])*"(?!")/,He=/(?:\b|-)\d+\b/;oe.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:ke,variable:Ce,number:He,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:ke,variable:Ce,number:He,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:ke,variable:[Ce,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:He,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Ie,parameter:ke,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Ce,number:He,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},2505:function(_e){"use strict";_e.exports=be,be.displayName="bbcode",be.aliases=["shortcode"];function be(ae){ae.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=\]]+/}}},ae.languages.shortcode=ae.languages.bbcode}},51274:function(_e){"use strict";_e.exports=be,be.displayName="bicep",be.aliases=[];function be(ae){ae.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:/[{}[\];(),.:]/},ae.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=ae.languages.bicep}},23796:function(_e){"use strict";_e.exports=be,be.displayName="birb",be.aliases=[];function be(ae){ae.languages.birb=ae.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/}),ae.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(_e,be,ae){"use strict";var oe=ae(79440);_e.exports=Ce,Ce.displayName="bison",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.bison=ke.languages.extend("c",{}),ke.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:ke.languages.c}},comment:ke.languages.c.comment,string:ke.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(_e){"use strict";_e.exports=be,be.displayName="bnf",be.aliases=["rbnf"];function be(ae){ae.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}/},ae.languages.rbnf=ae.languages.bnf}},47035:function(_e){"use strict";_e.exports=be,be.displayName="brainfuck",be.aliases=[];function be(ae){ae.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(_e){"use strict";_e.exports=be,be.displayName="brightscript",be.aliases=[];function be(ae){ae.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},ae.languages.brightscript["directive-statement"].inside.expression.inside=ae.languages.brightscript}},85290:function(_e){"use strict";_e.exports=be,be.displayName="bro",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="bsl",be.aliases=[];function be(ae){ae.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"}]},ae.languages.oscript=ae.languages.bsl}},79440:function(_e){"use strict";_e.exports=be,be.displayName="c",be.aliases=[];function be(ae){ae.languages.c=ae.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|[?:~]|[-+*/%&|^!=<>]=?/}),ae.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),ae.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},ae.languages.c.string],char:ae.languages.c.char,comment:ae.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:ae.languages.c}}}}),ae.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 ae.languages.c.boolean}},7110:function(_e){"use strict";_e.exports=be,be.displayName="cfscript",be.aliases=[];function be(ae){ae.languages.cfscript=ae.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"}}),ae.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 ae.languages.cfscript["class-name"],ae.languages.cfc=ae.languages.cfscript}},73435:function(_e,be,ae){"use strict";var oe=ae(87071);_e.exports=Ce,Ce.displayName="chaiscript",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.chaiscript=ke.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:[ke.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),ke.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),ke.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:ke.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(_e){"use strict";_e.exports=be,be.displayName="cil",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="clike",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="clojure",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="cmake",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="cobol",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="coffeescript",be.aliases=["coffee"];function be(ae){(function(oe){var Ce=/#(?!\{).+/,ke={pattern:/#\{[^}]+\}/,alias:"variable"};oe.languages.coffeescript=oe.languages.extend("javascript",{comment:Ce,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:ke}}],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"}}),oe.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Ce,interpolation:ke}}}),oe.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:oe.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:ke}}]}),oe.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete oe.languages.coffeescript["template-string"],oe.languages.coffee=oe.languages.coffeescript})(ae)}},35348:function(_e){"use strict";_e.exports=be,be.displayName="concurnas",be.aliases=["conc"];function be(ae){ae.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"}},ae.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ae.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:ae.languages.concurnas},string:/[\s\S]+/}}}),ae.languages.conc=ae.languages.concurnas}},26841:function(_e){"use strict";_e.exports=be,be.displayName="coq",be.aliases=[];function be(ae){(function(oe){for(var Ce=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,ke=0;ke<2;ke++)Ce=Ce.replace(/<self>/g,function(){return Ce});Ce=Ce.replace(/<self>/g,"[]"),oe.languages.coq={comment:RegExp(Ce),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Ce})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Ce),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(ae)}},87071:function(_e,be,ae){"use strict";var oe=ae(79440);_e.exports=Ce,Ce.displayName="cpp",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var He=/\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 He.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 He.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:He,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"])}(ke)}},13652:function(_e,be,ae){"use strict";var oe=ae(75308);_e.exports=Ce,Ce.displayName="crystal",Ce.aliases=[];function Ce(ke){ke.register(oe),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}})}(ke)}},87648:function(_e){"use strict";_e.exports=be,be.displayName="csharp",be.aliases=["dotnet","cs"];function be(ae){(function(oe){function Ce(cn,pt){return cn.replace(/<<(\d+)>>/g,function(ut,at){return"(?:"+pt[+at]+")"})}function ke(cn,pt,ut){return RegExp(Ce(cn,pt),ut||"")}function Ie(cn,pt){for(var ut=0;ut<pt;ut++)cn=cn.replace(/<<self>>/g,function(){return"(?:"+cn+")"});return cn.replace(/<<self>>/g,"[^\\s\\S]")}var He={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(cn){return"\\b(?:"+cn.trim().replace(/ /g,"|")+")\\b"}var ze=Te(He.typeDeclaration),ot=RegExp(Te(He.type+" "+He.typeDeclaration+" "+He.contextual+" "+He.other)),Ke=Te(He.typeDeclaration+" "+He.contextual+" "+He.other),Be=Te(He.type+" "+He.typeDeclaration+" "+He.other),gt=Ie(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),Je=Ie(/\((?:[^()]|<<self>>)*\)/.source,2),wt=/@?\b[A-Za-z_]\w*\b/.source,Fe=Ce(/<<0>>(?:\s*<<1>>)?/.source,[wt,gt]),te=Ce(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Ke,Fe]),ee=/\[\s*(?:,\s*)*\]/.source,he=Ce(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ee]),ue=Ce(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[gt,Je,ee]),fe=Ce(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ue]),me=Ce(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fe,te,ee]),Ee={keyword:ot,punctuation:/[<>()?,.:[\]]/},Pe=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Ne=/"(?:\\.|[^\\"\r\n])*"/.source,We=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;oe.languages.csharp=oe.languages.extend("clike",{string:[{pattern:ke(/(^|[^$\\])<<0>>/.source,[We]),lookbehind:!0,greedy:!0},{pattern:ke(/(^|[^@$\\])<<0>>/.source,[Ne]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:ke(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:Ee},{pattern:ke(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[wt,me]),lookbehind:!0,inside:Ee},{pattern:ke(/(\busing\s+)<<0>>(?=\s*=)/.source,[wt]),lookbehind:!0},{pattern:ke(/(\b<<0>>\s+)<<1>>/.source,[ze,Fe]),lookbehind:!0,inside:Ee},{pattern:ke(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:Ee},{pattern:ke(/(\bwhere\s+)<<0>>/.source,[wt]),lookbehind:!0},{pattern:ke(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:Ee},{pattern:ke(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[me,Be,wt]),inside:Ee}],keyword:ot,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:/\?\.?|::|[{}[\];(),.:]/}),oe.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),oe.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:ke(/([(,]\s*)<<0>>(?=\s*:)/.source,[wt]),lookbehind:!0,alias:"punctuation"}}),oe.languages.insertBefore("csharp","class-name",{namespace:{pattern:ke(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[wt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:ke(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[Je]),lookbehind:!0,alias:"class-name",inside:Ee},"return-type":{pattern:ke(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[me,te]),inside:Ee,alias:"class-name"},"constructor-invocation":{pattern:ke(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[me]),lookbehind:!0,inside:Ee,alias:"class-name"},"generic-method":{pattern:ke(/<<0>>\s*<<1>>(?=\s*\()/.source,[wt,gt]),inside:{function:ke(/^<<0>>/.source,[wt]),generic:{pattern:RegExp(gt),alias:"class-name",inside:Ee}}},"type-list":{pattern:ke(/\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,[ze,Fe,wt,me,ot.source,Je,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:ke(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Fe,Je]),lookbehind:!0,greedy:!0,inside:oe.languages.csharp},keyword:ot,"class-name":{pattern:RegExp(me),greedy:!0,inside:Ee},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 tt=Ne+"|"+Pe,Ye=Ce(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[tt]),Qe=Ie(Ce(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Ye]),2),lt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,nt=Ce(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,Qe]);oe.languages.insertBefore("csharp","class-name",{attribute:{pattern:ke(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[lt,nt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:ke(/^<<0>>(?=\s*:)/.source,[lt]),alias:"keyword"},"attribute-arguments":{pattern:ke(/\(<<0>>*\)/.source,[Qe]),inside:oe.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var yt=/:[^}\r\n]+/.source,vt=Ie(Ce(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Ye]),2),St=Ce(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[vt,yt]),Lt=Ie(Ce(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[tt]),2),jt=Ce(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Lt,yt]);function Bt(cn,pt){return{interpolation:{pattern:ke(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[cn]),lookbehind:!0,inside:{"format-string":{pattern:ke(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[pt,yt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:oe.languages.csharp}}},string:/[\s\S]+/}}oe.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:ke(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[St]),lookbehind:!0,greedy:!0,inside:Bt(St,vt)},{pattern:ke(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[jt]),lookbehind:!0,greedy:!0,inside:Bt(jt,Lt)}],char:{pattern:RegExp(Pe),greedy:!0}}),oe.languages.dotnet=oe.languages.cs=oe.languages.csharp})(ae)}},10617:function(_e,be,ae){"use strict";var oe=ae(87648);_e.exports=Ce,Ce.displayName="cshtml",Ce.aliases=["razor"];function Ce(ke){ke.register(oe),function(Ie){var He=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function ze(he,ue){for(var fe=0;fe<ue;fe++)he=he.replace(/<self>/g,function(){return"(?:"+he+")"});return he.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Te+")").replace(/<comment>/g,"(?:"+He+")")}var ot=ze(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Ke=ze(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Be=ze(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),gt=ze(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),Je=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,wt=/(?!\d)[^\s>\/=$<%]+/.source+Je+/\s*\/?>/.source,Fe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+Je+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+wt+"|"+ze(/<\1/.source+Je+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+wt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+wt+")";Ie.languages.cshtml=Ie.languages.extend("markup",{});var te=Ie.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Fe),greedy:!0,inside:Ie.languages.cshtml}},{csharp:Ie.languages.extend("csharp",{})}),ee={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};Ie.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Be,/(?:code|functions)\s*/.source+Be,/(?:for|foreach|lock|switch|using|while)\s*/.source+ot+/\s*/.source+Be,/do\s*/.source+Be+/\s*while\s*/.source+ot+/(?:\s*;)?/.source,/try\s*/.source+Be+/\s*catch\s*/.source+ot+/\s*/.source+Be+/\s*finally\s*/.source+Be,/if\s*/.source+ot+/\s*/.source+Be+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+ot+")?"+/\s*/.source+Be+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:ee}},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:ee}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+ot+")(?:"+/[?!]?\.\w+\b/.source+"|"+ot+"|"+Ke+"|"+gt+ot+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ee}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Ie.languages.razor=Ie.languages.cshtml}(ke)}},5348:function(_e){"use strict";_e.exports=be,be.displayName="csp",be.aliases=[];function be(ae){(function(oe){function Ce(ke){return RegExp(/([ \t])/.source+"(?:"+ke+")"+/(?=[\s;]|$)/.source,"i")}oe.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:Ce(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Ce(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Ce(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Ce(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Ce(/[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:Ce(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Ce(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ae)}},71053:function(_e){"use strict";_e.exports=be,be.displayName="cssExtras",be.aliases=[];function be(ae){(function(oe){var Ce=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,ke;oe.languages.css.selector={pattern:oe.languages.css.selector.pattern,lookbehind:!0,inside:ke={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Ce.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":[Ce,{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:/[(),]/}},oe.languages.css.atrule.inside["selector-function-argument"].inside=ke,oe.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},He={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};oe.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:He,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ie,number:He})})(ae)}},54212:function(_e){"use strict";_e.exports=be,be.displayName="css",be.aliases=[];function be(ae){(function(oe){var Ce=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;oe.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\\((?:"+Ce.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ce.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ce.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ce,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:/[(){};:,]/},oe.languages.css.atrule.inside.rest=oe.languages.css;var ke=oe.languages.markup;ke&&(ke.tag.addInlined("style","css"),ke.tag.addAttribute("style","css"))})(ae)}},69820:function(_e){"use strict";_e.exports=be,be.displayName="csv",be.aliases=[];function be(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(_e){"use strict";_e.exports=be,be.displayName="cypher",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="d",be.aliases=[];function be(ae){ae.languages.d=ae.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),ae.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),ae.languages.insertBefore("d","keyword",{property:/\B@\w*/}),ae.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(_e){"use strict";_e.exports=be,be.displayName="dart",be.aliases=[];function be(ae){(function(oe){var Ce=[/\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/],ke=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(ke+/[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:/\./}}}};oe.languages.dart=oe.languages.extend("clike",{"class-name":[Ie,{pattern:RegExp(ke+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Ce,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),oe.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:oe.languages.dart}}},string:/[\s\S]+/}},string:void 0}),oe.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),oe.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Ie,keyword:Ce,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},22117:function(_e){"use strict";_e.exports=be,be.displayName="dataweave",be.aliases=[];function be(ae){(function(oe){oe.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/}})(ae)}},95627:function(_e){"use strict";_e.exports=be,be.displayName="dax",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="dhall",be.aliases=[];function be(ae){ae.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/},ae.languages.dhall.string.inside.interpolation.inside.expression.inside=ae.languages.dhall}},50618:function(_e){"use strict";_e.exports=be,be.displayName="diff",be.aliases=[];function be(ae){(function(oe){oe.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Ce={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Ce).forEach(function(ke){var Ie=Ce[ke],He=[];/^\w+$/.test(ke)||He.push(/\w+/.exec(ke)[0]),ke==="diff"&&He.push("bold"),oe.languages.diff[ke]={pattern:RegExp("^(?:["+Ie+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:He,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(ke)[0]}}}}),Object.defineProperty(oe.languages.diff,"PREFIXES",{value:Ce})})(ae)}},32126:function(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="django",Ce.aliases=["jinja2"];function Ce(ke){ke.register(oe),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 He=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=Ie.languages["markup-templating"];Ie.hooks.add("before-tokenize",function(ze){Te.buildPlaceholders(ze,"django",He)}),Ie.hooks.add("after-tokenize",function(ze){Te.tokenizePlaceholders(ze,"django")}),Ie.languages.jinja2=Ie.languages.django,Ie.hooks.add("before-tokenize",function(ze){Te.buildPlaceholders(ze,"jinja2",He)}),Ie.hooks.add("after-tokenize",function(ze){Te.tokenizePlaceholders(ze,"jinja2")})}(ke)}},26737:function(_e){"use strict";_e.exports=be,be.displayName="dnsZoneFile",be.aliases=[];function be(ae){ae.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:/[()]/},ae.languages["dns-zone"]=ae.languages["dns-zone-file"]}},90134:function(_e){"use strict";_e.exports=be,be.displayName="docker",be.aliases=["dockerfile"];function be(ae){(function(oe){var Ce=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,ke=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Ce}),Ie=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,He=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Ie}),Te={pattern:RegExp(Ie),greedy:!0},ze={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function ot(Ke,Be){return Ke=Ke.replace(/<OPT>/g,function(){return He}).replace(/<SP>/g,function(){return ke}),RegExp(Ke,Be)}oe.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:ot(/(^(?: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:ot(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:ot(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:ot(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:ze,string:Te,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:ze},oe.languages.dockerfile=oe.languages.docker})(ae)}},51348:function(_e){"use strict";_e.exports=be,be.displayName="dot",be.aliases=["gv"];function be(ae){(function(oe){var Ce="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",ke={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:oe.languages.markup}};function Ie(He,Te){return RegExp(He.replace(/<ID>/g,function(){return Ce}),Te)}oe.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:ke},"attr-value":{pattern:Ie(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:ke},"attr-name":{pattern:Ie(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:ke},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:ke},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},oe.languages.gv=oe.languages.dot})(ae)}},60841:function(_e){"use strict";_e.exports=be,be.displayName="ebnf",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="editorconfig",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="eiffel",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="ejs",Ce.aliases=["eta"];function Ce(ke){ke.register(oe),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(He){var Te=/<%(?!%)[\s\S]+?%>/g;Ie.languages["markup-templating"].buildPlaceholders(He,"ejs",Te)}),Ie.hooks.add("after-tokenize",function(He){Ie.languages["markup-templating"].tokenizePlaceholders(He,"ejs")}),Ie.languages.eta=Ie.languages.ejs}(ke)}},83125:function(_e){"use strict";_e.exports=be,be.displayName="elixir",be.aliases=[];function be(ae){ae.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:/<<|>>|[.,%\[\]{}()]/},ae.languages.elixir.string.forEach(function(oe){oe.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:ae.languages.elixir}}}})}},9438:function(_e){"use strict";_e.exports=be,be.displayName="elm",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(75308),Ce=ae(51478);_e.exports=ke,ke.displayName="erb",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){He.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:He.languages.ruby}},He.hooks.add("before-tokenize",function(Te){var ze=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;He.languages["markup-templating"].buildPlaceholders(Te,"erb",ze)}),He.hooks.add("after-tokenize",function(Te){He.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(Ie)}},86549:function(_e){"use strict";_e.exports=be,be.displayName="erlang",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(33978),Ce=ae(51478);_e.exports=ke,ke.displayName="etlua",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){He.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:He.languages.lua}},He.hooks.add("before-tokenize",function(Te){var ze=/<%[\s\S]+?%>/g;He.languages["markup-templating"].buildPlaceholders(Te,"etlua",ze)}),He.hooks.add("after-tokenize",function(Te){He.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(Ie)}},59250:function(_e){"use strict";_e.exports=be,be.displayName="excelFormula",be.aliases=[];function be(ae){ae.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:/[[\]();{}|]/},ae.languages.xlsx=ae.languages.xls=ae.languages["excel-formula"]}},81226:function(_e){"use strict";_e.exports=be,be.displayName="factor",be.aliases=[];function be(ae){(function(oe){var Ce={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},ke={number:/\\[^\s']|%\w/},Ie={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Ce},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ce},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ce}],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:ke.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:ke},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:ke}],"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:ke}},He=function(Ke){return(Ke+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Ke){return new RegExp("(^|\\s)(?:"+Ke.map(He).join("|")+")(?=\\s|$)")},ze={"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(ze).forEach(function(Ke){Ie[Ke].pattern=Te(ze[Ke])});var ot=["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(ot),oe.languages.factor=Ie})(ae)}},65245:function(_e){"use strict";_e.exports=be,be.displayName="$false",be.aliases=[];function be(ae){(function(oe){oe.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"}}})(ae)}},25040:function(_e){"use strict";_e.exports=be,be.displayName="firestoreSecurityRules",be.aliases=[];function be(ae){ae.languages["firestore-security-rules"]=ae.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete ae.languages["firestore-security-rules"]["class-name"],ae.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(_e){"use strict";_e.exports=be,be.displayName="flow",be.aliases=[];function be(ae){(function(oe){oe.languages.flow=oe.languages.extend("javascript",{}),oe.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),oe.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 oe.languages.flow.parameter,oe.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(oe.languages.flow.keyword)||(oe.languages.flow.keyword=[oe.languages.flow.keyword]),oe.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})})(ae)}},39187:function(_e){"use strict";_e.exports=be,be.displayName="fortran",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="fsharp",be.aliases=[];function be(ae){ae.languages.fsharp=ae.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),ae.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"}}}}),ae.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),ae.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:ae.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(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="ftl",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){for(var He=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)He=He.replace(/<expr>/g,function(){return He});He=He.replace(/<expr>/g,/[^\s\S]/.source);var ze={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return He})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return He})),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:/[,;.:()[\]{}]/};ze.string[1].inside.interpolation.inside.rest=ze,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:ze}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:ze}}}},Ie.hooks.add("before-tokenize",function(ot){var Ke=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return He}),"gi");Ie.languages["markup-templating"].buildPlaceholders(ot,"ftl",Ke)}),Ie.hooks.add("after-tokenize",function(ot){Ie.languages["markup-templating"].tokenizePlaceholders(ot,"ftl")})}(ke)}},33534:function(_e){"use strict";_e.exports=be,be.displayName="gap",be.aliases=[];function be(ae){ae.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:/[()[\]{},;.:]/},ae.languages.gap.shell.inside.gap.inside=ae.languages.gap}},9885:function(_e){"use strict";_e.exports=be,be.displayName="gcode",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="gdscript",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="gedcom",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="gherkin",be.aliases=[];function be(ae){(function(oe){var Ce=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;oe.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("("+Ce+")(?:"+Ce+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Ce),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"}}})(ae)}},58230:function(_e){"use strict";_e.exports=be,be.displayName="git",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(79440);_e.exports=Ce,Ce.displayName="glsl",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.glsl=ke.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(_e){"use strict";_e.exports=be,be.displayName="gml",be.aliases=[];function be(ae){ae.languages.gamemakerlanguage=ae.languages.gml=ae.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(_e){"use strict";_e.exports=be,be.displayName="gn",be.aliases=["gni"];function be(ae){ae.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:/[(){}[\],.]/},ae.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=ae.languages.gn,ae.languages.gni=ae.languages.gn}},95769:function(_e){"use strict";_e.exports=be,be.displayName="goModule",be.aliases=[];function be(ae){ae.languages["go-mod"]=ae.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(_e){"use strict";_e.exports=be,be.displayName="go",be.aliases=[];function be(ae){ae.languages.go=ae.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/}),ae.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete ae.languages.go["class-name"]}},92823:function(_e){"use strict";_e.exports=be,be.displayName="graphql",be.aliases=[];function be(ae){ae.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:ae.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+/},ae.hooks.add("after-tokenize",function(Ce){if(Ce.language!=="graphql")return;var ke=Ce.tokens.filter(function(ee){return typeof ee!="string"&&ee.type!=="comment"&&ee.type!=="scalar"}),Ie=0;function He(ee){return ke[Ie+ee]}function Te(ee,he){he=he||0;for(var ue=0;ue<ee.length;ue++){var fe=He(ue+he);if(!fe||fe.type!==ee[ue])return!1}return!0}function ze(ee,he){for(var ue=1,fe=Ie;fe<ke.length;fe++){var me=ke[fe],Ee=me.content;if(me.type==="punctuation"&&typeof Ee=="string"){if(ee.test(Ee))ue++;else if(he.test(Ee)&&(ue--,ue===0))return fe}}return-1}function ot(ee,he){var ue=ee.alias;ue?Array.isArray(ue)||(ee.alias=ue=[ue]):ee.alias=ue=[],ue.push(he)}for(;Ie<ke.length;){var Ke=ke[Ie++];if(Ke.type==="keyword"&&Ke.content==="mutation"){var Be=[];if(Te(["definition-mutation","punctuation"])&&He(1).content==="("){Ie+=2;var gt=ze(/^\($/,/^\)$/);if(gt===-1)continue;for(;Ie<gt;Ie++){var Je=He(0);Je.type==="variable"&&(ot(Je,"variable-input"),Be.push(Je.content))}Ie=gt+1}if(Te(["punctuation","property-query"])&&He(0).content==="{"&&(Ie++,ot(He(0),"property-mutation"),Be.length>0)){var wt=ze(/^\{$/,/^\}$/);if(wt===-1)continue;for(var Fe=Ie;Fe<wt;Fe++){var te=ke[Fe];te.type==="variable"&&Be.indexOf(te.content)>=0&&ot(te,"variable-input")}}}}})}},63092:function(_e){"use strict";_e.exports=be,be.displayName="groovy",be.aliases=[];function be(ae){ae.languages.groovy=ae.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:/\.+|[{}[\];(),:$]/}),ae.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),ae.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),ae.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),ae.hooks.add("wrap",function(oe){if(oe.language==="groovy"&&oe.type==="string"){var Ce=oe.content.value[0];if(Ce!="'"){var ke=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Ce==="$"&&(ke=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),oe.content.value=oe.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),oe.content=ae.highlight(oe.content.value,{expression:{pattern:ke,lookbehind:!0,inside:ae.languages.groovy}}),oe.classes.push(Ce==="/"?"regex":"gstring")}}})}},21550:function(_e,be,ae){"use strict";var oe=ae(75308);_e.exports=Ce,Ce.displayName="haml",Ce.aliases=[];function Ce(ke){ke.register(oe),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 He="((?:^|\\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"],ze={},ot=0,Ke=Te.length;ot<Ke;ot++){var Be=Te[ot];Be=typeof Be=="string"?{filter:Be,language:Be}:Be,Ie.languages[Be.language]&&(ze["filter-"+Be.filter]={pattern:RegExp(He.replace("{{filter_name}}",function(){return Be.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Be.language,"language-"+Be.language],inside:Ie.languages[Be.language]}}})}Ie.languages.insertBefore("haml","filter",ze)}(ke)}},29710:function(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="handlebars",Ce.aliases=["hbs"];function Ce(ke){ke.register(oe),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(He){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Ie.languages["markup-templating"].buildPlaceholders(He,"handlebars",Te)}),Ie.hooks.add("after-tokenize",function(He){Ie.languages["markup-templating"].tokenizePlaceholders(He,"handlebars")}),Ie.languages.hbs=Ie.languages.handlebars}(ke)}},2050:function(_e){"use strict";_e.exports=be,be.displayName="haskell",be.aliases=["hs"];function be(ae){ae.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:/[{}[\];(),.:]/},ae.languages.hs=ae.languages.haskell}},67967:function(_e){"use strict";_e.exports=be,be.displayName="haxe",be.aliases=[];function be(ae){ae.languages.haxe=ae.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}|[-+*/%!=&|^])=?|[?:~]/}),ae.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:ae.languages.haxe}}},string:/[\s\S]+/}}}),ae.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:ae.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),ae.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(_e){"use strict";_e.exports=be,be.displayName="hcl",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(79440);_e.exports=Ce,Ce.displayName="hlsl",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.hlsl=ke.languages.extend("c",{"class-name":[ke.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(_e){"use strict";_e.exports=be,be.displayName="hoon",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="hpkp",be.aliases=[];function be(ae){ae.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(_e){"use strict";_e.exports=be,be.displayName="hsts",be.aliases=[];function be(ae){ae.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(_e){"use strict";_e.exports=be,be.displayName="http",be.aliases=[];function be(ae){(function(oe){function Ce(Be){return RegExp("(^(?:"+Be+"):[ ]*(?![ ]))[^]+","i")}oe.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:oe.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:Ce(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:oe.languages.csp},{pattern:Ce(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:oe.languages.hpkp},{pattern:Ce(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:oe.languages.hsts},{pattern:Ce(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var ke=oe.languages,Ie={"application/javascript":ke.javascript,"application/json":ke.json||ke.javascript,"application/xml":ke.xml,"text/xml":ke.xml,"text/html":ke.html,"text/css":ke.css,"text/plain":ke.plain},He={"application/json":!0,"application/xml":!0};function Te(Be){var gt=Be.replace(/^[a-z]+\//,""),Je="\\w+/(?:[\\w.-]+\\+)+"+gt+"(?![+\\w.-])";return"(?:"+Be+"|"+Je+")"}var ze;for(var ot in Ie)if(Ie[ot]){ze=ze||{};var Ke=He[ot]?Te(ot):ot;ze[ot.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Ke+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Ie[ot]}}ze&&oe.languages.insertBefore("http","header",ze)})(ae)}},72252:function(_e){"use strict";_e.exports=be,be.displayName="ichigojam",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="icon",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="icuMessageFormat",be.aliases=[];function be(ae){(function(oe){function Ce(ot,Ke){return Ke<=0?/[]/.source:ot.replace(/<SELF>/g,function(){return Ce(ot,Ke-1)})}var ke=/'[{}:=,](?:[^']|'')*'(?!')/,Ie={pattern:/''/,greedy:!0,alias:"operator"},He={pattern:ke,greedy:!0,inside:{escape:Ie}},Te=Ce(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return ke.source}),8),ze={pattern:RegExp(Te),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};oe.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":ze,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":ze,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+Ce(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Ie,string:He},ze.inside.message.inside=oe.languages["icu-message-format"],oe.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=oe.languages["icu-message-format"]})(ae)}},23328:function(_e,be,ae){"use strict";var oe=ae(2050);_e.exports=Ce,Ce.displayName="idris",Ce.aliases=["idr"];function Ce(ke){ke.register(oe),ke.languages.idris=ke.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}),ke.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),ke.languages.idr=ke.languages.idris}},74494:function(_e){"use strict";_e.exports=be,be.displayName="iecst",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="ignore",be.aliases=["gitignore","hgignore","npmignore"];function be(ae){(function(oe){oe.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},oe.languages.gitignore=oe.languages.ignore,oe.languages.hgignore=oe.languages.ignore,oe.languages.npmignore=oe.languages.ignore})(ae)}},22152:function(_e){"use strict";_e.exports=be,be.displayName="inform7",be.aliases=[];function be(ae){ae.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:/[.,:;(){}]/},ae.languages.inform7.string.inside.substitution.inside.rest=ae.languages.inform7,ae.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(_e){"use strict";_e.exports=be,be.displayName="ini",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="io",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="j",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="java",be.aliases=[];function be(ae){(function(oe){var Ce=/\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/,ke=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(ke+/[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:/\./}};oe.languages.java=oe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Ie,{pattern:RegExp(ke+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Ce,function:[oe.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}}),oe.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),oe.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:Ce,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 Ce.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ae)}},4005:function(_e,be,ae){"use strict";var oe=ae(7093),Ce=ae(53510);_e.exports=ke,ke.displayName="javadoc",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){var Te=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,ze=/#\s*\w+(?:\s*\([^()]*\))?/.source,ot=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return ze});He.languages.javadoc=He.languages.extend("javadoclike",{}),He.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+ot+")"),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:He.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:He.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:He.languages.markup.tag,entity:He.languages.markup.entity,code:{pattern:/.+/,inside:He.languages.java,alias:"language-java"}}}}}],tag:He.languages.markup.tag,entity:He.languages.markup.entity}),He.languages.javadoclike.addSupport("java",He.languages.javadoc)}(Ie)}},53510:function(_e){"use strict";_e.exports=be,be.displayName="javadoclike",be.aliases=[];function be(ae){(function(oe){var Ce=oe.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 ke(He,Te){var ze="doc-comment",ot=oe.languages[He];if(ot){var Ke=ot[ze];if(!Ke){var Be={};Be[ze]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},ot=oe.languages.insertBefore(He,"comment",Be),Ke=ot[ze]}if(Ke instanceof RegExp&&(Ke=ot[ze]={pattern:Ke}),Array.isArray(Ke))for(var gt=0,Je=Ke.length;gt<Je;gt++)Ke[gt]instanceof RegExp&&(Ke[gt]={pattern:Ke[gt]}),Te(Ke[gt]);else Te(Ke)}}function Ie(He,Te){typeof He=="string"&&(He=[He]),He.forEach(function(ze){ke(ze,function(ot){ot.inside||(ot.inside={}),ot.inside.rest=Te})})}Object.defineProperty(Ce,"addSupport",{value:Ie}),Ce.addSupport(["java","javascript","php"],Ce)})(ae)}},88786:function(_e){"use strict";_e.exports=be,be.displayName="javascript",be.aliases=["js"];function be(ae){ae.languages.javascript=ae.languages.extend("clike",{"class-name":[ae.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}|\?\?=?|\?\.?|[~:]/}),ae.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ae.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:ae.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:ae.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ae.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ae.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:ae.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ae.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:ae.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"}}),ae.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ae.languages.markup&&(ae.languages.markup.tag.addInlined("script","javascript"),ae.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")),ae.languages.js=ae.languages.javascript}},24799:function(_e){"use strict";_e.exports=be,be.displayName="javastacktrace",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="jexl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="jolie",be.aliases=[];function be(ae){ae.languages.jolie=ae.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/}),ae.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(_e){"use strict";_e.exports=be,be.displayName="jq",be.aliases=[];function be(ae){(function(oe){var Ce=/\\\((?:[^()]|\([^()]*\))*\)/.source,ke=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Ce})),Ie={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Ce),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},He=oe.languages.jq={comment:/#.*/,property:{pattern:RegExp(ke.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Ie},string:{pattern:ke,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=He})(ae)}},89246:function(_e){"use strict";_e.exports=be,be.displayName="jsExtras",be.aliases=[];function be(ae){(function(oe){oe.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+oe.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),oe.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+oe.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),oe.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 Ce(ot,Ke){return RegExp(ot.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Ke)}oe.languages.insertBefore("javascript","keyword",{imports:{pattern:Ce(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:oe.languages.javascript},exports:{pattern:Ce(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:oe.languages.javascript}}),oe.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"}),oe.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),oe.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Ce(/(\.\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 ke=["function","function-variable","method","method-variable","property-access"],Ie=0;Ie<ke.length;Ie++){var He=ke[Ie],Te=oe.languages.javascript[He];oe.util.type(Te)==="RegExp"&&(Te=oe.languages.javascript[He]={pattern:Te});var ze=Te.inside||{};Te.inside=ze,ze["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},487:function(_e){"use strict";_e.exports=be,be.displayName="jsTemplates",be.aliases=[];function be(ae){(function(oe){var Ce=oe.languages.javascript["template-string"],ke=Ce.pattern.source,Ie=Ce.inside.interpolation,He=Ie.inside["interpolation-punctuation"],Te=Ie.pattern.source;function ze(Fe,te){if(oe.languages[Fe])return{pattern:RegExp("((?:"+te+")\\s*)"+ke),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Fe}}}}oe.languages.javascript["template-string"]=[ze("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),ze("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),ze("svg",/\bsvg/.source),ze("markdown",/\b(?:markdown|md)/.source),ze("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),ze("sql",/\bsql/.source),Ce].filter(Boolean);function ot(Fe,te){return"___"+te.toUpperCase()+"_"+Fe+"___"}function Ke(Fe,te,ee){var he={code:Fe,grammar:te,language:ee};return oe.hooks.run("before-tokenize",he),he.tokens=oe.tokenize(he.code,he.grammar),oe.hooks.run("after-tokenize",he),he.tokens}function Be(Fe){var te={};te["interpolation-punctuation"]=He;var ee=oe.tokenize(Fe,te);if(ee.length===3){var he=[1,1];he.push.apply(he,Ke(ee[1],oe.languages.javascript,"javascript")),ee.splice.apply(ee,he)}return new oe.Token("interpolation",ee,Ie.alias,Fe)}function gt(Fe,te,ee){var he=oe.tokenize(Fe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),ue=0,fe={},me=he.map(function(We){if(typeof We=="string")return We;for(var tt=We.content,Ye;Fe.indexOf(Ye=ot(ue++,ee))!==-1;);return fe[Ye]=tt,Ye}).join(""),Ee=Ke(me,te,ee),Pe=Object.keys(fe);ue=0;function Ne(We){for(var tt=0;tt<We.length;tt++){if(ue>=Pe.length)return;var Ye=We[tt];if(typeof Ye=="string"||typeof Ye.content=="string"){var Qe=Pe[ue],lt=typeof Ye=="string"?Ye:Ye.content,nt=lt.indexOf(Qe);if(nt!==-1){++ue;var yt=lt.substring(0,nt),vt=Be(fe[Qe]),St=lt.substring(nt+Qe.length),Lt=[];if(yt&&Lt.push(yt),Lt.push(vt),St){var jt=[St];Ne(jt),Lt.push.apply(Lt,jt)}typeof Ye=="string"?(We.splice.apply(We,[tt,1].concat(Lt)),tt+=Lt.length-1):Ye.content=Lt}}else{var Bt=Ye.content;Array.isArray(Bt)?Ne(Bt):Ne([Bt])}}}return Ne(Ee),new oe.Token(ee,Ee,"language-"+ee,Fe)}var Je={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};oe.hooks.add("after-tokenize",function(Fe){if(!(Fe.language in Je))return;function te(ee){for(var he=0,ue=ee.length;he<ue;he++){var fe=ee[he];if(typeof fe!="string"){var me=fe.content;if(!Array.isArray(me)){typeof me!="string"&&te([me]);continue}if(fe.type==="template-string"){var Ee=me[1];if(me.length===3&&typeof Ee!="string"&&Ee.type==="embedded-code"){var Pe=wt(Ee),Ne=Ee.alias,We=Array.isArray(Ne)?Ne[0]:Ne,tt=oe.languages[We];if(!tt)continue;me[1]=gt(Pe,tt,We)}}else te(me)}}}te(Fe.tokens)});function wt(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(wt).join(""):wt(Fe.content)}})(ae)}},79539:function(_e,be,ae){"use strict";var oe=ae(53510),Ce=ae(92784);_e.exports=ke,ke.displayName="jsdoc",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){var Te=He.languages.javascript,ze=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,ot="(@(?:arg|argument|param|property)\\s+(?:"+ze+"\\s+)?)";He.languages.jsdoc=He.languages.extend("javadoclike",{parameter:{pattern:RegExp(ot+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),He.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(ot+/\[(?:(?!\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 ze})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+ze),lookbehind:!0,inside:{string:Te.string,number:Te.number,boolean:Te.boolean,keyword:He.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"}}}}),He.languages.javadoclike.addSupport("javascript",He.languages.jsdoc)}(Ie)}},15628:function(_e){"use strict";_e.exports=be,be.displayName="json",be.aliases=["webmanifest"];function be(ae){ae.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"}},ae.languages.webmanifest=ae.languages.json}},14320:function(_e,be,ae){"use strict";var oe=ae(15628);_e.exports=Ce,Ce.displayName="json5",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var He=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Ie.languages.json5=Ie.languages.extend("json",{property:[{pattern:RegExp(He.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:He,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(ke)}},73222:function(_e,be,ae){"use strict";var oe=ae(15628);_e.exports=Ce,Ce.displayName="jsonp",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.jsonp=ke.languages.extend("json",{punctuation:/[{}[\]();,.]/}),ke.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(_e){"use strict";_e.exports=be,be.displayName="jsstacktrace",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="jsx",be.aliases=[];function be(ae){(function(oe){var Ce=oe.util.clone(oe.languages.javascript),ke=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Ie=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,He=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Ke,Be){return Ke=Ke.replace(/<S>/g,function(){return ke}).replace(/<BRACES>/g,function(){return Ie}).replace(/<SPREAD>/g,function(){return He}),RegExp(Ke,Be)}He=Te(He).source,oe.languages.jsx=oe.languages.extend("markup",Ce),oe.languages.jsx.tag.pattern=Te(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),oe.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,oe.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,oe.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,oe.languages.jsx.tag.inside.comment=Ce.comment,oe.languages.insertBefore("inside","attr-name",{spread:{pattern:Te(/<SPREAD>/.source),inside:oe.languages.jsx}},oe.languages.jsx.tag),oe.languages.insertBefore("inside","special-attr",{script:{pattern:Te(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:oe.languages.jsx}}},oe.languages.jsx.tag);var ze=function(Ke){return Ke?typeof Ke=="string"?Ke:typeof Ke.content=="string"?Ke.content:Ke.content.map(ze).join(""):""},ot=function(Ke){for(var Be=[],gt=0;gt<Ke.length;gt++){var Je=Ke[gt],wt=!1;if(typeof Je!="string"&&(Je.type==="tag"&&Je.content[0]&&Je.content[0].type==="tag"?Je.content[0].content[0].content==="</"?Be.length>0&&Be[Be.length-1].tagName===ze(Je.content[0].content[1])&&Be.pop():Je.content[Je.content.length-1].content==="/>"||Be.push({tagName:ze(Je.content[0].content[1]),openedBraces:0}):Be.length>0&&Je.type==="punctuation"&&Je.content==="{"?Be[Be.length-1].openedBraces++:Be.length>0&&Be[Be.length-1].openedBraces>0&&Je.type==="punctuation"&&Je.content==="}"?Be[Be.length-1].openedBraces--:wt=!0),(wt||typeof Je=="string")&&Be.length>0&&Be[Be.length-1].openedBraces===0){var Fe=ze(Je);gt<Ke.length-1&&(typeof Ke[gt+1]=="string"||Ke[gt+1].type==="plain-text")&&(Fe+=ze(Ke[gt+1]),Ke.splice(gt+1,1)),gt>0&&(typeof Ke[gt-1]=="string"||Ke[gt-1].type==="plain-text")&&(Fe=ze(Ke[gt-1])+Fe,Ke.splice(gt-1,1),gt--),Ke[gt]=new oe.Token("plain-text",Fe,null,Fe)}Je.content&&typeof Je.content!="string"&&ot(Je.content)}};oe.hooks.add("after-tokenize",function(Ke){Ke.language!=="jsx"&&Ke.language!=="tsx"||ot(Ke.tokens)})})(ae)}},40604:function(_e){"use strict";_e.exports=be,be.displayName="julia",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="keepalived",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="keyman",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="kotlin",be.aliases=["kt","kts"];function be(ae){(function(oe){oe.languages.kotlin=oe.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 oe.languages.kotlin["class-name"];var Ce={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:oe.languages.kotlin}};oe.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Ce},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Ce},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete oe.languages.kotlin.string,oe.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),oe.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),oe.languages.kt=oe.languages.kotlin,oe.languages.kts=oe.languages.kotlin})(ae)}},37524:function(_e){"use strict";_e.exports=be,be.displayName="kumir",be.aliases=["kum"];function be(ae){(function(oe){var Ce=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function ke(Ie,He){return RegExp(Ie.replace(/<nonId>/g,Ce),He)}oe.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:ke(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:ke(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:ke(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:ke(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:ke(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:ke(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:ke(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:ke(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},oe.languages.kum=oe.languages.kumir})(ae)}},6658:function(_e){"use strict";_e.exports=be,be.displayName="kusto",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="latex",be.aliases=["tex","context"];function be(ae){(function(oe){var Ce=/\\(?:[^a-z()[\]]|[a-z*]+)/i,ke={"equation-command":{pattern:Ce,alias:"regex"}};oe.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:ke,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:ke,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:Ce,alias:"selector"},punctuation:/[[\]{}&]/},oe.languages.tex=oe.languages.latex,oe.languages.context=oe.languages.latex})(ae)}},22776:function(_e,be,ae){"use strict";var oe=ae(51478),Ce=ae(53852);_e.exports=ke,ke.displayName="latte",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){He.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:He.languages.php}};var Te=He.languages.extend("markup",{});He.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:He.languages.php}}}}}},Te.tag),He.hooks.add("before-tokenize",function(ze){if(ze.language==="latte"){var ot=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;He.languages["markup-templating"].buildPlaceholders(ze,"latte",ot),ze.grammar=Te}}),He.hooks.add("after-tokenize",function(ze){He.languages["markup-templating"].tokenizePlaceholders(ze,"latte")})}(Ie)}},89700:function(_e){"use strict";_e.exports=be,be.displayName="less",be.aliases=[];function be(ae){ae.languages.less=ae.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:/[+\-*\/]/}),ae.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(_e,be,ae){"use strict";var oe=ae(48780);_e.exports=Ce,Ce.displayName="lilypond",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){for(var He=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,ze=0;ze<Te;ze++)He=He.replace(/<expr>/g,function(){return He});He=He.replace(/<expr>/g,/[^\s\S]/.source);var ot=Ie.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return He}),"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/};ot["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=ot,Ie.languages.ly=ot}(ke)}},39940:function(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="liquid",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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"}},ke.hooks.add("before-tokenize",function(Ie){var He=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;ke.languages["markup-templating"].buildPlaceholders(Ie,"liquid",He,function(ze){var ot=/^\{%-?\s*(\w+)/.exec(ze);if(ot){var Ke=ot[1];if(Ke==="raw"&&!Te)return Te=!0,!0;if(Ke==="endraw")return Te=!1,!0}return!Te})}),ke.hooks.add("after-tokenize",function(Ie){ke.languages["markup-templating"].tokenizePlaceholders(Ie,"liquid")})}},34973:function(_e){"use strict";_e.exports=be,be.displayName="lisp",be.aliases=[];function be(ae){(function(oe){function Ce(Fe){return RegExp(/(\()/.source+"(?:"+Fe+")"+/(?=[\s\)])/.source)}function ke(Fe){return RegExp(/([\s([])/.source+"(?:"+Fe+")"+/(?=[\s)])/.source)}var Ie=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,He="&"+Ie,Te="(\\()",ze="(?=\\))",ot="(?=\\s)",Ke=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Be={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)"+ot),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+ot),lookbehind:!0}],declare:{pattern:Ce(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Ce(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:ke(/nil|t/.source),lookbehind:!0},number:{pattern:ke(/[-+]?\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+Ke+/\)/.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}]},gt={"lisp-marker":RegExp(He),varform:{pattern:RegExp(/\(/.source+Ie+/\s+(?=\S)/.source+Ke+/\)/.source),inside:Be},argument:{pattern:RegExp(/(^|[\s(])/.source+Ie),lookbehind:!0,alias:"variable"},rest:Be},Je="\\S+(?:\\s+\\S+)*",wt={pattern:RegExp(Te+Ke+ze),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+Je),inside:gt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+Je),inside:gt},keys:{pattern:RegExp("&key\\s+"+Je+"(?:\\s+&allow-other-keys)?"),inside:gt},argument:{pattern:RegExp(Ie),alias:"variable"},punctuation:/[()]/}};Be.lambda.inside.arguments=wt,Be.defun.inside.arguments=oe.util.clone(wt),Be.defun.inside.arguments.inside.sublist=wt,oe.languages.lisp=Be,oe.languages.elisp=Be,oe.languages.emacs=Be,oe.languages["emacs-lisp"]=Be})(ae)}},98135:function(_e){"use strict";_e.exports=be,be.displayName="livescript",be.aliases=[];function be(ae){ae.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:/[(){}\[\]|.,:;`]/},ae.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=ae.languages.livescript}},36907:function(_e){"use strict";_e.exports=be,be.displayName="llvm",be.aliases=[];function be(ae){(function(oe){oe.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:/[{}[\];(),.!*=<>]/}})(ae)}},3567:function(_e){"use strict";_e.exports=be,be.displayName="log",be.aliases=[];function be(ae){ae.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:ae.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(_e){"use strict";_e.exports=be,be.displayName="lolcode",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="lua",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="magma",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="makefile",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="markdown",be.aliases=["md"];function be(ae){(function(oe){var Ce=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function ke(gt){return gt=gt.replace(/<inner>/g,function(){return Ce}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+gt+")")}var Ie=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,He=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ie}),Te=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;oe.languages.markdown=oe.languages.extend("markup",{}),oe.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:oe.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+He+Te+"(?:"+He+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+He+Te+")(?:"+He+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ie),inside:oe.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+He+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+He+"$"),inside:{"table-header":{pattern:RegExp(Ie),alias:"important",inside:oe.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:ke(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:ke(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:ke(/(~~?)(?:(?!~)<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:ke(/!?\[(?:(?!\])<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(gt){["url","bold","italic","strike","code-snippet"].forEach(function(Je){gt!==Je&&(oe.languages.markdown[gt].inside.content.inside[Je]=oe.languages.markdown[Je])})}),oe.hooks.add("after-tokenize",function(gt){if(gt.language!=="markdown"&&gt.language!=="md")return;function Je(wt){if(!(!wt||typeof wt=="string"))for(var Fe=0,te=wt.length;Fe<te;Fe++){var ee=wt[Fe];if(ee.type!=="code"){Je(ee.content);continue}var he=ee.content[1],ue=ee.content[3];if(he&&ue&&he.type==="code-language"&&ue.type==="code-block"&&typeof he.content=="string"){var fe=he.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");fe=(/[a-z][\w-]*/i.exec(fe)||[""])[0].toLowerCase();var me="language-"+fe;ue.alias?typeof ue.alias=="string"?ue.alias=[ue.alias,me]:ue.alias.push(me):ue.alias=[me]}}}Je(gt.tokens)}),oe.hooks.add("wrap",function(gt){if(gt.type==="code-block"){for(var Je="",wt=0,Fe=gt.classes.length;wt<Fe;wt++){var te=gt.classes[wt],ee=/language-(.+)/.exec(te);if(ee){Je=ee[1];break}}var he=oe.languages[Je];if(he)gt.content=oe.highlight(Be(gt.content.value),he,Je);else if(Je&&Je!=="none"&&oe.plugins.autoloader){var ue="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);gt.attributes.id=ue,oe.plugins.autoloader.loadLanguages(Je,function(){var fe=document.getElementById(ue);fe&&(fe.innerHTML=oe.highlight(fe.textContent,oe.languages[Je],Je))})}}});var ze=RegExp(oe.languages.markup.tag.pattern.source,"gi"),ot={amp:"&",lt:"<",gt:">",quot:'"'},Ke=String.fromCodePoint||String.fromCharCode;function Be(gt){var Je=gt.replace(ze,"");return Je=Je.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(wt,Fe){if(Fe=Fe.toLowerCase(),Fe[0]==="#"){var te;return Fe[1]==="x"?te=parseInt(Fe.slice(2),16):te=Number(Fe.slice(1)),Ke(te)}else{var ee=ot[Fe];return ee||wt}}),Je}oe.languages.md=oe.languages.markdown})(ae)}},51478:function(_e){"use strict";_e.exports=be,be.displayName="markupTemplating",be.aliases=[];function be(ae){(function(oe){function Ce(ke,Ie){return"___"+ke.toUpperCase()+Ie+"___"}Object.defineProperties(oe.languages["markup-templating"]={},{buildPlaceholders:{value:function(ke,Ie,He,Te){if(ke.language===Ie){var ze=ke.tokenStack=[];ke.code=ke.code.replace(He,function(ot){if(typeof Te=="function"&&!Te(ot))return ot;for(var Ke=ze.length,Be;ke.code.indexOf(Be=Ce(Ie,Ke))!==-1;)++Ke;return ze[Ke]=ot,Be}),ke.grammar=oe.languages.markup}}},tokenizePlaceholders:{value:function(ke,Ie){if(ke.language!==Ie||!ke.tokenStack)return;ke.grammar=oe.languages[Ie];var He=0,Te=Object.keys(ke.tokenStack);function ze(ot){for(var Ke=0;Ke<ot.length&&!(He>=Te.length);Ke++){var Be=ot[Ke];if(typeof Be=="string"||Be.content&&typeof Be.content=="string"){var gt=Te[He],Je=ke.tokenStack[gt],wt=typeof Be=="string"?Be:Be.content,Fe=Ce(Ie,gt),te=wt.indexOf(Fe);if(te>-1){++He;var ee=wt.substring(0,te),he=new oe.Token(Ie,oe.tokenize(Je,ke.grammar),"language-"+Ie,Je),ue=wt.substring(te+Fe.length),fe=[];ee&&fe.push.apply(fe,ze([ee])),fe.push(he),ue&&fe.push.apply(fe,ze([ue])),typeof Be=="string"?ot.splice.apply(ot,[Ke,1].concat(fe)):Be.content=fe}}else Be.content&&ze(Be.content)}return ot}ze(ke.tokens)}}})})(ae)}},70614:function(_e){"use strict";_e.exports=be,be.displayName="markup",be.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function be(ae){ae.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]},ae.languages.markup.tag.inside["attr-value"].inside.entity=ae.languages.markup.entity,ae.languages.markup.doctype.inside["internal-subset"].inside=ae.languages.markup,ae.hooks.add("wrap",function(oe){oe.type==="entity"&&(oe.attributes.title=oe.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(ae.languages.markup.tag,"addInlined",{value:function(Ce,ke){var Ie={};Ie["language-"+ke]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[ke]},Ie.cdata=/^<!\[CDATA\[|\]\]>$/i;var He={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Ie}};He["language-"+ke]={pattern:/[\s\S]+/,inside:ae.languages[ke]};var Te={};Te[Ce]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Ce}),"i"),lookbehind:!0,greedy:!0,inside:He},ae.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(oe,Ce){ae.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+oe+")"+/\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:[Ce,"language-"+Ce],inside:ae.languages[Ce]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ae.languages.html=ae.languages.markup,ae.languages.mathml=ae.languages.markup,ae.languages.svg=ae.languages.markup,ae.languages.xml=ae.languages.extend("markup",{}),ae.languages.ssml=ae.languages.xml,ae.languages.atom=ae.languages.xml,ae.languages.rss=ae.languages.xml}},16928:function(_e){"use strict";_e.exports=be,be.displayName="matlab",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="maxscript",be.aliases=[];function be(ae){(function(oe){var Ce=/\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;oe.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)+")[ ]*)(?!"+Ce.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Ce.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:Ce,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}})(ae)}},37164:function(_e){"use strict";_e.exports=be,be.displayName="mel",be.aliases=[];function be(ae){ae.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:/<<|>>|[.,:;?\[\](){}]/},ae.languages.mel.code.inside.rest=ae.languages.mel}},25153:function(_e){"use strict";_e.exports=be,be.displayName="mermaid",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="mizar",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="mongodb",be.aliases=[];function be(ae){(function(oe){var Ce=["$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"],ke=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Ce=Ce.map(function(He){return He.replace("$","\\$")});var Ie="(?:"+Ce.join("|")+")\\b";oe.languages.mongodb=oe.languages.extend("javascript",{}),oe.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)?$")}}}),oe.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}},oe.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+ke.join("|")+")\\b"),alias:"keyword"}})})(ae)}},65626:function(_e){"use strict";_e.exports=be,be.displayName="monkey",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="moonscript",be.aliases=["moon"];function be(ae){ae.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:/[.,()[\]{}\\]/},ae.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=ae.languages.moonscript,ae.languages.moon=ae.languages.moonscript}},40722:function(_e){"use strict";_e.exports=be,be.displayName="n1ql",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="n4js",be.aliases=["n4jsd"];function be(ae){ae.languages.n4js=ae.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/}),ae.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),ae.languages.n4jsd=ae.languages.n4js}},41224:function(_e){"use strict";_e.exports=be,be.displayName="nand2tetrisHdl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="naniscript",be.aliases=[];function be(ae){(function(oe){var Ce=/\{[^\r\n\[\]{}]*\}/,ke={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Ce,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};oe.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:Ce,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:ke}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Ce,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:ke},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},oe.languages.nani=oe.languages.naniscript,oe.hooks.add("after-tokenize",function(Te){var ze=Te.tokens;ze.forEach(function(ot){if(typeof ot!="string"&&ot.type==="generic-text"){var Ke=He(ot);Ie(Ke)||(ot.type="bad-line",ot.content=Ke)}})});function Ie(Te){for(var ze="[]{}",ot=[],Ke=0;Ke<Te.length;Ke++){var Be=Te[Ke],gt=ze.indexOf(Be);if(gt!==-1){if(gt%2===0)ot.push(gt+1);else if(ot.pop()!==gt)return!1}}return ot.length===0}function He(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(He).join(""):He(Te.content)}})(ae)}},42846:function(_e){"use strict";_e.exports=be,be.displayName="nasm",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="neon",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="nevod",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="nginx",be.aliases=[];function be(ae){(function(oe){var Ce=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;oe.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:Ce}},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:Ce}},punctuation:/[{};]/}})(ae)}},66791:function(_e){"use strict";_e.exports=be,be.displayName="nim",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="nix",be.aliases=[];function be(ae){ae.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:/[{}()[\].,:;]/},ae.languages.nix.string.inside.interpolation.inside=ae.languages.nix}},13490:function(_e){"use strict";_e.exports=be,be.displayName="nsis",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(79440);_e.exports=Ce,Ce.displayName="objectivec",Ce.aliases=["objc"];function Ce(ke){ke.register(oe),ke.languages.objectivec=ke.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 ke.languages.objectivec["class-name"],ke.languages.objc=ke.languages.objectivec}},66894:function(_e){"use strict";_e.exports=be,be.displayName="ocaml",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(79440);_e.exports=Ce,Ce.displayName="opencl",Ce.aliases=[];function Ce(ke){ke.register(oe),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 He={"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",He),Ie.languages.cpp&&(He["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",He))}(ke)}},27734:function(_e){"use strict";_e.exports=be,be.displayName="openqasm",be.aliases=["qasm"];function be(ae){ae.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:/[(){}\[\];,:.]/},ae.languages.qasm=ae.languages.openqasm}},91889:function(_e){"use strict";_e.exports=be,be.displayName="oz",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="parigp",be.aliases=[];function be(ae){ae.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var oe=["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 oe=oe.map(function(Ce){return Ce.split("").join(" *")}).join("|"),RegExp("\\b(?:"+oe+")\\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(_e){"use strict";_e.exports=be,be.displayName="parser",be.aliases=[];function be(ae){(function(oe){var Ce=oe.languages.parser=oe.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:/[\[\](){};]/});Ce=oe.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:Ce.keyword,variable:Ce.variable,function:Ce.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Ce.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Ce.punctuation}}}),oe.languages.insertBefore("inside","punctuation",{expression:Ce.expression,keyword:Ce.keyword,variable:Ce.variable,function:Ce.function,escape:Ce.escape,"parser-punctuation":{pattern:Ce.punctuation,alias:"punctuation"}},Ce.tag.inside["attr-value"])})(ae)}},92949:function(_e){"use strict";_e.exports=be,be.displayName="pascal",be.aliases=["objectpascal"];function be(ae){ae.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:/\(\.|\.\)|[()\[\]:;,.]/},ae.languages.pascal.asm.inside=ae.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),ae.languages.objectpascal=ae.languages.pascal}},5681:function(_e){"use strict";_e.exports=be,be.displayName="pascaligo",be.aliases=[];function be(ae){(function(oe){var Ce=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,ke=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Ce}),Ie=oe.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 ke}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return ke}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return ke})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},He=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,ze){return Te[ze]=Ie[ze],Te},{});Ie["class-name"].forEach(function(Te){Te.inside=He})})(ae)}},70696:function(_e){"use strict";_e.exports=be,be.displayName="pcaxis",be.aliases=["px"];function be(ae){ae.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/},ae.languages.px=ae.languages.pcaxis}},35790:function(_e){"use strict";_e.exports=be,be.displayName="peoplecode",be.aliases=["pcode"];function be(ae){ae.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:/[:.;,()[\]]/},ae.languages.pcode=ae.languages.peoplecode}},25777:function(_e){"use strict";_e.exports=be,be.displayName="perl",be.aliases=[];function be(ae){(function(oe){var Ce=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;oe.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,Ce].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,Ce].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,Ce+/\s*/.source+Ce].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:/[{}[\];(),:]/}})(ae)}},65889:function(_e,be,ae){"use strict";var oe=ae(53852);_e.exports=Ce,Ce.displayName="phpExtras",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="php",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var He=/\/\*[\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*\()/],ze=/\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,ot=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Ke=/[{}\[\](),:;]/;Ie.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:He,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:ze,operator:ot,punctuation:Ke};var Be={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Ie.languages.php},gt=[{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:Be}},{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:Be}}];Ie.languages.insertBefore("php","variable",{string:gt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:He,string:gt,"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:ze,operator:ot,punctuation:Ke}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Ie.hooks.add("before-tokenize",function(Je){if(/<\?/.test(Je.code)){var wt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Ie.languages["markup-templating"].buildPlaceholders(Je,"php",wt)}}),Ie.hooks.add("after-tokenize",function(Je){Ie.languages["markup-templating"].tokenizePlaceholders(Je,"php")})}(ke)}},97719:function(_e,be,ae){"use strict";var oe=ae(53852),Ce=ae(53510);_e.exports=ke,ke.displayName="phpdoc",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;He.languages.phpdoc=He.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),He.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:/[|\\[\]()]/}}]}),He.languages.javadoclike.addSupport("php",He.languages.phpdoc)}(Ie)}},63839:function(_e,be,ae){"use strict";var oe=ae(69435);_e.exports=Ce,Ce.displayName="plsql",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.plsql=ke.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),ke.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(_e){"use strict";_e.exports=be,be.displayName="powerquery",be.aliases=[];function be(ae){ae.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:/[,;\[\](){}]/},ae.languages.pq=ae.languages.powerquery,ae.languages.mscript=ae.languages.powerquery}},32530:function(_e){"use strict";_e.exports=be,be.displayName="powershell",be.aliases=[];function be(ae){(function(oe){var Ce=oe.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:/[|{}[\];(),.]/};Ce.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Ce},boolean:Ce.boolean,variable:Ce.variable}})(ae)}},8938:function(_e){"use strict";_e.exports=be,be.displayName="processing",be.aliases=[];function be(ae){ae.languages.processing=ae.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),ae.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(_e){"use strict";_e.exports=be,be.displayName="prolog",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="promql",be.aliases=[];function be(ae){(function(oe){var Ce=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],ke=["on","ignoring","group_right","group_left","by","without"],Ie=["offset"],He=Ce.concat(ke,Ie);oe.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+ke.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(?:"+He.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:/[{};()`,.[\]]/}})(ae)}},15375:function(_e){"use strict";_e.exports=be,be.displayName="properties",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="protobuf",be.aliases=[];function be(ae){(function(oe){var Ce=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;oe.languages.protobuf=oe.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}),oe.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:Ce}},builtin:Ce,"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}})})(ae)}},83588:function(_e){"use strict";_e.exports=be,be.displayName="psl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="pug",be.aliases=[];function be(ae){(function(oe){oe.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:oe.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:oe.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:oe.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:oe.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:oe.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:oe.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:oe.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:oe.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Ce=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,ke=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Ie={},He=0,Te=ke.length;He<Te;He++){var ze=ke[He];ze=typeof ze=="string"?{filter:ze,language:ze}:ze,oe.languages[ze.language]&&(Ie["filter-"+ze.filter]={pattern:RegExp(Ce.replace("<filter_name>",function(){return ze.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[ze.language,"language-"+ze.language],inside:oe.languages[ze.language]}}})}oe.languages.insertBefore("pug","filter",Ie)})(ae)}},21294:function(_e){"use strict";_e.exports=be,be.displayName="puppet",be.aliases=[];function be(ae){(function(oe){oe.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 Ce=[{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:oe.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];oe.languages.puppet.heredoc[0].inside.interpolation=Ce,oe.languages.puppet.string.inside["double-quoted"].inside.interpolation=Ce})(ae)}},38709:function(_e){"use strict";_e.exports=be,be.displayName="pure",be.aliases=[];function be(ae){(function(oe){oe.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 Ce=["c",{lang:"c++",alias:"cpp"},"fortran"],ke=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Ce.forEach(function(Ie){var He=Ie;if(typeof Ie!="string"&&(He=Ie.alias,Ie=Ie.lang),oe.languages[He]){var Te={};Te["inline-lang-"+He]={pattern:RegExp(ke.replace("<lang>",Ie.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:oe.util.clone(oe.languages.pure["inline-lang"].inside)},Te["inline-lang-"+He].inside.rest=oe.util.clone(oe.languages[He]),oe.languages.insertBefore("pure","inline-lang",Te)}}),oe.languages.c&&(oe.languages.pure["inline-lang"].inside.rest=oe.util.clone(oe.languages.c))})(ae)}},15008:function(_e){"use strict";_e.exports=be,be.displayName="purebasic",be.aliases=[];function be(ae){ae.languages.purebasic=ae.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),ae.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 ae.languages.purebasic["class-name"],delete ae.languages.purebasic.boolean,ae.languages.pbfasm=ae.languages.purebasic}},96549:function(_e,be,ae){"use strict";var oe=ae(2050);_e.exports=Ce,Ce.displayName="purescript",Ce.aliases=["purs"];function Ce(ke){ke.register(oe),ke.languages.purescript=ke.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:[ke.languages.haskell.operator[0],ke.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]/]}),ke.languages.purs=ke.languages.purescript}},5221:function(_e){"use strict";_e.exports=be,be.displayName="python",be.aliases=["py"];function be(ae){ae.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:/![sra](?=[:}]$)/,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:/[{}[\];(),.:]/},ae.languages.python["string-interpolation"].inside.interpolation.inside.rest=ae.languages.python,ae.languages.py=ae.languages.python}},27447:function(_e){"use strict";_e.exports=be,be.displayName="q",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="qml",be.aliases=[];function be(ae){(function(oe){for(var Ce=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,ke=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Ie=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Ce}).replace(/<comment>/g,function(){return ke}),He=0;He<2;He++)Ie=Ie.replace(/<expr>/g,function(){return Ie});Ie=Ie.replace(/<expr>/g,"[^\\s\\S]"),oe.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:oe.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:oe.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(ae)}},75542:function(_e){"use strict";_e.exports=be,be.displayName="qore",be.aliases=[];function be(ae){ae.languages.qore=ae.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(_e){"use strict";_e.exports=be,be.displayName="qsharp",be.aliases=["qs"];function be(ae){(function(oe){function Ce(wt,Fe){return wt.replace(/<<(\d+)>>/g,function(te,ee){return"(?:"+Fe[+ee]+")"})}function ke(wt,Fe,te){return RegExp(Ce(wt,Fe),te||"")}function Ie(wt,Fe){for(var te=0;te<Fe;te++)wt=wt.replace(/<<self>>/g,function(){return"(?:"+wt+")"});return wt.replace(/<<self>>/g,"[^\\s\\S]")}var He={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(wt){return"\\b(?:"+wt.trim().replace(/ /g,"|")+")\\b"}var ze=RegExp(Te(He.type+" "+He.other)),ot=/\b[A-Za-z_]\w*\b/.source,Ke=Ce(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[ot]),Be={keyword:ze,punctuation:/[<>()?,.:[\]]/},gt=/"(?:\\.|[^\\"])*"/.source;oe.languages.qsharp=oe.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:ke(/(^|[^$\\])<<0>>/.source,[gt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:ke(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Ke]),lookbehind:!0,inside:Be},{pattern:ke(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Ke]),lookbehind:!0,inside:Be}],keyword:ze,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:/::|[{}[\];(),.:]/}),oe.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var Je=Ie(Ce(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[gt]),2);oe.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:ke(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[Je]),greedy:!0,inside:{interpolation:{pattern:ke(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[Je]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:oe.languages.qsharp}}},string:/[\s\S]+/}}})})(ae),ae.languages.qs=ae.languages.qsharp}},44298:function(_e){"use strict";_e.exports=be,be.displayName="r",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(48780);_e.exports=Ce,Ce.displayName="racket",Ce.aliases=["rkt"];function Ce(ke){ke.register(oe),ke.languages.racket=ke.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),ke.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),ke.languages.rkt=ke.languages.racket}},75266:function(_e){"use strict";_e.exports=be,be.displayName="reason",be.aliases=[];function be(ae){ae.languages.reason=ae.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/}),ae.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 ae.languages.reason.function}},48139:function(_e){"use strict";_e.exports=be,be.displayName="regex",be.aliases=[];function be(ae){(function(oe){var Ce={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},ke=/\\(?: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"},He={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+ke.source+")",ze=RegExp(Te+"-"+Te),ot={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};oe.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:ze,inside:{escape:ke,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Ce,"char-set":He,escape:ke}},"special-escape":Ce,"char-set":Ie,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":ot}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:ke,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":ot}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ae)}},97534:function(_e){"use strict";_e.exports=be,be.displayName="rego",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="renpy",be.aliases=["rpy"];function be(ae){ae.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:/[{}[\];(),.:]/},ae.languages.rpy=ae.languages.renpy}},63919:function(_e){"use strict";_e.exports=be,be.displayName="rest",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="rip",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="roboconf",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="robotframework",be.aliases=[];function be(ae){(function(oe){var Ce={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},ke={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Ie(ot,Ke){var Be={};Be["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var gt in Ke)Be[gt]=Ke[gt];return Be.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Be.variable=ke,Be.comment=Ce,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return ot}),"im"),alias:"section",inside:Be}}var He={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:ke}},ze={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:ke}};oe.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:He,property:ze}),keywords:Ie("Keywords",{"keyword-name":Te,documentation:He,property:ze}),tasks:Ie("Tasks",{"task-name":Te,documentation:He,property:ze}),comment:Ce},oe.languages.robot=oe.languages.robotframework})(ae)}},75308:function(_e){"use strict";_e.exports=be,be.displayName="ruby",be.aliases=["rb"];function be(ae){(function(oe){oe.languages.ruby=oe.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:/[(){}[\].,;]/}),oe.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Ce={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:oe.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete oe.languages.ruby.function;var ke="(?:"+[/([^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;oe.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+ke+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Ce,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Ce,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:/\./}}}),oe.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+ke),greedy:!0,inside:{interpolation:Ce,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Ce,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:Ce,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+ke),greedy:!0,inside:{interpolation:Ce,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Ce,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete oe.languages.ruby.string,oe.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)/}),oe.languages.rb=oe.languages.ruby})(ae)}},45315:function(_e){"use strict";_e.exports=be,be.displayName="rust",be.aliases=[];function be(ae){(function(oe){for(var Ce=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,ke=0;ke<2;ke++)Ce=Ce.replace(/<self>/g,function(){return Ce});Ce=Ce.replace(/<self>/g,function(){return/[^\s\S]/.source}),oe.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Ce),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},oe.languages.rust["closure-params"].inside.rest=oe.languages.rust,oe.languages.rust.attribute.inside.string=oe.languages.rust.string})(ae)}},13794:function(_e){"use strict";_e.exports=be,be.displayName="sas",be.aliases=[];function be(ae){(function(oe){var Ce=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,ke=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Ie={pattern:RegExp(Ce+"[bx]"),alias:"number"},He={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"},ze={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},ot=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Ke={pattern:RegExp(Ce),greedy:!0},Be=/[$%@.(){}\[\];,\\]/,gt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},Je={function:gt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":He,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:ke,"numeric-constant":Ie,punctuation:Be,string:Ke},wt={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"}}},te={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"},ee={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,ue={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:ot,function:gt,"arg-value":Je["arg-value"],operator:Je.operator,argument:Je.arg,number:ke,"numeric-constant":Ie,punctuation:Be,string:Ke}},fe={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};oe.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 Ce}),"im"),alias:"language-sql",inside:oe.languages.sql},"global-statements":te,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:ke,"numeric-constant":Ie,punctuation:Be,string:Ke}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ot,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,alias:"language-groovy",inside:oe.languages.groovy},keyword:fe,"submit-statement":ee,"global-statements":te,number:ke,"numeric-constant":Ie,punctuation:Be,string:Ke}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ot,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,alias:"language-lua",inside:oe.languages.lua},keyword:fe,"submit-statement":ee,"global-statements":te,number:ke,"numeric-constant":Ie,punctuation:Be,string:Ke}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:ot,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:Je}},"cas-actions":ue,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:Je},step:ze,keyword:fe,function:gt,format:wt,altformat:Fe,"global-statements":te,number:ke,"numeric-constant":Ie,punctuation:Be,string:Ke}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,inside:Je},"macro-keyword":Te,"macro-variable":He,"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":He,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Be}},"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:ot,number:ke,"numeric-constant":Ie}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:Je},"cas-actions":ue,comment:ot,function:gt,format:wt,altformat:Fe,"numeric-constant":Ie,datetime:{pattern:RegExp(Ce+"(?:dt?|t)"),alias:"number"},string:Ke,step:ze,keyword:fe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:ke,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Be}})(ae)}},41299:function(_e){"use strict";_e.exports=be,be.displayName="sass",be.aliases=[];function be(ae){(function(oe){oe.languages.sass=oe.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),oe.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete oe.languages.sass.atrule;var Ce=/\$[-\w]+|#\{\$[-\w]+\}/,ke=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];oe.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Ce,operator:ke}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Ce,operator:ke,important:oe.languages.sass.important}}}),delete oe.languages.sass.property,delete oe.languages.sass.important,oe.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}})})(ae)}},98177:function(_e,be,ae){"use strict";var oe=ae(7093);_e.exports=Ce,Ce.displayName="scala",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.scala=ke.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*/}),ke.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:ke.languages.scala}}},string:/[\s\S]+/}}}),delete ke.languages.scala["class-name"],delete ke.languages.scala.function}},48780:function(_e){"use strict";_e.exports=be,be.displayName="scheme",be.aliases=[];function be(ae){(function(oe){oe.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(Ce({"<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 Ce(ke){for(var Ie in ke)ke[Ie]=ke[Ie].replace(/<[\w\s]+>/g,function(He){return"(?:"+ke[He].trim()+")"});return ke[Ie]}})(ae)}},79793:function(_e){"use strict";_e.exports=be,be.displayName="scss",be.aliases=[];function be(ae){ae.languages.scss=ae.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]+\}/}}}),ae.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}]}),ae.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),ae.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}}),ae.languages.scss.atrule.inside.rest=ae.languages.scss}},52085:function(_e,be,ae){"use strict";var oe=ae(3058);_e.exports=Ce,Ce.displayName="shellSession",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var He=[/"(?:\\[\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 He}),"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"]}(ke)}},65411:function(_e){"use strict";_e.exports=be,be.displayName="smali",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="smalltalk",be.aliases=[];function be(ae){ae.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(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="smarty",Ce.aliases=[];function Ce(ke){ke.register(oe),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 He=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return He.source}),"g");Ie.hooks.add("before-tokenize",function(ze){var ot="{literal}",Ke="{/literal}",Be=!1;Ie.languages["markup-templating"].buildPlaceholders(ze,"smarty",Te,function(gt){return gt===Ke&&(Be=!1),Be?!1:(gt===ot&&(Be=!0),!0)})}),Ie.hooks.add("after-tokenize",function(ze){Ie.languages["markup-templating"].tokenizePlaceholders(ze,"smarty")})}(ke)}},66433:function(_e){"use strict";_e.exports=be,be.displayName="sml",be.aliases=["smlnj"];function be(ae){(function(oe){var Ce=/\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;oe.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 Ce.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:Ce,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:/[(){}\[\].:,;]/},oe.languages.sml["class-name"][0].inside=oe.languages.sml,oe.languages.smlnj=oe.languages.sml})(ae)}},34855:function(_e){"use strict";_e.exports=be,be.displayName="solidity",be.aliases=["sol"];function be(ae){ae.languages.solidity=ae.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),ae.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/}),ae.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),ae.languages.sol=ae.languages.solidity}},12998:function(_e){"use strict";_e.exports=be,be.displayName="solutionFile",be.aliases=[];function be(ae){(function(oe){var Ce={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};oe.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Ce}},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:Ce}},guid:Ce,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},oe.languages.sln=oe.languages["solution-file"]})(ae)}},10202:function(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="soy",Ce.aliases=[];function Ce(ke){ke.register(oe),function(Ie){var He=/(["'])(?:\\(?:\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:He,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:He,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(ze){var ot=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Ke="{literal}",Be="{/literal}",gt=!1;Ie.languages["markup-templating"].buildPlaceholders(ze,"soy",ot,function(Je){return Je===Be&&(gt=!1),gt?!1:(Je===Ke&&(gt=!0),!0)})}),Ie.hooks.add("after-tokenize",function(ze){Ie.languages["markup-templating"].tokenizePlaceholders(ze,"soy")})}(ke)}},41186:function(_e,be,ae){"use strict";var oe=ae(58710);_e.exports=Ce,Ce.displayName="sparql",Ce.aliases=["rq"];function Ce(ke){ke.register(oe),ke.languages.sparql=ke.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),ke.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]}),ke.languages.rq=ke.languages.sparql}},68963:function(_e){"use strict";_e.exports=be,be.displayName="splunkSpl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="sqf",be.aliases=[];function be(ae){ae.languages.sqf=ae.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}),ae.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:ae.languages.sqf.comment}}}),delete ae.languages.sqf["class-name"]}},69435:function(_e){"use strict";_e.exports=be,be.displayName="sql",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="squirrel",be.aliases=[];function be(ae){ae.languages.squirrel=ae.languages.extend("clike",{comment:[ae.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:/[(){}\[\],;.]/}),ae.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),ae.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(_e){"use strict";_e.exports=be,be.displayName="stan",be.aliases=[];function be(ae){(function(oe){var Ce=/\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/;oe.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("("+Ce.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/,Ce],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:/[()\[\]{},;]/},oe.languages.stan.constraint.inside.expression.inside=oe.languages.stan})(ae)}},89032:function(_e){"use strict";_e.exports=be,be.displayName="stylus",be.aliases=[];function be(ae){(function(oe){var Ce={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},ke={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:Ce,number:ke,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ce,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:ke,punctuation:/[{}()\[\];:,]/};Ie.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Ie}},Ie.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Ie}},oe.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:/[{}()\[\];:.]/}})(ae)}},40241:function(_e){"use strict";_e.exports=be,be.displayName="swift",be.aliases=[];function be(ae){ae.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:/[{}[\]();,.:\\]/},ae.languages.swift["string-literal"].forEach(function(oe){oe.inside.interpolation.inside=ae.languages.swift})}},24812:function(_e){"use strict";_e.exports=be,be.displayName="systemd",be.aliases=[];function be(ae){(function(oe){var Ce={pattern:/^[;#].*/m,greedy:!0},ke=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;oe.languages.systemd={comment:Ce,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+"(?:"+ke+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+ke+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Ce,quoted:{pattern:RegExp(/(^|\s)/.source+ke),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(ae)}},16747:function(_e,be,ae){"use strict";var oe=ae(73584),Ce=ae(87648);_e.exports=ke,ke.displayName="t4Cs",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),Ie.languages.t4=Ie.languages["t4-cs"]=Ie.languages["t4-templating"].createT4("csharp")}},73584:function(_e){"use strict";_e.exports=be,be.displayName="t4Templating",be.aliases=[];function be(ae){(function(oe){function Ce(Ie,He,Te){return{pattern:RegExp("<#"+Ie+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Ie+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:He,alias:Te}}}}function ke(Ie){var He=oe.languages[Ie],Te="language-"+Ie;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Ce("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Ce("=",He,Te),"class-feature":Ce("\\+",He,Te),standard:Ce("",He,Te)}}}}oe.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:ke})})(ae)}},79243:function(_e,be,ae){"use strict";var oe=ae(73584),Ce=ae(55686);_e.exports=ke,ke.displayName="t4Vb",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),Ie.languages["t4-vb"]=Ie.languages["t4-templating"].createT4("vbnet")}},31788:function(_e,be,ae){"use strict";var oe=ae(14409);_e.exports=Ce,Ce.displayName="tap",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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:ke.languages.yaml,alias:"language-yaml"}}}},60871:function(_e){"use strict";_e.exports=be,be.displayName="tcl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="textile",be.aliases=[];function be(ae){(function(oe){var Ce=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,ke=/\)|\((?![^|()\n]+\))/.source;function Ie(gt,Je){return RegExp(gt.replace(/<MOD>/g,function(){return"(?:"+Ce+")"}).replace(/<PAR>/g,function(){return"(?:"+ke+")"}),Je||"")}var He={css:{pattern:/\{[^{}]+\}/,inside:{rest:oe.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Te=oe.languages.textile=oe.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:He},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Ie(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Ie(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:He},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:He},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:He},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:He},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:He},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:/[()]/}}}}}),ze=Te.phrase.inside,ot={inline:ze.inline,link:ze.link,image:ze.image,footnote:ze.footnote,acronym:ze.acronym,mark:ze.mark};Te.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Ke=ze.inline.inside;Ke.bold.inside=ot,Ke.italic.inside=ot,Ke.inserted.inside=ot,Ke.deleted.inside=ot,Ke.span.inside=ot;var Be=ze.table.inside;Be.inline=ot.inline,Be.link=ot.link,Be.image=ot.image,Be.footnote=ot.footnote,Be.acronym=ot.acronym,Be.mark=ot.mark})(ae)}},14693:function(_e){"use strict";_e.exports=be,be.displayName="toml",be.aliases=[];function be(ae){(function(oe){var Ce=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function ke(Ie){return Ie.replace(/__/g,function(){return Ce})}oe.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(ke(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(ke(/(^[\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:/[.,=[\]{}]/}})(ae)}},8743:function(_e){"use strict";_e.exports=be,be.displayName="tremor",be.aliases=[];function be(ae){(function(oe){oe.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 Ce=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;oe.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Ce+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Ce+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Ce),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:oe.languages.tremor}}},string:/[\s\S]+/}},oe.languages.troy=oe.languages.tremor,oe.languages.trickle=oe.languages.tremor})(ae)}},1689:function(_e,be,ae){"use strict";var oe=ae(24103),Ce=ae(92784);_e.exports=ke,ke.displayName="tsx",ke.aliases=[];function ke(Ie){Ie.register(oe),Ie.register(Ce),function(He){var Te=He.util.clone(He.languages.typescript);He.languages.tsx=He.languages.extend("jsx",Te),delete He.languages.tsx.parameter,delete He.languages.tsx["literal-property"];var ze=He.languages.tsx.tag;ze.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+ze.pattern.source+")",ze.pattern.flags),ze.lookbehind=!0}(Ie)}},69210:function(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="tt2",Ce.aliases=[];function Ce(ke){ke.register(oe),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(He){var Te=/\[%[\s\S]+?%\]/g;Ie.languages["markup-templating"].buildPlaceholders(He,"tt2",Te)}),Ie.hooks.add("after-tokenize",function(He){Ie.languages["markup-templating"].tokenizePlaceholders(He,"tt2")})}(ke)}},58710:function(_e){"use strict";_e.exports=be,be.displayName="turtle",be.aliases=[];function be(ae){ae.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:/@/}}},ae.languages.trig=ae.languages.turtle}},60452:function(_e,be,ae){"use strict";var oe=ae(51478);_e.exports=Ce,Ce.displayName="twig",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.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:/[()\[\]{}:.,]/},ke.hooks.add("before-tokenize",function(Ie){if(Ie.language==="twig"){var He=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;ke.languages["markup-templating"].buildPlaceholders(Ie,"twig",He)}}),ke.hooks.add("after-tokenize",function(Ie){ke.languages["markup-templating"].tokenizePlaceholders(Ie,"twig")})}},92784:function(_e){"use strict";_e.exports=be,be.displayName="typescript",be.aliases=["ts"];function be(ae){(function(oe){oe.languages.typescript=oe.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/}),oe.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 oe.languages.typescript.parameter,delete oe.languages.typescript["literal-property"];var Ce=oe.languages.extend("typescript",{});delete Ce["class-name"],oe.languages.typescript["class-name"].inside=Ce,oe.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:Ce}}}}),oe.languages.ts=oe.languages.typescript})(ae)}},36489:function(_e){"use strict";_e.exports=be,be.displayName="typoscript",be.aliases=["tsconfig"];function be(ae){(function(oe){var Ce=/\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/;oe.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:Ce}},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:Ce,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Ce,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},oe.languages.tsconfig=oe.languages.typoscript})(ae)}},78380:function(_e){"use strict";_e.exports=be,be.displayName="unrealscript",be.aliases=["uc","uscript"];function be(ae){ae.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:/[()[\]{};,.]/},ae.languages.uc=ae.languages.uscript=ae.languages.unrealscript}},10409:function(_e){"use strict";_e.exports=be,be.displayName="uorazor",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="uri",be.aliases=["url"];function be(ae){ae.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":/\//}}},ae.languages.url=ae.languages.uri}},82028:function(_e){"use strict";_e.exports=be,be.displayName="v",be.aliases=[];function be(ae){(function(oe){var Ce={pattern:/[\s\S]+/,inside:null};oe.languages.v=oe.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":Ce}}}},"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/}),Ce.inside=oe.languages.v,oe.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),oe.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+/}}}),oe.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:oe.languages.v.generic.inside}}}})})(ae)}},62282:function(_e){"use strict";_e.exports=be,be.displayName="vala",be.aliases=[];function be(ae){ae.languages.vala=ae.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/}),ae.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:ae.languages.vala}},string:/[\s\S]+/}}}),ae.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:ae.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(_e,be,ae){"use strict";var oe=ae(51422);_e.exports=Ce,Ce.displayName="vbnet",Ce.aliases=[];function Ce(ke){ke.register(oe),ke.languages.vbnet=ke.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(_e){"use strict";_e.exports=be,be.displayName="velocity",be.aliases=[];function be(ae){(function(oe){oe.languages.velocity=oe.languages.extend("markup",{});var Ce={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:/[(){}[\]:,.]/};Ce.variable.inside={string:Ce.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Ce.number,boolean:Ce.boolean,punctuation:Ce.punctuation},oe.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:Ce}},variable:Ce.variable}),oe.languages.velocity.tag.inside["attr-value"].inside.rest=oe.languages.velocity})(ae)}},37116:function(_e){"use strict";_e.exports=be,be.displayName="verilog",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="vhdl",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="vim",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="visualBasic",be.aliases=[];function be(ae){ae.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:/[{}().,:?]/},ae.languages.vb=ae.languages["visual-basic"],ae.languages.vba=ae.languages["visual-basic"]}},17723:function(_e){"use strict";_e.exports=be,be.displayName="warpscript",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="wasm",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="webIdl",be.aliases=[];function be(ae){(function(oe){var Ce=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,ke="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Ce+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Ie={};oe.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Ce),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+ke),lookbehind:!0,inside:Ie},{pattern:RegExp("("+/\bcallback\s+/.source+Ce+/\s*=\s*/.source+")"+ke),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\btypedef\b\s*)/.source+ke),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Ce),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Ce),lookbehind:!0},RegExp(Ce+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Ce),lookbehind:!0},{pattern:RegExp(ke+"(?="+/\s*(?:\.{3}\s*)?/.source+Ce+/\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 He in oe.languages["web-idl"])He!=="class-name"&&(Ie[He]=oe.languages["web-idl"][He]);oe.languages.webidl=oe.languages["web-idl"]})(ae)}},8921:function(_e){"use strict";_e.exports=be,be.displayName="wiki",be.aliases=[];function be(ae){ae.languages.wiki=ae.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:ae.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),ae.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:ae.languages.markup.tag.inside}}}})}},13429:function(_e){"use strict";_e.exports=be,be.displayName="wolfram",be.aliases=["mathematica","wl","nb"];function be(ae){ae.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:/[{}[\];(),.:]/},ae.languages.mathematica=ae.languages.wolfram,ae.languages.wl=ae.languages.wolfram,ae.languages.nb=ae.languages.wolfram}},65197:function(_e){"use strict";_e.exports=be,be.displayName="wren",be.aliases=[];function be(ae){ae.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:/[\[\](){}.,;]/},ae.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:ae.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(_e){"use strict";_e.exports=be,be.displayName="xeora",be.aliases=["xeoracube"];function be(ae){(function(oe){oe.languages.xeora=oe.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"}}),oe.languages.insertBefore("inside","punctuation",{variable:oe.languages.xeora["function-inline"].inside.variable},oe.languages.xeora["function-block"]),oe.languages.xeoracube=oe.languages.xeora})(ae)}},35:function(_e){"use strict";_e.exports=be,be.displayName="xmlDoc",be.aliases=[];function be(ae){(function(oe){function Ce(Te,ze){oe.languages[Te]&&oe.languages.insertBefore(Te,"comment",{"doc-comment":ze})}var ke=oe.languages.markup.tag,Ie={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:ke}},He={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:ke}};Ce("csharp",Ie),Ce("fsharp",Ie),Ce("vbnet",He)})(ae)}},86095:function(_e){"use strict";_e.exports=be,be.displayName="xojo",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="xquery",be.aliases=[];function be(ae){(function(oe){oe.languages.xquery=oe.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:/[[\](){},;:/]/}),oe.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,oe.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,oe.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,oe.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:oe.languages.xquery,alias:"language-xquery"};var Ce=function(Ie){return typeof Ie=="string"?Ie:typeof Ie.content=="string"?Ie.content:Ie.content.map(Ce).join("")},ke=function(Ie){for(var He=[],Te=0;Te<Ie.length;Te++){var ze=Ie[Te],ot=!1;if(typeof ze!="string"&&(ze.type==="tag"&&ze.content[0]&&ze.content[0].type==="tag"?ze.content[0].content[0].content==="</"?He.length>0&&He[He.length-1].tagName===Ce(ze.content[0].content[1])&&He.pop():ze.content[ze.content.length-1].content==="/>"||He.push({tagName:Ce(ze.content[0].content[1]),openedBraces:0}):He.length>0&&ze.type==="punctuation"&&ze.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!=="{")?He[He.length-1].openedBraces++:He.length>0&&He[He.length-1].openedBraces>0&&ze.type==="punctuation"&&ze.content==="}"?He[He.length-1].openedBraces--:ze.type!=="comment"&&(ot=!0)),(ot||typeof ze=="string")&&He.length>0&&He[He.length-1].openedBraces===0){var Ke=Ce(ze);Te<Ie.length-1&&(typeof Ie[Te+1]=="string"||Ie[Te+1].type==="plain-text")&&(Ke+=Ce(Ie[Te+1]),Ie.splice(Te+1,1)),Te>0&&(typeof Ie[Te-1]=="string"||Ie[Te-1].type==="plain-text")&&(Ke=Ce(Ie[Te-1])+Ke,Ie.splice(Te-1,1),Te--),/^\s+$/.test(Ke)?Ie[Te]=Ke:Ie[Te]=new oe.Token("plain-text",Ke,null,Ke)}ze.content&&typeof ze.content!="string"&&ke(ze.content)}};oe.hooks.add("after-tokenize",function(Ie){Ie.language==="xquery"&&ke(Ie.tokens)})})(ae)}},14409:function(_e){"use strict";_e.exports=be,be.displayName="yaml",be.aliases=["yml"];function be(ae){(function(oe){var Ce=/[*&][^\s[\]{},]+/,ke=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ie="(?:"+ke.source+"(?:[ ]+"+Ce.source+")?|"+Ce.source+"(?:[ ]+"+ke.source+")?)",He=/(?:[^\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 ze(ot,Ke){Ke=(Ke||"").replace(/m/g,"")+"m";var Be=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<value>>/g,function(){return ot});return RegExp(Be,Ke)}oe.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"(?:"+He+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:ze(/\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:ze(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:ze(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:ze(Te),lookbehind:!0,greedy:!0},number:{pattern:ze(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:ke,important:Ce,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},oe.languages.yml=oe.languages.yaml})(ae)}},33460:function(_e){"use strict";_e.exports=be,be.displayName="yang",be.aliases=[];function be(ae){ae.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(_e){"use strict";_e.exports=be,be.displayName="zig",be.aliases=[];function be(ae){(function(oe){function Ce(Ke){return function(){return Ke}}var ke=/\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(?!"+ke.source+")(?!\\d)\\w+\\b",He=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Ce(He)),ze=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Ce(Ie)),ot="(?!\\s)(?:!?\\s*(?:"+Te+"\\s*)*"+ze+")+";oe.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,Ce(ot)).replace(/<ALIGN>/g,Ce(He))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Ce(ot)).replace(/<ALIGN>/g,Ce(He))),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:ke,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:/[.:,;(){}[\]]/},oe.languages.zig["class-name"].forEach(function(Ke){Ke.inside===null&&(Ke.inside=oe.languages.zig)})})(ae)}},92848:function(_e,be){"use strict";var ae;be.Q=Ie,ae=He;var oe="",Ce=" ",ke=/[ \t\n\r\f]+/g;function Ie(Te){var ze=String(Te||oe).trim();return ze===oe?[]:ze.split(ke)}function He(Te){return Te.join(Ce).trim()}},6526:function(_e,be,ae){"use strict";var oe=this&&this.__importDefault||function(He){return He&&He.__esModule?He:{default:He}},Ce=oe(ae(78846)),ke=ae(11160);function Ie(He,Te){var ze={};return!He||typeof He!="string"||(0,Ce.default)(He,function(ot,Ke){ot&&Ke&&(ze[(0,ke.camelCase)(ot,Te)]=Ke)}),ze}Ie.default=Ie,_e.exports=Ie},11160:function(_e,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.camelCase=void 0;var ae=/^--[a-zA-Z0-9_-]+$/,oe=/-([a-z])/g,Ce=/^[^-]+$/,ke=/^-(webkit|moz|ms|o|khtml)-/,Ie=/^-(ms)-/,He=function(Ke){return!Ke||Ce.test(Ke)||ae.test(Ke)},Te=function(Ke,Be){return Be.toUpperCase()},ze=function(Ke,Be){return"".concat(Be,"-")},ot=function(Ke,Be){return Be===void 0&&(Be={}),He(Ke)?Ke:(Ke=Ke.toLowerCase(),Be.reactCompat?Ke=Ke.replace(Ie,ze):Ke=Ke.replace(ke,ze),Ke.replace(oe,Te))};be.camelCase=ot},78846:function(_e,be,ae){"use strict";var oe=this&&this.__importDefault||function(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}};Object.defineProperty(be,"__esModule",{value:!0}),be.default=ke;var Ce=oe(ae(93193));function ke(Ie,He){var Te=null;if(!Ie||typeof Ie!="string")return Te;var ze=(0,Ce.default)(Ie),ot=typeof He=="function";return ze.forEach(function(Ke){if(Ke.type==="declaration"){var Be=Ke.property,gt=Ke.value;ot?He(Be,gt,Ke):gt&&(Te=Te||{},Te[Be]=gt)}}),Te}},97270:function(_e){_e.exports=ae;var be=Object.prototype.hasOwnProperty;function ae(){for(var oe={},Ce=0;Ce<arguments.length;Ce++){var ke=arguments[Ce];for(var Ie in ke)be.call(ke,Ie)&&(oe[Ie]=ke[Ie])}return oe}},20441:function(_e,be,ae){var oe={"./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 Ce(Ie){var He=ke(Ie);return ae(He)}function ke(Ie){if(!ae.o(oe,Ie)){var He=new Error("Cannot find module '"+Ie+"'");throw He.code="MODULE_NOT_FOUND",He}return oe[Ie]}Ce.keys=function(){return Object.keys(oe)},Ce.resolve=ke,_e.exports=Ce,Ce.id=20441},16772:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/aac.b3e9a3ba.svg"},537:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/amr.ce411d51.svg"},86682:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/avi.d7b8adf7.svg"},86476:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/bmp.c62f88c4.svg"},58335:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/default.f48aef2c.svg"},36092:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/doc.e6c75d4c.svg"},11588:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/docx.150535e3.svg"},36117:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/flv.43967063.svg"},96769:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/gif.b2122741.svg"},11595:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/jpeg.fffee469.svg"},3081:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/jpg.2fb4a360.svg"},91339:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/m4a.7994dbc0.svg"},3914:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/md.1f56aa84.svg"},72378:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/mkv.f43ec502.svg"},21307:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/mov.1e1eebb7.svg"},83306:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/mp3.a7e45c91.svg"},96392:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/mp4.31a2d9d7.svg"},85021:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/mpeg.9a0dfa86.svg"},79253:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/ogg.0394dc54.svg"},92481:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/opus.faad335c.svg"},14080:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/pdf.5d12b224.svg"},92357:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/png.eacc8c1c.svg"},48036:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/ppt.d710530e.svg"},56741:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/pptx.d78add0d.svg"},73810:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/txt.53f7213d.svg"},93878:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/wav.a76e7dde.svg"},39795:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/webm.3a7e6ebc.svg"},46381:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/wma.a57b430b.svg"},65016:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/wmv.f22ee4a1.svg"},3624:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/wps.f48aef2c.svg"},88446:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/xls.0db636e2.svg"},42623:function(_e,be,ae){"use strict";_e.exports=ae.p+"static/xlsx.5d09490a.svg"},93314:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},73631:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},36413:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAABPRJREFUSEudlXtQVGUYxp/vnLOcXcDltsACCyjesAypbMbQEpsxCyfDZtbyMqOMgZPSaDOYXUaGSzhoNXkBBbRGpXEGCx1Xa1KsTDTJQcUQyJ3RVEA22GUX3N2zl3POV7sMTCuE1Tdz5vzxvuf3fs97OwSPOHNnL13IgDwDyGGUIY0XLh8/9ahvfHYyllNmZibnHVDHcAo2WZZpLQX5DKAaAuQDZAeFHBYTOr0qLbhAhDPaVnSOuB7mBIC3Lul+kiX0iV96y3Ps3q7M8W42M2ItolXpvrv9wbBcWtFxbe/f/UfAW7PvP01k6bKCJ0yXcAbtJsM/cgkhKN/2MVKmJOHkPis6b4pLSk4knBwTXPhq59IXVqiPzV+mxoBtEPVHv4Xb7QEowPMKhE4IgSY6EnEJsZg4KREqldLPqdtuQdsl1+rSE7rDo8CUFjHNX8Qd6JX0OVm5Ef+mNiM+hr1WXDnt2FRiSNw1Gnw97wPT/diyxtaN0G+OGrG3OgUwf91qBs9DFGWIXgmiKEH0ypAkGZrYCThbO4gL9Q+KSwyJRQFgem3dVBDaNmANUxxrKEBOWQw6rS4MDnqQO9gDQ+pk9LWbQGmgEF+epz6mRdMpJxoODu4qMeg2BYKv5+0AxeYHt8Nx6Ow7yK/U4mynFfmmblQlJSEzVg1bvwM+EMcx4BQsOI4Fy/m0AFcaHDhZYTtcbNCtDgS35HUASB1o1KCq6S1s+VIHd3sbhPgUqNVKMMyYrT7C6GgScGrP3UvvHpmR8TDYCUBlqdeh5sYKFOxUQDp/BsqVayGDwOT1Ij5IEZAHX1pkWfaruNfuwffVV7E271A2Sas+MexIaEuuXXYzIea6ZBztXoycV65CMWkipLR52Gs1Q6VgsYzwGLQJkCQKWRoqnO9oYtWgHhW+Kr2B/LeruhHmmUImHfRPIaEtea1eS9BM6zfx6I9MQnKcDfZFeuyyufCDy4HGp1Jh67PDYXeDZZmhh2PAsAxCQnl4nAxqNhpRsHmnb0GsJ7Nq9g2Br62rdHcp1zuaE6BKVIHRxoN9MRtnuqwID+KQkRA2bl97PRTly+9ga2G5D3eRpFfPGwK35ma4jKEXxZ5ksEoWTFwC+Kyl/2lISvXdeP+9beA40QurMZgsOCf6S24/+OFPjKh93h+J56Fc+SYoCKhM8bnZgteiwhHBsP7hkHyDIsqQRMkfPDwyBEUbbmHVikpMDnWAqBBNpteYh8AV2xcyyuDTw2tUuSoXl/pcMDpdOEcEVGq1uHvLPEpFG3qxgzmPZnun35ZCZPQwrF6Y8+nXI03q3P9JBQi/gRIWwWvWoe6OBRU2CwzTUjCBZzFgdfqLNjwcRq8Zczv2wCF7AgKqGI4Kkpgd0P2m3ZV1XnWyXrd6MZEl6pccxLNj5vsNYy3qzC0Bttej0rE9eTEmXi37bdRY/XzkZuGzy6cVP6p6SVdKkaqMQXyQGof6mrEmejY+SnoZL7Xvxw3BNPrXRCnVADjvETxcz21ximAnxOOS4RYoPC4KjyD73zmJlVBGAE1pG1Hb2wy9ZhYWtlXD6OoDQOm4i+C7svq4O1265fYH6jkRkf0z1Go7r1QKMpXZW4Xpv4a0RFnmL4uaheLERcjqOIDf3f3DQhvG3zDj5ePHTeEIYi4AeDzQjVrAkYz/D/bRmreEwePdAoosACwILkISt+G53ff+BFCGCYWbZ5SAAAAAAElFTkSuQmCC"},96908:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},69889:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Ce}});var oe=ae(42913);function Ce(ke,Ie){var He=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(!He){if(Array.isArray(ke)||(He=(0,oe.Z)(ke))||Ie&&ke&&typeof ke.length=="number"){He&&(ke=He);var Te=0,ze=function(){};return{s:ze,n:function(){return Te>=ke.length?{done:!0}:{done:!1,value:ke[Te++]}},e:function(Je){throw Je},f:ze}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ot,Ke=!0,Be=!1;return{s:function(){He=He.call(ke)},n:function(){var Je=He.next();return Ke=Je.done,Je},e:function(Je){Be=!0,ot=Je},f:function(){try{Ke||He.return==null||He.return()}finally{if(Be)throw ot}}}}},90302:function(_e,be,ae){"use strict";ae.d(be,{ZP:function(){return Ee}});const oe=-1,Ce=0,ke=1,Ie=2,He=3,Te=4,ze=5,ot=6,Ke=7,Be=8,gt=typeof self=="object"?self:globalThis,Je=(Pe,Ne)=>{const We=(Ye,Qe)=>(Pe.set(Qe,Ye),Ye),tt=Ye=>{if(Pe.has(Ye))return Pe.get(Ye);const[Qe,lt]=Ne[Ye];switch(Qe){case Ce:case oe:return We(lt,Ye);case ke:{const nt=We([],Ye);for(const yt of lt)nt.push(tt(yt));return nt}case Ie:{const nt=We({},Ye);for(const[yt,vt]of lt)nt[tt(yt)]=tt(vt);return nt}case He:return We(new Date(lt),Ye);case Te:{const{source:nt,flags:yt}=lt;return We(new RegExp(nt,yt),Ye)}case ze:{const nt=We(new Map,Ye);for(const[yt,vt]of lt)nt.set(tt(yt),tt(vt));return nt}case ot:{const nt=We(new Set,Ye);for(const yt of lt)nt.add(tt(yt));return nt}case Ke:{const{name:nt,message:yt}=lt;return We(new gt[nt](yt),Ye)}case Be:return We(BigInt(lt),Ye);case"BigInt":return We(Object(BigInt(lt)),Ye);case"ArrayBuffer":return We(new Uint8Array(lt).buffer,lt);case"DataView":{const{buffer:nt}=new Uint8Array(lt);return We(new DataView(nt),lt)}}return We(new gt[Qe](lt),Ye)};return tt},wt=Pe=>Je(new Map,Pe)(0),Fe="",{toString:te}={},{keys:ee}=Object,he=Pe=>{const Ne=typeof Pe;if(Ne!=="object"||!Pe)return[Ce,Ne];const We=te.call(Pe).slice(8,-1);switch(We){case"Array":return[ke,Fe];case"Object":return[Ie,Fe];case"Date":return[He,Fe];case"RegExp":return[Te,Fe];case"Map":return[ze,Fe];case"Set":return[ot,Fe];case"DataView":return[ke,We]}return We.includes("Array")?[ke,We]:We.includes("Error")?[Ke,We]:[Ie,We]},ue=([Pe,Ne])=>Pe===Ce&&(Ne==="function"||Ne==="symbol"),fe=(Pe,Ne,We,tt)=>{const Ye=(lt,nt)=>{const yt=tt.push(lt)-1;return We.set(nt,yt),yt},Qe=lt=>{if(We.has(lt))return We.get(lt);let[nt,yt]=he(lt);switch(nt){case Ce:{let St=lt;switch(yt){case"bigint":nt=Be,St=lt.toString();break;case"function":case"symbol":if(Pe)throw new TypeError("unable to serialize "+yt);St=null;break;case"undefined":return Ye([oe],lt)}return Ye([nt,St],lt)}case ke:{if(yt){let jt=lt;return yt==="DataView"?jt=new Uint8Array(lt.buffer):yt==="ArrayBuffer"&&(jt=new Uint8Array(lt)),Ye([yt,[...jt]],lt)}const St=[],Lt=Ye([nt,St],lt);for(const jt of lt)St.push(Qe(jt));return Lt}case Ie:{if(yt)switch(yt){case"BigInt":return Ye([yt,lt.toString()],lt);case"Boolean":case"Number":case"String":return Ye([yt,lt.valueOf()],lt)}if(Ne&&"toJSON"in lt)return Qe(lt.toJSON());const St=[],Lt=Ye([nt,St],lt);for(const jt of ee(lt))(Pe||!ue(he(lt[jt])))&&St.push([Qe(jt),Qe(lt[jt])]);return Lt}case He:return Ye([nt,lt.toISOString()],lt);case Te:{const{source:St,flags:Lt}=lt;return Ye([nt,{source:St,flags:Lt}],lt)}case ze:{const St=[],Lt=Ye([nt,St],lt);for(const[jt,Bt]of lt)(Pe||!(ue(he(jt))||ue(he(Bt))))&&St.push([Qe(jt),Qe(Bt)]);return Lt}case ot:{const St=[],Lt=Ye([nt,St],lt);for(const jt of lt)(Pe||!ue(he(jt)))&&St.push(Qe(jt));return Lt}}const{message:vt}=lt;return Ye([nt,{name:yt,message:vt}],lt)};return Qe},me=(Pe,{json:Ne,lossy:We}={})=>{const tt=[];return fe(!(Ne||We),!!Ne,new Map,tt)(Pe),tt};var Ee=typeof structuredClone=="function"?(Pe,Ne)=>Ne&&("json"in Ne||"lossy"in Ne)?wt(me(Pe,Ne)):structuredClone(Pe):(Pe,Ne)=>wt(me(Pe,Ne))},11630:function(_e,be,ae){"use strict";ae.d(be,{P:function(){return Ce},Q:function(){return oe}});function oe(ke){const Ie=[],He=String(ke||"");let Te=He.indexOf(","),ze=0,ot=!1;for(;!ot;){Te===-1&&(Te=He.length,ot=!0);const Ke=He.slice(ze,Te).trim();(Ke||!ot)&&Ie.push(Ke),ze=Te+1,Te=He.indexOf(",",ze)}return Ie}function Ce(ke,Ie){const He=Ie||{};return(ke[ke.length-1]===""?[...ke,""]:ke).join((He.padRight?" ":"")+","+(He.padLeft===!1?"":" ")).trim()}},87342:function(_e,be,ae){"use strict";ae.d(be,{ok:function(){return ke},t1:function(){return Ie}});function oe(He){return He}function Ce(){}function ke(){}function Ie(){}},40797:function(_e,be,ae){"use strict";ae.d(be,{N:function(){return wt}});var oe=ae(81994),Ce=ae(43309);function ke(te,ee){return Ie(te,ee||{})||{type:"root",children:[]}}function Ie(te,ee){const he=He(te,ee);return he&&ee.afterTransform&&ee.afterTransform(te,he),he}function He(te,ee){switch(te.nodeType){case 1:return Be(te,ee);case 3:return ot(te);case 8:return Ke(te);case 9:return Te(te,ee);case 10:return ze();case 11:return Te(te,ee);default:return}}function Te(te,ee){return{type:"root",children:gt(te,ee)}}function ze(){return{type:"doctype"}}function ot(te){return{type:"text",value:te.nodeValue||""}}function Ke(te){return{type:"comment",value:te.nodeValue||""}}function Be(te,ee){const he=te.namespaceURI,ue=he===Ce.t.svg?oe.s:oe.h,fe=he===Ce.t.html?te.tagName.toLowerCase():te.tagName,me=he===Ce.t.html&&fe==="template"?te.content:te,Ee=te.getAttributeNames(),Pe={};let Ne=-1;for(;++Ne<Ee.length;)Pe[Ee[Ne]]=te.getAttribute(Ee[Ne])||"";return ue(fe,Pe,gt(me,ee))}function gt(te,ee){const he=te.childNodes,ue=[];let fe=-1;for(;++fe<he.length;){const me=Ie(he[fe],ee);me!==void 0&&ue.push(me)}return ue}const Je=new DOMParser;function wt(te,ee){const he=ee!=null&&ee.fragment?Fe(te):Je.parseFromString(te,"text/html");return ke(he)}function Fe(te){const ee=document.createElement("template");return ee.innerHTML=te,ee.content}},91378:function(_e,be,ae){"use strict";ae.d(be,{l:function(){return ue}});var oe=ae(10502);const Ce=function(lt,nt,yt){const vt=(0,oe.O)(yt);if(!lt||!lt.type||!lt.children)throw new Error("Expected parent node");if(typeof nt=="number"){if(nt<0||nt===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(nt=lt.children.indexOf(nt),nt<0)throw new Error("Expected child node or index");for(;++nt<lt.children.length;)if(vt(lt.children[nt],nt,lt))return lt.children[nt]},ke=function(lt,nt,yt,vt,St){const Lt=Ie(nt);if(yt!=null&&(typeof yt!="number"||yt<0||yt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(vt!=null&&(!vt.type||!vt.children))throw new Error("Expected valid `parent`");if(yt==null!=(vt==null))throw new Error("Expected both `index` and `parent`");return Ke(lt)?Lt.call(St,lt,yt,vt):!1},Ie=function(lt){if(lt==null)return ot;if(typeof lt=="string")return Te(lt);if(typeof lt=="object")return He(lt);if(typeof lt=="function")return ze(lt);throw new Error("Expected function, string, or array as `test`")};function He(lt){const nt=[];let yt=-1;for(;++yt<lt.length;)nt[yt]=Ie(lt[yt]);return ze(vt);function vt(...St){let Lt=-1;for(;++Lt<nt.length;)if(nt[Lt].apply(this,St))return!0;return!1}}function Te(lt){return ze(nt);function nt(yt){return yt.tagName===lt}}function ze(lt){return nt;function nt(yt,vt,St){return!!(Ke(yt)&&lt.call(this,yt,typeof vt=="number"?vt:void 0,St||void 0))}}function ot(lt){return!!(lt&&typeof lt=="object"&&"type"in lt&&lt.type==="element"&&"tagName"in lt&&typeof lt.tagName=="string")}function Ke(lt){return lt!==null&&typeof lt=="object"&&"type"in lt&&"tagName"in lt}const Be=/\n/g,gt=/[\t ]+/g,Je=Ie("br"),wt=Ie(Ye),Fe=Ie("p"),te=Ie("tr"),ee=Ie(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",tt,Qe]),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 ue(lt,nt){const yt=nt||{},vt="children"in lt?lt.children:[],St=he(lt),Lt=We(lt,{whitespace:yt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),jt=[];(lt.type==="text"||lt.type==="comment")&&jt.push(...Ee(lt,{whitespace:Lt,breakBefore:!0,breakAfter:!0}));let Bt=-1;for(;++Bt<vt.length;)jt.push(...fe(vt[Bt],lt,{whitespace:Lt,breakBefore:Bt?void 0:St,breakAfter:Bt<vt.length-1?Je(vt[Bt+1]):St}));const cn=[];let pt;for(Bt=-1;++Bt<jt.length;){const ut=jt[Bt];typeof ut=="number"?pt!==void 0&&ut>pt&&(pt=ut):ut&&(pt!==void 0&&pt>-1&&cn.push(`
`.repeat(pt)||" "),pt=-1,cn.push(ut))}return cn.join("")}function fe(lt,nt,yt){return lt.type==="element"?me(lt,nt,yt):lt.type==="text"?yt.whitespace==="normal"?Ee(lt,yt):Pe(lt):[]}function me(lt,nt,yt){const vt=We(lt,yt),St=lt.children||[];let Lt=-1,jt=[];if(ee(lt))return jt;let Bt,cn;for(Je(lt)||te(lt)&&Ce(nt,lt,te)?cn=`
`:Fe(lt)?(Bt=2,cn=2):he(lt)&&(Bt=1,cn=1);++Lt<St.length;)jt=jt.concat(fe(St[Lt],lt,{whitespace:vt,breakBefore:Lt?void 0:Bt,breakAfter:Lt<St.length-1?Je(St[Lt+1]):cn}));return wt(lt)&&Ce(nt,lt,wt)&&jt.push(" "),Bt&&jt.unshift(Bt),cn&&jt.push(cn),jt}function Ee(lt,nt){const yt=String(lt.value),vt=[],St=[];let Lt=0;for(;Lt<=yt.length;){Be.lastIndex=Lt;const cn=Be.exec(yt),pt=cn&&"index"in cn?cn.index:yt.length;vt.push(Ne(yt.slice(Lt,pt).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),Lt===0?nt.breakBefore:!0,pt===yt.length?nt.breakAfter:!0)),Lt=pt+1}let jt=-1,Bt;for(;++jt<vt.length;)vt[jt].charCodeAt(vt[jt].length-1)===8203||jt<vt.length-1&&vt[jt+1].charCodeAt(0)===8203?(St.push(vt[jt]),Bt=void 0):vt[jt]?(typeof Bt=="number"&&St.push(Bt),St.push(vt[jt]),Bt=0):(jt===0||jt===vt.length-1)&&St.push(0);return St}function Pe(lt){return[String(lt.value)]}function Ne(lt,nt,yt){const vt=[];let St=0,Lt;for(;St<lt.length;){gt.lastIndex=St;const jt=gt.exec(lt);Lt=jt?jt.index:lt.length,!St&&!Lt&&jt&&!nt&&vt.push(""),St!==Lt&&vt.push(lt.slice(St,Lt)),St=jt?Lt+jt[0].length:Lt}return St!==Lt&&!yt&&vt.push(""),vt.join(" ")}function We(lt,nt){if(lt.type==="element"){const yt=lt.properties||{};switch(lt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return yt.wrap?"pre-wrap":"pre";case"td":case"th":return yt.noWrap?"nowrap":nt.whitespace;case"textarea":return"pre-wrap";default:}}return nt.whitespace}function tt(lt){return!!(lt.properties||{}).hidden}function Ye(lt){return lt.tagName==="td"||lt.tagName==="th"}function Qe(lt){return lt.tagName==="dialog"&&!(lt.properties||{}).open}},81994:function(_e,be,ae){"use strict";ae.d(be,{h:function(){return ee},s:function(){return he}});var oe=ae(14470),Ce=ae(11630);const ke=/[#.]/g;function Ie(ue,fe){const me=ue||"",Ee={};let Pe=0,Ne,We;for(;Pe<me.length;){ke.lastIndex=Pe;const tt=ke.exec(me),Ye=me.slice(Pe,tt?tt.index:me.length);Ye&&(Ne?Ne==="#"?Ee.id=Ye:Array.isArray(Ee.className)?Ee.className.push(Ye):Ee.className=[Ye]:We=Ye,Pe+=Ye.length),tt&&(Ne=tt[0],Pe++)}return{type:"element",tagName:We||fe||"div",properties:Ee,children:[]}}var He=ae(86825),Te=ae(13830),ze=ae(71523);function ot(ue,fe,me){const Ee=me?Fe(me):void 0;function Pe(Ne,We,...tt){let Ye;if(Ne==null){Ye={type:"root",children:[]};const Qe=We;tt.unshift(Qe)}else{Ye=Ie(Ne,fe);const Qe=Ye.tagName.toLowerCase(),lt=Ee?Ee.get(Qe):void 0;if(Ye.tagName=lt||Qe,Ke(We))tt.unshift(We);else for(const[nt,yt]of Object.entries(We))Be(ue,Ye.properties,nt,yt)}for(const Qe of tt)gt(Ye.children,Qe);return Ye.type==="element"&&Ye.tagName==="template"&&(Ye.content={type:"root",children:Ye.children},Ye.children=[]),Ye}return Pe}function Ke(ue){if(ue===null||typeof ue!="object"||Array.isArray(ue))return!0;if(typeof ue.type!="string")return!1;const fe=ue,me=Object.keys(ue);for(const Ee of me){const Pe=fe[Ee];if(Pe&&typeof Pe=="object"){if(!Array.isArray(Pe))return!0;const Ne=Pe;for(const We of Ne)if(typeof We!="number"&&typeof We!="string")return!0}}return!!("children"in ue&&Array.isArray(ue.children))}function Be(ue,fe,me,Ee){const Pe=(0,He.s)(ue,me);let Ne;if(Ee!=null){if(typeof Ee=="number"){if(Number.isNaN(Ee))return;Ne=Ee}else typeof Ee=="boolean"?Ne=Ee:typeof Ee=="string"?Pe.spaceSeparated?Ne=(0,ze.Q)(Ee):Pe.commaSeparated?Ne=(0,Ce.Q)(Ee):Pe.commaOrSpaceSeparated?Ne=(0,ze.Q)((0,Ce.Q)(Ee).join(" ")):Ne=Je(Pe,Pe.property,Ee):Array.isArray(Ee)?Ne=[...Ee]:Ne=Pe.property==="style"?wt(Ee):String(Ee);if(Array.isArray(Ne)){const We=[];for(const tt of Ne)We.push(Je(Pe,Pe.property,tt));Ne=We}Pe.property==="className"&&Array.isArray(fe.className)&&(Ne=fe.className.concat(Ne)),fe[Pe.property]=Ne}}function gt(ue,fe){if(fe!=null)if(typeof fe=="number"||typeof fe=="string")ue.push({type:"text",value:String(fe)});else if(Array.isArray(fe))for(const me of fe)gt(ue,me);else if(typeof fe=="object"&&"type"in fe)fe.type==="root"?gt(ue,fe.children):ue.push(fe);else throw new Error("Expected node, nodes, or string, got `"+fe+"`")}function Je(ue,fe,me){if(typeof me=="string"){if(ue.number&&me&&!Number.isNaN(Number(me)))return Number(me);if((ue.boolean||ue.overloadedBoolean)&&(me===""||(0,Te.F)(me)===(0,Te.F)(fe)))return!0}return me}function wt(ue){const fe=[];for(const[me,Ee]of Object.entries(ue))fe.push([me,Ee].join(": "));return fe.join("; ")}function Fe(ue){const fe=new Map;for(const me of ue)fe.set(me.toLowerCase(),me);return fe}const te=["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"],ee=ot(oe.dy,"div"),he=ot(oe.YP,"g",te)},26735:function(_e,be,ae){"use strict";ae.d(be,{f:function(){return Ce}});var oe=ae(80722);function Ce(ke,Ie,He,Te){const ze=Te?Te-1:Number.POSITIVE_INFINITY;let ot=0;return Ke;function Ke(gt){return(0,oe.xz)(gt)?(ke.enter(He),Be(gt)):Ie(gt)}function Be(gt){return(0,oe.xz)(gt)&&ot++<ze?(ke.consume(gt),Be):(ke.exit(He),Ie(gt))}}},80722:function(_e,be,ae){"use strict";ae.d(be,{AF:function(){return Te},Av:function(){return Ie},B8:function(){return Je},Ch:function(){return ot},H$:function(){return Ce},Xh:function(){return gt},jv:function(){return oe},n9:function(){return ke},pY:function(){return He},sR:function(){return ze},xz:function(){return Be},z3:function(){return Ke}});const oe=wt(/[A-Za-z]/),Ce=wt(/[\dA-Za-z]/),ke=wt(/[#-'*+\--9=?A-Z^-~]/);function Ie(Fe){return Fe!==null&&(Fe<32||Fe===127)}const He=wt(/\d/),Te=wt(/[\dA-Fa-f]/),ze=wt(/[!-/:-@[-`{-~]/);function ot(Fe){return Fe!==null&&Fe<-2}function Ke(Fe){return Fe!==null&&(Fe<0||Fe===32)}function Be(Fe){return Fe===-2||Fe===-1||Fe===32}const gt=wt(new RegExp("\\p{P}|\\p{S}","u")),Je=wt(/\s/);function wt(Fe){return te;function te(ee){return ee!==null&&ee>-1&&Fe.test(String.fromCharCode(ee))}}},14470:function(_e,be,ae){"use strict";ae.d(be,{dy:function(){return te},YP:function(){return ee}});class oe{constructor(ue,fe,me){this.normal=fe,this.property=ue,me&&(this.space=me)}}oe.prototype.normal={},oe.prototype.property={},oe.prototype.space=void 0;function Ce(he,ue){const fe={},me={};for(const Ee of he)Object.assign(fe,Ee.property),Object.assign(me,Ee.normal);return new oe(fe,me,ue)}var ke=ae(13830),Ie=ae(53538);function He(he){const ue={},fe={};for(const[me,Ee]of Object.entries(he.properties)){const Pe=new Ie.I(me,he.transform(he.attributes||{},me),Ee,he.space);he.mustUseProperty&&he.mustUseProperty.includes(me)&&(Pe.mustUseProperty=!0),ue[me]=Pe,fe[(0,ke.F)(me)]=me,fe[(0,ke.F)(Pe.attribute)]=me}return new oe(ue,fe,he.space)}var Te=ae(71337);const ze=He({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,ue){return ue==="role"?ue:"aria-"+ue.slice(4).toLowerCase()}});function ot(he,ue){return ue in he?he[ue]:ue}function Ke(he,ue){return ot(he,ue.toLowerCase())}const Be=He({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:Ke}),gt=He({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:ot}),Je=He({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(he,ue){return"xlink:"+ue.slice(5).toLowerCase()}}),wt=He({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ke}),Fe=He({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,ue){return"xml:"+ue.slice(3).toLowerCase()}}),te=Ce([ze,Be,Je,wt,Fe],"html"),ee=Ce([ze,gt,Je,wt,Fe],"svg")},86825:function(_e,be,ae){"use strict";ae.d(be,{s:function(){return ze}});var oe=ae(53538),Ce=ae(25629),ke=ae(13830);const Ie=/[A-Z]/g,He=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function ze(Be,gt){const Je=(0,ke.F)(gt);let wt=gt,Fe=Ce.k;if(Je in Be.normal)return Be.property[Be.normal[Je]];if(Je.length>4&&Je.slice(0,4)==="data"&&Te.test(gt)){if(gt.charAt(4)==="-"){const te=gt.slice(5).replace(He,Ke);wt="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=gt.slice(4);if(!He.test(te)){let ee=te.replace(Ie,ot);ee.charAt(0)!=="-"&&(ee="-"+ee),gt="data"+ee}}Fe=oe.I}return new Fe(wt,gt)}function ot(Be){return"-"+Be.toLowerCase()}function Ke(Be){return Be.charAt(1).toUpperCase()}},13830:function(_e,be,ae){"use strict";ae.d(be,{F:function(){return oe}});function oe(Ce){return Ce.toLowerCase()}},53538:function(_e,be,ae){"use strict";ae.d(be,{I:function(){return Ie}});var oe=ae(25629),Ce=ae(71337);const ke=Object.keys(Ce);class Ie extends oe.k{constructor(ze,ot,Ke,Be){let gt=-1;if(super(ze,ot),He(this,"space",Be),typeof Ke=="number")for(;++gt<ke.length;){const Je=ke[gt];He(this,ke[gt],(Ke&Ce[Je])===Ce[Je])}}}Ie.prototype.defined=!0;function He(Te,ze,ot){ot&&(Te[ze]=ot)}},25629:function(_e,be,ae){"use strict";ae.d(be,{k:function(){return oe}});class oe{constructor(ke,Ie){this.attribute=Ie,this.property=ke}}oe.prototype.attribute="",oe.prototype.booleanish=!1,oe.prototype.boolean=!1,oe.prototype.commaOrSpaceSeparated=!1,oe.prototype.commaSeparated=!1,oe.prototype.defined=!1,oe.prototype.mustUseProperty=!1,oe.prototype.number=!1,oe.prototype.overloadedBoolean=!1,oe.prototype.property="",oe.prototype.spaceSeparated=!1,oe.prototype.space=void 0},71337:function(_e,be,ae){"use strict";ae.r(be),ae.d(be,{boolean:function(){return Ce},booleanish:function(){return ke},commaOrSpaceSeparated:function(){return ot},commaSeparated:function(){return ze},number:function(){return He},overloadedBoolean:function(){return Ie},spaceSeparated:function(){return Te}});let oe=0;const Ce=Ke(),ke=Ke(),Ie=Ke(),He=Ke(),Te=Ke(),ze=Ke(),ot=Ke();function Ke(){return Qy(2,++oe)}},72460:function(_e,be,ae){"use strict";ae.d(be,{UG:function(){return bs}});var oe={};ae.r(oe),ae.d(oe,{attentionMarkers:function(){return ua},contentInitial:function(){return ma},disable:function(){return Ua},document:function(){return Do},flow:function(){return js},flowInitial:function(){return Ga},insideSpan:function(){return la},string:function(){return as},text:function(){return Fr}});var Ce=ae(87342),ke=ae(11630);const Ie=/[$_\p{ID_Start}]/u,He=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,ze=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ot=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ke={};function Be(we){return we?Ie.test(String.fromCodePoint(we)):!1}function gt(we,Ze){const ct=(Ze||Ke).jsx?Te:He;return we?ct.test(String.fromCodePoint(we)):!1}function Je(we,Ze){return((Ze||Ke).jsx?ot:ze).test(we)}const wt=/[ \t\n\f\r]/g;function Fe(we){return typeof we=="object"?we.type==="text"?te(we.value):!1:te(we)}function te(we){return we.replace(wt,"")===""}var ee=ae(14470),he=ae(86825);const ue={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 fe=ae(71523),me=ae(6526),Ee=ae(17970);function Pe(we){return!we||typeof we!="object"?"":"position"in we||"type"in we?We(we.position):"start"in we||"end"in we?We(we):"line"in we||"column"in we?Ne(we):""}function Ne(we){return tt(we&&we.line)+":"+tt(we&&we.column)}function We(we){return Ne(we&&we.start)+"-"+Ne(we&&we.end)}function tt(we){return we&&typeof we=="number"?we:1}class Ye extends Error{constructor(Ze,et,ct){super(),typeof et=="string"&&(ct=et,et=void 0);let kt="",Mt={},tn=!1;if(et&&("line"in et&&"column"in et?Mt={place:et}:"start"in et&&"end"in et?Mt={place:et}:"type"in et?Mt={ancestors:[et],place:et.position}:Mt=Qo({},et)),typeof Ze=="string"?kt=Ze:!Mt.cause&&Ze&&(tn=!0,kt=Ze.message,Mt.cause=Ze),!Mt.ruleId&&!Mt.source&&typeof ct=="string"){const vi=ct.indexOf(":");vi===-1?Mt.ruleId=ct:(Mt.source=ct.slice(0,vi),Mt.ruleId=ct.slice(vi+1))}if(!Mt.place&&Mt.ancestors&&Mt.ancestors){const vi=Mt.ancestors[Mt.ancestors.length-1];vi&&(Mt.place=vi.position)}const En=Mt.place&&"start"in Mt.place?Mt.place.start:Mt.place;this.ancestors=Mt.ancestors||void 0,this.cause=Mt.cause||void 0,this.column=En?En.column:void 0,this.fatal=void 0,this.file,this.message=kt,this.line=En?En.line:void 0,this.name=Pe(Mt.place)||"1:1",this.place=Mt.place||void 0,this.reason=this.message,this.ruleId=Mt.ruleId||void 0,this.source=Mt.source||void 0,this.stack=tn&&Mt.cause&&typeof Mt.cause.stack=="string"?Mt.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ye.prototype.file="",Ye.prototype.name="",Ye.prototype.reason="",Ye.prototype.message="",Ye.prototype.stack="",Ye.prototype.column=void 0,Ye.prototype.line=void 0,Ye.prototype.ancestors=void 0,Ye.prototype.cause=void 0,Ye.prototype.fatal=void 0,Ye.prototype.place=void 0,Ye.prototype.ruleId=void 0,Ye.prototype.source=void 0;const Qe={}.hasOwnProperty,lt=new Map,nt=/[A-Z]/g,yt=new Set(["table","tbody","thead","tfoot","tr"]),vt=new Set(["td","th"]),St="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Lt(we,Ze){if(!Ze||Ze.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const et=Ze.filePath||void 0;let ct;if(Ze.development){if(typeof Ze.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");ct=nn(et,Ze.jsxDEV)}else{if(typeof Ze.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Ze.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");ct=Xt(et,Ze.jsx,Ze.jsxs)}const kt={Fragment:Ze.Fragment,ancestors:[],components:Ze.components||{},create:ct,elementAttributeNameCase:Ze.elementAttributeNameCase||"react",evaluater:Ze.createEvaluater?Ze.createEvaluater():void 0,filePath:et,ignoreInvalidStyle:Ze.ignoreInvalidStyle||!1,passKeys:Ze.passKeys!==!1,passNode:Ze.passNode||!1,schema:Ze.space==="svg"?ee.YP:ee.dy,stylePropertyNameCase:Ze.stylePropertyNameCase||"dom",tableCellAlignToStyle:Ze.tableCellAlignToStyle!==!1},Mt=jt(kt,we,void 0);return Mt&&typeof Mt!="string"?Mt:kt.create(we,kt.Fragment,{children:Mt||void 0},void 0)}function jt(we,Ze,et){if(Ze.type==="element")return Bt(we,Ze,et);if(Ze.type==="mdxFlowExpression"||Ze.type==="mdxTextExpression")return cn(we,Ze);if(Ze.type==="mdxJsxFlowElement"||Ze.type==="mdxJsxTextElement")return ut(we,Ze,et);if(Ze.type==="mdxjsEsm")return pt(we,Ze);if(Ze.type==="root")return at(we,Ze,et);if(Ze.type==="text")return Wt(we,Ze)}function Bt(we,Ze,et){const ct=we.schema;let kt=ct;Ze.tagName.toLowerCase()==="svg"&&ct.space==="html"&&(kt=ee.YP,we.schema=kt),we.ancestors.push(Ze);const Mt=Dn(we,Ze.tagName,!1),tn=Nn(we,Ze);let En=At(we,Ze);return yt.has(Ze.tagName)&&(En=En.filter(function(vi){return typeof vi=="string"?!Fe(vi):!0})),rn(we,tn,Mt,Ze),Tt(tn,En),we.ancestors.pop(),we.schema=ct,we.create(Ze,Mt,tn,et)}function cn(we,Ze){if(Ze.data&&Ze.data.estree&&we.evaluater){const ct=Ze.data.estree.body[0];return(0,Ce.ok)(ct.type==="ExpressionStatement"),we.evaluater.evaluateExpression(ct.expression)}qe(we,Ze.position)}function pt(we,Ze){if(Ze.data&&Ze.data.estree&&we.evaluater)return we.evaluater.evaluateProgram(Ze.data.estree);qe(we,Ze.position)}function ut(we,Ze,et){const ct=we.schema;let kt=ct;Ze.name==="svg"&&ct.space==="html"&&(kt=ee.YP,we.schema=kt),we.ancestors.push(Ze);const Mt=Ze.name===null?we.Fragment:Dn(we,Ze.name,!0),tn=Rt(we,Ze),En=At(we,Ze);return rn(we,tn,Mt,Ze),Tt(tn,En),we.ancestors.pop(),we.schema=ct,we.create(Ze,Mt,tn,et)}function at(we,Ze,et){const ct={};return Tt(ct,At(we,Ze)),we.create(Ze,we.Fragment,ct,et)}function Wt(we,Ze){return Ze.value}function rn(we,Ze,et,ct){typeof et!="string"&&et!==we.Fragment&&we.passNode&&(Ze.node=ct)}function Tt(we,Ze){if(Ze.length>0){const et=Ze.length>1?Ze:Ze[0];et&&(we.children=et)}}function Xt(we,Ze,et){return ct;function ct(kt,Mt,tn,En){const bi=Array.isArray(tn.children)?et:Ze;return En?bi(Mt,tn,En):bi(Mt,tn)}}function nn(we,Ze){return et;function et(ct,kt,Mt,tn){const En=Array.isArray(Mt.children),vi=(0,Ee.Pk)(ct);return Ze(kt,Mt,tn,En,{columnNumber:vi?vi.column-1:void 0,fileName:we,lineNumber:vi?vi.line:void 0},void 0)}}function Nn(we,Ze){const et={};let ct,kt;for(kt in Ze.properties)if(kt!=="children"&&Qe.call(Ze.properties,kt)){const Mt=Zt(we,kt,Ze.properties[kt]);if(Mt){const[tn,En]=Mt;we.tableCellAlignToStyle&&tn==="align"&&typeof En=="string"&&vt.has(Ze.tagName)?ct=En:et[tn]=En}}if(ct){const Mt=et.style||(et.style={});Mt[we.stylePropertyNameCase==="css"?"text-align":"textAlign"]=ct}return et}function Rt(we,Ze){const et={};for(const ct of Ze.attributes)if(ct.type==="mdxJsxExpressionAttribute")if(ct.data&&ct.data.estree&&we.evaluater){const Mt=ct.data.estree.body[0];(0,Ce.ok)(Mt.type==="ExpressionStatement");const tn=Mt.expression;(0,Ce.ok)(tn.type==="ObjectExpression");const En=tn.properties[0];(0,Ce.ok)(En.type==="SpreadElement"),Object.assign(et,we.evaluater.evaluateExpression(En.argument))}else qe(we,Ze.position);else{const kt=ct.name;let Mt;if(ct.value&&typeof ct.value=="object")if(ct.value.data&&ct.value.data.estree&&we.evaluater){const En=ct.value.data.estree.body[0];(0,Ce.ok)(En.type==="ExpressionStatement"),Mt=we.evaluater.evaluateExpression(En.expression)}else qe(we,Ze.position);else Mt=ct.value===null?!0:ct.value;et[kt]=Mt}return et}function At(we,Ze){const et=[];let ct=-1;const kt=we.passKeys?new Map:lt;for(;++ct<Ze.children.length;){const Mt=Ze.children[ct];let tn;if(we.passKeys){const vi=Mt.type==="element"?Mt.tagName:Mt.type==="mdxJsxFlowElement"||Mt.type==="mdxJsxTextElement"?Mt.name:void 0;if(vi){const bi=kt.get(vi)||0;tn=vi+"-"+bi,kt.set(vi,bi+1)}}const En=jt(we,Mt,tn);En!==void 0&&et.push(En)}return et}function Zt(we,Ze,et){const ct=(0,he.s)(we.schema,Ze);if(!(et==null||typeof et=="number"&&Number.isNaN(et))){if(Array.isArray(et)&&(et=ct.commaSeparated?(0,ke.P)(et):(0,fe.P)(et)),ct.property==="style"){let kt=typeof et=="object"?et:In(we,String(et));return we.stylePropertyNameCase==="css"&&(kt=Oe(kt)),["style",kt]}return[we.elementAttributeNameCase==="react"&&ct.space?ue[ct.property]||ct.property:ct.attribute,et]}}function In(we,Ze){try{return me(Ze,{reactCompat:!0})}catch(et){if(we.ignoreInvalidStyle)return{};const ct=et,kt=new Ye("Cannot parse `style` attribute",{ancestors:we.ancestors,cause:ct,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw kt.file=we.filePath||void 0,kt.url=St+"#cannot-parse-style-attribute",kt}}function Dn(we,Ze,et){let ct;if(!et)ct={type:"Literal",value:Ze};else if(Ze.includes(".")){const kt=Ze.split(".");let Mt=-1,tn;for(;++Mt<kt.length;){const En=Je(kt[Mt])?{type:"Identifier",name:kt[Mt]}:{type:"Literal",value:kt[Mt]};tn=tn?{type:"MemberExpression",object:tn,property:En,computed:!!(Mt&&En.type==="Literal"),optional:!1}:En}(0,Ce.ok)(tn,"always a result"),ct=tn}else ct=Je(Ze)&&!/^[a-z]/.test(Ze)?{type:"Identifier",name:Ze}:{type:"Literal",value:Ze};if(ct.type==="Literal"){const kt=ct.value;return Qe.call(we.components,kt)?we.components[kt]:kt}if(we.evaluater)return we.evaluater.evaluateExpression(ct);qe(we)}function qe(we,Ze){const et=new Ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:we.ancestors,place:Ze,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw et.file=we.filePath||void 0,et.url=St+"#cannot-handle-mdx-estrees-without-createevaluater",et}function Oe(we){const Ze={};let et;for(et in we)Qe.call(we,et)&&(Ze[Le(et)]=we[et]);return Ze}function Le(we){let Ze=we.replace(nt,Ge);return Ze.slice(0,3)==="ms-"&&(Ze="-"+Ze),Ze}function Ge(we){return"-"+we.toLowerCase()}const it={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 De=ae(37712),ht=ae(59301);const on={};function An(we,Ze){const et=Ze||on,ct=typeof et.includeImageAlt=="boolean"?et.includeImageAlt:!0,kt=typeof et.includeHtml=="boolean"?et.includeHtml:!0;return Zn(we,ct,kt)}function Zn(we,Ze,et){if(It(we)){if("value"in we)return we.type==="html"&&!et?"":we.value;if(Ze&&"alt"in we&&we.alt)return we.alt;if("children"in we)return Ft(we.children,Ze,et)}return Array.isArray(we)?Ft(we,Ze,et):""}function Ft(we,Ze,et){const ct=[];let kt=-1;for(;++kt<we.length;)ct[kt]=Zn(we[kt],Ze,et);return ct.join("")}function It(we){return!!(we&&typeof we=="object")}function Gt(we,Ze,et,ct){const kt=we.length;let Mt=0,tn;if(Ze<0?Ze=-Ze>kt?0:kt+Ze:Ze=Ze>kt?kt:Ze,et=et>0?et:0,ct.length<1e4)tn=Array.from(ct),tn.unshift(Ze,et),we.splice(...tn);else for(et&&we.splice(Ze,et);Mt<ct.length;)tn=ct.slice(Mt,Mt+1e4),tn.unshift(Ze,0),we.splice(...tn),Mt+=1e4,Ze+=1e4}function fn(we,Ze){return we.length>0?(Gt(we,we.length,0,Ze),we):Ze}class Pn{constructor(Ze){this.left=Ze?[...Ze]:[],this.right=[]}get(Ze){if(Ze<0||Ze>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Ze+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Ze<this.left.length?this.left[Ze]:this.right[this.right.length-Ze+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Ze,et){const ct=et==null?Number.POSITIVE_INFINITY:et;return ct<this.left.length?this.left.slice(Ze,ct):Ze>this.left.length?this.right.slice(this.right.length-ct+this.left.length,this.right.length-Ze+this.left.length).reverse():this.left.slice(Ze).concat(this.right.slice(this.right.length-ct+this.left.length).reverse())}splice(Ze,et,ct){const kt=et||0;this.setCursor(Math.trunc(Ze));const Mt=this.right.splice(this.right.length-kt,Number.POSITIVE_INFINITY);return ct&&an(this.left,ct),Mt.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Ze){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Ze)}pushMany(Ze){this.setCursor(Number.POSITIVE_INFINITY),an(this.left,Ze)}unshift(Ze){this.setCursor(0),this.right.push(Ze)}unshiftMany(Ze){this.setCursor(0),an(this.right,Ze.reverse())}setCursor(Ze){if(!(Ze===this.left.length||Ze>this.left.length&&this.right.length===0||Ze<0&&this.left.length===0))if(Ze<this.left.length){const et=this.left.splice(Ze,Number.POSITIVE_INFINITY);an(this.right,et.reverse())}else{const et=this.right.splice(this.left.length+this.right.length-Ze,Number.POSITIVE_INFINITY);an(this.left,et.reverse())}}}function an(we,Ze){let et=0;if(Ze.length<1e4)we.push(...Ze);else for(;et<Ze.length;)we.push(...Ze.slice(et,et+1e4)),et+=1e4}function Ot(we){const Ze={};let et=-1,ct,kt,Mt,tn,En,vi,bi;const Xn=new Pn(we);for(;++et<Xn.length;){for(;et in Ze;)et=Ze[et];if(ct=Xn.get(et),et&&ct[1].type==="chunkFlow"&&Xn.get(et-1)[1].type==="listItemPrefix"&&(vi=ct[1]._tokenizer.events,Mt=0,Mt<vi.length&&vi[Mt][1].type==="lineEndingBlank"&&(Mt+=2),Mt<vi.length&&vi[Mt][1].type==="content"))for(;++Mt<vi.length&&vi[Mt][1].type!=="content";)vi[Mt][1].type==="chunkText"&&(vi[Mt][1]._isInFirstContentOfListItem=!0,Mt++);if(ct[0]==="enter")ct[1].contentType&&(Object.assign(Ze,Mn(Xn,et)),et=Ze[et],bi=!0);else if(ct[1]._container){for(Mt=et,kt=void 0;Mt--;)if(tn=Xn.get(Mt),tn[1].type==="lineEnding"||tn[1].type==="lineEndingBlank")tn[0]==="enter"&&(kt&&(Xn.get(kt)[1].type="lineEndingBlank"),tn[1].type="lineEnding",kt=Mt);else if(!(tn[1].type==="linePrefix"||tn[1].type==="listItemIndent"))break;kt&&(ct[1].end=Qo({},Xn.get(kt)[1].start),En=Xn.slice(kt,et),En.unshift(ct),Xn.splice(kt,et-kt+1,En))}}return Gt(we,0,Number.POSITIVE_INFINITY,Xn.slice(0)),!bi}function Mn(we,Ze){const et=we.get(Ze)[1],ct=we.get(Ze)[2];let kt=Ze-1;const Mt=[];let tn=et._tokenizer;tn||(tn=ct.parser[et.contentType](et.start),et._contentTypeTextTrailing&&(tn._contentTypeTextTrailing=!0));const En=tn.events,vi=[],bi={};let Xn,Ui,Oi=-1,ei=et,ro=0,Eo=0;const Mo=[Eo];for(;ei;){for(;we.get(++kt)[1]!==ei;);Mt.push(kt),ei._tokenizer||(Xn=ct.sliceStream(ei),ei.next||Xn.push(null),Ui&&tn.defineSkip(ei.start),ei._isInFirstContentOfListItem&&(tn._gfmTasklistFirstContentOfListItem=!0),tn.write(Xn),ei._isInFirstContentOfListItem&&(tn._gfmTasklistFirstContentOfListItem=void 0)),Ui=ei,ei=ei.next}for(ei=et;++Oi<En.length;)En[Oi][0]==="exit"&&En[Oi-1][0]==="enter"&&En[Oi][1].type===En[Oi-1][1].type&&En[Oi][1].start.line!==En[Oi][1].end.line&&(Eo=Oi+1,Mo.push(Eo),ei._tokenizer=void 0,ei.previous=void 0,ei=ei.next);for(tn.events=[],ei?(ei._tokenizer=void 0,ei.previous=void 0):Mo.pop(),Oi=Mo.length;Oi--;){const jr=En.slice(Mo[Oi],Mo[Oi+1]),ao=Mt.pop();vi.push([ao,ao+jr.length-1]),we.splice(ao,2,jr)}for(vi.reverse(),Oi=-1;++Oi<vi.length;)bi[ro+vi[Oi][0]]=ro+vi[Oi][1],ro+=vi[Oi][1]-vi[Oi][0]-1;return bi}function Ht(we){for(;!Ot(we););return we}const Kt={}.hasOwnProperty;function un(we){const Ze={};let et=-1;for(;++et<we.length;)Vn(Ze,we[et]);return Ze}function Vn(we,Ze){let et;for(et in Ze){const kt=(Kt.call(we,et)?we[et]:void 0)||(we[et]={}),Mt=Ze[et];let tn;if(Mt)for(tn in Mt){Kt.call(kt,tn)||(kt[tn]=[]);const En=Mt[tn];bn(kt[tn],Array.isArray(En)?En:En?[En]:[])}}}function bn(we,Ze){let et=-1;const ct=[];for(;++et<Ze.length;)(Ze[et].add==="after"?we:ct).push(Ze[et]);Gt(we,0,0,ct)}function mt(we){const Ze={};let et=-1;for(;++et<we.length;)jn(Ze,we[et]);return Ze}function jn(we,Ze){let et;for(et in Ze){const kt=(Kt.call(we,et)?we[et]:void 0)||(we[et]={}),Mt=Ze[et];let tn;if(Mt)for(tn in Mt)kt[tn]=Mt[tn]}}var Kn=ae(26735),Ut=ae(80722);const yi={tokenize:Vi};function Vi(we){const Ze=we.attempt(this.parser.constructs.contentInitial,ct,kt);let et;return Ze;function ct(En){if(En===null){we.consume(En);return}return we.enter("lineEnding"),we.consume(En),we.exit("lineEnding"),(0,Kn.f)(we,Ze,"linePrefix")}function kt(En){return we.enter("paragraph"),Mt(En)}function Mt(En){const vi=we.enter("chunkText",{contentType:"text",previous:et});return et&&(et.next=vi),et=vi,tn(En)}function tn(En){if(En===null){we.exit("chunkText"),we.exit("paragraph"),we.consume(En);return}return(0,Ut.Ch)(En)?(we.consume(En),we.exit("chunkText"),Mt):(we.consume(En),tn)}}const kn={tokenize:Qn},Vt={tokenize:ai};function Qn(we){const Ze=this,et=[];let ct=0,kt,Mt,tn;return En;function En(po){if(ct<et.length){const wa=et[ct];return Ze.containerState=wa[1],we.attempt(wa[0].continuation,vi,bi)(po)}return bi(po)}function vi(po){if(ct++,Ze.containerState._closeFlow){Ze.containerState._closeFlow=void 0,kt&&ao();const wa=Ze.events.length;let Ca=wa,Pr;for(;Ca--;)if(Ze.events[Ca][0]==="exit"&&Ze.events[Ca][1].type==="chunkFlow"){Pr=Ze.events[Ca][1].end;break}jr(ct);let Aa=wa;for(;Aa<Ze.events.length;)Ze.events[Aa][1].end=Qo({},Pr),Aa++;return Gt(Ze.events,Ca+1,0,Ze.events.slice(wa)),Ze.events.length=Aa,bi(po)}return En(po)}function bi(po){if(ct===et.length){if(!kt)return Oi(po);if(kt.currentConstruct&&kt.currentConstruct.concrete)return ro(po);Ze.interrupt=!!(kt.currentConstruct&&!kt._gfmTableDynamicInterruptHack)}return Ze.containerState={},we.check(Vt,Xn,Ui)(po)}function Xn(po){return kt&&ao(),jr(ct),Oi(po)}function Ui(po){return Ze.parser.lazy[Ze.now().line]=ct!==et.length,tn=Ze.now().offset,ro(po)}function Oi(po){return Ze.containerState={},we.attempt(Vt,ei,ro)(po)}function ei(po){return ct++,et.push([Ze.currentConstruct,Ze.containerState]),Oi(po)}function ro(po){if(po===null){kt&&ao(),jr(0),we.consume(po);return}return kt=kt||Ze.parser.flow(Ze.now()),we.enter("chunkFlow",{_tokenizer:kt,contentType:"flow",previous:Mt}),Eo(po)}function Eo(po){if(po===null){Mo(we.exit("chunkFlow"),!0),jr(0),we.consume(po);return}return(0,Ut.Ch)(po)?(we.consume(po),Mo(we.exit("chunkFlow")),ct=0,Ze.interrupt=void 0,En):(we.consume(po),Eo)}function Mo(po,wa){const Ca=Ze.sliceStream(po);if(wa&&Ca.push(null),po.previous=Mt,Mt&&(Mt.next=po),Mt=po,kt.defineSkip(po.start),kt.write(Ca),Ze.parser.lazy[po.start.line]){let Pr=kt.events.length;for(;Pr--;)if(kt.events[Pr][1].start.offset<tn&&(!kt.events[Pr][1].end||kt.events[Pr][1].end.offset>tn))return;const Aa=Ze.events.length;let $a=Aa,pa,io;for(;$a--;)if(Ze.events[$a][0]==="exit"&&Ze.events[$a][1].type==="chunkFlow"){if(pa){io=Ze.events[$a][1].end;break}pa=!0}for(jr(ct),Pr=Aa;Pr<Ze.events.length;)Ze.events[Pr][1].end=Qo({},io),Pr++;Gt(Ze.events,$a+1,0,Ze.events.slice(Aa)),Ze.events.length=Pr}}function jr(po){let wa=et.length;for(;wa-- >po;){const Ca=et[wa];Ze.containerState=Ca[1],Ca[0].exit.call(Ze,we)}et.length=po}function ao(){kt.write([null]),Mt=void 0,kt=void 0,Ze.containerState._closeFlow=void 0}}function ai(we,Ze,et){return(0,Kn.f)(we,we.attempt(this.parser.constructs.document,Ze,et),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Un={partial:!0,tokenize:si};function si(we,Ze,et){return ct;function ct(Mt){return(0,Ut.xz)(Mt)?(0,Kn.f)(we,kt,"linePrefix")(Mt):kt(Mt)}function kt(Mt){return Mt===null||(0,Ut.Ch)(Mt)?Ze(Mt):et(Mt)}}const li={resolve:ii,tokenize:ti},Me={partial:!0,tokenize:On};function ii(we){return Ot(we),we}function ti(we,Ze){let et;return ct;function ct(En){return we.enter("content"),et=we.enter("chunkContent",{contentType:"content"}),kt(En)}function kt(En){return En===null?Mt(En):(0,Ut.Ch)(En)?we.check(Me,tn,Mt)(En):(we.consume(En),kt)}function Mt(En){return we.exit("chunkContent"),we.exit("content"),Ze(En)}function tn(En){return we.consume(En),we.exit("chunkContent"),et.next=we.enter("chunkContent",{contentType:"content",previous:et}),et=et.next,kt}}function On(we,Ze,et){const ct=this;return kt;function kt(tn){return we.exit("chunkContent"),we.enter("lineEnding"),we.consume(tn),we.exit("lineEnding"),(0,Kn.f)(we,Mt,"linePrefix")}function Mt(tn){if(tn===null||(0,Ut.Ch)(tn))return et(tn);const En=ct.events[ct.events.length-1];return!ct.parser.constructs.disable.null.includes("codeIndented")&&En&&En[1].type==="linePrefix"&&En[2].sliceSerialize(En[1],!0).length>=4?Ze(tn):we.interrupt(ct.parser.constructs.flow,et,Ze)(tn)}}const ni={tokenize:Ei};function Ei(we){const Ze=this,et=we.attempt(Un,ct,we.attempt(this.parser.constructs.flowInitial,kt,(0,Kn.f)(we,we.attempt(this.parser.constructs.flow,kt,we.attempt(li,kt)),"linePrefix")));return et;function ct(Mt){if(Mt===null){we.consume(Mt);return}return we.enter("lineEndingBlank"),we.consume(Mt),we.exit("lineEndingBlank"),Ze.currentConstruct=void 0,et}function kt(Mt){if(Mt===null){we.consume(Mt);return}return we.enter("lineEnding"),we.consume(Mt),we.exit("lineEnding"),Ze.currentConstruct=void 0,et}}const ui={resolveAll:dn()},tr=sn("string"),Sn=sn("text");function sn(we){return{resolveAll:dn(we==="text"?_n:void 0),tokenize:Ze};function Ze(et){const ct=this,kt=this.parser.constructs[we],Mt=et.attempt(kt,tn,En);return tn;function tn(Xn){return bi(Xn)?Mt(Xn):En(Xn)}function En(Xn){if(Xn===null){et.consume(Xn);return}return et.enter("data"),et.consume(Xn),vi}function vi(Xn){return bi(Xn)?(et.exit("data"),Mt(Xn)):(et.consume(Xn),vi)}function bi(Xn){if(Xn===null)return!0;const Ui=kt[Xn];let Oi=-1;if(Ui)for(;++Oi<Ui.length;){const ei=Ui[Oi];if(!ei.previous||ei.previous.call(ct,ct.previous))return!0}return!1}}}function dn(we){return Ze;function Ze(et,ct){let kt=-1,Mt;for(;++kt<=et.length;)Mt===void 0?et[kt]&&et[kt][1].type==="data"&&(Mt=kt,kt++):(!et[kt]||et[kt][1].type!=="data")&&(kt!==Mt+2&&(et[Mt][1].end=et[kt-1][1].end,et.splice(Mt+2,kt-Mt-2),kt=Mt+2),Mt=void 0);return we?we(et,ct):et}}function _n(we,Ze){let et=0;for(;++et<=we.length;)if((et===we.length||we[et][1].type==="lineEnding")&&we[et-1][1].type==="data"){const ct=we[et-1][1],kt=Ze.sliceStream(ct);let Mt=kt.length,tn=-1,En=0,vi;for(;Mt--;){const bi=kt[Mt];if(typeof bi=="string"){for(tn=bi.length;bi.charCodeAt(tn-1)===32;)En++,tn--;if(tn)break;tn=-1}else if(bi===-2)vi=!0,En++;else if(bi!==-1){Mt++;break}}if(Ze._contentTypeTextTrailing&&et===we.length&&(En=0),En){const bi={type:et===we.length||vi||En<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Mt?tn:ct.start._bufferIndex+tn,_index:ct.start._index+Mt,line:ct.end.line,column:ct.end.column-En,offset:ct.end.offset-En},end:Qo({},ct.end)};ct.end=Qo({},bi.start),ct.start.offset===ct.end.offset?Object.assign(ct,bi):(we.splice(et,0,["enter",bi,Ze],["exit",bi,Ze]),et+=2)}et++}return we}const Ri={name:"thematicBreak",tokenize:qn};function qn(we,Ze,et){let ct=0,kt;return Mt;function Mt(bi){return we.enter("thematicBreak"),tn(bi)}function tn(bi){return kt=bi,En(bi)}function En(bi){return bi===kt?(we.enter("thematicBreakSequence"),vi(bi)):ct>=3&&(bi===null||(0,Ut.Ch)(bi))?(we.exit("thematicBreak"),Ze(bi)):et(bi)}function vi(bi){return bi===kt?(we.consume(bi),ct++,vi):(we.exit("thematicBreakSequence"),(0,Ut.xz)(bi)?(0,Kn.f)(we,En,"whitespace")(bi):En(bi))}}const Ni={continuation:{tokenize:Yi},exit:Ct,name:"list",tokenize:Di},mn={partial:!0,tokenize:$t},Hn={partial:!0,tokenize:mi};function Di(we,Ze,et){const ct=this,kt=ct.events[ct.events.length-1];let Mt=kt&&kt[1].type==="linePrefix"?kt[2].sliceSerialize(kt[1],!0).length:0,tn=0;return En;function En(ei){const ro=ct.containerState.type||(ei===42||ei===43||ei===45?"listUnordered":"listOrdered");if(ro==="listUnordered"?!ct.containerState.marker||ei===ct.containerState.marker:(0,Ut.pY)(ei)){if(ct.containerState.type||(ct.containerState.type=ro,we.enter(ro,{_container:!0})),ro==="listUnordered")return we.enter("listItemPrefix"),ei===42||ei===45?we.check(Ri,et,bi)(ei):bi(ei);if(!ct.interrupt||ei===49)return we.enter("listItemPrefix"),we.enter("listItemValue"),vi(ei)}return et(ei)}function vi(ei){return(0,Ut.pY)(ei)&&++tn<10?(we.consume(ei),vi):(!ct.interrupt||tn<2)&&(ct.containerState.marker?ei===ct.containerState.marker:ei===41||ei===46)?(we.exit("listItemValue"),bi(ei)):et(ei)}function bi(ei){return we.enter("listItemMarker"),we.consume(ei),we.exit("listItemMarker"),ct.containerState.marker=ct.containerState.marker||ei,we.check(Un,ct.interrupt?et:Xn,we.attempt(mn,Oi,Ui))}function Xn(ei){return ct.containerState.initialBlankLine=!0,Mt++,Oi(ei)}function Ui(ei){return(0,Ut.xz)(ei)?(we.enter("listItemPrefixWhitespace"),we.consume(ei),we.exit("listItemPrefixWhitespace"),Oi):et(ei)}function Oi(ei){return ct.containerState.size=Mt+ct.sliceSerialize(we.exit("listItemPrefix"),!0).length,Ze(ei)}}function Yi(we,Ze,et){const ct=this;return ct.containerState._closeFlow=void 0,we.check(Un,kt,Mt);function kt(En){return ct.containerState.furtherBlankLines=ct.containerState.furtherBlankLines||ct.containerState.initialBlankLine,(0,Kn.f)(we,Ze,"listItemIndent",ct.containerState.size+1)(En)}function Mt(En){return ct.containerState.furtherBlankLines||!(0,Ut.xz)(En)?(ct.containerState.furtherBlankLines=void 0,ct.containerState.initialBlankLine=void 0,tn(En)):(ct.containerState.furtherBlankLines=void 0,ct.containerState.initialBlankLine=void 0,we.attempt(Hn,Ze,tn)(En))}function tn(En){return ct.containerState._closeFlow=!0,ct.interrupt=void 0,(0,Kn.f)(we,we.attempt(Ni,Ze,et),"linePrefix",ct.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(En)}}function mi(we,Ze,et){const ct=this;return(0,Kn.f)(we,kt,"listItemIndent",ct.containerState.size+1);function kt(Mt){const tn=ct.events[ct.events.length-1];return tn&&tn[1].type==="listItemIndent"&&tn[2].sliceSerialize(tn[1],!0).length===ct.containerState.size?Ze(Mt):et(Mt)}}function Ct(we){we.exit(this.containerState.type)}function $t(we,Ze,et){const ct=this;return(0,Kn.f)(we,kt,"listItemPrefixWhitespace",ct.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function kt(Mt){const tn=ct.events[ct.events.length-1];return!(0,Ut.xz)(Mt)&&tn&&tn[1].type==="listItemPrefixWhitespace"?Ze(Mt):et(Mt)}}const fi={continuation:{tokenize:zt},exit:pi,name:"blockQuote",tokenize:gi};function gi(we,Ze,et){const ct=this;return kt;function kt(tn){if(tn===62){const En=ct.containerState;return En.open||(we.enter("blockQuote",{_container:!0}),En.open=!0),we.enter("blockQuotePrefix"),we.enter("blockQuoteMarker"),we.consume(tn),we.exit("blockQuoteMarker"),Mt}return et(tn)}function Mt(tn){return(0,Ut.xz)(tn)?(we.enter("blockQuotePrefixWhitespace"),we.consume(tn),we.exit("blockQuotePrefixWhitespace"),we.exit("blockQuotePrefix"),Ze):(we.exit("blockQuotePrefix"),Ze(tn))}}function zt(we,Ze,et){const ct=this;return kt;function kt(tn){return(0,Ut.xz)(tn)?(0,Kn.f)(we,Mt,"linePrefix",ct.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(tn):Mt(tn)}function Mt(tn){return we.attempt(fi,Ze,et)(tn)}}function pi(we){we.exit("blockQuote")}function Fi(we,Ze,et,ct,kt,Mt,tn,En,vi){const bi=vi||Number.POSITIVE_INFINITY;let Xn=0;return Ui;function Ui(jr){return jr===60?(we.enter(ct),we.enter(kt),we.enter(Mt),we.consume(jr),we.exit(Mt),Oi):jr===null||jr===32||jr===41||(0,Ut.Av)(jr)?et(jr):(we.enter(ct),we.enter(tn),we.enter(En),we.enter("chunkString",{contentType:"string"}),Eo(jr))}function Oi(jr){return jr===62?(we.enter(Mt),we.consume(jr),we.exit(Mt),we.exit(kt),we.exit(ct),Ze):(we.enter(En),we.enter("chunkString",{contentType:"string"}),ei(jr))}function ei(jr){return jr===62?(we.exit("chunkString"),we.exit(En),Oi(jr)):jr===null||jr===60||(0,Ut.Ch)(jr)?et(jr):(we.consume(jr),jr===92?ro:ei)}function ro(jr){return jr===60||jr===62||jr===92?(we.consume(jr),ei):ei(jr)}function Eo(jr){return!Xn&&(jr===null||jr===41||(0,Ut.z3)(jr))?(we.exit("chunkString"),we.exit(En),we.exit(tn),we.exit(ct),Ze(jr)):Xn<bi&&jr===40?(we.consume(jr),Xn++,Eo):jr===41?(we.consume(jr),Xn--,Eo):jr===null||jr===32||jr===40||(0,Ut.Av)(jr)?et(jr):(we.consume(jr),jr===92?Mo:Eo)}function Mo(jr){return jr===40||jr===41||jr===92?(we.consume(jr),Eo):Eo(jr)}}function Cn(we,Ze,et,ct,kt,Mt){const tn=this;let En=0,vi;return bi;function bi(ei){return we.enter(ct),we.enter(kt),we.consume(ei),we.exit(kt),we.enter(Mt),Xn}function Xn(ei){return En>999||ei===null||ei===91||ei===93&&!vi||ei===94&&!En&&"_hiddenFootnoteSupport"in tn.parser.constructs?et(ei):ei===93?(we.exit(Mt),we.enter(kt),we.consume(ei),we.exit(kt),we.exit(ct),Ze):(0,Ut.Ch)(ei)?(we.enter("lineEnding"),we.consume(ei),we.exit("lineEnding"),Xn):(we.enter("chunkString",{contentType:"string"}),Ui(ei))}function Ui(ei){return ei===null||ei===91||ei===93||(0,Ut.Ch)(ei)||En++>999?(we.exit("chunkString"),Xn(ei)):(we.consume(ei),vi||(vi=!(0,Ut.xz)(ei)),ei===92?Oi:Ui)}function Oi(ei){return ei===91||ei===92||ei===93?(we.consume(ei),En++,Ui):Ui(ei)}}function je(we,Ze,et,ct,kt,Mt){let tn;return En;function En(Oi){return Oi===34||Oi===39||Oi===40?(we.enter(ct),we.enter(kt),we.consume(Oi),we.exit(kt),tn=Oi===40?41:Oi,vi):et(Oi)}function vi(Oi){return Oi===tn?(we.enter(kt),we.consume(Oi),we.exit(kt),we.exit(ct),Ze):(we.enter(Mt),bi(Oi))}function bi(Oi){return Oi===tn?(we.exit(Mt),vi(tn)):Oi===null?et(Oi):(0,Ut.Ch)(Oi)?(we.enter("lineEnding"),we.consume(Oi),we.exit("lineEnding"),(0,Kn.f)(we,bi,"linePrefix")):(we.enter("chunkString",{contentType:"string"}),Xn(Oi))}function Xn(Oi){return Oi===tn||Oi===null||(0,Ut.Ch)(Oi)?(we.exit("chunkString"),bi(Oi)):(we.consume(Oi),Oi===92?Ui:Xn)}function Ui(Oi){return Oi===tn||Oi===92?(we.consume(Oi),Xn):Xn(Oi)}}function Pi(we,Ze){let et;return ct;function ct(kt){return(0,Ut.Ch)(kt)?(we.enter("lineEnding"),we.consume(kt),we.exit("lineEnding"),et=!0,ct):(0,Ut.xz)(kt)?(0,Kn.f)(we,ct,et?"linePrefix":"lineSuffix")(kt):Ze(kt)}}function Ai(we){return we.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rn={name:"definition",tokenize:_i},Ji={partial:!0,tokenize:Jn};function _i(we,Ze,et){const ct=this;let kt;return Mt;function Mt(ei){return we.enter("definition"),tn(ei)}function tn(ei){return Cn.call(ct,we,En,et,"definitionLabel","definitionLabelMarker","definitionLabelString")(ei)}function En(ei){return kt=Ai(ct.sliceSerialize(ct.events[ct.events.length-1][1]).slice(1,-1)),ei===58?(we.enter("definitionMarker"),we.consume(ei),we.exit("definitionMarker"),vi):et(ei)}function vi(ei){return(0,Ut.z3)(ei)?Pi(we,bi)(ei):bi(ei)}function bi(ei){return Fi(we,Xn,et,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(ei)}function Xn(ei){return we.attempt(Ji,Ui,Ui)(ei)}function Ui(ei){return(0,Ut.xz)(ei)?(0,Kn.f)(we,Oi,"whitespace")(ei):Oi(ei)}function Oi(ei){return ei===null||(0,Ut.Ch)(ei)?(we.exit("definition"),ct.parser.defined.push(kt),Ze(ei)):et(ei)}}function Jn(we,Ze,et){return ct;function ct(En){return(0,Ut.z3)(En)?Pi(we,kt)(En):et(En)}function kt(En){return je(we,Mt,et,"definitionTitle","definitionTitleMarker","definitionTitleString")(En)}function Mt(En){return(0,Ut.xz)(En)?(0,Kn.f)(we,tn,"whitespace")(En):tn(En)}function tn(En){return En===null||(0,Ut.Ch)(En)?Ze(En):et(En)}}const ji={name:"codeIndented",tokenize:vr},ln={partial:!0,tokenize:Wr};function vr(we,Ze,et){const ct=this;return kt;function kt(bi){return we.enter("codeIndented"),(0,Kn.f)(we,Mt,"linePrefix",5)(bi)}function Mt(bi){const Xn=ct.events[ct.events.length-1];return Xn&&Xn[1].type==="linePrefix"&&Xn[2].sliceSerialize(Xn[1],!0).length>=4?tn(bi):et(bi)}function tn(bi){return bi===null?vi(bi):(0,Ut.Ch)(bi)?we.attempt(ln,tn,vi)(bi):(we.enter("codeFlowValue"),En(bi))}function En(bi){return bi===null||(0,Ut.Ch)(bi)?(we.exit("codeFlowValue"),tn(bi)):(we.consume(bi),En)}function vi(bi){return we.exit("codeIndented"),Ze(bi)}}function Wr(we,Ze,et){const ct=this;return kt;function kt(tn){return ct.parser.lazy[ct.now().line]?et(tn):(0,Ut.Ch)(tn)?(we.enter("lineEnding"),we.consume(tn),we.exit("lineEnding"),kt):(0,Kn.f)(we,Mt,"linePrefix",5)(tn)}function Mt(tn){const En=ct.events[ct.events.length-1];return En&&En[1].type==="linePrefix"&&En[2].sliceSerialize(En[1],!0).length>=4?Ze(tn):(0,Ut.Ch)(tn)?kt(tn):et(tn)}}const pn={name:"headingAtx",resolve:ur,tokenize:yr};function ur(we,Ze){let et=we.length-2,ct=3,kt,Mt;return we[ct][1].type==="whitespace"&&(ct+=2),et-2>ct&&we[et][1].type==="whitespace"&&(et-=2),we[et][1].type==="atxHeadingSequence"&&(ct===et-1||et-4>ct&&we[et-2][1].type==="whitespace")&&(et-=ct+1===et?2:4),et>ct&&(kt={type:"atxHeadingText",start:we[ct][1].start,end:we[et][1].end},Mt={type:"chunkText",start:we[ct][1].start,end:we[et][1].end,contentType:"text"},Gt(we,ct,et-ct+1,[["enter",kt,Ze],["enter",Mt,Ze],["exit",Mt,Ze],["exit",kt,Ze]])),we}function yr(we,Ze,et){let ct=0;return kt;function kt(Xn){return we.enter("atxHeading"),Mt(Xn)}function Mt(Xn){return we.enter("atxHeadingSequence"),tn(Xn)}function tn(Xn){return Xn===35&&ct++<6?(we.consume(Xn),tn):Xn===null||(0,Ut.z3)(Xn)?(we.exit("atxHeadingSequence"),En(Xn)):et(Xn)}function En(Xn){return Xn===35?(we.enter("atxHeadingSequence"),vi(Xn)):Xn===null||(0,Ut.Ch)(Xn)?(we.exit("atxHeading"),Ze(Xn)):(0,Ut.xz)(Xn)?(0,Kn.f)(we,En,"whitespace")(Xn):(we.enter("atxHeadingText"),bi(Xn))}function vi(Xn){return Xn===35?(we.consume(Xn),vi):(we.exit("atxHeadingSequence"),En(Xn))}function bi(Xn){return Xn===null||Xn===35||(0,Ut.z3)(Xn)?(we.exit("atxHeadingText"),En(Xn)):(we.consume(Xn),bi)}}const ir={name:"setextUnderline",resolveTo:pr,tokenize:Tr};function pr(we,Ze){let et=we.length,ct,kt,Mt;for(;et--;)if(we[et][0]==="enter"){if(we[et][1].type==="content"){ct=et;break}we[et][1].type==="paragraph"&&(kt=et)}else we[et][1].type==="content"&&we.splice(et,1),!Mt&&we[et][1].type==="definition"&&(Mt=et);const tn={type:"setextHeading",start:Qo({},we[ct][1].start),end:Qo({},we[we.length-1][1].end)};return we[kt][1].type="setextHeadingText",Mt?(we.splice(kt,0,["enter",tn,Ze]),we.splice(Mt+1,0,["exit",we[ct][1],Ze]),we[ct][1].end=Qo({},we[Mt][1].end)):we[ct][1]=tn,we.push(["exit",tn,Ze]),we}function Tr(we,Ze,et){const ct=this;let kt;return Mt;function Mt(bi){let Xn=ct.events.length,Ui;for(;Xn--;)if(ct.events[Xn][1].type!=="lineEnding"&&ct.events[Xn][1].type!=="linePrefix"&&ct.events[Xn][1].type!=="content"){Ui=ct.events[Xn][1].type==="paragraph";break}return!ct.parser.lazy[ct.now().line]&&(ct.interrupt||Ui)?(we.enter("setextHeadingLine"),kt=bi,tn(bi)):et(bi)}function tn(bi){return we.enter("setextHeadingLineSequence"),En(bi)}function En(bi){return bi===kt?(we.consume(bi),En):(we.exit("setextHeadingLineSequence"),(0,Ut.xz)(bi)?(0,Kn.f)(we,vi,"lineSuffix")(bi):vi(bi))}function vi(bi){return bi===null||(0,Ut.Ch)(bi)?(we.exit("setextHeadingLine"),Ze(bi)):et(bi)}}const Br=["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"],Ar=["pre","script","style","textarea"],br={concrete:!0,name:"htmlFlow",resolveTo:xr,tokenize:$n},_r={partial:!0,tokenize:Nr},Wn={partial:!0,tokenize:ar};function xr(we){let Ze=we.length;for(;Ze--&&!(we[Ze][0]==="enter"&&we[Ze][1].type==="htmlFlow"););return Ze>1&&we[Ze-2][1].type==="linePrefix"&&(we[Ze][1].start=we[Ze-2][1].start,we[Ze+1][1].start=we[Ze-2][1].start,we.splice(Ze-2,2)),we}function $n(we,Ze,et){const ct=this;let kt,Mt,tn,En,vi;return bi;function bi(Mi){return Xn(Mi)}function Xn(Mi){return we.enter("htmlFlow"),we.enter("htmlFlowData"),we.consume(Mi),Ui}function Ui(Mi){return Mi===33?(we.consume(Mi),Oi):Mi===47?(we.consume(Mi),Mt=!0,Eo):Mi===63?(we.consume(Mi),kt=3,ct.interrupt?Ze:Ci):(0,Ut.jv)(Mi)?(we.consume(Mi),tn=String.fromCharCode(Mi),Mo):et(Mi)}function Oi(Mi){return Mi===45?(we.consume(Mi),kt=2,ei):Mi===91?(we.consume(Mi),kt=5,En=0,ro):(0,Ut.jv)(Mi)?(we.consume(Mi),kt=4,ct.interrupt?Ze:Ci):et(Mi)}function ei(Mi){return Mi===45?(we.consume(Mi),ct.interrupt?Ze:Ci):et(Mi)}function ro(Mi){const Ws="CDATA[";return Mi===Ws.charCodeAt(En++)?(we.consume(Mi),En===Ws.length?ct.interrupt?Ze:Ra:ro):et(Mi)}function Eo(Mi){return(0,Ut.jv)(Mi)?(we.consume(Mi),tn=String.fromCharCode(Mi),Mo):et(Mi)}function Mo(Mi){if(Mi===null||Mi===47||Mi===62||(0,Ut.z3)(Mi)){const Ws=Mi===47,eu=tn.toLowerCase();return!Ws&&!Mt&&Ar.includes(eu)?(kt=1,ct.interrupt?Ze(Mi):Ra(Mi)):Br.includes(tn.toLowerCase())?(kt=6,Ws?(we.consume(Mi),jr):ct.interrupt?Ze(Mi):Ra(Mi)):(kt=7,ct.interrupt&&!ct.parser.lazy[ct.now().line]?et(Mi):Mt?ao(Mi):po(Mi))}return Mi===45||(0,Ut.H$)(Mi)?(we.consume(Mi),tn+=String.fromCharCode(Mi),Mo):et(Mi)}function jr(Mi){return Mi===62?(we.consume(Mi),ct.interrupt?Ze:Ra):et(Mi)}function ao(Mi){return(0,Ut.xz)(Mi)?(we.consume(Mi),ao):io(Mi)}function po(Mi){return Mi===47?(we.consume(Mi),io):Mi===58||Mi===95||(0,Ut.jv)(Mi)?(we.consume(Mi),wa):(0,Ut.xz)(Mi)?(we.consume(Mi),po):io(Mi)}function wa(Mi){return Mi===45||Mi===46||Mi===58||Mi===95||(0,Ut.H$)(Mi)?(we.consume(Mi),wa):Ca(Mi)}function Ca(Mi){return Mi===61?(we.consume(Mi),Pr):(0,Ut.xz)(Mi)?(we.consume(Mi),Ca):po(Mi)}function Pr(Mi){return Mi===null||Mi===60||Mi===61||Mi===62||Mi===96?et(Mi):Mi===34||Mi===39?(we.consume(Mi),vi=Mi,Aa):(0,Ut.xz)(Mi)?(we.consume(Mi),Pr):$a(Mi)}function Aa(Mi){return Mi===vi?(we.consume(Mi),vi=null,pa):Mi===null||(0,Ut.Ch)(Mi)?et(Mi):(we.consume(Mi),Aa)}function $a(Mi){return Mi===null||Mi===34||Mi===39||Mi===47||Mi===60||Mi===61||Mi===62||Mi===96||(0,Ut.z3)(Mi)?Ca(Mi):(we.consume(Mi),$a)}function pa(Mi){return Mi===47||Mi===62||(0,Ut.xz)(Mi)?po(Mi):et(Mi)}function io(Mi){return Mi===62?(we.consume(Mi),tl):et(Mi)}function tl(Mi){return Mi===null||(0,Ut.Ch)(Mi)?Ra(Mi):(0,Ut.xz)(Mi)?(we.consume(Mi),tl):et(Mi)}function Ra(Mi){return Mi===45&&kt===2?(we.consume(Mi),Za):Mi===60&&kt===1?(we.consume(Mi),Ms):Mi===62&&kt===4?(we.consume(Mi),nl):Mi===63&&kt===3?(we.consume(Mi),Ci):Mi===93&&kt===5?(we.consume(Mi),Il):(0,Ut.Ch)(Mi)&&(kt===6||kt===7)?(we.exit("htmlFlowData"),we.check(_r,Hl,ko)(Mi)):Mi===null||(0,Ut.Ch)(Mi)?(we.exit("htmlFlowData"),ko(Mi)):(we.consume(Mi),Ra)}function ko(Mi){return we.check(Wn,Po,Hl)(Mi)}function Po(Mi){return we.enter("lineEnding"),we.consume(Mi),we.exit("lineEnding"),ea}function ea(Mi){return Mi===null||(0,Ut.Ch)(Mi)?ko(Mi):(we.enter("htmlFlowData"),Ra(Mi))}function Za(Mi){return Mi===45?(we.consume(Mi),Ci):Ra(Mi)}function Ms(Mi){return Mi===47?(we.consume(Mi),tn="",Vs):Ra(Mi)}function Vs(Mi){if(Mi===62){const Ws=tn.toLowerCase();return Ar.includes(Ws)?(we.consume(Mi),nl):Ra(Mi)}return(0,Ut.jv)(Mi)&&tn.length<8?(we.consume(Mi),tn+=String.fromCharCode(Mi),Vs):Ra(Mi)}function Il(Mi){return Mi===93?(we.consume(Mi),Ci):Ra(Mi)}function Ci(Mi){return Mi===62?(we.consume(Mi),nl):Mi===45&&kt===2?(we.consume(Mi),Ci):Ra(Mi)}function nl(Mi){return Mi===null||(0,Ut.Ch)(Mi)?(we.exit("htmlFlowData"),Hl(Mi)):(we.consume(Mi),nl)}function Hl(Mi){return we.exit("htmlFlow"),Ze(Mi)}}function ar(we,Ze,et){const ct=this;return kt;function kt(tn){return(0,Ut.Ch)(tn)?(we.enter("lineEnding"),we.consume(tn),we.exit("lineEnding"),Mt):et(tn)}function Mt(tn){return ct.parser.lazy[ct.now().line]?et(tn):Ze(tn)}}function Nr(we,Ze,et){return ct;function ct(kt){return we.enter("lineEnding"),we.consume(kt),we.exit("lineEnding"),we.attempt(Un,Ze,et)}}const Sr={partial:!0,tokenize:Rr},Xr={concrete:!0,name:"codeFenced",tokenize:Zr};function Zr(we,Ze,et){const ct=this,kt={partial:!0,tokenize:Ca};let Mt=0,tn=0,En;return vi;function vi(Pr){return bi(Pr)}function bi(Pr){const Aa=ct.events[ct.events.length-1];return Mt=Aa&&Aa[1].type==="linePrefix"?Aa[2].sliceSerialize(Aa[1],!0).length:0,En=Pr,we.enter("codeFenced"),we.enter("codeFencedFence"),we.enter("codeFencedFenceSequence"),Xn(Pr)}function Xn(Pr){return Pr===En?(tn++,we.consume(Pr),Xn):tn<3?et(Pr):(we.exit("codeFencedFenceSequence"),(0,Ut.xz)(Pr)?(0,Kn.f)(we,Ui,"whitespace")(Pr):Ui(Pr))}function Ui(Pr){return Pr===null||(0,Ut.Ch)(Pr)?(we.exit("codeFencedFence"),ct.interrupt?Ze(Pr):we.check(Sr,Eo,wa)(Pr)):(we.enter("codeFencedFenceInfo"),we.enter("chunkString",{contentType:"string"}),Oi(Pr))}function Oi(Pr){return Pr===null||(0,Ut.Ch)(Pr)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),Ui(Pr)):(0,Ut.xz)(Pr)?(we.exit("chunkString"),we.exit("codeFencedFenceInfo"),(0,Kn.f)(we,ei,"whitespace")(Pr)):Pr===96&&Pr===En?et(Pr):(we.consume(Pr),Oi)}function ei(Pr){return Pr===null||(0,Ut.Ch)(Pr)?Ui(Pr):(we.enter("codeFencedFenceMeta"),we.enter("chunkString",{contentType:"string"}),ro(Pr))}function ro(Pr){return Pr===null||(0,Ut.Ch)(Pr)?(we.exit("chunkString"),we.exit("codeFencedFenceMeta"),Ui(Pr)):Pr===96&&Pr===En?et(Pr):(we.consume(Pr),ro)}function Eo(Pr){return we.attempt(kt,wa,Mo)(Pr)}function Mo(Pr){return we.enter("lineEnding"),we.consume(Pr),we.exit("lineEnding"),jr}function jr(Pr){return Mt>0&&(0,Ut.xz)(Pr)?(0,Kn.f)(we,ao,"linePrefix",Mt+1)(Pr):ao(Pr)}function ao(Pr){return Pr===null||(0,Ut.Ch)(Pr)?we.check(Sr,Eo,wa)(Pr):(we.enter("codeFlowValue"),po(Pr))}function po(Pr){return Pr===null||(0,Ut.Ch)(Pr)?(we.exit("codeFlowValue"),ao(Pr)):(we.consume(Pr),po)}function wa(Pr){return we.exit("codeFenced"),Ze(Pr)}function Ca(Pr,Aa,$a){let pa=0;return io;function io(ea){return Pr.enter("lineEnding"),Pr.consume(ea),Pr.exit("lineEnding"),tl}function tl(ea){return Pr.enter("codeFencedFence"),(0,Ut.xz)(ea)?(0,Kn.f)(Pr,Ra,"linePrefix",ct.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ea):Ra(ea)}function Ra(ea){return ea===En?(Pr.enter("codeFencedFenceSequence"),ko(ea)):$a(ea)}function ko(ea){return ea===En?(pa++,Pr.consume(ea),ko):pa>=tn?(Pr.exit("codeFencedFenceSequence"),(0,Ut.xz)(ea)?(0,Kn.f)(Pr,Po,"whitespace")(ea):Po(ea)):$a(ea)}function Po(ea){return ea===null||(0,Ut.Ch)(ea)?(Pr.exit("codeFencedFence"),Aa(ea)):$a(ea)}}}function Rr(we,Ze,et){const ct=this;return kt;function kt(tn){return tn===null?et(tn):(we.enter("lineEnding"),we.consume(tn),we.exit("lineEnding"),Mt)}function Mt(tn){return ct.parser.lazy[ct.now().line]?et(tn):Ze(tn)}}const So=document.createElement("i");function Ln(we){const Ze="&"+we+";";So.innerHTML=Ze;const et=So.textContent;return et.charCodeAt(et.length-1)===59&&we!=="semi"||et===Ze?!1:et}const ci={name:"characterReference",tokenize:yn};function yn(we,Ze,et){const ct=this;let kt=0,Mt,tn;return En;function En(Ui){return we.enter("characterReference"),we.enter("characterReferenceMarker"),we.consume(Ui),we.exit("characterReferenceMarker"),vi}function vi(Ui){return Ui===35?(we.enter("characterReferenceMarkerNumeric"),we.consume(Ui),we.exit("characterReferenceMarkerNumeric"),bi):(we.enter("characterReferenceValue"),Mt=31,tn=Ut.H$,Xn(Ui))}function bi(Ui){return Ui===88||Ui===120?(we.enter("characterReferenceMarkerHexadecimal"),we.consume(Ui),we.exit("characterReferenceMarkerHexadecimal"),we.enter("characterReferenceValue"),Mt=6,tn=Ut.AF,Xn):(we.enter("characterReferenceValue"),Mt=7,tn=Ut.pY,Xn(Ui))}function Xn(Ui){if(Ui===59&&kt){const Oi=we.exit("characterReferenceValue");return tn===Ut.H$&&!Ln(ct.sliceSerialize(Oi))?et(Ui):(we.enter("characterReferenceMarker"),we.consume(Ui),we.exit("characterReferenceMarker"),we.exit("characterReference"),Ze)}return tn(Ui)&&kt++<Mt?(we.consume(Ui),Xn):et(Ui)}}const rt={name:"characterEscape",tokenize:Ii};function Ii(we,Ze,et){return ct;function ct(Mt){return we.enter("characterEscape"),we.enter("escapeMarker"),we.consume(Mt),we.exit("escapeMarker"),kt}function kt(Mt){return(0,Ut.sR)(Mt)?(we.enter("characterEscapeValue"),we.consume(Mt),we.exit("characterEscapeValue"),we.exit("characterEscape"),Ze):et(Mt)}}const Hi={name:"lineEnding",tokenize:nr};function nr(we,Ze){return et;function et(ct){return we.enter("lineEnding"),we.consume(ct),we.exit("lineEnding"),(0,Kn.f)(we,Ze,"linePrefix")}}function qi(we,Ze,et){const ct=[];let kt=-1;for(;++kt<we.length;){const Mt=we[kt].resolveAll;Mt&&!ct.includes(Mt)&&(Ze=Mt(Ze,et),ct.push(Mt))}return Ze}const Zi={name:"labelEnd",resolveAll:vn,resolveTo:Bn,tokenize:hn},di={tokenize:Yn},dt={tokenize:Gn},gn={tokenize:en};function vn(we){let Ze=-1;const et=[];for(;++Ze<we.length;){const ct=we[Ze][1];if(et.push(we[Ze]),ct.type==="labelImage"||ct.type==="labelLink"||ct.type==="labelEnd"){const kt=ct.type==="labelImage"?4:2;ct.type="data",Ze+=kt}}return we.length!==et.length&&Gt(we,0,we.length,et),we}function Bn(we,Ze){let et=we.length,ct=0,kt,Mt,tn,En;for(;et--;)if(kt=we[et][1],Mt){if(kt.type==="link"||kt.type==="labelLink"&&kt._inactive)break;we[et][0]==="enter"&&kt.type==="labelLink"&&(kt._inactive=!0)}else if(tn){if(we[et][0]==="enter"&&(kt.type==="labelImage"||kt.type==="labelLink")&&!kt._balanced&&(Mt=et,kt.type!=="labelLink")){ct=2;break}}else kt.type==="labelEnd"&&(tn=et);const vi={type:we[Mt][1].type==="labelLink"?"link":"image",start:Qo({},we[Mt][1].start),end:Qo({},we[we.length-1][1].end)},bi={type:"label",start:Qo({},we[Mt][1].start),end:Qo({},we[tn][1].end)},Xn={type:"labelText",start:Qo({},we[Mt+ct+2][1].end),end:Qo({},we[tn-2][1].start)};return En=[["enter",vi,Ze],["enter",bi,Ze]],En=fn(En,we.slice(Mt+1,Mt+ct+3)),En=fn(En,[["enter",Xn,Ze]]),En=fn(En,qi(Ze.parser.constructs.insideSpan.null,we.slice(Mt+ct+4,tn-3),Ze)),En=fn(En,[["exit",Xn,Ze],we[tn-2],we[tn-1],["exit",bi,Ze]]),En=fn(En,we.slice(tn+1)),En=fn(En,[["exit",vi,Ze]]),Gt(we,Mt,we.length,En),we}function hn(we,Ze,et){const ct=this;let kt=ct.events.length,Mt,tn;for(;kt--;)if((ct.events[kt][1].type==="labelImage"||ct.events[kt][1].type==="labelLink")&&!ct.events[kt][1]._balanced){Mt=ct.events[kt][1];break}return En;function En(Oi){return Mt?Mt._inactive?Ui(Oi):(tn=ct.parser.defined.includes(Ai(ct.sliceSerialize({start:Mt.end,end:ct.now()}))),we.enter("labelEnd"),we.enter("labelMarker"),we.consume(Oi),we.exit("labelMarker"),we.exit("labelEnd"),vi):et(Oi)}function vi(Oi){return Oi===40?we.attempt(di,Xn,tn?Xn:Ui)(Oi):Oi===91?we.attempt(dt,Xn,tn?bi:Ui)(Oi):tn?Xn(Oi):Ui(Oi)}function bi(Oi){return we.attempt(gn,Xn,Ui)(Oi)}function Xn(Oi){return Ze(Oi)}function Ui(Oi){return Mt._balanced=!0,et(Oi)}}function Yn(we,Ze,et){return ct;function ct(Ui){return we.enter("resource"),we.enter("resourceMarker"),we.consume(Ui),we.exit("resourceMarker"),kt}function kt(Ui){return(0,Ut.z3)(Ui)?Pi(we,Mt)(Ui):Mt(Ui)}function Mt(Ui){return Ui===41?Xn(Ui):Fi(we,tn,En,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Ui)}function tn(Ui){return(0,Ut.z3)(Ui)?Pi(we,vi)(Ui):Xn(Ui)}function En(Ui){return et(Ui)}function vi(Ui){return Ui===34||Ui===39||Ui===40?je(we,bi,et,"resourceTitle","resourceTitleMarker","resourceTitleString")(Ui):Xn(Ui)}function bi(Ui){return(0,Ut.z3)(Ui)?Pi(we,Xn)(Ui):Xn(Ui)}function Xn(Ui){return Ui===41?(we.enter("resourceMarker"),we.consume(Ui),we.exit("resourceMarker"),we.exit("resource"),Ze):et(Ui)}}function Gn(we,Ze,et){const ct=this;return kt;function kt(En){return Cn.call(ct,we,Mt,tn,"reference","referenceMarker","referenceString")(En)}function Mt(En){return ct.parser.defined.includes(Ai(ct.sliceSerialize(ct.events[ct.events.length-1][1]).slice(1,-1)))?Ze(En):et(En)}function tn(En){return et(En)}}function en(we,Ze,et){return ct;function ct(Mt){return we.enter("reference"),we.enter("referenceMarker"),we.consume(Mt),we.exit("referenceMarker"),kt}function kt(Mt){return Mt===93?(we.enter("referenceMarker"),we.consume(Mt),we.exit("referenceMarker"),we.exit("reference"),Ze):et(Mt)}}const ri={name:"labelStartImage",resolveAll:Zi.resolveAll,tokenize:Bi};function Bi(we,Ze,et){const ct=this;return kt;function kt(En){return we.enter("labelImage"),we.enter("labelImageMarker"),we.consume(En),we.exit("labelImageMarker"),Mt}function Mt(En){return En===91?(we.enter("labelMarker"),we.consume(En),we.exit("labelMarker"),we.exit("labelImage"),tn):et(En)}function tn(En){return En===94&&"_hiddenFootnoteSupport"in ct.parser.constructs?et(En):Ze(En)}}function dr(we){if(we===null||(0,Ut.z3)(we)||(0,Ut.B8)(we))return 1;if((0,Ut.Xh)(we))return 2}const Ki={name:"attention",resolveAll:sr,tokenize:gr};function sr(we,Ze){let et=-1,ct,kt,Mt,tn,En,vi,bi,Xn;for(;++et<we.length;)if(we[et][0]==="enter"&&we[et][1].type==="attentionSequence"&&we[et][1]._close){for(ct=et;ct--;)if(we[ct][0]==="exit"&&we[ct][1].type==="attentionSequence"&&we[ct][1]._open&&Ze.sliceSerialize(we[ct][1]).charCodeAt(0)===Ze.sliceSerialize(we[et][1]).charCodeAt(0)){if((we[ct][1]._close||we[et][1]._open)&&(we[et][1].end.offset-we[et][1].start.offset)%3&&!((we[ct][1].end.offset-we[ct][1].start.offset+we[et][1].end.offset-we[et][1].start.offset)%3))continue;vi=we[ct][1].end.offset-we[ct][1].start.offset>1&&we[et][1].end.offset-we[et][1].start.offset>1?2:1;const Ui=Qo({},we[ct][1].end),Oi=Qo({},we[et][1].start);wr(Ui,-vi),wr(Oi,vi),tn={type:vi>1?"strongSequence":"emphasisSequence",start:Ui,end:Qo({},we[ct][1].end)},En={type:vi>1?"strongSequence":"emphasisSequence",start:Qo({},we[et][1].start),end:Oi},Mt={type:vi>1?"strongText":"emphasisText",start:Qo({},we[ct][1].end),end:Qo({},we[et][1].start)},kt={type:vi>1?"strong":"emphasis",start:Qo({},tn.start),end:Qo({},En.end)},we[ct][1].end=Qo({},tn.start),we[et][1].start=Qo({},En.end),bi=[],we[ct][1].end.offset-we[ct][1].start.offset&&(bi=fn(bi,[["enter",we[ct][1],Ze],["exit",we[ct][1],Ze]])),bi=fn(bi,[["enter",kt,Ze],["enter",tn,Ze],["exit",tn,Ze],["enter",Mt,Ze]]),bi=fn(bi,qi(Ze.parser.constructs.insideSpan.null,we.slice(ct+1,et),Ze)),bi=fn(bi,[["exit",Mt,Ze],["enter",En,Ze],["exit",En,Ze],["exit",kt,Ze]]),we[et][1].end.offset-we[et][1].start.offset?(Xn=2,bi=fn(bi,[["enter",we[et][1],Ze],["exit",we[et][1],Ze]])):Xn=0,Gt(we,ct-1,et-ct+3,bi),et=ct+bi.length-Xn-2;break}}for(et=-1;++et<we.length;)we[et][1].type==="attentionSequence"&&(we[et][1].type="data");return we}function gr(we,Ze){const et=this.parser.constructs.attentionMarkers.null,ct=this.previous,kt=dr(ct);let Mt;return tn;function tn(vi){return Mt=vi,we.enter("attentionSequence"),En(vi)}function En(vi){if(vi===Mt)return we.consume(vi),En;const bi=we.exit("attentionSequence"),Xn=dr(vi),Ui=!Xn||Xn===2&&kt||et.includes(vi),Oi=!kt||kt===2&&Xn||et.includes(ct);return bi._open=!!(Mt===42?Ui:Ui&&(kt||!Oi)),bi._close=!!(Mt===42?Oi:Oi&&(Xn||!Ui)),Ze(vi)}}function wr(we,Ze){we.column+=Ze,we.offset+=Ze,we._bufferIndex+=Ze}const zr={name:"autolink",tokenize:eo};function eo(we,Ze,et){let ct=0;return kt;function kt(ei){return we.enter("autolink"),we.enter("autolinkMarker"),we.consume(ei),we.exit("autolinkMarker"),we.enter("autolinkProtocol"),Mt}function Mt(ei){return(0,Ut.jv)(ei)?(we.consume(ei),tn):ei===64?et(ei):bi(ei)}function tn(ei){return ei===43||ei===45||ei===46||(0,Ut.H$)(ei)?(ct=1,En(ei)):bi(ei)}function En(ei){return ei===58?(we.consume(ei),ct=0,vi):(ei===43||ei===45||ei===46||(0,Ut.H$)(ei))&&ct++<32?(we.consume(ei),En):(ct=0,bi(ei))}function vi(ei){return ei===62?(we.exit("autolinkProtocol"),we.enter("autolinkMarker"),we.consume(ei),we.exit("autolinkMarker"),we.exit("autolink"),Ze):ei===null||ei===32||ei===60||(0,Ut.Av)(ei)?et(ei):(we.consume(ei),vi)}function bi(ei){return ei===64?(we.consume(ei),Xn):(0,Ut.n9)(ei)?(we.consume(ei),bi):et(ei)}function Xn(ei){return(0,Ut.H$)(ei)?Ui(ei):et(ei)}function Ui(ei){return ei===46?(we.consume(ei),ct=0,Xn):ei===62?(we.exit("autolinkProtocol").type="autolinkEmail",we.enter("autolinkMarker"),we.consume(ei),we.exit("autolinkMarker"),we.exit("autolink"),Ze):Oi(ei)}function Oi(ei){if((ei===45||(0,Ut.H$)(ei))&&ct++<63){const ro=ei===45?Oi:Ui;return we.consume(ei),ro}return et(ei)}}const yo={name:"htmlText",tokenize:xn};function xn(we,Ze,et){const ct=this;let kt,Mt,tn;return En;function En(Ci){return we.enter("htmlText"),we.enter("htmlTextData"),we.consume(Ci),vi}function vi(Ci){return Ci===33?(we.consume(Ci),bi):Ci===47?(we.consume(Ci),Ca):Ci===63?(we.consume(Ci),po):(0,Ut.jv)(Ci)?(we.consume(Ci),$a):et(Ci)}function bi(Ci){return Ci===45?(we.consume(Ci),Xn):Ci===91?(we.consume(Ci),Mt=0,ro):(0,Ut.jv)(Ci)?(we.consume(Ci),ao):et(Ci)}function Xn(Ci){return Ci===45?(we.consume(Ci),ei):et(Ci)}function Ui(Ci){return Ci===null?et(Ci):Ci===45?(we.consume(Ci),Oi):(0,Ut.Ch)(Ci)?(tn=Ui,Ms(Ci)):(we.consume(Ci),Ui)}function Oi(Ci){return Ci===45?(we.consume(Ci),ei):Ui(Ci)}function ei(Ci){return Ci===62?Za(Ci):Ci===45?Oi(Ci):Ui(Ci)}function ro(Ci){const nl="CDATA[";return Ci===nl.charCodeAt(Mt++)?(we.consume(Ci),Mt===nl.length?Eo:ro):et(Ci)}function Eo(Ci){return Ci===null?et(Ci):Ci===93?(we.consume(Ci),Mo):(0,Ut.Ch)(Ci)?(tn=Eo,Ms(Ci)):(we.consume(Ci),Eo)}function Mo(Ci){return Ci===93?(we.consume(Ci),jr):Eo(Ci)}function jr(Ci){return Ci===62?Za(Ci):Ci===93?(we.consume(Ci),jr):Eo(Ci)}function ao(Ci){return Ci===null||Ci===62?Za(Ci):(0,Ut.Ch)(Ci)?(tn=ao,Ms(Ci)):(we.consume(Ci),ao)}function po(Ci){return Ci===null?et(Ci):Ci===63?(we.consume(Ci),wa):(0,Ut.Ch)(Ci)?(tn=po,Ms(Ci)):(we.consume(Ci),po)}function wa(Ci){return Ci===62?Za(Ci):po(Ci)}function Ca(Ci){return(0,Ut.jv)(Ci)?(we.consume(Ci),Pr):et(Ci)}function Pr(Ci){return Ci===45||(0,Ut.H$)(Ci)?(we.consume(Ci),Pr):Aa(Ci)}function Aa(Ci){return(0,Ut.Ch)(Ci)?(tn=Aa,Ms(Ci)):(0,Ut.xz)(Ci)?(we.consume(Ci),Aa):Za(Ci)}function $a(Ci){return Ci===45||(0,Ut.H$)(Ci)?(we.consume(Ci),$a):Ci===47||Ci===62||(0,Ut.z3)(Ci)?pa(Ci):et(Ci)}function pa(Ci){return Ci===47?(we.consume(Ci),Za):Ci===58||Ci===95||(0,Ut.jv)(Ci)?(we.consume(Ci),io):(0,Ut.Ch)(Ci)?(tn=pa,Ms(Ci)):(0,Ut.xz)(Ci)?(we.consume(Ci),pa):Za(Ci)}function io(Ci){return Ci===45||Ci===46||Ci===58||Ci===95||(0,Ut.H$)(Ci)?(we.consume(Ci),io):tl(Ci)}function tl(Ci){return Ci===61?(we.consume(Ci),Ra):(0,Ut.Ch)(Ci)?(tn=tl,Ms(Ci)):(0,Ut.xz)(Ci)?(we.consume(Ci),tl):pa(Ci)}function Ra(Ci){return Ci===null||Ci===60||Ci===61||Ci===62||Ci===96?et(Ci):Ci===34||Ci===39?(we.consume(Ci),kt=Ci,ko):(0,Ut.Ch)(Ci)?(tn=Ra,Ms(Ci)):(0,Ut.xz)(Ci)?(we.consume(Ci),Ra):(we.consume(Ci),Po)}function ko(Ci){return Ci===kt?(we.consume(Ci),kt=void 0,ea):Ci===null?et(Ci):(0,Ut.Ch)(Ci)?(tn=ko,Ms(Ci)):(we.consume(Ci),ko)}function Po(Ci){return Ci===null||Ci===34||Ci===39||Ci===60||Ci===61||Ci===96?et(Ci):Ci===47||Ci===62||(0,Ut.z3)(Ci)?pa(Ci):(we.consume(Ci),Po)}function ea(Ci){return Ci===47||Ci===62||(0,Ut.z3)(Ci)?pa(Ci):et(Ci)}function Za(Ci){return Ci===62?(we.consume(Ci),we.exit("htmlTextData"),we.exit("htmlText"),Ze):et(Ci)}function Ms(Ci){return we.exit("htmlTextData"),we.enter("lineEnding"),we.consume(Ci),we.exit("lineEnding"),Vs}function Vs(Ci){return(0,Ut.xz)(Ci)?(0,Kn.f)(we,Il,"linePrefix",ct.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ci):Il(Ci)}function Il(Ci){return we.enter("htmlTextData"),tn(Ci)}}const so={name:"labelStartLink",resolveAll:Zi.resolveAll,tokenize:Qr};function Qr(we,Ze,et){const ct=this;return kt;function kt(tn){return we.enter("labelLink"),we.enter("labelMarker"),we.consume(tn),we.exit("labelMarker"),we.exit("labelLink"),Mt}function Mt(tn){return tn===94&&"_hiddenFootnoteSupport"in ct.parser.constructs?et(tn):Ze(tn)}}const Lr={name:"hardBreakEscape",tokenize:Cr};function Cr(we,Ze,et){return ct;function ct(Mt){return we.enter("hardBreakEscape"),we.consume(Mt),kt}function kt(Mt){return(0,Ut.Ch)(Mt)?(we.exit("hardBreakEscape"),Ze(Mt)):et(Mt)}}const fo={name:"codeText",previous:Fn,resolve:Co,tokenize:Jr};function Co(we){let Ze=we.length-4,et=3,ct,kt;if((we[et][1].type==="lineEnding"||we[et][1].type==="space")&&(we[Ze][1].type==="lineEnding"||we[Ze][1].type==="space")){for(ct=et;++ct<Ze;)if(we[ct][1].type==="codeTextData"){we[et][1].type="codeTextPadding",we[Ze][1].type="codeTextPadding",et+=2,Ze-=2;break}}for(ct=et-1,Ze++;++ct<=Ze;)kt===void 0?ct!==Ze&&we[ct][1].type!=="lineEnding"&&(kt=ct):(ct===Ze||we[ct][1].type==="lineEnding")&&(we[kt][1].type="codeTextData",ct!==kt+2&&(we[kt][1].end=we[ct-1][1].end,we.splice(kt+2,ct-kt-2),Ze-=ct-kt-2,ct=kt+2),kt=void 0);return we}function Fn(we){return we!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jr(we,Ze,et){const ct=this;let kt=0,Mt,tn;return En;function En(Oi){return we.enter("codeText"),we.enter("codeTextSequence"),vi(Oi)}function vi(Oi){return Oi===96?(we.consume(Oi),kt++,vi):(we.exit("codeTextSequence"),bi(Oi))}function bi(Oi){return Oi===null?et(Oi):Oi===32?(we.enter("space"),we.consume(Oi),we.exit("space"),bi):Oi===96?(tn=we.enter("codeTextSequence"),Mt=0,Ui(Oi)):(0,Ut.Ch)(Oi)?(we.enter("lineEnding"),we.consume(Oi),we.exit("lineEnding"),bi):(we.enter("codeTextData"),Xn(Oi))}function Xn(Oi){return Oi===null||Oi===32||Oi===96||(0,Ut.Ch)(Oi)?(we.exit("codeTextData"),bi(Oi)):(we.consume(Oi),Xn)}function Ui(Oi){return Oi===96?(we.consume(Oi),Mt++,Ui):Mt===kt?(we.exit("codeTextSequence"),we.exit("codeText"),Ze(Oi)):(tn.type="codeTextData",Xn(Oi))}}const Do={42:Ni,43:Ni,45:Ni,48:Ni,49:Ni,50:Ni,51:Ni,52:Ni,53:Ni,54:Ni,55:Ni,56:Ni,57:Ni,62:fi},ma={91:Rn},Ga={[-2]:ji,[-1]:ji,32:ji},js={35:pn,42:Ri,45:[ir,Ri],60:br,61:ir,95:Ri,96:Xr,126:Xr},as={38:ci,92:rt},Fr={[-5]:Hi,[-4]:Hi,[-3]:Hi,33:ri,38:ci,42:Ki,60:[zr,yo],91:so,92:[Lr,rt],93:Zi,95:Ki,96:fo},la={null:[Ki,ui]},ua={null:[42,95]},Ua={null:[]};function ca(we,Ze,et){let ct={_bufferIndex:-1,_index:0,line:et&&et.line||1,column:et&&et.column||1,offset:et&&et.offset||0};const kt={},Mt=[];let tn=[],En=[],vi=!0;const bi={attempt:pa(Aa),check:pa($a),consume:wa,enter:Ca,exit:Pr,interrupt:pa($a,{interrupt:!0})},Xn={code:null,containerState:{},defineSkip:jr,events:[],now:Mo,parser:we,previous:null,sliceSerialize:ro,sliceStream:Eo,write:ei};let Ui=Ze.tokenize.call(Xn,bi),Oi;return Ze.resolveAll&&Mt.push(Ze),Xn;function ei(ko){return tn=fn(tn,ko),ao(),tn[tn.length-1]!==null?[]:(io(Ze,0),Xn.events=qi(Mt,Xn.events,Xn),Xn.events)}function ro(ko,Po){return $i(Eo(ko),Po)}function Eo(ko){return Ea(tn,ko)}function Mo(){const{_bufferIndex:ko,_index:Po,line:ea,column:Za,offset:Ms}=ct;return{_bufferIndex:ko,_index:Po,line:ea,column:Za,offset:Ms}}function jr(ko){kt[ko.line]=ko.column,Ra()}function ao(){let ko;for(;ct._index<tn.length;){const Po=tn[ct._index];if(typeof Po=="string")for(ko=ct._index,ct._bufferIndex<0&&(ct._bufferIndex=0);ct._index===ko&&ct._bufferIndex<Po.length;)po(Po.charCodeAt(ct._bufferIndex));else po(Po)}}function po(ko){vi=void 0,Oi=ko,Ui=Ui(ko)}function wa(ko){(0,Ut.Ch)(ko)?(ct.line++,ct.column=1,ct.offset+=ko===-3?2:1,Ra()):ko!==-1&&(ct.column++,ct.offset++),ct._bufferIndex<0?ct._index++:(ct._bufferIndex++,ct._bufferIndex===tn[ct._index].length&&(ct._bufferIndex=-1,ct._index++)),Xn.previous=ko,vi=!0}function Ca(ko,Po){const ea=Po||{};return ea.type=ko,ea.start=Mo(),Xn.events.push(["enter",ea,Xn]),En.push(ea),ea}function Pr(ko){const Po=En.pop();return Po.end=Mo(),Xn.events.push(["exit",Po,Xn]),Po}function Aa(ko,Po){io(ko,Po.from)}function $a(ko,Po){Po.restore()}function pa(ko,Po){return ea;function ea(Za,Ms,Vs){let Il,Ci,nl,Hl;return Array.isArray(Za)?Ws(Za):"tokenize"in Za?Ws([Za]):Mi(Za);function Mi(Ka){return zl;function zl(Bs){const Nu=Bs!==null&&Ka[Bs],Zu=Bs!==null&&Ka.null,pd=[...Array.isArray(Nu)?Nu:Nu?[Nu]:[],...Array.isArray(Zu)?Zu:Zu?[Zu]:[]];return Ws(pd)(Bs)}}function Ws(Ka){return Il=Ka,Ci=0,Ka.length===0?Vs:eu(Ka[Ci])}function eu(Ka){return zl;function zl(Bs){return Hl=tl(),nl=Ka,Ka.partial||(Xn.currentConstruct=Ka),Ka.name&&Xn.parser.constructs.disable.null.includes(Ka.name)?As(Bs):Ka.tokenize.call(Po?Object.assign(Object.create(Xn),Po):Xn,bi,fu,As)(Bs)}}function fu(Ka){return vi=!0,ko(nl,Hl),Ms}function As(Ka){return vi=!0,Hl.restore(),++Ci<Il.length?eu(Il[Ci]):Vs}}}function io(ko,Po){ko.resolveAll&&!Mt.includes(ko)&&Mt.push(ko),ko.resolve&&Gt(Xn.events,Po,Xn.events.length-Po,ko.resolve(Xn.events.slice(Po),Xn)),ko.resolveTo&&(Xn.events=ko.resolveTo(Xn.events,Xn))}function tl(){const ko=Mo(),Po=Xn.previous,ea=Xn.currentConstruct,Za=Xn.events.length,Ms=Array.from(En);return{from:Za,restore:Vs};function Vs(){ct=ko,Xn.previous=Po,Xn.currentConstruct=ea,Xn.events.length=Za,En=Ms,Ra()}}function Ra(){ct.line in kt&&ct.column<2&&(ct.column=kt[ct.line],ct.offset+=kt[ct.line]-1)}}function Ea(we,Ze){const et=Ze.start._index,ct=Ze.start._bufferIndex,kt=Ze.end._index,Mt=Ze.end._bufferIndex;let tn;if(et===kt)tn=[we[et].slice(ct,Mt)];else{if(tn=we.slice(et,kt),ct>-1){const En=tn[0];typeof En=="string"?tn[0]=En.slice(ct):tn.shift()}Mt>0&&tn.push(we[kt].slice(0,Mt))}return tn}function $i(we,Ze){let et=-1;const ct=[];let kt;for(;++et<we.length;){const Mt=we[et];let tn;if(typeof Mt=="string")tn=Mt;else switch(Mt){case-5:{tn="\r";break}case-4:{tn=`
`;break}case-3:{tn=`\r
`;break}case-2:{tn=Ze?" ":" ";break}case-1:{if(!Ze&&kt)continue;tn=" ";break}default:tn=String.fromCharCode(Mt)}kt=Mt===-2,ct.push(tn)}return ct.join("")}function Mr(we){const ct={constructs:un([oe,...(we||{}).extensions||[]]),content:kt(yi),defined:[],document:kt(kn),flow:kt(ni),lazy:{},string:kt(tr),text:kt(Sn)};return ct;function kt(Mt){return tn;function tn(En){return ca(ct,Mt,En)}}}const Kr=/[\0\t\n\r]/g;function uo(){let we=1,Ze="",et=!0,ct;return kt;function kt(Mt,tn,En){const vi=[];let bi,Xn,Ui,Oi,ei;for(Mt=Ze+(typeof Mt=="string"?Mt.toString():new TextDecoder(tn||void 0).decode(Mt)),Ui=0,Ze="",et&&(Mt.charCodeAt(0)===65279&&Ui++,et=void 0);Ui<Mt.length;){if(Kr.lastIndex=Ui,bi=Kr.exec(Mt),Oi=bi&&bi.index!==void 0?bi.index:Mt.length,ei=Mt.charCodeAt(Oi),!bi){Ze=Mt.slice(Ui);break}if(ei===10&&Ui===Oi&&ct)vi.push(-3),ct=void 0;else switch(ct&&(vi.push(-5),ct=void 0),Ui<Oi&&(vi.push(Mt.slice(Ui,Oi)),we+=Oi-Ui),ei){case 0:{vi.push(65533),we++;break}case 9:{for(Xn=Math.ceil(we/4)*4,vi.push(-2);we++<Xn;)vi.push(-1);break}case 10:{vi.push(-4),we=1;break}default:ct=!0,we=1}Ui=Oi+1}return En&&(ct&&vi.push(-5),Ze&&vi.push(Ze),vi.push(null)),vi}}function ho(we,Ze){const et=Number.parseInt(we,Ze);return et<9||et===11||et>13&&et<32||et>126&&et<160||et>55295&&et<57344||et>64975&&et<65008||(et&65535)===65535||(et&65535)===65534||et>1114111?"\uFFFD":String.fromCodePoint(et)}const jo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dr(we){return we.replace(jo,Ya)}function Ya(we,Ze,et){if(Ze)return Ze;if(et.charCodeAt(0)===35){const kt=et.charCodeAt(1),Mt=kt===120||kt===88;return ho(et.slice(Mt?2:1),Mt?16:10)}return Ln(et)||we}const va={}.hasOwnProperty;function fa(we,Ze,et){return typeof Ze!="string"&&(et=Ze,Ze=void 0),vo(et)(Ht(Mr(et).document().write(uo()(we,Ze,!0))))}function vo(we){const Ze={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Mt($e),autolinkProtocol:pa,autolinkEmail:pa,atxHeading:Mt(lc),blockQuote:Mt(Bs),characterEscape:pa,characterReference:pa,codeFenced:Mt(Nu),codeFencedFenceInfo:tn,codeFencedFenceMeta:tn,codeIndented:Mt(Nu,tn),codeText:Mt(Zu,tn),codeTextData:pa,data:pa,codeFlowValue:pa,definition:Mt(pd),definitionDestinationString:tn,definitionLabelString:tn,definitionTitleString:tn,emphasis:Mt(tu),hardBreakEscape:Mt(Hd),hardBreakTrailing:Mt(Hd),htmlFlow:Mt(ce,tn),htmlFlowData:pa,htmlText:Mt(ce,tn),htmlTextData:pa,image:Mt(ge),label:tn,link:Mt($e),listItem:Mt(Si),listItemValue:Oi,listOrdered:Mt(Jt,Ui),listUnordered:Mt(Jt),paragraph:Mt(Qi),reference:Mi,referenceString:tn,resourceDestinationString:tn,resourceTitleString:tn,setextHeading:Mt(lc),strong:Mt(hr),thematicBreak:Mt(Ao)},exit:{atxHeading:vi(),atxHeadingSequence:Ca,autolink:vi(),autolinkEmail:zl,autolinkProtocol:Ka,blockQuote:vi(),characterEscapeValue:io,characterReferenceMarkerHexadecimal:eu,characterReferenceMarkerNumeric:eu,characterReferenceValue:fu,characterReference:As,codeFenced:vi(Mo),codeFencedFence:Eo,codeFencedFenceInfo:ei,codeFencedFenceMeta:ro,codeFlowValue:io,codeIndented:vi(jr),codeText:vi(ea),codeTextData:io,data:io,definition:vi(),definitionDestinationString:wa,definitionLabelString:ao,definitionTitleString:po,emphasis:vi(),hardBreakEscape:vi(Ra),hardBreakTrailing:vi(Ra),htmlFlow:vi(ko),htmlFlowData:io,htmlText:vi(Po),htmlTextData:io,image:vi(Ms),label:Il,labelText:Vs,lineEnding:tl,link:vi(Za),listItem:vi(),listOrdered:vi(),listUnordered:vi(),paragraph:vi(),referenceString:Ws,resourceDestinationString:Ci,resourceTitleString:nl,resource:Hl,setextHeading:vi($a),setextHeadingLineSequence:Aa,setextHeadingText:Pr,strong:vi(),thematicBreak:vi()}};gs(Ze,(we||{}).mdastExtensions||[]);const et={};return ct;function ct(Wi){let Ur={type:"root",children:[]};const Oo={stack:[Ur],tokenStack:[],config:Ze,enter:En,exit:bi,buffer:tn,resume:Xn,data:et},ia=[];let Oa=-1;for(;++Oa<Wi.length;)if(Wi[Oa][1].type==="listOrdered"||Wi[Oa][1].type==="listUnordered")if(Wi[Oa][0]==="enter")ia.push(Oa);else{const pu=ia.pop();Oa=kt(Wi,pu,Oa)}for(Oa=-1;++Oa<Wi.length;){const pu=Ze[Wi[Oa][0]];va.call(pu,Wi[Oa][1].type)&&pu[Wi[Oa][1].type].call(Object.assign({sliceSerialize:Wi[Oa][2].sliceSerialize},Oo),Wi[Oa][1])}if(Oo.tokenStack.length>0){const pu=Oo.tokenStack[Oo.tokenStack.length-1];(pu[1]||ss).call(Oo,void 0,pu[0])}for(Ur.position={start:Wo(Wi.length>0?Wi[0][1].start:{line:1,column:1,offset:0}),end:Wo(Wi.length>0?Wi[Wi.length-2][1].end:{line:1,column:1,offset:0})},Oa=-1;++Oa<Ze.transforms.length;)Ur=Ze.transforms[Oa](Ur)||Ur;return Ur}function kt(Wi,Ur,Oo){let ia=Ur-1,Oa=-1,pu=!1,ku,uc,Ku,Sl;for(;++ia<=Oo;){const nu=Wi[ia];switch(nu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{nu[0]==="enter"?Oa++:Oa--,Sl=void 0;break}case"lineEndingBlank":{nu[0]==="enter"&&(ku&&!Sl&&!Oa&&!Ku&&(Ku=ia),Sl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Sl=void 0}if(!Oa&&nu[0]==="enter"&&nu[1].type==="listItemPrefix"||Oa===-1&&nu[0]==="exit"&&(nu[1].type==="listUnordered"||nu[1].type==="listOrdered")){if(ku){let Mc=ia;for(uc=void 0;Mc--;){const jl=Wi[Mc];if(jl[1].type==="lineEnding"||jl[1].type==="lineEndingBlank"){if(jl[0]==="exit")continue;uc&&(Wi[uc][1].type="lineEndingBlank",pu=!0),jl[1].type="lineEnding",uc=Mc}else if(!(jl[1].type==="linePrefix"||jl[1].type==="blockQuotePrefix"||jl[1].type==="blockQuotePrefixWhitespace"||jl[1].type==="blockQuoteMarker"||jl[1].type==="listItemIndent"))break}Ku&&(!uc||Ku<uc)&&(ku._spread=!0),ku.end=Object.assign({},uc?Wi[uc][1].start:nu[1].end),Wi.splice(uc||ia,0,["exit",ku,nu[2]]),ia++,Oo++}if(nu[1].type==="listItemPrefix"){const Mc={type:"listItem",_spread:!1,start:Object.assign({},nu[1].start),end:void 0};ku=Mc,Wi.splice(ia,0,["enter",Mc,nu[2]]),ia++,Oo++,Ku=void 0,Sl=!0}}}return Wi[Ur][1]._spread=pu,Oo}function Mt(Wi,Ur){return Oo;function Oo(ia){En.call(this,Wi(ia),ia),Ur&&Ur.call(this,ia)}}function tn(){this.stack.push({type:"fragment",children:[]})}function En(Wi,Ur,Oo){this.stack[this.stack.length-1].children.push(Wi),this.stack.push(Wi),this.tokenStack.push([Ur,Oo||void 0]),Wi.position={start:Wo(Ur.start),end:void 0}}function vi(Wi){return Ur;function Ur(Oo){Wi&&Wi.call(this,Oo),bi.call(this,Oo)}}function bi(Wi,Ur){const Oo=this.stack.pop(),ia=this.tokenStack.pop();if(ia)ia[0].type!==Wi.type&&(Ur?Ur.call(this,Wi,ia[0]):(ia[1]||ss).call(this,Wi,ia[0]));else throw new Error("Cannot close `"+Wi.type+"` ("+Pe({start:Wi.start,end:Wi.end})+"): it\u2019s not open");Oo.position.end=Wo(Wi.end)}function Xn(){return An(this.stack.pop())}function Ui(){this.data.expectingFirstListItemValue=!0}function Oi(Wi){if(this.data.expectingFirstListItemValue){const Ur=this.stack[this.stack.length-2];Ur.start=Number.parseInt(this.sliceSerialize(Wi),10),this.data.expectingFirstListItemValue=void 0}}function ei(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.lang=Wi}function ro(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.meta=Wi}function Eo(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Mo(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.value=Wi.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function jr(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.value=Wi.replace(/(\r?\n|\r)$/g,"")}function ao(Wi){const Ur=this.resume(),Oo=this.stack[this.stack.length-1];Oo.label=Ur,Oo.identifier=Ai(this.sliceSerialize(Wi)).toLowerCase()}function po(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.title=Wi}function wa(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.url=Wi}function Ca(Wi){const Ur=this.stack[this.stack.length-1];if(!Ur.depth){const Oo=this.sliceSerialize(Wi).length;Ur.depth=Oo}}function Pr(){this.data.setextHeadingSlurpLineEnding=!0}function Aa(Wi){const Ur=this.stack[this.stack.length-1];Ur.depth=this.sliceSerialize(Wi).codePointAt(0)===61?1:2}function $a(){this.data.setextHeadingSlurpLineEnding=void 0}function pa(Wi){const Oo=this.stack[this.stack.length-1].children;let ia=Oo[Oo.length-1];(!ia||ia.type!=="text")&&(ia=lo(),ia.position={start:Wo(Wi.start),end:void 0},Oo.push(ia)),this.stack.push(ia)}function io(Wi){const Ur=this.stack.pop();Ur.value+=this.sliceSerialize(Wi),Ur.position.end=Wo(Wi.end)}function tl(Wi){const Ur=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oo=Ur.children[Ur.children.length-1];Oo.position.end=Wo(Wi.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Ze.canContainEols.includes(Ur.type)&&(pa.call(this,Wi),io.call(this,Wi))}function Ra(){this.data.atHardBreak=!0}function ko(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.value=Wi}function Po(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.value=Wi}function ea(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.value=Wi}function Za(){const Wi=this.stack[this.stack.length-1];if(this.data.inReference){const Ur=this.data.referenceType||"shortcut";Wi.type+="Reference",Wi.referenceType=Ur,delete Wi.url,delete Wi.title}else delete Wi.identifier,delete Wi.label;this.data.referenceType=void 0}function Ms(){const Wi=this.stack[this.stack.length-1];if(this.data.inReference){const Ur=this.data.referenceType||"shortcut";Wi.type+="Reference",Wi.referenceType=Ur,delete Wi.url,delete Wi.title}else delete Wi.identifier,delete Wi.label;this.data.referenceType=void 0}function Vs(Wi){const Ur=this.sliceSerialize(Wi),Oo=this.stack[this.stack.length-2];Oo.label=Dr(Ur),Oo.identifier=Ai(Ur).toLowerCase()}function Il(){const Wi=this.stack[this.stack.length-1],Ur=this.resume(),Oo=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oo.type==="link"){const ia=Wi.children;Oo.children=ia}else Oo.alt=Ur}function Ci(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.url=Wi}function nl(){const Wi=this.resume(),Ur=this.stack[this.stack.length-1];Ur.title=Wi}function Hl(){this.data.inReference=void 0}function Mi(){this.data.referenceType="collapsed"}function Ws(Wi){const Ur=this.resume(),Oo=this.stack[this.stack.length-1];Oo.label=Ur,Oo.identifier=Ai(this.sliceSerialize(Wi)).toLowerCase(),this.data.referenceType="full"}function eu(Wi){this.data.characterReferenceType=Wi.type}function fu(Wi){const Ur=this.sliceSerialize(Wi),Oo=this.data.characterReferenceType;let ia;Oo?(ia=ho(Ur,Oo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ia=Ln(Ur);const Oa=this.stack[this.stack.length-1];Oa.value+=ia}function As(Wi){const Ur=this.stack.pop();Ur.position.end=Wo(Wi.end)}function Ka(Wi){io.call(this,Wi);const Ur=this.stack[this.stack.length-1];Ur.url=this.sliceSerialize(Wi)}function zl(Wi){io.call(this,Wi);const Ur=this.stack[this.stack.length-1];Ur.url="mailto:"+this.sliceSerialize(Wi)}function Bs(){return{type:"blockquote",children:[]}}function Nu(){return{type:"code",lang:null,meta:null,value:""}}function Zu(){return{type:"inlineCode",value:""}}function pd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function tu(){return{type:"emphasis",children:[]}}function lc(){return{type:"heading",depth:0,children:[]}}function Hd(){return{type:"break"}}function ce(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function $e(){return{type:"link",title:null,url:"",children:[]}}function Jt(Wi){return{type:"list",ordered:Wi.type==="listOrdered",start:null,spread:Wi._spread,children:[]}}function Si(Wi){return{type:"listItem",spread:Wi._spread,checked:null,children:[]}}function Qi(){return{type:"paragraph",children:[]}}function hr(){return{type:"strong",children:[]}}function lo(){return{type:"text",value:""}}function Ao(){return{type:"thematicBreak"}}}function Wo(we){return{line:we.line,column:we.column,offset:we.offset}}function gs(we,Ze){let et=-1;for(;++et<Ze.length;){const ct=Ze[et];Array.isArray(ct)?gs(we,ct):Jo(we,ct)}}function Jo(we,Ze){let et;for(et in Ze)if(va.call(Ze,et))switch(et){case"canContainEols":{const ct=Ze[et];ct&&we[et].push(...ct);break}case"transforms":{const ct=Ze[et];ct&&we[et].push(...ct);break}case"enter":case"exit":{const ct=Ze[et];ct&&Object.assign(we[et],ct);break}}}function ss(we,Ze){throw we?new Error("Cannot close `"+we.type+"` ("+Pe({start:we.start,end:we.end})+"): a different token (`"+Ze.type+"`, "+Pe({start:Ze.start,end:Ze.end})+") is open"):new Error("Cannot close document, a token (`"+Ze.type+"`, "+Pe({start:Ze.start,end:Ze.end})+") is still open")}function Os(we){const Ze=this;Ze.parser=et;function et(ct){return fa(ct,Af(Qo(Qo({},Ze.data("settings")),we),{extensions:Ze.data("micromarkExtensions")||[],mdastExtensions:Ze.data("fromMarkdownExtensions")||[]}))}}var ws=ae(90302);function Pa(we,Ze){const et=encode(Al(we||""));if(!Ze)return et;const ct=et.indexOf(":"),kt=et.indexOf("?"),Mt=et.indexOf("#"),tn=et.indexOf("/");return ct<0||tn>-1&&ct>tn||kt>-1&&ct>kt||Mt>-1&&ct>Mt||Ze.test(et.slice(0,ct))?et:""}function Al(we){const Ze=[];let et=-1,ct=0,kt=0;for(;++et<we.length;){const Mt=we.charCodeAt(et);let tn="";if(Mt===37&&(0,Ut.H$)(we.charCodeAt(et+1))&&(0,Ut.H$)(we.charCodeAt(et+2)))kt=2;else if(Mt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Mt))||(tn=String.fromCharCode(Mt));else if(Mt>55295&&Mt<57344){const En=we.charCodeAt(et+1);Mt<56320&&En>56319&&En<57344?(tn=String.fromCharCode(Mt,En),kt=1):tn="\uFFFD"}else tn=String.fromCharCode(Mt);tn&&(Ze.push(we.slice(ct,et),encodeURIComponent(tn)),ct=et+kt+1,tn=""),kt&&(et+=kt,kt=0)}return Ze.join("")+we.slice(ct)}function Uu(we,Ze){const et=[{type:"text",value:"\u21A9"}];return Ze>1&&et.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Ze)}]}),et}function Rs(we,Ze){return"Back to reference "+(we+1)+(Ze>1?"-"+Ze:"")}function Js(we){const Ze=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",et=we.options.footnoteBackContent||Uu,ct=we.options.footnoteBackLabel||Rs,kt=we.options.footnoteLabel||"Footnotes",Mt=we.options.footnoteLabelTagName||"h2",tn=we.options.footnoteLabelProperties||{className:["sr-only"]},En=[];let vi=-1;for(;++vi<we.footnoteOrder.length;){const bi=we.footnoteById.get(we.footnoteOrder[vi]);if(!bi)continue;const Xn=we.all(bi),Ui=String(bi.identifier).toUpperCase(),Oi=Al(Ui.toLowerCase());let ei=0;const ro=[],Eo=we.footnoteCounts.get(Ui);for(;Eo!==void 0&&++ei<=Eo;){ro.length>0&&ro.push({type:"text",value:" "});let ao=typeof et=="string"?et:et(vi,ei);typeof ao=="string"&&(ao={type:"text",value:ao}),ro.push({type:"element",tagName:"a",properties:{href:"#"+Ze+"fnref-"+Oi+(ei>1?"-"+ei:""),dataFootnoteBackref:"",ariaLabel:typeof ct=="string"?ct:ct(vi,ei),className:["data-footnote-backref"]},children:Array.isArray(ao)?ao:[ao]})}const Mo=Xn[Xn.length-1];if(Mo&&Mo.type==="element"&&Mo.tagName==="p"){const ao=Mo.children[Mo.children.length-1];ao&&ao.type==="text"?ao.value+=" ":Mo.children.push({type:"text",value:" "}),Mo.children.push(...ro)}else Xn.push(...ro);const jr={type:"element",tagName:"li",properties:{id:Ze+"fn-"+Oi},children:we.wrap(Xn,!0)};we.patch(bi,jr),En.push(jr)}if(En.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Mt,properties:Af(Qo({},(0,ws.ZP)(tn)),{id:"footnote-label"}),children:[{type:"text",value:kt}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:we.wrap(En,!0)},{type:"text",value:`
`}]}}var Ds=ae(10528);function Ql(we,Ze){const et={type:"element",tagName:"blockquote",properties:{},children:we.wrap(we.all(Ze),!0)};return we.patch(Ze,et),we.applyData(Ze,et)}function rc(we,Ze){const et={type:"element",tagName:"br",properties:{},children:[]};return we.patch(Ze,et),[we.applyData(Ze,et),{type:"text",value:`
`}]}function oc(we,Ze){const et=Ze.value?Ze.value+`
`:"",ct={};Ze.lang&&(ct.className=["language-"+Ze.lang]);let kt={type:"element",tagName:"code",properties:ct,children:[{type:"text",value:et}]};return Ze.meta&&(kt.data={meta:Ze.meta}),we.patch(Ze,kt),kt=we.applyData(Ze,kt),kt={type:"element",tagName:"pre",properties:{},children:[kt]},we.patch(Ze,kt),kt}function Ia(we,Ze){const et={type:"element",tagName:"del",properties:{},children:we.all(Ze)};return we.patch(Ze,et),we.applyData(Ze,et)}function Hu(we,Ze){const et={type:"element",tagName:"em",properties:{},children:we.all(Ze)};return we.patch(Ze,et),we.applyData(Ze,et)}function ac(we,Ze){const et=typeof we.options.clobberPrefix=="string"?we.options.clobberPrefix:"user-content-",ct=String(Ze.identifier).toUpperCase(),kt=Al(ct.toLowerCase()),Mt=we.footnoteOrder.indexOf(ct);let tn,En=we.footnoteCounts.get(ct);En===void 0?(En=0,we.footnoteOrder.push(ct),tn=we.footnoteOrder.length):tn=Mt+1,En+=1,we.footnoteCounts.set(ct,En);const vi={type:"element",tagName:"a",properties:{href:"#"+et+"fn-"+kt,id:et+"fnref-"+kt+(En>1?"-"+En:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(tn)}]};we.patch(Ze,vi);const bi={type:"element",tagName:"sup",properties:{},children:[vi]};return we.patch(Ze,bi),we.applyData(Ze,bi)}function cu(we,Ze){const et={type:"element",tagName:"h"+Ze.depth,properties:{},children:we.all(Ze)};return we.patch(Ze,et),we.applyData(Ze,et)}function Pu(we,Ze){if(we.options.allowDangerousHtml){const et={type:"raw",value:Ze.value};return we.patch(Ze,et),we.applyData(Ze,et)}}function ls(we,Ze){const et=Ze.referenceType;let ct="]";if(et==="collapsed"?ct+="[]":et==="full"&&(ct+="["+(Ze.label||Ze.identifier)+"]"),Ze.type==="imageReference")return[{type:"text",value:"!["+Ze.alt+ct}];const kt=we.all(Ze),Mt=kt[0];Mt&&Mt.type==="text"?Mt.value="["+Mt.value:kt.unshift({type:"text",value:"["});const tn=kt[kt.length-1];return tn&&tn.type==="text"?tn.value+=ct:kt.push({type:"text",value:ct}),kt}function Es(we,Ze){const et=String(Ze.identifier).toUpperCase(),ct=we.definitionById.get(et);if(!ct)return ls(we,Ze);const kt={src:Al(ct.url||""),alt:Ze.alt};ct.title!==null&&ct.title!==void 0&&(kt.title=ct.title);const Mt={type:"element",tagName:"img",properties:kt,children:[]};return we.patch(Ze,Mt),we.applyData(Ze,Mt)}function Va(we,Ze){const et={src:Al(Ze.url)};Ze.alt!==null&&Ze.alt!==void 0&&(et.alt=Ze.alt),Ze.title!==null&&Ze.title!==void 0&&(et.title=Ze.title);const ct={type:"element",tagName:"img",properties:et,children:[]};return we.patch(Ze,ct),we.applyData(Ze,ct)}function is(we,Ze){const et={type:"text",value:Ze.value.replace(/\r?\n|\r/g," ")};we.patch(Ze,et);const ct={type:"element",tagName:"code",properties:{},children:[et]};return we.patch(Ze,ct),we.applyData(Ze,ct)}function du(we,Ze){const et=String(Ze.identifier).toUpperCase(),ct=we.definitionById.get(et);if(!ct)return ls(we,Ze);const kt={href:Al(ct.url||"")};ct.title!==null&&ct.title!==void 0&&(kt.title=ct.title);const Mt={type:"element",tagName:"a",properties:kt,children:we.all(Ze)};return we.patch(Ze,Mt),we.applyData(Ze,Mt)}function Cs(we,Ze){const et={href:Al(Ze.url)};Ze.title!==null&&Ze.title!==void 0&&(et.title=Ze.title);const ct={type:"element",tagName:"a",properties:et,children:we.all(Ze)};return we.patch(Ze,ct),we.applyData(Ze,ct)}function $o(we,Ze,et){const ct=we.all(Ze),kt=et?Zo(et):Ro(Ze),Mt={},tn=[];if(typeof Ze.checked=="boolean"){const Xn=ct[0];let Ui;Xn&&Xn.type==="element"&&Xn.tagName==="p"?Ui=Xn:(Ui={type:"element",tagName:"p",properties:{},children:[]},ct.unshift(Ui)),Ui.children.length>0&&Ui.children.unshift({type:"text",value:" "}),Ui.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Ze.checked,disabled:!0},children:[]}),Mt.className=["task-list-item"]}let En=-1;for(;++En<ct.length;){const Xn=ct[En];(kt||En!==0||Xn.type!=="element"||Xn.tagName!=="p")&&tn.push({type:"text",value:`
`}),Xn.type==="element"&&Xn.tagName==="p"&&!kt?tn.push(...Xn.children):tn.push(Xn)}const vi=ct[ct.length-1];vi&&(kt||vi.type!=="element"||vi.tagName!=="p")&&tn.push({type:"text",value:`
`});const bi={type:"element",tagName:"li",properties:Mt,children:tn};return we.patch(Ze,bi),we.applyData(Ze,bi)}function Zo(we){let Ze=!1;if(we.type==="list"){Ze=we.spread||!1;const et=we.children;let ct=-1;for(;!Ze&&++ct<et.length;)Ze=Ro(et[ct])}return Ze}function Ro(we){const Ze=we.spread;return Ze==null?we.children.length>1:Ze}function Ha(we,Ze){const et={},ct=we.all(Ze);let kt=-1;for(typeof Ze.start=="number"&&Ze.start!==1&&(et.start=Ze.start);++kt<ct.length;){const tn=ct[kt];if(tn.type==="element"&&tn.tagName==="li"&&tn.properties&&Array.isArray(tn.properties.className)&&tn.properties.className.includes("task-list-item")){et.className=["contains-task-list"];break}}const Mt={type:"element",tagName:Ze.ordered?"ol":"ul",properties:et,children:we.wrap(ct,!0)};return we.patch(Ze,Mt),we.applyData(Ze,Mt)}function mr(we,Ze){const et={type:"element",tagName:"p",properties:{},children:we.all(Ze)};return we.patch(Ze,et),we.applyData(Ze,et)}function Xa(we,Ze){const et={type:"root",children:we.wrap(we.all(Ze))};return we.patch(Ze,et),we.applyData(Ze,et)}function Qt(we,Ze){const et={type:"element",tagName:"strong",properties:{},children:we.all(Ze)};return we.patch(Ze,et),we.applyData(Ze,et)}function Ti(we,Ze){const et=we.all(Ze),ct=et.shift(),kt=[];if(ct){const tn={type:"element",tagName:"thead",properties:{},children:we.wrap([ct],!0)};we.patch(Ze.children[0],tn),kt.push(tn)}if(et.length>0){const tn={type:"element",tagName:"tbody",properties:{},children:we.wrap(et,!0)},En=(0,Ee.Pk)(Ze.children[1]),vi=(0,Ee.rb)(Ze.children[Ze.children.length-1]);En&&vi&&(tn.position={start:En,end:vi}),kt.push(tn)}const Mt={type:"element",tagName:"table",properties:{},children:we.wrap(kt,!0)};return we.patch(Ze,Mt),we.applyData(Ze,Mt)}function pl(we,Ze,et){const ct=et?et.children:void 0,Mt=(ct?ct.indexOf(Ze):1)===0?"th":"td",tn=et&&et.type==="table"?et.align:void 0,En=tn?tn.length:Ze.children.length;let vi=-1;const bi=[];for(;++vi<En;){const Ui=Ze.children[vi],Oi={},ei=tn?tn[vi]:void 0;ei&&(Oi.align=ei);let ro={type:"element",tagName:Mt,properties:Oi,children:[]};Ui&&(ro.children=we.all(Ui),we.patch(Ui,ro),ro=we.applyData(Ui,ro)),bi.push(ro)}const Xn={type:"element",tagName:"tr",properties:{},children:we.wrap(bi,!0)};return we.patch(Ze,Xn),we.applyData(Ze,Xn)}function Jl(we,Ze){const et={type:"element",tagName:"td",properties:{},children:we.all(Ze)};return we.patch(Ze,et),we.applyData(Ze,et)}const Ma=9,Qa=32;function qs(we){const Ze=String(we),et=/\r?\n|\r/g;let ct=et.exec(Ze),kt=0;const Mt=[];for(;ct;)Mt.push(gl(Ze.slice(kt,ct.index),kt>0,!0),ct[0]),kt=ct.index+ct[0].length,ct=et.exec(Ze);return Mt.push(gl(Ze.slice(kt),kt>0,!1)),Mt.join("")}function gl(we,Ze,et){let ct=0,kt=we.length;if(Ze){let Mt=we.codePointAt(ct);for(;Mt===Ma||Mt===Qa;)ct++,Mt=we.codePointAt(ct)}if(et){let Mt=we.codePointAt(kt-1);for(;Mt===Ma||Mt===Qa;)kt--,Mt=we.codePointAt(kt-1)}return kt>ct?we.slice(ct,kt):""}function zu(we,Ze){const et={type:"text",value:qs(String(Ze.value))};return we.patch(Ze,et),we.applyData(Ze,et)}function ya(we,Ze){const et={type:"element",tagName:"hr",properties:{},children:[]};return we.patch(Ze,et),we.applyData(Ze,et)}const no={blockquote:Ql,break:rc,code:oc,delete:Ia,emphasis:Hu,footnoteReference:ac,heading:cu,html:Pu,imageReference:Es,image:Va,inlineCode:is,linkReference:du,link:Cs,listItem:$o,list:Ha,paragraph:mr,root:Xa,strong:Qt,table:Ti,tableCell:Jl,tableRow:pl,text:zu,thematicBreak:ya,toml:us,yaml:us,definition:us,footnoteDefinition:us};function us(){}const Ls={}.hasOwnProperty,Go={};function To(we,Ze){const et=Ze||Go,ct=new Map,kt=new Map,Mt=new Map,tn=Qo(Qo({},no),et.handlers),En={all:bi,applyData:Fs,definitionById:ct,footnoteById:kt,footnoteCounts:Mt,footnoteOrder:[],handlers:tn,one:vi,options:et,patch:ba,wrap:Gs};return(0,Ds.Vn)(we,function(Xn){if(Xn.type==="definition"||Xn.type==="footnoteDefinition"){const Ui=Xn.type==="definition"?ct:kt,Oi=String(Xn.identifier).toUpperCase();Ui.has(Oi)||Ui.set(Oi,Xn)}}),En;function vi(Xn,Ui){const Oi=Xn.type,ei=En.handlers[Oi];if(Ls.call(En.handlers,Oi)&&ei)return ei(En,Xn,Ui);if(En.options.passThrough&&En.options.passThrough.includes(Oi)){if("children"in Xn){const Eo=Xn,{children:Mo}=Eo,jr=CE(Eo,["children"]),ao=(0,ws.ZP)(jr);return ao.children=En.all(Xn),ao}return(0,ws.ZP)(Xn)}return(En.options.unknownHandler||sa)(En,Xn,Ui)}function bi(Xn){const Ui=[];if("children"in Xn){const Oi=Xn.children;let ei=-1;for(;++ei<Oi.length;){const ro=En.one(Oi[ei],Xn);if(ro){if(ei&&Oi[ei-1].type==="break"&&(!Array.isArray(ro)&&ro.type==="text"&&(ro.value=Ja(ro.value)),!Array.isArray(ro)&&ro.type==="element")){const Eo=ro.children[0];Eo&&Eo.type==="text"&&(Eo.value=Ja(Eo.value))}Array.isArray(ro)?Ui.push(...ro):Ui.push(ro)}}}return Ui}}function ba(we,Ze){we.position&&(Ze.position=(0,Ee.FK)(we))}function Fs(we,Ze){let et=Ze;if(we&&we.data){const ct=we.data.hName,kt=we.data.hChildren,Mt=we.data.hProperties;if(typeof ct=="string")if(et.type==="element")et.tagName=ct;else{const tn="children"in et?et.children:[et];et={type:"element",tagName:ct,properties:{},children:tn}}et.type==="element"&&Mt&&Object.assign(et.properties,(0,ws.ZP)(Mt)),"children"in et&&et.children&&kt!==null&&kt!==void 0&&(et.children=kt)}return et}function sa(we,Ze){const et=Ze.data||{},ct="value"in Ze&&!(Ls.call(et,"hProperties")||Ls.call(et,"hChildren"))?{type:"text",value:Ze.value}:{type:"element",tagName:"div",properties:{},children:we.all(Ze)};return we.patch(Ze,ct),we.applyData(Ze,ct)}function Gs(we,Ze){const et=[];let ct=-1;for(Ze&&et.push({type:"text",value:`
`});++ct<we.length;)ct&&et.push({type:"text",value:`
`}),et.push(we[ct]);return Ze&&we.length>0&&et.push({type:"text",value:`
`}),et}function Ja(we){let Ze=0,et=we.charCodeAt(Ze);for(;et===9||et===32;)Ze++,et=we.charCodeAt(Ze);return we.slice(Ze)}function hu(we,Ze){const et=To(we,Ze),ct=et.one(we,void 0),kt=Js(et),Mt=Array.isArray(ct)?{type:"root",children:ct}:ct||{type:"root",children:[]};return kt&&((0,Ce.ok)("children"in Mt),Mt.children.push({type:"text",value:`
`},kt)),Mt}function Ko(we,Ze){return we&&"run"in we?function(et,ct){return Jy(this,null,function*(){const kt=hu(et,Qo({file:ct},Ze));yield we.run(kt,ct)})}:function(et,ct){return hu(et,Qo({file:ct},we||Ze))}}function cs(we){if(we)throw we}var Bo=ae(58847);function na(we){if(typeof we!="object"||we===null)return!1;const Ze=Object.getPrototypeOf(we);return(Ze===null||Ze===Object.prototype||Object.getPrototypeOf(Ze)===null)&&!(Symbol.toStringTag in we)&&!(Symbol.iterator in we)}function aa(){const we=[],Ze={run:et,use:ct};return Ze;function et(...kt){let Mt=-1;const tn=kt.pop();if(typeof tn!="function")throw new TypeError("Expected function as last argument, not "+tn);En(null,...kt);function En(vi,...bi){const Xn=we[++Mt];let Ui=-1;if(vi){tn(vi);return}for(;++Ui<kt.length;)(bi[Ui]===null||bi[Ui]===void 0)&&(bi[Ui]=kt[Ui]);kt=bi,Xn?Sa(Xn,En)(...bi):tn(null,...bi)}}function ct(kt){if(typeof kt!="function")throw new TypeError("Expected `middelware` to be a function, not "+kt);return we.push(kt),Ze}}function Sa(we,Ze){let et;return ct;function ct(...tn){const En=we.length>tn.length;let vi;En&&tn.push(kt);try{vi=we.apply(this,tn)}catch(bi){const Xn=bi;if(En&&et)throw Xn;return kt(Xn)}En||(vi&&vi.then&&typeof vi.then=="function"?vi.then(Mt,kt):vi instanceof Error?kt(vi):Mt(vi))}function kt(tn,...En){et||(et=!0,Ze(tn,...En))}function Mt(tn){kt(null,tn)}}const Lo={basename:ju,dirname:qr,extname:Qc,join:Fo,sep:"/"};function ju(we,Ze){if(Ze!==void 0&&typeof Ze!="string")throw new TypeError('"ext" argument must be a string');ql(we);let et=0,ct=-1,kt=we.length,Mt;if(Ze===void 0||Ze.length===0||Ze.length>we.length){for(;kt--;)if(we.codePointAt(kt)===47){if(Mt){et=kt+1;break}}else ct<0&&(Mt=!0,ct=kt+1);return ct<0?"":we.slice(et,ct)}if(Ze===we)return"";let tn=-1,En=Ze.length-1;for(;kt--;)if(we.codePointAt(kt)===47){if(Mt){et=kt+1;break}}else tn<0&&(Mt=!0,tn=kt+1),En>-1&&(we.codePointAt(kt)===Ze.codePointAt(En--)?En<0&&(ct=kt):(En=-1,ct=tn));return et===ct?ct=tn:ct<0&&(ct=we.length),we.slice(et,ct)}function qr(we){if(ql(we),we.length===0)return".";let Ze=-1,et=we.length,ct;for(;--et;)if(we.codePointAt(et)===47){if(ct){Ze=et;break}}else ct||(ct=!0);return Ze<0?we.codePointAt(0)===47?"/":".":Ze===1&&we.codePointAt(0)===47?"//":we.slice(0,Ze)}function Qc(we){ql(we);let Ze=we.length,et=-1,ct=0,kt=-1,Mt=0,tn;for(;Ze--;){const En=we.codePointAt(Ze);if(En===47){if(tn){ct=Ze+1;break}continue}et<0&&(tn=!0,et=Ze+1),En===46?kt<0?kt=Ze:Mt!==1&&(Mt=1):kt>-1&&(Mt=-1)}return kt<0||et<0||Mt===0||Mt===1&&kt===et-1&&kt===ct+1?"":we.slice(kt,et)}function Fo(...we){let Ze=-1,et;for(;++Ze<we.length;)ql(we[Ze]),we[Ze]&&(et=et===void 0?we[Ze]:et+"/"+we[Ze]);return et===void 0?".":Lc(et)}function Lc(we){ql(we);const Ze=we.codePointAt(0)===47;let et=Au(we,!Ze);return et.length===0&&!Ze&&(et="."),et.length>0&&we.codePointAt(we.length-1)===47&&(et+="/"),Ze?"/"+et:et}function Au(we,Ze){let et="",ct=0,kt=-1,Mt=0,tn=-1,En,vi;for(;++tn<=we.length;){if(tn<we.length)En=we.codePointAt(tn);else{if(En===47)break;En=47}if(En===47){if(!(kt===tn-1||Mt===1))if(kt!==tn-1&&Mt===2){if(et.length<2||ct!==2||et.codePointAt(et.length-1)!==46||et.codePointAt(et.length-2)!==46){if(et.length>2){if(vi=et.lastIndexOf("/"),vi!==et.length-1){vi<0?(et="",ct=0):(et=et.slice(0,vi),ct=et.length-1-et.lastIndexOf("/")),kt=tn,Mt=0;continue}}else if(et.length>0){et="",ct=0,kt=tn,Mt=0;continue}}Ze&&(et=et.length>0?et+"/..":"..",ct=2)}else et.length>0?et+="/"+we.slice(kt+1,tn):et=we.slice(kt+1,tn),ct=tn-kt-1;kt=tn,Mt=0}else En===46&&Mt>-1?Mt++:Mt=-1}return et}function ql(we){if(typeof we!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(we))}const Ic={cwd:Ec};function Ec(){return"/"}function Nl(we){return!!(we!==null&&typeof we=="object"&&"href"in we&&we.href&&"protocol"in we&&we.protocol&&we.auth===void 0)}function kl(we){if(typeof we=="string")we=new URL(we);else if(!Nl(we)){const Ze=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+we+"`");throw Ze.code="ERR_INVALID_ARG_TYPE",Ze}if(we.protocol!=="file:"){const Ze=new TypeError("The URL must be of scheme file");throw Ze.code="ERR_INVALID_URL_SCHEME",Ze}return _o(we)}function _o(we){if(we.hostname!==""){const ct=new TypeError('File URL host must be "localhost" or empty on darwin');throw ct.code="ERR_INVALID_FILE_URL_HOST",ct}const Ze=we.pathname;let et=-1;for(;++et<Ze.length;)if(Ze.codePointAt(et)===37&&Ze.codePointAt(et+1)===50){const ct=Ze.codePointAt(et+2);if(ct===70||ct===102){const kt=new TypeError("File URL path must not include encoded / characters");throw kt.code="ERR_INVALID_FILE_URL_PATH",kt}}return decodeURIComponent(Ze)}const Ts=["history","path","basename","stem","extname","dirname"];class Gu{constructor(Ze){let et;Ze?Nl(Ze)?et={path:Ze}:typeof Ze=="string"||Io(Ze)?et={value:Ze}:et=Ze:et={},this.cwd="cwd"in et?"":Ic.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let ct=-1;for(;++ct<Ts.length;){const Mt=Ts[ct];Mt in et&&et[Mt]!==void 0&&et[Mt]!==null&&(this[Mt]=Mt==="history"?[...et[Mt]]:et[Mt])}let kt;for(kt in et)Ts.includes(kt)||(this[kt]=et[kt])}get basename(){return typeof this.path=="string"?Lo.basename(this.path):void 0}set basename(Ze){$l(Ze,"basename"),Ll(Ze,"basename"),this.path=Lo.join(this.dirname||"",Ze)}get dirname(){return typeof this.path=="string"?Lo.dirname(this.path):void 0}set dirname(Ze){_l(this.basename,"dirname"),this.path=Lo.join(Ze||"",this.basename)}get extname(){return typeof this.path=="string"?Lo.extname(this.path):void 0}set extname(Ze){if(Ll(Ze,"extname"),_l(this.dirname,"extname"),Ze){if(Ze.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Ze.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Lo.join(this.dirname,this.stem+(Ze||""))}get path(){return this.history[this.history.length-1]}set path(Ze){Nl(Ze)&&(Ze=kl(Ze)),$l(Ze,"path"),this.path!==Ze&&this.history.push(Ze)}get stem(){return typeof this.path=="string"?Lo.basename(this.path,this.extname):void 0}set stem(Ze){$l(Ze,"stem"),Ll(Ze,"stem"),this.path=Lo.join(this.dirname||"",Ze+(this.extname||""))}fail(Ze,et,ct){const kt=this.message(Ze,et,ct);throw kt.fatal=!0,kt}info(Ze,et,ct){const kt=this.message(Ze,et,ct);return kt.fatal=void 0,kt}message(Ze,et,ct){const kt=new Ye(Ze,et,ct);return this.path&&(kt.name=this.path+":"+kt.name,kt.file=this.path),kt.fatal=!1,this.messages.push(kt),kt}toString(Ze){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Ze||void 0).decode(this.value)}}function Ll(we,Ze){if(we&&we.includes(Lo.sep))throw new Error("`"+Ze+"` cannot be a path: did not expect `"+Lo.sep+"`")}function $l(we,Ze){if(!we)throw new Error("`"+Ze+"` cannot be empty")}function _l(we,Ze){if(!we)throw new Error("Setting `"+Ze+"` requires `path` to be set too")}function Io(we){return!!(we&&typeof we=="object"&&"byteLength"in we&&"byteOffset"in we)}const Yo=function(we){const ct=this.constructor.prototype,kt=ct[we],Mt=function(){return kt.apply(Mt,arguments)};return Object.setPrototypeOf(Mt,ct),Mt},xa={}.hasOwnProperty;class ds extends Yo{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=aa()}copy(){const Ze=new ds;let et=-1;for(;++et<this.attachers.length;){const ct=this.attachers[et];Ze.use(...ct)}return Ze.data(Bo(!0,{},this.namespace)),Ze}data(Ze,et){return typeof Ze=="string"?arguments.length===2?(yl("data",this.frozen),this.namespace[Ze]=et,this):xa.call(this.namespace,Ze)&&this.namespace[Ze]||void 0:Ze?(yl("data",this.frozen),this.namespace=Ze,this):this.namespace}freeze(){if(this.frozen)return this;const Ze=this;for(;++this.freezeIndex<this.attachers.length;){const[et,...ct]=this.attachers[this.freezeIndex];if(ct[0]===!1)continue;ct[0]===!0&&(ct[0]=void 0);const kt=et.call(Ze,...ct);typeof kt=="function"&&this.transformers.use(kt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Ze){this.freeze();const et=dd(Ze),ct=this.parser||this.Parser;return ml("parse",ct),ct(String(et),et)}process(Ze,et){const ct=this;return this.freeze(),ml("process",this.parser||this.Parser),vl("process",this.compiler||this.Compiler),et?kt(void 0,et):new Promise(kt);function kt(Mt,tn){const En=dd(Ze),vi=ct.parse(En);ct.run(vi,En,function(Xn,Ui,Oi){if(Xn||!Ui||!Oi)return bi(Xn);const ei=Ui,ro=ct.stringify(ei,Oi);vh(ro)?Oi.value=ro:Oi.result=ro,bi(Xn,Oi)});function bi(Xn,Ui){Xn||!Ui?tn(Xn):Mt?Mt(Ui):((0,Ce.ok)(et,"`done` is defined if `resolve` is not"),et(void 0,Ui))}}}processSync(Ze){let et=!1,ct;return this.freeze(),ml("processSync",this.parser||this.Parser),vl("processSync",this.compiler||this.Compiler),this.process(Ze,kt),Ul("processSync","process",et),(0,Ce.ok)(ct,"we either bailed on an error or have a tree"),ct;function kt(Mt,tn){et=!0,cs(Mt),ct=tn}}run(Ze,et,ct){$s(Ze),this.freeze();const kt=this.transformers;return!ct&&typeof et=="function"&&(ct=et,et=void 0),ct?Mt(void 0,ct):new Promise(Mt);function Mt(tn,En){(0,Ce.ok)(typeof et!="function","`file` can\u2019t be a `done` anymore, we checked");const vi=dd(et);kt.run(Ze,vi,bi);function bi(Xn,Ui,Oi){const ei=Ui||Ze;Xn?En(Xn):tn?tn(ei):((0,Ce.ok)(ct,"`done` is defined if `resolve` is not"),ct(void 0,ei,Oi))}}}runSync(Ze,et){let ct=!1,kt;return this.run(Ze,et,Mt),Ul("runSync","run",ct),(0,Ce.ok)(kt,"we either bailed on an error or have a tree"),kt;function Mt(tn,En){cs(tn),kt=En,ct=!0}}stringify(Ze,et){this.freeze();const ct=dd(et),kt=this.compiler||this.Compiler;return vl("stringify",kt),$s(Ze),kt(Ze,ct)}use(Ze,...et){const ct=this.attachers,kt=this.namespace;if(yl("use",this.frozen),Ze!=null)if(typeof Ze=="function")vi(Ze,et);else if(typeof Ze=="object")Array.isArray(Ze)?En(Ze):tn(Ze);else throw new TypeError("Expected usable value, not `"+Ze+"`");return this;function Mt(bi){if(typeof bi=="function")vi(bi,[]);else if(typeof bi=="object")if(Array.isArray(bi)){const[Xn,...Ui]=bi;vi(Xn,Ui)}else tn(bi);else throw new TypeError("Expected usable value, not `"+bi+"`")}function tn(bi){if(!("plugins"in bi)&&!("settings"in bi))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");En(bi.plugins),bi.settings&&(kt.settings=Bo(!0,kt.settings,bi.settings))}function En(bi){let Xn=-1;if(bi!=null)if(Array.isArray(bi))for(;++Xn<bi.length;){const Ui=bi[Xn];Mt(Ui)}else throw new TypeError("Expected a list of plugins, not `"+bi+"`")}function vi(bi,Xn){let Ui=-1,Oi=-1;for(;++Ui<ct.length;)if(ct[Ui][0]===bi){Oi=Ui;break}if(Oi===-1)ct.push([bi,...Xn]);else if(Xn.length>0){let[ei,...ro]=Xn;const Eo=ct[Oi][1];na(Eo)&&na(ei)&&(ei=Bo(!0,Eo,ei)),ct[Oi]=[bi,ei,...ro]}}}}const qa=new ds().freeze();function ml(we,Ze){if(typeof Ze!="function")throw new TypeError("Cannot `"+we+"` without `parser`")}function vl(we,Ze){if(typeof Ze!="function")throw new TypeError("Cannot `"+we+"` without `compiler`")}function yl(we,Ze){if(Ze)throw new Error("Cannot call `"+we+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $s(we){if(!na(we)||typeof we.type!="string")throw new TypeError("Expected node, got `"+we+"`")}function Ul(we,Ze,et){if(!et)throw new Error("`"+we+"` finished async. Use `"+Ze+"` instead")}function dd(we){return mh(we)?we:new Gu(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 Wa="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vu=[],ra={allowDangerousHtml:!0},ms=/^(https?|ircs?|mailto|xmpp)$/i,Ps=[{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 bs(we){const Ze=Wu(we),et=hd(we);return fd(Ze.runSync(Ze.parse(et),et),we)}function sc(we){return Jy(this,null,function*(){const Ze=Wu(we),et=hd(we),ct=yield Ze.run(Ze.parse(et),et);return fd(ct,we)})}function Is(we){const Ze=Wu(we),[et,ct]=useState(void 0),[kt,Mt]=useState(void 0);if(useEffect(function(){const tn=hd(we);Ze.run(Ze.parse(tn),tn,function(En,vi){ct(En),Mt(vi)})},[we.children,we.rehypePlugins,we.remarkPlugins,we.remarkRehypeOptions]),et)throw et;return kt?fd(kt,we):createElement(Fragment)}function Wu(we){const Ze=we.rehypePlugins||Vu,et=we.remarkPlugins||Vu,ct=we.remarkRehypeOptions?Qo(Qo({},we.remarkRehypeOptions),ra):ra;return qa().use(Os).use(et).use(Ko,ct).use(Ze)}function hd(we){const Ze=we.children||"",et=new Gu;return typeof Ze=="string"?et.value=Ze:(0,Ce.t1)("Unexpected value `"+Ze+"` for `children` prop, expected `string`"),et}function fd(we,Ze){const et=Ze.allowedElements,ct=Ze.allowElement,kt=Ze.components,Mt=Ze.disallowedElements,tn=Ze.skipHtml,En=Ze.unwrapDisallowed,vi=Ze.urlTransform||el;for(const Xn of Ps)Object.hasOwn(Ze,Xn.from)&&(0,Ce.t1)("Unexpected `"+Xn.from+"` prop, "+(Xn.to?"use `"+Xn.to+"` instead":"remove it")+" (see <"+Wa+"#"+Xn.id+"> for more info)");return et&&Mt&&(0,Ce.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Ze.className&&(we={type:"element",tagName:"div",properties:{className:Ze.className},children:we.type==="root"?we.children:[we]}),(0,Ds.Vn)(we,bi),Lt(we,{Fragment:De.Fragment,components:kt,ignoreInvalidStyle:!0,jsx:De.jsx,jsxs:De.jsxs,passKeys:!0,passNode:!0});function bi(Xn,Ui,Oi){if(Xn.type==="raw"&&Oi&&typeof Ui=="number")return tn?Oi.children.splice(Ui,1):Oi.children[Ui]={type:"text",value:Xn.value},Ui;if(Xn.type==="element"){let ei;for(ei in it)if(Object.hasOwn(it,ei)&&Object.hasOwn(Xn.properties,ei)){const ro=Xn.properties[ei],Eo=it[ei];(Eo===null||Eo.includes(Xn.tagName))&&(Xn.properties[ei]=vi(String(ro||""),ei,Xn))}}if(Xn.type==="element"){let ei=et?!et.includes(Xn.tagName):Mt?Mt.includes(Xn.tagName):!1;if(!ei&&ct&&typeof Ui=="number"&&(ei=!ct(Xn,Ui,Oi)),ei&&Oi&&typeof Ui=="number")return En&&Xn.children?Oi.children.splice(Ui,1,...Xn.children):Oi.children.splice(Ui,1),Ui}}}function el(we){const Ze=we.indexOf(":"),et=we.indexOf("?"),ct=we.indexOf("#"),kt=we.indexOf("/");return Ze===-1||kt!==-1&&Ze>kt||et!==-1&&Ze>et||ct!==-1&&Ze>ct||ms.test(we.slice(0,Ze))?we:""}},3977:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Hd}});var oe={};ae.r(oe),ae.d(oe,{boolean:function(){return Ye},booleanish:function(){return Qe},commaOrSpaceSeparated:function(){return St},commaSeparated:function(){return vt},number:function(){return nt},overloadedBoolean:function(){return lt},spaceSeparated:function(){return yt}});var Ce=ae(90302),ke=ae(87342),Ie=ae(81994),He=ae(14470),Te=ae(86825);function ze(ce){const ge=String(ce),$e=[];return{toOffset:Si,toPoint:Jt};function Jt(Qi){if(typeof Qi=="number"&&Qi>-1&&Qi<=ge.length){let hr=0;for(;;){let lo=$e[hr];if(lo===void 0){const Ao=ot(ge,$e[hr-1]);lo=Ao===-1?ge.length+1:Ao+1,$e[hr]=lo}if(lo>Qi)return{line:hr+1,column:Qi-(hr>0?$e[hr-1]:0)+1,offset:Qi};hr++}}}function Si(Qi){if(Qi&&typeof Qi.line=="number"&&typeof Qi.column=="number"&&!Number.isNaN(Qi.line)&&!Number.isNaN(Qi.column)){for(;$e.length<Qi.line;){const lo=$e[$e.length-1],Ao=ot(ge,lo),Wi=Ao===-1?ge.length+1:Ao+1;if(lo===Wi)break;$e.push(Wi)}const hr=(Qi.line>1?$e[Qi.line-2]:0)+Qi.column-1;if(hr<$e[Qi.line-1])return hr}}}function ot(ce,ge){const $e=ce.indexOf("\r",ge),Jt=ce.indexOf(`
`,ge);return Jt===-1?$e:$e===-1||$e+1===Jt?Jt:$e<Jt?$e:Jt}var Ke=ae(43309);const Be={}.hasOwnProperty,gt=Object.prototype;function Je(ce,ge){const $e=ge||{};return wt({file:$e.file||void 0,location:!1,schema:$e.space==="svg"?He.YP:He.dy,verbose:$e.verbose||!1},ce)}function wt(ce,ge){let $e;switch(ge.nodeName){case"#comment":{const Jt=ge;return $e={type:"comment",value:Jt.data},ee(ce,Jt,$e),$e}case"#document":case"#document-fragment":{const Jt=ge,Si="mode"in Jt?Jt.mode==="quirks"||Jt.mode==="limited-quirks":!1;if($e={type:"root",children:Fe(ce,ge.childNodes),data:{quirksMode:Si}},ce.file&&ce.location){const Qi=String(ce.file),hr=ze(Qi),lo=hr.toPoint(0),Ao=hr.toPoint(Qi.length);(0,ke.ok)(lo,"expected `start`"),(0,ke.ok)(Ao,"expected `end`"),$e.position={start:lo,end:Ao}}return $e}case"#documentType":{const Jt=ge;return $e={type:"doctype"},ee(ce,Jt,$e),$e}case"#text":{const Jt=ge;return $e={type:"text",value:Jt.value},ee(ce,Jt,$e),$e}default:return $e=te(ce,ge),$e}}function Fe(ce,ge){let $e=-1;const Jt=[];for(;++$e<ge.length;){const Si=wt(ce,ge[$e]);Jt.push(Si)}return Jt}function te(ce,ge){const $e=ce.schema;ce.schema=ge.namespaceURI===Ke.t.svg?He.YP:He.dy;let Jt=-1;const Si={};for(;++Jt<ge.attrs.length;){const lo=ge.attrs[Jt],Ao=(lo.prefix?lo.prefix+":":"")+lo.name;Be.call(gt,Ao)||(Si[Ao]=lo.value)}const hr=(ce.schema.space==="svg"?Ie.s:Ie.h)(ge.tagName,Si,Fe(ce,ge.childNodes));if(ee(ce,ge,hr),hr.tagName==="template"){const lo=ge,Ao=lo.sourceCodeLocation,Wi=Ao&&Ao.startTag&&ue(Ao.startTag),Ur=Ao&&Ao.endTag&&ue(Ao.endTag),Oo=wt(ce,lo.content);Wi&&Ur&&ce.file&&(Oo.position={start:Wi.end,end:Ur.start}),hr.content=Oo}return ce.schema=$e,hr}function ee(ce,ge,$e){if("sourceCodeLocation"in ge&&ge.sourceCodeLocation&&ce.file){const Jt=he(ce,$e,ge.sourceCodeLocation);Jt&&(ce.location=!0,$e.position=Jt)}}function he(ce,ge,$e){const Jt=ue($e);if(ge.type==="element"){const Si=ge.children[ge.children.length-1];if(Jt&&!$e.endTag&&Si&&Si.position&&Si.position.end&&(Jt.end=Object.assign({},Si.position.end)),ce.verbose){const Qi={};let hr;if($e.attrs)for(hr in $e.attrs)Be.call($e.attrs,hr)&&(Qi[(0,Te.s)(ce.schema,hr).property]=ue($e.attrs[hr]));(0,ke.ok)($e.startTag,"a start tag should exist");const lo=ue($e.startTag),Ao=$e.endTag?ue($e.endTag):void 0,Wi={opening:lo};Ao&&(Wi.closing=Ao),Wi.properties=Qi,ge.data={position:Wi}}}return Jt}function ue(ce){const ge=fe({line:ce.startLine,column:ce.startCol,offset:ce.startOffset}),$e=fe({line:ce.endLine,column:ce.endCol,offset:ce.endOffset});return ge||$e?{start:ge,end:$e}:void 0}function fe(ce){return ce.line&&ce.column?ce:void 0}var me=ae(11630);class Ee{constructor(ge,$e,Jt){this.property=ge,this.normal=$e,Jt&&(this.space=Jt)}}Ee.prototype.property={},Ee.prototype.normal={},Ee.prototype.space=null;function Pe(ce,ge){const $e={},Jt={};let Si=-1;for(;++Si<ce.length;)Object.assign($e,ce[Si].property),Object.assign(Jt,ce[Si].normal);return new Ee($e,Jt,ge)}function Ne(ce){return ce.toLowerCase()}class We{constructor(ge,$e){this.property=ge,this.attribute=$e}}We.prototype.space=null,We.prototype.boolean=!1,We.prototype.booleanish=!1,We.prototype.overloadedBoolean=!1,We.prototype.number=!1,We.prototype.commaSeparated=!1,We.prototype.spaceSeparated=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.mustUseProperty=!1,We.prototype.defined=!1;let tt=0;const Ye=Lt(),Qe=Lt(),lt=Lt(),nt=Lt(),yt=Lt(),vt=Lt(),St=Lt();function Lt(){return Qy(2,++tt)}const jt=Object.keys(oe);class Bt extends We{constructor(ge,$e,Jt,Si){let Qi=-1;if(super(ge,$e),cn(this,"space",Si),typeof Jt=="number")for(;++Qi<jt.length;){const hr=jt[Qi];cn(this,jt[Qi],(Jt&oe[hr])===oe[hr])}}}Bt.prototype.defined=!0;function cn(ce,ge,$e){$e&&(ce[ge]=$e)}const pt={}.hasOwnProperty;function ut(ce){const ge={},$e={};let Jt;for(Jt in ce.properties)if(pt.call(ce.properties,Jt)){const Si=ce.properties[Jt],Qi=new Bt(Jt,ce.transform(ce.attributes||{},Jt),Si,ce.space);ce.mustUseProperty&&ce.mustUseProperty.includes(Jt)&&(Qi.mustUseProperty=!0),ge[Jt]=Qi,$e[Ne(Jt)]=Jt,$e[Ne(Qi.attribute)]=Jt}return new Ee(ge,$e,ce.space)}const at=ut({space:"xlink",transform(ce,ge){return"xlink:"+ge.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wt=ut({space:"xml",transform(ce,ge){return"xml:"+ge.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function rn(ce,ge){return ge in ce?ce[ge]:ge}function Tt(ce,ge){return rn(ce,ge.toLowerCase())}const Xt=ut({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Tt,properties:{xmlns:null,xmlnsXLink:null}}),nn=ut({transform(ce,ge){return ge==="role"?ge:"aria-"+ge.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:yt,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:nt,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:yt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:Qe,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null}}),Nn=ut({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Tt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vt,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Ye,allowPaymentRequest:Ye,allowUserMedia:Ye,alt:null,as:null,async:Ye,autoCapitalize:null,autoComplete:yt,autoFocus:Ye,autoPlay:Ye,blocking:yt,capture:null,charSet:null,checked:Ye,cite:null,className:yt,cols:nt,colSpan:null,content:null,contentEditable:Qe,controls:Ye,controlsList:yt,coords:nt|vt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ye,defer:Ye,dir:null,dirName:null,disabled:Ye,download:lt,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ye,formTarget:null,headers:yt,height:nt,hidden:Ye,high:nt,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Ye,inputMode:null,integrity:null,is:null,isMap:Ye,itemId:null,itemProp:yt,itemRef:yt,itemScope:Ye,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ye,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:Ye,muted:Ye,name:null,nonce:null,noModule:Ye,noValidate:Ye,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:Ye,optimum:nt,pattern:null,ping:yt,placeholder:null,playsInline:Ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ye,referrerPolicy:null,rel:yt,required:Ye,reversed:Ye,rows:nt,rowSpan:nt,sandbox:yt,scope:null,scoped:Ye,seamless:Ye,selected:Ye,shadowRootClonable:Ye,shadowRootDelegatesFocus:Ye,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:Ye,useMap:null,value:Qe,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ye,declare:Ye,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:Ye,noHref:Ye,noShade:Ye,noWrap:Ye,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ye,disableRemotePlayback:Ye,prefix:null,property:null,results:nt,security:null,unselectable:null}}),Rt=ut({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:rn,properties:{about:St,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:yt,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:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:Ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,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:vt,g2:vt,glyphName:vt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:St,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,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:nt,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:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:St,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:St,rev:St,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:St,requiredFeatures:St,requiredFonts:St,requiredFormats:St,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:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:St,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:St,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:St,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),At=Pe([Wt,at,Xt,nn,Nn],"html"),Zt=Pe([Wt,at,Xt,nn,Rt],"svg"),In=/^data[-\w.:]+$/i,Dn=/-[a-z]/g,qe=/[A-Z]/g;function Oe(ce,ge){const $e=Ne(ge);let Jt=ge,Si=We;if($e in ce.normal)return ce.property[ce.normal[$e]];if($e.length>4&&$e.slice(0,4)==="data"&&In.test(ge)){if(ge.charAt(4)==="-"){const Qi=ge.slice(5).replace(Dn,Ge);Jt="data"+Qi.charAt(0).toUpperCase()+Qi.slice(1)}else{const Qi=ge.slice(4);if(!Dn.test(Qi)){let hr=Qi.replace(qe,Le);hr.charAt(0)!=="-"&&(hr="-"+hr),ge="data"+hr}}Si=Bt}return new Si(Jt,ge)}function Le(ce){return"-"+ce.toLowerCase()}function Ge(ce){return ce.charAt(1).toUpperCase()}var it=ae(71523);const De={}.hasOwnProperty;function ht(ce,ge){const $e=ge||{};function Jt(Si,...Qi){let hr=Jt.invalid;const lo=Jt.handlers;if(Si&&De.call(Si,ce)){const Ao=String(Si[ce]);hr=De.call(lo,Ao)?lo[Ao]:Jt.unknown}if(hr)return hr.call(this,Si,...Qi)}return Jt.handlers=$e.handlers||{},Jt.invalid=$e.invalid,Jt.unknown=$e.unknown,Jt}const on={},An={}.hasOwnProperty,Zn=ht("type",{handlers:{root:It,element:Ot,text:Pn,comment:an,doctype:fn}});function Ft(ce,ge){const Jt=(ge||on).space;return Zn(ce,Jt==="svg"?Zt:At)}function It(ce,ge){const $e={nodeName:"#document",mode:(ce.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return $e.childNodes=Ht(ce.children,$e,ge),Kt(ce,$e),$e}function Gt(ce,ge){const $e={nodeName:"#document-fragment",childNodes:[]};return $e.childNodes=Ht(ce.children,$e,ge),Kt(ce,$e),$e}function fn(ce){const ge={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Kt(ce,ge),ge}function Pn(ce){const ge={nodeName:"#text",value:ce.value,parentNode:null};return Kt(ce,ge),ge}function an(ce){const ge={nodeName:"#comment",data:ce.value,parentNode:null};return Kt(ce,ge),ge}function Ot(ce,ge){const $e=ge;let Jt=$e;ce.type==="element"&&ce.tagName.toLowerCase()==="svg"&&$e.space==="html"&&(Jt=Zt);const Si=[];let Qi;if(ce.properties){for(Qi in ce.properties)if(Qi!=="children"&&An.call(ce.properties,Qi)){const Ao=Mn(Jt,Qi,ce.properties[Qi]);Ao&&Si.push(Ao)}}const hr=Jt.space;(0,ke.ok)(hr);const lo={nodeName:ce.tagName,tagName:ce.tagName,attrs:Si,namespaceURI:Ke.t[hr],childNodes:[],parentNode:null};return lo.childNodes=Ht(ce.children,lo,Jt),Kt(ce,lo),ce.tagName==="template"&&ce.content&&(lo.content=Gt(ce.content,Jt)),lo}function Mn(ce,ge,$e){const Jt=Oe(ce,ge);if($e===!1||$e===null||$e===void 0||typeof $e=="number"&&Number.isNaN($e)||!$e&&Jt.boolean)return;Array.isArray($e)&&($e=Jt.commaSeparated?(0,me.P)($e):(0,it.P)($e));const Si={name:Jt.attribute,value:$e===!0?"":String($e)};if(Jt.space&&Jt.space!=="html"&&Jt.space!=="svg"){const Qi=Si.name.indexOf(":");Qi<0?Si.prefix="":(Si.name=Si.name.slice(Qi+1),Si.prefix=Jt.attribute.slice(0,Qi)),Si.namespace=Ke.t[Jt.space]}return Si}function Ht(ce,ge,$e){let Jt=-1;const Si=[];if(ce)for(;++Jt<ce.length;){const Qi=Zn(ce[Jt],$e);Qi.parentNode=ge,Si.push(Qi)}return Si}function Kt(ce,ge){const $e=ce.position;$e&&$e.start&&$e.end&&((0,ke.ok)(typeof $e.start.offset=="number"),(0,ke.ok)(typeof $e.end.offset=="number"),ge.sourceCodeLocation={startLine:$e.start.line,startCol:$e.start.column,startOffset:$e.start.offset,endLine:$e.end.line,endCol:$e.end.column,endOffset:$e.end.offset})}const un=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Vn=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]),bn="\uFFFD";var mt;(function(ce){ce[ce.EOF=-1]="EOF",ce[ce.NULL=0]="NULL",ce[ce.TABULATION=9]="TABULATION",ce[ce.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",ce[ce.LINE_FEED=10]="LINE_FEED",ce[ce.FORM_FEED=12]="FORM_FEED",ce[ce.SPACE=32]="SPACE",ce[ce.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",ce[ce.QUOTATION_MARK=34]="QUOTATION_MARK",ce[ce.AMPERSAND=38]="AMPERSAND",ce[ce.APOSTROPHE=39]="APOSTROPHE",ce[ce.HYPHEN_MINUS=45]="HYPHEN_MINUS",ce[ce.SOLIDUS=47]="SOLIDUS",ce[ce.DIGIT_0=48]="DIGIT_0",ce[ce.DIGIT_9=57]="DIGIT_9",ce[ce.SEMICOLON=59]="SEMICOLON",ce[ce.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",ce[ce.EQUALS_SIGN=61]="EQUALS_SIGN",ce[ce.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",ce[ce.QUESTION_MARK=63]="QUESTION_MARK",ce[ce.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",ce[ce.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",ce[ce.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",ce[ce.GRAVE_ACCENT=96]="GRAVE_ACCENT",ce[ce.LATIN_SMALL_A=97]="LATIN_SMALL_A",ce[ce.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(mt||(mt={}));const jn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Kn(ce){return ce>=55296&&ce<=57343}function Ut(ce){return ce>=56320&&ce<=57343}function yi(ce,ge){return(ce-55296)*1024+9216+ge}function Vi(ce){return ce!==32&&ce!==10&&ce!==13&&ce!==9&&ce!==12&&ce>=1&&ce<=31||ce>=127&&ce<=159}function kn(ce){return ce>=64976&&ce<=65007||Vn.has(ce)}var Vt;(function(ce){ce.controlCharacterInInputStream="control-character-in-input-stream",ce.noncharacterInInputStream="noncharacter-in-input-stream",ce.surrogateInInputStream="surrogate-in-input-stream",ce.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ce.endTagWithAttributes="end-tag-with-attributes",ce.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ce.unexpectedSolidusInTag="unexpected-solidus-in-tag",ce.unexpectedNullCharacter="unexpected-null-character",ce.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ce.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ce.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ce.missingEndTagName="missing-end-tag-name",ce.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ce.unknownNamedCharacterReference="unknown-named-character-reference",ce.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ce.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ce.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ce.eofBeforeTagName="eof-before-tag-name",ce.eofInTag="eof-in-tag",ce.missingAttributeValue="missing-attribute-value",ce.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ce.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ce.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ce.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ce.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ce.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ce.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ce.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ce.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ce.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ce.cdataInHtmlContent="cdata-in-html-content",ce.incorrectlyOpenedComment="incorrectly-opened-comment",ce.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ce.eofInDoctype="eof-in-doctype",ce.nestedComment="nested-comment",ce.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ce.eofInComment="eof-in-comment",ce.incorrectlyClosedComment="incorrectly-closed-comment",ce.eofInCdata="eof-in-cdata",ce.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ce.nullCharacterReference="null-character-reference",ce.surrogateCharacterReference="surrogate-character-reference",ce.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ce.controlCharacterReference="control-character-reference",ce.noncharacterCharacterReference="noncharacter-character-reference",ce.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ce.missingDoctypeName="missing-doctype-name",ce.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ce.duplicateAttribute="duplicate-attribute",ce.nonConformingDoctype="non-conforming-doctype",ce.missingDoctype="missing-doctype",ce.misplacedDoctype="misplaced-doctype",ce.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ce.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ce.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ce.openElementsLeftAfterEof="open-elements-left-after-eof",ce.abandonedHeadElementChild="abandoned-head-element-child",ce.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ce.nestedNoscriptInHead="nested-noscript-in-head",ce.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Vt||(Vt={}));const Qn=65536;class ai{constructor(ge){this.handler=ge,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Qn,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(ge,$e){const{line:Jt,col:Si,offset:Qi}=this,hr=Si+$e,lo=Qi+$e;return{code:ge,startLine:Jt,endLine:Jt,startCol:hr,endCol:hr,startOffset:lo,endOffset:lo}}_err(ge){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(ge,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(ge){if(this.pos!==this.html.length-1){const $e=this.html.charCodeAt(this.pos+1);if(Ut($e))return this.pos++,this._addGap(),yi(ge,$e)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,mt.EOF;return this._err(Vt.surrogateInInputStream),ge}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(ge,$e){this.html.length>0?this.html+=ge:this.html=ge,this.endOfChunkHit=!1,this.lastChunkWritten=$e}insertHtmlAtCurrentPos(ge){this.html=this.html.substring(0,this.pos+1)+ge+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(ge,$e){if(this.pos+ge.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if($e)return this.html.startsWith(ge,this.pos);for(let Jt=0;Jt<ge.length;Jt++)if((this.html.charCodeAt(this.pos+Jt)|32)!==ge.charCodeAt(Jt))return!1;return!0}peek(ge){const $e=this.pos+ge;if($e>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,mt.EOF;const Jt=this.html.charCodeAt($e);return Jt===mt.CARRIAGE_RETURN?mt.LINE_FEED:Jt}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,mt.EOF;let ge=this.html.charCodeAt(this.pos);return ge===mt.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,mt.LINE_FEED):ge===mt.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Kn(ge)&&(ge=this._processSurrogate(ge)),this.handler.onParseError===null||ge>31&&ge<127||ge===mt.LINE_FEED||ge===mt.CARRIAGE_RETURN||ge>159&&ge<64976||this._checkForProblematicCharacters(ge),ge)}_checkForProblematicCharacters(ge){Vi(ge)?this._err(Vt.controlCharacterInInputStream):kn(ge)&&this._err(Vt.noncharacterInInputStream)}retreat(ge){for(this.pos-=ge;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Un;(function(ce){ce[ce.CHARACTER=0]="CHARACTER",ce[ce.NULL_CHARACTER=1]="NULL_CHARACTER",ce[ce.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",ce[ce.START_TAG=3]="START_TAG",ce[ce.END_TAG=4]="END_TAG",ce[ce.COMMENT=5]="COMMENT",ce[ce.DOCTYPE=6]="DOCTYPE",ce[ce.EOF=7]="EOF",ce[ce.HIBERNATION=8]="HIBERNATION"})(Un||(Un={}));function si(ce,ge){for(let $e=ce.attrs.length-1;$e>=0;$e--)if(ce.attrs[$e].name===ge)return ce.attrs[$e].value;return null}const li=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(ce=>ce.charCodeAt(0))),Me=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ce=>ce.charCodeAt(0)));var ii;const ti=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]]),On=(ii=String.fromCodePoint)!==null&&ii!==void 0?ii:function(ce){let ge="";return ce>65535&&(ce-=65536,ge+=String.fromCharCode(ce>>>10&1023|55296),ce=56320|ce&1023),ge+=String.fromCharCode(ce),ge};function ni(ce){var ge;return ce>=55296&&ce<=57343||ce>1114111?65533:(ge=ti.get(ce))!==null&&ge!==void 0?ge:ce}function Ei(ce){return On(ni(ce))}var ui;(function(ce){ce[ce.NUM=35]="NUM",ce[ce.SEMI=59]="SEMI",ce[ce.EQUALS=61]="EQUALS",ce[ce.ZERO=48]="ZERO",ce[ce.NINE=57]="NINE",ce[ce.LOWER_A=97]="LOWER_A",ce[ce.LOWER_F=102]="LOWER_F",ce[ce.LOWER_X=120]="LOWER_X",ce[ce.LOWER_Z=122]="LOWER_Z",ce[ce.UPPER_A=65]="UPPER_A",ce[ce.UPPER_F=70]="UPPER_F",ce[ce.UPPER_Z=90]="UPPER_Z"})(ui||(ui={}));const tr=32;var Sn;(function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"})(Sn||(Sn={}));function sn(ce){return ce>=ui.ZERO&&ce<=ui.NINE}function dn(ce){return ce>=ui.UPPER_A&&ce<=ui.UPPER_F||ce>=ui.LOWER_A&&ce<=ui.LOWER_F}function _n(ce){return ce>=ui.UPPER_A&&ce<=ui.UPPER_Z||ce>=ui.LOWER_A&&ce<=ui.LOWER_Z||sn(ce)}function Ri(ce){return ce===ui.EQUALS||_n(ce)}var qn;(function(ce){ce[ce.EntityStart=0]="EntityStart",ce[ce.NumericStart=1]="NumericStart",ce[ce.NumericDecimal=2]="NumericDecimal",ce[ce.NumericHex=3]="NumericHex",ce[ce.NamedEntity=4]="NamedEntity"})(qn||(qn={}));var Ni;(function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"})(Ni||(Ni={}));class mn{constructor(ge,$e,Jt){this.decodeTree=ge,this.emitCodePoint=$e,this.errors=Jt,this.state=qn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ni.Strict}startEntity(ge){this.decodeMode=ge,this.state=qn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(ge,$e){switch(this.state){case qn.EntityStart:return ge.charCodeAt($e)===ui.NUM?(this.state=qn.NumericStart,this.consumed+=1,this.stateNumericStart(ge,$e+1)):(this.state=qn.NamedEntity,this.stateNamedEntity(ge,$e));case qn.NumericStart:return this.stateNumericStart(ge,$e);case qn.NumericDecimal:return this.stateNumericDecimal(ge,$e);case qn.NumericHex:return this.stateNumericHex(ge,$e);case qn.NamedEntity:return this.stateNamedEntity(ge,$e)}}stateNumericStart(ge,$e){return $e>=ge.length?-1:(ge.charCodeAt($e)|tr)===ui.LOWER_X?(this.state=qn.NumericHex,this.consumed+=1,this.stateNumericHex(ge,$e+1)):(this.state=qn.NumericDecimal,this.stateNumericDecimal(ge,$e))}addToNumericResult(ge,$e,Jt,Si){if($e!==Jt){const Qi=Jt-$e;this.result=this.result*Math.pow(Si,Qi)+Number.parseInt(ge.substr($e,Qi),Si),this.consumed+=Qi}}stateNumericHex(ge,$e){const Jt=$e;for(;$e<ge.length;){const Si=ge.charCodeAt($e);if(sn(Si)||dn(Si))$e+=1;else return this.addToNumericResult(ge,Jt,$e,16),this.emitNumericEntity(Si,3)}return this.addToNumericResult(ge,Jt,$e,16),-1}stateNumericDecimal(ge,$e){const Jt=$e;for(;$e<ge.length;){const Si=ge.charCodeAt($e);if(sn(Si))$e+=1;else return this.addToNumericResult(ge,Jt,$e,10),this.emitNumericEntity(Si,2)}return this.addToNumericResult(ge,Jt,$e,10),-1}emitNumericEntity(ge,$e){var Jt;if(this.consumed<=$e)return(Jt=this.errors)===null||Jt===void 0||Jt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(ge===ui.SEMI)this.consumed+=1;else if(this.decodeMode===Ni.Strict)return 0;return this.emitCodePoint(ni(this.result),this.consumed),this.errors&&(ge!==ui.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(ge,$e){const{decodeTree:Jt}=this;let Si=Jt[this.treeIndex],Qi=(Si&Sn.VALUE_LENGTH)>>14;for(;$e<ge.length;$e++,this.excess++){const hr=ge.charCodeAt($e);if(this.treeIndex=Di(Jt,Si,this.treeIndex+Math.max(1,Qi),hr),this.treeIndex<0)return this.result===0||this.decodeMode===Ni.Attribute&&(Qi===0||Ri(hr))?0:this.emitNotTerminatedNamedEntity();if(Si=Jt[this.treeIndex],Qi=(Si&Sn.VALUE_LENGTH)>>14,Qi!==0){if(hr===ui.SEMI)return this.emitNamedEntityData(this.treeIndex,Qi,this.consumed+this.excess);this.decodeMode!==Ni.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ge;const{result:$e,decodeTree:Jt}=this,Si=(Jt[$e]&Sn.VALUE_LENGTH)>>14;return this.emitNamedEntityData($e,Si,this.consumed),(ge=this.errors)===null||ge===void 0||ge.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ge,$e,Jt){const{decodeTree:Si}=this;return this.emitCodePoint($e===1?Si[ge]&~Sn.VALUE_LENGTH:Si[ge+1],Jt),$e===3&&this.emitCodePoint(Si[ge+2],Jt),Jt}end(){var ge;switch(this.state){case qn.NamedEntity:return this.result!==0&&(this.decodeMode!==Ni.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case qn.NumericDecimal:return this.emitNumericEntity(0,2);case qn.NumericHex:return this.emitNumericEntity(0,3);case qn.NumericStart:return(ge=this.errors)===null||ge===void 0||ge.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qn.EntityStart:return 0}}}function Hn(ce){let ge="";const $e=new mn(ce,Jt=>ge+=fromCodePoint(Jt));return function(Si,Qi){let hr=0,lo=0;for(;(lo=Si.indexOf("&",lo))>=0;){ge+=Si.slice(hr,lo),$e.startEntity(Qi);const Wi=$e.write(Si,lo+1);if(Wi<0){hr=lo+$e.end();break}hr=lo+Wi,lo=Wi===0?hr+1:hr}const Ao=ge+Si.slice(hr);return ge="",Ao}}function Di(ce,ge,$e,Jt){const Si=(ge&Sn.BRANCH_LENGTH)>>7,Qi=ge&Sn.JUMP_TABLE;if(Si===0)return Qi!==0&&Jt===Qi?$e:-1;if(Qi){const Ao=Jt-Qi;return Ao<0||Ao>=Si?-1:ce[$e+Ao]-1}let hr=$e,lo=hr+Si-1;for(;hr<=lo;){const Ao=hr+lo>>>1,Wi=ce[Ao];if(Wi<Jt)hr=Ao+1;else if(Wi>Jt)lo=Ao-1;else return ce[Ao+Si]}return-1}const Yi=null,mi=null;function Ct(ce,ge=Ni.Legacy){return Yi(ce,ge)}function $t(ce){return Yi(ce,Ni.Attribute)}function fi(ce){return Yi(ce,Ni.Strict)}function gi(ce){return mi(ce,Ni.Strict)}var zt;(function(ce){ce.HTML="http://www.w3.org/1999/xhtml",ce.MATHML="http://www.w3.org/1998/Math/MathML",ce.SVG="http://www.w3.org/2000/svg",ce.XLINK="http://www.w3.org/1999/xlink",ce.XML="http://www.w3.org/XML/1998/namespace",ce.XMLNS="http://www.w3.org/2000/xmlns/"})(zt||(zt={}));var pi;(function(ce){ce.TYPE="type",ce.ACTION="action",ce.ENCODING="encoding",ce.PROMPT="prompt",ce.NAME="name",ce.COLOR="color",ce.FACE="face",ce.SIZE="size"})(pi||(pi={}));var Fi;(function(ce){ce.NO_QUIRKS="no-quirks",ce.QUIRKS="quirks",ce.LIMITED_QUIRKS="limited-quirks"})(Fi||(Fi={}));var Cn;(function(ce){ce.A="a",ce.ADDRESS="address",ce.ANNOTATION_XML="annotation-xml",ce.APPLET="applet",ce.AREA="area",ce.ARTICLE="article",ce.ASIDE="aside",ce.B="b",ce.BASE="base",ce.BASEFONT="basefont",ce.BGSOUND="bgsound",ce.BIG="big",ce.BLOCKQUOTE="blockquote",ce.BODY="body",ce.BR="br",ce.BUTTON="button",ce.CAPTION="caption",ce.CENTER="center",ce.CODE="code",ce.COL="col",ce.COLGROUP="colgroup",ce.DD="dd",ce.DESC="desc",ce.DETAILS="details",ce.DIALOG="dialog",ce.DIR="dir",ce.DIV="div",ce.DL="dl",ce.DT="dt",ce.EM="em",ce.EMBED="embed",ce.FIELDSET="fieldset",ce.FIGCAPTION="figcaption",ce.FIGURE="figure",ce.FONT="font",ce.FOOTER="footer",ce.FOREIGN_OBJECT="foreignObject",ce.FORM="form",ce.FRAME="frame",ce.FRAMESET="frameset",ce.H1="h1",ce.H2="h2",ce.H3="h3",ce.H4="h4",ce.H5="h5",ce.H6="h6",ce.HEAD="head",ce.HEADER="header",ce.HGROUP="hgroup",ce.HR="hr",ce.HTML="html",ce.I="i",ce.IMG="img",ce.IMAGE="image",ce.INPUT="input",ce.IFRAME="iframe",ce.KEYGEN="keygen",ce.LABEL="label",ce.LI="li",ce.LINK="link",ce.LISTING="listing",ce.MAIN="main",ce.MALIGNMARK="malignmark",ce.MARQUEE="marquee",ce.MATH="math",ce.MENU="menu",ce.META="meta",ce.MGLYPH="mglyph",ce.MI="mi",ce.MO="mo",ce.MN="mn",ce.MS="ms",ce.MTEXT="mtext",ce.NAV="nav",ce.NOBR="nobr",ce.NOFRAMES="noframes",ce.NOEMBED="noembed",ce.NOSCRIPT="noscript",ce.OBJECT="object",ce.OL="ol",ce.OPTGROUP="optgroup",ce.OPTION="option",ce.P="p",ce.PARAM="param",ce.PLAINTEXT="plaintext",ce.PRE="pre",ce.RB="rb",ce.RP="rp",ce.RT="rt",ce.RTC="rtc",ce.RUBY="ruby",ce.S="s",ce.SCRIPT="script",ce.SEARCH="search",ce.SECTION="section",ce.SELECT="select",ce.SOURCE="source",ce.SMALL="small",ce.SPAN="span",ce.STRIKE="strike",ce.STRONG="strong",ce.STYLE="style",ce.SUB="sub",ce.SUMMARY="summary",ce.SUP="sup",ce.TABLE="table",ce.TBODY="tbody",ce.TEMPLATE="template",ce.TEXTAREA="textarea",ce.TFOOT="tfoot",ce.TD="td",ce.TH="th",ce.THEAD="thead",ce.TITLE="title",ce.TR="tr",ce.TRACK="track",ce.TT="tt",ce.U="u",ce.UL="ul",ce.SVG="svg",ce.VAR="var",ce.WBR="wbr",ce.XMP="xmp"})(Cn||(Cn={}));var je;(function(ce){ce[ce.UNKNOWN=0]="UNKNOWN",ce[ce.A=1]="A",ce[ce.ADDRESS=2]="ADDRESS",ce[ce.ANNOTATION_XML=3]="ANNOTATION_XML",ce[ce.APPLET=4]="APPLET",ce[ce.AREA=5]="AREA",ce[ce.ARTICLE=6]="ARTICLE",ce[ce.ASIDE=7]="ASIDE",ce[ce.B=8]="B",ce[ce.BASE=9]="BASE",ce[ce.BASEFONT=10]="BASEFONT",ce[ce.BGSOUND=11]="BGSOUND",ce[ce.BIG=12]="BIG",ce[ce.BLOCKQUOTE=13]="BLOCKQUOTE",ce[ce.BODY=14]="BODY",ce[ce.BR=15]="BR",ce[ce.BUTTON=16]="BUTTON",ce[ce.CAPTION=17]="CAPTION",ce[ce.CENTER=18]="CENTER",ce[ce.CODE=19]="CODE",ce[ce.COL=20]="COL",ce[ce.COLGROUP=21]="COLGROUP",ce[ce.DD=22]="DD",ce[ce.DESC=23]="DESC",ce[ce.DETAILS=24]="DETAILS",ce[ce.DIALOG=25]="DIALOG",ce[ce.DIR=26]="DIR",ce[ce.DIV=27]="DIV",ce[ce.DL=28]="DL",ce[ce.DT=29]="DT",ce[ce.EM=30]="EM",ce[ce.EMBED=31]="EMBED",ce[ce.FIELDSET=32]="FIELDSET",ce[ce.FIGCAPTION=33]="FIGCAPTION",ce[ce.FIGURE=34]="FIGURE",ce[ce.FONT=35]="FONT",ce[ce.FOOTER=36]="FOOTER",ce[ce.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",ce[ce.FORM=38]="FORM",ce[ce.FRAME=39]="FRAME",ce[ce.FRAMESET=40]="FRAMESET",ce[ce.H1=41]="H1",ce[ce.H2=42]="H2",ce[ce.H3=43]="H3",ce[ce.H4=44]="H4",ce[ce.H5=45]="H5",ce[ce.H6=46]="H6",ce[ce.HEAD=47]="HEAD",ce[ce.HEADER=48]="HEADER",ce[ce.HGROUP=49]="HGROUP",ce[ce.HR=50]="HR",ce[ce.HTML=51]="HTML",ce[ce.I=52]="I",ce[ce.IMG=53]="IMG",ce[ce.IMAGE=54]="IMAGE",ce[ce.INPUT=55]="INPUT",ce[ce.IFRAME=56]="IFRAME",ce[ce.KEYGEN=57]="KEYGEN",ce[ce.LABEL=58]="LABEL",ce[ce.LI=59]="LI",ce[ce.LINK=60]="LINK",ce[ce.LISTING=61]="LISTING",ce[ce.MAIN=62]="MAIN",ce[ce.MALIGNMARK=63]="MALIGNMARK",ce[ce.MARQUEE=64]="MARQUEE",ce[ce.MATH=65]="MATH",ce[ce.MENU=66]="MENU",ce[ce.META=67]="META",ce[ce.MGLYPH=68]="MGLYPH",ce[ce.MI=69]="MI",ce[ce.MO=70]="MO",ce[ce.MN=71]="MN",ce[ce.MS=72]="MS",ce[ce.MTEXT=73]="MTEXT",ce[ce.NAV=74]="NAV",ce[ce.NOBR=75]="NOBR",ce[ce.NOFRAMES=76]="NOFRAMES",ce[ce.NOEMBED=77]="NOEMBED",ce[ce.NOSCRIPT=78]="NOSCRIPT",ce[ce.OBJECT=79]="OBJECT",ce[ce.OL=80]="OL",ce[ce.OPTGROUP=81]="OPTGROUP",ce[ce.OPTION=82]="OPTION",ce[ce.P=83]="P",ce[ce.PARAM=84]="PARAM",ce[ce.PLAINTEXT=85]="PLAINTEXT",ce[ce.PRE=86]="PRE",ce[ce.RB=87]="RB",ce[ce.RP=88]="RP",ce[ce.RT=89]="RT",ce[ce.RTC=90]="RTC",ce[ce.RUBY=91]="RUBY",ce[ce.S=92]="S",ce[ce.SCRIPT=93]="SCRIPT",ce[ce.SEARCH=94]="SEARCH",ce[ce.SECTION=95]="SECTION",ce[ce.SELECT=96]="SELECT",ce[ce.SOURCE=97]="SOURCE",ce[ce.SMALL=98]="SMALL",ce[ce.SPAN=99]="SPAN",ce[ce.STRIKE=100]="STRIKE",ce[ce.STRONG=101]="STRONG",ce[ce.STYLE=102]="STYLE",ce[ce.SUB=103]="SUB",ce[ce.SUMMARY=104]="SUMMARY",ce[ce.SUP=105]="SUP",ce[ce.TABLE=106]="TABLE",ce[ce.TBODY=107]="TBODY",ce[ce.TEMPLATE=108]="TEMPLATE",ce[ce.TEXTAREA=109]="TEXTAREA",ce[ce.TFOOT=110]="TFOOT",ce[ce.TD=111]="TD",ce[ce.TH=112]="TH",ce[ce.THEAD=113]="THEAD",ce[ce.TITLE=114]="TITLE",ce[ce.TR=115]="TR",ce[ce.TRACK=116]="TRACK",ce[ce.TT=117]="TT",ce[ce.U=118]="U",ce[ce.UL=119]="UL",ce[ce.SVG=120]="SVG",ce[ce.VAR=121]="VAR",ce[ce.WBR=122]="WBR",ce[ce.XMP=123]="XMP"})(je||(je={}));const Pi=new Map([[Cn.A,je.A],[Cn.ADDRESS,je.ADDRESS],[Cn.ANNOTATION_XML,je.ANNOTATION_XML],[Cn.APPLET,je.APPLET],[Cn.AREA,je.AREA],[Cn.ARTICLE,je.ARTICLE],[Cn.ASIDE,je.ASIDE],[Cn.B,je.B],[Cn.BASE,je.BASE],[Cn.BASEFONT,je.BASEFONT],[Cn.BGSOUND,je.BGSOUND],[Cn.BIG,je.BIG],[Cn.BLOCKQUOTE,je.BLOCKQUOTE],[Cn.BODY,je.BODY],[Cn.BR,je.BR],[Cn.BUTTON,je.BUTTON],[Cn.CAPTION,je.CAPTION],[Cn.CENTER,je.CENTER],[Cn.CODE,je.CODE],[Cn.COL,je.COL],[Cn.COLGROUP,je.COLGROUP],[Cn.DD,je.DD],[Cn.DESC,je.DESC],[Cn.DETAILS,je.DETAILS],[Cn.DIALOG,je.DIALOG],[Cn.DIR,je.DIR],[Cn.DIV,je.DIV],[Cn.DL,je.DL],[Cn.DT,je.DT],[Cn.EM,je.EM],[Cn.EMBED,je.EMBED],[Cn.FIELDSET,je.FIELDSET],[Cn.FIGCAPTION,je.FIGCAPTION],[Cn.FIGURE,je.FIGURE],[Cn.FONT,je.FONT],[Cn.FOOTER,je.FOOTER],[Cn.FOREIGN_OBJECT,je.FOREIGN_OBJECT],[Cn.FORM,je.FORM],[Cn.FRAME,je.FRAME],[Cn.FRAMESET,je.FRAMESET],[Cn.H1,je.H1],[Cn.H2,je.H2],[Cn.H3,je.H3],[Cn.H4,je.H4],[Cn.H5,je.H5],[Cn.H6,je.H6],[Cn.HEAD,je.HEAD],[Cn.HEADER,je.HEADER],[Cn.HGROUP,je.HGROUP],[Cn.HR,je.HR],[Cn.HTML,je.HTML],[Cn.I,je.I],[Cn.IMG,je.IMG],[Cn.IMAGE,je.IMAGE],[Cn.INPUT,je.INPUT],[Cn.IFRAME,je.IFRAME],[Cn.KEYGEN,je.KEYGEN],[Cn.LABEL,je.LABEL],[Cn.LI,je.LI],[Cn.LINK,je.LINK],[Cn.LISTING,je.LISTING],[Cn.MAIN,je.MAIN],[Cn.MALIGNMARK,je.MALIGNMARK],[Cn.MARQUEE,je.MARQUEE],[Cn.MATH,je.MATH],[Cn.MENU,je.MENU],[Cn.META,je.META],[Cn.MGLYPH,je.MGLYPH],[Cn.MI,je.MI],[Cn.MO,je.MO],[Cn.MN,je.MN],[Cn.MS,je.MS],[Cn.MTEXT,je.MTEXT],[Cn.NAV,je.NAV],[Cn.NOBR,je.NOBR],[Cn.NOFRAMES,je.NOFRAMES],[Cn.NOEMBED,je.NOEMBED],[Cn.NOSCRIPT,je.NOSCRIPT],[Cn.OBJECT,je.OBJECT],[Cn.OL,je.OL],[Cn.OPTGROUP,je.OPTGROUP],[Cn.OPTION,je.OPTION],[Cn.P,je.P],[Cn.PARAM,je.PARAM],[Cn.PLAINTEXT,je.PLAINTEXT],[Cn.PRE,je.PRE],[Cn.RB,je.RB],[Cn.RP,je.RP],[Cn.RT,je.RT],[Cn.RTC,je.RTC],[Cn.RUBY,je.RUBY],[Cn.S,je.S],[Cn.SCRIPT,je.SCRIPT],[Cn.SEARCH,je.SEARCH],[Cn.SECTION,je.SECTION],[Cn.SELECT,je.SELECT],[Cn.SOURCE,je.SOURCE],[Cn.SMALL,je.SMALL],[Cn.SPAN,je.SPAN],[Cn.STRIKE,je.STRIKE],[Cn.STRONG,je.STRONG],[Cn.STYLE,je.STYLE],[Cn.SUB,je.SUB],[Cn.SUMMARY,je.SUMMARY],[Cn.SUP,je.SUP],[Cn.TABLE,je.TABLE],[Cn.TBODY,je.TBODY],[Cn.TEMPLATE,je.TEMPLATE],[Cn.TEXTAREA,je.TEXTAREA],[Cn.TFOOT,je.TFOOT],[Cn.TD,je.TD],[Cn.TH,je.TH],[Cn.THEAD,je.THEAD],[Cn.TITLE,je.TITLE],[Cn.TR,je.TR],[Cn.TRACK,je.TRACK],[Cn.TT,je.TT],[Cn.U,je.U],[Cn.UL,je.UL],[Cn.SVG,je.SVG],[Cn.VAR,je.VAR],[Cn.WBR,je.WBR],[Cn.XMP,je.XMP]]);function Ai(ce){var ge;return(ge=Pi.get(ce))!==null&&ge!==void 0?ge:je.UNKNOWN}const Rn=je,Ji={[zt.HTML]:new Set([Rn.ADDRESS,Rn.APPLET,Rn.AREA,Rn.ARTICLE,Rn.ASIDE,Rn.BASE,Rn.BASEFONT,Rn.BGSOUND,Rn.BLOCKQUOTE,Rn.BODY,Rn.BR,Rn.BUTTON,Rn.CAPTION,Rn.CENTER,Rn.COL,Rn.COLGROUP,Rn.DD,Rn.DETAILS,Rn.DIR,Rn.DIV,Rn.DL,Rn.DT,Rn.EMBED,Rn.FIELDSET,Rn.FIGCAPTION,Rn.FIGURE,Rn.FOOTER,Rn.FORM,Rn.FRAME,Rn.FRAMESET,Rn.H1,Rn.H2,Rn.H3,Rn.H4,Rn.H5,Rn.H6,Rn.HEAD,Rn.HEADER,Rn.HGROUP,Rn.HR,Rn.HTML,Rn.IFRAME,Rn.IMG,Rn.INPUT,Rn.LI,Rn.LINK,Rn.LISTING,Rn.MAIN,Rn.MARQUEE,Rn.MENU,Rn.META,Rn.NAV,Rn.NOEMBED,Rn.NOFRAMES,Rn.NOSCRIPT,Rn.OBJECT,Rn.OL,Rn.P,Rn.PARAM,Rn.PLAINTEXT,Rn.PRE,Rn.SCRIPT,Rn.SECTION,Rn.SELECT,Rn.SOURCE,Rn.STYLE,Rn.SUMMARY,Rn.TABLE,Rn.TBODY,Rn.TD,Rn.TEMPLATE,Rn.TEXTAREA,Rn.TFOOT,Rn.TH,Rn.THEAD,Rn.TITLE,Rn.TR,Rn.TRACK,Rn.UL,Rn.WBR,Rn.XMP]),[zt.MATHML]:new Set([Rn.MI,Rn.MO,Rn.MN,Rn.MS,Rn.MTEXT,Rn.ANNOTATION_XML]),[zt.SVG]:new Set([Rn.TITLE,Rn.FOREIGN_OBJECT,Rn.DESC]),[zt.XLINK]:new Set,[zt.XML]:new Set,[zt.XMLNS]:new Set},_i=new Set([Rn.H1,Rn.H2,Rn.H3,Rn.H4,Rn.H5,Rn.H6]),Jn=new Set([Cn.STYLE,Cn.SCRIPT,Cn.XMP,Cn.IFRAME,Cn.NOEMBED,Cn.NOFRAMES,Cn.PLAINTEXT]);function ji(ce,ge){return Jn.has(ce)||ge&&ce===Cn.NOSCRIPT}var ln;(function(ce){ce[ce.DATA=0]="DATA",ce[ce.RCDATA=1]="RCDATA",ce[ce.RAWTEXT=2]="RAWTEXT",ce[ce.SCRIPT_DATA=3]="SCRIPT_DATA",ce[ce.PLAINTEXT=4]="PLAINTEXT",ce[ce.TAG_OPEN=5]="TAG_OPEN",ce[ce.END_TAG_OPEN=6]="END_TAG_OPEN",ce[ce.TAG_NAME=7]="TAG_NAME",ce[ce.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",ce[ce.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",ce[ce.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",ce[ce.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",ce[ce.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",ce[ce.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",ce[ce.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",ce[ce.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",ce[ce.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",ce[ce.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",ce[ce.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",ce[ce.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",ce[ce.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",ce[ce.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",ce[ce.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",ce[ce.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",ce[ce.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",ce[ce.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",ce[ce.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",ce[ce.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",ce[ce.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",ce[ce.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",ce[ce.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",ce[ce.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",ce[ce.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",ce[ce.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",ce[ce.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",ce[ce.BOGUS_COMMENT=40]="BOGUS_COMMENT",ce[ce.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",ce[ce.COMMENT_START=42]="COMMENT_START",ce[ce.COMMENT_START_DASH=43]="COMMENT_START_DASH",ce[ce.COMMENT=44]="COMMENT",ce[ce.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",ce[ce.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",ce[ce.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",ce[ce.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",ce[ce.COMMENT_END_DASH=49]="COMMENT_END_DASH",ce[ce.COMMENT_END=50]="COMMENT_END",ce[ce.COMMENT_END_BANG=51]="COMMENT_END_BANG",ce[ce.DOCTYPE=52]="DOCTYPE",ce[ce.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",ce[ce.DOCTYPE_NAME=54]="DOCTYPE_NAME",ce[ce.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",ce[ce.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",ce[ce.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",ce[ce.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",ce[ce.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",ce[ce.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",ce[ce.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",ce[ce.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",ce[ce.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",ce[ce.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",ce[ce.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",ce[ce.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",ce[ce.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",ce[ce.CDATA_SECTION=68]="CDATA_SECTION",ce[ce.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",ce[ce.CDATA_SECTION_END=70]="CDATA_SECTION_END",ce[ce.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",ce[ce.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ln||(ln={}));const vr={DATA:ln.DATA,RCDATA:ln.RCDATA,RAWTEXT:ln.RAWTEXT,SCRIPT_DATA:ln.SCRIPT_DATA,PLAINTEXT:ln.PLAINTEXT,CDATA_SECTION:ln.CDATA_SECTION};function Wr(ce){return ce>=mt.DIGIT_0&&ce<=mt.DIGIT_9}function pn(ce){return ce>=mt.LATIN_CAPITAL_A&&ce<=mt.LATIN_CAPITAL_Z}function ur(ce){return ce>=mt.LATIN_SMALL_A&&ce<=mt.LATIN_SMALL_Z}function yr(ce){return ur(ce)||pn(ce)}function ir(ce){return yr(ce)||Wr(ce)}function pr(ce){return ce+32}function Tr(ce){return ce===mt.SPACE||ce===mt.LINE_FEED||ce===mt.TABULATION||ce===mt.FORM_FEED}function Br(ce){return Tr(ce)||ce===mt.SOLIDUS||ce===mt.GREATER_THAN_SIGN}function Ar(ce){return ce===mt.NULL?Vt.nullCharacterReference:ce>1114111?Vt.characterReferenceOutsideUnicodeRange:Kn(ce)?Vt.surrogateCharacterReference:kn(ce)?Vt.noncharacterCharacterReference:Vi(ce)||ce===mt.CARRIAGE_RETURN?Vt.controlCharacterReference:null}class br{constructor(ge,$e){this.options=ge,this.handler=$e,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ln.DATA,this.returnState=ln.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ai($e),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mn(li,(Jt,Si)=>{this.preprocessor.pos=this.entityStartPos+Si-1,this._flushCodePointConsumedAsCharacterReference(Jt)},$e.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Vt.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Jt=>{this._err(Vt.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Jt)},validateNumericCharacterReference:Jt=>{const Si=Ar(Jt);Si&&this._err(Si,1)}}:void 0)}_err(ge,$e=0){var Jt,Si;(Si=(Jt=this.handler).onParseError)===null||Si===void 0||Si.call(Jt,this.preprocessor.getError(ge,$e))}getCurrentLocation(ge){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-ge,startOffset:this.preprocessor.offset-ge,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const ge=this._consume();this._ensureHibernation()||this._callState(ge)}this.inLoop=!1}}pause(){this.paused=!0}resume(ge){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||ge==null||ge())}write(ge,$e,Jt){this.active=!0,this.preprocessor.write(ge,$e),this._runParsingLoop(),this.paused||Jt==null||Jt()}insertHtmlAtCurrentPos(ge){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(ge),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(ge){this.consumedAfterSnapshot+=ge;for(let $e=0;$e<ge;$e++)this.preprocessor.advance()}_consumeSequenceIfMatch(ge,$e){return this.preprocessor.startsWith(ge,$e)?(this._advanceBy(ge.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Un.START_TAG,tagName:"",tagID:je.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Un.END_TAG,tagName:"",tagID:je.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(ge){this.currentToken={type:Un.COMMENT,data:"",location:this.getCurrentLocation(ge)}}_createDoctypeToken(ge){this.currentToken={type:Un.DOCTYPE,name:ge,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(ge,$e){this.currentCharacterToken={type:ge,chars:$e,location:this.currentLocation}}_createAttr(ge){this.currentAttr={name:ge,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var ge,$e;const Jt=this.currentToken;if(si(Jt,this.currentAttr.name)===null){if(Jt.attrs.push(this.currentAttr),Jt.location&&this.currentLocation){const Si=(ge=($e=Jt.location).attrs)!==null&&ge!==void 0?ge:$e.attrs=Object.create(null);Si[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Vt.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(ge){this._emitCurrentCharacterToken(ge.location),this.currentToken=null,ge.location&&(ge.location.endLine=this.preprocessor.line,ge.location.endCol=this.preprocessor.col+1,ge.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const ge=this.currentToken;this.prepareToken(ge),ge.tagID=Ai(ge.tagName),ge.type===Un.START_TAG?(this.lastStartTagName=ge.tagName,this.handler.onStartTag(ge)):(ge.attrs.length>0&&this._err(Vt.endTagWithAttributes),ge.selfClosing&&this._err(Vt.endTagWithTrailingSolidus),this.handler.onEndTag(ge)),this.preprocessor.dropParsedChunk()}emitCurrentComment(ge){this.prepareToken(ge),this.handler.onComment(ge),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(ge){this.prepareToken(ge),this.handler.onDoctype(ge),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(ge){if(this.currentCharacterToken){switch(ge&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=ge.startLine,this.currentCharacterToken.location.endCol=ge.startCol,this.currentCharacterToken.location.endOffset=ge.startOffset),this.currentCharacterToken.type){case Un.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Un.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Un.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const ge=this.getCurrentLocation(0);ge&&(ge.endLine=ge.startLine,ge.endCol=ge.startCol,ge.endOffset=ge.startOffset),this._emitCurrentCharacterToken(ge),this.handler.onEof({type:Un.EOF,location:ge}),this.active=!1}_appendCharToCurrentCharacterToken(ge,$e){if(this.currentCharacterToken)if(this.currentCharacterToken.type===ge){this.currentCharacterToken.chars+=$e;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(ge,$e)}_emitCodePoint(ge){const $e=Tr(ge)?Un.WHITESPACE_CHARACTER:ge===mt.NULL?Un.NULL_CHARACTER:Un.CHARACTER;this._appendCharToCurrentCharacterToken($e,String.fromCodePoint(ge))}_emitChars(ge){this._appendCharToCurrentCharacterToken(Un.CHARACTER,ge)}_startCharacterReference(){this.returnState=this.state,this.state=ln.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ni.Attribute:Ni.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ln.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ln.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ln.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ge){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ge):this._emitCodePoint(ge)}_callState(ge){switch(this.state){case ln.DATA:{this._stateData(ge);break}case ln.RCDATA:{this._stateRcdata(ge);break}case ln.RAWTEXT:{this._stateRawtext(ge);break}case ln.SCRIPT_DATA:{this._stateScriptData(ge);break}case ln.PLAINTEXT:{this._statePlaintext(ge);break}case ln.TAG_OPEN:{this._stateTagOpen(ge);break}case ln.END_TAG_OPEN:{this._stateEndTagOpen(ge);break}case ln.TAG_NAME:{this._stateTagName(ge);break}case ln.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ge);break}case ln.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ge);break}case ln.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ge);break}case ln.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ge);break}case ln.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ge);break}case ln.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ge);break}case ln.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ge);break}case ln.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ge);break}case ln.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ge);break}case ln.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ge);break}case ln.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ge);break}case ln.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ge);break}case ln.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ge);break}case ln.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ge);break}case ln.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ge);break}case ln.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ge);break}case ln.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ge);break}case ln.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ge);break}case ln.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ge);break}case ln.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ge);break}case ln.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ge);break}case ln.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ge);break}case ln.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ge);break}case ln.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ge);break}case ln.ATTRIBUTE_NAME:{this._stateAttributeName(ge);break}case ln.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ge);break}case ln.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ge);break}case ln.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ge);break}case ln.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ge);break}case ln.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ge);break}case ln.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ge);break}case ln.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ge);break}case ln.BOGUS_COMMENT:{this._stateBogusComment(ge);break}case ln.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ge);break}case ln.COMMENT_START:{this._stateCommentStart(ge);break}case ln.COMMENT_START_DASH:{this._stateCommentStartDash(ge);break}case ln.COMMENT:{this._stateComment(ge);break}case ln.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ge);break}case ln.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ge);break}case ln.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ge);break}case ln.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ge);break}case ln.COMMENT_END_DASH:{this._stateCommentEndDash(ge);break}case ln.COMMENT_END:{this._stateCommentEnd(ge);break}case ln.COMMENT_END_BANG:{this._stateCommentEndBang(ge);break}case ln.DOCTYPE:{this._stateDoctype(ge);break}case ln.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ge);break}case ln.DOCTYPE_NAME:{this._stateDoctypeName(ge);break}case ln.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ge);break}case ln.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ge);break}case ln.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ge);break}case ln.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ge);break}case ln.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ge);break}case ln.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ge);break}case ln.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ge);break}case ln.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ge);break}case ln.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ge);break}case ln.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ge);break}case ln.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ge);break}case ln.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ge);break}case ln.BOGUS_DOCTYPE:{this._stateBogusDoctype(ge);break}case ln.CDATA_SECTION:{this._stateCdataSection(ge);break}case ln.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ge);break}case ln.CDATA_SECTION_END:{this._stateCdataSectionEnd(ge);break}case ln.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ln.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ge);break}default:throw new Error("Unknown state")}}_stateData(ge){switch(ge){case mt.LESS_THAN_SIGN:{this.state=ln.TAG_OPEN;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitCodePoint(ge);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRcdata(ge){switch(ge){case mt.AMPERSAND:{this._startCharacterReference();break}case mt.LESS_THAN_SIGN:{this.state=ln.RCDATA_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitChars(bn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRawtext(ge){switch(ge){case mt.LESS_THAN_SIGN:{this.state=ln.RAWTEXT_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitChars(bn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptData(ge){switch(ge){case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitChars(bn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_statePlaintext(ge){switch(ge){case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitChars(bn);break}case mt.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateTagOpen(ge){if(yr(ge))this._createStartTagToken(),this.state=ln.TAG_NAME,this._stateTagName(ge);else switch(ge){case mt.EXCLAMATION_MARK:{this.state=ln.MARKUP_DECLARATION_OPEN;break}case mt.SOLIDUS:{this.state=ln.END_TAG_OPEN;break}case mt.QUESTION_MARK:{this._err(Vt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ln.BOGUS_COMMENT,this._stateBogusComment(ge);break}case mt.EOF:{this._err(Vt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Vt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ln.DATA,this._stateData(ge)}}_stateEndTagOpen(ge){if(yr(ge))this._createEndTagToken(),this.state=ln.TAG_NAME,this._stateTagName(ge);else switch(ge){case mt.GREATER_THAN_SIGN:{this._err(Vt.missingEndTagName),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Vt.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ln.BOGUS_COMMENT,this._stateBogusComment(ge)}}_stateTagName(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=ln.BEFORE_ATTRIBUTE_NAME;break}case mt.SOLIDUS:{this.state=ln.SELF_CLOSING_START_TAG;break}case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentTagToken();break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.tagName+=bn;break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:$e.tagName+=String.fromCodePoint(pn(ge)?pr(ge):ge)}}_stateRcdataLessThanSign(ge){ge===mt.SOLIDUS?this.state=ln.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ln.RCDATA,this._stateRcdata(ge))}_stateRcdataEndTagOpen(ge){yr(ge)?(this.state=ln.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(ge)):(this._emitChars("</"),this.state=ln.RCDATA,this._stateRcdata(ge))}handleSpecialEndTag(ge){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const $e=this.currentToken;switch($e.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ln.BEFORE_ATTRIBUTE_NAME,!1;case mt.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ln.SELF_CLOSING_START_TAG,!1;case mt.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ln.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=ln.RCDATA,this._stateRcdata(ge))}_stateRawtextLessThanSign(ge){ge===mt.SOLIDUS?this.state=ln.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ln.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagOpen(ge){yr(ge)?(this.state=ln.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(ge)):(this._emitChars("</"),this.state=ln.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=ln.RAWTEXT,this._stateRawtext(ge))}_stateScriptDataLessThanSign(ge){switch(ge){case mt.SOLIDUS:{this.state=ln.SCRIPT_DATA_END_TAG_OPEN;break}case mt.EXCLAMATION_MARK:{this.state=ln.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ln.SCRIPT_DATA,this._stateScriptData(ge)}}_stateScriptDataEndTagOpen(ge){yr(ge)?(this.state=ln.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(ge)):(this._emitChars("</"),this.state=ln.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=ln.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStart(ge){ge===mt.HYPHEN_MINUS?(this.state=ln.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ln.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStartDash(ge){ge===mt.HYPHEN_MINUS?(this.state=ln.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ln.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscaped(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitChars(bn);break}case mt.EOF:{this._err(Vt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataEscapedDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.state=ln.SCRIPT_DATA_ESCAPED,this._emitChars(bn);break}case mt.EOF:{this._err(Vt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ln.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedDashDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case mt.GREATER_THAN_SIGN:{this.state=ln.SCRIPT_DATA,this._emitChars(">");break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.state=ln.SCRIPT_DATA_ESCAPED,this._emitChars(bn);break}case mt.EOF:{this._err(Vt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ln.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedLessThanSign(ge){ge===mt.SOLIDUS?this.state=ln.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:yr(ge)?(this._emitChars("<"),this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ge)):(this._emitChars("<"),this.state=ln.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagOpen(ge){yr(ge)?(this.state=ln.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ge)):(this._emitChars("</"),this.state=ln.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=ln.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscapeStart(ge){if(this.preprocessor.startsWith(jn.SCRIPT,!1)&&Br(this.preprocessor.peek(jn.SCRIPT.length))){this._emitCodePoint(ge);for(let $e=0;$e<jn.SCRIPT.length;$e++)this._emitCodePoint(this._consume());this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ln.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscaped(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._emitChars(bn);break}case mt.EOF:{this._err(Vt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(bn);break}case mt.EOF:{this._err(Vt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDashDash(ge){switch(ge){case mt.HYPHEN_MINUS:{this._emitChars("-");break}case mt.LESS_THAN_SIGN:{this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case mt.GREATER_THAN_SIGN:{this.state=ln.SCRIPT_DATA,this._emitChars(">");break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(bn);break}case mt.EOF:{this._err(Vt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedLessThanSign(ge){ge===mt.SOLIDUS?(this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateScriptDataDoubleEscapeEnd(ge){if(this.preprocessor.startsWith(jn.SCRIPT,!1)&&Br(this.preprocessor.peek(jn.SCRIPT.length))){this._emitCodePoint(ge);for(let $e=0;$e<jn.SCRIPT.length;$e++)this._emitCodePoint(this._consume());this.state=ln.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ln.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateBeforeAttributeName(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.SOLIDUS:case mt.GREATER_THAN_SIGN:case mt.EOF:{this.state=ln.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case mt.EQUALS_SIGN:{this._err(Vt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ln.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ln.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateAttributeName(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:case mt.SOLIDUS:case mt.GREATER_THAN_SIGN:case mt.EOF:{this._leaveAttrName(),this.state=ln.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case mt.EQUALS_SIGN:{this._leaveAttrName(),this.state=ln.BEFORE_ATTRIBUTE_VALUE;break}case mt.QUOTATION_MARK:case mt.APOSTROPHE:case mt.LESS_THAN_SIGN:{this._err(Vt.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(ge);break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.currentAttr.name+=bn;break}default:this.currentAttr.name+=String.fromCodePoint(pn(ge)?pr(ge):ge)}}_stateAfterAttributeName(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.SOLIDUS:{this.state=ln.SELF_CLOSING_START_TAG;break}case mt.EQUALS_SIGN:{this.state=ln.BEFORE_ATTRIBUTE_VALUE;break}case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentTagToken();break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ln.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateBeforeAttributeValue(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.QUOTATION_MARK:{this.state=ln.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this.state=ln.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.missingAttributeValue),this.state=ln.DATA,this.emitCurrentTagToken();break}default:this.state=ln.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(ge)}}_stateAttributeValueDoubleQuoted(ge){switch(ge){case mt.QUOTATION_MARK:{this.state=ln.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.currentAttr.value+=bn;break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueSingleQuoted(ge){switch(ge){case mt.APOSTROPHE:{this.state=ln.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.currentAttr.value+=bn;break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueUnquoted(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this._leaveAttrValue(),this.state=ln.BEFORE_ATTRIBUTE_NAME;break}case mt.AMPERSAND:{this._startCharacterReference();break}case mt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ln.DATA,this.emitCurrentTagToken();break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this.currentAttr.value+=bn;break}case mt.QUOTATION_MARK:case mt.APOSTROPHE:case mt.LESS_THAN_SIGN:case mt.EQUALS_SIGN:case mt.GRAVE_ACCENT:{this._err(Vt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(ge);break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAfterAttributeValueQuoted(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this._leaveAttrValue(),this.state=ln.BEFORE_ATTRIBUTE_NAME;break}case mt.SOLIDUS:{this._leaveAttrValue(),this.state=ln.SELF_CLOSING_START_TAG;break}case mt.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ln.DATA,this.emitCurrentTagToken();break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:this._err(Vt.missingWhitespaceBetweenAttributes),this.state=ln.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateSelfClosingStartTag(ge){switch(ge){case mt.GREATER_THAN_SIGN:{const $e=this.currentToken;$e.selfClosing=!0,this.state=ln.DATA,this.emitCurrentTagToken();break}case mt.EOF:{this._err(Vt.eofInTag),this._emitEOFToken();break}default:this._err(Vt.unexpectedSolidusInTag),this.state=ln.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateBogusComment(ge){const $e=this.currentToken;switch(ge){case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentComment($e);break}case mt.EOF:{this.emitCurrentComment($e),this._emitEOFToken();break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.data+=bn;break}default:$e.data+=String.fromCodePoint(ge)}}_stateMarkupDeclarationOpen(ge){this._consumeSequenceIfMatch(jn.DASH_DASH,!0)?(this._createCommentToken(jn.DASH_DASH.length+1),this.state=ln.COMMENT_START):this._consumeSequenceIfMatch(jn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(jn.DOCTYPE.length+1),this.state=ln.DOCTYPE):this._consumeSequenceIfMatch(jn.CDATA_START,!0)?this.inForeignNode?this.state=ln.CDATA_SECTION:(this._err(Vt.cdataInHtmlContent),this._createCommentToken(jn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ln.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Vt.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ln.BOGUS_COMMENT,this._stateBogusComment(ge))}_stateCommentStart(ge){switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.COMMENT_START_DASH;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.abruptClosingOfEmptyComment),this.state=ln.DATA;const $e=this.currentToken;this.emitCurrentComment($e);break}default:this.state=ln.COMMENT,this._stateComment(ge)}}_stateCommentStartDash(ge){const $e=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.COMMENT_END;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.abruptClosingOfEmptyComment),this.state=ln.DATA,this.emitCurrentComment($e);break}case mt.EOF:{this._err(Vt.eofInComment),this.emitCurrentComment($e),this._emitEOFToken();break}default:$e.data+="-",this.state=ln.COMMENT,this._stateComment(ge)}}_stateComment(ge){const $e=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.COMMENT_END_DASH;break}case mt.LESS_THAN_SIGN:{$e.data+="<",this.state=ln.COMMENT_LESS_THAN_SIGN;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.data+=bn;break}case mt.EOF:{this._err(Vt.eofInComment),this.emitCurrentComment($e),this._emitEOFToken();break}default:$e.data+=String.fromCodePoint(ge)}}_stateCommentLessThanSign(ge){const $e=this.currentToken;switch(ge){case mt.EXCLAMATION_MARK:{$e.data+="!",this.state=ln.COMMENT_LESS_THAN_SIGN_BANG;break}case mt.LESS_THAN_SIGN:{$e.data+="<";break}default:this.state=ln.COMMENT,this._stateComment(ge)}}_stateCommentLessThanSignBang(ge){ge===mt.HYPHEN_MINUS?this.state=ln.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ln.COMMENT,this._stateComment(ge))}_stateCommentLessThanSignBangDash(ge){ge===mt.HYPHEN_MINUS?this.state=ln.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ln.COMMENT_END_DASH,this._stateCommentEndDash(ge))}_stateCommentLessThanSignBangDashDash(ge){ge!==mt.GREATER_THAN_SIGN&&ge!==mt.EOF&&this._err(Vt.nestedComment),this.state=ln.COMMENT_END,this._stateCommentEnd(ge)}_stateCommentEndDash(ge){const $e=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{this.state=ln.COMMENT_END;break}case mt.EOF:{this._err(Vt.eofInComment),this.emitCurrentComment($e),this._emitEOFToken();break}default:$e.data+="-",this.state=ln.COMMENT,this._stateComment(ge)}}_stateCommentEnd(ge){const $e=this.currentToken;switch(ge){case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentComment($e);break}case mt.EXCLAMATION_MARK:{this.state=ln.COMMENT_END_BANG;break}case mt.HYPHEN_MINUS:{$e.data+="-";break}case mt.EOF:{this._err(Vt.eofInComment),this.emitCurrentComment($e),this._emitEOFToken();break}default:$e.data+="--",this.state=ln.COMMENT,this._stateComment(ge)}}_stateCommentEndBang(ge){const $e=this.currentToken;switch(ge){case mt.HYPHEN_MINUS:{$e.data+="--!",this.state=ln.COMMENT_END_DASH;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.incorrectlyClosedComment),this.state=ln.DATA,this.emitCurrentComment($e);break}case mt.EOF:{this._err(Vt.eofInComment),this.emitCurrentComment($e),this._emitEOFToken();break}default:$e.data+="--!",this.state=ln.COMMENT,this._stateComment(ge)}}_stateDoctype(ge){switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=ln.BEFORE_DOCTYPE_NAME;break}case mt.GREATER_THAN_SIGN:{this.state=ln.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge);break}case mt.EOF:{this._err(Vt.eofInDoctype),this._createDoctypeToken(null);const $e=this.currentToken;$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingWhitespaceBeforeDoctypeName),this.state=ln.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge)}}_stateBeforeDoctypeName(ge){if(pn(ge))this._createDoctypeToken(String.fromCharCode(pr(ge))),this.state=ln.DOCTYPE_NAME;else switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.NULL:{this._err(Vt.unexpectedNullCharacter),this._createDoctypeToken(bn),this.state=ln.DOCTYPE_NAME;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.missingDoctypeName),this._createDoctypeToken(null);const $e=this.currentToken;$e.forceQuirks=!0,this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofInDoctype),this._createDoctypeToken(null);const $e=this.currentToken;$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(ge)),this.state=ln.DOCTYPE_NAME}}_stateDoctypeName(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=ln.AFTER_DOCTYPE_NAME;break}case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.name+=bn;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:$e.name+=String.fromCodePoint(pn(ge)?pr(ge):ge)}}_stateAfterDoctypeName(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(jn.PUBLIC,!1)?this.state=ln.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(jn.SYSTEM,!1)?this.state=ln.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Vt.invalidCharacterSequenceAfterDoctypeName),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge))}}_stateAfterDoctypePublicKeyword(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=ln.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case mt.QUOTATION_MARK:{this._err(Vt.missingWhitespaceAfterDoctypePublicKeyword),$e.publicId="",this.state=ln.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this._err(Vt.missingWhitespaceAfterDoctypePublicKeyword),$e.publicId="",this.state=ln.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.missingDoctypePublicIdentifier),$e.forceQuirks=!0,this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingQuoteBeforeDoctypePublicIdentifier),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypePublicIdentifier(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.QUOTATION_MARK:{$e.publicId="",this.state=ln.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{$e.publicId="",this.state=ln.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.missingDoctypePublicIdentifier),$e.forceQuirks=!0,this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingQuoteBeforeDoctypePublicIdentifier),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypePublicIdentifierDoubleQuoted(ge){const $e=this.currentToken;switch(ge){case mt.QUOTATION_MARK:{this.state=ln.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.publicId+=bn;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.abruptDoctypePublicIdentifier),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:$e.publicId+=String.fromCodePoint(ge)}}_stateDoctypePublicIdentifierSingleQuoted(ge){const $e=this.currentToken;switch(ge){case mt.APOSTROPHE:{this.state=ln.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.publicId+=bn;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.abruptDoctypePublicIdentifier),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:$e.publicId+=String.fromCodePoint(ge)}}_stateAfterDoctypePublicIdentifier(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=ln.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case mt.GREATER_THAN_SIGN:{this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.QUOTATION_MARK:{this._err(Vt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this._err(Vt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingQuoteBeforeDoctypeSystemIdentifier),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBetweenDoctypePublicAndSystemIdentifiers(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.GREATER_THAN_SIGN:{this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.QUOTATION_MARK:{$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingQuoteBeforeDoctypeSystemIdentifier),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateAfterDoctypeSystemKeyword(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:{this.state=ln.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case mt.QUOTATION_MARK:{this._err(Vt.missingWhitespaceAfterDoctypeSystemKeyword),$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{this._err(Vt.missingWhitespaceAfterDoctypeSystemKeyword),$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.missingDoctypeSystemIdentifier),$e.forceQuirks=!0,this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingQuoteBeforeDoctypeSystemIdentifier),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypeSystemIdentifier(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.QUOTATION_MARK:{$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case mt.APOSTROPHE:{$e.systemId="",this.state=ln.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.missingDoctypeSystemIdentifier),$e.forceQuirks=!0,this.state=ln.DATA,this.emitCurrentDoctype($e);break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.missingQuoteBeforeDoctypeSystemIdentifier),$e.forceQuirks=!0,this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypeSystemIdentifierDoubleQuoted(ge){const $e=this.currentToken;switch(ge){case mt.QUOTATION_MARK:{this.state=ln.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.systemId+=bn;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.abruptDoctypeSystemIdentifier),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:$e.systemId+=String.fromCodePoint(ge)}}_stateDoctypeSystemIdentifierSingleQuoted(ge){const $e=this.currentToken;switch(ge){case mt.APOSTROPHE:{this.state=ln.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter),$e.systemId+=bn;break}case mt.GREATER_THAN_SIGN:{this._err(Vt.abruptDoctypeSystemIdentifier),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:$e.systemId+=String.fromCodePoint(ge)}}_stateAfterDoctypeSystemIdentifier(ge){const $e=this.currentToken;switch(ge){case mt.SPACE:case mt.LINE_FEED:case mt.TABULATION:case mt.FORM_FEED:break;case mt.GREATER_THAN_SIGN:{this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.EOF:{this._err(Vt.eofInDoctype),$e.forceQuirks=!0,this.emitCurrentDoctype($e),this._emitEOFToken();break}default:this._err(Vt.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ln.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBogusDoctype(ge){const $e=this.currentToken;switch(ge){case mt.GREATER_THAN_SIGN:{this.emitCurrentDoctype($e),this.state=ln.DATA;break}case mt.NULL:{this._err(Vt.unexpectedNullCharacter);break}case mt.EOF:{this.emitCurrentDoctype($e),this._emitEOFToken();break}default:}}_stateCdataSection(ge){switch(ge){case mt.RIGHT_SQUARE_BRACKET:{this.state=ln.CDATA_SECTION_BRACKET;break}case mt.EOF:{this._err(Vt.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateCdataSectionBracket(ge){ge===mt.RIGHT_SQUARE_BRACKET?this.state=ln.CDATA_SECTION_END:(this._emitChars("]"),this.state=ln.CDATA_SECTION,this._stateCdataSection(ge))}_stateCdataSectionEnd(ge){switch(ge){case mt.GREATER_THAN_SIGN:{this.state=ln.DATA;break}case mt.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ln.CDATA_SECTION,this._stateCdataSection(ge)}}_stateCharacterReference(){let ge=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(ge<0)if(this.preprocessor.lastChunkWritten)ge=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}ge===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(mt.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ir(this.preprocessor.peek(1))?ln.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(ge){ir(ge)?this._flushCodePointConsumedAsCharacterReference(ge):(ge===mt.SEMICOLON&&this._err(Vt.unknownNamedCharacterReference),this.state=this.returnState,this._callState(ge))}}const _r=new Set([je.DD,je.DT,je.LI,je.OPTGROUP,je.OPTION,je.P,je.RB,je.RP,je.RT,je.RTC]),Wn=new Set([..._r,je.CAPTION,je.COLGROUP,je.TBODY,je.TD,je.TFOOT,je.TH,je.THEAD,je.TR]),xr=new Set([je.APPLET,je.CAPTION,je.HTML,je.MARQUEE,je.OBJECT,je.TABLE,je.TD,je.TEMPLATE,je.TH]),$n=new Set([...xr,je.OL,je.UL]),ar=new Set([...xr,je.BUTTON]),Nr=new Set([je.ANNOTATION_XML,je.MI,je.MN,je.MO,je.MS,je.MTEXT]),Sr=new Set([je.DESC,je.FOREIGN_OBJECT,je.TITLE]),Xr=new Set([je.TR,je.TEMPLATE,je.HTML]),Zr=new Set([je.TBODY,je.TFOOT,je.THEAD,je.TEMPLATE,je.HTML]),Rr=new Set([je.TABLE,je.TEMPLATE,je.HTML]),So=new Set([je.TD,je.TH]);class Ln{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(ge,$e,Jt){this.treeAdapter=$e,this.handler=Jt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=je.UNKNOWN,this.current=ge}_indexOf(ge){return this.items.lastIndexOf(ge,this.stackTop)}_isInTemplate(){return this.currentTagId===je.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===zt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(ge,$e){this.stackTop++,this.items[this.stackTop]=ge,this.current=ge,this.tagIDs[this.stackTop]=$e,this.currentTagId=$e,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(ge,$e,!0)}pop(){const ge=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!0)}replace(ge,$e){const Jt=this._indexOf(ge);this.items[Jt]=$e,Jt===this.stackTop&&(this.current=$e)}insertAfter(ge,$e,Jt){const Si=this._indexOf(ge)+1;this.items.splice(Si,0,$e),this.tagIDs.splice(Si,0,Jt),this.stackTop++,Si===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,Si===this.stackTop)}popUntilTagNamePopped(ge){let $e=this.stackTop+1;do $e=this.tagIDs.lastIndexOf(ge,$e-1);while($e>0&&this.treeAdapter.getNamespaceURI(this.items[$e])!==zt.HTML);this.shortenToLength(Math.max($e,0))}shortenToLength(ge){for(;this.stackTop>=ge;){const $e=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop($e,this.stackTop<ge)}}popUntilElementPopped(ge){const $e=this._indexOf(ge);this.shortenToLength(Math.max($e,0))}popUntilPopped(ge,$e){const Jt=this._indexOfTagNames(ge,$e);this.shortenToLength(Math.max(Jt,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(_i,zt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(So,zt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(ge,$e){for(let Jt=this.stackTop;Jt>=0;Jt--)if(ge.has(this.tagIDs[Jt])&&this.treeAdapter.getNamespaceURI(this.items[Jt])===$e)return Jt;return-1}clearBackTo(ge,$e){const Jt=this._indexOfTagNames(ge,$e);this.shortenToLength(Jt+1)}clearBackToTableContext(){this.clearBackTo(Rr,zt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Zr,zt.HTML)}clearBackToTableRowContext(){this.clearBackTo(Xr,zt.HTML)}remove(ge){const $e=this._indexOf(ge);$e>=0&&($e===this.stackTop?this.pop():(this.items.splice($e,1),this.tagIDs.splice($e,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===je.BODY?this.items[1]:null}contains(ge){return this._indexOf(ge)>-1}getCommonAncestor(ge){const $e=this._indexOf(ge)-1;return $e>=0?this.items[$e]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===je.HTML}hasInDynamicScope(ge,$e){for(let Jt=this.stackTop;Jt>=0;Jt--){const Si=this.tagIDs[Jt];switch(this.treeAdapter.getNamespaceURI(this.items[Jt])){case zt.HTML:{if(Si===ge)return!0;if($e.has(Si))return!1;break}case zt.SVG:{if(Sr.has(Si))return!1;break}case zt.MATHML:{if(Nr.has(Si))return!1;break}}}return!0}hasInScope(ge){return this.hasInDynamicScope(ge,xr)}hasInListItemScope(ge){return this.hasInDynamicScope(ge,$n)}hasInButtonScope(ge){return this.hasInDynamicScope(ge,ar)}hasNumberedHeaderInScope(){for(let ge=this.stackTop;ge>=0;ge--){const $e=this.tagIDs[ge];switch(this.treeAdapter.getNamespaceURI(this.items[ge])){case zt.HTML:{if(_i.has($e))return!0;if(xr.has($e))return!1;break}case zt.SVG:{if(Sr.has($e))return!1;break}case zt.MATHML:{if(Nr.has($e))return!1;break}}}return!0}hasInTableScope(ge){for(let $e=this.stackTop;$e>=0;$e--)if(this.treeAdapter.getNamespaceURI(this.items[$e])===zt.HTML)switch(this.tagIDs[$e]){case ge:return!0;case je.TABLE:case je.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ge=this.stackTop;ge>=0;ge--)if(this.treeAdapter.getNamespaceURI(this.items[ge])===zt.HTML)switch(this.tagIDs[ge]){case je.TBODY:case je.THEAD:case je.TFOOT:return!0;case je.TABLE:case je.HTML:return!1}return!0}hasInSelectScope(ge){for(let $e=this.stackTop;$e>=0;$e--)if(this.treeAdapter.getNamespaceURI(this.items[$e])===zt.HTML)switch(this.tagIDs[$e]){case ge:return!0;case je.OPTION:case je.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&_r.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Wn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ge){for(;this.currentTagId!==void 0&&this.currentTagId!==ge&&Wn.has(this.currentTagId);)this.pop()}}const ci=3;var yn;(function(ce){ce[ce.Marker=0]="Marker",ce[ce.Element=1]="Element"})(yn||(yn={}));const rt={type:yn.Marker};class Ii{constructor(ge){this.treeAdapter=ge,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ge,$e){const Jt=[],Si=$e.length,Qi=this.treeAdapter.getTagName(ge),hr=this.treeAdapter.getNamespaceURI(ge);for(let lo=0;lo<this.entries.length;lo++){const Ao=this.entries[lo];if(Ao.type===yn.Marker)break;const{element:Wi}=Ao;if(this.treeAdapter.getTagName(Wi)===Qi&&this.treeAdapter.getNamespaceURI(Wi)===hr){const Ur=this.treeAdapter.getAttrList(Wi);Ur.length===Si&&Jt.push({idx:lo,attrs:Ur})}}return Jt}_ensureNoahArkCondition(ge){if(this.entries.length<ci)return;const $e=this.treeAdapter.getAttrList(ge),Jt=this._getNoahArkConditionCandidates(ge,$e);if(Jt.length<ci)return;const Si=new Map($e.map(hr=>[hr.name,hr.value]));let Qi=0;for(let hr=0;hr<Jt.length;hr++){const lo=Jt[hr];lo.attrs.every(Ao=>Si.get(Ao.name)===Ao.value)&&(Qi+=1,Qi>=ci&&this.entries.splice(lo.idx,1))}}insertMarker(){this.entries.unshift(rt)}pushElement(ge,$e){this._ensureNoahArkCondition(ge),this.entries.unshift({type:yn.Element,element:ge,token:$e})}insertElementAfterBookmark(ge,$e){const Jt=this.entries.indexOf(this.bookmark);this.entries.splice(Jt,0,{type:yn.Element,element:ge,token:$e})}removeEntry(ge){const $e=this.entries.indexOf(ge);$e!==-1&&this.entries.splice($e,1)}clearToLastMarker(){const ge=this.entries.indexOf(rt);ge===-1?this.entries.length=0:this.entries.splice(0,ge+1)}getElementEntryInScopeWithTagName(ge){const $e=this.entries.find(Jt=>Jt.type===yn.Marker||this.treeAdapter.getTagName(Jt.element)===ge);return $e&&$e.type===yn.Element?$e:null}getElementEntry(ge){return this.entries.find($e=>$e.type===yn.Element&&$e.element===ge)}}const Hi={createDocument(){return{nodeName:"#document",mode:Fi.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(ce,ge,$e){return{nodeName:ce,tagName:ce,attrs:$e,namespaceURI:ge,childNodes:[],parentNode:null}},createCommentNode(ce){return{nodeName:"#comment",data:ce,parentNode:null}},createTextNode(ce){return{nodeName:"#text",value:ce,parentNode:null}},appendChild(ce,ge){ce.childNodes.push(ge),ge.parentNode=ce},insertBefore(ce,ge,$e){const Jt=ce.childNodes.indexOf($e);ce.childNodes.splice(Jt,0,ge),ge.parentNode=ce},setTemplateContent(ce,ge){ce.content=ge},getTemplateContent(ce){return ce.content},setDocumentType(ce,ge,$e,Jt){const Si=ce.childNodes.find(Qi=>Qi.nodeName==="#documentType");if(Si)Si.name=ge,Si.publicId=$e,Si.systemId=Jt;else{const Qi={nodeName:"#documentType",name:ge,publicId:$e,systemId:Jt,parentNode:null};Hi.appendChild(ce,Qi)}},setDocumentMode(ce,ge){ce.mode=ge},getDocumentMode(ce){return ce.mode},detachNode(ce){if(ce.parentNode){const ge=ce.parentNode.childNodes.indexOf(ce);ce.parentNode.childNodes.splice(ge,1),ce.parentNode=null}},insertText(ce,ge){if(ce.childNodes.length>0){const $e=ce.childNodes[ce.childNodes.length-1];if(Hi.isTextNode($e)){$e.value+=ge;return}}Hi.appendChild(ce,Hi.createTextNode(ge))},insertTextBefore(ce,ge,$e){const Jt=ce.childNodes[ce.childNodes.indexOf($e)-1];Jt&&Hi.isTextNode(Jt)?Jt.value+=ge:Hi.insertBefore(ce,Hi.createTextNode(ge),$e)},adoptAttributes(ce,ge){const $e=new Set(ce.attrs.map(Jt=>Jt.name));for(let Jt=0;Jt<ge.length;Jt++)$e.has(ge[Jt].name)||ce.attrs.push(ge[Jt])},getFirstChild(ce){return ce.childNodes[0]},getChildNodes(ce){return ce.childNodes},getParentNode(ce){return ce.parentNode},getAttrList(ce){return ce.attrs},getTagName(ce){return ce.tagName},getNamespaceURI(ce){return ce.namespaceURI},getTextNodeContent(ce){return ce.value},getCommentNodeContent(ce){return ce.data},getDocumentTypeNodeName(ce){return ce.name},getDocumentTypeNodePublicId(ce){return ce.publicId},getDocumentTypeNodeSystemId(ce){return ce.systemId},isTextNode(ce){return ce.nodeName==="#text"},isCommentNode(ce){return ce.nodeName==="#comment"},isDocumentTypeNode(ce){return ce.nodeName==="#documentType"},isElementNode(ce){return Object.prototype.hasOwnProperty.call(ce,"tagName")},setNodeSourceCodeLocation(ce,ge){ce.sourceCodeLocation=ge},getNodeSourceCodeLocation(ce){return ce.sourceCodeLocation},updateNodeSourceCodeLocation(ce,ge){ce.sourceCodeLocation=Qo(Qo({},ce.sourceCodeLocation),ge)}},nr="html",qi="about:legacy-compat",Zi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",di=["+//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//"],dt=[...di,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],gn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),vn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Bn=[...vn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function hn(ce,ge){return ge.some($e=>ce.startsWith($e))}function Yn(ce){return ce.name===nr&&ce.publicId===null&&(ce.systemId===null||ce.systemId===qi)}function Gn(ce){if(ce.name!==nr)return Fi.QUIRKS;const{systemId:ge}=ce;if(ge&&ge.toLowerCase()===Zi)return Fi.QUIRKS;let{publicId:$e}=ce;if($e!==null){if($e=$e.toLowerCase(),gn.has($e))return Fi.QUIRKS;let Jt=ge===null?dt:di;if(hn($e,Jt))return Fi.QUIRKS;if(Jt=ge===null?vn:Bn,hn($e,Jt))return Fi.LIMITED_QUIRKS}return Fi.NO_QUIRKS}const en={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ri="definitionurl",Bi="definitionURL",dr=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(ce=>[ce.toLowerCase(),ce])),Ki=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:zt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zt.XMLNS}]]),sr=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(ce=>[ce.toLowerCase(),ce])),gr=new Set([je.B,je.BIG,je.BLOCKQUOTE,je.BODY,je.BR,je.CENTER,je.CODE,je.DD,je.DIV,je.DL,je.DT,je.EM,je.EMBED,je.H1,je.H2,je.H3,je.H4,je.H5,je.H6,je.HEAD,je.HR,je.I,je.IMG,je.LI,je.LISTING,je.MENU,je.META,je.NOBR,je.OL,je.P,je.PRE,je.RUBY,je.S,je.SMALL,je.SPAN,je.STRONG,je.STRIKE,je.SUB,je.SUP,je.TABLE,je.TT,je.U,je.UL,je.VAR]);function wr(ce){const ge=ce.tagID;return ge===je.FONT&&ce.attrs.some(({name:Jt})=>Jt===pi.COLOR||Jt===pi.SIZE||Jt===pi.FACE)||gr.has(ge)}function zr(ce){for(let ge=0;ge<ce.attrs.length;ge++)if(ce.attrs[ge].name===ri){ce.attrs[ge].name=Bi;break}}function eo(ce){for(let ge=0;ge<ce.attrs.length;ge++){const $e=dr.get(ce.attrs[ge].name);$e!=null&&(ce.attrs[ge].name=$e)}}function yo(ce){for(let ge=0;ge<ce.attrs.length;ge++){const $e=Ki.get(ce.attrs[ge].name);$e&&(ce.attrs[ge].prefix=$e.prefix,ce.attrs[ge].name=$e.name,ce.attrs[ge].namespace=$e.namespace)}}function xn(ce){const ge=sr.get(ce.tagName);ge!=null&&(ce.tagName=ge,ce.tagID=Ai(ce.tagName))}function so(ce,ge){return ge===zt.MATHML&&(ce===je.MI||ce===je.MO||ce===je.MN||ce===je.MS||ce===je.MTEXT)}function Qr(ce,ge,$e){if(ge===zt.MATHML&&ce===je.ANNOTATION_XML){for(let Jt=0;Jt<$e.length;Jt++)if($e[Jt].name===pi.ENCODING){const Si=$e[Jt].value.toLowerCase();return Si===en.TEXT_HTML||Si===en.APPLICATION_XML}}return ge===zt.SVG&&(ce===je.FOREIGN_OBJECT||ce===je.DESC||ce===je.TITLE)}function Lr(ce,ge,$e,Jt){return(!Jt||Jt===zt.HTML)&&Qr(ce,ge,$e)||(!Jt||Jt===zt.MATHML)&&so(ce,ge)}const Cr="hidden",fo=8,Co=3;var Fn;(function(ce){ce[ce.INITIAL=0]="INITIAL",ce[ce.BEFORE_HTML=1]="BEFORE_HTML",ce[ce.BEFORE_HEAD=2]="BEFORE_HEAD",ce[ce.IN_HEAD=3]="IN_HEAD",ce[ce.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ce[ce.AFTER_HEAD=5]="AFTER_HEAD",ce[ce.IN_BODY=6]="IN_BODY",ce[ce.TEXT=7]="TEXT",ce[ce.IN_TABLE=8]="IN_TABLE",ce[ce.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",ce[ce.IN_CAPTION=10]="IN_CAPTION",ce[ce.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ce[ce.IN_TABLE_BODY=12]="IN_TABLE_BODY",ce[ce.IN_ROW=13]="IN_ROW",ce[ce.IN_CELL=14]="IN_CELL",ce[ce.IN_SELECT=15]="IN_SELECT",ce[ce.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",ce[ce.IN_TEMPLATE=17]="IN_TEMPLATE",ce[ce.AFTER_BODY=18]="AFTER_BODY",ce[ce.IN_FRAMESET=19]="IN_FRAMESET",ce[ce.AFTER_FRAMESET=20]="AFTER_FRAMESET",ce[ce.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",ce[ce.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Fn||(Fn={}));const Jr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Do=new Set([je.TABLE,je.TBODY,je.TFOOT,je.THEAD,je.TR]),ma={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Hi,onParseError:null};class Ga{constructor(ge,$e,Jt=null,Si=null){this.fragmentContext=Jt,this.scriptHandler=Si,this.currentToken=null,this.stopped=!1,this.insertionMode=Fn.INITIAL,this.originalInsertionMode=Fn.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=Qo(Qo({},ma),ge),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=$e!=null?$e:this.treeAdapter.createDocument(),this.tokenizer=new br(this.options,this),this.activeFormattingElements=new Ii(this.treeAdapter),this.fragmentContextID=Jt?Ai(this.treeAdapter.getTagName(Jt)):je.UNKNOWN,this._setContextModes(Jt!=null?Jt:this.document,this.fragmentContextID),this.openElements=new Ln(this.document,this.treeAdapter,this)}static parse(ge,$e){const Jt=new this($e);return Jt.tokenizer.write(ge,!0),Jt.document}static getFragmentParser(ge,$e){const Jt=Qo(Qo({},ma),$e);ge!=null||(ge=Jt.treeAdapter.createElement(Cn.TEMPLATE,zt.HTML,[]));const Si=Jt.treeAdapter.createElement("documentmock",zt.HTML,[]),Qi=new this(Jt,Si,ge);return Qi.fragmentContextID===je.TEMPLATE&&Qi.tmplInsertionModeStack.unshift(Fn.IN_TEMPLATE),Qi._initTokenizerForFragmentParsing(),Qi._insertFakeRootElement(),Qi._resetInsertionMode(),Qi._findFormInFragmentContext(),Qi}getFragment(){const ge=this.treeAdapter.getFirstChild(this.document),$e=this.treeAdapter.createDocumentFragment();return this._adoptNodes(ge,$e),$e}_err(ge,$e,Jt){var Si;if(!this.onParseError)return;const Qi=(Si=ge.location)!==null&&Si!==void 0?Si:Jr,hr={code:$e,startLine:Qi.startLine,startCol:Qi.startCol,startOffset:Qi.startOffset,endLine:Jt?Qi.startLine:Qi.endLine,endCol:Jt?Qi.startCol:Qi.endCol,endOffset:Jt?Qi.startOffset:Qi.endOffset};this.onParseError(hr)}onItemPush(ge,$e,Jt){var Si,Qi;(Qi=(Si=this.treeAdapter).onItemPush)===null||Qi===void 0||Qi.call(Si,ge),Jt&&this.openElements.stackTop>0&&this._setContextModes(ge,$e)}onItemPop(ge,$e){var Jt,Si;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ge,this.currentToken),(Si=(Jt=this.treeAdapter).onItemPop)===null||Si===void 0||Si.call(Jt,ge,this.openElements.current),$e){let Qi,hr;this.openElements.stackTop===0&&this.fragmentContext?(Qi=this.fragmentContext,hr=this.fragmentContextID):{current:Qi,currentTagId:hr}=this.openElements,this._setContextModes(Qi,hr)}}_setContextModes(ge,$e){const Jt=ge===this.document||ge&&this.treeAdapter.getNamespaceURI(ge)===zt.HTML;this.currentNotInHTML=!Jt,this.tokenizer.inForeignNode=!Jt&&ge!==void 0&&$e!==void 0&&!this._isIntegrationPoint($e,ge)}_switchToTextParsing(ge,$e){this._insertElement(ge,zt.HTML),this.tokenizer.state=$e,this.originalInsertionMode=this.insertionMode,this.insertionMode=Fn.TEXT}switchToPlaintextParsing(){this.insertionMode=Fn.TEXT,this.originalInsertionMode=Fn.IN_BODY,this.tokenizer.state=vr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let ge=this.fragmentContext;for(;ge;){if(this.treeAdapter.getTagName(ge)===Cn.FORM){this.formElement=ge;break}ge=this.treeAdapter.getParentNode(ge)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==zt.HTML))switch(this.fragmentContextID){case je.TITLE:case je.TEXTAREA:{this.tokenizer.state=vr.RCDATA;break}case je.STYLE:case je.XMP:case je.IFRAME:case je.NOEMBED:case je.NOFRAMES:case je.NOSCRIPT:{this.tokenizer.state=vr.RAWTEXT;break}case je.SCRIPT:{this.tokenizer.state=vr.SCRIPT_DATA;break}case je.PLAINTEXT:{this.tokenizer.state=vr.PLAINTEXT;break}default:}}_setDocumentType(ge){const $e=ge.name||"",Jt=ge.publicId||"",Si=ge.systemId||"";if(this.treeAdapter.setDocumentType(this.document,$e,Jt,Si),ge.location){const hr=this.treeAdapter.getChildNodes(this.document).find(lo=>this.treeAdapter.isDocumentTypeNode(lo));hr&&this.treeAdapter.setNodeSourceCodeLocation(hr,ge.location)}}_attachElementToTree(ge,$e){if(this.options.sourceCodeLocationInfo){const Jt=$e&&Af(Qo({},$e),{startTag:$e});this.treeAdapter.setNodeSourceCodeLocation(ge,Jt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ge);else{const Jt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Jt!=null?Jt:this.document,ge)}}_appendElement(ge,$e){const Jt=this.treeAdapter.createElement(ge.tagName,$e,ge.attrs);this._attachElementToTree(Jt,ge.location)}_insertElement(ge,$e){const Jt=this.treeAdapter.createElement(ge.tagName,$e,ge.attrs);this._attachElementToTree(Jt,ge.location),this.openElements.push(Jt,ge.tagID)}_insertFakeElement(ge,$e){const Jt=this.treeAdapter.createElement(ge,zt.HTML,[]);this._attachElementToTree(Jt,null),this.openElements.push(Jt,$e)}_insertTemplate(ge){const $e=this.treeAdapter.createElement(ge.tagName,zt.HTML,ge.attrs),Jt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent($e,Jt),this._attachElementToTree($e,ge.location),this.openElements.push($e,ge.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Jt,null)}_insertFakeRootElement(){const ge=this.treeAdapter.createElement(Cn.HTML,zt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ge,null),this.treeAdapter.appendChild(this.openElements.current,ge),this.openElements.push(ge,je.HTML)}_appendCommentNode(ge,$e){const Jt=this.treeAdapter.createCommentNode(ge.data);this.treeAdapter.appendChild($e,Jt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Jt,ge.location)}_insertCharacters(ge){let $e,Jt;if(this._shouldFosterParentOnInsertion()?({parent:$e,beforeElement:Jt}=this._findFosterParentingLocation(),Jt?this.treeAdapter.insertTextBefore($e,ge.chars,Jt):this.treeAdapter.insertText($e,ge.chars)):($e=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText($e,ge.chars)),!ge.location)return;const Si=this.treeAdapter.getChildNodes($e),Qi=Jt?Si.lastIndexOf(Jt):Si.length,hr=Si[Qi-1];if(this.treeAdapter.getNodeSourceCodeLocation(hr)){const{endLine:Ao,endCol:Wi,endOffset:Ur}=ge.location;this.treeAdapter.updateNodeSourceCodeLocation(hr,{endLine:Ao,endCol:Wi,endOffset:Ur})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(hr,ge.location)}_adoptNodes(ge,$e){for(let Jt=this.treeAdapter.getFirstChild(ge);Jt;Jt=this.treeAdapter.getFirstChild(ge))this.treeAdapter.detachNode(Jt),this.treeAdapter.appendChild($e,Jt)}_setEndLocation(ge,$e){if(this.treeAdapter.getNodeSourceCodeLocation(ge)&&$e.location){const Jt=$e.location,Si=this.treeAdapter.getTagName(ge),Qi=$e.type===Un.END_TAG&&Si===$e.tagName?{endTag:Qo({},Jt),endLine:Jt.endLine,endCol:Jt.endCol,endOffset:Jt.endOffset}:{endLine:Jt.startLine,endCol:Jt.startCol,endOffset:Jt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ge,Qi)}}shouldProcessStartTagTokenInForeignContent(ge){if(!this.currentNotInHTML)return!1;let $e,Jt;return this.openElements.stackTop===0&&this.fragmentContext?($e=this.fragmentContext,Jt=this.fragmentContextID):{current:$e,currentTagId:Jt}=this.openElements,ge.tagID===je.SVG&&this.treeAdapter.getTagName($e)===Cn.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI($e)===zt.MATHML?!1:this.tokenizer.inForeignNode||(ge.tagID===je.MGLYPH||ge.tagID===je.MALIGNMARK)&&Jt!==void 0&&!this._isIntegrationPoint(Jt,$e,zt.HTML)}_processToken(ge){switch(ge.type){case Un.CHARACTER:{this.onCharacter(ge);break}case Un.NULL_CHARACTER:{this.onNullCharacter(ge);break}case Un.COMMENT:{this.onComment(ge);break}case Un.DOCTYPE:{this.onDoctype(ge);break}case Un.START_TAG:{this._processStartTag(ge);break}case Un.END_TAG:{this.onEndTag(ge);break}case Un.EOF:{this.onEof(ge);break}case Un.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ge);break}}}_isIntegrationPoint(ge,$e,Jt){const Si=this.treeAdapter.getNamespaceURI($e),Qi=this.treeAdapter.getAttrList($e);return Lr(ge,Si,Qi,Jt)}_reconstructActiveFormattingElements(){const ge=this.activeFormattingElements.entries.length;if(ge){const $e=this.activeFormattingElements.entries.findIndex(Si=>Si.type===yn.Marker||this.openElements.contains(Si.element)),Jt=$e===-1?ge-1:$e-1;for(let Si=Jt;Si>=0;Si--){const Qi=this.activeFormattingElements.entries[Si];this._insertElement(Qi.token,this.treeAdapter.getNamespaceURI(Qi.element)),Qi.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Fn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(je.P),this.openElements.popUntilTagNamePopped(je.P)}_resetInsertionMode(){for(let ge=this.openElements.stackTop;ge>=0;ge--)switch(ge===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ge]){case je.TR:{this.insertionMode=Fn.IN_ROW;return}case je.TBODY:case je.THEAD:case je.TFOOT:{this.insertionMode=Fn.IN_TABLE_BODY;return}case je.CAPTION:{this.insertionMode=Fn.IN_CAPTION;return}case je.COLGROUP:{this.insertionMode=Fn.IN_COLUMN_GROUP;return}case je.TABLE:{this.insertionMode=Fn.IN_TABLE;return}case je.BODY:{this.insertionMode=Fn.IN_BODY;return}case je.FRAMESET:{this.insertionMode=Fn.IN_FRAMESET;return}case je.SELECT:{this._resetInsertionModeForSelect(ge);return}case je.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case je.HTML:{this.insertionMode=this.headElement?Fn.AFTER_HEAD:Fn.BEFORE_HEAD;return}case je.TD:case je.TH:{if(ge>0){this.insertionMode=Fn.IN_CELL;return}break}case je.HEAD:{if(ge>0){this.insertionMode=Fn.IN_HEAD;return}break}}this.insertionMode=Fn.IN_BODY}_resetInsertionModeForSelect(ge){if(ge>0)for(let $e=ge-1;$e>0;$e--){const Jt=this.openElements.tagIDs[$e];if(Jt===je.TEMPLATE)break;if(Jt===je.TABLE){this.insertionMode=Fn.IN_SELECT_IN_TABLE;return}}this.insertionMode=Fn.IN_SELECT}_isElementCausesFosterParenting(ge){return Do.has(ge)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let ge=this.openElements.stackTop;ge>=0;ge--){const $e=this.openElements.items[ge];switch(this.openElements.tagIDs[ge]){case je.TEMPLATE:{if(this.treeAdapter.getNamespaceURI($e)===zt.HTML)return{parent:this.treeAdapter.getTemplateContent($e),beforeElement:null};break}case je.TABLE:{const Jt=this.treeAdapter.getParentNode($e);return Jt?{parent:Jt,beforeElement:$e}:{parent:this.openElements.items[ge-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(ge){const $e=this._findFosterParentingLocation();$e.beforeElement?this.treeAdapter.insertBefore($e.parent,ge,$e.beforeElement):this.treeAdapter.appendChild($e.parent,ge)}_isSpecialElement(ge,$e){const Jt=this.treeAdapter.getNamespaceURI(ge);return Ji[Jt].has($e)}onCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ct(this,ge);return}switch(this.insertionMode){case Fn.INITIAL:{ho(this,ge);break}case Fn.BEFORE_HTML:{Ya(this,ge);break}case Fn.BEFORE_HEAD:{vo(this,ge);break}case Fn.IN_HEAD:{ss(this,ge);break}case Fn.IN_HEAD_NO_SCRIPT:{Pa(this,ge);break}case Fn.AFTER_HEAD:{Rs(this,ge);break}case Fn.IN_BODY:case Fn.IN_CAPTION:case Fn.IN_CELL:case Fn.IN_TEMPLATE:{Ql(this,ge);break}case Fn.TEXT:case Fn.IN_SELECT:case Fn.IN_SELECT_IN_TABLE:{this._insertCharacters(ge);break}case Fn.IN_TABLE:case Fn.IN_TABLE_BODY:case Fn.IN_ROW:{qr(this,ge);break}case Fn.IN_TABLE_TEXT:{Ll(this,ge);break}case Fn.IN_COLUMN_GROUP:{qa(this,ge);break}case Fn.AFTER_BODY:{sc(this,ge);break}case Fn.AFTER_AFTER_BODY:{we(this,ge);break}default:}}onNullCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){et(this,ge);return}switch(this.insertionMode){case Fn.INITIAL:{ho(this,ge);break}case Fn.BEFORE_HTML:{Ya(this,ge);break}case Fn.BEFORE_HEAD:{vo(this,ge);break}case Fn.IN_HEAD:{ss(this,ge);break}case Fn.IN_HEAD_NO_SCRIPT:{Pa(this,ge);break}case Fn.AFTER_HEAD:{Rs(this,ge);break}case Fn.TEXT:{this._insertCharacters(ge);break}case Fn.IN_TABLE:case Fn.IN_TABLE_BODY:case Fn.IN_ROW:{qr(this,ge);break}case Fn.IN_COLUMN_GROUP:{qa(this,ge);break}case Fn.AFTER_BODY:{sc(this,ge);break}case Fn.AFTER_AFTER_BODY:{we(this,ge);break}default:}}onComment(ge){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ea(this,ge);return}switch(this.insertionMode){case Fn.INITIAL:case Fn.BEFORE_HTML:case Fn.BEFORE_HEAD:case Fn.IN_HEAD:case Fn.IN_HEAD_NO_SCRIPT:case Fn.AFTER_HEAD:case Fn.IN_BODY:case Fn.IN_TABLE:case Fn.IN_CAPTION:case Fn.IN_COLUMN_GROUP:case Fn.IN_TABLE_BODY:case Fn.IN_ROW:case Fn.IN_CELL:case Fn.IN_SELECT:case Fn.IN_SELECT_IN_TABLE:case Fn.IN_TEMPLATE:case Fn.IN_FRAMESET:case Fn.AFTER_FRAMESET:{Ea(this,ge);break}case Fn.IN_TABLE_TEXT:{$l(this,ge);break}case Fn.AFTER_BODY:{$i(this,ge);break}case Fn.AFTER_AFTER_BODY:case Fn.AFTER_AFTER_FRAMESET:{Mr(this,ge);break}default:}}onDoctype(ge){switch(this.skipNextNewLine=!1,this.insertionMode){case Fn.INITIAL:{uo(this,ge);break}case Fn.BEFORE_HEAD:case Fn.IN_HEAD:case Fn.IN_HEAD_NO_SCRIPT:case Fn.AFTER_HEAD:{this._err(ge,Vt.misplacedDoctype);break}case Fn.IN_TABLE_TEXT:{$l(this,ge);break}default:}}onStartTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this._processStartTag(ge),ge.selfClosing&&!ge.ackSelfClosing&&this._err(ge,Vt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ge){this.shouldProcessStartTagTokenInForeignContent(ge)?Mt(this,ge):this._startTagOutsideForeignContent(ge)}_startTagOutsideForeignContent(ge){switch(this.insertionMode){case Fn.INITIAL:{ho(this,ge);break}case Fn.BEFORE_HTML:{jo(this,ge);break}case Fn.BEFORE_HEAD:{va(this,ge);break}case Fn.IN_HEAD:{Wo(this,ge);break}case Fn.IN_HEAD_NO_SCRIPT:{Os(this,ge);break}case Fn.AFTER_HEAD:{Al(this,ge);break}case Fn.IN_BODY:{Go(this,ge);break}case Fn.IN_TABLE:{kl(this,ge);break}case Fn.IN_TABLE_TEXT:{$l(this,ge);break}case Fn.IN_CAPTION:{Io(this,ge);break}case Fn.IN_COLUMN_GROUP:{xa(this,ge);break}case Fn.IN_TABLE_BODY:{ml(this,ge);break}case Fn.IN_ROW:{yl(this,ge);break}case Fn.IN_CELL:{Ul(this,ge);break}case Fn.IN_SELECT:{mh(this,ge);break}case Fn.IN_SELECT_IN_TABLE:{yh(this,ge);break}case Fn.IN_TEMPLATE:{Vu(this,ge);break}case Fn.AFTER_BODY:{Ps(this,ge);break}case Fn.IN_FRAMESET:{Is(this,ge);break}case Fn.AFTER_FRAMESET:{hd(this,ge);break}case Fn.AFTER_AFTER_BODY:{el(this,ge);break}case Fn.AFTER_AFTER_FRAMESET:{Ze(this,ge);break}default:}}onEndTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this.currentNotInHTML?tn(this,ge):this._endTagOutsideForeignContent(ge)}_endTagOutsideForeignContent(ge){switch(this.insertionMode){case Fn.INITIAL:{ho(this,ge);break}case Fn.BEFORE_HTML:{Dr(this,ge);break}case Fn.BEFORE_HEAD:{fa(this,ge);break}case Fn.IN_HEAD:{gs(this,ge);break}case Fn.IN_HEAD_NO_SCRIPT:{ws(this,ge);break}case Fn.AFTER_HEAD:{Uu(this,ge);break}case Fn.IN_BODY:{aa(this,ge);break}case Fn.TEXT:{Lo(this,ge);break}case Fn.IN_TABLE:{_o(this,ge);break}case Fn.IN_TABLE_TEXT:{$l(this,ge);break}case Fn.IN_CAPTION:{Yo(this,ge);break}case Fn.IN_COLUMN_GROUP:{ds(this,ge);break}case Fn.IN_TABLE_BODY:{vl(this,ge);break}case Fn.IN_ROW:{$s(this,ge);break}case Fn.IN_CELL:{dd(this,ge);break}case Fn.IN_SELECT:{vh(this,ge);break}case Fn.IN_SELECT_IN_TABLE:{Wa(this,ge);break}case Fn.IN_TEMPLATE:{ra(this,ge);break}case Fn.AFTER_BODY:{bs(this,ge);break}case Fn.IN_FRAMESET:{Wu(this,ge);break}case Fn.AFTER_FRAMESET:{fd(this,ge);break}case Fn.AFTER_AFTER_BODY:{we(this,ge);break}default:}}onEof(ge){switch(this.insertionMode){case Fn.INITIAL:{ho(this,ge);break}case Fn.BEFORE_HTML:{Ya(this,ge);break}case Fn.BEFORE_HEAD:{vo(this,ge);break}case Fn.IN_HEAD:{ss(this,ge);break}case Fn.IN_HEAD_NO_SCRIPT:{Pa(this,ge);break}case Fn.AFTER_HEAD:{Rs(this,ge);break}case Fn.IN_BODY:case Fn.IN_TABLE:case Fn.IN_CAPTION:case Fn.IN_COLUMN_GROUP:case Fn.IN_TABLE_BODY:case Fn.IN_ROW:case Fn.IN_CELL:case Fn.IN_SELECT:case Fn.IN_SELECT_IN_TABLE:{Sa(this,ge);break}case Fn.TEXT:{ju(this,ge);break}case Fn.IN_TABLE_TEXT:{$l(this,ge);break}case Fn.IN_TEMPLATE:{ms(this,ge);break}case Fn.AFTER_BODY:case Fn.IN_FRAMESET:case Fn.AFTER_FRAMESET:case Fn.AFTER_AFTER_BODY:case Fn.AFTER_AFTER_FRAMESET:{Kr(this,ge);break}default:}}onWhitespaceCharacter(ge){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ge.chars.charCodeAt(0)===mt.LINE_FEED)){if(ge.chars.length===1)return;ge.chars=ge.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(ge);return}switch(this.insertionMode){case Fn.IN_HEAD:case Fn.IN_HEAD_NO_SCRIPT:case Fn.AFTER_HEAD:case Fn.TEXT:case Fn.IN_COLUMN_GROUP:case Fn.IN_SELECT:case Fn.IN_SELECT_IN_TABLE:case Fn.IN_FRAMESET:case Fn.AFTER_FRAMESET:{this._insertCharacters(ge);break}case Fn.IN_BODY:case Fn.IN_CAPTION:case Fn.IN_CELL:case Fn.IN_TEMPLATE:case Fn.AFTER_BODY:case Fn.AFTER_AFTER_BODY:case Fn.AFTER_AFTER_FRAMESET:{Ds(this,ge);break}case Fn.IN_TABLE:case Fn.IN_TABLE_BODY:case Fn.IN_ROW:{qr(this,ge);break}case Fn.IN_TABLE_TEXT:{Gu(this,ge);break}default:}}}function js(ce,ge){let $e=ce.activeFormattingElements.getElementEntryInScopeWithTagName(ge.tagName);return $e?ce.openElements.contains($e.element)?ce.openElements.hasInScope(ge.tagID)||($e=null):(ce.activeFormattingElements.removeEntry($e),$e=null):na(ce,ge),$e}function as(ce,ge){let $e=null,Jt=ce.openElements.stackTop;for(;Jt>=0;Jt--){const Si=ce.openElements.items[Jt];if(Si===ge.element)break;ce._isSpecialElement(Si,ce.openElements.tagIDs[Jt])&&($e=Si)}return $e||(ce.openElements.shortenToLength(Math.max(Jt,0)),ce.activeFormattingElements.removeEntry(ge)),$e}function Fr(ce,ge,$e){let Jt=ge,Si=ce.openElements.getCommonAncestor(ge);for(let Qi=0,hr=Si;hr!==$e;Qi++,hr=Si){Si=ce.openElements.getCommonAncestor(hr);const lo=ce.activeFormattingElements.getElementEntry(hr),Ao=lo&&Qi>=Co;!lo||Ao?(Ao&&ce.activeFormattingElements.removeEntry(lo),ce.openElements.remove(hr)):(hr=la(ce,lo),Jt===ge&&(ce.activeFormattingElements.bookmark=lo),ce.treeAdapter.detachNode(Jt),ce.treeAdapter.appendChild(hr,Jt),Jt=hr)}return Jt}function la(ce,ge){const $e=ce.treeAdapter.getNamespaceURI(ge.element),Jt=ce.treeAdapter.createElement(ge.token.tagName,$e,ge.token.attrs);return ce.openElements.replace(ge.element,Jt),ge.element=Jt,Jt}function ua(ce,ge,$e){const Jt=ce.treeAdapter.getTagName(ge),Si=Ai(Jt);if(ce._isElementCausesFosterParenting(Si))ce._fosterParentElement($e);else{const Qi=ce.treeAdapter.getNamespaceURI(ge);Si===je.TEMPLATE&&Qi===zt.HTML&&(ge=ce.treeAdapter.getTemplateContent(ge)),ce.treeAdapter.appendChild(ge,$e)}}function Ua(ce,ge,$e){const Jt=ce.treeAdapter.getNamespaceURI($e.element),{token:Si}=$e,Qi=ce.treeAdapter.createElement(Si.tagName,Jt,Si.attrs);ce._adoptNodes(ge,Qi),ce.treeAdapter.appendChild(ge,Qi),ce.activeFormattingElements.insertElementAfterBookmark(Qi,Si),ce.activeFormattingElements.removeEntry($e),ce.openElements.remove($e.element),ce.openElements.insertAfter(ge,Qi,Si.tagID)}function ca(ce,ge){for(let $e=0;$e<fo;$e++){const Jt=js(ce,ge);if(!Jt)break;const Si=as(ce,Jt);if(!Si)break;ce.activeFormattingElements.bookmark=Jt;const Qi=Fr(ce,Si,Jt.element),hr=ce.openElements.getCommonAncestor(Jt.element);ce.treeAdapter.detachNode(Qi),hr&&ua(ce,hr,Qi),Ua(ce,Si,Jt)}}function Ea(ce,ge){ce._appendCommentNode(ge,ce.openElements.currentTmplContentOrNode)}function $i(ce,ge){ce._appendCommentNode(ge,ce.openElements.items[0])}function Mr(ce,ge){ce._appendCommentNode(ge,ce.document)}function Kr(ce,ge){if(ce.stopped=!0,ge.location){const $e=ce.fragmentContext?0:2;for(let Jt=ce.openElements.stackTop;Jt>=$e;Jt--)ce._setEndLocation(ce.openElements.items[Jt],ge);if(!ce.fragmentContext&&ce.openElements.stackTop>=0){const Jt=ce.openElements.items[0],Si=ce.treeAdapter.getNodeSourceCodeLocation(Jt);if(Si&&!Si.endTag&&(ce._setEndLocation(Jt,ge),ce.openElements.stackTop>=1)){const Qi=ce.openElements.items[1],hr=ce.treeAdapter.getNodeSourceCodeLocation(Qi);hr&&!hr.endTag&&ce._setEndLocation(Qi,ge)}}}}function uo(ce,ge){ce._setDocumentType(ge);const $e=ge.forceQuirks?Fi.QUIRKS:Gn(ge);Yn(ge)||ce._err(ge,Vt.nonConformingDoctype),ce.treeAdapter.setDocumentMode(ce.document,$e),ce.insertionMode=Fn.BEFORE_HTML}function ho(ce,ge){ce._err(ge,Vt.missingDoctype,!0),ce.treeAdapter.setDocumentMode(ce.document,Fi.QUIRKS),ce.insertionMode=Fn.BEFORE_HTML,ce._processToken(ge)}function jo(ce,ge){ge.tagID===je.HTML?(ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.BEFORE_HEAD):Ya(ce,ge)}function Dr(ce,ge){const $e=ge.tagID;($e===je.HTML||$e===je.HEAD||$e===je.BODY||$e===je.BR)&&Ya(ce,ge)}function Ya(ce,ge){ce._insertFakeRootElement(),ce.insertionMode=Fn.BEFORE_HEAD,ce._processToken(ge)}function va(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.HEAD:{ce._insertElement(ge,zt.HTML),ce.headElement=ce.openElements.current,ce.insertionMode=Fn.IN_HEAD;break}default:vo(ce,ge)}}function fa(ce,ge){const $e=ge.tagID;$e===je.HEAD||$e===je.BODY||$e===je.HTML||$e===je.BR?vo(ce,ge):ce._err(ge,Vt.endTagWithoutMatchingOpenElement)}function vo(ce,ge){ce._insertFakeElement(Cn.HEAD,je.HEAD),ce.headElement=ce.openElements.current,ce.insertionMode=Fn.IN_HEAD,ce._processToken(ge)}function Wo(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.BASE:case je.BASEFONT:case je.BGSOUND:case je.LINK:case je.META:{ce._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case je.TITLE:{ce._switchToTextParsing(ge,vr.RCDATA);break}case je.NOSCRIPT:{ce.options.scriptingEnabled?ce._switchToTextParsing(ge,vr.RAWTEXT):(ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_HEAD_NO_SCRIPT);break}case je.NOFRAMES:case je.STYLE:{ce._switchToTextParsing(ge,vr.RAWTEXT);break}case je.SCRIPT:{ce._switchToTextParsing(ge,vr.SCRIPT_DATA);break}case je.TEMPLATE:{ce._insertTemplate(ge),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1,ce.insertionMode=Fn.IN_TEMPLATE,ce.tmplInsertionModeStack.unshift(Fn.IN_TEMPLATE);break}case je.HEAD:{ce._err(ge,Vt.misplacedStartTagForHeadElement);break}default:ss(ce,ge)}}function gs(ce,ge){switch(ge.tagID){case je.HEAD:{ce.openElements.pop(),ce.insertionMode=Fn.AFTER_HEAD;break}case je.BODY:case je.BR:case je.HTML:{ss(ce,ge);break}case je.TEMPLATE:{Jo(ce,ge);break}default:ce._err(ge,Vt.endTagWithoutMatchingOpenElement)}}function Jo(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.generateImpliedEndTagsThoroughly(),ce.openElements.currentTagId!==je.TEMPLATE&&ce._err(ge,Vt.closingOfElementWithOpenChildElements),ce.openElements.popUntilTagNamePopped(je.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode()):ce._err(ge,Vt.endTagWithoutMatchingOpenElement)}function ss(ce,ge){ce.openElements.pop(),ce.insertionMode=Fn.AFTER_HEAD,ce._processToken(ge)}function Os(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.BASEFONT:case je.BGSOUND:case je.HEAD:case je.LINK:case je.META:case je.NOFRAMES:case je.STYLE:{Wo(ce,ge);break}case je.NOSCRIPT:{ce._err(ge,Vt.nestedNoscriptInHead);break}default:Pa(ce,ge)}}function ws(ce,ge){switch(ge.tagID){case je.NOSCRIPT:{ce.openElements.pop(),ce.insertionMode=Fn.IN_HEAD;break}case je.BR:{Pa(ce,ge);break}default:ce._err(ge,Vt.endTagWithoutMatchingOpenElement)}}function Pa(ce,ge){const $e=ge.type===Un.EOF?Vt.openElementsLeftAfterEof:Vt.disallowedContentInNoscriptInHead;ce._err(ge,$e),ce.openElements.pop(),ce.insertionMode=Fn.IN_HEAD,ce._processToken(ge)}function Al(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.BODY:{ce._insertElement(ge,zt.HTML),ce.framesetOk=!1,ce.insertionMode=Fn.IN_BODY;break}case je.FRAMESET:{ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_FRAMESET;break}case je.BASE:case je.BASEFONT:case je.BGSOUND:case je.LINK:case je.META:case je.NOFRAMES:case je.SCRIPT:case je.STYLE:case je.TEMPLATE:case je.TITLE:{ce._err(ge,Vt.abandonedHeadElementChild),ce.openElements.push(ce.headElement,je.HEAD),Wo(ce,ge),ce.openElements.remove(ce.headElement);break}case je.HEAD:{ce._err(ge,Vt.misplacedStartTagForHeadElement);break}default:Rs(ce,ge)}}function Uu(ce,ge){switch(ge.tagID){case je.BODY:case je.HTML:case je.BR:{Rs(ce,ge);break}case je.TEMPLATE:{Jo(ce,ge);break}default:ce._err(ge,Vt.endTagWithoutMatchingOpenElement)}}function Rs(ce,ge){ce._insertFakeElement(Cn.BODY,je.BODY),ce.insertionMode=Fn.IN_BODY,Js(ce,ge)}function Js(ce,ge){switch(ge.type){case Un.CHARACTER:{Ql(ce,ge);break}case Un.WHITESPACE_CHARACTER:{Ds(ce,ge);break}case Un.COMMENT:{Ea(ce,ge);break}case Un.START_TAG:{Go(ce,ge);break}case Un.END_TAG:{aa(ce,ge);break}case Un.EOF:{Sa(ce,ge);break}default:}}function Ds(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge)}function Ql(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge),ce.framesetOk=!1}function rc(ce,ge){ce.openElements.tmplCount===0&&ce.treeAdapter.adoptAttributes(ce.openElements.items[0],ge.attrs)}function oc(ce,ge){const $e=ce.openElements.tryPeekProperlyNestedBodyElement();$e&&ce.openElements.tmplCount===0&&(ce.framesetOk=!1,ce.treeAdapter.adoptAttributes($e,ge.attrs))}function Ia(ce,ge){const $e=ce.openElements.tryPeekProperlyNestedBodyElement();ce.framesetOk&&$e&&(ce.treeAdapter.detachNode($e),ce.openElements.popAllUpToHtmlElement(),ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_FRAMESET)}function Hu(ce,ge){ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._insertElement(ge,zt.HTML)}function ac(ce,ge){ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce.openElements.currentTagId!==void 0&&_i.has(ce.openElements.currentTagId)&&ce.openElements.pop(),ce._insertElement(ge,zt.HTML)}function cu(ce,ge){ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._insertElement(ge,zt.HTML),ce.skipNextNewLine=!0,ce.framesetOk=!1}function Pu(ce,ge){const $e=ce.openElements.tmplCount>0;(!ce.formElement||$e)&&(ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._insertElement(ge,zt.HTML),$e||(ce.formElement=ce.openElements.current))}function ls(ce,ge){ce.framesetOk=!1;const $e=ge.tagID;for(let Jt=ce.openElements.stackTop;Jt>=0;Jt--){const Si=ce.openElements.tagIDs[Jt];if($e===je.LI&&Si===je.LI||($e===je.DD||$e===je.DT)&&(Si===je.DD||Si===je.DT)){ce.openElements.generateImpliedEndTagsWithExclusion(Si),ce.openElements.popUntilTagNamePopped(Si);break}if(Si!==je.ADDRESS&&Si!==je.DIV&&Si!==je.P&&ce._isSpecialElement(ce.openElements.items[Jt],Si))break}ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._insertElement(ge,zt.HTML)}function Es(ce,ge){ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._insertElement(ge,zt.HTML),ce.tokenizer.state=vr.PLAINTEXT}function Va(ce,ge){ce.openElements.hasInScope(je.BUTTON)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(je.BUTTON)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML),ce.framesetOk=!1}function is(ce,ge){const $e=ce.activeFormattingElements.getElementEntryInScopeWithTagName(Cn.A);$e&&(ca(ce,ge),ce.openElements.remove($e.element),ce.activeFormattingElements.removeEntry($e)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function du(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function Cs(ce,ge){ce._reconstructActiveFormattingElements(),ce.openElements.hasInScope(je.NOBR)&&(ca(ce,ge),ce._reconstructActiveFormattingElements()),ce._insertElement(ge,zt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function $o(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1}function Zo(ce,ge){ce.treeAdapter.getDocumentMode(ce.document)!==Fi.QUIRKS&&ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._insertElement(ge,zt.HTML),ce.framesetOk=!1,ce.insertionMode=Fn.IN_TABLE}function Ro(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,zt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Ha(ce){const ge=si(ce,pi.TYPE);return ge!=null&&ge.toLowerCase()===Cr}function mr(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,zt.HTML),Ha(ge)||(ce.framesetOk=!1),ge.ackSelfClosing=!0}function Xa(ce,ge){ce._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0}function Qt(ce,ge){ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._appendElement(ge,zt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Ti(ce,ge){ge.tagName=Cn.IMG,ge.tagID=je.IMG,Ro(ce,ge)}function pl(ce,ge){ce._insertElement(ge,zt.HTML),ce.skipNextNewLine=!0,ce.tokenizer.state=vr.RCDATA,ce.originalInsertionMode=ce.insertionMode,ce.framesetOk=!1,ce.insertionMode=Fn.TEXT}function Jl(ce,ge){ce.openElements.hasInButtonScope(je.P)&&ce._closePElement(),ce._reconstructActiveFormattingElements(),ce.framesetOk=!1,ce._switchToTextParsing(ge,vr.RAWTEXT)}function Ma(ce,ge){ce.framesetOk=!1,ce._switchToTextParsing(ge,vr.RAWTEXT)}function Qa(ce,ge){ce._switchToTextParsing(ge,vr.RAWTEXT)}function qs(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML),ce.framesetOk=!1,ce.insertionMode=ce.insertionMode===Fn.IN_TABLE||ce.insertionMode===Fn.IN_CAPTION||ce.insertionMode===Fn.IN_TABLE_BODY||ce.insertionMode===Fn.IN_ROW||ce.insertionMode===Fn.IN_CELL?Fn.IN_SELECT_IN_TABLE:Fn.IN_SELECT}function gl(ce,ge){ce.openElements.currentTagId===je.OPTION&&ce.openElements.pop(),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML)}function zu(ce,ge){ce.openElements.hasInScope(je.RUBY)&&ce.openElements.generateImpliedEndTags(),ce._insertElement(ge,zt.HTML)}function ya(ce,ge){ce.openElements.hasInScope(je.RUBY)&&ce.openElements.generateImpliedEndTagsWithExclusion(je.RTC),ce._insertElement(ge,zt.HTML)}function no(ce,ge){ce._reconstructActiveFormattingElements(),zr(ge),yo(ge),ge.selfClosing?ce._appendElement(ge,zt.MATHML):ce._insertElement(ge,zt.MATHML),ge.ackSelfClosing=!0}function us(ce,ge){ce._reconstructActiveFormattingElements(),eo(ge),yo(ge),ge.selfClosing?ce._appendElement(ge,zt.SVG):ce._insertElement(ge,zt.SVG),ge.ackSelfClosing=!0}function Ls(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,zt.HTML)}function Go(ce,ge){switch(ge.tagID){case je.I:case je.S:case je.B:case je.U:case je.EM:case je.TT:case je.BIG:case je.CODE:case je.FONT:case je.SMALL:case je.STRIKE:case je.STRONG:{du(ce,ge);break}case je.A:{is(ce,ge);break}case je.H1:case je.H2:case je.H3:case je.H4:case je.H5:case je.H6:{ac(ce,ge);break}case je.P:case je.DL:case je.OL:case je.UL:case je.DIV:case je.DIR:case je.NAV:case je.MAIN:case je.MENU:case je.ASIDE:case je.CENTER:case je.FIGURE:case je.FOOTER:case je.HEADER:case je.HGROUP:case je.DIALOG:case je.DETAILS:case je.ADDRESS:case je.ARTICLE:case je.SEARCH:case je.SECTION:case je.SUMMARY:case je.FIELDSET:case je.BLOCKQUOTE:case je.FIGCAPTION:{Hu(ce,ge);break}case je.LI:case je.DD:case je.DT:{ls(ce,ge);break}case je.BR:case je.IMG:case je.WBR:case je.AREA:case je.EMBED:case je.KEYGEN:{Ro(ce,ge);break}case je.HR:{Qt(ce,ge);break}case je.RB:case je.RTC:{zu(ce,ge);break}case je.RT:case je.RP:{ya(ce,ge);break}case je.PRE:case je.LISTING:{cu(ce,ge);break}case je.XMP:{Jl(ce,ge);break}case je.SVG:{us(ce,ge);break}case je.HTML:{rc(ce,ge);break}case je.BASE:case je.LINK:case je.META:case je.STYLE:case je.TITLE:case je.SCRIPT:case je.BGSOUND:case je.BASEFONT:case je.TEMPLATE:{Wo(ce,ge);break}case je.BODY:{oc(ce,ge);break}case je.FORM:{Pu(ce,ge);break}case je.NOBR:{Cs(ce,ge);break}case je.MATH:{no(ce,ge);break}case je.TABLE:{Zo(ce,ge);break}case je.INPUT:{mr(ce,ge);break}case je.PARAM:case je.TRACK:case je.SOURCE:{Xa(ce,ge);break}case je.IMAGE:{Ti(ce,ge);break}case je.BUTTON:{Va(ce,ge);break}case je.APPLET:case je.OBJECT:case je.MARQUEE:{$o(ce,ge);break}case je.IFRAME:{Ma(ce,ge);break}case je.SELECT:{qs(ce,ge);break}case je.OPTION:case je.OPTGROUP:{gl(ce,ge);break}case je.NOEMBED:case je.NOFRAMES:{Qa(ce,ge);break}case je.FRAMESET:{Ia(ce,ge);break}case je.TEXTAREA:{pl(ce,ge);break}case je.NOSCRIPT:{ce.options.scriptingEnabled?Qa(ce,ge):Ls(ce,ge);break}case je.PLAINTEXT:{Es(ce,ge);break}case je.COL:case je.TH:case je.TD:case je.TR:case je.HEAD:case je.FRAME:case je.TBODY:case je.TFOOT:case je.THEAD:case je.CAPTION:case je.COLGROUP:break;default:Ls(ce,ge)}}function To(ce,ge){if(ce.openElements.hasInScope(je.BODY)&&(ce.insertionMode=Fn.AFTER_BODY,ce.options.sourceCodeLocationInfo)){const $e=ce.openElements.tryPeekProperlyNestedBodyElement();$e&&ce._setEndLocation($e,ge)}}function ba(ce,ge){ce.openElements.hasInScope(je.BODY)&&(ce.insertionMode=Fn.AFTER_BODY,bs(ce,ge))}function Fs(ce,ge){const $e=ge.tagID;ce.openElements.hasInScope($e)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped($e))}function sa(ce){const ge=ce.openElements.tmplCount>0,{formElement:$e}=ce;ge||(ce.formElement=null),($e||ge)&&ce.openElements.hasInScope(je.FORM)&&(ce.openElements.generateImpliedEndTags(),ge?ce.openElements.popUntilTagNamePopped(je.FORM):$e&&ce.openElements.remove($e))}function Gs(ce){ce.openElements.hasInButtonScope(je.P)||ce._insertFakeElement(Cn.P,je.P),ce._closePElement()}function Ja(ce){ce.openElements.hasInListItemScope(je.LI)&&(ce.openElements.generateImpliedEndTagsWithExclusion(je.LI),ce.openElements.popUntilTagNamePopped(je.LI))}function hu(ce,ge){const $e=ge.tagID;ce.openElements.hasInScope($e)&&(ce.openElements.generateImpliedEndTagsWithExclusion($e),ce.openElements.popUntilTagNamePopped($e))}function Ko(ce){ce.openElements.hasNumberedHeaderInScope()&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilNumberedHeaderPopped())}function cs(ce,ge){const $e=ge.tagID;ce.openElements.hasInScope($e)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped($e),ce.activeFormattingElements.clearToLastMarker())}function Bo(ce){ce._reconstructActiveFormattingElements(),ce._insertFakeElement(Cn.BR,je.BR),ce.openElements.pop(),ce.framesetOk=!1}function na(ce,ge){const $e=ge.tagName,Jt=ge.tagID;for(let Si=ce.openElements.stackTop;Si>0;Si--){const Qi=ce.openElements.items[Si],hr=ce.openElements.tagIDs[Si];if(Jt===hr&&(Jt!==je.UNKNOWN||ce.treeAdapter.getTagName(Qi)===$e)){ce.openElements.generateImpliedEndTagsWithExclusion(Jt),ce.openElements.stackTop>=Si&&ce.openElements.shortenToLength(Si);break}if(ce._isSpecialElement(Qi,hr))break}}function aa(ce,ge){switch(ge.tagID){case je.A:case je.B:case je.I:case je.S:case je.U:case je.EM:case je.TT:case je.BIG:case je.CODE:case je.FONT:case je.NOBR:case je.SMALL:case je.STRIKE:case je.STRONG:{ca(ce,ge);break}case je.P:{Gs(ce);break}case je.DL:case je.UL:case je.OL:case je.DIR:case je.DIV:case je.NAV:case je.PRE:case je.MAIN:case je.MENU:case je.ASIDE:case je.BUTTON:case je.CENTER:case je.FIGURE:case je.FOOTER:case je.HEADER:case je.HGROUP:case je.DIALOG:case je.ADDRESS:case je.ARTICLE:case je.DETAILS:case je.SEARCH:case je.SECTION:case je.SUMMARY:case je.LISTING:case je.FIELDSET:case je.BLOCKQUOTE:case je.FIGCAPTION:{Fs(ce,ge);break}case je.LI:{Ja(ce);break}case je.DD:case je.DT:{hu(ce,ge);break}case je.H1:case je.H2:case je.H3:case je.H4:case je.H5:case je.H6:{Ko(ce);break}case je.BR:{Bo(ce);break}case je.BODY:{To(ce,ge);break}case je.HTML:{ba(ce,ge);break}case je.FORM:{sa(ce);break}case je.APPLET:case je.OBJECT:case je.MARQUEE:{cs(ce,ge);break}case je.TEMPLATE:{Jo(ce,ge);break}default:na(ce,ge)}}function Sa(ce,ge){ce.tmplInsertionModeStack.length>0?ms(ce,ge):Kr(ce,ge)}function Lo(ce,ge){var $e;ge.tagID===je.SCRIPT&&(($e=ce.scriptHandler)===null||$e===void 0||$e.call(ce,ce.openElements.current)),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode}function ju(ce,ge){ce._err(ge,Vt.eofInElementThatCanContainOnlyText),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode,ce.onEof(ge)}function qr(ce,ge){if(ce.openElements.currentTagId!==void 0&&Do.has(ce.openElements.currentTagId))switch(ce.pendingCharacterTokens.length=0,ce.hasNonWhitespacePendingCharacterToken=!1,ce.originalInsertionMode=ce.insertionMode,ce.insertionMode=Fn.IN_TABLE_TEXT,ge.type){case Un.CHARACTER:{Ll(ce,ge);break}case Un.WHITESPACE_CHARACTER:{Gu(ce,ge);break}}else Ts(ce,ge)}function Qc(ce,ge){ce.openElements.clearBackToTableContext(),ce.activeFormattingElements.insertMarker(),ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_CAPTION}function Fo(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_COLUMN_GROUP}function Lc(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(Cn.COLGROUP,je.COLGROUP),ce.insertionMode=Fn.IN_COLUMN_GROUP,xa(ce,ge)}function Au(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_TABLE_BODY}function ql(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(Cn.TBODY,je.TBODY),ce.insertionMode=Fn.IN_TABLE_BODY,ml(ce,ge)}function Ic(ce,ge){ce.openElements.hasInTableScope(je.TABLE)&&(ce.openElements.popUntilTagNamePopped(je.TABLE),ce._resetInsertionMode(),ce._processStartTag(ge))}function Ec(ce,ge){Ha(ge)?ce._appendElement(ge,zt.HTML):Ts(ce,ge),ge.ackSelfClosing=!0}function Nl(ce,ge){!ce.formElement&&ce.openElements.tmplCount===0&&(ce._insertElement(ge,zt.HTML),ce.formElement=ce.openElements.current,ce.openElements.pop())}function kl(ce,ge){switch(ge.tagID){case je.TD:case je.TH:case je.TR:{ql(ce,ge);break}case je.STYLE:case je.SCRIPT:case je.TEMPLATE:{Wo(ce,ge);break}case je.COL:{Lc(ce,ge);break}case je.FORM:{Nl(ce,ge);break}case je.TABLE:{Ic(ce,ge);break}case je.TBODY:case je.TFOOT:case je.THEAD:{Au(ce,ge);break}case je.INPUT:{Ec(ce,ge);break}case je.CAPTION:{Qc(ce,ge);break}case je.COLGROUP:{Fo(ce,ge);break}default:Ts(ce,ge)}}function _o(ce,ge){switch(ge.tagID){case je.TABLE:{ce.openElements.hasInTableScope(je.TABLE)&&(ce.openElements.popUntilTagNamePopped(je.TABLE),ce._resetInsertionMode());break}case je.TEMPLATE:{Jo(ce,ge);break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:case je.TBODY:case je.TD:case je.TFOOT:case je.TH:case je.THEAD:case je.TR:break;default:Ts(ce,ge)}}function Ts(ce,ge){const $e=ce.fosterParentingEnabled;ce.fosterParentingEnabled=!0,Js(ce,ge),ce.fosterParentingEnabled=$e}function Gu(ce,ge){ce.pendingCharacterTokens.push(ge)}function Ll(ce,ge){ce.pendingCharacterTokens.push(ge),ce.hasNonWhitespacePendingCharacterToken=!0}function $l(ce,ge){let $e=0;if(ce.hasNonWhitespacePendingCharacterToken)for(;$e<ce.pendingCharacterTokens.length;$e++)Ts(ce,ce.pendingCharacterTokens[$e]);else for(;$e<ce.pendingCharacterTokens.length;$e++)ce._insertCharacters(ce.pendingCharacterTokens[$e]);ce.insertionMode=ce.originalInsertionMode,ce._processToken(ge)}const _l=new Set([je.CAPTION,je.COL,je.COLGROUP,je.TBODY,je.TD,je.TFOOT,je.TH,je.THEAD,je.TR]);function Io(ce,ge){const $e=ge.tagID;_l.has($e)?ce.openElements.hasInTableScope(je.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(je.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Fn.IN_TABLE,kl(ce,ge)):Go(ce,ge)}function Yo(ce,ge){const $e=ge.tagID;switch($e){case je.CAPTION:case je.TABLE:{ce.openElements.hasInTableScope(je.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(je.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Fn.IN_TABLE,$e===je.TABLE&&_o(ce,ge));break}case je.BODY:case je.COL:case je.COLGROUP:case je.HTML:case je.TBODY:case je.TD:case je.TFOOT:case je.TH:case je.THEAD:case je.TR:break;default:aa(ce,ge)}}function xa(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.COL:{ce._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case je.TEMPLATE:{Wo(ce,ge);break}default:qa(ce,ge)}}function ds(ce,ge){switch(ge.tagID){case je.COLGROUP:{ce.openElements.currentTagId===je.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE);break}case je.TEMPLATE:{Jo(ce,ge);break}case je.COL:break;default:qa(ce,ge)}}function qa(ce,ge){ce.openElements.currentTagId===je.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE,ce._processToken(ge))}function ml(ce,ge){switch(ge.tagID){case je.TR:{ce.openElements.clearBackToTableBodyContext(),ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_ROW;break}case je.TH:case je.TD:{ce.openElements.clearBackToTableBodyContext(),ce._insertFakeElement(Cn.TR,je.TR),ce.insertionMode=Fn.IN_ROW,yl(ce,ge);break}case je.CAPTION:case je.COL:case je.COLGROUP:case je.TBODY:case je.TFOOT:case je.THEAD:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE,kl(ce,ge));break}default:kl(ce,ge)}}function vl(ce,ge){const $e=ge.tagID;switch(ge.tagID){case je.TBODY:case je.TFOOT:case je.THEAD:{ce.openElements.hasInTableScope($e)&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE);break}case je.TABLE:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE,_o(ce,ge));break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:case je.TD:case je.TH:case je.TR:break;default:_o(ce,ge)}}function yl(ce,ge){switch(ge.tagID){case je.TH:case je.TD:{ce.openElements.clearBackToTableRowContext(),ce._insertElement(ge,zt.HTML),ce.insertionMode=Fn.IN_CELL,ce.activeFormattingElements.insertMarker();break}case je.CAPTION:case je.COL:case je.COLGROUP:case je.TBODY:case je.TFOOT:case je.THEAD:case je.TR:{ce.openElements.hasInTableScope(je.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE_BODY,ml(ce,ge));break}default:kl(ce,ge)}}function $s(ce,ge){switch(ge.tagID){case je.TR:{ce.openElements.hasInTableScope(je.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE_BODY);break}case je.TABLE:{ce.openElements.hasInTableScope(je.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE_BODY,vl(ce,ge));break}case je.TBODY:case je.TFOOT:case je.THEAD:{(ce.openElements.hasInTableScope(ge.tagID)||ce.openElements.hasInTableScope(je.TR))&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=Fn.IN_TABLE_BODY,vl(ce,ge));break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:case je.TD:case je.TH:break;default:_o(ce,ge)}}function Ul(ce,ge){const $e=ge.tagID;_l.has($e)?(ce.openElements.hasInTableScope(je.TD)||ce.openElements.hasInTableScope(je.TH))&&(ce._closeTableCell(),yl(ce,ge)):Go(ce,ge)}function dd(ce,ge){const $e=ge.tagID;switch($e){case je.TD:case je.TH:{ce.openElements.hasInTableScope($e)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped($e),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=Fn.IN_ROW);break}case je.TABLE:case je.TBODY:case je.TFOOT:case je.THEAD:case je.TR:{ce.openElements.hasInTableScope($e)&&(ce._closeTableCell(),$s(ce,ge));break}case je.BODY:case je.CAPTION:case je.COL:case je.COLGROUP:case je.HTML:break;default:aa(ce,ge)}}function mh(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.OPTION:{ce.openElements.currentTagId===je.OPTION&&ce.openElements.pop(),ce._insertElement(ge,zt.HTML);break}case je.OPTGROUP:{ce.openElements.currentTagId===je.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===je.OPTGROUP&&ce.openElements.pop(),ce._insertElement(ge,zt.HTML);break}case je.HR:{ce.openElements.currentTagId===je.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===je.OPTGROUP&&ce.openElements.pop(),ce._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case je.INPUT:case je.KEYGEN:case je.TEXTAREA:case je.SELECT:{ce.openElements.hasInSelectScope(je.SELECT)&&(ce.openElements.popUntilTagNamePopped(je.SELECT),ce._resetInsertionMode(),ge.tagID!==je.SELECT&&ce._processStartTag(ge));break}case je.SCRIPT:case je.TEMPLATE:{Wo(ce,ge);break}default:}}function vh(ce,ge){switch(ge.tagID){case je.OPTGROUP:{ce.openElements.stackTop>0&&ce.openElements.currentTagId===je.OPTION&&ce.openElements.tagIDs[ce.openElements.stackTop-1]===je.OPTGROUP&&ce.openElements.pop(),ce.openElements.currentTagId===je.OPTGROUP&&ce.openElements.pop();break}case je.OPTION:{ce.openElements.currentTagId===je.OPTION&&ce.openElements.pop();break}case je.SELECT:{ce.openElements.hasInSelectScope(je.SELECT)&&(ce.openElements.popUntilTagNamePopped(je.SELECT),ce._resetInsertionMode());break}case je.TEMPLATE:{Jo(ce,ge);break}default:}}function yh(ce,ge){const $e=ge.tagID;$e===je.CAPTION||$e===je.TABLE||$e===je.TBODY||$e===je.TFOOT||$e===je.THEAD||$e===je.TR||$e===je.TD||$e===je.TH?(ce.openElements.popUntilTagNamePopped(je.SELECT),ce._resetInsertionMode(),ce._processStartTag(ge)):mh(ce,ge)}function Wa(ce,ge){const $e=ge.tagID;$e===je.CAPTION||$e===je.TABLE||$e===je.TBODY||$e===je.TFOOT||$e===je.THEAD||$e===je.TR||$e===je.TD||$e===je.TH?ce.openElements.hasInTableScope($e)&&(ce.openElements.popUntilTagNamePopped(je.SELECT),ce._resetInsertionMode(),ce.onEndTag(ge)):vh(ce,ge)}function Vu(ce,ge){switch(ge.tagID){case je.BASE:case je.BASEFONT:case je.BGSOUND:case je.LINK:case je.META:case je.NOFRAMES:case je.SCRIPT:case je.STYLE:case je.TEMPLATE:case je.TITLE:{Wo(ce,ge);break}case je.CAPTION:case je.COLGROUP:case je.TBODY:case je.TFOOT:case je.THEAD:{ce.tmplInsertionModeStack[0]=Fn.IN_TABLE,ce.insertionMode=Fn.IN_TABLE,kl(ce,ge);break}case je.COL:{ce.tmplInsertionModeStack[0]=Fn.IN_COLUMN_GROUP,ce.insertionMode=Fn.IN_COLUMN_GROUP,xa(ce,ge);break}case je.TR:{ce.tmplInsertionModeStack[0]=Fn.IN_TABLE_BODY,ce.insertionMode=Fn.IN_TABLE_BODY,ml(ce,ge);break}case je.TD:case je.TH:{ce.tmplInsertionModeStack[0]=Fn.IN_ROW,ce.insertionMode=Fn.IN_ROW,yl(ce,ge);break}default:ce.tmplInsertionModeStack[0]=Fn.IN_BODY,ce.insertionMode=Fn.IN_BODY,Go(ce,ge)}}function ra(ce,ge){ge.tagID===je.TEMPLATE&&Jo(ce,ge)}function ms(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.popUntilTagNamePopped(je.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode(),ce.onEof(ge)):Kr(ce,ge)}function Ps(ce,ge){ge.tagID===je.HTML?Go(ce,ge):sc(ce,ge)}function bs(ce,ge){var $e;if(ge.tagID===je.HTML){if(ce.fragmentContext||(ce.insertionMode=Fn.AFTER_AFTER_BODY),ce.options.sourceCodeLocationInfo&&ce.openElements.tagIDs[0]===je.HTML){ce._setEndLocation(ce.openElements.items[0],ge);const Jt=ce.openElements.items[1];Jt&&!(!(($e=ce.treeAdapter.getNodeSourceCodeLocation(Jt))===null||$e===void 0)&&$e.endTag)&&ce._setEndLocation(Jt,ge)}}else sc(ce,ge)}function sc(ce,ge){ce.insertionMode=Fn.IN_BODY,Js(ce,ge)}function Is(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.FRAMESET:{ce._insertElement(ge,zt.HTML);break}case je.FRAME:{ce._appendElement(ge,zt.HTML),ge.ackSelfClosing=!0;break}case je.NOFRAMES:{Wo(ce,ge);break}default:}}function Wu(ce,ge){ge.tagID===je.FRAMESET&&!ce.openElements.isRootHtmlElementCurrent()&&(ce.openElements.pop(),!ce.fragmentContext&&ce.openElements.currentTagId!==je.FRAMESET&&(ce.insertionMode=Fn.AFTER_FRAMESET))}function hd(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.NOFRAMES:{Wo(ce,ge);break}default:}}function fd(ce,ge){ge.tagID===je.HTML&&(ce.insertionMode=Fn.AFTER_AFTER_FRAMESET)}function el(ce,ge){ge.tagID===je.HTML?Go(ce,ge):we(ce,ge)}function we(ce,ge){ce.insertionMode=Fn.IN_BODY,Js(ce,ge)}function Ze(ce,ge){switch(ge.tagID){case je.HTML:{Go(ce,ge);break}case je.NOFRAMES:{Wo(ce,ge);break}default:}}function et(ce,ge){ge.chars=bn,ce._insertCharacters(ge)}function ct(ce,ge){ce._insertCharacters(ge),ce.framesetOk=!1}function kt(ce){for(;ce.treeAdapter.getNamespaceURI(ce.openElements.current)!==zt.HTML&&ce.openElements.currentTagId!==void 0&&!ce._isIntegrationPoint(ce.openElements.currentTagId,ce.openElements.current);)ce.openElements.pop()}function Mt(ce,ge){if(wr(ge))kt(ce),ce._startTagOutsideForeignContent(ge);else{const $e=ce._getAdjustedCurrentElement(),Jt=ce.treeAdapter.getNamespaceURI($e);Jt===zt.MATHML?zr(ge):Jt===zt.SVG&&(xn(ge),eo(ge)),yo(ge),ge.selfClosing?ce._appendElement(ge,Jt):ce._insertElement(ge,Jt),ge.ackSelfClosing=!0}}function tn(ce,ge){if(ge.tagID===je.P||ge.tagID===je.BR){kt(ce),ce._endTagOutsideForeignContent(ge);return}for(let $e=ce.openElements.stackTop;$e>0;$e--){const Jt=ce.openElements.items[$e];if(ce.treeAdapter.getNamespaceURI(Jt)===zt.HTML){ce._endTagOutsideForeignContent(ge);break}const Si=ce.treeAdapter.getTagName(Jt);if(Si.toLowerCase()===ge.tagName){ge.tagName=Si,ce.openElements.shortenToLength($e);break}}}const En=/["$&'<>\u0080-\uFFFF]/g,vi=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),bi=String.prototype.codePointAt==null?(ce,ge)=>(ce.charCodeAt(ge)&64512)===55296?(ce.charCodeAt(ge)-55296)*1024+ce.charCodeAt(ge+1)-56320+65536:ce.charCodeAt(ge):(ce,ge)=>ce.codePointAt(ge);function Xn(ce){let ge="",$e=0,Jt;for(;(Jt=En.exec(ce))!==null;){const{index:Si}=Jt,Qi=ce.charCodeAt(Si),hr=vi.get(Qi);hr===void 0?(ge+=`${ce.substring($e,Si)}&#x${bi(ce,Si).toString(16)};`,$e=En.lastIndex+=+((Qi&64512)===55296)):(ge+=ce.substring($e,Si)+hr,$e=Si+1)}return ge+ce.substr($e)}const Ui=null;function Oi(ce,ge){return function(Jt){let Si,Qi=0,hr="";for(;Si=ce.exec(Jt);)Qi!==Si.index&&(hr+=Jt.substring(Qi,Si.index)),hr+=ge.get(Si[0].charCodeAt(0)),Qi=Si.index+1;return hr+Jt.substring(Qi)}}const ei=null,ro=Oi(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Eo=Oi(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),Mo=new Set([Cn.AREA,Cn.BASE,Cn.BASEFONT,Cn.BGSOUND,Cn.BR,Cn.COL,Cn.EMBED,Cn.FRAME,Cn.HR,Cn.IMG,Cn.INPUT,Cn.KEYGEN,Cn.LINK,Cn.META,Cn.PARAM,Cn.SOURCE,Cn.TRACK,Cn.WBR]);function jr(ce,ge){return ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML&&Mo.has(ge.treeAdapter.getTagName(ce))}const ao={treeAdapter:Hi,scriptingEnabled:!0};function po(ce,ge){const $e=Qo(Qo({},ao),ge);return jr(ce,$e)?"":Ca(ce,$e)}function wa(ce,ge){const $e=Qo(Qo({},ao),ge);return Pr(ce,$e)}function Ca(ce,ge){let $e="";const Jt=ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getTagName(ce)===$.TEMPLATE&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML?ge.treeAdapter.getTemplateContent(ce):ce,Si=ge.treeAdapter.getChildNodes(Jt);if(Si)for(const Qi of Si)$e+=Pr(Qi,ge);return $e}function Pr(ce,ge){return ge.treeAdapter.isElementNode(ce)?Aa(ce,ge):ge.treeAdapter.isTextNode(ce)?pa(ce,ge):ge.treeAdapter.isCommentNode(ce)?io(ce,ge):ge.treeAdapter.isDocumentTypeNode(ce)?tl(ce,ge):""}function Aa(ce,ge){const $e=ge.treeAdapter.getTagName(ce);return`<${$e}${$a(ce,ge)}>${jr(ce,ge)?"":`${Ca(ce,ge)}</${$e}>`}`}function $a(ce,{treeAdapter:ge}){let $e="";for(const Jt of ge.getAttrList(ce)){if($e+=" ",Jt.namespace)switch(Jt.namespace){case NS.XML:{$e+=`xml:${Jt.name}`;break}case NS.XMLNS:{Jt.name!=="xmlns"&&($e+="xmlns:"),$e+=Jt.name;break}case NS.XLINK:{$e+=`xlink:${Jt.name}`;break}default:$e+=`${Jt.prefix}:${Jt.name}`}else $e+=Jt.name;$e+=`="${escapeAttribute(Jt.value)}"`}return $e}function pa(ce,ge){const{treeAdapter:$e}=ge,Jt=$e.getTextNodeContent(ce),Si=$e.getParentNode(ce),Qi=Si&&$e.isElementNode(Si)&&$e.getTagName(Si);return Qi&&$e.getNamespaceURI(Si)===NS.HTML&&hasUnescapedText(Qi,ge.scriptingEnabled)?Jt:escapeText(Jt)}function io(ce,{treeAdapter:ge}){return`<!--${ge.getCommentNodeContent(ce)}-->`}function tl(ce,{treeAdapter:ge}){return`<!DOCTYPE ${ge.getDocumentTypeNodeName(ce)}>`}function Ra(ce,ge){return Parser.parse(ce,ge)}function ko(ce,ge,$e){typeof ce=="string"&&($e=ge,ge=ce,ce=null);const Jt=Parser.getFragmentParser(ce,$e);return Jt.tokenizer.write(ge,!0),Jt.getFragment()}var Po=ae(17970),ea=ae(10528);const Za=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Ms=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Vs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Il(ce,ge){const $e=pd(ce),Jt=ht("type",{handlers:{root:nl,element:Hl,text:Mi,comment:fu,doctype:Ws,raw:As},unknown:Ka}),Si={parser:$e?new Ga(Vs):Ga.getFragmentParser(void 0,Vs),handle(lo){Jt(lo,Si)},stitches:!1,options:ge||{}};Jt(ce,Si),zl(Si,(0,Po.Pk)());const Qi=$e?Si.parser.document:Si.parser.getFragment(),hr=Je(Qi,{file:Si.options.file});return Si.stitches&&(0,ea.Vn)(hr,"comment",function(lo,Ao,Wi){const Ur=lo;if(Ur.value.stitch&&Wi&&Ao!==void 0){const Oo=Wi.children;return Oo[Ao]=Ur.value.stitch,Ao}}),hr.type==="root"&&hr.children.length===1&&hr.children[0].type===ce.type?hr.children[0]:hr}function Ci(ce,ge){let $e=-1;if(ce)for(;++$e<ce.length;)ge.handle(ce[$e])}function nl(ce,ge){Ci(ce.children,ge)}function Hl(ce,ge){Nu(ce,ge),Ci(ce.children,ge),Zu(ce,ge)}function Mi(ce,ge){ge.parser.tokenizer.state>4&&(ge.parser.tokenizer.state=0);const $e={type:Un.CHARACTER,chars:ce.value,location:tu(ce)};zl(ge,(0,Po.Pk)(ce)),ge.parser.currentToken=$e,ge.parser._processToken(ge.parser.currentToken)}function Ws(ce,ge){const $e={type:Un.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tu(ce)};zl(ge,(0,Po.Pk)(ce)),ge.parser.currentToken=$e,ge.parser._processToken(ge.parser.currentToken)}function eu(ce,ge){ge.stitches=!0;const $e=lc(ce);if("children"in ce&&"children"in $e){const Jt=Il({type:"root",children:ce.children},ge.options);$e.children=Jt.children}fu({type:"comment",value:{stitch:$e}},ge)}function fu(ce,ge){const $e=ce.value,Jt={type:Un.COMMENT,data:$e,location:tu(ce)};zl(ge,(0,Po.Pk)(ce)),ge.parser.currentToken=Jt,ge.parser._processToken(ge.parser.currentToken)}function As(ce,ge){if(ge.parser.tokenizer.preprocessor.html="",ge.parser.tokenizer.preprocessor.pos=-1,ge.parser.tokenizer.preprocessor.lastGapPos=-2,ge.parser.tokenizer.preprocessor.gapStack=[],ge.parser.tokenizer.preprocessor.skipNextNewLine=!1,ge.parser.tokenizer.preprocessor.lastChunkWritten=!1,ge.parser.tokenizer.preprocessor.endOfChunkHit=!1,ge.parser.tokenizer.preprocessor.isEol=!1,Bs(ge,(0,Po.Pk)(ce)),ge.parser.tokenizer.write(ge.options.tagfilter?ce.value.replace(Za,"&lt;$1$2"):ce.value,!1),ge.parser.tokenizer._runParsingLoop(),ge.parser.tokenizer.state===72||ge.parser.tokenizer.state===78){ge.parser.tokenizer.preprocessor.lastChunkWritten=!0;const $e=ge.parser.tokenizer._consume();ge.parser.tokenizer._callState($e)}}function Ka(ce,ge){const $e=ce;if(ge.options.passThrough&&ge.options.passThrough.includes($e.type))eu($e,ge);else{let Jt="";throw Ms.has($e.type)&&(Jt=". 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 `"+$e.type+"` node"+Jt)}}function zl(ce,ge){Bs(ce,ge);const $e=ce.parser.tokenizer.currentCharacterToken;$e&&$e.location&&($e.location.endLine=ce.parser.tokenizer.preprocessor.line,$e.location.endCol=ce.parser.tokenizer.preprocessor.col+1,$e.location.endOffset=ce.parser.tokenizer.preprocessor.offset+1,ce.parser.currentToken=$e,ce.parser._processToken(ce.parser.currentToken)),ce.parser.tokenizer.paused=!1,ce.parser.tokenizer.inLoop=!1,ce.parser.tokenizer.active=!1,ce.parser.tokenizer.returnState=vr.DATA,ce.parser.tokenizer.charRefCode=-1,ce.parser.tokenizer.consumedAfterSnapshot=-1,ce.parser.tokenizer.currentLocation=null,ce.parser.tokenizer.currentCharacterToken=null,ce.parser.tokenizer.currentToken=null,ce.parser.tokenizer.currentAttr={name:"",value:""}}function Bs(ce,ge){if(ge&&ge.offset!==void 0){const $e={startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:-1,endCol:-1,endOffset:-1};ce.parser.tokenizer.preprocessor.lineStartPos=-ge.column+1,ce.parser.tokenizer.preprocessor.droppedBufferSize=ge.offset,ce.parser.tokenizer.preprocessor.line=ge.line,ce.parser.tokenizer.currentLocation=$e}}function Nu(ce,ge){const $e=ce.tagName.toLowerCase();if(ge.parser.tokenizer.state===vr.PLAINTEXT)return;zl(ge,(0,Po.Pk)(ce));const Jt=ge.parser.openElements.current;let Si="namespaceURI"in Jt?Jt.namespaceURI:Ke.t.html;Si===Ke.t.html&&$e==="svg"&&(Si=Ke.t.svg);const Qi=Ft(Af(Qo({},ce),{children:[]}),{space:Si===Ke.t.svg?"svg":"html"}),hr={type:Un.START_TAG,tagName:$e,tagID:Ai($e),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Qi?Qi.attrs:[],location:tu(ce)};ge.parser.currentToken=hr,ge.parser._processToken(ge.parser.currentToken),ge.parser.tokenizer.lastStartTagName=$e}function Zu(ce,ge){const $e=ce.tagName.toLowerCase();if(!ge.parser.tokenizer.inForeignNode&&un.includes($e)||ge.parser.tokenizer.state===vr.PLAINTEXT)return;zl(ge,(0,Po.rb)(ce));const Jt={type:Un.END_TAG,tagName:$e,tagID:Ai($e),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tu(ce)};ge.parser.currentToken=Jt,ge.parser._processToken(ge.parser.currentToken),$e===ge.parser.tokenizer.lastStartTagName&&(ge.parser.tokenizer.state===vr.RCDATA||ge.parser.tokenizer.state===vr.RAWTEXT||ge.parser.tokenizer.state===vr.SCRIPT_DATA)&&(ge.parser.tokenizer.state=vr.DATA)}function pd(ce){const ge=ce.type==="root"?ce.children[0]:ce;return!!(ge&&(ge.type==="doctype"||ge.type==="element"&&ge.tagName.toLowerCase()==="html"))}function tu(ce){const ge=(0,Po.Pk)(ce)||{line:void 0,column:void 0,offset:void 0},$e=(0,Po.rb)(ce)||{line:void 0,column:void 0,offset:void 0};return{startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:$e.line,endCol:$e.column,endOffset:$e.offset}}function lc(ce){return"children"in ce?(0,Ce.ZP)(Af(Qo({},ce),{children:[]})):(0,Ce.ZP)(ce)}function Hd(ce){return function(ge,$e){return Il(ge,Af(Qo({},ce),{file:$e}))}}},10787:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return Be}});function oe(gt){if(typeof gt!="string")throw new TypeError("Expected a string");return gt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ce=ae(2348),ke=ae(10502);function Ie(gt,Je,wt){const Fe=wt||{},te=(0,ke.O)(Fe.ignore||[]),ee=He(Je);let he=-1;for(;++he<ee.length;)(0,Ce.S4)(gt,"text",ue);function ue(me,Ee){let Pe=-1,Ne;for(;++Pe<Ee.length;){const We=Ee[Pe],tt=Ne?Ne.children:void 0;if(te(We,tt?tt.indexOf(We):void 0,Ne))return;Ne=We}if(Ne)return fe(me,Ee)}function fe(me,Ee){const Pe=Ee[Ee.length-1],Ne=ee[he][0],We=ee[he][1];let tt=0;const Qe=Pe.children.indexOf(me);let lt=!1,nt=[];Ne.lastIndex=0;let yt=Ne.exec(me.value);for(;yt;){const vt=yt.index,St={index:yt.index,input:yt.input,stack:[...Ee,me]};let Lt=We(...yt,St);if(typeof Lt=="string"&&(Lt=Lt.length>0?{type:"text",value:Lt}:void 0),Lt===!1?Ne.lastIndex=vt+1:(tt!==vt&&nt.push({type:"text",value:me.value.slice(tt,vt)}),Array.isArray(Lt)?nt.push(...Lt):Lt&&nt.push(Lt),tt=vt+yt[0].length,lt=!0),!Ne.global)break;yt=Ne.exec(me.value)}return lt?(tt<me.value.length&&nt.push({type:"text",value:me.value.slice(tt)}),Pe.children.splice(Qe,1,...nt)):nt=[me],Qe+nt.length}}function He(gt){const Je=[];if(!Array.isArray(gt))throw new TypeError("Expected find and replace tuple or list of tuples");const wt=!gt[0]||Array.isArray(gt[0])?gt:[gt];let Fe=-1;for(;++Fe<wt.length;){const te=wt[Fe];Je.push([Te(te[0]),ze(te[1])])}return Je}function Te(gt){return typeof gt=="string"?new RegExp(oe(gt),"g"):gt}function ze(gt){return typeof gt=="function"?gt:function(){return gt}}function ot(gt){Ie(gt,[/\r?\n|\r/g,Ke])}function Ke(){return{type:"break"}}function Be(){return function(gt){ot(gt)}}},30084:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return ee}});var oe=ae(87342);function Ce(he,ue){const fe=String(he);let me=fe.indexOf(ue),Ee=me,Pe=0,Ne=0;if(typeof ue!="string")throw new TypeError("Expected substring");for(;me!==-1;)me===Ee?++Pe>Ne&&(Ne=Pe):Pe=1,Ee=me+ue.length,me=fe.indexOf(ue,Ee);return Ne}function ke(){return{enter:{mathFlow:he,mathFlowFenceMeta:ue,mathText:Pe},exit:{mathFlow:Ee,mathFlowFence:me,mathFlowFenceMeta:fe,mathFlowValue:We,mathText:Ne,mathTextData:We}};function he(tt){const Ye={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Ye]}},tt)}function ue(){this.buffer()}function fe(){const tt=this.resume(),Ye=this.stack[this.stack.length-1];(0,oe.ok)(Ye.type==="math"),Ye.meta=tt}function me(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function Ee(tt){const Ye=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Qe=this.stack[this.stack.length-1];(0,oe.ok)(Qe.type==="math"),this.exit(tt),Qe.value=Ye;const lt=Qe.data.hChildren[0];(0,oe.ok)(lt.type==="element"),(0,oe.ok)(lt.tagName==="code"),lt.children.push({type:"text",value:Ye}),this.data.mathFlowInside=void 0}function Pe(tt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},tt),this.buffer()}function Ne(tt){const Ye=this.resume(),Qe=this.stack[this.stack.length-1];(0,oe.ok)(Qe.type==="inlineMath"),this.exit(tt),Qe.value=Ye,Qe.data.hChildren.push({type:"text",value:Ye})}function We(tt){this.config.enter.data.call(this,tt),this.config.exit.data.call(this,tt)}}function Ie(he){let ue=(he||{}).singleDollarTextMath;return ue==null&&(ue=!0),me.peek=Ee,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:ue?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:fe,inlineMath:me}};function fe(Pe,Ne,We,tt){const Ye=Pe.value||"",Qe=We.createTracker(tt),lt="$".repeat(Math.max(Ce(Ye,"$")+1,2)),nt=We.enter("mathFlow");let yt=Qe.move(lt);if(Pe.meta){const vt=We.enter("mathFlowMeta");yt+=Qe.move(We.safe(Pe.meta,Qo({after:`
`,before:yt,encode:["$"]},Qe.current()))),vt()}return yt+=Qe.move(`
`),Ye&&(yt+=Qe.move(Ye+`
`)),yt+=Qe.move(lt),nt(),yt}function me(Pe,Ne,We){let tt=Pe.value||"",Ye=1;for(ue||Ye++;new RegExp("(^|[^$])"+"\\$".repeat(Ye)+"([^$]|$)").test(tt);)Ye++;const Qe="$".repeat(Ye);/[^ \r\n]/.test(tt)&&(/^[ \r\n]/.test(tt)&&/[ \r\n]$/.test(tt)||/^\$|\$$/.test(tt))&&(tt=" "+tt+" ");let lt=-1;for(;++lt<We.unsafe.length;){const nt=We.unsafe[lt];if(!nt.atBreak)continue;const yt=We.compilePattern(nt);let vt;for(;vt=yt.exec(tt);){let St=vt.index;tt.codePointAt(St)===10&&tt.codePointAt(St-1)===13&&St--,tt=tt.slice(0,St)+" "+tt.slice(vt.index+1)}}return Qe+tt+Qe}function Ee(){return"$"}}var He=ae(26735),Te=ae(80722);const ze={tokenize:Ke,concrete:!0,name:"mathFlow"},ot={tokenize:Be,partial:!0};function Ke(he,ue,fe){const me=this,Ee=me.events[me.events.length-1],Pe=Ee&&Ee[1].type==="linePrefix"?Ee[2].sliceSerialize(Ee[1],!0).length:0;let Ne=0;return We;function We(Bt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),tt(Bt)}function tt(Bt){return Bt===36?(he.consume(Bt),Ne++,tt):Ne<2?fe(Bt):(he.exit("mathFlowFenceSequence"),(0,He.f)(he,Ye,"whitespace")(Bt))}function Ye(Bt){return Bt===null||(0,Te.Ch)(Bt)?lt(Bt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),Qe(Bt))}function Qe(Bt){return Bt===null||(0,Te.Ch)(Bt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),lt(Bt)):Bt===36?fe(Bt):(he.consume(Bt),Qe)}function lt(Bt){return he.exit("mathFlowFence"),me.interrupt?ue(Bt):he.attempt(ot,nt,Lt)(Bt)}function nt(Bt){return he.attempt({tokenize:jt,partial:!0},Lt,yt)(Bt)}function yt(Bt){return(Pe?(0,He.f)(he,vt,"linePrefix",Pe+1):vt)(Bt)}function vt(Bt){return Bt===null?Lt(Bt):(0,Te.Ch)(Bt)?he.attempt(ot,nt,Lt)(Bt):(he.enter("mathFlowValue"),St(Bt))}function St(Bt){return Bt===null||(0,Te.Ch)(Bt)?(he.exit("mathFlowValue"),vt(Bt)):(he.consume(Bt),St)}function Lt(Bt){return he.exit("mathFlow"),ue(Bt)}function jt(Bt,cn,pt){let ut=0;return(0,He.f)(Bt,at,"linePrefix",me.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function at(Tt){return Bt.enter("mathFlowFence"),Bt.enter("mathFlowFenceSequence"),Wt(Tt)}function Wt(Tt){return Tt===36?(ut++,Bt.consume(Tt),Wt):ut<Ne?pt(Tt):(Bt.exit("mathFlowFenceSequence"),(0,He.f)(Bt,rn,"whitespace")(Tt))}function rn(Tt){return Tt===null||(0,Te.Ch)(Tt)?(Bt.exit("mathFlowFence"),cn(Tt)):pt(Tt)}}}function Be(he,ue,fe){const me=this;return Ee;function Ee(Ne){return Ne===null?ue(Ne):(he.enter("lineEnding"),he.consume(Ne),he.exit("lineEnding"),Pe)}function Pe(Ne){return me.parser.lazy[me.now().line]?fe(Ne):ue(Ne)}}function gt(he){let fe=(he||{}).singleDollarTextMath;return fe==null&&(fe=!0),{tokenize:me,resolve:Je,previous:wt,name:"mathText"};function me(Ee,Pe,Ne){const We=this;let tt=0,Ye,Qe;return lt;function lt(Lt){return Ee.enter("mathText"),Ee.enter("mathTextSequence"),nt(Lt)}function nt(Lt){return Lt===36?(Ee.consume(Lt),tt++,nt):tt<2&&!fe?Ne(Lt):(Ee.exit("mathTextSequence"),yt(Lt))}function yt(Lt){return Lt===null?Ne(Lt):Lt===36?(Qe=Ee.enter("mathTextSequence"),Ye=0,St(Lt)):Lt===32?(Ee.enter("space"),Ee.consume(Lt),Ee.exit("space"),yt):(0,Te.Ch)(Lt)?(Ee.enter("lineEnding"),Ee.consume(Lt),Ee.exit("lineEnding"),yt):(Ee.enter("mathTextData"),vt(Lt))}function vt(Lt){return Lt===null||Lt===32||Lt===36||(0,Te.Ch)(Lt)?(Ee.exit("mathTextData"),yt(Lt)):(Ee.consume(Lt),vt)}function St(Lt){return Lt===36?(Ee.consume(Lt),Ye++,St):Ye===tt?(Ee.exit("mathTextSequence"),Ee.exit("mathText"),Pe(Lt)):(Qe.type="mathTextData",vt(Lt))}}}function Je(he){let ue=he.length-4,fe=3,me,Ee;if((he[fe][1].type==="lineEnding"||he[fe][1].type==="space")&&(he[ue][1].type==="lineEnding"||he[ue][1].type==="space")){for(me=fe;++me<ue;)if(he[me][1].type==="mathTextData"){he[ue][1].type="mathTextPadding",he[fe][1].type="mathTextPadding",fe+=2,ue-=2;break}}for(me=fe-1,ue++;++me<=ue;)Ee===void 0?me!==ue&&he[me][1].type!=="lineEnding"&&(Ee=me):(me===ue||he[me][1].type==="lineEnding")&&(he[Ee][1].type="mathTextData",me!==Ee+2&&(he[Ee][1].end=he[me-1][1].end,he.splice(Ee+2,me-Ee-2),ue-=me-Ee-2,me=Ee+2),Ee=void 0);return he}function wt(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fe(he){return{flow:{36:ze},text:{36:gt(he)}}}const te={};function ee(he){const ue=this,fe=he||te,me=ue.data(),Ee=me.micromarkExtensions||(me.micromarkExtensions=[]),Pe=me.fromMarkdownExtensions||(me.fromMarkdownExtensions=[]),Ne=me.toMarkdownExtensions||(me.toMarkdownExtensions=[]);Ee.push(Fe(fe)),Pe.push(ke()),Ne.push(Ie(fe))}},16722:function(_e,be,ae){"use strict";ae.d(be,{Z:function(){return ot}});const oe=Ke=>typeof Ke=="object"&&Ke!=null&&Ke.nodeType===1,Ce=(Ke,Be)=>(!Be||Ke!=="hidden")&&Ke!=="visible"&&Ke!=="clip",ke=(Ke,Be)=>{if(Ke.clientHeight<Ke.scrollHeight||Ke.clientWidth<Ke.scrollWidth){const gt=getComputedStyle(Ke,null);return Ce(gt.overflowY,Be)||Ce(gt.overflowX,Be)||(Je=>{const wt=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(te){return null}})(Je);return!!wt&&(wt.clientHeight<Je.scrollHeight||wt.clientWidth<Je.scrollWidth)})(Ke)}return!1},Ie=(Ke,Be,gt,Je,wt,Fe,te,ee)=>Fe<Ke&&te>Be||Fe>Ke&&te<Be?0:Fe<=Ke&&ee<=gt||te>=Be&&ee>=gt?Fe-Ke-Je:te>Be&&ee<gt||Fe<Ke&&ee>gt?te-Be+wt:0,He=Ke=>{const Be=Ke.parentElement;return Be==null?Ke.getRootNode().host||null:Be},Te=(Ke,Be)=>{var gt,Je,wt,Fe;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:he,boundary:ue,skipOverflowHiddenElements:fe}=Be,me=typeof ue=="function"?ue:rn=>rn!==ue;if(!oe(Ke))throw new TypeError("Invalid target");const Ee=document.scrollingElement||document.documentElement,Pe=[];let Ne=Ke;for(;oe(Ne)&&me(Ne);){if(Ne=He(Ne),Ne===Ee){Pe.push(Ne);break}Ne!=null&&Ne===document.body&&ke(Ne)&&!ke(document.documentElement)||Ne!=null&&ke(Ne,fe)&&Pe.push(Ne)}const We=(Je=(gt=window.visualViewport)==null?void 0:gt.width)!=null?Je:innerWidth,tt=(Fe=(wt=window.visualViewport)==null?void 0:wt.height)!=null?Fe:innerHeight,{scrollX:Ye,scrollY:Qe}=window,{height:lt,width:nt,top:yt,right:vt,bottom:St,left:Lt}=Ke.getBoundingClientRect(),{top:jt,right:Bt,bottom:cn,left:pt}=(rn=>{const Tt=window.getComputedStyle(rn);return{top:parseFloat(Tt.scrollMarginTop)||0,right:parseFloat(Tt.scrollMarginRight)||0,bottom:parseFloat(Tt.scrollMarginBottom)||0,left:parseFloat(Tt.scrollMarginLeft)||0}})(Ke);let ut=ee==="start"||ee==="nearest"?yt-jt:ee==="end"?St+cn:yt+lt/2-jt+cn,at=he==="center"?Lt+nt/2-pt+Bt:he==="end"?vt+Bt:Lt-pt;const Wt=[];for(let rn=0;rn<Pe.length;rn++){const Tt=Pe[rn],{height:Xt,width:nn,top:Nn,right:Rt,bottom:At,left:Zt}=Tt.getBoundingClientRect();if(te==="if-needed"&&yt>=0&&Lt>=0&&St<=tt&&vt<=We&&(Tt===Ee&&!ke(Tt)||yt>=Nn&&St<=At&&Lt>=Zt&&vt<=Rt))return Wt;const In=getComputedStyle(Tt),Dn=parseInt(In.borderLeftWidth,10),qe=parseInt(In.borderTopWidth,10),Oe=parseInt(In.borderRightWidth,10),Le=parseInt(In.borderBottomWidth,10);let Ge=0,it=0;const De="offsetWidth"in Tt?Tt.offsetWidth-Tt.clientWidth-Dn-Oe:0,ht="offsetHeight"in Tt?Tt.offsetHeight-Tt.clientHeight-qe-Le:0,on="offsetWidth"in Tt?Tt.offsetWidth===0?0:nn/Tt.offsetWidth:0,An="offsetHeight"in Tt?Tt.offsetHeight===0?0:Xt/Tt.offsetHeight:0;if(Ee===Tt)Ge=ee==="start"?ut:ee==="end"?ut-tt:ee==="nearest"?Ie(Qe,Qe+tt,tt,qe,Le,Qe+ut,Qe+ut+lt,lt):ut-tt/2,it=he==="start"?at:he==="center"?at-We/2:he==="end"?at-We:Ie(Ye,Ye+We,We,Dn,Oe,Ye+at,Ye+at+nt,nt),Ge=Math.max(0,Ge+Qe),it=Math.max(0,it+Ye);else{Ge=ee==="start"?ut-Nn-qe:ee==="end"?ut-At+Le+ht:ee==="nearest"?Ie(Nn,At,Xt,qe,Le+ht,ut,ut+lt,lt):ut-(Nn+Xt/2)+ht/2,it=he==="start"?at-Zt-Dn:he==="center"?at-(Zt+nn/2)+De/2:he==="end"?at-Rt+Oe+De:Ie(Zt,Rt,nn,Dn,Oe+De,at,at+nt,nt);const{scrollLeft:Zn,scrollTop:Ft}=Tt;Ge=An===0?0:Math.max(0,Math.min(Ft+Ge/An,Tt.scrollHeight-Xt/An+ht)),it=on===0?0:Math.max(0,Math.min(Zn+it/on,Tt.scrollWidth-nn/on+De)),ut+=Ft-Ge,at+=Zn-it}Wt.push({el:Tt,top:Ge,left:it})}return Wt},ze=Ke=>Ke===!1?{block:"end",inline:"nearest"}:(Be=>Be===Object(Be)&&Object.keys(Be).length!==0)(Ke)?Ke:{block:"start",inline:"nearest"};function ot(Ke,Be){if(!Ke.isConnected||!(wt=>{let Fe=wt;for(;Fe&&Fe.parentNode;){if(Fe.parentNode===document)return!0;Fe=Fe.parentNode instanceof ShadowRoot?Fe.parentNode.host:Fe.parentNode}return!1})(Ke))return;const gt=(wt=>{const Fe=window.getComputedStyle(wt);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Ke);if((wt=>typeof wt=="object"&&typeof wt.behavior=="function")(Be))return Be.behavior(Te(Ke,Be));const Je=typeof Be=="boolean"||Be==null?void 0:Be.behavior;for(const{el:wt,top:Fe,left:te}of Te(Ke,ze(Be))){const ee=Fe-gt.top+gt.bottom,he=te-gt.left+gt.right;wt.scroll({top:ee,left:he,behavior:Je})}}},71523:function(_e,be,ae){"use strict";ae.d(be,{P:function(){return Ce},Q:function(){return oe}});function oe(ke){const Ie=String(ke||"").trim();return Ie?Ie.split(/[ \t\n\r\f]+/g):[]}function Ce(ke){return ke.join(" ").trim()}},10502:function(_e,be,ae){"use strict";ae.d(be,{O:function(){return Ce}});const oe=function(Ke,Be,gt,Je,wt){const Fe=Ce(Be);if(gt!=null&&(typeof gt!="number"||gt<0||gt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(Je!=null&&(!oe(Je)||!Je.children))throw new Error("Expected parent node");if(Je==null!=(gt==null))throw new Error("Expected both parent and index");return ot(Ke)?Fe.call(wt,Ke,gt,Je):!1},Ce=function(Ke){if(Ke==null)return ze;if(typeof Ke=="function")return Te(Ke);if(typeof Ke=="object")return Array.isArray(Ke)?ke(Ke):Ie(Ke);if(typeof Ke=="string")return He(Ke);throw new Error("Expected function, string, or object as test")};function ke(Ke){const Be=[];let gt=-1;for(;++gt<Ke.length;)Be[gt]=Ce(Ke[gt]);return Te(Je);function Je(...wt){let Fe=-1;for(;++Fe<Be.length;)if(Be[Fe].apply(this,wt))return!0;return!1}}function Ie(Ke){const Be=Ke;return Te(gt);function gt(Je){const wt=Je;let Fe;for(Fe in Ke)if(wt[Fe]!==Be[Fe])return!1;return!0}}function He(Ke){return Te(Be);function Be(gt){return gt&&gt.type===Ke}}function Te(Ke){return Be;function Be(gt,Je,wt){return!!(ot(gt)&&Ke.call(this,gt,typeof Je=="number"?Je:void 0,wt||void 0))}}function ze(){return!0}function ot(Ke){return Ke!==null&&typeof Ke=="object"&&"type"in Ke}},17970:function(_e,be,ae){"use strict";ae.d(be,{FK:function(){return Ie},Pk:function(){return Ce},rb:function(){return oe}});const oe=ke("end"),Ce=ke("start");function ke(He){return Te;function Te(ze){const ot=ze&&ze.position&&ze.position[He]||{};if(typeof ot.line=="number"&&ot.line>0&&typeof ot.column=="number"&&ot.column>0)return{line:ot.line,column:ot.column,offset:typeof ot.offset=="number"&&ot.offset>-1?ot.offset:void 0}}}function Ie(He){const Te=Ce(He),ze=oe(He);if(Te&&ze)return{start:Te,end:ze}}},2348:function(_e,be,ae){"use strict";ae.d(be,{AM:function(){return Te},S4:function(){return ze}});var oe=ae(10502);function Ce(Ke){return Ke}const ke=[],Ie=!0,He=!1,Te="skip";function ze(Ke,Be,gt,Je){let wt;typeof Be=="function"&&typeof gt!="function"?(Je=gt,gt=Be):wt=Be;const Fe=(0,oe.O)(wt),te=Je?-1:1;ee(Ke,void 0,[])();function ee(he,ue,fe){const me=he&&typeof he=="object"?he:{};if(typeof me.type=="string"){const Pe=typeof me.tagName=="string"?me.tagName:typeof me.name=="string"?me.name:void 0;Object.defineProperty(Ee,"name",{value:"node ("+(he.type+(Pe?"<"+Pe+">":""))+")"})}return Ee;function Ee(){let Pe=ke,Ne,We,tt;if((!Be||Fe(he,ue,fe[fe.length-1]||void 0))&&(Pe=ot(gt(he,fe)),Pe[0]===He))return Pe;if("children"in he&&he.children){const Ye=he;if(Ye.children&&Pe[0]!==Te)for(We=(Je?Ye.children.length:-1)+te,tt=fe.concat(Ye);We>-1&&We<Ye.children.length;){const Qe=Ye.children[We];if(Ne=ee(Qe,We,tt)(),Ne[0]===He)return Ne;We=typeof Ne[1]=="number"?Ne[1]:We+te}}return Pe}}}function ot(Ke){return Array.isArray(Ke)?Ke:typeof Ke=="number"?[Ie,Ke]:Ke==null?ke:[Ke]}},10528:function(_e,be,ae){"use strict";ae.d(be,{Vn:function(){return Ce}});var oe=ae(2348);function Ce(ke,Ie,He,Te){let ze,ot,Ke;typeof Ie=="function"&&typeof He!="function"?(ot=void 0,Ke=Ie,ze=He):(ot=Ie,Ke=He,ze=Te),(0,oe.S4)(ke,ot,Be,ze);function Be(gt,Je){const wt=Je[Je.length-1],Fe=wt?wt.children.indexOf(gt):void 0;return Ke(gt,Fe,wt)}}},43309:function(_e,be,ae){"use strict";ae.d(be,{t:function(){return oe}});const oe={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(_e){"use strict";_e.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(_e){"use strict";_e.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"}')}}]);
}());