|
|
!(function(){var GE=Object.defineProperty,jE=Object.defineProperties;var VE=Object.getOwnPropertyDescriptors;var Pv=Object.getOwnPropertySymbols;var nE=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable;var aS=Math.pow,tE=(We,Ee,ae)=>Ee in We?GE(We,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):We[Ee]=ae,xa=(We,Ee)=>{for(var ae in Ee||(Ee={}))nE.call(Ee,ae)&&tE(We,ae,Ee[ae]);if(Pv)for(var ae of Pv(Ee))rE.call(Ee,ae)&&tE(We,ae,Ee[ae]);return We},Zp=(We,Ee)=>jE(We,VE(Ee));var iE=(We,Ee)=>{var ae={};for(var oe in We)nE.call(We,oe)&&Ee.indexOf(oe)<0&&(ae[oe]=We[oe]);if(We!=null&&Pv)for(var oe of Pv(We))Ee.indexOf(oe)<0&&rE.call(We,oe)&&(ae[oe]=We[oe]);return ae};var sS=(We,Ee,ae)=>new Promise((oe,Pe)=>{var ke=Te=>{try{je(ae.next(Te))}catch(Ge){Pe(Ge)}},De=Te=>{try{je(ae.throw(Te))}catch(Ge){Pe(Ge)}},je=Te=>Te.done?oe(Te.value):Promise.resolve(Te.value).then(ke,De);je((ae=ae.apply(We,Ee)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[6679],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(We,Ee){"use strict";Ee.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},8423:function(We,Ee){"use strict";Ee.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"}},2397:function(We,Ee){"use strict";Ee.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},57149:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=Object.defineProperty,ke=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(Ke,He,yt)=>He in Ke?Pe(Ke,He,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Ke[He]=yt,Ge=(Ke,He)=>{for(var yt in He||(He={}))De.call(He,yt)&&Te(Ke,yt,He[yt]);if(ke)for(var yt of ke(He))je.call(He,yt)&&Te(Ke,yt,He[yt]);return Ke};const lt=Ke=>React.createElement("svg",Ge({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Ee.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},61250:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=Object.defineProperty,ke=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(Ke,He,yt)=>He in Ke?Pe(Ke,He,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Ke[He]=yt,Ge=(Ke,He)=>{for(var yt in He||(He={}))De.call(He,yt)&&Te(Ke,yt,He[yt]);if(ke)for(var yt of ke(He))je.call(He,yt)&&Te(Ke,yt,He[yt]);return Ke};const lt=Ke=>React.createElement("svg",Ge({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Ee.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},63720:function(){"use strict";function We(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(We.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(We.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(We.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(We.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 We))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 Ee=[];function ae(Fe,te){var ee=Ee.pop();return ee===void 0?new go.Point(Fe,te):(ee.x=Fe,ee.y=te,ee)}function oe(){var Fe=Ee.pop();return Fe===void 0?new go.Point:Fe}function Pe(Fe){Ee.push(Fe)}function ke(Fe,te,ee,he,ue,fe,me,be,Ae){Ae||(Ae=new go.Point);var Ie=Fe-ee,Xe=ue-me,nt=NaN,Je=NaN;if(Ie===0)if(Xe===0)Fe===ee&&(nt=Fe,Je=te);else{var st=(fe-be)/Xe,gt=fe-st*ue;nt=Fe,Je=st*nt+gt}else if(Xe===0){var rt=(te-he)/Ie,mt=te-rt*Fe;nt=ue,Je=rt*nt+mt}else{var rt=(te-he)/Ie,st=(fe-be)/Xe,mt=te-rt*Fe,gt=fe-st*ue;nt=(gt-mt)/(rt-st),Je=rt*nt+mt}return Ae.x=nt,Ae.y=Je,Ae}function De(Fe,te,ee,he,ue,fe,me,be,Ae,Ie,Xe,nt,Je,st){var gt=1-Ae,rt=Ae,mt=Fe*gt+ee*rt,xt=te*gt+he*rt,Tt=ee*gt+ue*rt,zt=he*gt+fe*rt,Qt=ue*gt+me*rt,Kt=fe*gt+be*rt,Cn=mt*gt+Tt*rt,St=xt*gt+zt*rt,pt=Tt*gt+Qt*rt,ct=zt*gt+Kt*rt,qt=Cn*gt+pt*rt,fn=St*gt+ct*rt;Ie.x=mt,Ie.y=xt,Xe.x=Cn,Xe.y=St,nt.x=qt,nt.y=fn,Je.x=pt,Je.y=ct,st.x=Qt,st.y=Kt}var je=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),Ge=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new We("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*Ge,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=je,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,Ge*te,0,te,(1-Ge)*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,Ge*ee,(1-Ge)*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,Ge*ee,Ge*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-Ge)*te,0,0,(1-Ge)*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 We("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 We("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 We("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 We("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 We("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 lt=[];function Ke(){var Fe=lt.pop();return Fe===void 0?[]:Fe}function He(Fe){Fe.length=0,lt.push(Fe)}function yt(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 $e(Fe){var te=Mt(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 He(te),ee}function Mt(Fe){for(var te=yt(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 be=te[me],Ae=te[me+1],Ie=te[(he+me-1)%ue],Xe=te[(he+me+fe)%ue];ee[me*2]=be,ee[me*2+1]=ke(be.x,be.y,Ie.x,Ie.y,Ae.x,Ae.y,Xe.x,Xe.y,new go.Point)}return ee[ee.length]=ee[0],He(te),ee}go.Shape.defineFigureGenerator("Pentagon",function(Fe,te,ee){var he=yt(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()),He(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=yt(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()),He(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=yt(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()),He(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=yt(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()),He(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=yt(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()),He(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=yt(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()),He(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=yt(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()),He(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=Mt(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()),He(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=Mt(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()),He(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=Mt(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()),He(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=Mt(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()),He(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=Mt(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()),He(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=Mt(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()),He(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=$e(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(),He(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=$e(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(),He(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=$e(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(),He(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=$e(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(),He(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=$e(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(),He(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=$e(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(),He(he),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.setFigureParameter("FramedRectangle",0,new We("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new We("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 We("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 be=Math.max(ue-he,0);return be>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+be,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ue,ue,be,be).close())),fe.spot1=je,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 We("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new We("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,be=Math.min(te,ee)/2;return new go.Geometry().add(new go.PathFigure(be,be).add(new go.PathSegment(go.PathSegment.Arc,fe,me,be,be,be,be).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Fe,te,ee){var he=Ge/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 We("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 We("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 We("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,be=Math.atan2(ee,te),Ae=he-Math.min(Math.cos(be)*he/2,fe),Ie=he-Math.min(Math.sin(be)*he/2,me),ue=new go.Geometry,Xe=new go.PathFigure(Ae,0,!0);return ue.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,fe,.2*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,te-Ae,0)),Xe.add(new go.PathSegment(go.PathSegment.Line,te,Ie)),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),Xe.add(new go.PathSegment(go.PathSegment.Line,te,ee-Ie)),Xe.add(new go.PathSegment(go.PathSegment.Line,te-Ae,ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,fe,.8*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,Ae,ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ie)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,Ie).close()),ue}}),go.Shape.setFigureParameter("ThinX",0,new We("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 We("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 We("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,Ge*te,0,te,(.5-Ge/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,te,(.5+Ge/2)*ee,Ge*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,be=0,Ae=fe*Ge;return ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+fe+be)*ee,(.5-fe+me)*te,(.5+Ae+be)*ee,(.5-Ae+me)*te,(.5+fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+fe+me)*te,(.5+be)*ee,(.5+Ae+me)*te,(.5+fe+be)*ee,(.5+fe+me)*te,(.5+Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+be)*ee,(1-.5+fe+me)*te,(.5-Ae+be)*ee,(.5+Ae+me)*te,(.5-fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ee,(.5-Ae+me)*te,(.5-fe+be)*ee,(.5-fe+me+.05)*te,(.5-Ae+be-.02)*ee)),fe=.2,me=0,be=-.3,Ae=fe*Ge,ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+fe+me)*te,(.5+be)*ee,(.5+Ae+me)*te,(.5+fe+be)*ee,(.5+fe+me)*te,(.5+Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+be)*ee,(1-.5+fe+me)*te,(.5-Ae+be)*ee,(.5+Ae+me)*te,(.5-fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+me)*te,(.5+be)*ee,(.5-Ae+me)*te,(.5-fe+be)*ee,(.5-fe+me)*te,(.5-Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ae+me)*te,(.5+fe+be)*ee,(.5-fe+me)*te,(.5+Ae+be)*ee,(.5-Ae+me)*te,(.5+fe+be)*ee)),fe=.2,me=-.3,be=0,Ae=fe*Ge,ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-fe+be)*ee,(1-.5+fe+me-.05)*te,(.5-Ae+be-.02)*ee,(.5+Ae+me)*te,(.5-fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+me)*te,(.5+be)*ee,(.5-Ae+me)*te,(.5-fe+be)*ee,(.5-fe+me)*te,(.5-Ae+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+fe+be)*ee,(.5-fe+me)*te,(.5+Ae+be)*ee,(.5-Ae+me)*te,(.5+fe+be)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ee,(.5+Ae+me)*te,(.5+fe+be)*ee,(.5+fe+me)*te,(.5+Ae+be)*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,be=.25;return ue.add(new go.PathSegment(go.PathSegment.Move,(me+fe)*te,be*ee)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ee*be,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)),be=.75,ue=new go.PathFigure((me+fe)*te,be*ee,!0),he.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ee*be,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=Ge*.5,fe=.5,me=.5,be=.5,Ae=new go.PathFigure(me*te,(be-fe)*ee);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),fe=.4,ue=Ge*.4;var Ie=oe(),Xe=oe(),nt=oe(),Je=oe();De(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.42,Ie,Xe,nt,Je,Je);var st=oe(),gt=oe(),rt=oe();De(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.58,Je,Je,rt,st,gt);var mt=oe(),xt=oe(),Tt=oe();De(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.42,mt,xt,Tt,Je,Je);var zt=oe(),Qt=oe(),Kt=oe();return De(me,be+fe,me-ue,be+fe,me-fe,be+ue,me-fe,be,.58,Je,Je,Kt,zt,Qt),Ae.add(new go.PathSegment(go.PathSegment.Move,Kt.x*te,Kt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,zt.x*te,zt.y*ee,Qt.x*te,Qt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*te,nt.y*ee,Ie.x*te,Ie.y*ee,Xe.x*te,Xe.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,Kt.x*te,Kt.y*ee).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,Tt.x*te,Tt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,rt.x*te,rt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,st.x*te,st.y*ee,gt.x*te,gt.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*te,Tt.y*ee,mt.x*te,mt.y*ee,xt.x*te,xt.y*ee).close()),Pe(Ie),Pe(Xe),Pe(nt),Pe(Je),Pe(st),Pe(gt),Pe(rt),Pe(mt),Pe(xt),Pe(Tt),Pe(zt),Pe(Qt),Pe(Kt),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 We("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=Ge*.4,fe=.4,me=.5,be=.5,Ae=oe(),Ie=oe(),Xe=oe(),nt=oe(),Je=new go.PathFigure((me-fe)*te,be*ee,!1);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),De(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.44,Xe,nt,Ie,Ae,Ae),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*te,Ie.y*ee,Xe.x*te,Xe.y*ee,nt.x*te,nt.y*ee));var st=ae(Ie.x,Ie.y);De(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.56,Ae,Ae,Ie,Xe,nt);var gt=ae(Ie.x,Ie.y);Je.add(new go.PathSegment(go.PathSegment.Line,(st.x*.1+.95*.9)*te,st.y*.1*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,.85*te,st.y*.1*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),Je.add(new go.PathSegment(go.PathSegment.Line,te,0)),Je.add(new go.PathSegment(go.PathSegment.Line,te,.15*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,(gt.x*.1+.9)*te,.15*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,(gt.x*.1+.9)*te,(gt.y*.1+.05*.9)*ee)),Je.add(new go.PathSegment(go.PathSegment.Line,gt.x*te,gt.y*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,Xe.x*te,Xe.y*ee,nt.x*te,nt.y*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),fe=.35,ue=Ge*.35;var rt=new go.PathFigure(me*te,(be-fe)*ee,!1);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),rt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee));var mt=new go.PathFigure((me-fe)*te,be*ee,!1);return he.add(mt),Pe(Ae),Pe(Ie),Pe(Xe),Pe(nt),Pe(st),Pe(gt),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,be=ue*Ge,Ae=new go.PathFigure((.525+fe)*te,(.5+ue+me)*ee,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+fe)*te,(.5+me)*ee,(.5+be+fe)*te,(.5+ue+me)*ee,(.5+ue+fe)*te,(.5+be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5-ue+me)*ee,(1-.5+ue+fe)*te,(.5-be+me)*ee,(.5+be+fe)*te,(.5-ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+fe)*te,(.5+ue+me)*ee,(.5-ue+fe)*te,(.5+be+me)*ee,(.5-be+fe)*te,(.5+ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ee).close()),ue=.325,fe=0,me=-.125,be=ue*Ge;var Ae=new go.PathFigure((1-.5+ue+fe)*te,(.5+me)*ee,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5+ue+me)*ee,(.5+ue+fe)*te,(.5+be+me)*ee,(.5+be+fe)*te,(.5+ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5+ue+me)*ee,(.5-ue+fe)*te,(.5+be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+fe)*te,(.5+me)*ee,(.5+be+fe)*te,(.5-ue+me)*ee,(1-.5+ue+fe)*te,(.5-be+me)*ee));var Ae=new go.PathFigure((.525+fe)*te,(.5+ue+me)*ee,!1);return he.add(Ae),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Fe,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 We("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new We("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,be=(.5+ue/2)*ee,Ae=new go.Geometry,Ie=new go.PathFigure(0,me,!0);Ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,me/ee);var Xe=ke(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(Xe.x,Xe.y),Pe(Xe),Ae}),go.Shape.setFigureParameter("Arrow2",0,new We("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new We("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,be=me+ue,Ae=new go.Geometry,Ie=new go.PathFigure(0,me,!0);Ae.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,fe,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Ae.spot1=new go.Spot(0,me/ee);var Xe=ke(0,be/ee,1,be/ee,fe/te,1,1,.5,oe());return Ae.spot2=new go.Spot(Xe.x,Xe.y),Pe(Xe),Ae}),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 We("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,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Ae=ke(0,.5,.3,0,0,ue/ee,.1,ue/ee,oe());return me.spot1=new go.Spot(Ae.x,Ae.y),Ae=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,Ae),me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new We("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new We("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,be=(ee-ue)/2,Ae=be+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,be=0,Ae=ee):(fe=0,me=ee,be=0,Ae=ee));var Ie=new go.Geometry,Xe=new go.PathFigure(te,.5*ee,!0);Ie.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae)),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),Xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ae)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,be)),Xe.add(new go.PathSegment(go.PathSegment.Line,.3*te,fe)),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,be).close());var nt=ke(0,.5,.3,be/ee,0,fe/ee,1,fe/ee,oe());return Ie.spot1=new go.Spot(nt.x,nt.y),nt=ke(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,nt),Ie.spot2=new go.Spot(nt.x,nt.y),Pe(nt),Ie}),go.Shape.setFigureParameter("IBeamArrow",0,new We("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,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,ue/ee);var Ae=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new We("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new We("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,be=(ee-ue)/2,Ae=be+ue;(he>ee||ue>ee)&&(ue>he?(he=he*ee/ue,fe=(ee-he)/2,me=fe+he,be=0,Ae=ee):(fe=0,me=ee,be=0,Ae=ee));var Ie=new go.Geometry,Xe=new go.PathFigure(te,.5*ee,!0);Ie.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ae)),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ae)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,be)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,be)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,fe)),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),Xe.add(new go.PathSegment(go.PathSegment.Line,.7*te,be).close()),Ie.spot1=new go.Spot(0,fe/ee);var nt=ke(.7,Ae/ee,1,.5,0,me/ee,1,me/ee,oe());return Ie.spot2=new go.Spot(nt.x,nt.y),Pe(nt),Ie}),go.Shape.setFigureParameter("Pointer",0,new We("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),Pe(me),ue}),go.Shape.setFigureParameter("RoundedPointer",0,new We("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),Pe(me),ue}),go.Shape.setFigureParameter("SplitEndArrow",0,new We("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,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,0,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var Ae=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new We("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,be=new go.PathFigure(te,.5*ee,!0);me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,fe)),be.add(new go.PathSegment(go.PathSegment.Line,0,fe)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,0,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,ue/ee);var Ae=ke(.7,1,1,.5,0,fe/ee,1,fe/ee,oe());return me.spot2=new go.Spot(Ae.x,Ae.y),Pe(Ae),me}),go.Shape.setFigureParameter("SquareArrow",0,new We("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=Ge*.5,fe=Ge*.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=Ge*.5,me=new go.PathFigure(0,he,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ge*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+fe)*te,0,1*te,Ge*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-Ge*he,(.5+fe)*te,1*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,1*ee,0,ee-Ge*he)),me.add(new go.PathSegment(go.PathSegment.Line,0,he));var be=new go.PathFigure(te,he,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-Ge*he,(.5+fe)*te,2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-fe)*te,2*he,0,2*he-Ge*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=Ge*.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,Ge*he,(.5-fe)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+fe)*te,0,te,Ge*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-Ge*he,(.5+fe)*te,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-he,(.5-fe)*te,ee,0,ee-Ge*he));var be=new go.PathFigure(0,ee-he,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ee-2*he,0,ee-he-Ge*he,(.5-fe)*te,ee-2*he)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,ee-he,(.5+fe)*te,ee-2*he,te,ee-he-Ge*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=Ge*.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-Ge*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-Ge*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Ge*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,Ge*he,0));var be=new go.PathFigure(he,0,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ee,he+Ge*he,0,2*he,(.5-fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,he,ee,2*he,(.5+fe)*ee,he+Ge*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=Ge*.5,me=new go.PathFigure(te-he,0,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,te-Ge*he,0,te,(.5-fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te,(.5+fe)*ee,te-Ge*he,ee)),me.add(new go.PathSegment(go.PathSegment.Line,he,ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,Ge*he,ee,0,(.5+fe)*ee)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-fe)*ee,Ge*he,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var be=new go.PathFigure(te-he,0,!1);return ue.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ee,te-he-Ge*he,0,te-2*he,(.5-fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ee,te-2*he,(.5+fe)*ee,te-he-Ge*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=Ge*ue,be=Ge*fe,Ae=.5,Ie=.1,Xe=new go.PathFigure(Ae*te,(Ie+fe)*ee,!0);he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ue)*te,Ie*ee,(Ae-me)*te,(Ie+fe)*ee,(Ae-ue)*te,(Ie+be)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-fe)*ee,(Ae-ue)*te,(Ie-be)*ee,(Ae-me)*te,(Ie-fe)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ue)*te,Ie*ee,(Ae+me)*te,(Ie-fe)*ee,(Ae+ue)*te,(Ie-be)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie+fe)*ee,(Ae+ue)*te,(Ie+be)*ee,(Ae+me)*te,(Ie+fe)*ee));var nt=.05,Je=Ge*nt;Ae=.05,Ie=.25;var st=new go.PathFigure(.5*te,.2*ee,!0);return he.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ee)),Ae=.95,Ie=.25,st.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+nt)*te,Ie*ee,(Ae+Je)*te,(Ie-nt)*ee,(Ae+nt)*te,(Ie-Je)*ee)),st.add(new go.PathSegment(go.PathSegment.Line,te,.6*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ee)),nt=.025,Je=Ge*nt,Ae=.825,Ie=.35,st.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-nt)*ee,(Ae+nt)*te,(Ie-Je)*ee,(Ae+Je)*te,(Ie-nt)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,Ie*ee,(Ae-Je)*te,(Ie-nt)*ee,(Ae-nt)*te,(Ie-Je)*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.8*te,ee)),st.add(new go.PathSegment(go.PathSegment.Line,.55*te,ee)),st.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ee)),nt=.05,Je=Ge*nt,Ae=.5,Ie=.7,st.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-nt)*ee,(Ae+nt)*te,(Ie-Je)*ee,(Ae+Je)*te,(Ie-nt)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,Ie*ee,(Ae-Je)*te,(Ie-nt)*ee,(Ae-nt)*te,(Ie-Je)*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.45*te,ee)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,ee)),st.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ee)),nt=.025,Je=Ge*nt,Ae=.175,Ie=.35,st.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-nt)*ee,(Ae+nt)*te,(Ie-Je)*ee,(Ae+Je)*te,(Ie-nt)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-nt)*te,Ie*ee,(Ae-Je)*te,(Ie-nt)*ee,(Ae-nt)*te,(Ie-Je)*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ee)),st.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),nt=.05,Je=Ge*nt,Ae=.05,Ie=.25,st.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-nt)*ee,(Ae-nt)*te,(Ie-Je)*ee,(Ae-Je)*te,(Ie-nt)*ee)),st.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 We("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=Ge*.5,fe=Ge*.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 be=new go.PathFigure(te,.1*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+fe)*ee,(.5+ue)*te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ue)*te,.2*ee,0,(.1+fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+fe)*ee,(.5+ue)*te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ue)*te,.3*ee,0,(.2+fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,.3*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ee,te,(.3+fe)*ee,(.5+ue)*te,.4*ee)),be.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=Ge*.5,fe=Ge*.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 be=new go.PathFigure(te,.1*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,te,(.1+fe)*ee,(.5+ue)*te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ue)*te,.2*ee,0,(.1+fe)*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,.2*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ee,te,(.2+fe)*ee,(.5+ue)*te,.3*ee)),be.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=Ge*.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 be=new go.PathFigure(0,ue*ee,!1);return he.add(be),be.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 be=new go.PathFigure(ue*te,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,ee)),be.add(new go.PathSegment(go.PathSegment.Move,0,fe*ee)),be.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=Ge*.5,be=.5,Ae=new go.PathFigure(te,be*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*te,ee,te,(be+me)*ee,(be+me)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,be*ee,(be-me)*te,ee,0,(be+me)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,be*te,0,0,(be-me)*ee,(be-me)*te,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,be*ee,(be+me)*te,0,te,(be-me)*ee));var Ie=new go.PathFigure((fe+ue)*te,(fe+ue)*ee,!1);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,fe*te,fe*ee)),Ie.add(new go.PathSegment(go.PathSegment.Move,fe*te,(fe+ue)*ee)),Ie.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=Ge*.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 be=new go.PathFigure(.5*ue*te,ue*ee,!1);return he.add(be),be.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=Ge*.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 be=new go.PathFigure(te,.5*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,ee)),be.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=Ge*.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=Ge*.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 be=new go.PathFigure(te,fe*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,fe*ee));var Ae=new go.PathFigure(.8*te,.75*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ee)),Ae.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=Ge*.1,fe=.1,me=.9,be=.5,Ae=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ee));var Ie=new go.PathFigure((me+fe)*te,be*ee,!0);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be-fe)*ee,(me+fe)*te,(be-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=Ge*.5,fe=Ge*.4,me=Ge*.1,be=.1,Ae=.9,Ie=.5,Xe=new go.PathFigure(.8*te,.5*ee,!0);he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ee,.8*te,(.5+fe)*ee,(.4+ue)*te,ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Xe.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(.4+ue)*te,0,.8*te,(.5-fe)*ee));var nt=new go.PathFigure((Ae+be)*te,Ie*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie+be)*ee,(Ae+be)*te,(Ie+me)*ee,(Ae+me)*te,(Ie+be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te,Ie*ee,(Ae-me)*te,(Ie+be)*ee,(Ae-be)*te,(Ie+me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-be)*ee,(Ae-be)*te,(Ie-me)*ee,(Ae-me)*te,(Ie-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te,Ie*ee,(Ae+me)*te,(Ie-be)*ee,(Ae+be)*te,(Ie-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=Ge*ue,me=0,be=.5,Ae=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ee,.25*te,.25*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+fe)*te,(be-ue)*ee,.7*te,(be-fe)*ee)),ue=.1,fe=Ge*.1,me=.9,be=.5;var Ie=new go.PathFigure((me-ue)*te,be*ee,!0);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+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=Ge*ue,me=0,be=.5,Ae=new go.PathFigure(0,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+fe+fe)*te,(be-ue)*ee,.8*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*te,(be+fe)*ee,(me+fe+fe)*te,(be+ue)*ee)),Ae.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=Ge*ue,me=.2,be=.5,Ae=new go.PathFigure(.1*te,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Ie=new go.PathFigure(.8*te,.5*ee,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.7*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ee,.45*te,.25*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ee,(me+fe)*te,(be-ue)*ee,.7*te,(be-fe)*ee)),ue=.1,fe=Ge*.1,me=.9,be=.5;var Xe=new go.PathFigure((me-ue)*te,be*ee,!0);return he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+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=Ge*ue,me=.2,be=.5,Ae=new go.PathFigure(.1*te,0,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ee,.35*te,.25*ee,.35*te,.75*ee));var Ie=new go.PathFigure(.2*te,0,!0);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ee,(me+fe)*te,(be-ue)*ee,.9*te,(be-fe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ee,.9*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ie.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=Ge*.1,fe=.1,me=.1,be=.5,Ae=new go.PathFigure((me-ue*.5)*te,ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.3,Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.5,Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ee,(me+fe)*te,0,(me+ue)*te,ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,0,(me-ue)*te,ee,(me-fe)*te,0)),me=.9,Ae.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=Ge*.5,fe=.5,me=.5,be=.5,Ae=new go.PathFigure((me-fe)*te,be*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be-fe)*ee,(me+fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Move,(me-fe+.1)*te,be*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe-.1)*te,be*ee,me*te,(be-fe)*ee,me*te,(be+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=Ge*.8,be=.8,Ae=0,Ie=.5,Xe=(ue-te)/2,nt=(fe-ee)/2,Je=new go.PathFigure(Ae*te+Xe,(Ie+be)*ee+nt,!0);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Xe,Ie*ee+nt,(Ae-me)*te+Xe,(Ie+be)*ee+nt,(Ae-be)*te+Xe,(Ie+me)*ee+nt)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie-be)*ee+nt,(Ae-be)*te+Xe,(Ie-me)*ee+nt,(Ae-me)*te+Xe,(Ie-be)*ee+nt)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+Xe,Ie*ee+nt,Ae*te+Xe,(Ie-be)*ee+nt,(Ae-be+me*.5)*te+Xe,(Ie-me)*ee+nt)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie+be)*ee+nt,(Ae-be+me*.5)*te+Xe,(Ie+me)*ee+nt,Ae*te+Xe,(Ie+be)*ee+nt).close()),me=Ge*.4,be=.4,Ae=.2,Ie=.5;var st=new go.PathFigure(Ae*te+Xe,(Ie+be)*ee+nt,!0);he.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Xe,Ie*ee+nt,(Ae-me)*te+Xe,(Ie+be)*ee+nt,(Ae-be)*te+Xe,(Ie+me)*ee+nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie-be)*ee+nt,(Ae-be)*te+Xe,(Ie-me)*ee+nt,(Ae-me)*te+Xe,(Ie-be)*ee+nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be+me*.5)*te+Xe,Ie*ee+nt,Ae*te+Xe,(Ie-be)*ee+nt,(Ae-be+me*.5)*te+Xe,(Ie-me)*ee+nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie+be)*ee+nt,(Ae-be+me*.5)*te+Xe,(Ie+me)*ee+nt,Ae*te+Xe,(Ie+be)*ee+nt).close()),me=Ge*.2,be=.2,Ae=.5,Ie=.5;var gt=new go.PathFigure((Ae-be)*te+Xe,Ie*ee+nt,!0);he.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie-be)*ee+nt,(Ae-be)*te+Xe,(Ie-me)*ee+nt,(Ae-me)*te+Xe,(Ie-be)*ee+nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Xe,Ie*ee+nt,(Ae+me)*te+Xe,(Ie-be)*ee+nt,(Ae+be)*te+Xe,(Ie-me)*ee+nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie+be)*ee+nt,(Ae+be)*te+Xe,(Ie+me)*ee+nt,(Ae+me)*te+Xe,(Ie+be)*ee+nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-be)*te+Xe,Ie*ee+nt,(Ae-me)*te+Xe,(Ie+be)*ee+nt,(Ae-be)*te+Xe,(Ie+me)*ee+nt)),me=Ge*.4,be=.4,Ae=.8,Ie=.5;var rt=new go.PathFigure(Ae*te+Xe,(Ie-be)*ee+nt,!0);he.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Xe,Ie*ee+nt,(Ae+me)*te+Xe,(Ie-be)*ee+nt,(Ae+be)*te+Xe,(Ie-me)*ee+nt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie+be)*ee+nt,(Ae+be)*te+Xe,(Ie+me)*ee+nt,(Ae+me)*te+Xe,(Ie+be)*ee+nt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+Xe,Ie*ee+nt,Ae*te+Xe,(Ie+be)*ee+nt,(Ae+be-me*.5)*te+Xe,(Ie+me)*ee+nt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie-be)*ee+nt,(Ae+be-me*.5)*te+Xe,(Ie-me)*ee+nt,Ae*te+Xe,(Ie-be)*ee+nt).close()),me=Ge*.8,be=.8,Ae=1,Ie=.5;var mt=new go.PathFigure(Ae*te+Xe,(Ie-be)*ee+nt,!0);return he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be)*te+Xe,Ie*ee+nt,(Ae+me)*te+Xe,(Ie-be)*ee+nt,(Ae+be)*te+Xe,(Ie-me)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie+be)*ee+nt,(Ae+be)*te+Xe,(Ie+me)*ee+nt,(Ae+me)*te+Xe,(Ie+be)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+be-me*.5)*te+Xe,Ie*ee+nt,Ae*te+Xe,(Ie+be)*ee+nt,(Ae+be-me*.5)*te+Xe,(Ie+me)*ee+nt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te+Xe,(Ie-be)*ee+nt,(Ae+be-me*.5)*te+Xe,(Ie-me)*ee+nt,Ae*te+Xe,(Ie-be)*ee+nt).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 be=new go.PathFigure(0,.5*ee,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ee)),be.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ee)),be.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=Ge*.4,fe=.4,me=.5,be=.5,Ae=oe(),Ie=oe(),Xe=oe(),nt=oe();De(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,Ie,Xe,nt);var Je=ae(Ie.x,Ie.y),st=new go.PathFigure(Ie.x*te,Ie.y*ee,!0);he.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,Xe.x*te,Xe.y*ee,nt.x*te,nt.y*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,(me-ue)*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee)),De(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,Xe,nt,Ie,Ae,Ae),st.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*te,Ie.y*ee,Xe.x*te,Xe.y*ee,nt.x*te,nt.y*ee)),ue=Ge*.3,fe=.3,De(me-fe,be,me-fe,be-ue,me-ue,be-fe,me,be-fe,.5,Xe,nt,Ie,Ae,Ae),st.add(new go.PathSegment(go.PathSegment.Line,Ie.x*te,Ie.y*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*te,be*ee,nt.x*te,nt.y*ee,Xe.x*te,Xe.y*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+fe)*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*te,be*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),De(me,be-fe,me+ue,be-fe,me+fe,be-ue,me+fe,be,.5,Ae,Ae,Ie,Xe,nt),st.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*te,Ie.y*ee,nt.x*te,nt.y*ee,Xe.x*te,Xe.y*ee).close());var st=new go.PathFigure(.45*te,0,!0);return he.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ee)),st.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Pe(Ae),Pe(Ie),Pe(Xe),Pe(nt),Pe(Je),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,be,Ae){me.add(new go.PathSegment(go.PathSegment.Move,(.3+be)*te,(.8+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+be)*te,(.5+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+be)*te,(.5+Ae)*ee)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+be)*te,(.8+Ae)*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,be=ue*Ge,Ae=.4*Math.SQRT2/2+.5,Ie=.5-.5*Math.SQRT2/2,Xe=1,nt=.5,Je=.5,st=0,gt=new go.PathFigure(Ae*te,(1-Ie)*ee,!1);return he.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,nt*ee,Xe*te,.7*ee,Xe*te,nt*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Je+fe)*te,(st+fe)*ee,(.5+ue+fe)*te,(.5-be+fe)*ee,(.5+be+fe)*te,(.5-ue+fe)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+fe)*te,(.5+me)*ee,(.5-be+fe)*te,(.5-ue+me)*ee,(.5-ue+fe)*te,(.5-be+me)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+fe)*te,.9*ee,(.5-ue+fe)*te,(.5+be+me)*ee,(.5-be+fe)*te,.9*ee)),gt.add(new go.PathSegment(go.PathSegment.Move,(.25+fe)*te,.8*ee)),gt.add(new go.PathSegment(go.PathSegment.Line,(.35+fe)*te,.9*ee)),gt.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,be=.5,Ae=me,Ie=Math.PI/4,Xe=4*(1-Math.cos(Ie))/(3*Math.sin(Ie)),nt=Xe*.5,Je=me,st=me,gt=Xe*Je,rt=Xe*st;fe.add(new go.PathSegment(go.PathSegment.Bezier,(be-Je)*te,Ae*ee,(be-(gt+Je)/2)*te,(Ae+(st+rt)/2)*ee,(be-Je)*te,(Ae+rt)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Ae-st)*ee,(be-Je)*te,(Ae-rt)*ee,(be-gt)*te,(Ae-st)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(be+Je)*te,Ae*ee,(be+gt)*te,(Ae-st)*ee,(be+Je)*te,(Ae-rt)*ee)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ee,(be+Je)*te,(Ae+rt)*ee,(be+(gt+Je)/2)*te,(Ae+(st+rt)/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 mt=new go.PathFigure(.2*te,ee,!1);he.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ee));var xt=new go.PathFigure(.8*te,ee,!1);return he.add(xt),xt.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=Ge*.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 be=new go.PathFigure(ue*te,0,!1);return he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,.15*ee)),be.add(new go.PathSegment(go.PathSegment.Move,ue*te,ee)),be.add(new go.PathSegment(go.PathSegment.Line,ue*te,.85*ee)),be.add(new go.PathSegment(go.PathSegment.Move,0,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.15*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Move,te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.85*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ee)),be.add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ee)),be.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,be=Ge*.1,Ae=.2,Ie=.9,Xe=new go.PathFigure((Ae-me)*te,Ie*ee,!0);he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-me)*ee,(Ae-me)*te,(Ie-be)*ee,(Ae-be)*te,(Ie-me)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,Ie*ee,(Ae+be)*te,(Ie-me)*ee,(Ae+me)*te,(Ie-be)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie+me)*ee,(Ae+me)*te,(Ie+be)*ee,(Ae+be)*te,(Ie+me)*ee)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-me)*te,Ie*ee,(Ae-be)*te,(Ie+me)*ee,(Ae-me)*te,(Ie+be)*ee).close()),me=.1,be=Ge*.1,Ae=.8,Ie=.9;var nt=new go.PathFigure((Ae-me)*te,Ie*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie-me)*ee,(Ae-me)*te,(Ie-be)*ee,(Ae-be)*te,(Ie-me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+me)*te,Ie*ee,(Ae+be)*te,(Ie-me)*ee,(Ae+me)*te,(Ie-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*te,(Ie+me)*ee,(Ae+me)*te,(Ie+be)*ee,(Ae+be)*te,(Ie+me)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-me)*te,Ie*ee,(Ae-be)*te,(Ie+me)*ee,(Ae-me)*te,(Ie+be)*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 be=new go.PathFigure(.5*te,.7*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.7*ee));var Ae=.1,Ie=Ge*.1,Xe=.1,nt=.9,Je=new go.PathFigure((Xe-Ae)*te,nt*ee,!0);he.add(Je),Je.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(nt-Ae)*ee,(Xe-Ae)*te,(nt-Ie)*ee,(Xe-Ie)*te,(nt-Ae)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+Ae)*te,nt*ee,(Xe+Ie)*te,(nt-Ae)*ee,(Xe+Ae)*te,(nt-Ie)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(nt+Ae)*ee,(Xe+Ae)*te,(nt+Ie)*ee,(Xe+Ie)*te,(nt+Ae)*ee)),Je.add(new go.PathSegment(go.PathSegment.Bezier,(Xe-Ae)*te,nt*ee,(Xe-Ie)*te,(nt+Ae)*ee,(Xe-Ae)*te,(nt+Ie)*ee)),Ae=.1,Ie=Ge*.1,Xe=.4,nt=.9;var st=new go.PathFigure((Xe-Ae)*te,nt*ee,!0);return he.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(nt-Ae)*ee,(Xe-Ae)*te,(nt-Ie)*ee,(Xe-Ie)*te,(nt-Ae)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Xe+Ae)*te,nt*ee,(Xe+Ie)*te,(nt-Ae)*ee,(Xe+Ae)*te,(nt-Ie)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,Xe*te,(nt+Ae)*ee,(Xe+Ae)*te,(nt+Ie)*ee,(Xe+Ie)*te,(nt+Ae)*ee)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Xe-Ae)*te,nt*ee,(Xe-Ie)*te,(nt+Ae)*ee,(Xe-Ae)*te,(nt+Ie)*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 Xe=.05,nt=Ge*.05,Je=.175,st=.95,be=new go.PathFigure((Je-Xe)*te,st*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st-Xe)*ee,(Je-Xe)*te,(st-nt)*ee,(Je-nt)*te,(st-Xe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Xe)*te,st*ee,(Je+nt)*te,(st-Xe)*ee,(Je+Xe)*te,(st-nt)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st+Xe)*ee,(Je+Xe)*te,(st+nt)*ee,(Je+nt)*te,(st+Xe)*ee)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Xe)*te,st*ee,(Je-nt)*te,(st+Xe)*ee,(Je-Xe)*te,(st+nt)*ee));var Xe=.05,nt=Ge*.05,Je=.375,st=.95,Ae=new go.PathFigure((Je-Xe)*te,st*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st-Xe)*ee,(Je-Xe)*te,(st-nt)*ee,(Je-nt)*te,(st-Xe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Xe)*te,st*ee,(Je+nt)*te,(st-Xe)*ee,(Je+Xe)*te,(st-nt)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st+Xe)*ee,(Je+Xe)*te,(st+nt)*ee,(Je+nt)*te,(st+Xe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Xe)*te,st*ee,(Je-nt)*te,(st+Xe)*ee,(Je-Xe)*te,(st+nt)*ee));var Xe=.05,nt=Ge*.05,Je=.625,st=.95,Ie=new go.PathFigure((Je-Xe)*te,st*ee,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st-Xe)*ee,(Je-Xe)*te,(st-nt)*ee,(Je-nt)*te,(st-Xe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Xe)*te,st*ee,(Je+nt)*te,(st-Xe)*ee,(Je+Xe)*te,(st-nt)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st+Xe)*ee,(Je+Xe)*te,(st+nt)*ee,(Je+nt)*te,(st+Xe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Xe)*te,st*ee,(Je-nt)*te,(st+Xe)*ee,(Je-Xe)*te,(st+nt)*ee));var Xe=.05,nt=Ge*.05,Je=.825,st=.95,gt=new go.PathFigure((Je-Xe)*te,st*ee,!0);he.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st-Xe)*ee,(Je-Xe)*te,(st-nt)*ee,(Je-nt)*te,(st-Xe)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Je+Xe)*te,st*ee,(Je+nt)*te,(st-Xe)*ee,(Je+Xe)*te,(st-nt)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Je*te,(st+Xe)*ee,(Je+Xe)*te,(st+nt)*ee,(Je+nt)*te,(st+Xe)*ee)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Je-Xe)*te,st*ee,(Je-nt)*te,(st+Xe)*ee,(Je-Xe)*te,(st+nt)*ee).close());var rt=new go.PathFigure(0,ee,!1);return he.add(rt),rt.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 be=.05,Ae=Ge*.05,Ie=.35,Xe=.775,nt=new go.PathFigure((Ie-be)*te,Xe*ee,!0);return he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(Xe-be)*ee,(Ie-be)*te,(Xe-Ae)*ee,(Ie-Ae)*te,(Xe-be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+be)*te,Xe*ee,(Ie+Ae)*te,(Xe-be)*ee,(Ie+be)*te,(Xe-Ae)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(Xe+be)*ee,(Ie+be)*te,(Xe+Ae)*ee,(Ie+Ae)*te,(Xe+be)*ee)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-be)*te,Xe*ee,(Ie-Ae)*te,(Xe+be)*ee,(Ie-be)*te,(Xe+Ae)*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=Ge*.3,me=.5,be=.7,Ae=new go.PathFigure((me-ue)*te,be*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee));var Ie=new go.PathFigure(0,.7*ee,!1);return he.add(Ie),Ie.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=Ge*.5,me=.5,be=.5,Ae=new go.PathFigure((me-ue)*te,be*ee,!0);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee));var Ie=new go.PathFigure(.15*te,.5*ee,!1);return he.add(Ie),Ie.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=Ge*.5,me=.5,be=.5,Ae=new go.PathFigure((me-ue)*te,be*ee,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee).close()),ue=.05,fe=Ge*.05,me=.5,be=.8;var Ie=new go.PathFigure((me-ue)*te,be*ee,!1);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be-ue)*ee,(me-ue)*te,(be-fe)*ee,(me-fe)*te,(be-ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+ue)*te,be*ee,(me+fe)*te,(be-ue)*ee,(me+ue)*te,(be-fe)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(be+ue)*ee,(me+ue)*te,(be+fe)*ee,(me+fe)*te,(be+ue)*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-ue)*te,be*ee,(me-fe)*te,(be+ue)*ee,(me-ue)*te,(be+fe)*ee).close()),Ie.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ee)),Ie.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ee)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ee,.75*te,.475*ee,.75*te,.225*ee)),Ie.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 be=new go.PathFigure(.678*te,.85*ee,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ee)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ee).close());var Ae=new go.PathFigure(.5*te,.1*ee,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ee)),Ae.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 be=new go.PathFigure(te*.612,ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.612,ee*(1-.184*3))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ee*1).close());var Ae=new go.PathFigure(te*.816,ee,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.816,ee*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,te*1,ee*(1-.184*5))),Ae.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 be=new go.PathFigure(te*.055,.18*ee,!0);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.18)),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ee*.21)),be.add(new go.PathSegment(go.PathSegment.Line,te*.055,ee*.21).close());var Ae=new go.PathFigure(te*1,0,!0);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.4,ee*.65)),Ae.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 be=new go.PathFigure(te*(.11+.24133333*1+.028*1),ee*.1,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.1)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ee*.8)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ee*.8).close());var Ae=new go.PathFigure(te*(.11+.24133333*2+.028*2),ee*.1,!1);return he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ee*.8)),Ae.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*Ge,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 be=new go.PathFigure(te*.83,0,!1);he.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.3)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.3)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*0).close());var Ae=new go.PathFigure(te*.83,ee*1,!1);he.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.83,ee*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,te*.17,ee*1).close());var Ie=new go.PathFigure(te*.78,ee*.05,!1);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.05)),Ie.add(new go.PathSegment(go.PathSegment.Line,te*.66,ee*.25)),Ie.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*Ge,fe=ee*.8,me=new go.Geometry,be=new go.PathFigure(he,0,!0);return me.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-ue,0,te,ue)),be.add(new go.PathSegment(go.PathSegment.Line,te,fe-he)),be.add(new go.PathSegment(go.PathSegment.Bezier,te-he,fe,te,fe-ue,te-ue,fe)),be.add(new go.PathSegment(go.PathSegment.Line,te*.7,fe)),be.add(new go.PathSegment(go.PathSegment.Line,te*.7,ee)),be.add(new go.PathSegment(go.PathSegment.Line,te*.55,fe)),be.add(new go.PathSegment(go.PathSegment.Line,he,fe)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,fe-he,ue,fe,0,fe-ue)),be.add(new go.PathSegment(go.PathSegment.Line,0,he)),be.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*Ge,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 We={},Ee="5.0",ae={},oe=null,Pe=!1,ke=!1,De=null,je=!1,Te=null,Ge=null,lt=0;lt<arguments.length;lt++){var Ke=arguments[lt];if(Ke!==null)switch(typeof Ke){case"number":Ee=Ke.toFixed(1);break;case"string":Ke.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ee=Ke:De=Ke;break;case"object":typeof Ke.is3D!="undefined"?oe=Ke:ae=Ke;break;case"boolean":Pe=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&&(Pe=!0)),De!==null&&ae.id===void 0&&(ae.id=De);var He="",yt="",$e=!1,Mt=null,Fe=null,te=null,ee=!1,he=null,ue=null,fe=null,me=null,be=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var Ae=function(kt){return parseFloat(kt)>4?parseFloat(kt):5};We.setHTML5Codebase=function(kt,xn){Ge=kt,ct(kt,xn)},We.setJavaCodebase=We.setJavaCodebaseVersion=We.isCompiledInstalled=We.setPreCompiledScriptPath=We.setPreCompiledResourcePath=function(){},We.setHTML5CodebaseVersion=function(kt,xn){var kn=parseFloat(kt);if(kn!==NaN&&kn<5){console.log("The GeoGebra HTML5 codebase version "+kn+" is deprecated. Using version latest instead.");return}Te=kt,pt(kt,xn)},We.getHTML5CodebaseVersion=function(){return Fe},We.getParameters=function(){return ae},We.setFontsCSSURL=function(kt){me=kt},We.setGiacJSURL=function(kt){},We.setJNLPFile=function(kt){He=kt},We.setJNLPBaseDir=function(kt){},We.inject=function(){function kt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var xn="auto",kn=ae.id,Vn,Vt=!1,Ot=0;Ot<arguments.length;Ot++){var Nn=arguments[Ot];typeof Nn=="string"?(Nn=Nn.toLowerCase(),Nn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?xn=Nn:kn=arguments[Ot]):typeof Nn=="boolean"?Vt=Nn:Nn instanceof HTMLElement&&(Vn=Nn)}tr();function tr(){if(!je){setTimeout(tr,200);return}xn=Cn(xn);var hr=Vn||document.getElementById(kn);if(!hr){console.log("possibly bug on ajax loading? ");return}if(We.removeExistingApplet(hr,!1),ae.width===void 0&&hr.clientWidth&&(ae.width=hr.clientWidth),ae.height===void 0&&hr.clientHeight&&(ae.height=hr.clientHeight),!(ae.width&&ae.height)&&xn==="html5"&&(delete ae.width,delete ae.height),Mt=xn,xn==="screenshot")xt(hr,ae);else{var ot=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?ot=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(ot=(!Ie()||kt())&&Xe()),ot?(Mt="screenshot",zt(hr,ae,Vt,xn)):mt(hr,ae,Vt)}}};function Ie(){try{return window.self!==window.top}catch(kt){return!0}}function Xe(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}We.getViews=function(){return oe},We.isJavaInstalled=function(){return!1};var nt=function(kt){var xn=function(Ot){var Nn=JSON.parse(Ot),tr=function(_e){return _e.type=="G"||_e.type=="E"},hr=Nn.elements?Nn.elements.filter(tr)[0]:Nn;if(!hr||!hr.url){kn();return}ae.fileName=hr.url,Je(hr.settings||{}),oe.is3D=!0;var ot="https://www.geogebra.org/images/";We.setPreviewImage(he||hr.previewUrl,ot+"GeoGebra_loading.png",ot+"applet_play.png"),kt()},kn=function(){ae.onError&&ae.onError(),qt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},Vn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Vt="/materials/"+ae.material_id+"?scope=basic";st("https://"+Vn+"/api/proxy.php?path="+encodeURIComponent(Vt),xn,kn)};function Je(kt){var xn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(kn){kt[kn]=!!kt[kn]}),xn.forEach(function(kn){ae[kn]===void 0&&kt[kn]!==void 0&&(ae[kn]=kt[kn])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function st(kt,xn,kn){var Vn=new XMLHttpRequest;Vn.open("GET",kt),Vn.onload=function(){xn(Vn.responseText)},Vn.onerror=kn,Vn.send()}We.isHTML5Installed=function(){return!0},We.getLoadedAppletType=function(){return Mt},We.setPreviewImage=function(kt,xn,kn){he=kt,ue=xn,fe=kn},We.removeExistingApplet=function(kt,xn){var kn;typeof kt=="string"&&(kt=document.getElementById(kt)),Mt=null;var Vn=null;for(kn=0;kn<kt.childNodes.length;kn++){var Vt=kt.childNodes[kn],Ot=Vt.className;Ot==="applet_screenshot"?xn?(Vt.style.display="block",Mt="screenshot"):Vt.style.display="none":Ot!=="applet_scaler prerender"&&(kt.removeChild(Vt),Vn=Ot&&Ot.indexOf("appletParameters")!=-1?Vt.id:null,kn--)}var Nn=ae.id!==void 0?ae.id:Vn,tr=window[Nn];tr&&typeof tr.getBase64=="function"&&(tr.remove(),window[Nn]=null)},We.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var kt=We.getAppletObject();return kt&&typeof kt.recalculateEnvironments=="function"?(kt.recalculateEnvironments(),!0):!1},We.startAnimation=function(){var kt=We.getAppletObject();return kt&&typeof kt.startAnimation=="function"?(kt.startAnimation(),!0):!1},We.stopAnimation=function(){var kt=We.getAppletObject();return kt&&typeof kt.stopAnimation=="function"?(kt.stopAnimation(),!0):!1},We.getAppletObject=function(){var kt=ae.id!==void 0?ae.id:"ggbApplet";return window[kt]},We.resize=function(){};var gt=function(kt,xn,kn){var Vn=document.createElement("param");Vn.setAttribute("name",xn),Vn.setAttribute("value",kn),kt.appendChild(Vn)},rt=function(kt){return kt&&kt!=="false"},mt=function(kt,xn,kn){Ae(Fe)<=4.2&&(kn=!0);var Vn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Vn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Vt=document.createElement("div");Vt.classList.add("appletParameters","notranslate");var Ot=xn.width,Nn=xn.height;if(xn.disableAutoScale=xn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():xn.disableAutoScale,xn.width!==void 0)if(Ae(Fe)<=4.4)rt(xn.showToolBar)&&(xn.height-=7),rt(xn.showAlgebraInput)&&(xn.height-=37),xn.width<605&&rt(xn.showToolBar)&&(xn.width=605,Ot=605);else{var tr=100;(rt(xn.showToolBar)||rt(xn.showMenuBar))&&(xn.hasOwnProperty("customToolBar")&&(xn.customToolbar=xn.customToolBar),tr=rt(xn.showMenuBar)?245:155),Ot<tr&&(xn.width=tr,Ot=tr)}Vt.style.border="none",Vt.style.display="inline-block";for(var hr in xn)xn.hasOwnProperty(hr)&&hr!=="appletOnLoad"&&Vt.setAttribute("data-param-"+hr,xn[hr]);me&&Vt.setAttribute("data-param-fontscssurl",me),We.resize=function(){GGBAppletUtils.responsiveResize(kt,xn)},window.addEventListener("resize",function(jt){We.resize()});var ot=typeof xn.appletOnLoad=="function"?xn.appletOnLoad:function(){};if(!kn&&xn.width!==void 0){xn.hasOwnProperty("showSplash")||Vt.setAttribute("data-param-showSplash","false");var _e=kt.querySelector(".applet_scaler.prerender"),Re=_e!==null;if(Re)var Ye=_e.querySelector(".ggb_preview");else{var Ye=Kt(Ot,Nn,xn.borderColor,!1);_e=document.createElement("div"),_e.className="applet_scaler",_e.style.position="relative",_e.style.display="block",_e.style.width=Ot+"px",_e.style.height=Nn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_e,"66%"),Ae(Fe)>=5?(xn.appletOnLoad=function(jt){var hn=kt.querySelector(".ggb_preview");hn&&hn.parentNode.removeChild(hn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_e),window.GGBT_wsf_view&&$(window).trigger("resize"),ot(jt)},Re||_e.appendChild(Ye)):Vt.appendChild(Ye),_e.appendChild(Vt),Re||kt.appendChild(_e),setTimeout(function(){We.resize()},1)}else{var at=document.createElement("div");at.className="applet_scaler",at.style.position="relative",at.style.display="block",at.appendChild(Vt),kt.appendChild(at),xn.appletOnLoad=function(jt){We.resize(),ot(jt)}}function Be(jt,hn){hn&&typeof hn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,hn.appletOnLoad):renderGGBElement(jt),qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",hn)}function bt(jt,hn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:hn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(En){Be(En.article,En.params)}),html5AppletsToProcess=null)},Ae(Fe)<5&&(jt.className+=" geogebraweb")):Be(jt,hn)}if(Vn){scriptLoadStarted=!0;for(var bn=0;bn<Vt.childNodes.length;bn++){var sn=Vt.childNodes[bn].tagName;sn==="TABLE"&&(Vt.removeChild(Vt.childNodes[bn]),bn--)}if(ggbHTML5LoadedScript!==null){var Bn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Bn!=null&&Bn.parentNode.removeChild(Bn)}var It=document.createElement("script"),_t=function(){bt(Vt,xn)};It.src=yt+te,ggbHTML5LoadedCodebaseIsWebSimple=ee,ggbHTML5LoadedCodebaseVersion=Fe,ggbHTML5LoadedScript=It.src,qt("GeoGebra HTML5 codebase loaded: '"+yt+"'.",xn),!Ge&&(!Te||Te=="5.0")?(ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),_t()):yt.requirejs?__webpack_require__.e(7963).then(function(){var jt=[__webpack_require__(87963)];_t.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(It.onload=_t,kt.appendChild(It))}else bt(Vt,xn);xn.height=Nn,xn.width=Ot},xt=function(kt,xn,kn){var Vn=Kt(xn.width,xn.height,xn.borderColor,kn),Vt=document.createElement("div");Vt.style.position="relative",Vt.style.display="block",Vt.style.width=xn.width+"px",Vt.style.height=xn.height+"px",Vt.className="applet_screenshot applet_scaler"+(kn?" applet_screenshot_play":""),Vt.appendChild(Vn);var Ot=GGBAppletUtils.getScale(xn,kt,kn);kn?(kt.appendChild(Qt()),window.GGBT_wsf_view||(kt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Vt,"66%"),kt.appendChild(Vt),Ot!==1&&!isNaN(Ot)&&(GGBAppletUtils.scaleElement(Vt,Ot),Vt.style.width=xn.width+"px",Vt.style.height=xn.height+"px",Vt.parentNode.style.width=xn.width*Ot+"px",Vt.parentNode.style.height=xn.height*Ot+"px"),We.resize=function(){Tt(kt,Vn,Vt,kn)},window.addEventListener("resize",function(Nn){We.resize()}),We.resize()};function Tt(kt,xn,kn,Vn){if(kt.contains(xn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(kt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(kt)}var Vt=GGBAppletUtils.getScale(ae,kt,Vn);kn.parentNode!==null&&(!isNaN(Vt)&&Vt!==1?(GGBAppletUtils.scaleElement(kn,Vt),kn.parentNode.style.width=ae.width*Vt+"px",kn.parentNode.style.height=ae.height*Vt+"px"):(GGBAppletUtils.scaleElement(kn,1),kn.parentNode.style.width=ae.width+"px",kn.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(kt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}We.onExitFullscreen=function(kt,xn){xn.appendChild(kt)};var zt=function(kt,xn,kn,Vn){xt(kt,xn,!0);for(var Vt=function(){var tr=[];for(Nn=0;Nn<kt.childNodes.length;Nn++)tr.push(kt.childNodes[Nn]);if(window.GGBT_wsf_view){var hr=window.GGBT_wsf_view.renderFullScreen(kt,xn.id),ot=document.getElementById("fullscreencontainer"),_e=jQuery(kt).find(".fullscreencontent");_e.length>0?(hr.remove(),_e.attr("id","fullscreencontent").show(),jQuery(ot).append(_e),window.dispatchEvent(new Event("resize"))):mt(hr,xn,!1),window.GGBT_wsf_view.launchFullScreen(ot)}else Mt=Vn,mt(kt,xn,!1);if(!window.GGBT_wsf_view)for(Nn=0;Nn<tr.length;Nn++)kt.removeChild(tr[Nn])},Ot=kt.getElementsByClassName("ggb_preview_play"),Nn=0;Nn<Ot.length;Nn++)Ot[Nn].addEventListener("click",Vt,!1),Ot[Nn].addEventListener("ontouchstart",Vt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(kt),Xe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qt=function(){var kt=document.createElement("div");if(kt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var xn='.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");}',kn=document.createElement("style");kn.styleSheet?kn.styleSheet.cssText=xn:kn.appendChild(document.createTextNode(xn)),document.getElementsByTagName("head")[0].appendChild(kn)}return kt},Kt=function(kt,xn,kn,Vn){var Vt=document.createElement("div");Vt.className="ggb_preview",Vt.style.position="absolute",Vt.style.zIndex="90",Vt.style.width=kt-2+"px",Vt.style.height=xn-2+"px",Vt.style.top="0px",Vt.style.left="0px",Vt.style.overflow="hidden",Vt.style.backgroundColor="white";var Ot="lightgrey";kn!==void 0&&(kn==="none"?Ot="transparent":Ot=kn),Vt.style.border="1px solid "+Ot;var Nn=document.createElement("img");if(Nn.style.position="relative",Nn.style.zIndex="1000",Nn.style.top="-1px",Nn.style.left="-1px",he!==null&&Nn.setAttribute("src",he),Nn.style.opacity=.7,ue!==null){var tr,hr,ot;if(!Vn){tr=document.createElement("img"),tr.style.position="absolute",tr.style.zIndex="1001",tr.style.opacity=1,Nn.style.opacity=.3,hr=360,hr>kt/4*3&&(hr=kt/4*3),ot=hr/5.8,tr.setAttribute("src",ue),tr.setAttribute("width",hr),tr.setAttribute("height",ot);var _e=(kt-hr)/2,Re=(xn-ot)/2;tr.style.left=_e+"px",tr.style.top=Re+"px",Vt.appendChild(tr)}}return Vt.appendChild(Nn),Vt},Cn=function(kt){return kt=kt.toLowerCase(),kt==="html5"||kt==="screenshot"?kt:"html5"},St=["web","webSimple","web3d","tablet","tablet3d","phone"],pt=function(kt,xn){if(Fe=kt,xn){ct(Fe,!0);return}var kn=!Pe;if(kn){var Vn=Ae(Fe);!isNaN(Vn)&&Vn<4.4&&(kn=!1)}var Vt,Ot;window.location.protocol.substr(0,4)==="http"?Vt=window.location.protocol:Vt="http:";var Nn=Fe.indexOf("//");Nn>0?Ot=Fe:Nn===0?Ot=Vt+Fe:Ot="https://www.geogebra.org/apps/5.2.814.0/";for(var tr in St)if(Fe.slice(St[tr].length*-1)===St[tr]||Fe.slice((St[tr].length+1)*-1)===St[tr]+"/"){ct(Ot,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&kn&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!rt(ae.showToolBar)&&!rt(ae.showMenuBar)&&!rt(ae.showAlgebraInput)&&!rt(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Ot+="webSimple/":Ot+="web3d/",ct(Ot,!1)},ct=function(kt,xn){if(kt.requirejs){yt=kt;return}kt.slice(-1)!=="/"&&(kt+="/"),yt=kt,xn===null&&(xn=kt.indexOf("http")===-1),$e=xn,te="web.nocache.js",ee=!1;var kn=yt.split("/");kn.length>1&&(!xn&&kn[kn.length-2]==="webSimple"?(te="webSimple.nocache.js",ee=!0):St.indexOf(kn[kn.length-2])>=0&&(te=kn[kn.length-2]+".nocache.js")),kn=kt.split("/"),Fe=kn[kn.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 Vn=parseFloat(Fe);Vn!==NaN&&Vn<5&&kt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead."),pt("5.0",xn))},qt=function(kt,xn){window.console&&window.console.log&&(!xn||typeof xn.showLogging=="undefined"||xn.showLogging&&xn.showLogging!=="false")&&console.log(kt)};ae.material_id!==void 0?nt(fn):fn();function fn(){var kt=Ee;Te!==null?kt=Te:parseFloat(kt)<5&&(kt="5.0"),pt(kt,!1),Ge!==null&&ct(Ge,$e),je=!0}return We},GGBAppletUtils=function(){"use strict";function We(){return window.GGBT_wsf_edit!==void 0}function Ee(je,Te){Te!=1?(je.style.transformOrigin="0% 0% 0px",je.style.webkitTransformOrigin="0% 0% 0px",je.style.transform="scale("+Te+","+Te+")",je.style.webkitTransform="scale("+Te+","+Te+")",je.style.maxWidth="initial",je.querySelector(".ggb_preview")!==null&&(je.querySelector(".ggb_preview").style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[0]!==void 0&&(je.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),je.querySelectorAll(".ggb_preview img")[1]!==void 0&&(je.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(je.style.transform="none",je.style.webkitTransform="none")}function ae(je,Te,Ge,lt,Ke,He){var yt=null;if(He!=null&&He!="")for(var $e=je.parentNode;$e!=null;)if((" "+$e.className+" ").indexOf(" "+He+" ")>-1){yt=$e;break}else $e=$e.parentNode;var Mt=0,Fe=0,te=0,ee=0,he=0,ue=0,fe=0;if(yt)Mt=yt.offsetWidth,Fe=Math.max(lt?yt.offsetWidth:0,yt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Mt=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),te=Mt):(Mt=window.innerWidth,Fe=window.innerHeight,te=window.innerWidth),je){var me=je.getBoundingClientRect();me.left>0&&me.left<=Mt&&(Ke===void 0||!Ke)&&(document.dir==="rtl"?(he=Mt-me.width-me.left,ue=te<=480?10:30):(ue=me.left,he=te<=480?10:30),ee=ue+he)}if(je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=je.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,fe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,fe=40)}}return je&&((Ge===void 0||!Ge)&&Te>0&&Te+ee<Mt?Mt=Te:Mt-=ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge===void 0||!Ge)&&(Fe-=fe)),{width:Mt,height:Fe}}function oe(je,Te,Ge,lt,Ke){if(je.isScreenshoGenerator)return 1;var He=lt!==void 0&<,yt=je.noScaleMargin!=null&&je.noScaleMargin,$e=function(be){return be&&be!=="false"},Mt=$e(je.autoHeight),Fe=ae(Te,je.width,Ge,Mt,He&&window.GGBT_wsf_view||yt,Ke),te=parseInt(Fe.width),ee=je.width,he=je.height;if(ee===void 0){var ue=Te.querySelector(".appletParameters");ue&&(ee=ue.offsetWidth,he=ue.offsetHeight)}var fe=te/ee,me=He?1:Fe.height/he;return Ge!==void 0&&!Ge&&(fe=Math.min(1,fe),me=Math.min(1,me)),Math.min(fe,me)}function Pe(je,Te,Ge){var lt=1,Ke,He=!1;if(je.hasOwnProperty("allowUpscale")&&(He=je.allowUpscale),je.hasOwnProperty("scale")&&(lt=parseFloat(je.scale),(isNaN(lt)||lt===null||lt===0)&&(lt=1),lt>1&&(He=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(je.hasOwnProperty("disableAutoScale")&&je.disableAutoScale))Ke=oe(je,Te,He,Ge,je.scaleContainerClass);else return lt;return He&&(!je.hasOwnProperty("scale")||lt===1)?Ke:Math.min(lt,Ke)}function ke(je){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),lt=je.getBoundingClientRect(),Ke=(Te-lt.width)/2,He=(Ge-lt.height)/2;He<0&&(He=0),je.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ke<40?je.style.left="40px":je.style.left=Ke+"px",je.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?je.style.top="40px":je.style.top=He+"px",je.style.left=Ke+"px")}function De(je,Te){var Ge=je.querySelector(".appletParameters");if(Ge){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==Ge.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(je)}if(Ge.parentElement&&/fullscreen/.test(Ge.parentElement.className))return;var lt=Pe(Te,je);We()&&Ge.setAttribute("data-param-scale",lt);for(var Ke=null,He=0;He<je.childNodes.length;He++)if(je.childNodes[He].className!==void 0&&je.childNodes[He].className.match(/^applet_scaler/)){Ke=je.childNodes[He];break}if(Ke!==null&&Ke.querySelector(".noscale")!==null)return;var yt=Te.id!==void 0?Te.id:"ggbApplet",$e=window[yt];($e==null||!$e.recalculateEnvironments)&&Ke!==null&&!Ke.className.match(/fullscreen/)&&(Ke.parentNode.style.transform="",!isNaN(lt)&<!==1?(Ke.parentNode.style.width=Te.width*lt+"px",Ke.parentNode.style.height=Te.height*lt+"px",Ee(Ke,lt)):(Ee(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(je),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ge).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:We,positionCenter:ke,getScale:Pe,scaleElement:Ee}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var We=n.location.search;return We.indexOf(J)!=-1||We.indexOf(K)!=-1}function q(We,Ee){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(We){var Ee=s[L].bindings;s[L].bindings=function(){for(var ae=Ee?Ee():{},oe=We[webModule.__softPermutationId],Pe=O;Pe<oe.length;Pe++){var ke=oe[Pe];ae[ke[O]]=ke[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var We=o.createElement(Q);if(We.id=L,We.style.cssText=R+S,We.tabIndex=-1,o.body.appendChild(We),t=We.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ee=document.compatMode==U?V:W;t.write(Ee+X),t.close()}}}function w(We){function Ee(oe){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ke=Pe();if(ke){oe();return}function De(){if(!ke){if(!Pe())return;ke=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,De,!1),je&&clearInterval(je)}}o.addEventListener&&o.addEventListener(Z,De,!1);var je=setInterval(function(){De()},$)}function ae(oe){var Pe=u(),ke=Pe.body,De=Pe.createElement(_);De.language=ab,De.crossOrigin=W,De.src=oe,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),ke.appendChild(De)}Ee(function(){ae(We)})}webModule.__startLoadingFragment=function(We){return C(We)},webModule.__installRunAsyncCode=function(We){var Ee=u(),ae=Ee.body,oe=Ee.createElement(_);oe.language=ab,oe.text=We,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(We){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(We){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(We){var Ee=c[We];return Ee==null?null:Ee},r=d,webModule.__errFn=e}function B(){function We(je){var Te=je.lastIndexOf(rb);Te==-1&&(Te=je.length);var Ge=je.indexOf(sb);Ge==-1&&(Ge=je.length);var lt=je.lastIndexOf(tb,Math.min(Ge,Te));return lt>=O?je.substring(O,lt+P):W}function Ee(je){if(!je.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=je+vb,je=We(Te.src)}return je}function ae(){var je=__gwt_getMetaProperty(wb);return je!=null?je:W}function oe(){for(var je=o.getElementsByTagName(_),Te=O;Te<je.length;++Te)if(je[Te].src.indexOf(xb)!=-1)return We(je[Te].src);return W}function Pe(){var je=o.getElementsByTagName(yb);return je.length>O?je[je.length-P].href:W}function ke(){var je=o.location;return je.href==je.protocol+zb+je.host+je.pathname+je.search+je.hash}var De=ae();return De==W&&(De=oe()),De==W&&(De=Pe()),De==W&&ke()&&(De=We(o.location.href)),De=Ee(De),De}function C(We){return We.match(/^\//)||We.match(/^[a-zA-Z]+:\/\//)?We:webModule.__moduleBase+We}function D(){var We=[],Ee=O,ae=[],oe=[];function Pe(je){var Te=oe[je](),Ge=ae[je];if(Te in Ge)return Te;var lt=[];for(var Ke in Ge)lt[Ge[Ke]]=Ke;throw r&&r(je,lt,Te),null}if(__gwt_isKnownPropertyValue=function(je,Te){return Te in ae[je]},webModule.__getPropMap=function(){var je={};for(var Te in ae)ae.hasOwnProperty(Te)&&(je[Te]=Pe(Te));return je},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ke;try{ke=Cb;var De=ke.indexOf(Db);De!=-1&&(Ee=parseInt(ke.substring(De+P),$),ke=ke.substring(O,De))}catch(je){}return webModule.__softPermutationId=Ee,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(We,Ee,ae){"use strict";ae.d(Ee,{Ax:function(){return De},Ds:function(){return je},KI:function(){return Ge},SI:function(){return ke},f1:function(){return Pe}});var oe=ae(346);function Pe(lt){let Ke=!0;if(lt.length>0){for(let He=0;He<lt.length;He++)if(lt[He].compile_success==0||!lt[He].compile_success){Ke=!1;break}}else Ke=!1;return Ke}function ke(lt,Ke=""){let He=[];for(let yt=0;yt<lt.length;yt++){let $e=lt[yt],Mt=Ke?`${Ke}/${$e.name}`:`${$e.name}`;He.push({title:$e.name,type:$e.type,isLeaf:$e.type!=="tree",key:Mt})}return He}function De(lt,Ke,He){for(let yt=0;yt<lt.length;yt++){let $e=lt[yt];if($e.key===Ke){$e.children=He;break}$e.children&&De($e.children,Ke,He)}return lt}function je(lt,Ke,He){let yt;return function(){let $e=this,Mt=arguments,Fe=function(){yt=null,He||lt.apply($e,Mt)},te=He&&!yt;clearTimeout(yt),yt=setTimeout(Fe,Ke),te&<.apply($e,Mt)}}const Te=!0,Ge=oe.Z.API_SERVER},84842:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Fe}});var oe=ae(99571),Pe=ae(59301),ke=Object.defineProperty,De=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Ke=(te,ee,he)=>ee in te?ke(te,ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):te[ee]=he,He=(te,ee)=>{for(var he in ee||(ee={}))Ge.call(ee,he)&&Ke(te,he,ee[he]);if(Te)for(var he of Te(ee))lt.call(ee,he)&&Ke(te,he,ee[he]);return te},yt=(te,ee)=>De(te,je(ee)),$e=(te,ee)=>{var he={};for(var ue in te)Ge.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&<.call(te,ue)&&(he[ue]=te[ue]);return he},Mt=(te,ee,he)=>new Promise((ue,fe)=>{var me=Ie=>{try{Ae(he.next(Ie))}catch(Xe){fe(Xe)}},be=Ie=>{try{Ae(he.throw(Ie))}catch(Xe){fe(Xe)}},Ae=Ie=>Ie.done?ue(Ie.value):Promise.resolve(Ie.value).then(me,be);Ae((he=he.apply(te,ee)).next())});const Fe=te=>{var ee=te,{children:he}=ee,ue=$e(ee,["children"]);const[fe,me]=(0,Pe.useState)(!1);return Pe.createElement(oe.ZP,yt(He({},ue),{loading:fe,onClick:be=>Mt(void 0,null,function*(){try{me(!0),yield ue.onClick(be),me(!1)}catch(Ae){console.error(Ae),me(!1)}})}),he)}},85788:function(We,Ee,ae){"use strict";var oe=ae(86204),Pe=ae.n(oe),ke=Object.defineProperty,De=(lt,Ke,He)=>Ke in lt?ke(lt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):lt[Ke]=He,je=(lt,Ke,He)=>De(lt,typeof Ke!="symbol"?Ke+"":Ke,He),Te=(lt,Ke,He)=>new Promise((yt,$e)=>{var Mt=ee=>{try{te(He.next(ee))}catch(he){$e(he)}},Fe=ee=>{try{te(He.throw(ee))}catch(he){$e(he)}},te=ee=>ee.done?yt(ee.value):Promise.resolve(ee.value).then(Mt,Fe);te((He=He.apply(lt,Ke)).next())});class Ge extends oe.EventEmitter{constructor(Ke,He){super(),je(this,"url"),je(this,"body"),je(this,"fullContent",""),je(this,"controller",null),je(this,"buffer",""),this.url=Ke,this.body=He}startStream(){return Te(this,null,function*(){this.controller=new AbortController;const{signal:Ke}=this.controller;try{const He=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Ke});if(!He.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${He.status}`);const yt=He.headers.get("content-type");if(!yt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(yt.includes("application/json")){const Fe=yield He.json();this.emit("error",Fe);return}if(!yt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const $e=He.body.getReader(),Mt=new TextDecoder("utf-8");for(;;){const{done:Fe,value:te}=yield $e.read();if(Fe)break;const ee=Mt.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(He){He.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",He.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()}}Ee.Z=Ge},81679:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Mt}});var oe=ae(59301),Pe=ae(30641),ke=ae(77019),De=ae(5269),je={smartWrp:"smartWrp___NjRcB"},Te=ae(75975),Ge=ae(9148),lt=ae(84842),Ke=ae(59301),He=(Fe,te,ee)=>new Promise((he,ue)=>{var fe=Ae=>{try{be(ee.next(Ae))}catch(Ie){ue(Ie)}},me=Ae=>{try{be(ee.throw(Ae))}catch(Ie){ue(Ie)}},be=Ae=>Ae.done?he(Ae.value):Promise.resolve(Ae.value).then(fe,me);be((ee=ee.apply(Fe,te)).next())});const yt=`<!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 $e({open:Fe=!0,onChange:te,defaultValue:ee,placement:he,width:ue,height:fe,extra:me,onDynamic:be,onOpenChange:Ae,showExtra:Ie=!0}){const Xe=(0,oe.useRef)(null),nt=(0,oe.useRef)(null),[Je,st]=(0,oe.useState)(ee||""),[gt,rt]=(0,oe.useState)(ee||""),[mt,xt]=(0,oe.useState)(!!Fe),[Tt,zt]=(0,oe.useState)(1),Qt={selectOnLineNumbers:!0};(0,oe.useEffect)(()=>{Fe&&(st(ee),rt(ee),xt(!0))},[Fe,ee]),(0,oe.useEffect)(()=>{Je!==""&&(clearTimeout(nt.current),nt.current=setTimeout(()=>{const Cn=document.createElement("iframe");if(Cn.style.width="100%",Cn.style.height="100%",Cn.style.border="0",Xe.current){Xe.current.innerHTML="",Xe.current.appendChild(Cn);const St=Cn.contentDocument||Cn.contentWindow.document;St.open(),St.write(Je),St.close()}},1e3))},[Fe,Je]);const Kt=Cn=>{st(Cn),te==null||te(Cn,gt)};return Ke.createElement(Pe.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:mt,width:"100%",height:fe||"100vh",rootClassName:je.smartWrp,destroyOnClose:!0,onClose:()=>{xt(!1),Ae==null||Ae(Je)},extra:Ie&&Ke.createElement("div",null,Ke.createElement(Ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Tt,onChange:Cn=>zt(Cn)}),Ke.createElement(lt.Z,{type:"primary",className:"ml20",onClick:()=>He(this,null,function*(){yield be(Je,()=>{xt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Ke.createElement(ke.Z,{className:"h100"},Ke.createElement(De.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Tt===1?"block":"none"}},Ke.createElement("div",{className:"h100",ref:Xe})),Ke.createElement(De.Z,{flex:"1",style:{display:Tt===2?"block":"none"}},Ke.createElement(Te.ZP,{height:"90vh",value:ee,language:"html",theme:"vs",showMiniMap:!1,options:Qt,onChange:Kt}))))}var Mt=$e},10946:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Je}});var oe=ae(59301),Pe=ae(72460),ke=ae(77596),De=ae(3977),je=ae(14179),Te=ae(56102),Ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},lt=ae(6767),Ke=ae(90083),He=ae(95827),yt=ae(30084),$e=ae(10787),Mt=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,be=(st,gt,rt)=>gt in st?te(st,gt,{enumerable:!0,configurable:!0,writable:!0,value:rt}):st[gt]=rt,Ae=(st,gt)=>{for(var rt in gt||(gt={}))fe.call(gt,rt)&&be(st,rt,gt[rt]);if(ue)for(var rt of ue(gt))me.call(gt,rt)&&be(st,rt,gt[rt]);return st},Ie=(st,gt)=>ee(st,he(gt)),Xe=(st,gt)=>{var rt={};for(var mt in st)fe.call(st,mt)&>.indexOf(mt)<0&&(rt[mt]=st[mt]);if(st!=null&&ue)for(var mt of ue(st))gt.indexOf(mt)<0&&me.call(st,mt)&&(rt[mt]=st[mt]);return rt},Je=({onFinish:st,value:gt,streamingStatus:rt,cancelIndex:mt,loadImage:xt,onDynamic:Tt,isHiddenHtml:zt})=>{const[Qt,Kt]=(0,oe.useState)(""),[Cn,St]=(0,oe.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[pt,ct]=(0,oe.useState)(0),[qt,fn]=(0,oe.useState)(!1),kt=Vn=>Vn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Vt,Ot)=>`<mathx data-text="${Ot.trim()}">$$${Ot.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,"`$&`"),xn=()=>{fn(!0),st==null||st()};(0,oe.useEffect)(()=>{const Vn=xt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
|
|
${gt}`:gt,Vt=kt(Vn);if(!qt)if(xt||!rt||mt>0){Kt(Vt),ct(Vt.length),(!rt||mt>0)&&!xt&&xn();return}else if((Vt==null?void 0:Vt.length)<4)Kt(Vt),ct(Vt.length);else if(pt<Vt.length){const Ot=Vt.length-pt,Nn=setInterval(()=>{Kt(Vt.slice(0,pt+2)),ct(tr=>tr+2)},Ot>10?Math.max(500/(Ot/2),20):50);return()=>clearInterval(Nn)}else rt||xn()},[gt,rt,mt,xt,pt]);const kn=(0,oe.useMemo)(()=>oe.createElement("section",{className:`${Ge.answer} fadeIn animated edu_md`},oe.createElement(Pe.UG,{remarkPlugins:[yt.Z,$e.Z],rehypePlugins:[He.Z,De.Z],components:{code(Vn){var Vt=Vn,{node:Ot,inline:Nn,className:tr,children:hr}=Vt,ot=Xe(Vt,["node","inline","className","children"]);const _e=/language-(\w+)/.exec(tr||""),Re=String(hr).trim();return Nn||!_e?oe.createElement("code",Ae({className:tr},ot),hr):oe.createElement("code",{className:Ge.codeCopy,"data-text":`\`\`\`${_e?_e[1]:""}
|
|
|
${hr}
|
|
|
\`\`\``},!zt&&oe.createElement(Te.CopyToClipboard,{text:Re,onCopy:()=>lt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement("button",null,"\u590D\u5236")),!zt&&_e[1]==="html"&&qt&&oe.createElement("button",{className:Ge.runCode,onClick:()=>{St(Ae({},Ie(Ae({},Cn),{open:++Cn.open,defaultValue:Re,language:_e[1]})))}},"\u8FD0\u884CHTML"),oe.createElement(ke.Z,Ae({wrapLongLines:!0,style:je.Z,language:_e[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},ot),Re))},img({node:Vn}){var Vt;const Ot=(Vt=Vn.properties)==null?void 0:Vt.src;return oe.createElement(Ke.Z,{src:Ot,width:320,"data-text":Ot,onLoad:()=>xt&&setTimeout(()=>xn(),500)})},a:Vn=>{var Vt=Vn,{node:Ot}=Vt,Nn=Xe(Vt,["node"]);return oe.createElement("a",Ie(Ae({},Nn),{target:"_blank",rel:"noopener noreferrer"}))}}},qt?Qt:`${Qt}__`)),[Qt]);return oe.createElement(oe.Fragment,null,oe.createElement(Fe.Z,{defaultValue:Cn.defaultValue,open:Cn.open,language:Cn.language,height:Cn.height,onChange:(Vn,Vt)=>{Kt(Qt.replaceAll(Vt,Vn))},onDynamic:Tt}),kn)}},82105:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return nt}});var oe=ae(59301),Pe=ae(6767),ke=ae(30641),De=ae(77019),je=ae(62957),Te=ae(37568),Ge=ae(14566),lt=ae(25399),Ke=ae(5269),He=ae(71051),yt={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},$e=ae(9148),Mt=ae(346),Fe=ae(50043),te=ae(38986),ee=ae(72409),he=ae(51257),ue=ae(91239),fe=ae(35902),me=ae(85020),be=ae(25872),Ae="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==",Ie=(Je,st,gt)=>new Promise((rt,mt)=>{var xt=Qt=>{try{zt(gt.next(Qt))}catch(Kt){mt(Kt)}},Tt=Qt=>{try{zt(gt.throw(Qt))}catch(Kt){mt(Kt)}},zt=Qt=>Qt.done?rt(Qt.value):Promise.resolve(Qt.value).then(xt,Tt);zt((gt=gt.apply(Je,st)).next())}),nt=(0,oe.forwardRef)(({onUpdateNum:Je,onSave:st},gt)=>{var rt;const mt=`\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%`,[xt,Tt]=(0,oe.useState)(!1),[zt,Qt]=(0,oe.useState)([]),[Kt,Cn]=(0,oe.useState)(null),[St,pt]=(0,oe.useState)([]),[ct,qt]=(0,oe.useState)(0),[fn,kt]=(0,oe.useState)(0),[xn,kn]=(0,oe.useState)(!1),[Vn,Vt]=(0,oe.useState)(""),[Ot,Nn]=(0,oe.useState)(0),[tr,hr]=(0,oe.useState)(0),[ot,_e]=(0,oe.useState)(0),[Re,Ye]=(0,oe.useState)(0),[at,Be]=(0,oe.useState)(0),[bt,bn]=(0,oe.useState)(0),[sn,Bn]=(0,oe.useState)(0),[It,_t]=(0,oe.useState)(0),[jt,hn]=(0,oe.useState)(be.Q),{contentRef:En,value:pn,status:Rt,open:Tn,close:Yt}=jt,en=(0,fe.Z)({contentRef:En,status:Rt}),{openProgress:vn,closeProgress:zn,CreateProgressModal:un,progressOpen:Et}=(0,ue.Z)();(0,oe.useEffect)(()=>{Kt&&Er(),Kt===!1&&(Yt(),Je==null||Je(),Qt([]),Vt(""),Nn(0),hr(0),_e(0),Ye(0),Be(0),bn(0),Bn(0),_t(0))},[Kt]);const Xn=()=>{Cn(!0)};(0,oe.useImperativeHandle)(gt,()=>({onClick:Xn}));const ir=lr=>{kn(!0),qt(lr),kt(0)},Jt=lr=>Ie(void 0,null,function*(){const jr=lr.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(jr)==-1?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):lr.size/1024/1024>10?(Pe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Er=()=>Ie(void 0,null,function*(){const lr=yield(0,te.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});lr.status===0&&(qt(lr.total_number),kt(lr.remaining_number))}),ni=lr=>(lr=lr||"",lr=String(lr),lr=lr.replace(/\s+/g,""),lr),Rr=(lr=!0)=>Ie(void 0,null,function*(){var jr,oi;const Oe=[{name:"\u5355\u9009\u9898",num:Ot||0},{name:"\u591A\u9009\u9898",num:tr||0},{name:"\u5224\u65AD\u9898",num:ot||0},{name:"\u586B\u7A7A\u9898",num:Re||0},{name:"\u7B80\u7B54\u9898",num:at||0},{name:"\u7EC4\u5408\u9898",num:It||0},{name:"\u7F16\u7A0B\u9898",num:bt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:sn||0}];if(lr){if(ni(Vn)){if(Vn.length>1e3){Pe.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Pe.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!ni(Vn)&&!(zt!=null&&zt.length)){Pe.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const or=Oe.reduce((Lr,zr)=>Lr+zr.num,0);if(or===0){Pe.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(or>50){Pe.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(ct!==-1){kn(!0);return}}kn(!1);const Pr={scene_type:6,request_identifier:Math.random(),file_id:(oi=(jr=zt[0])==null?void 0:jr.response)==null?void 0:oi.id,content:Vn,count_arr:Oe.map(or=>or.num).join(",")};yield Tn(Pr),Er()}),Mn=()=>Ie(void 0,null,function*(){const lr=en();if(st){Cn(!1),st(lr);return}vn(),Tt(!0),pt([]);const jr=new FormData;jr.append("html",lr);const oi=yield(0,te.ZP)("/api/intelligent_imports/import.json",{method:"post",body:jr},!0);if((oi==null?void 0:oi.status)===0)if(oi!=null&&oi.data){zn(100),pt(oi==null?void 0:oi.data);return}else Pe.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Tt(!1),zn()}),ei=()=>Ie(void 0,null,function*(){const lr=en();(0,he.RG)(lr)}),Kr=["uploading","error"].includes((rt=zt==null?void 0:zt[0])==null?void 0:rt.status);return oe.createElement(oe.Fragment,null,oe.createElement(me.Z,{visible:xn,totalCount:ct,usedCount:fn,onCancel:()=>kn(!1),onOk:()=>Rr(!1)}),oe.createElement(ke.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:oe.createElement("div",{className:yt.extraHeader},oe.createElement(De.Z,{align:"middle"},!Rt&&!!pn&&oe.createElement(oe.Fragment,null,oe.createElement($e.op,{onClick:Mn,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),oe.createElement($e.op,{onClick:ei,shape:"default",type:"text"},oe.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),oe.createElement("i",{onClick:()=>{const lr=jr=>{je.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:jr,onOk:()=>{Cn(!1)}})};if(Rt){lr("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else pn?lr("\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:Kt},oe.createElement("div",{className:yt.wrap},oe.createElement("div",{className:yt.left},oe.createElement("div",{className:yt.tip},oe.createElement("img",{src:Ae}),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:Vn,placeholder:mt,onChange:lr=>{Vt(lr.target.value)}}),oe.createElement(Ge.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${Mt.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:zt,withCredentials:!0,data:{upload_type:1},beforeUpload:Jt,onChange:({file:lr})=>{var jr,oi;lr.status!=="removed"&&(lr.status==="done"&&((jr=lr==null?void 0:lr.response)==null?void 0:jr.status)!==0&&(lr.status="error",lr.response=(oi=lr==null?void 0:lr.response)==null?void 0:oi.message),Qt([lr]))},onRemove:()=>Qt([])},oe.createElement(lt.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($e.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(De.Z,{style:{gap:16}},oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u5355\u9009\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Ot,onChange:Nn,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u591A\u9009\u9898"),oe.createElement(He.Z,{min:0,max:10,value:tr,onChange:hr,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u5224\u65AD\u9898"),oe.createElement(He.Z,{min:0,max:10,value:ot,onChange:_e,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u586B\u7A7A\u9898"),oe.createElement(He.Z,{min:0,max:10,value:Re,onChange:Ye,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7B80\u7B54\u9898"),oe.createElement(He.Z,{min:0,max:10,value:at,onChange:Be,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7EC4\u5408\u9898"),oe.createElement(He.Z,{min:0,max:10,value:It,onChange:_t,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7F16\u7A0B\u9898"),oe.createElement(He.Z,{min:0,max:10,value:bt,onChange:bn,style:{marginLeft:"8px"}})),oe.createElement(Ke.Z,null,oe.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),oe.createElement(He.Z,{min:0,max:10,value:sn,onChange:Bn,style:{marginLeft:"8px"}})))),Rt?oe.createElement("div",{onClick:Yt,className:yt.bottomBtn},oe.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Kr?oe.createElement("div",{className:`${yt.bottomBtn} ${yt.disabled}`},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):oe.createElement("div",{onClick:()=>{Rr()},className:yt.bottomBtn},oe.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),oe.createElement(be.Z,{onStatusChange:hn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Et,noRestrictModal:ir,stringTransformer:ee.o,onError:lr=>{Object.prototype.toString.call(lr)==="[object Object]"&&lr.status===-9&&ir(lr.data)}}))),oe.createElement(ke.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:xt},oe.createElement(De.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:St,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Tt(!1),onSuccess:()=>{Tt(!1),Cn(!1)}}),oe.createElement("div",{style:{height:70}})),un("\u5904\u7406\u4E2D"))})},25395:function(We,Ee,ae){"use strict";var oe=ae(59301);const Pe=({scrollBoxRef:ke,bottomInspectRef:De,contentRef:je,status:Te,rootMargin:Ge="70px",bottomOffset:lt=110})=>{const[Ke,He]=(0,oe.useState)(!0),yt=(0,oe.useRef)(!1);return(0,oe.useEffect)(()=>{if(!ke.current||!De.current)return;const $e=new IntersectionObserver(([Mt])=>{var Fe,te,ee,he;if(!document.contains(Mt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Fe=Mt.rootBounds)==null?void 0:Fe.width)===0&&((te=Mt.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=Mt.boundingClientRect)==null?void 0:ee.width)===0&&((he=Mt.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}He(Mt.isIntersecting)},{root:ke.current,rootMargin:Ge,threshold:0});return $e.observe(De.current),()=>{$e.disconnect()}},[ke.current,De.current,Ge]),(0,oe.useEffect)(()=>{if(!Te)return;const $e=ke.current,Mt=je.current;yt.current=!1;let Fe=$e.scrollTop;const te=()=>{const{scrollTop:he,scrollHeight:ue,clientHeight:fe}=$e;he>Fe?he+fe>=ue-lt&&($e.scrollTop=$e.scrollHeight,yt.current=!1):he<Fe&&(yt.current=!0),Fe=he};$e.addEventListener("scroll",te);const ee=new ResizeObserver(()=>{yt.current||($e.scrollTop=$e.scrollHeight)});return ee.observe(Mt),()=>{setTimeout(()=>{ee.unobserve(Mt)},250),$e.removeEventListener("scroll",te)}},[Te]),Ke};Ee.Z=Pe},35902:function(We,Ee,ae){"use strict";var oe=ae(59301);const Pe=({contentRef:ke,status:De})=>((0,oe.useEffect)(()=>{!De&&(ke!=null&&ke.current)&&ke.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Ge=>{Ge.tagName.toLowerCase()==="code"?Ge.parentElement&&(Ge.parentElement.contentEditable="false"):Ge.tagName.toLowerCase()==="mathx"&&(Ge.contentEditable="false")})},[De]),(Te=!1)=>{const Ge=yt=>{const $e={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return yt.replace(/&[^;]+;/g,Mt=>$e[Mt]||Mt)};if(!ke.current)return"";const lt=ke.current.cloneNode(!0);lt.querySelectorAll("code[data-text], mathx[data-text]").forEach(yt=>{let $e=yt.getAttribute("data-text");yt.tagName.toLowerCase()==="code"?$e=$e.replace(/```.*\n|\n```/g,""):yt.tagName.toLowerCase()==="mathx"&&($e=`$$${$e}$$`);const Mt=document.createTextNode($e);yt.parentNode.replaceChild(Mt,yt)}),Te&<.querySelectorAll('[data-select="disabled"]').forEach($e=>{var Mt;const Fe=$e.textContent||"",te=document.createTextNode(Fe+`
|
|
|
`);(Mt=$e.parentNode)==null||Mt.replaceChild(te,$e)});let He=lt.innerHTML;return Te||(He=He.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),He=He.replace(/<p>/g,""),He=He.replace(/<\/p>/g,`
|
|
|
`),He=He.replace(/<br>/g,`
|
|
|
`),He=He.replace(/\r\n/g,`
|
|
|
`),He=He.replace(/<[^>]*>/g,""),He=Ge(He),He});Ee.Z=Pe},91239:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Pe=ae(62957),ke=ae(77019),De=ae(60242),je="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==",Ge="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=",lt={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Ke=ae(59301);const He=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var $e=()=>{const[Mt,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 nt=()=>{Fe(Je=>Je>=99?(clearInterval(fe.current),99):Je+1)};return fe.current=setInterval(nt,5e4/99),()=>clearInterval(fe.current)},[he]);const me=()=>{Fe(0),ee(!0),ue(!1)},be=(nt=0)=>{ue(!0),Fe(nt),ee(!1)},Ae=nt=>{const Je=nt/1048576;let st;return Je<=.3?st=3:Je<=.5?st=5:Je<=1?st=10:Je<=2?st=20:Je<=3?st=30:Je<=10?st=Je*10:st=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${st}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},Ie=()=>Ke.createElement("span",{className:lt.dotLoading},Ke.createElement("span",null,"."),Ke.createElement("span",null,"."),Ke.createElement("span",null,"."));return{progress:Mt,progressOpen:te,openProgress:me,closeProgress:be,toggleLock:()=>ue(nt=>!nt),CreateProgressModal:(nt=He,Je)=>(typeof nt=="string"&&(nt=[nt,nt,nt]),Ke.createElement(Pe.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"}},Mt<=30&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:je,alt:"Step 1"}),Ke.createElement("div",{className:"mt20 c-light-primary"},nt[0],Ie())),Mt>30&&Mt<60&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:Te,alt:"Step 2"}),Ke.createElement("div",{className:"mt20 c-light-primary"},nt[1],Ie())),Mt>=60&&Ke.createElement(Ke.Fragment,null,Ke.createElement("img",{src:Ge,alt:"Step 3"}),Ke.createElement("div",{className:"mt20 c-light-primary"},nt[2],Ie())),Ke.createElement(De.Z,{className:lt.progress,status:"active",style:{width:"auto"},size:[300,8],percent:Mt}),!!Je&&Ke.createElement("div",{className:"c-grey-999"},Ae(Je)))))}}},74368:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ct}});var oe=ae(59301),Pe=ae(75727),ke=ae(6767),De=ae(25399),je=ae(37568),Te=ae(99571),Ge=ae(10946),lt={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"},He=({position:qt,children:fn})=>{const{left:kt=0,top:xn=0}=qt||{},[kn,Vn]=(0,oe.useState)(kt),[Vt,Ot]=(0,oe.useState)(xn),Nn=(0,oe.useRef)(null),tr=()=>{if(Nn.current){const hr=Nn.current.offsetWidth,ot=Nn.current.offsetHeight,_e=window.innerWidth,Re=window.innerHeight;let Ye=kt,at=xn;kt+hr>_e&&(Ye=_e-hr),Ye<0&&(Ye=0),xn+ot>Re&&(at=Re-ot),at<0&&(at=0),Vn(Ye),Ot(at)}};return(0,oe.useEffect)(()=>{if(!Nn.current||!qt)return;const hr=new ResizeObserver(()=>{tr()});return hr.observe(Nn.current),()=>{hr.disconnect()}},[kt,xn,qt]),(0,oe.useEffect)(()=>{qt&&tr()},[kt,xn,qt]),qt?oe.createElement("div",{ref:Nn,style:{position:"fixed",left:`${kn}px`,top:`${Vt}px`,zIndex:1050}},fn):null},yt=ae(346),$e=ae(56102),Mt=ae(85788),Fe=Object.defineProperty,te=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,me=(qt,fn,kt)=>fn in qt?Fe(qt,fn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):qt[fn]=kt,be=(qt,fn)=>{for(var kt in fn||(fn={}))ue.call(fn,kt)&&me(qt,kt,fn[kt]);if(he)for(var kt of he(fn))fe.call(fn,kt)&&me(qt,kt,fn[kt]);return qt},Ae=(qt,fn)=>te(qt,ee(fn)),Ie=(qt,fn,kt)=>new Promise((xn,kn)=>{var Vn=Nn=>{try{Ot(kt.next(Nn))}catch(tr){kn(tr)}},Vt=Nn=>{try{Ot(kt.throw(Nn))}catch(tr){kn(tr)}},Ot=Nn=>Nn.done?xn(Nn.value):Promise.resolve(Nn.value).then(Vn,Vt);Ot((kt=kt.apply(qt,fn)).next())}),nt=({visible:qt,position:fn,selectText:kt,applyRefinedText:xn,fetchUrl:kn,noRestrictModal:Vn})=>{var Vt;const[Ot,Nn]=(0,oe.useState)(!1),[tr,hr]=(0,oe.useState)([]),[ot,_e]=(0,oe.useState)(""),[Re,Ye]=(0,oe.useState)(1),[at,Be]=(0,oe.useState)(""),[bt,bn]=(0,oe.useState)(!1),sn=(0,oe.useRef)(null),[Bn,It]=(0,oe.useState)(!1),[_t,jt]=(0,oe.useState)(0),hn=(0,oe.useRef)(!1),En=((Vt=tr==null?void 0:tr[(tr==null?void 0:tr.length)-1])==null?void 0:Vt.loading)===!0;(0,oe.useEffect)(()=>{if(qt){Ye(1);return}It(!1),Nn(!1),pn(),jt(0),hr([]),Ye(0)},[qt]);const pn=()=>{var Rr,Mn;_e(""),Be(""),(Mn=(Rr=sn.current)==null?void 0:Rr.cancelRequest)==null||Mn.call(Rr)},Rt=(...Rr)=>Ie(void 0,[...Rr],function*(Mn="",ei=tr){const Kr=Date.now(),lr=[...ei,{text:Mn,key:Kr,sender:"user",show:!0},{loading:!0,key:Kr,sender:"AI",show:!0}];Ye(2),hr(lr);const jr=Yt(ei),oi={no_record_times:!0,prompt:Mn,history:jr};sn.current=new Mt.Z(yt.Z.API_SERVER+kn,oi),yield new Promise(Oe=>{sn.current.on("data",dr=>{const{chunk:{msg:Pr},full:or}=dr,Lr=Pr==="error";It(!0),Be(Et(or)),hr(zr=>zr.map((wr,Ti)=>Ti===zr.length-1?Ae(be({},wr),{text:or,loading:!1,error:Lr}):wr))}),sn.current.on("done",()=>Oe()),sn.current.on("error",dr=>{const Pr="\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(dr)==="[object Object]"&&dr.status===-9&&(Ye(1),Vn(dr.data)),hr(or=>or.map((Lr,zr)=>zr===or.length-1?Ae(be({},Lr),{text:Pr,loading:!1,error:!0}):Lr)),Oe()}),sn.current.on("cancelled",()=>Oe()),sn.current.startStream()}),Nn(!1)}),Tn=Rr=>{_e(Rr.target.value)},Yt=Rr=>Rr.reduce((ei,Kr)=>{if(Kr.sender==="user"){const lr=Rr.find(jr=>jr.key===Kr.key&&jr.sender==="AI");lr&&(lr!=null&&lr.text)&&!(lr!=null&&lr.error)&&ei.push({question:Kr.text,answer:lr.text})}return ei},[]),en=()=>{if(ni)return;const Rr=Xn("\u6539\u5199");pn(),Nn(!0),Rt(Rr)},vn=Rr=>{if(Rr.key==="Enter"&&!Rr.shiftKey){if(Rr.preventDefault(),hn.current||Er)return;en()}},zn=()=>{var Rr,Mn;jt(ei=>ei+1),(Mn=(Rr=sn.current)==null?void 0:Rr.cancelRequest)==null||Mn.call(Rr),Nn(!1),It(!1)},un=[{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")}],Et=(Rr="")=>{const Mn=["\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((ei,Kr)=>{Mn.push(`\u7B54\u6848${Kr+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Kr+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Kr+1})\u8F93\u51FA\uFF1A`)}),Mn.forEach(ei=>{const Kr=new RegExp(ei,"g");Rr=Rr.replace(Kr,`**${ei}** `)}),Rr},Xn=Rr=>Rr==="\u6539\u5199"?`${ot}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${kt}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${kt}\uFF0C${Rr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,ir=Rr=>{let Mn="";Rr.key==="1"&&(Mn=Xn("\u6DA6\u8272")),Rr.key==="2"&&(Mn=Xn("\u6269\u5199")),Rr.key==="3"&&(Mn=Xn("\u7F29\u5199")),pn(),Nn(!0),Rt(Mn)},Jt=()=>{const Rr=tr.splice(tr.length-2),{text:Mn}=(Rr==null?void 0:Rr[0])||{};pn(),Nn(!0),Rt(Mn,tr)},Er=Ot||Bn,ni=(ot==null?void 0:ot.trim())==="";return qt?oe.createElement(Pe.Z,{open:ni&&!Er&&(bt||!at),overlayStyle:{minWidth:200},menu:{items:un,onClick:ir}},oe.createElement(He,{position:fn},oe.createElement("div",{className:lt.wrap},Re===2&&oe.createElement(oe.Fragment,null,oe.createElement("div",{className:lt.chatContainer},En&&oe.createElement("div",{className:lt.loadingWrp},oe.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),oe.createElement("div",{className:"ai-loading"})),at&&oe.createElement(Ge.Z,{cancelIndex:_t,streamingStatus:Ot,loadImage:!1,onFinish:()=>Ie(void 0,null,function*(){jt(0),setTimeout(()=>It(!1),0)}),value:at})),oe.createElement("div",{className:lt.btnContainer},oe.createElement("div",{onClick:()=>xn(!0,at),className:lt.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),oe.createElement("div",{onClick:()=>xn(!1,at),className:lt.btn,style:{padding:"0 16px",width:"initial"}},oe.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),oe.createElement($e.CopyToClipboard,{text:at,onCopy:()=>ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},oe.createElement(De.Z,{title:"\u590D\u5236"},oe.createElement("div",{className:lt.btn,style:{marginLeft:"auto"}},oe.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),oe.createElement(De.Z,{title:"\u91CD\u65B0\u751F\u6210"},oe.createElement("div",{onClick:Jt,className:lt.btn},oe.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),oe.createElement(De.Z,{title:"\u5220\u9664"},oe.createElement("div",{onClick:()=>{Ye(1),pn(),hr([])},className:lt.btn},oe.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),oe.createElement("div",{className:lt.inputContainer},oe.createElement(je.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:ot,bordered:!1,onFocus:()=>bn(!0),onBlur:()=>setTimeout(()=>bn(!1),300),onChange:Tn,onPressEnter:vn,onCompositionStart:()=>hn.current=!0,onCompositionEnd:()=>hn.current=!1}),Bn?oe.createElement("div",{className:`iconfont icon-tingzhihuida ${lt.cancelBtn}`,onClick:zn}):oe.createElement(Te.ZP,{className:ni?lt.sendBtnDisabled:lt.sendBtn,icon:oe.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Er,onClick:en}))))):oe.createElement(oe.Fragment,null)},Je={"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"},st=Object.defineProperty,gt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,xt=(qt,fn,kt)=>fn in qt?st(qt,fn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):qt[fn]=kt,Tt=(qt,fn)=>{for(var kt in fn||(fn={}))rt.call(fn,kt)&&xt(qt,kt,fn[kt]);if(gt)for(var kt of gt(fn))mt.call(fn,kt)&&xt(qt,kt,fn[kt]);return qt};const zt=qt=>React.createElement("svg",Tt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},qt),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 Qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Cn=(0,oe.forwardRef)(({initialContent:qt,onButtonClick:fn},kt)=>{const[xn,kn]=(0,oe.useState)(null),[Vn,Vt]=(0,oe.useState)(null),[Ot,Nn]=(0,oe.useState)(""),[tr,hr]=(0,oe.useState)(null),ot=kt,_e=sn=>{const Bn=document.elementFromPoint(10,sn),It=document.createRange();let _t=null;const jt=document.createTreeWalker(ot.current,NodeFilter.SHOW_TEXT,{acceptNode:en=>{const vn=document.createRange();vn.selectNodeContents(en);const zn=vn.getBoundingClientRect();return zn.top<=sn&&zn.bottom>=sn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let hn="",En,pn,Rt=null,Tn=null,Yt=null;for(;En=jt.nextNode();){En.parentNode.getAttribute("data-select")==="disabled"&&(pn=!0),hn+=En.textContent,Tn||(Tn=En),Yt=En;const en=document.createRange();en.selectNodeContents(En);const vn=en.getBoundingClientRect();Rt===null&&(Rt=vn.top)}if(Tn&&Yt&&!pn){const en=document.createRange();en.setStart(Tn,0),en.setEnd(Yt,Yt.textContent.length),hr(en)}else hr(null);return Vt(Rt-1),pn?"":hn.trim()};function Re(sn){for(;sn.parentElement&&sn.parentElement.tagName.toLowerCase()!=="section";){var Bn=window.getComputedStyle(sn.parentElement);if(Bn.pointerEvents==="none")return!0;sn=sn.parentElement}return!1}const Ye=sn=>{var Bn,It;if(Re(sn.target)){Vt(-1e6);return}if(((It=(Bn=document.getSelection())==null?void 0:Bn.toString)==null?void 0:It.call(Bn))!==""){Vt(-1e6);return}const _t=_e(sn.clientY);if((_t==null?void 0:_t.trim())===""){Vt(-1e6);return}const jt=ot.current.getBoundingClientRect();kn(jt.left-30),Nn(_t)},at=()=>{},Be=sn=>{fn&&Ot&&fn(Ot,sn.clientX,sn.clientY,tr)},bt=()=>{if(tr){const sn=window.getSelection();sn.removeAllRanges(),sn.addRange(tr)}},bn=()=>{window.getSelection().removeAllRanges()};return(0,oe.useEffect)(()=>{const sn=ot.current;return sn.addEventListener("mousemove",Ye),sn.addEventListener("mouseleave",at),()=>{sn.removeEventListener("mousemove",Ye),sn.removeEventListener("mouseleave",at),bn()}},[qt]),oe.createElement("div",{className:Je["hover-line-container2"]},Vn!==null&&oe.createElement("div",{className:Je["line-button-container"],style:{top:Vn,left:xn},onMouseEnter:()=>{bt()},onMouseLeave:()=>{bn(),Vt(null),Nn(""),hr(null)}},oe.createElement("div",{className:Je.button,onClick:Be},oe.createElement("img",{src:Qt}),oe.createElement("span",null,"AI\u6539\u5199"))))}),St={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},ct=({nodeRef:qt,noRestrictModal:fn})=>{const[kt,xn]=(0,oe.useState)(null),[kn,Vn]=(0,oe.useState)(null),[Vt,Ot]=(0,oe.useState)(!1),[Nn,tr]=(0,oe.useState)(null),[hr,ot]=(0,oe.useState)(!1),[_e,Re]=(0,oe.useState)(!1),Ye=qt,at=(0,oe.useRef)(null),Be=(0,oe.useRef)(null),[bt,bn]=(0,oe.useState)("");(0,oe.useEffect)(()=>{kt!=null&&kt.toString()&&bn(kt==null?void 0:kt.toString())},[kt==null?void 0:kt.toString()]);const sn=()=>{const jt=window.getSelection(),hn=Ye.current.scrollTop,En=Ye.current.getBoundingClientRect();if(jt.rangeCount>0&&jt.toString().length>0){const pn=jt.getRangeAt(0);xn(pn.cloneRange());const Rt=pn.getBoundingClientRect(),Tn=40;let Yt=Rt.top+hn-5+Tn;Yt<hn&&(Yt=Rt.bottom-En.top+hn+5);const en=Ye.current.scrollHeight-Tn;Yt=Math.min(Math.max(Yt,hn),en),Vn({top:Yt+6,left:Rt.left})}else xn(null),Vn(null),Ot(!1);Bn(jt)},Bn=jt=>{if(!jt||jt.rangeCount===0){ot(!1);return}const En=jt.getRangeAt(0).getBoundingClientRect(),pn=window.getComputedStyle(Ye.current),Rt=parseInt(pn.lineHeight),Tn=parseInt(pn.paddingTop),Yt=Ye.current.scrollTop,en=Ye.current.getBoundingClientRect(),vn=En.top-en.top+Yt,zn=Math.floor((vn-Tn)/Rt),un=Tn+zn*Rt-Yt;tr(un),ot(!0)},It=jt=>{Ye.current&&!Ye.current.contains(jt.target)&&Re(!1)};(0,oe.useEffect)(()=>{const jt=Ye.current;return jt.addEventListener("scroll",sn),jt.addEventListener("input",sn),jt.addEventListener("click",sn),jt.addEventListener("mouseup",sn),jt.addEventListener("keyup",sn),jt.addEventListener("click",sn),document.addEventListener("mousedown",It),()=>{jt.removeEventListener("scroll",sn),jt.removeEventListener("input",sn),jt.removeEventListener("click",sn),jt.removeEventListener("mouseup",sn),jt.removeEventListener("keyup",sn),jt.removeEventListener("click",sn),document.removeEventListener("mousedown",It)}},[]);const _t=(jt=!0,hn)=>{if(!kt)return;const En=Be.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),pn=kt.cloneRange(),Rt=window.getSelection();if(Rt.removeAllRanges(),Rt.addRange(pn),jt){pn.deleteContents();const Tn=document.createElement("div");Tn.innerHTML=En;const Yt=Array.from(Tn.childNodes);for(;Yt.length>0;)pn.insertNode(Yt.pop())}else{pn.collapse(!1);const Tn=document.createElement("div");Tn.innerHTML=" "+En;const Yt=Array.from(Tn.childNodes);for(;Yt.length>0;)pn.insertNode(Yt.pop())}Rt.removeAllRanges(),xn(null),Ot(!1),Vn(null)};return oe.createElement("section",{ref:Be},kn&&oe.createElement("div",{ref:at,className:St.toolbar,style:{top:kn==null?void 0:kn.top,left:kn==null?void 0:kn.left}},oe.createElement("div",{className:St.button,onClick:()=>Ot(!0)},oe.createElement("img",{src:Qt}),oe.createElement("span",null,"AI\u6539\u5199"))),oe.createElement(nt,{key:JSON.stringify(kn),noRestrictModal:fn,visible:Vt,position:kn,selectText:bt,applyRefinedText:_t,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),Ye.current&&oe.createElement(Cn,{ref:Ye,onButtonClick:(jt,hn,En,pn)=>{xn(pn),Ot(!0),bn(jt),Vn({left:hn,top:En+20})}}))}},85020:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return je}});var oe=ae(59301),Pe=ae(62957),ke={num:"num___VQiqB"},je=({visible:Te,usedCount:Ge,totalCount:lt,onOk:Ke,onCancel:He})=>{const yt=()=>Ge>0?oe.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",lt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:ke.num},Ge),"\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",lt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",oe.createElement("span",{className:ke.num},Ge),"\u6B21\uFF09\u3002");return oe.createElement(Pe.default,{centered:!0,open:Te,title:"\u63D0\u793A",width:620,onCancel:He,onOk:Ke,footer:Ge>0?void 0:null},yt())}},25872:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee},Q:function(){return Fe}});var oe=ae(59301),Pe={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},ke=ae(85788),De=ae(346),je=ae(10946),Te=ae(74368),Ge=ae(25395),lt=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==",He=ae(92310),yt=ae.n(He),$e=ae(6767),Mt=(he,ue,fe)=>new Promise((me,be)=>{var Ae=nt=>{try{Xe(fe.next(nt))}catch(Je){be(Je)}},Ie=nt=>{try{Xe(fe.throw(nt))}catch(Je){be(Je)}},Xe=nt=>nt.done?me(nt.value):Promise.resolve(nt.value).then(Ae,Ie);Xe((fe=fe.apply(he,ue)).next())});const Fe={contentRef:{current:null},value:null,status:!1,open:()=>Mt(void 0,null,function*(){}),close:()=>{}};var ee=({className:he,style:ue,onChange:fe,onSuccess:me,onCancel:be,onError:Ae,fetchUrl:Ie,noRestrictModal:Xe=()=>{},showEditableToolbar:nt,bottomOffset:Je=110,loadingText:st,showEmptyData:gt=!0,onStatusChange:rt,stringTransformer:mt,bottomContainerNode:xt})=>{const[Tt,zt]=(0,oe.useState)(!1),[Qt,Kt]=(0,oe.useState)(""),[Cn,St]=(0,oe.useState)(0),[pt,ct]=(0,oe.useState)(!1),qt=(0,oe.useRef)(null),fn=(0,oe.useRef)(null),kt=(0,oe.useRef)(null),xn=(0,oe.useRef)(null),kn=(0,Ge.Z)({scrollBoxRef:xn,bottomInspectRef:kt,contentRef:fn,status:pt,bottomOffset:Je}),Vn=Tt||pt;(0,oe.useEffect)(()=>{fe==null||fe(Qt)},[Qt]),(0,oe.useEffect)(()=>{rt==null||rt({contentRef:fn,status:Vn,value:Qt,open:Vt,close:Ot})},[Vn,Qt]);const Vt=tr=>Mt(void 0,null,function*(){zt(!0),Kt(""),St(0);const hr=Ie;tr!=null&&tr.fetchUrl&&delete tr.fetchUrl,qt.current=new ke.Z(`${De.Z.API_SERVER}${hr}`,tr),yield new Promise((ot,_e)=>{qt.current.on("data",Re=>{let{chunk:{content:Ye,type:at}}=Re;ct(!0),at==="text"&&Kt(Be=>mt?mt(Be+Ye):Be+Ye)}),qt.current.on("done",()=>{ot()}),qt.current.on("error",Re=>{Object.prototype.toString.call(Re)==="[object Object]"&&Re.status===-1&&$e.ZP.warning((Re==null?void 0:Re.message)||""),ot(),Ae==null||Ae(Re)}),qt.current.on("cancelled",()=>{ot(),be==null||be()}),qt.current.startStream()}),zt(!1)}),Ot=()=>{var tr,hr;St(1),(hr=(tr=qt.current)==null?void 0:tr.cancelRequest)==null||hr.call(tr),zt(!1),ct(!1)},Nn=(0,oe.useMemo)(()=>fn.current?oe.createElement(Te.Z,{noRestrictModal:Xe,nodeRef:fn}):oe.createElement(oe.Fragment,null),[fn.current]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:yt()(Pe.container,he),style:ue,ref:xn},oe.createElement("div",{ref:fn,className:Pe.liWrap,contentEditable:!Vn},Qt&&oe.createElement(je.Z,{cancelIndex:Cn,streamingStatus:Tt,loadImage:!1,onFinish:()=>Mt(void 0,null,function*(){St(0),setTimeout(()=>ct(!1),0),me==null||me(Qt)}),value:Qt})),!Qt&&!Vn&&oe.createElement("div",{className:Pe.imgBox},oe.createElement("img",{width:56,src:Ke}),oe.createElement("span",null,"\u9884\u89C8\u533A")),gt&&Vn&&oe.createElement(lt.Z,{text:st}),!kn&&oe.createElement("div",{className:Pe.backBottom,onClick:()=>{xn.current.scrollTop=xn.current.scrollHeight}},oe.createElement("i",{className:"iconfont icon-huidaodibu"})),oe.createElement("div",{ref:kt}),xt),!Vn&&nt&&Nn)}},74549:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return De}});var oe=ae(59301),Pe={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},De=({text:je})=>oe.createElement("div",null,oe.createElement("div",{className:Pe.loading},oe.createElement("div",{className:Pe.dot}),oe.createElement("div",{className:Pe.dot}),oe.createElement("div",{className:Pe.dot})),!!je&&oe.createElement("div",{className:"mt5"},je))},72409:function(We,Ee,ae){"use strict";ae.d(Ee,{o:function(){return oe}});const oe=Pe=>(Pe=Pe.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Pe=Pe.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
|
|
|
|
|
|
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
|
|
|
|
|
|
`),Pe)},50337:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return De}});var oe=ae(59301),Pe={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},De=({number:je,active:Te,className:Ge})=>oe.createElement("div",{className:`${Pe.digitalLabel} ${Te?Pe.active:""} ${Ge}`},je)},38518:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ue}});var oe=ae(59301),Pe=ae(18287),ke={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},De=ae(73631),je=ae(5623),Te=ae(46722),Ge=Object.defineProperty,lt=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Mt=(fe,me,be)=>me in fe?Ge(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Fe=(fe,me)=>{for(var be in me||(me={}))yt.call(me,be)&&Mt(fe,be,me[be]);if(He)for(var be of He(me))$e.call(me,be)&&Mt(fe,be,me[be]);return fe},te=(fe,me)=>lt(fe,Ke(me)),ee=(fe,me,be)=>new Promise((Ae,Ie)=>{var Xe=st=>{try{Je(be.next(st))}catch(gt){Ie(gt)}},nt=st=>{try{Je(be.throw(st))}catch(gt){Ie(gt)}},Je=st=>st.done?Ae(st.value):Promise.resolve(st.value).then(Xe,nt);Je((be=be.apply(fe,me)).next())}),ue=({value:fe,onChange:me,scrollId:be})=>{const[Ae,Ie]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{Xe()},[]);const Xe=()=>ee(void 0,null,function*(){const mt=yield(0,Te.NZ)({});if(mt!=null&&mt.data){const xt=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:oe.createElement("img",{src:De,className:ke.folderIcon}),isLeaf:!1,children:nt(mt.data||[])}];Ie(xt)}}),nt=mt=>mt.map(xt=>({title:xt.name,key:xt.group_id,icon:oe.createElement("img",{src:De,className:ke.folderIcon}),isLeaf:xt.children.length===0,children:nt(xt.children)})),Je=(mt,xt,Tt)=>mt.map(zt=>zt.key===xt?Fe(Fe({},zt),Tt):zt.children?te(Fe({},zt),{children:Je(zt.children,xt,Tt)}):zt),st=(mt,xt,Tt)=>mt.map(zt=>{if(zt.key===xt)return te(Fe({},zt),{icon:Tt?oe.createElement("img",{src:je,className:ke.folderIcon}):oe.createElement("img",{src:De,className:ke.folderIcon})});if(zt.children)return te(Fe({},zt),{children:st(zt.children,xt,Tt)})}),gt=(mt,xt)=>{Ie(Tt=>st(Tt,xt.node.key,xt.expanded))},rt=fe?{selectedKeys:fe,defaultExpandedKeys:fe}:{};return Ae.length>0&&oe.createElement("div",{id:be||""},oe.createElement(Pe.default,Fe({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ae,className:ke.folderWrapper,onSelect:me,onExpand:gt},rt)))}},94361:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Te}});var oe=ae(37639),Pe={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ke=ae(32637),De=ae(59301),Te=({type:Ge,style:lt})=>{const Ke=De.createElement("div",{className:Pe.wrap,onClick:He=>{He.preventDefault(),He.stopPropagation()}},De.createElement("p",null,Ge==="shixun"||Ge==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",De.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ge==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),De.createElement("div",{className:Pe.contact},De.createElement("div",{className:Pe.img},De.createElement("img",{src:ke,width:"124px",height:"124px"})),De.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return De.createElement(oe.Z,{content:Ke},De.createElement("span",{className:Pe.text,style:lt},"\u9AD8\u6D88\u8017"))}},9507:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return yt}});var oe=ae(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ke=ae(92310),De=ae.n(ke),je=ae(29787),Te=ae(2859),Ge=ae(38986),lt=ae(51257),Ke=($e,Mt,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Fe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply($e,Mt)).next())}),yt=({data:$e,className:Mt,fullWidth:Fe,style:te={},onClose:ee,onOk:he,showFullTools:ue,noAssociationId:fe})=>{const me=(0,oe.useRef)(null),be=(0,oe.useRef)(null),Ae=(0,oe.useRef)(null),Ie=(0,oe.useRef)(null),[Xe,nt]=(0,oe.useState)(!1),[Je,st]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),$e!=null&&$e.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",$e!=null&&$e.src&>()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[$e==null?void 0:$e.visible]);const gt=()=>Ke(void 0,null,function*(){nt(!0),st("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Tt=yield(0,lt.ZJ)($e==null?void 0:$e.src);me.current.src="",me.current.src=Tt,me.current.onload=function(){xt()},nt(!1),st("")}),rt=Tt=>Ke(void 0,null,function*(){nt(!0),st("\u6B63\u5728\u4FDD\u5B58\u4E2D");const zt=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:$e.title,file:Tt.dataUrl}});zt!=null&&zt.id&&!fe?(yield(0,Ge.ZP)(`/api/attachments/${$e.id}/add_subitem.json`,{method:"post",body:{subitem_id:zt==null?void 0:zt.id,settings:JSON.stringify(Tt.state)}})).status===0&&he():zt!=null&&zt.id&&he(zt),nt(!1),st("")}),mt=()=>{const Tt=document.querySelector('a[href="https://markerjs.com/"]');Tt&&Tt.parentNode&&(Tt.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(Qt=>{const Kt=document.querySelector(Qt.name);Kt&&Kt.setAttribute("title",Qt.title)})},xt=()=>{be.current=new Te.hP(me.current),be.current.targetRoot=Ie.current,be.current.addEventListener("render",rt),be.current.addEventListener("beforeclose",ee),ue&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),$e!=null&&$e.snapshotData&&be.current.restoreState($e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),mt()},300)};return oe.createElement(oe.Fragment,null,($e==null?void 0:$e.visible)&&oe.createElement(je.Z,{spinning:Xe,tip:Je,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:Ie,className:De()(Pe.imageDimensions,Mt,Fe?Pe.fullWidth:""),style:te},oe.createElement("img",{className:Pe.img,ref:me}))))}},50043:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Re},$:function(){return _e}});var oe=ae(59301),Pe={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),De=ae.n(ke),je=ae(28284),Te=ae(6767),Ge=ae(62957),lt=ae(71051),Ke=ae(77019),He=ae(62673),yt=ae(75727),$e=ae(14566),Mt=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=",be="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==",Ae="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",Ie=ae(38986),Xe=ae(38518),nt=ae(5623),Je=ae(8944),st=ae(19105),gt=ae(17077),rt=ae(15342),mt=ae.n(rt),xt=(Ye,at,Be)=>new Promise((bt,bn)=>{var sn=_t=>{try{It(Be.next(_t))}catch(jt){bn(jt)}},Bn=_t=>{try{It(Be.throw(_t))}catch(jt){bn(jt)}},It=_t=>_t.done?bt(_t.value):Promise.resolve(_t.value).then(sn,Bn);It((Be=Be.apply(Ye,at)).next())}),zt=oe.memo(({tagName:Ye="div",value:at="",className:Be,style:bt={},onBlur:bn,id:sn})=>{const Bn=(0,oe.useRef)(null);(0,oe.useEffect)(()=>{if(!Bn.current)return;xt(void 0,null,function*(){const jt=Bn.current;jt.innerHTML="";const hn=at==null?void 0:at.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const En of hn)if(En.startsWith("$$")&&En.endsWith("$$")||En.startsWith("`$$")&&En.endsWith("$$`")){const pn=En.startsWith("`$$")?En.slice(3,-3):En.slice(2,-2),Rt=document.createElement("span");Rt.setAttribute("contentEditable","false"),Rt.setAttribute("title",En),Rt.className="edu_latex",jt.appendChild(Rt),mt().render(pn,Rt,{throwOnError:!1})}else{const pn=En==null?void 0:En.replace(/<[^>]*>/g,Rt=>Rt.startsWith("<img")?Rt:Rt.replace(/</g,"<"));jt.insertAdjacentHTML("beforeend",pn)}})},[sn]);const It=()=>{var _t,jt;if(bn&&Bn.current){const En=Bn.current.cloneNode(!0),pn=En.querySelectorAll("span.edu_latex");for(let Rt of pn){const Tn=Rt.getAttribute("title"),Yt=document.createTextNode(Tn||""),en=Rt;(jt=(_t=en.parentNode)==null?void 0:_t.replaceChild)==null||jt.call(_t,Yt,en)}bn(En.innerHTML)}};return oe.createElement(oe.Fragment,null,oe.createElement(Ye,{ref:Bn,contentEditable:!0,className:Be,style:bt,onBlur:It}))}),Qt=ae(48790),Kt=ae(49535),Cn=ae(82105),St=Object.defineProperty,pt=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,xn=(Ye,at,Be)=>at in Ye?St(Ye,at,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[at]=Be,kn=(Ye,at)=>{for(var Be in at||(at={}))fn.call(at,Be)&&xn(Ye,Be,at[Be]);if(qt)for(var Be of qt(at))kt.call(at,Be)&&xn(Ye,Be,at[Be]);return Ye},Vn=(Ye,at)=>pt(Ye,ct(at)),Vt=(Ye,at,Be)=>new Promise((bt,bn)=>{var sn=_t=>{try{It(Be.next(_t))}catch(jt){bn(jt)}},Bn=_t=>{try{It(Be.throw(_t))}catch(jt){bn(jt)}},It=_t=>_t.done?bt(_t.value):Promise.resolve(_t.value).then(sn,Bn);It((Be=Be.apply(Ye,at)).next())});const Ot=Ye=>{Ye.preventDefault();let Be=(Ye.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,Be)},Nn=Ye=>{Ye.key==="Enter"&&Ye.preventDefault()},tr=({children:Ye,style:at})=>oe.createElement("div",{className:Pe.leftBox,style:at,onPaste:Ot},Ye),hr=({children:Ye,style:at,className:Be})=>oe.createElement("div",{className:De()(Pe.rightBox,Be),style:at,onPaste:Ot},Ye),ot=({className:Ye,style:at={},width:Be=1200,onCancel:bt=()=>{},onSuccess:bn=()=>{},gather:sn={},mode:Bn=1,stickyTop:It=0,subDisciplineId:_t=[],hideWordFeatures:jt,dataSource:hn=[],customLeftHeadNode:En,customRightHeadNode:pn,customLeftContent:Rt,hideRecognition:Tn=!1,onExchange:Yt,isSingleSelection:en=!1,underpinBackgroundStyle:vn={},headExtraNode:zn,isRefreshItemBank:un=!1,okText:Et="\u786E\u5B9A\u5BFC\u5165",onSave:Xn})=>{var ir;const[Jt,Er]=(0,oe.useState)(1),[ni,Rr]=(0,oe.useState)(0),[Mn,ei]=(0,oe.useState)(""),[Kr,lr]=(0,oe.useState)(!1),[jr,oi]=(0,oe.useState)([]),[Oe,dr]=(0,oe.useState)([]),[Pr,or]=(0,oe.useState)(!1),[Lr,zr]=(0,oe.useState)(!1),[wr,Ti]=(0,oe.useState)(!1),[On,yn]=(0,oe.useState)(!1),[Sn,Jn]=(0,oe.useState)([]),[ui,Yr]=(0,oe.useState)(1),[ci,ur]=(0,oe.useState)(!1),[Xr,wi]=(0,oe.useState)(!0),[ki,Fr]=(0,oe.useState)(0),[Lt,cn]=(0,oe.useState)(!1),[kr]=je.default.useForm(),[Ir]=je.default.useForm(),Xt=(0,oe.useRef)(null),Fn=(0,oe.useRef)(null),fr=(0,oe.useRef)(),dn=(0,oe.useRef)(null),Ue=["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"],Mr=["C","C++","Java","Python","JavaScript","Ruby"];(0,oe.useEffect)(()=>{hn!=null&&hn.length&&Wr(hn)},[hn]),(0,oe.useEffect)(()=>{Jt===2&&Xt.current.focus()},[Jt]),(0,oe.useEffect)(()=>{wr&&Wn()},[wr]);const Ur=()=>{if(Jt===1){Te.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Ge.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:()=>Vt(void 0,null,function*(){Er(1)})})},Wn=()=>Vt(void 0,null,function*(){const ht=yield(0,Ie.ZP)("/api/disciplines.json",{method:"get",params:{source:Bn===1?"new_question":"subject"}});Jn(ht.disciplines||[])}),mi=ht=>{const wn=[],Pn=(Gn,gn)=>{Gn.length>=2&&wn.push(Gn.join(""));for(let $n=gn;$n<ht.length;$n++)Gn.push(ht[$n]),Pn(Gn,$n+1),Gn.pop()};return Pn([],0),wn},Qr=ht=>(ht=ht||"",ht=String(ht),ht=ht.replace(/\s+/g,""),ht),rr=ht=>(ht=ht||"",ht=String(ht),ht=ht.replace(/<div>/g,""),ht=ht.replace(/<br>/g,`
|
|
|
`),ht=ht.replace(/<\/div>/g,`
|
|
|
`),ht=on(ht),ht),Gr=ht=>ht.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),on=ht=>ht.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Ci=ht=>{var wn;const Pn=ht.clipboardData;if(Pn){const Gn=Pn.types.toString(),gn=Pn.items;if(Gn==="Files"||Pn.types.indexOf("Files")>-1){ht.preventDefault();try{let $n=gn[1];((wn=gn[0])==null?void 0:wn.kind)==="file"&&($n=gn[0]);const Yn=$n.getAsFile();(0,gt.I)(Yn,an=>{var cr;if(an.id){if(((cr=Yn==null?void 0:Yn.type)==null?void 0:cr.indexOf("image"))>-1){const Vr=`<img src='${ue.Z.API_SERVER}${an.url}'>`;document.execCommand("insertText",!1,Vr)}}else(an==null?void 0:an.status)===401&&(document.location.href="/user/login")})}catch($n){Te.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Vi(ht,wn){return Vt(this,null,function*(){if(typeof ht=="string")return yield wn(ht);if(typeof ht!="object"||ht===null)return ht;if(Array.isArray(ht))return yield Promise.all(ht.map(gn=>Vt(this,null,function*(){return yield Vi(gn,wn)})));const Pn={};for(const Gn in ht)if(Object.prototype.hasOwnProperty.call(ht,Gn)){const gn=ht[Gn];typeof gn=="string"?Pn[Gn]=yield wn(gn):typeof gn=="object"?Pn[Gn]=yield Vi(gn,wn):Pn[Gn]=gn}return Pn})}const mn=()=>Vt(void 0,null,function*(){var ht;lr(!0),ei("\u5904\u7406\u4E2D"),yield new Promise(Gn=>setTimeout(Gn,1e3));let wn=(ht=Fn.current)==null?void 0:ht.querySelectorAll('[data-text="edit"]'),Pn="";try{wn.forEach(function(Gn){var gn,$n,Yn,an;const cr=Gn.cloneNode(!0),Vr=cr.querySelectorAll("span.edu_latex");for(let si of Vr){const Si=si.getAttribute("title"),Ri=document.createTextNode(Si),_i=si;($n=(gn=_i.parentNode)==null?void 0:gn.replaceChild)==null||$n.call(gn,Ri,_i)}const Ni=cr.querySelectorAll("span[style]");for(let si of Ni)if(si.style.fontFamily){const Si=si.innerHTML,Ri=document.createTextNode(Si),_i=si;(an=(Yn=_i.parentNode)==null?void 0:Yn.replaceChild)==null||an.call(Yn,Ri,_i)}cr==null||cr.childNodes.forEach(function(si){si.nodeType===Node.ELEMENT_NODE&&si.localName!=="h5"&&si.localName!=="h4"?Pn+=`<p>${si.innerHTML}</p>`:si.nodeType===Node.TEXT_NODE&&(Pn+=`<p>${si.textContent}</p>`)})}),pi("/api/intelligent_imports/import.json",{html:on(Pn)})}catch(Gn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Gn)}}),li=ht=>{let wn=ht.filter(Pn=>!!(Pn!=null&&Pn.type));return wn=wn.map(Pn=>{var Gn;const gn=(Gn=vr.find(Yn=>Yn.id===(Pn==null?void 0:Pn.type)))==null?void 0:Gn.deal,$n=Vn(kn({},Pn),{id:String(Math.random()).slice(-6),knowledgePoint:Qr(Pn==null?void 0:Pn.knowledgePoint)});return gn?gn($n):$n}),wn},bi=()=>{if(Jt===1){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Ge.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:mn})},qr=()=>oe.createElement("div",{className:Pe.row},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(tr,{style:{height:675}},Jt===1&&oe.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Er(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:Pe.imgBox,style:{marginTop:75}},oe.createElement("img",{width:56,src:me}),oe.createElement("span",null,"\u7F16\u8F91\u533A"))),Jt===2&&oe.createElement("div",{"data-text":"edit",onBlur:()=>{Xt.current.innerHTML||Er(1)},ref:Xt,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),oe.createElement("div",{className:Pe.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},oe.createElement("div",{className:Pe.imgBox,style:{marginTop:240}},oe.createElement("img",{width:56,src:be}),oe.createElement("span",null,"\u9884\u89C8\u533A")))),Pi=(ht,wn,Pn,Gn)=>{var gn;console.log(ht,wn,Pn,Gn,"onDataChange\u4FEE\u6539\u6570\u503C");const $n=JSON.parse(JSON.stringify(Oe));Gn===void 0?$n[wn][ht]=Pn:$n[wn].questions[Gn][ht]=Pn;const Yn=kn({},$n[wn]),an=(gn=vr.find(cr=>cr.id===(Yn==null?void 0:Yn.type)))==null?void 0:gn.deal;$n[wn]=an(Yn),dr($n)},Ii=(ht,wn,Pn)=>{var Gn;const gn=Pn!==void 0,$n=(Gn=vr.find(cr=>cr.id===(ht==null?void 0:ht.type)))==null?void 0:Gn.type,Yn=`${wn+1}.${Pn===void 0?"":Pn+1+"."}`,an=`${(ht==null?void 0:ht.type)==="7"?"{{":""}${Yn}\u3010${$n}\u3011${(ht==null?void 0:ht.question)||""}`;return oe.createElement(oe.Fragment,null,gn&&oe.createElement("h4",{contentEditable:!0}),oe.createElement(zt,{id:ht==null?void 0:ht.id,tagName:"div",value:an}))},Hi=(ht,wn)=>Vt(void 0,null,function*(){var Pn;const Gn=yield Yt(ht,wn),gn=(Pn=Gn==null?void 0:Gn.data)==null?void 0:Pn.content;if(gn!=null&&gn.length){const $n=li(gn)[0];jr.splice(wn,1,$n),Oe.splice(wn,1,$n),oi([...jr]),dr([...Oe])}}),ji=(ht,wn,Pn)=>{var Gn;const gn=Pn!==void 0,$n=(Gn=vr.find(an=>an.id===(ht==null?void 0:ht.type)))==null?void 0:Gn.type,Yn=`${wn+1}.${Pn===void 0?"":Pn+1+"."}`;return gn?oe.createElement("div",{style:{padding:"10px 18px"}},`${Yn}\u3010${$n}\u3011`,oe.createElement(zt,{id:ht==null?void 0:ht.id,tagName:"span",className:Pe.edit,onBlur:an=>Pi("question",wn,an,Pn),value:(ht==null?void 0:ht.question)||""})):oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Pe.actionHead},oe.createElement("div",{className:"c-light-primary"},`${Yn}\u3010${$n}\u3011`),Bn!==1&&oe.createElement(lt.Z,{disabled:(ht==null?void 0:ht.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:an=>Pi("score",wn,an,Pn),value:ht==null?void 0:ht.score}),oe.createElement(Ke.Z,{align:"middle",style:{marginLeft:"auto"}},!!Yt&&oe.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Hi(ht,wn)},oe.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),oe.createElement(He.default,{onChange:an=>Pi("checked",wn,an.target.checked,Pn),checked:!!(ht!=null&&ht.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),oe.createElement(zt,{id:ht==null?void 0:ht.id,tagName:"div",style:{padding:"10px 18px"},className:Pe.edit,onBlur:an=>Pi("question",wn,an,Pn),value:ht==null?void 0:ht.question}))},Bi=(ht,wn,Pn)=>oe.createElement(oe.Fragment,null,["0","1","2","4"].includes(ht==null?void 0:ht.type)&&oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u7B54\u6848\uFF1A${wn||""}`,tagName:"p"}),!Pn&&oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u96BE\u5EA6\uFF1A${(ht==null?void 0:ht.difficulty)||""}`,tagName:"p"}),(ht==null?void 0:ht.type)!=="7"&&oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u89E3\u6790\uFF1A${(ht==null?void 0:ht.analyze)||""}`,tagName:"p"}),!Pn&&oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(ht==null?void 0:ht.knowledgePoint)||""}`,tagName:"p"})),io=(ht,wn,Pn,Gn)=>{const gn=Gn!==void 0,$n=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Yn=gn&&!ht.last&&!ht.errorMsg?{marginBottom:10}:{},an=$n.map(cr=>({key:cr,label:cr,onClick:()=>Pi("difficulty",Pn,cr,Gn)}));return oe.createElement("div",{className:Pe.liWrap,style:Yn},["4"].includes(ht==null?void 0:ht.type)&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),oe.createElement(zt,{id:ht==null?void 0:ht.id,tagName:"div",className:`${Pe.edit} c-black`,onBlur:cr=>Pi("answer",Pn,[cr],Gn),value:wn})),!gn&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(yt.Z,{menu:{items:an}},oe.createElement("span",{className:"c-light-primary"},ht==null?void 0:ht.difficulty,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(ht==null?void 0:ht.type)!=="7"&&oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),oe.createElement(zt,{id:ht==null?void 0:ht.id,tagName:"div",className:`${Pe.edit} c-grey-333`,onBlur:cr=>Pi("analyze",Pn,cr,Gn),value:ht==null?void 0:ht.analyze})),!gn&&oe.createElement("div",{onKeyDown:Nn,className:Pe.li},oe.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),oe.createElement(zt,{id:ht==null?void 0:ht.id,tagName:"div",value:(ht==null?void 0:ht.knowledgePoint)||"",className:`${Pe.edit} c-grey-333`,onBlur:cr=>Pi("knowledgePoint",Pn,Qr(rr(cr)),Gn)})))},Qn=ht=>oe.createElement(oe.Fragment,null,typeof(ht==null?void 0:ht.errorMsg)=="string"&&!!(ht!=null&&ht.errorMsg)&&oe.createElement("h5",{contentEditable:!1},oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,ht==null?void 0:ht.errorMsg))),zi=ht=>oe.createElement(oe.Fragment,null,typeof(ht==null?void 0:ht.errorMsg)=="string"&&!!(ht!=null&&ht.errorMsg)&&oe.createElement("h5",null,oe.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),oe.createElement("div",null,ht==null?void 0:ht.errorMsg))),ar=(ht,wn,Pn,Gn)=>{let gn="flex";return(en&&ki!==Gn||Pr&&!(Pn!=null&&Pn.errorMsg))&&(gn="none"),oe.createElement("div",{className:Pe.row,style:{display:gn}},oe.createElement("div",{className:Pe.leftLayout},Rt||oe.createElement(tr,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},ht))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(hr,{className:Pn!=null&&Pn.errorMsg?Pe.error:""},wn)))},vr=[{id:"0",type:"\u5355\u9009\u9898",element:(ht,wn,Pn)=>{var Gn,gn;const $n=Pn!==void 0;let Yn=(Gn=ht==null?void 0:ht.answer)==null?void 0:Gn[0];const an=oe.createElement(oe.Fragment,null,Ii(ht,wn,Pn),(gn=ht==null?void 0:ht.options)==null?void 0:gn.map((si,Si)=>oe.createElement(zt,{id:ht==null?void 0:ht.id,key:Si,value:`${Ue[Si]}.${si}`,tagName:"p"})),Bi(ht,Yn,$n),Qn(ht));let cr=$n?ht:Oe[wn];const Vr=cr==null?void 0:cr.options,Ni=oe.createElement(oe.Fragment,null,ji(cr,wn,Pn),Vr==null?void 0:Vr.map((si,Si)=>{var Ri;return oe.createElement("div",{key:Si,className:Pe.option},oe.createElement("aside",{className:((Ri=cr==null?void 0:cr.answer)==null?void 0:Ri[0])===Ue[Si]?Pe.active:"",onClick:()=>Pi("answer",wn,[Ue[Si]],Pn)},Ue[Si]),oe.createElement(zt,{id:cr==null?void 0:cr.id,tagName:"div",className:`${Pe.text}`,onBlur:_i=>{Vr[Si]=_i,Pi("options",wn,Vr,Pn)},value:si}))}),io(cr,"",wn,Pn),zi(cr));return $n?[an,Ni]:ar(an,Ni,cr,wn)},deal:ht=>{var wn,Pn,Gn;ht.score=ht.score===void 0?2:ht.score;let gn=Qr((wn=ht==null?void 0:ht.answer)==null?void 0:wn[0]).toUpperCase();ht.answer=gn?[gn]:[];let $n=[];if(!(ht!=null&&ht.options))$n.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{ht.options=(Pn=ht.options)==null?void 0:Pn.slice(0,8);const Yn=ht.options.map(cr=>cr==null?void 0:cr.trim().replace(/^\s+|\s+$/g,""));new Set(Yn).size!==Yn.length&&$n.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return gn||$n.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),gn&&(Ue.slice(0,((Gn=ht==null?void 0:ht.options)==null?void 0:Gn.length)||8).includes(gn)||$n.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")),Qr(ht==null?void 0:ht.question)||$n.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=$n.join(`
|
|
|
`),ht}},{id:"1",type:"\u591A\u9009\u9898",element:(ht,wn,Pn)=>{var Gn,gn;const $n=Pn!==void 0;let Yn=(Gn=ht==null?void 0:ht.answer)==null?void 0:Gn[0];const an=oe.createElement(oe.Fragment,null,Ii(ht,wn,Pn),(gn=ht==null?void 0:ht.options)==null?void 0:gn.map((si,Si)=>oe.createElement(zt,{id:ht==null?void 0:ht.id,key:Si,value:`${Ue[Si]}.${si}`,tagName:"p"})),Bi(ht,Yn,$n),Qn(ht));let cr=$n?ht:Oe[wn];const Vr=cr==null?void 0:cr.options,Ni=oe.createElement(oe.Fragment,null,ji(cr,wn,Pn),Vr==null?void 0:Vr.map((si,Si)=>{var Ri,_i;return oe.createElement("div",{key:Si,className:Pe.option},oe.createElement("aside",{className:(_i=(Ri=cr==null?void 0:cr.answer)==null?void 0:Ri[0])!=null&&_i.includes(Ue[Si])?Pe.active:"",onClick:()=>{var ao;let wo=((ao=cr==null?void 0:cr.answer)==null?void 0:ao[0])||"";const Ho=Ue[Si];wo.includes(Ho)?wo=wo.replace(new RegExp(Ho,"g"),""):wo+=Ho,wo=wo.split("").sort().join(""),Pi("answer",wn,[wo],Pn)}},Ue[Si]),oe.createElement(zt,{id:cr==null?void 0:cr.id,tagName:"div",className:`${Pe.text}`,onBlur:ao=>{Vr[Si]=ao,Pi("options",wn,Vr,Pn)},value:si}))}),io(cr,"",wn,Pn),zi(cr));return $n?[an,Ni]:ar(an,Ni,cr,wn)},deal:ht=>{var wn,Pn,Gn;ht.score=ht.score===void 0?2:ht.score;let gn=Qr((wn=ht==null?void 0:ht.answer)==null?void 0:wn[0]).toUpperCase().split("").sort().join("");ht.answer=gn?[gn]:[];let $n=[];if(!(ht!=null&&ht.options))$n.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{ht.options=(Pn=ht.options)==null?void 0:Pn.slice(0,8);const Yn=ht.options.map(cr=>cr==null?void 0:cr.trim().replace(/^\s+|\s+$/g,""));new Set(Yn).size!==Yn.length&&$n.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(gn||$n.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),gn){const Yn=Ue.slice(0,((Gn=ht==null?void 0:ht.options)==null?void 0:Gn.length)||8);mi(Yn).includes(gn)||$n.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 Qr(ht==null?void 0:ht.question)||$n.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=$n.join(`
|
|
|
`),ht}},{id:"2",type:"\u5224\u65AD\u9898",element:(ht,wn,Pn)=>{var Gn,gn;const $n=Pn!==void 0;let Yn=(Gn=ht==null?void 0:ht.answer)==null?void 0:Gn[0];const an=oe.createElement(oe.Fragment,null,Ii(ht,wn,Pn),Bi(ht,Yn,$n),Qn(ht));let cr=$n?ht:Oe[wn];const Vr=["\u6B63\u786E","\u9519\u8BEF"];let Ni=((gn=cr==null?void 0:cr.answer)==null?void 0:gn[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Ni)?Ni="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ni)&&(Ni="\u9519\u8BEF");const si=oe.createElement(oe.Fragment,null,ji(cr,wn,Pn),Vr==null?void 0:Vr.map((Si,Ri)=>oe.createElement("div",{key:Ri,className:Pe.option},oe.createElement("aside",{style:{borderRadius:2},className:Ni===Si?Pe.active:"",onClick:()=>Pi("answer",wn,[Si],Pn)},Si==="\u6B63\u786E"?"T":"F"),oe.createElement("div",{style:{pointerEvents:"none"},className:`${Pe.text}`},Si))),io(cr,"",wn,Pn),zi(cr));return $n?[an,si]:ar(an,si,cr,wn)},deal:ht=>{var wn;ht.score=ht.score===void 0?2:ht.score;let Pn=Qr((wn=ht==null?void 0:ht.answer)==null?void 0:wn[0]);ht.answer=Pn?[Pn]:[];let Gn=[];return Pn||Gn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Pn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Pn)&&Gn.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"),Qr(ht==null?void 0:ht.question)||Gn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=Gn.join(`
|
|
|
`),ht}},{id:"3",type:"\u586B\u7A7A\u9898",element:(ht,wn,Pn)=>{var Gn,gn;const $n=Pn!==void 0,Yn=oe.createElement(oe.Fragment,null,Ii(ht,wn,Pn),(Gn=ht==null?void 0:ht.answer)==null?void 0:Gn.map((Vr,Ni)=>oe.createElement(zt,{id:ht==null?void 0:ht.id,key:Ni,tagName:"p",value:`\u7B54\u6848${Ni+1}\uFF1A${Vr.text||""}`})),Bi(ht,"",$n),Qn(ht));let an=$n?ht:Oe[wn];const cr=oe.createElement(oe.Fragment,null,ji(an,wn,Pn),(gn=an==null?void 0:an.answer)==null?void 0:gn.map((Vr,Ni)=>oe.createElement("div",{key:Ni,className:Pe.option},oe.createElement("aside",{className:Pe.fill},"\u586B\u7A7A\u9879",Ni+1),Vr.model===1&&oe.createElement(zt,{id:an==null?void 0:an.id,tagName:"div",onBlur:si=>{an.answer[Ni].latex=rr(si),Pi("answer",wn,an.answer,Pn)},className:`${Pe.text}`,value:Vr.latex}),Vr.model===2&&oe.createElement(st.Z,{value:Vr.latex,onChange:si=>{an.answer[Ni].latex=si,Pi("answer",wn,an.answer,Pn)}}))),io(an,"",wn,Pn),zi(an));return $n?[Yn,cr]:ar(Yn,cr,an,wn)},deal:ht=>{var wn,Pn,Gn,gn;ht.score=ht.score===void 0?2:ht.score,ht.question=(wn=ht.question)==null?void 0:wn.replaceAll("\u2581","_");const $n=(Pn=ht.answer)==null?void 0:Pn.map(an=>{if(Object.prototype.toString.call(an)==="[object Object]")return an;an=an==null?void 0:an.trim();const cr={model:1,text:an,latex:an};return an.startsWith("$$")&&an.endsWith("$$")||an.startsWith("`$$")&&an.endsWith("$$`")?(cr.model=2,cr.latex=an.slice(2,-2)):cr.latex=rr(an),cr});ht.answer=$n;let Yn=[];return $n||Yn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Qr(ht==null?void 0:ht.question)?ht!=null&&ht.question.includes("_")?(Gn=ht==null?void 0:ht.answer)!=null&&Gn.length&&((ht==null?void 0:ht.question.match(/_+/g))||[]).length!==((gn=ht==null?void 0:ht.answer)==null?void 0:gn.length)&&Yn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Yn.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=Yn.join(`
|
|
|
`),ht}},{id:"4",type:"\u7B80\u7B54\u9898",element:(ht,wn,Pn)=>{var Gn,gn;const $n=Pn!==void 0;let Yn=(Gn=ht==null?void 0:ht.answer)==null?void 0:Gn[0];const an=oe.createElement(oe.Fragment,null,Ii(ht,wn,Pn),Bi(ht,Yn,$n),Qn(ht));let cr=$n?ht:Oe[wn];const Vr=oe.createElement(oe.Fragment,null,ji(cr,wn,Pn),io(cr,(gn=cr==null?void 0:cr.answer)==null?void 0:gn[0],wn,Pn),zi(cr));return $n?[an,Vr]:ar(an,Vr,cr,wn)},deal:ht=>{ht.score=ht.score===void 0?5:ht.score;let wn=[];return Qr(ht==null?void 0:ht.question)||wn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ht.errorMsg=wn.join(`
|
|
|
`),ht}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(ht,wn)=>{var Pn,Gn;const gn=Oe[wn],$n=Mr.slice(0,4).map(Yn=>({key:Yn,label:Yn,onClick:()=>Pi("platform",wn,Yn)}));return oe.createElement("div",{className:Pe.row,style:{display:Pr?gn!=null&&gn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(tr,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Ii(ht,wn),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(ht==null?void 0:ht.description)||""}`,tagName:"p"}),Bi(ht),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${ht==null?void 0:ht.timeLimit}`,tagName:"p"}),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(ht==null?void 0:ht.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:(ht==null?void 0:ht.code)||"",tagName:"div"}),(Pn=ht==null?void 0:ht.inputs)==null?void 0:Pn.map((Yn,an)=>{var cr;return oe.createElement(oe.Fragment,{key:an},oe.createElement("h4",null),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${an+1})\u8F93\u5165\uFF1A${Yn||""}`,tagName:"div"}),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${an+1})\u8F93\u51FA\uFF1A${((cr=ht==null?void 0:ht.outputs)==null?void 0:cr[an])||""}`,tagName:"div"}))}),Qn(ht)))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(hr,{className:gn!=null&&gn.errorMsg?Pe.error:""},ji(gn,wn),oe.createElement("div",{className:Pe.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:gn==null?void 0:gn.description,tagName:"div",onBlur:Yn=>Pi("description",wn,Yn)}))),io(gn,"",wn),oe.createElement("div",{className:Pe.liWrap},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:gn==null?void 0:gn.timeLimit,tagName:"div",onBlur:Yn=>Pi("timeLimit",wn,rr(Yn))})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(yt.Z,{menu:{items:$n}},oe.createElement("span",{className:"c-light-primary"},gn==null?void 0:gn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.code)||"",onBlur:Yn=>Pi("code",wn,rr(Yn)),tagName:"div"}))),(Gn=gn==null?void 0:gn.inputs)==null?void 0:Gn.map((Yn,an)=>{var cr;return oe.createElement("div",{className:Pe.liWrap,key:an},oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",an+1,")\u8F93\u5165\uFF1A"),oe.createElement(zt,{id:gn==null?void 0:gn.id,value:Yn||"",className:Pe.edit,onBlur:Vr=>{const Ni=[...(gn==null?void 0:gn.inputs)||[]];Ni[an]=rr(Vr),Pi("inputs",wn,Ni)},tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",an+1,")\u8F93\u51FA\uFF1A"),oe.createElement(zt,{id:gn==null?void 0:gn.id,value:((cr=gn==null?void 0:gn.outputs)==null?void 0:cr[an])||"",className:Pe.edit,onBlur:Vr=>{const Ni=[...(gn==null?void 0:gn.outputs)||[]];Ni[an]=rr(Vr),Pi("outputs",wn,Ni)},tagName:"div"})))}),zi(gn))))},deal:ht=>{var wn,Pn,Gn;ht.score=ht.score===void 0?10:ht.score,ht.code=(wn=ht.code)==null?void 0:wn.trim();let gn=[];Qr(ht==null?void 0:ht.question)?((Pn=ht==null?void 0:ht.question)==null?void 0:Pn.length)>60&&gn.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):gn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Qr(ht==null?void 0:ht.description)||gn.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const $n=Qr(String((ht==null?void 0:ht.timeLimit)||""));if(ht.timeLimit=$n,(!$n||$n&&!["3","4","5","6","7","8","9","10"].includes($n))&&gn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),ht.platform=Qr(ht==null?void 0:ht.platform),ht!=null&&ht.platform){const Yn=["c","c++","java","python"],an=(Gn=ht==null?void 0:ht.platform)==null?void 0:Gn.toLowerCase(),cr=Yn.findIndex(Vr=>Vr===an);cr>-1?ht.platform=Mr[cr]:gn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else gn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(ht!=null&&ht.inputs)||!(ht!=null&&ht.outputs))ht.inputs=[],ht.outputs=[],gn.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 Yn=Math.min(ht.inputs.length,ht.outputs.length);ht.inputs=ht.inputs.slice(0,Yn),ht.outputs=ht.outputs.slice(0,Yn),ht.outputs.some(an=>!Qr(an))&&gn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return ht.errorMsg=gn.join(`
|
|
|
`),ht}},{id:"7",type:"\u7EC4\u5408\u9898",element:(ht,wn)=>{var Pn,Gn;const gn=Oe[wn];return oe.createElement("div",{className:Pe.row,style:{display:Pr?gn!=null&&gn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(tr,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Ii(ht,wn),Bi(ht),(Pn=ht==null?void 0:ht.questions)==null?void 0:Pn.map(($n,Yn)=>{var an;const cr=(an=vr.find(Vr=>Vr.id===($n==null?void 0:$n.type)))==null?void 0:an.element;return oe.createElement(oe.Fragment,{key:`left-${ht.id}-${Yn}`},cr($n,wn,Yn)[0])}),Qn(ht),oe.createElement("p",{contentEditable:!0},"}}")))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(hr,{className:gn!=null&&gn.errorMsg?Pe.error:""},ji(gn,wn),io(gn,"",wn),(Gn=gn==null?void 0:gn.questions)==null?void 0:Gn.map(($n,Yn)=>{var an;const cr=(an=vr.find(Vr=>Vr.id===($n==null?void 0:$n.type)))==null?void 0:an.element;return oe.createElement(oe.Fragment,{key:`right-${gn.id}-${Yn}`},cr($n,wn,Yn)[1])}),zi(gn))))},deal:ht=>{var wn,Pn,Gn,gn,$n;const Yn=li,an=[...vr],cr=an.findIndex(Si=>Si.id==="0"),Vr=an.findIndex(Si=>Si.id==="1");if(cr!==-1){const Si=an[cr].deal;an[cr].deal=Ri=>{const _i=Si(Ri);return _i.errorMsg&&(_i.errorMsg=_i.errorMsg.split(`
|
|
|
`).filter(ao=>ao!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),_i}}if(Vr!==-1){const Si=an[Vr].deal;an[Vr].deal=Ri=>{const _i=Si(Ri);return _i.errorMsg&&(_i.errorMsg=_i.errorMsg.split(`
|
|
|
`).filter(ao=>ao!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
|
`)),_i}}ht.questions=(wn=ht.questions)!=null&&wn.length?li(ht.questions.slice(0,20)):[],ht.questions=(Pn=ht.questions)==null?void 0:Pn.map((Si,Ri)=>{var _i;if(Si.type==="0"||Si.type==="1"){const ao=(_i=Si.options)==null?void 0:_i.map(wo=>wo==null?void 0:wo.trim().replace(/^\s+|\s+$/g,""));ao&&new Set(ao).size!==ao.length&&(Si.errorMsg=(Si.errorMsg?Si.errorMsg+`
|
|
|
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Vn(kn({},Si),{last:Ri===ht.questions.length-1})});const Ni=(Gn=ht.questions)==null?void 0:Gn.reduce((Si,Ri)=>{const _i=parseFloat(Ri.score);return isNaN(_i)?Si:Si+_i},0);ht.score=Ni;let si=[];return(gn=ht.questions)!=null&&gn.length?ht.errorMsg=(($n=ht.questions)==null?void 0:$n.findIndex(Si=>!!Si.errorMsg))>-1:si.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Qr(ht==null?void 0:ht.question)||si.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),si.length&&(ht.errorMsg=si.join(`
|
|
|
`)),ht}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(ht,wn)=>{var Pn,Gn;const gn=Oe[wn],$n=Mr.map(Yn=>({key:Yn,label:Yn,onClick:()=>Pi("platform",wn,Yn)}));return oe.createElement("div",{className:Pe.row,style:{display:Pr?gn!=null&&gn.errorMsg?"flex":"none":"flex"}},oe.createElement("div",{className:Pe.leftLayout},oe.createElement(tr,null,oe.createElement("div",{"data-text":"edit",contentEditable:!0,className:Pe.question},Ii(ht,wn),Bi(ht),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${ht==null?void 0:ht.timeLimit}`,tagName:"p"}),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(ht==null?void 0:ht.platform)||""}`,tagName:"p"}),oe.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement("h4",null),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:(ht==null?void 0:ht.code)||"",tagName:"div"}),oe.createElement("h4",null),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(ht==null?void 0:ht.input)||""}`,tagName:"p"}),oe.createElement(zt,{id:ht==null?void 0:ht.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(ht==null?void 0:ht.output)||""}`,tagName:"p"}),(Pn=ht==null?void 0:ht.answer)==null?void 0:Pn.map((Yn,an)=>oe.createElement(zt,{key:an,id:ht==null?void 0:ht.id,value:`\u7B54\u6848${an+1}\uFF1A${Yn||""}`,tagName:"p"})),Qn(ht)))),oe.createElement("div",{className:Pe.rightLayout},oe.createElement(hr,{className:gn!=null&&gn.errorMsg?Pe.error:""},ji(gn,wn),io(gn,"",wn),oe.createElement("div",{className:Pe.liWrap},oe.createElement("div",{className:Pe.li,onKeyDown:Nn},oe.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:gn==null?void 0:gn.timeLimit,tagName:"div",onBlur:Yn=>Pi("timeLimit",wn,rr(Yn))})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),oe.createElement("div",{className:"c-black"},oe.createElement(yt.Z,{menu:{items:$n}},oe.createElement("span",{className:"c-light-primary"},gn==null?void 0:gn.platform,oe.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),oe.createElement("div",{className:Pe.li,style:{flexDirection:"column",alignItems:"start"}},oe.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.code)||"",onBlur:Yn=>Pi("code",wn,rr(Yn)),tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.input)||"",onBlur:Yn=>Pi("input",wn,rr(Yn)),tagName:"div"})),oe.createElement("div",{className:Pe.li},oe.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),oe.createElement(zt,{className:Pe.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.output)||"",onBlur:Yn=>Pi("output",wn,rr(Yn)),tagName:"div"}))),oe.createElement("div",{className:Pe.liWrap},(Gn=gn==null?void 0:gn.answer)==null?void 0:Gn.map((Yn,an)=>oe.createElement("div",{className:Pe.li,key:an},oe.createElement("aside",null,"\u7B54\u6848",an+1,"\uFF1A"),oe.createElement(zt,{id:gn==null?void 0:gn.id,value:Yn||"",className:Pe.edit,onBlur:cr=>{const Vr=[...(gn==null?void 0:gn.answer)||[]];Vr[an]=rr(cr),Pi("output",wn,Vr)},tagName:"div"})))),zi(gn))))},deal:ht=>{var wn,Pn,Gn,gn,$n,Yn,an,cr;ht.score=ht.score===void 0?10:ht.score,ht.code=(Gn=(Pn=(wn=ht.code)==null?void 0:wn.trim())==null?void 0:Pn.replace(/@_@/g,"@\u2581@"))==null?void 0:Gn.replace(/@__@/g,"@\u2581\u2581@");let Vr=[];if(Qr(ht==null?void 0:ht.question)||Vr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Qr(ht==null?void 0:ht.code)?/@▁@|@▁▁@/.test(ht==null?void 0:ht.code)?(gn=ht==null?void 0:ht.answer)!=null&&gn.length&&(($n=ht==null?void 0:ht.code.match(/@▁@|@▁▁@/g))==null?void 0:$n.length)!==((Yn=ht==null?void 0:ht.answer)==null?void 0:Yn.length)&&Vr.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Vr.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"):Vr.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),ht!=null&&ht.answer?(an=ht.answer)!=null&&an.some(si=>!Qr(si))&&Vr.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Vr.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),ht.platform=Qr(ht==null?void 0:ht.platform),ht!=null&&ht.platform){const si=["c","c++","java","python","javascript","ruby"],Si=(cr=ht==null?void 0:ht.platform)==null?void 0:cr.toLowerCase(),Ri=si.findIndex(_i=>_i===Si);Ri>-1?ht.platform=Mr[Ri]:Vr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Vr.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Qr(ht==null?void 0:ht.output)||Vr.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Ni=Qr(String((ht==null?void 0:ht.timeLimit)||""));return ht.timeLimit=Ni,(!Ni||Ni&&!["3","4","5","6","7","8","9","10"].includes(Ni))&&Vr.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),ht.errorMsg=Vr.join(`
|
|
|
`),ht}}],An=()=>oe.createElement(oe.Fragment,null,jr.filter(ht=>{var wn;return!!((wn=vr.find(Gn=>Gn.id===(ht==null?void 0:ht.type)))==null?void 0:wn.element)}).map((ht,wn)=>{var Pn;const Gn=(Pn=vr.find(gn=>gn.id===(ht==null?void 0:ht.type)))==null?void 0:Pn.element;return oe.createElement(oe.Fragment,{key:ht.id},Gn(ht,wn))})),it=()=>Vt(void 0,null,function*(){const ht=Oe.filter(wn=>!wn.checked);if(Jt!==3||!ht.length){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Xn){cn(!0),yield Xn(Oe),cn(!1);return}kr.setFieldsValue({sub_discipline_id:_t}),Ti(!0)}),Dr=(ht,wn=[])=>{if(typeof ht=="string")return ht.trim();if(Array.isArray(ht))return ht.map(Pn=>Dr(Pn,wn));if(typeof ht=="object"&&ht!==null){const Pn={};for(const Gn in ht)ht.hasOwnProperty(Gn)&&(wn.includes(Gn)?Pn[Gn]=ht[Gn]:Pn[Gn]=Dr(ht[Gn],wn));return Pn}return ht},Wr=ht=>Vt(void 0,null,function*(){const wn=li(Dr(ht));oi(wn),dr(JSON.parse(JSON.stringify(wn))),Er(3),lr(!1),or(!1)});(0,oe.useEffect)(()=>{if(Xr)return;const ht=()=>{Rr(wn=>wn>=90?(clearInterval(fr.current),90):wn+1)};return fr.current=setInterval(ht,5e4/90),()=>clearInterval(fr.current)},[Xr]);const pi=(ht,wn)=>{wi(!1);const Pn=new FormData;Object.keys(wn).forEach(gn=>{Pn.append(gn,wn[gn])});const Gn=new window.XMLHttpRequest;Gn.withCredentials=!0,Gn.addEventListener("load",function(gn){return Vt(this,null,function*(){var $n,Yn;try{const an=JSON.parse(($n=gn==null?void 0:gn.target)==null?void 0:$n.response);if(wi(!0),Rr(100),yield new Promise(cr=>setTimeout(()=>cr(),780)),an.status===0){if(!((Yn=an==null?void 0:an.data)!=null&&Yn.length)){Te.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),lr(!1);return}Wr((an==null?void 0:an.data)||[])}else lr(!1),Te.ZP.warning(an==null?void 0:an.message)}catch(an){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",an)}})}),Gn.addEventListener("error",()=>{lr(!1)}),Gn.open("POST",`${ue.Z.API_SERVER}${ht}`),Gn.send(Pn)},hi=ht=>Vt(void 0,null,function*(){const wn=ht.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(wn)==-1?(Te.ZP.error(`${ht.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()):(lr(!0),ei("\u5904\u7406\u4E2D"),pi("/api/intelligent_imports/import.json",{file:ht}),Promise.reject())});let ai=[{key:1,label:oe.createElement($e.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:hi},oe.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Qt.Ny)()||(0,Qt.$O)())&&ai.push({key:2,label:oe.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{dn.current.onClick()}});const mr=[Oe.length,(ir=Oe.filter(ht=>!!(ht!=null&&ht.errorMsg)))==null?void 0:ir.length];return oe.createElement("div",{className:De()(Pe.intelligentBox,"intelligent-body-curb",Ye),style:Vn(kn({},at),{width:Be}),ref:Fn},oe.createElement("div",{className:Pe.underpin},oe.createElement("b",{style:vn}),oe.createElement("b",{style:vn})),oe.createElement("div",{className:Pe.head,style:{top:It}},oe.createElement("div",{className:Pe.leftLayout},En||oe.createElement(oe.Fragment,null,oe.createElement(Ke.Z,{align:"middle"},oe.createElement("div",{className:Pe.title},"\u8BD5\u9898\u7F16\u8F91"),!jt&&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:Ur,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!jt&&oe.createElement(yt.Z,{overlayClassName:Pe.menu,menu:{items:ai}},oe.createElement(he.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!zn&&zn),oe.createElement("div",{className:Pe.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:Pe.rightLayout,style:{alignItems:"start"}},pn||oe.createElement(oe.Fragment,null,oe.createElement("div",{className:Pe.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Jt)&&oe.createElement(He.default,{className:"ml20",checked:Pr,onChange:ht=>or(ht.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Jt)&&oe.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",oe.createElement("span",{className:"ml5 mr5 c-light-primary"},mr[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",oe.createElement("span",{className:"ml5 mr5 c-red-e53"},mr[1]),"\u9898")),en&&oe.createElement("div",{className:Pe.tabs},jr==null?void 0:jr.map((ht,wn)=>oe.createElement("div",{onClick:()=>{Fr(wn)},className:ki===wn&&Pe.active,key:wn},"\u65B0\u9898",wn+1)))),oe.createElement("div",{className:Pe.centerBox},oe.createElement("img",{className:"mb10",src:Ae,width:56}),!Tn&&oe.createElement(he.op,{onClick:bi},"\u8BC6\u522B"))),[1,2].includes(Jt)&&qr(),[3].includes(Jt)&&An(),oe.createElement("div",{className:"pb10"}),oe.createElement("div",{className:Pe.buttonFixed},oe.createElement("div",{className:Pe.buttonWrap},oe.createElement(Mt.ZP,{size:"middle",className:`${Pe.button} mr20`,onClick:bt},"\u53D6\u6D88"),oe.createElement(Mt.ZP,{size:"middle",type:"primary",loading:Lt,className:`${Pe.button}`,onClick:it},Et))),oe.createElement(Ge.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Kr,title:null,footer:null,width:320,afterClose:()=>Rr(0)},oe.createElement(Ke.Z,{align:"middle",style:{flexDirection:"column"}},oe.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Mn,oe.createElement("span",{className:Pe.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:ni}),oe.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",oe.createElement("span",{className:"ml5 c-light-primary"},ni,"%")))),oe.createElement(Ge.default,{centered:!0,open:wr,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Lr,width:500,onCancel:()=>Ti(!1),onOk:()=>kr.submit(),afterClose:()=>{kr.resetFields()}},oe.createElement(je.default,{style:{maxHeight:550},form:kr,layout:"horizontal",colon:!1,size:"large",onFinish:ht=>Vt(void 0,null,function*(){var wn,Pn,Gn,gn,$n;const Yn=Oe.filter(Vr=>!Vr.checked&&!Vr.errorMsg);zr(!0);const an=()=>Vt(void 0,null,function*(){var Vr,Ni;const si=yield(0,Ie.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Vn(kn(kn({},sn),ht),{list:Yn,mode:Bn})});si.status===0&&(un&&((Vr=si==null?void 0:si.data)!=null&&Vr.success)&&window.location.pathname==="/problemset"&&(Kt.Z.publish("refresh-item-bank",ht.group_id),yield new Promise(Si=>setTimeout(()=>Si(),1500))),Te.ZP.success(`\u6210\u529F\u5BFC\u5165${(Ni=si==null?void 0:si.data)==null?void 0:Ni.success}\u9053\u8BD5\u9898`,3),bn(si),Ti(!1)),zr(!1)});if(Bn!==1){yield an();return}const cr=yield(0,Ie.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Oe,mode:Bn}});if(cr.status===0){if(!((wn=cr==null?void 0:cr.data)!=null&&wn.error_size)){yield an();return}Ge.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{zr(!1)},title:"\u63D0\u793A",content:oe.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",oe.createElement("span",{className:"c-light-primary ml5 mr5"},(Pn=cr==null?void 0:cr.data)==null?void 0:Pn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",oe.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Gn=cr==null?void 0:cr.data)==null?void 0:Gn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",oe.createElement("span",{className:"ml5 mr5"},($n=(gn=cr==null?void 0:cr.data)==null?void 0:gn.index)==null?void 0:$n.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:an})}})},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(je.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:Sn})),Bn===1&&oe.createElement(je.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:()=>yn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},oe.createElement("img",{className:"mr5 primary-hover",src:nt}),"\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(Xe.Z,{key:ui})))),oe.createElement(Ge.default,{centered:!0,open:On,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:ci,onCancel:()=>yn(!1),onOk:()=>Ir.submit(),afterClose:()=>{Ir.resetFields()}},oe.createElement(je.default,{style:{maxHeight:550},form:Ir,layout:"horizontal",colon:!1,size:"large",onFinish:ht=>Vt(void 0,null,function*(){var wn;ur(!0),(yield(0,Ie.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:ht.name,parent_id:(wn=ht==null?void 0:ht.parent_id)==null?void 0:wn[0]}})).status===0?(Yr(ui+1),setTimeout(()=>{Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),yn(!1),ur(!1)},1e3)):ur(!1)})},oe.createElement(je.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(je.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},oe.createElement(Xe.Z,null)))),oe.createElement(Cn.Z,{onSave:ht=>{lr(!0),ei("\u5904\u7406\u4E2D"),pi("/api/intelligent_imports/import.json",{html:ht})},ref:dn}))},_e=fe;var Re=ot},19105:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(99587),ke=ae(48136),De=ae(76562),je=ae(62957),Te=ae(59301);const Ge=(0,oe.forwardRef)(({callback:lt,width:Ke,onChange:He,disabled:yt,readOnly:$e,type:Mt="",value:Fe="",style:te={}},ee)=>{const he=(0,oe.useRef)(),ue=(0,oe.useRef)(),[fe,me]=(0,oe.useState)(0),[be,Ae]=(0,oe.useState)(0),[Ie,Xe]=(0,oe.useState)(!1),nt=()=>{var rt=document.createElement("div");rt.innerHTML=he.current.getValue();var mt=rt.innerText;return lt&<(mt),mt};(0,oe.useImperativeHandle)(ee,()=>({getData:nt}));const Je=rt=>{rt.preventDefault();const mt=rt.clientX-fe,xt=rt.clientY-be;document.body.onmousemove=Tt=>{let zt=Tt.clientX-mt,Qt=Tt.clientY-xt;const Kt=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth-Kt.offsetWidth,St=window.innerHeight-Kt.offsetHeight;zt=Math.max(0,Math.min(zt,Cn)),Qt=Math.max(0,Math.min(Qt,St)),st(Tt.clientX,Tt.clientY,mt,xt)&&(me(zt),Ae(Qt))},document.body.onmouseup=function(){document.body.onmousemove=null}},st=(rt,mt,xt,Tt)=>{const zt=document.body.clientHeight,Qt=document.body.clientWidth;return rt<20&&xt>rt||rt>Qt-20&&xt<rt||mt<20&&Tt>mt||mt>zt-20&&Tt<mt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,oe.useEffect)(()=>{Ie&&setTimeout(()=>{const rt=document.getElementsByClassName("markdown-popup-form")[0],mt=window.innerWidth/2-rt.offsetWidth/2,xt=window.innerHeight/2-rt.offsetHeight/2;me(mt),Ae(xt)},0)},[Ie]);const gt=()=>{yt||$e||Xe(!0)};return Te.createElement("div",{style:te},Te.createElement("div",{style:{width:Ke||"100%",position:"relative"},className:`${Pe.Z.mathFillWrap} ${yt||$e?"cursorDefault":""}`,onClick:()=>gt()},Te.createElement("math-field",{disabled:yt,locale:"zh_cn",class:`${Pe.Z.mathField} ${Mt}`,readOnly:$e,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:he,style:{width:"100%",fontSize:Fe?18:14},value:Fe||""})),Te.createElement(je.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:fe,top:be},title:Te.createElement("div",{style:{cursor:"move"},onMouseDown:Je},"\u8F93\u5165\u516C\u5F0F"),open:Ie,onOk:()=>{const rt=ue.current.getData();he.current.setValue(rt),He(rt),Xe(!1)},onCancel:()=>{Xe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Te.createElement(De.Z,{value:Fe,ref:ue,onChange:He,showSaveButton:!1})))});Ee.Z=Ge},76562:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(77019),ke=ae(5269),De=ae(20554),je=ae(99571),Te=ae(76902),Ge=ae(99587),lt=ae(48136),Ke=ae(59301);const He=(0,oe.forwardRef)(({callback:yt,showSaveButton:$e,value:Mt=""},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=be=>{te.current.setValue(te.current.getValue()+" "+be.value+" ")},fe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ke.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},ee.map((be,Ae)=>Ke.createElement(ke.Z,{flex:"110px",className:Ge.Z.item},Ke.createElement("div",null,Ke.createElement(Te.Z,{value:`$$${be.value}$$`}),be.name),Ke.createElement("div",{className:Ge.Z.children},be.children.map((Ie,Xe)=>Ke.createElement("div",{key:Xe},Ke.createElement("h1",null,Ie.name),Ke.createElement(Pe.Z,{gutter:[10,10]},Ie.data.map((nt,Je)=>Ke.createElement(ke.Z,{key:Je,onClick:()=>ue(nt),className:Ge.Z.diamond},Ke.createElement(Te.Z,{value:"`$$"+nt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ke.createElement(Pe.Z,{className:Ge.Z.lists,gutter:[10,10]},he.map((be,Ae)=>Ke.createElement(ke.Z,{flex:"110px",className:Ge.Z.item},Ke.createElement("div",null,Ke.createElement(Te.Z,{value:"`$$"+be.value+"$$`"}),be.name),Ke.createElement("div",{className:Ge.Z.children},be.children.map((Ie,Xe)=>Ke.createElement("div",{key:Xe},Ie.name&&Ke.createElement("h1",null,Ie.name),Ke.createElement(Pe.Z,{gutter:[10,10]},Ie.data.map((nt,Je)=>Ke.createElement(ke.Z,{key:Je,onClick:()=>ue(nt),className:Ge.Z.diamond},Ke.createElement(Te.Z,{value:"`$$"+nt.value+"$$`"}))))))))))}],me=()=>{var be=document.createElement("div");be.innerHTML=te.current.getValue();var Ae=be.innerText;return yt&&yt(Ae),Ae};return(0,oe.useImperativeHandle)(Fe,()=>({getData:me})),Ke.createElement("div",{className:Ge.Z.mathWrap},Ke.createElement(De.default,{defaultActiveKey:"1",items:fe}),Ke.createElement("math-field",{locale:"zh_cn",className:Ge.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},Mt||""),$e&&Ke.createElement("div",{className:Ge.Z.button},Ke.createElement(je.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ee.Z=He},22962:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return $e}});var oe=ae(59301),Pe=ae(28284),ke=ae(62957),De=ae(37568),je=ae(87169),Te=ae(38986),Ge={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},lt=ae(52154),Ke=ae(59301),He=(Mt,Fe,te)=>new Promise((ee,he)=>{var ue=be=>{try{me(te.next(be))}catch(Ae){he(Ae)}},fe=be=>{try{me(te.throw(be))}catch(Ae){he(Ae)}},me=be=>be.done?ee(be.value):Promise.resolve(be.value).then(ue,fe);me((te=te.apply(Mt,Fe)).next())}),$e=({type:Mt="subject",open:Fe,onCancel:te,onOkClick:ee,subDisciplineId:he})=>{const[ue]=Pe.default.useForm(),[fe,me]=(0,oe.useState)([]),[be,Ae]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{},[]);const Ie=()=>He(void 0,null,function*(){if(Mt){const Xe=yield(0,Te.ZP)("/api/disciplines.json",{method:"get",params:{source:Mt}});me(Xe.disciplines||[])}});return Ke.createElement(ke.default,{title:Ke.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:Fe,width:558,centered:!0,className:Ge.publicQuest,onCancel:()=>{te(),ue.resetFields()},onOk:()=>{ue.validateFields().then(Xe=>He(void 0,null,function*(){const nt=yield(0,Te.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Xe==null?void 0:Xe.name,sub_discipline_id:he}});(nt==null?void 0:nt.status)===0&&ee({name:Xe==null?void 0:Xe.name,id:nt==null?void 0:nt.tag_discipline_id,public:!1,type:"personal"}),ue.resetFields(),te()}))}},Ke.createElement("div",{className:Ge.publicQuestContent},Ke.createElement("div",{className:Ge.public_tips},Ke.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"),Ke.createElement(Pe.default,{labelAlign:"left",form:ue,colon:!1},Ke.createElement(Pe.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},Ke.createElement(De.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),Ke.createElement(lt.Z,{open:be,onCancel:()=>{Ae(!1)}})))}},28426:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(93314),ke=ae(99571),De=Object.defineProperty,je=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,He=(Fe,te,ee)=>te in Fe?De(Fe,te,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Fe[te]=ee,yt=(Fe,te)=>{for(var ee in te||(te={}))lt.call(te,ee)&&He(Fe,ee,te[ee]);if(Ge)for(var ee of Ge(te))Ke.call(te,ee)&&He(Fe,ee,te[ee]);return Fe},$e=(Fe,te)=>je(Fe,Te(te));const Mt=({img:Fe,buttonProps:te={},styles:ee={},customText:he,ButtonText:ue,ButtonClick:fe,Buttonclass:me,ButtonTwo:be,imgStyles:Ae,loading:Ie=!1,className:Xe=""})=>oe.createElement("section",{className:`tc animated fadeIn ${Xe}`,style:yt({color:"#999",margin:"100px auto",visibility:Ie?"hidden":"visible"},ee)},oe.createElement("img",{src:Fe||Pe,style:$e(yt({},Ae),{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,yt({className:me,onClick:fe},te),ue),be&&be);Ee.Z=Mt},45677:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ke=ae(99571),De=ae(70557),je=ae(75975),Te=ae(25399),Ge=ae(51257),lt=ae(81722),Ke=ae(28426),He=ae(346),yt=ae(44203),$e=ae(59301),Mt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(be,Ae,Ie)=>Ae in be?Mt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):be[Ae]=Ie,ue=(be,Ae)=>{for(var Ie in Ae||(Ae={}))te.call(Ae,Ie)&&he(be,Ie,Ae[Ie]);if(Fe)for(var Ie of Fe(Ae))ee.call(Ae,Ie)&&he(be,Ie,Ae[Ie]);return be},fe=(be,Ae,Ie)=>new Promise((Xe,nt)=>{var Je=rt=>{try{gt(Ie.next(rt))}catch(mt){nt(mt)}},st=rt=>{try{gt(Ie.throw(rt))}catch(mt){nt(mt)}},gt=rt=>rt.done?Xe(rt.value):Promise.resolve(rt.value).then(Je,st);gt((Ie=Ie.apply(be,Ae)).next())}),me=({editOffice:be="view",data:Ae,issaver:Ie,onSaver:Xe,theme:nt,type:Je,filename:st,monacoEditor:gt,className:rt,style:mt,close:xt,onClose:Tt,hasMask:zt,disabledDownload:Qt,onImgDimensions:Kt,showNodata:Cn,recordInfo:St})=>{const[pt,ct]=(0,oe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[qt,fn]=(0,oe.useState)(""),[kt,xn]=(0,oe.useState)(),kn=window.ENV==="build"?"/react/build":"",Vn=location.host.startsWith("localhost")?He.Z.PROXY_SERVER:He.Z.API_SERVER,Ot=10*(1024*1024),Nn=(0,oe.useRef)();Ae!=null&&Ae.startsWith("/api")&&Je!=="txt"&&(Ae=He.Z.API_SERVER+Ae);const tr=Ye=>Ye.substring(Ye.lastIndexOf("/")+1).split(".").pop();st&>&&(gt.filename=st),(0,oe.useEffect)(()=>{var Ye,at;const Be=(at=(Ye=document.cookie)==null?void 0:Ye.replace(/\s/g,""))==null?void 0:at.split(";");Be==null||Be.map(bt=>{let bn=bt.split("=");bn[0]==="_educoder_session"&&fn(bn[1])})},[]),(0,oe.useEffect)(()=>{Je==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?xn({url:Ae,fileType:tr(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):ot())},[Je,Ae]);function hr(Ye){return fe(this,null,function*(){Ye.data.type==="pdfdata"&&(Xe(Ye.data.data),window.removeEventListener("message",hr,!1)),console.log("mess---:",Ye.data)})}const ot=()=>fe(void 0,null,function*(){console.log("data:",Ae);let Ye=Ae;Ae.startsWith("http")||(Ye=location.origin+Ye);let at=new URL(Ye).pathname.split("/").pop();const Be=yield(0,lt.gJ)({attachment_id:at});Be.url=Vn+Be.url,xn(Be)}),_e=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){Re();return}(0,Ge.Sv)(st||"educoder",Ae,st)},Re=()=>{St&&(0,yt.fc)({id:St==null?void 0:St.id,watch_type:1,course_id:St==null?void 0:St.course_id}),(0,Ge.Nd)(st||"educoder",decodeURIComponent(Ae))};return $e.createElement("div",{style:ue({},mt||{}),className:`${zt&&Pe.bgBlack} ${Je?Pe.wrp:"hide"}`},xt&&$e.createElement("div",{className:Pe.close,ref:Nn},!!Kt&&$e.createElement(Te.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Nn.current},$e.createElement("span",{onClick:()=>{Tt(),Kt()}},$e.createElement("i",{className:"icon-yulanpizhu"}))),!Qt&&$e.createElement(Te.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Nn.current},$e.createElement("span",{onClick:Re},$e.createElement("i",{className:"icon-quxiaozhiding"}))),Ie&&$e.createElement(Te.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Nn.current},$e.createElement("span",{className:"",onClick:()=>{const Ye=document.getElementById("pdfiframe");window.addEventListener("message",hr,!1),setTimeout(()=>{Ye.contentWindow.postMessage("getData","*")},300)}},$e.createElement("i",{className:"icon-baocun"}))),$e.createElement(Te.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Nn.current},$e.createElement("span",{className:"",onClick:()=>{Tt()}},$e.createElement("i",{className:"icon-guanbi1"})))),$e.createElement("div",{className:`${Pe[rt]} ${rt} ${Pe.monaco} ${Je==="txt"?"show":"hide"}`},Je==="txt"&&$e.createElement($e.Fragment,null,$e.createElement(je.ZP,ue({},gt)))),Je==="audio"&&$e.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),Je==="video"&&$e.createElement($e.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?$e.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):$e.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),Je==="office"&&kt&&$e.createElement("iframe",{src:`${kn}/office.html?key=${kt.key}&url=${btoa(kt.url)}&callbackUrl=${Vn+(kt.callbackUrl||"")}&fileType=${kt.fileType}&title=${kt.title||""}&model=${be}&officeServer=${He.Z.ONLYOFFICE}&disabledDownload=${!!Qt}`}),Je==="html"&&$e.createElement("iframe",{src:Ae+"&disposition=inline"}),Je==="pdf"&&$e.createElement("iframe",{id:"pdfiframe",src:`${kn}/js/pdfview/index.html?filename=${st||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Qt}&model=${be}`}),Je==="image"&&$e.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(Je==="other"||Je==="download")&&$e.createElement($e.Fragment,null,Cn?$e.createElement(Ke.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:$e.createElement(ke.ZP,{icon:$e.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:_e,disabled:Qt},"\u4E0B\u8F7D")}):$e.createElement(ke.ZP,{type:"primary",size:"middle",onClick:_e,disabled:Qt},$e.createElement(De.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},70100:function(We,Ee,ae){"use strict";ae.d(Ee,{Q:function(){return Ke},Z:function(){return yt}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},ke=ae(92310),De=ae.n(ke),je=ae(62957),Te=ae(6767),Ge=ae(62673),lt=($e,Mt,Fe)=>new Promise((te,ee)=>{var he=me=>{try{fe(Fe.next(me))}catch(be){ee(be)}},ue=me=>{try{fe(Fe.throw(me))}catch(be){ee(be)}},fe=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,ue);fe((Fe=Fe.apply($e,Mt)).next())});const Ke=({title:$e="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Mt=[],visible:Fe,setVisible:te,tip:ee,onOk:he})=>{const[ue,fe]=(0,oe.useState)([]),[me,be]=(0,oe.useState)(!1);return(0,oe.useEffect)(()=>{Fe&&fe(Mt)},[Fe]),oe.createElement(je.default,{centered:!0,open:Fe,title:$e,confirmLoading:me,width:564,onOk:()=>lt(void 0,null,function*(){if(!ue.length){Te.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}be(!0),yield he(ue),be(!1)}),onCancel:()=>te(!1)},!!ee&&oe.createElement("div",{className:"c-grey-666 font16 mb10"},ee),oe.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},oe.createElement(Ge.default.Group,{value:ue,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Ae=>{fe(Ae)}})))};var yt=({title:$e="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Mt,style:Fe={},onEdit:te,dataSource:ee=[]})=>{const he={C:oe.createElement("div",{className:Pe.c},"C"),"C++":oe.createElement("div",{className:Pe.cpp},"C++"),Java:oe.createElement("div",{className:Pe.java},"Java"),Python:oe.createElement("div",{className:Pe.python},"Python")};return oe.createElement("div",{className:De()(Pe.tags,Mt),style:Fe},!!$e&&oe.createElement("div",{className:Pe.text},$e),oe.createElement("div",{className:Pe.tagWrap},ee==null?void 0:ee.map(ue=>oe.createElement(oe.Fragment,{key:ue},he[ue]))),!!te&&oe.createElement("div",{onClick:te,className:`iconfont icon-bianji_Hover ${Pe.edit}`}))}},68571:function(We,Ee,ae){"use strict";ae.d(Ee,{t:function(){return Re}});var oe=ae(59301),Pe=ae(37568),ke=ae(28284),De=ae(62957),je=ae(77019),Te=ae(5269),Ge=ae(71051),lt=ae(82326),Ke=ae(47889),He=ae(31457),yt=ae(25690),$e=ae(8423),Mt=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),be=ae(56102),Ae=ae(37345),Ie=ae(59301),Xe=Object.defineProperty,nt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,mt=(Ye,at,Be)=>at in Ye?Xe(Ye,at,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[at]=Be,xt=(Ye,at)=>{for(var Be in at||(at={}))gt.call(at,Be)&&mt(Ye,Be,at[Be]);if(st)for(var Be of st(at))rt.call(at,Be)&&mt(Ye,Be,at[Be]);return Ye},Tt=(Ye,at)=>nt(Ye,Je(at)),zt=(Ye,at,Be)=>new Promise((bt,bn)=>{var sn=_t=>{try{It(Be.next(_t))}catch(jt){bn(jt)}},Bn=_t=>{try{It(Be.throw(_t))}catch(jt){bn(jt)}},It=_t=>_t.done?bt(_t.value):Promise.resolve(_t.value).then(sn,Bn);It((Be=Be.apply(Ye,at)).next())}),Kt=({buttonProps:Ye,buttonText:at,form:Be,hackIdentifier:bt="",answerKey:bn,data:sn})=>{const[Bn,It]=(0,oe.useState)(!1),[_t,jt]=(0,oe.useState)(!1),[hn,En]=(0,oe.useState)(!1),[pn,Rt]=(0,oe.useState)({}),[Tn,Yt]=(0,oe.useState)(""),[en,vn]=(0,oe.useState)(""),zn=(0,oe.useRef)(bt),un=(0,oe.useRef)(""),Et=(0,oe.useRef)(!1);(0,oe.useEffect)(()=>{hn&&Er()},[hn]),(0,oe.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Xn=()=>new Date().getTime(),ir=sn==null?void 0:sn.code,Jt=()=>{var Mn,ei;let Kr=ir?sn==null?void 0:sn.code:(Mn=Be.getFieldValue("hack_codes"))==null?void 0:Mn.code,lr=ir?sn==null?void 0:sn.answer_content:Be.getFieldValue(bn),jr=ir?sn==null?void 0:sn.input:(ei=Be.getFieldValue("hack_sets"))==null?void 0:ei.input;lr==null||lr.forEach(oi=>{const Oe=oi.value||oi.answer_text||"";Kr=Kr.replace(/(@▁@|@▁▁@)/,Oe)}),vn(jr),Yt(Kr),Rt({}),En(!0)},Er=()=>zt(void 0,null,function*(){var Mn,ei,Kr,lr;const jr=Xn(),oi=ir?sn==null?void 0:sn.time_limit:(Mn=Be.getFieldsValue())==null?void 0:Mn.hack.time_limit,Oe=ir?(ei=sn==null?void 0:sn.answer_content)==null?void 0:ei.length:(lr=(Kr=Be.getFieldsValue())==null?void 0:Kr.standard_answers)==null?void 0:lr.length;It(!0),yield(0,fe.bM)(un.current,{test_hack_code:Tn,test_input:en});function dr(){return zt(this,null,function*(){const{status:Pr,data:or}=yield(0,fe.rX)(un.current,"submit"),zr=Xn()-jr>(oi+3)*1e3*Oe;if(Et.current){if(zr){Mt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),It(!1);return}if(Pr===0){It(!1),Rt(Tt(xt({},or),{showText:!0}));return}setTimeout(dr,1e3)}})}dr()}),ni=()=>zt(void 0,null,function*(){var Mn,ei,Kr,lr,jr,oi,Oe;if(!sn){try{yield Be.validateFields()}catch(Lr){(Kr=(ei=(Mn=Lr==null?void 0:Lr.errorFields)==null?void 0:Mn[0])==null?void 0:ei.name)!=null&&Kr.includes("standard_answers")?Mt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Mt.ZP.error(Lr.errorFields[0].errors[0]),Be.scrollToField(Lr.errorFields[0].name,{behavior:"smooth",block:"center"});return}jt(!0);let Pr="";const or=Be.getFieldsValue();zn.current?Pr=yield(0,ue.ZP)(`/api/problems/${zn.current}.json`,{method:"put",body:Tt(xt({},or),{hack:Tt(xt({},or==null?void 0:or.hack),{sub_discipline_id:(Oe=(oi=or==null?void 0:or.hack)==null?void 0:oi.sub_discipline_id)==null?void 0:Oe[1],difficult:or.difficulty,item_banks_group_id:or.item_banks_group_id}),hack_codes:Tt(xt({},or.hack_codes),{code:ee.Base64.encode(or.hack_codes.code)}),update_hack_sets:[xt({},or.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Pr=yield(0,ue.ZP)("/api/problems.json",{method:"post",body:Tt(xt({},or),{hack:Tt(xt({},or==null?void 0:or.hack),{sub_discipline_id:(jr=(lr=or==null?void 0:or.hack)==null?void 0:lr.sub_discipline_id)==null?void 0:jr[1],difficult:or.difficulty,item_banks_group_id:or.item_banks_group_id}),hack_codes:Tt(xt({},or.hack_codes),{code:ee.Base64.encode(or.hack_codes.code)}),hack_sets:[xt({},or.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),zn.current=Pr==null?void 0:Pr.identifier,sessionStorage.projectFill=Pr==null?void 0:Pr.identifier)}const dr=yield(0,ue.ZP)(`/api/problems/${zn.current}/start.json`,{method:"get"});if((dr==null?void 0:dr.status)===0){un.current=dr==null?void 0:dr.identifier,Et.current=!0,jt(!1),Jt();return}jt(!1)}),Rr=Mn=>{const{status:ei,error_msg:Kr,execute_time:lr,output:jr,input:oi,expected_output:Oe}=Mn;let dr=null;switch(ei){case Ae.h.OK:dr=Ie.createElement(Ie.Fragment,null,Ie.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",lr/1e3,"\u79D2"),Ie.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ae.h.NOMATCH:dr=Ie.createElement(Ie.Fragment,null,Ie.createElement("div",null,"\u8F93\u5165\uFF1A"),Ie.createElement("pre",{style:{fontFamily:"initial"}},oi),Ie.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ie.createElement("pre",{style:{fontFamily:"initial"}},jr&&ee.Base64.decode(jr)),Ie.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ie.createElement("pre",{style:{fontFamily:"initial"}},Oe&&ee.Base64.decode(Oe)));break;case Ae.h.EXECUTEFAILURE:dr=Ie.createElement(Ie.Fragment,null,Ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ie.createElement("pre",null,oi)),Ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ie.createElement("pre",{className:"error"},ee.Base64.decode(Kr)));break;case Ae.h.COMPILEFAILURE:dr=Ie.createElement(Ie.Fragment,null,Ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ie.createElement("pre",null,oi)),Ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ie.createElement("pre",{className:"error"},ee.Base64.decode(Kr)));break;case Ae.h.PODFAILURE:dr=Ie.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ae.h.TIMEOUT:dr=Ie.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ie.createElement(Ie.Fragment,null," ",dr," ")};return Ie.createElement("div",null,Ie.createElement(Fe.ZP,Tt(xt({loading:_t},Ye),{onClick:ni}),at),Ie.createElement(De.default,{open:hn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Bn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Er(),onCancel:()=>{Et.current=!1,En(!1)}},Ie.createElement("div",{className:he.result},Ie.createElement("div",{className:he.left},Ie.createElement("div",{className:"mb20"},Ie.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!sn&&Ie.createElement(be.CopyToClipboard,{text:Tn,onCopy:()=>Mt.ZP.success("\u590D\u5236\u6210\u529F")},Ie.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ie.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ie.createElement(me.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Tn,onChange:Mn=>Yt(Mn)})),Ie.createElement("div",{className:he.right},Ie.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ie.createElement("div",{className:he.box},Ie.createElement("div",{className:he.li},Ie.createElement(Pe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:en,onChange:Mn=>vn(Mn.target.value),bordered:!1,style:{height:180}}))),Ie.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ie.createElement("div",{className:he.box},Ie.createElement(te.Z,{spinning:Bn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ie.createElement("div",{className:he.li,style:{height:196,overflow:"auto",padding:10}},Rr(pn))))))))},Cn=ae(87169),St=ae(59301),pt=Object.defineProperty,ct=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,fn=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,kn=(Ye,at,Be)=>at in Ye?pt(Ye,at,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[at]=Be,Vn=(Ye,at)=>{for(var Be in at||(at={}))kt.call(at,Be)&&kn(Ye,Be,at[Be]);if(fn)for(var Be of fn(at))xn.call(at,Be)&&kn(Ye,Be,at[Be]);return Ye},Vt=(Ye,at)=>ct(Ye,qt(at)),Ot=(Ye,at)=>{var Be={};for(var bt in Ye)kt.call(Ye,bt)&&at.indexOf(bt)<0&&(Be[bt]=Ye[bt]);if(Ye!=null&&fn)for(var bt of fn(Ye))at.indexOf(bt)<0&&xn.call(Ye,bt)&&(Be[bt]=Ye[bt]);return Be};const{TextArea:Nn}=Pe.default,tr=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],hr=({value:Ye,onChange:at})=>St.createElement(Switch,{checked:Ye,onChange:Be=>{at(Be)}}),ot="@\u2581@",_e="@\u2581\u2581@",Re=({questionTitlePlaceholder:Ye,form:at,scoreByBlank:Be=!1,hackidentifier:bt,answerKey:bn})=>{const[sn,Bn]=(0,oe.useState)(!1),[It,_t]=(0,oe.useState)(!1),hn=(0,yt.useParams)().type==="edit",En=(un,Et)=>{const Xn=Et.line;let ir=0;for(let Er=0;Er<Xn;Er++)ir+=un.getLine(Er).split(ot).length-1;for(let Er=0;Er<Xn;Er++)ir+=un.getLine(Er).split(_e).length-1;const Jt=un.getLine(Xn).substring(0,Et.ch);return ir+=Jt.split(ot).length-1,ir+=Jt.split(_e).length-1,ir},pn=(un,Et,Xn,ir)=>{const Jt=un.getRange(Et.from,Et.to);let Er=0;if(Et.text.forEach(ni=>{Er+=ni.split(ot).length-1}),Et.text.forEach(ni=>{Er+=ni.split(_e).length-1}),Et.origin!=="setValue"){if(Jt&&(Jt.indexOf(ot)!==-1||Jt.indexOf(_e)!==-1)){const ni=Jt.split(ot).length-1+Jt.split(_e).length-1,Rr=En(un,Et.from);if(console.log(`\u5220\u9664${ni}\u4E2A\uFF0C \u524D\u9762\u6709${Rr}\u4E2A\uFF0C\u65B0\u589E${Er}\u4E2A`),ni>1){const Mn=Array.from({length:ni},(ei,Kr)=>Rr+Kr);ir(Mn)}else ir(Rr)}else if(Er>0){const ni=En(un,Et.from);console.log(`\u65B0\u589E${Er}\u4E2A\uFF0C\u4E4B\u524D\u6709${ni}\u4E2A`),Xn(Er,ni)}}},Rt=()=>{const un=at.getFieldValue(bn);at.setFieldsValue({[bn]:un==null?void 0:un.map((Et,Xn)=>Vt(Vn({},Et),{position:Xn+1}))})},Tn=(0,oe.useRef)(),Yt=(un,Et)=>{for(let Xn=0;Xn<un;Xn++)Tn.current({position:null,answer_text:""},Et+Xn);Rt()},en=(0,oe.useRef)(),vn=un=>{en.current(un),Rt()},zn=ke.default.useWatch(bn,at);return St.createElement("div",{className:$e.Z.wrap},St.createElement(ke.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},St.createElement(He.h,{scrollId:"name",watch:!0,height:140})),St.createElement("div",{className:$e.Z.questionTitleEditorWrap},St.createElement(ke.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},St.createElement(He.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(un,Et)=>{const Xn=at.getFieldValue(bn);console.log("--preAnswerData",Xn,Et),at.setFieldsValue({[bn]:Xn==null?void 0:Xn.map((ir,Jt)=>{var Er;return Vt(Vn({},ir),{position:Jt+1,multi_line:(Er=Et==null?void 0:Et[Jt])==null?void 0:Er.multiLine})})})},placeholder:Ye,onCMBeforeChange:(un,Et)=>{pn(un,Et,Yt,vn)}}))),St.createElement(ke.default.List,{name:bn,rules:[{validator(un,Et){if(!(Et!=null&&Et.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Xn of Et){const{answer_text:ir}=Xn||{};if((ir==null?void 0:ir.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(un,{add:Et,remove:Xn},{errors:ir})=>(Tn.current=Et,en.current=Xn,St.createElement(St.Fragment,null,St.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},St.createElement(ke.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),St.createElement("div",{onClick:()=>{De.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:St.createElement("div",null,St.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",St.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),St.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"}},St.createElement(Cn.Z,{style:{marginRight:3,color:"#3061D0"}}),St.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),un.map((Jt,Er)=>{var ni=Jt,{key:Rr,name:Mn}=ni,ei=Ot(ni,["key","name"]),Kr,lr;return St.createElement(je.Z,{className:"mb20",key:Rr,align:"middle",wrap:!1},St.createElement(Te.Z,{flex:"0 0 auto",className:`${$e.Z.blankIndex}`},"\u586B\u7A7A\u9879",Er+1),St.createElement(Te.Z,{flex:1},St.createElement(je.Z,{align:"top",justify:"space-between",wrap:!1},St.createElement(Te.Z,null,St.createElement(ke.default.Item,Vt(Vn({},ei),{name:[Mn,"answer_text"],noStyle:!0}),(Kr=zn==null?void 0:zn[Mn])!=null&&Kr.multi_line||(lr=zn==null?void 0:zn[Mn])!=null&&lr.multiLine?St.createElement(Nn,{spellCheck:!1,style:{marginLeft:10,width:550}}):St.createElement(Pe.default,{style:{marginLeft:10,width:550},className:$e.Z.blankInput,size:"large",maxLength:1e3,onBlur:jr=>{}}))),Be&&St.createElement(Te.Z,{flex:"224px"},St.createElement(ke.default.Item,Vt(Vn({},ei),{name:[Mn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),St.createElement(Ge.Z,{size:"large",className:$e.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),St.createElement("div",{onClick:()=>Bn(!0)},St.createElement(ke.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},St.createElement(He.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:sn}))),St.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"}]},St.createElement(lt.default,{size:"large"},tr.map(un=>St.createElement(lt.default.Option,{key:un.title,value:un.key}," ",un.title)))),St.createElement(ke.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},St.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},St.createElement(Ge.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),St.createElement("span",{className:"ml10 font14"},"\u79D2")),St.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"}]},St.createElement(Ke.ZP.Group,{style:{marginTop:-10}},St.createElement(Ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),St.createElement(Ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),St.createElement(Ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),St.createElement(ke.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),St.createElement("div",{style:{background:"#F6F7F9",padding:15}},St.createElement(ke.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},St.createElement(Nn,{rows:4})),St.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"}]},St.createElement(Nn,{rows:4}))),St.createElement(Kt,{form:at,answerKey:bn,hackIdentifier:bt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:St.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(We,Ee,ae){"use strict";ae.d(Ee,{u:function(){return Ie}});var oe=ae(59301),Pe=ae(77019),ke=ae(5269),De=ae(25399),je=ae(28284),Te=ae(8423),Ge=ae(32134),lt=ae(12893),Ke=ae(31457),He=ae(59301),yt=Object.defineProperty,$e=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Xe,nt,Je)=>nt in Xe?yt(Xe,nt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Xe[nt]=Je,ue=(Xe,nt)=>{for(var Je in nt||(nt={}))te.call(nt,Je)&&he(Xe,Je,nt[Je]);if(Fe)for(var Je of Fe(nt))ee.call(nt,Je)&&he(Xe,Je,nt[Je]);return Xe},fe=(Xe,nt)=>$e(Xe,Mt(nt)),me=(Xe,nt)=>{var Je={};for(var st in Xe)te.call(Xe,st)&&nt.indexOf(st)<0&&(Je[st]=Xe[st]);if(Xe!=null&&Fe)for(var st of Fe(Xe))nt.indexOf(st)<0&&ee.call(Xe,st)&&(Je[st]=Xe[st]);return Je};const be=["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"],Ae=({value:Xe,onChange:nt,choiceTextKey:Je,answerKey:st,index:gt,isEdit:rt,setInputActive:mt,form:xt,choiceOptionsPath:Tt,allowChangeMode:zt,showAddIcon:Qt,addItem:Kt,deleteItem:Cn})=>{console.log(Xe,"value");const St=(Xe==null?void 0:Xe[st])===1,pt=()=>{const qt=xt.getFieldValue(Tt);xt.setFieldValue(Tt,qt.map(fn=>fe(ue({},fn),{[st]:0})))},ct=()=>{St?nt(fe(ue({},Xe),{[st]:0})):(zt||pt(),nt(fe(ue({},Xe),{[st]:1})))};return He.createElement(Pe.Z,{className:Te.Z.choiceWrap,align:"middle",wrap:!1},He.createElement(ke.Z,{onClick:ct,className:`${Te.Z.choiceIndex} ${St?Te.Z.activeAnswer:""}`},be[gt]),He.createElement(ke.Z,{flex:1,className:`${Te.Z.editorWrap} ml15`,onClick:mt},He.createElement(Ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:rt,value:Xe==null?void 0:Xe[Je],onChange:qt=>{nt(fe(ue({},Xe),{[Je]:qt}))}})),He.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},He.createElement("div",{onClick:ct,className:`${Te.Z.setAnswerBtn} ${St?Te.Z.activeAnswer:""}`},St?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),He.createElement(ke.Z,{className:Te.Z.actionWrapper},He.createElement(De.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},He.createElement(Ge.Z,{className:Te.Z.addIcon,onClick:Kt,style:{visibility:Qt?"visible":"hidden"}})),He.createElement(De.Z,{title:"\u5220\u9664"},He.createElement(lt.Z,{className:Te.Z.deleteIcon,onClick:Cn,style:{visibility:gt>1?"visible":"hidden"}}))))},Ie=({questionTitlePlaceholder:Xe,titleKey:nt,choiceKey:Je,analysisKey:st,choiceTextKey:gt,answerKey:rt,choiceOptionsPath:mt,allowChangeMode:xt=!0,form:Tt,showAnalysis:zt=!0})=>{const[Qt,Kt]=(0,oe.useState)(),[Cn,St]=(0,oe.useState)(!1);return He.createElement("div",{className:Te.Z.wrap},He.createElement("div",{className:Te.Z.questionTitleEditorWrap},He.createElement(je.default.Item,{label:"\u9898\u5E72",name:nt,labelCol:{span:24},rules:[{required:!0}]},He.createElement(Ke.h,{scrollId:Array.isArray(nt)?nt.join("_"):`${nt}`,watch:!0,height:140,placeholder:Xe}))),He.createElement(je.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),He.createElement(je.default.List,{name:Je,rules:[{validator(pt,ct){const qt=ct.some(kt=>kt[rt]===1),fn=ct.findIndex(kt=>{var xn;return((xn=kt[gt])==null?void 0:xn.length)<=0});return fn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[fn]}\u9009\u9879\u7684\u5185\u5BB9`)):qt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(pt,{add:ct,remove:qt})=>He.createElement("div",{id:Array.isArray(mt)?mt.join("_"):`${mt}`},pt.map((fn,kt)=>{var xn=fn,{key:kn,name:Vn}=xn,Vt=me(xn,["key","name"]);const Ot=Qt===kn,Nn=()=>{Kt(kn)},tr=kt<7&&kt===pt.length-1,hr=()=>ct({[gt]:"",[rt]:0}),ot=()=>qt(Vn);return He.createElement(je.default.Item,fe(ue({},Vt),{key:kn,name:Vn,className:Te.Z.choiceListWrap,rules:[{validator(_e,Re){return Re!=null&&Re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${be[kt]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),He.createElement(Ae,{choiceTextKey:gt,answerKey:rt,index:kt,isEdit:Ot,setInputActive:Nn,form:Tt,choiceOptionsPath:mt,allowChangeMode:xt,showAddIcon:tr,addItem:hr,deleteItem:ot}))}),pt.length<8&&He.createElement("div",{className:`${Te.Z.addBtn} mb30`,onClick:()=>ct({[gt]:"",[rt]:0})},"\u6DFB\u52A0\u9009\u9879"))),zt&&He.createElement("div",{onClick:()=>St(!0)},He.createElement(je.default.Item,{name:st,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},He.createElement(Ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Cn}))))}},92046:function(We,Ee,ae){"use strict";ae.d(Ee,{u:function(){return xt}});var oe=ae(59301),Pe=ae(62957),ke=ae(77019),De=ae(5269),je=ae(37568),Te=ae(25399),Ge=ae(71411),lt=ae(28284),Ke=ae(47889),He=ae(71051),yt=ae(31457),$e=ae(12893),Mt=ae(61485),Fe=ae(8423),te=ae(19105),ee=ae(59301),he=Object.defineProperty,ue=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ie=(Tt,zt,Qt)=>zt in Tt?he(Tt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Tt[zt]=Qt,Xe=(Tt,zt)=>{for(var Qt in zt||(zt={}))be.call(zt,Qt)&&Ie(Tt,Qt,zt[Qt]);if(me)for(var Qt of me(zt))Ae.call(zt,Qt)&&Ie(Tt,Qt,zt[Qt]);return Tt},nt=(Tt,zt)=>ue(Tt,fe(zt)),Je=(Tt,zt)=>{var Qt={};for(var Kt in Tt)be.call(Tt,Kt)&&zt.indexOf(Kt)<0&&(Qt[Kt]=Tt[Kt]);if(Tt!=null&&me)for(var Kt of me(Tt))zt.indexOf(Kt)<0&&Ae.call(Tt,Kt)&&(Qt[Kt]=Tt[Kt]);return Qt};const st=({value:Tt,onChange:zt})=>{const Qt=Cn=>{Pe.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 St=[...Tt];St.splice(Cn,1),zt(St)}})},Kt=()=>{const Cn=[...Tt];Cn.push(""),zt(Cn)};return ee.createElement(ke.Z,{className:"ml20"},ee.createElement(De.Z,{flex:1},Tt==null?void 0:Tt.map((Cn,St)=>ee.createElement(ke.Z,{key:`${Cn}_${St}`,className:"mb20"},ee.createElement(je.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Cn,autoSize:{maxRows:3},maxLength:1e3,onBlur:pt=>{const ct=[...Tt],qt=pt.target.value.trim();ct[St]=qt,zt(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement($e.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:St>0?"visible":"hidden"},onClick:()=>Qt(St)}))))),ee.createElement(De.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Kt()}},"\u65B0\u589E\u7B54\u6848")))},gt=({value:Tt,onChange:zt})=>{const Qt=Cn=>{Pe.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 St=[...Tt];St.splice(Cn,1),zt(St)}})},Kt=()=>{const Cn=[...Tt];Cn.push(""),zt(Cn)};return ee.createElement(ke.Z,{className:"ml20"},ee.createElement(De.Z,{flex:1},Tt==null?void 0:Tt.map((Cn,St)=>ee.createElement(ke.Z,{key:`${Cn}_${St}`,align:"middle",className:"mb20"},ee.createElement(te.Z,{value:Cn,style:{flex:1},onChange:pt=>{const ct=[...Tt];ct[St]=pt,zt(ct)}}),ee.createElement(Te.Z,{title:"\u5220\u9664"},ee.createElement($e.Z,{className:Fe.Z.deleteIcon,style:{marginLeft:15,visibility:St>0?"visible":"hidden"},onClick:()=>Qt(St)}))))),ee.createElement(De.Z,null,ee.createElement("div",{className:`${Fe.Z.addBtn}`,onClick:()=>{Kt()}},"\u65B0\u589E\u7B54\u6848")))},rt=({value:Tt=!0,onChange:zt})=>ee.createElement(Ge.Z,{checked:!Tt,onChange:Qt=>{zt(!Qt)}}),mt="\u2581",xt=({questionTitlePlaceholder:Tt,form:zt,scoreByBlank:Qt=!1,answerKey:Kt})=>{const[Cn,St]=(0,oe.useState)(!1),pt=(Vt,Ot)=>{const Nn=Ot.line;let tr=0;for(let ot=0;ot<Nn;ot++)tr+=Vt.getLine(ot).split(mt).length-1;const hr=Vt.getLine(Nn).substring(0,Ot.ch);return tr+=hr.split(mt).length-1,tr},ct=(Vt,Ot,Nn,tr)=>{const hr=Vt.getRange(Ot.from,Ot.to);let ot=0;if(Ot.text.forEach(_e=>{ot+=_e.split(mt).length-1}),Ot.origin!=="setValue"){if(hr&&hr.indexOf(mt)!==-1){const _e=hr.split(mt).length-1,Re=pt(Vt,Ot.from);if(console.log(`\u5220\u9664${_e}\u4E2A\uFF0C \u524D\u9762\u6709${Re}\u4E2A\uFF0C\u65B0\u589E${ot}\u4E2A`),_e>1){const Ye=Array.from({length:_e},(at,Be)=>Re+Be);tr(Ye)}else tr(Re)}else if(ot>0){const _e=pt(Vt,Ot.from);console.log(`\u65B0\u589E${ot}\u4E2A\uFF0C\u4E4B\u524D\u6709${_e}\u4E2A`),Nn(ot,_e)}}},qt=()=>{const Vt=zt.getFieldValue(Kt);zt.setFieldsValue({[Kt]:Vt.map((Ot,Nn)=>nt(Xe({},Ot),{position:Nn+1}))})},fn=(0,oe.useRef)(),kt=(Vt,Ot)=>{for(let Nn=0;Nn<Vt;Nn++)fn.current({position:null,answer_text:[""],model:1},Ot+Nn);qt()},xn=(0,oe.useRef)(),kn=Vt=>{xn.current(Vt),qt()},Vn=lt.default.useWatch(Kt,zt);return ee.createElement("div",{className:Fe.Z.wrap},ee.createElement("div",{className:Fe.Z.questionTitleEditorWrap},ee.createElement(lt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(yt.h,{scrollId:"name",watch:!0,height:140,placeholder:Tt,showNullButton:!0,onCMBeforeChange:(Vt,Ot)=>{ct(Vt,Ot,kt,kn)}}))),ee.createElement(lt.default.List,{name:Kt,rules:[{validator(Vt,Ot){if(!(Ot!=null&&Ot.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Nn of Ot){const{answer_text:tr}=Nn||{};if(tr!=null&&tr.some(hr=>(hr==null?void 0:hr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Vt,{add:Ot,remove:Nn},{errors:tr})=>(fn.current=Ot,xn.current=Nn,ee.createElement(ee.Fragment,null,ee.createElement(lt.default.Item,{label:ee.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Vt!=null&&Vt.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}}),Vt.map((hr,ot)=>{var _e=hr,{key:Re,name:Ye}=_e,at=Je(_e,["key","name"]),Be,bt;return ee.createElement("div",{style:{marginBottom:10},key:Re},ee.createElement(ke.Z,{className:"mb20",align:"middle",wrap:!1},ee.createElement(De.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Fe.Z.blankIndex}`},"\u586B\u7A7A\u9879",ot+1),ee.createElement(lt.default.Item,nt(Xe({},at),{name:[Ye,"model"],noStyle:!0}),ee.createElement(Ke.ZP.Group,{onChange:()=>{const bn=zt.getFieldValue(Kt);zt.setFieldsValue({[Kt]:bn.map((sn,Bn)=>nt(Xe({},sn),{answer_text:Ye===Bn?[""]:sn.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(Mt.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(Mt.Z,null)))))),ee.createElement(ke.Z,{style:{marginLeft:20},align:"middle",wrap:!1},ee.createElement(De.Z,{flex:1},ee.createElement(ke.Z,{align:"top",justify:"space-between",wrap:!1},ee.createElement(De.Z,{flex:1},ee.createElement(lt.default.Item,nt(Xe({},at),{name:[Ye,"answer_text"],noStyle:!0}),((bt=(Be=zt.getFieldValue(Kt))==null?void 0:Be[Ye])==null?void 0:bt.model)===1?ee.createElement(st,null):ee.createElement(gt,null))),Qt&&ee.createElement(De.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ee.createElement(lt.default.Item,nt(Xe({},at),{name:[Ye,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Fe.Z.blankInputNumberWrapper}),ee.createElement(He.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ee.createElement(lt.default.Item,nt(Xe({},at),{name:[Ye,"position"],noStyle:!0}),ee.createElement(je.default,{type:"hidden"})))))})))),ee.createElement(ke.Z,{align:"middle"},ee.createElement(lt.default.Item,{name:"downcase",valuePropName:"checked"},ee.createElement(Ge.Z,null)),ee.createElement(De.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(lt.default.Item,{name:"no_space",valuePropName:"checked"},ee.createElement(Ge.Z,null)),ee.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Vn==null?void 0:Vn.length)>1&&ee.createElement(ke.Z,{align:"middle",className:(Vn==null?void 0:Vn.length)>1?"mb30":`${Fe.Z.hide}`},ee.createElement(lt.default.Item,{name:"is_ordered"},ee.createElement(rt,null)),ee.createElement(De.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:()=>St(!0)},ee.createElement(lt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(yt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Cn}))))}},14289:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(59301),Pe=ae(77019),ke=ae(5269),De=ae(28284),je=ae(8423),Te=ae(31457),Ge=ae(59301),lt=Object.defineProperty,Ke=Object.defineProperties,He=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Fe=(be,Ae,Ie)=>Ae in be?lt(be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):be[Ae]=Ie,te=(be,Ae)=>{for(var Ie in Ae||(Ae={}))$e.call(Ae,Ie)&&Fe(be,Ie,Ae[Ie]);if(yt)for(var Ie of yt(Ae))Mt.call(Ae,Ie)&&Fe(be,Ie,Ae[Ie]);return be},ee=(be,Ae)=>Ke(be,He(Ae)),he=(be,Ae)=>{var Ie={};for(var Xe in be)$e.call(be,Xe)&&Ae.indexOf(Xe)<0&&(Ie[Xe]=be[Xe]);if(be!=null&&yt)for(var Xe of yt(be))Ae.indexOf(Xe)<0&&Mt.call(be,Xe)&&(Ie[Xe]=be[Xe]);return Ie};const ue={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fe=({value:be,onChange:Ae,form:Ie})=>{const Xe=(be==null?void 0:be.is_answer)===1,nt=be==null?void 0:be.choice_text,Je=()=>{const st=Ie.getFieldsValue().choices.map(gt=>({choice_text:gt.choice_text,is_answer:0}));Ie.setFieldsValue({choices:st}),Ae(ee(te({},be),{is_answer:1}))};return Ge.createElement(Pe.Z,{className:je.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ge.createElement(ke.Z,{onClick:Je,className:`${je.Z.choiceIndex} ${je.Z.judgementIndex} ${Xe?je.Z.activeAnswer:""}`},ue[nt]),Ge.createElement(ke.Z,{flex:1,className:`${je.Z.editorWrap} ml15`},Ge.createElement("div",{className:`${je.Z.inputBorder} ${je.Z.placeholder} ${Xe?je.Z.activeJudgementAnswer:""}`},nt)),Ge.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},Ge.createElement("div",{onClick:Je,className:`${je.Z.setAnswerBtn} ${Xe?je.Z.activeAnswer:""}`},Xe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},me=({questionTitlePlaceholder:be,choiceKey:Ae,form:Ie})=>{const[Xe,nt]=(0,oe.useState)(!1);return Ge.createElement("div",{className:je.Z.wrap},Ge.createElement("div",{className:je.Z.questionTitleEditorWrap},Ge.createElement(De.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ge.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:be}))),Ge.createElement(De.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ge.createElement(De.default.List,{name:"choices",rules:[{validator(Je,st){return st.some(rt=>(rt==null?void 0:rt.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Je=>Ge.createElement("div",{id:"choices"},Je.map(st=>{var gt=st,{key:rt,name:mt}=gt,xt=he(gt,["key","name"]);return Ge.createElement(De.default.Item,ee(te({},xt),{key:rt,name:mt,noStyle:!0}),Ge.createElement(fe,{form:Ie}))})))),Ge.createElement("div",{onClick:()=>nt(!0)},Ge.createElement(De.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ge.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Xe}))))}},31457:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return te},x:function(){return ee}});var oe=ae(39793),Pe=ae(8423),ke=ae(76902),De=ae(59301),je=Object.defineProperty,Te=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,yt=(he,ue,fe)=>ue in he?je(he,ue,{enumerable:!0,configurable:!0,writable:!0,value:fe}):he[ue]=fe,$e=(he,ue)=>{for(var fe in ue||(ue={}))Ke.call(ue,fe)&&yt(he,fe,ue[fe]);if(lt)for(var fe of lt(ue))He.call(ue,fe)&&yt(he,fe,ue[fe]);return he},Mt=(he,ue)=>Te(he,Ge(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&<)for(var me of lt(he))ue.indexOf(me)<0&&He.call(he,me)&&(fe[me]=he[me]);return fe};const te=he=>{var ue=he,{value:fe,onChange:me,scrollId:be}=ue,Ae=Fe(ue,["value","onChange","scrollId"]);return De.createElement("div",{id:be||""},De.createElement(oe.Z,Mt($e({},Ae),{defaultValue:fe,onChange:(Ie,Xe)=>{Xe!=null&&Xe.length?me(Ie,Xe):me(Ie)}})))},ee=({value:he,onChange:ue,placeholder:fe,height:me=140,isEdit:be,miniToolbar:Ae,watch:Ie=!0})=>be?De.createElement(oe.Z,{watch:Ie,isFocus:!0,height:me||void 0,placeholder:fe,defaultValue:he,onChange:ue,miniToolbar:Ae}):De.createElement("div",{style:{cursor:"pointer"}},he?De.createElement(ke.Z,{className:Pe.Z.inputBorder,value:he}):De.createElement("div",{className:`${Pe.Z.inputBorder} ${Pe.Z.placeholder} inputBorderError`},fe))},44272:function(We,Ee,ae){"use strict";ae.d(Ee,{W:function(){return gt}});var oe=ae(59301),Pe=ae(6767),ke=ae(96599),De=ae(28284),je=ae(71411),Te=ae(77019),Ge=ae(5269),lt=ae(25399),Ke=ae(37568),He=ae(71051),yt=ae(8423),$e=ae(31457),Mt=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,be=(rt,mt,xt)=>mt in rt?te(rt,mt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):rt[mt]=xt,Ae=(rt,mt)=>{for(var xt in mt||(mt={}))fe.call(mt,xt)&&be(rt,xt,mt[xt]);if(ue)for(var xt of ue(mt))me.call(mt,xt)&&be(rt,xt,mt[xt]);return rt},Ie=(rt,mt)=>ee(rt,he(mt)),Xe=(rt,mt)=>{var xt={};for(var Tt in rt)fe.call(rt,Tt)&&mt.indexOf(Tt)<0&&(xt[Tt]=rt[Tt]);if(rt!=null&&ue)for(var Tt of ue(rt))mt.indexOf(Tt)<0&&me.call(rt,Tt)&&(xt[Tt]=rt[Tt]);return xt};const nt=rt=>{var mt=rt,{value:xt,onChange:Tt}=mt,zt=Xe(mt,["value","onChange"]);const Qt=Kt=>{Tt([Kt])};return oe.createElement(Mt.Z,Ie(Ae({},zt),{defaultValue:xt==null?void 0:xt[0],onChange:Qt}))},Je=rt=>{if(!rt)return!1;if(/^s*$/.test(rt)||rt.trim()===""){Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let mt=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 rt==="|"?(Pe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},st=({value:rt=[],onClose:mt})=>oe.createElement(ke.default,{closable:!0,onClose:mt,className:yt.Z.keywordTag},oe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},rt.join(" \u6216 "))),gt=({questionTitlePlaceholder:rt,form:mt,showKeywords:xt,isMustKeyWords:Tt=xt})=>{const[zt,Qt]=(0,oe.useState)(!1),[Kt,Cn]=(0,oe.useState)(""),St=De.default.useWatch("use_keywords",mt),pt=De.default.useWatch("question_score",mt);return oe.createElement("div",{className:yt.Z.wrap},oe.createElement("div",{className:yt.Z.questionTitleEditorWrap},oe.createElement(De.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},oe.createElement($e.h,{scrollId:"name",watch:!0,height:140,placeholder:rt}))),oe.createElement(De.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},oe.createElement(nt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),xt&&!Tt&&oe.createElement(De.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},oe.createElement(je.Z,{defaultChecked:!0})),xt&&Tt&&oe.createElement(Te.Z,{align:"middle",className:"mb30"},oe.createElement(De.default.Item,{name:"use_keywords",valuePropName:"checked"},oe.createElement(je.Z,null)),oe.createElement(Ge.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),oe.createElement(Ge.Z,null,oe.createElement(lt.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"}})))),(St||!Tt)&&oe.createElement(De.default.List,{name:"keywords",rules:[{validator(ct,qt){return Tt?qt!=null&&qt.length?(qt==null?void 0:qt.reduce((kt,xn)=>kt+xn.score,0))>parseFloat(pt)?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()}}]},(ct,{add:qt,remove:fn})=>oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${yt.Z.title} mb10`},Tt?"\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(Ge.Z,{flex:1},oe.createElement(Ke.default,{value:Kt,onChange:kt=>{Cn(kt.target.value)},maxLength:50,allowClear:!0,onPressEnter:kt=>{var xn,kn,Vn,Vt;const Ot=`${(xn=kt.target)==null?void 0:xn.value}`,Nn=(Vn=(kn=Ot==null?void 0:Ot.split("|"))==null?void 0:kn.filter(ot=>!!ot))==null?void 0:Vn.map(ot=>ot==null?void 0:ot.trim()),tr=mt.getFieldValue("keywords"),hr=((Vt=tr==null?void 0:tr.map(ot=>ot==null?void 0:ot.keyword))==null?void 0:Vt.flat())||[];for(const ot of Nn)if(hr.includes(ot)){Pe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Je(Ot)&&(qt({keyword:Nn,score:1}),Cn(""))},className:yt.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(Ge.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ct.map(kt=>{var xn=kt,{key:kn,name:Vn}=xn,Vt=Xe(xn,["key","name"]);return oe.createElement(Te.Z,{key:kn,className:"mb20",style:{marginRight:148}},oe.createElement(Ge.Z,{flex:1},oe.createElement(Te.Z,{align:"middle",justify:"space-between"},oe.createElement(De.default.Item,Ie(Ae({},Vt),{name:[Vn,"keyword"]}),oe.createElement(st,{onClose:()=>fn(Vn)})),Tt&&oe.createElement(De.default.Item,Ie(Ae({},Vt),{name:[Vn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.Z.blankInputNumberWrapper}),oe.createElement(He.Z,{className:yt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),oe.createElement("div",{onClick:()=>Qt(!0)},oe.createElement(De.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},oe.createElement($e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:zt}))))}},74716:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return je}});var oe={text:"text___bQulM",sup:"sup___rX_Y3"},Pe=ae(28284),ke=ae(59301),je=({text:Te,name:Ge="question_score"})=>{const lt=({value:Ke})=>ke.createElement("div",{className:oe.text},ke.createElement("span",{className:oe.sup},"*"),ke.createElement("span",{className:"mr10"},"\u5206\u503C"),ke.createElement("span",null,Ke||"--"),ke.createElement("span",{className:"c-grey-999"},Te));return ke.createElement(Pe.default.Item,{noStyle:!0,name:Ge},ke.createElement(lt,null))}},76902:function(We,Ee,ae){"use strict";ae.d(Ee,{z:function(){return nt},Z:function(){return Je}});var oe=ae(59301),Pe=ae(8944),ke=ae(81428),De=ae(64018),je=ae(15360),Te=ae(346),Ge=ae(51257),lt=ae(15342),Ke=ae(1012),He=ae(45677),yt=ae(59301),Mt=({html:st})=>{const gt=(0,oe.useRef)(null),rt=(0,oe.useRef)(null),mt=`.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 xt=gt.current.attachShadow({mode:"open"});rt.current=document.createElement("div"),rt.current.className="markdown-body",rt.current.innerHTML=st,xt.appendChild(rt.current);const Tt=document.createElement("style");return Tt.textContent=mt,xt.appendChild(Tt),()=>{xt.innerHTML=""}},[]),(0,oe.useEffect)(()=>{rt.current&&(rt.current.innerHTML=st)},[st]),yt.createElement("div",{ref:gt})};function Fe(st){const gt=["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"],rt=new RegExp(`\\b(${gt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return st.replace(rt,"").trim()}var te=Object.defineProperty,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(st,gt,rt)=>gt in st?te(st,gt,{enumerable:!0,configurable:!0,writable:!0,value:rt}):st[gt]=rt,me=(st,gt)=>{for(var rt in gt||(gt={}))he.call(gt,rt)&&fe(st,rt,gt[rt]);if(ee)for(var rt of ee(gt))ue.call(gt,rt)&&fe(st,rt,gt[rt]);return st};const be="@\u2581\u2581@",Ae="@\u2581@",Ie=/<pre[^>]*>/g;function Xe(st){let gt=document.createElement("div");return gt.innerHTML=st,gt.childNodes.length===0?"":gt.childNodes[0].nodeValue}const nt=(st,gt)=>{st=st||"";const rt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,mt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,xt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return gt?st.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(rt,(zt,Qt,Kt,Cn,St,pt,ct)=>{const qt=Qt||Cn||pt,fn=Kt||St||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+qt+fn+"&t="+(0,Ge.Jn)(qt,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(st=st.replace(Tt,(zt,Qt,Kt,Cn,St,pt,ct)=>{const qt=Qt||Cn||pt,fn=Kt||St||ct||"?";return Te.Z.API_SERVER+"/attachments/download/"+qt+fn+"&t="+(0,Ge.Jn)(qt,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replace(rt,(zt,Qt,Kt,Cn,St,pt,ct)=>{const qt=Qt||Cn||pt,fn=Kt||St||ct||"?";return Te.Z.API_SERVER+"/api/attachments/"+qt+fn+"&t="+(0,Ge.Jn)(qt,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replace(mt,(zt,Qt,Kt,Cn,St)=>{const pt=Qt||Cn,ct=Kt||St||"";return'"'+Te.Z.API_SERVER+"/api/attachments/"+pt+ct+pt+ct+"&t="+(0,Ge.Jn)(pt,Date.now())}).replace(xt,(zt,Qt,Kt,Cn,St)=>{const pt=Qt||Cn,ct=Kt||St||"";return"("+Te.Z.API_SERVER+"/files/uploads/"+pt+ct+pt+ct+"&t="+(0,Ge.Jn)(pt,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,`
|
|
|
`),st)};var Je=({value:st="",className:gt,showTextOnly:rt,showLines:mt,style:xt={},stylesPrev:Tt={},highlightKeywords:zt,showProgramFill:Qt,isProgramFill:Kt,disabledFill:Cn=!1,programFillValue:St,onFillChange:pt=fn=>{},onFillBlur:ct=()=>{},onFillFocus:qt=()=>{}})=>{let fn=Fe(String(st||""));const[kt,xn]=(0,oe.useState)(""),[kn,Vn]=(0,oe.useState)("office"),[Vt,Ot]=(0,oe.useState)([]),Nn=(0,oe.useRef)("a"+(0,Ke.Z)()),tr={},hr=_t=>/<style[\s\S]*?>/i.test(_t||""),ot=(_t,jt,hn)=>{const En=document.createElement(_t===Ae?"input":"textarea");En.style.width="100%",En.style.height=_t===Ae?"40px":"151px",En.rows=5,En.spellcheck=!1,En.name="edu-program-fill",En.placeholder="\u8BF7\u8F93\u5165",En.dataset.id=jt;const pn=Object.keys(tr).length;return tr[pn]=En,`<span class="edu-program-fill-wrap ${_t===Ae?"":"show"}" style="width:${_t===Ae?"400px":"100%"}" title=${hn||""}><span>${En.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function _e(_t){return _t=_t.replace(/!\[.*?\]\(.*?\)/g,""),_t=_t.replace(/\[.*?\]\(.*?\)/g,""),_t=_t.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),_t=_t.replace(/<embed.*?>/g,""),_t=_t.replace(/<img.*?>/g,""),_t=_t.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),_t=_t.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),_t=_t.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),_t=_t.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),_t}const Re=_t=>!rt&&hr(fn)?_t:_t.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(jt,hn){let En=hn.replace(/(\n|\r)/g,"").split("}"),pn=[];return En.map(Rt=>{Rt!=""&&pn.push(`.${Nn.current} ${Rt}`)}),`<style>${pn.join("}")}</style>`}),Ye=(0,oe.useMemo)(()=>{try{const En=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Rt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Tn=/\(\/attachments\/download\//g;fn=fn.replace(Tn,"("+Te.Z.API_SERVER+"/attachments/download/").replace(En,"("+Te.Z.API_SERVER+"/api/attachments/").replace(pn,'"'+Te.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+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(En){}if(Qt){let En=-1;return fn=fn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(pn,Rt,Tn){var Yt;return++En,ot(pn,En,(Yt=St==null?void 0:St[En])==null?void 0:Yt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Re(fn||"")}</pre>`}let _t=Re(fn);_t=(0,ke.ZP)(_t);const jt=(0,ke.ez)();fn.match(/\[TOC\]/)&&(_t=_t.replace("<p>[TOC]</p>",(0,ke.Qv)()),(0,ke.Iy)()),_t=_t.replace(/(__special_katext_id_\d+__)/g,(En,pn)=>{const{type:Rt,expression:Tn}=jt[pn];return(0,lt.renderToString)(Xe(Tn)||"",{displayMode:Rt==="block",throwOnError:!1,output:"html"})}),_t=_t.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ke.AL)();const hn=document.createElement("div");if(hn.innerHTML=_t,rt)return hn.innerText;if(zt){const En=zt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return bn(hn,En),hn.innerHTML}return setTimeout(()=>It(),500),hn.innerHTML},[fn,zt]);(0,oe.useEffect)(()=>{sn.current&&sn.current.querySelectorAll(["input","textarea"]).forEach(jt=>{jt.oninput=at,jt.onblur=Be,jt.onfocus=bt})},[Vt]),(0,oe.useEffect)(()=>{var _t,jt,hn,En,pn;if(St!=null&&St.length)try{const Rt=sn.current.querySelectorAll(".edu-program-fill-score"),Tn=sn.current.querySelectorAll('[name="edu-program-fill"]');for(const[Yt,en]of Tn.entries())en.value=((_t=St==null?void 0:St[Yt])==null?void 0:_t.value)||"",((jt=St==null?void 0:St[Yt])==null?void 0:jt.type)==="warning"?en.className="program-fill-warning":((hn=St==null?void 0:St[Yt])==null?void 0:hn.type)==="success"?en.className="program-fill-success":en.className="";for(const[Yt,en]of Rt.entries())en.innerHTML=(En=St==null?void 0:St[Yt])!=null&&En.score?`${(pn=St==null?void 0:St[Yt])==null?void 0:pn.score}\u5206`:"";Ot(St)}catch(Rt){console.log(Rt,"error")}},[St]);const at=_t=>{Vt[_t.target.dataset.id]=Vt[_t.target.dataset.id]||{},Vt[_t.target.dataset.id].value=_t.target.value,Ot([...Vt]),pt(Vt,_t.target.dataset.id)},Be=_t=>{Vt[_t.target.dataset.id]=Vt[_t.target.dataset.id]||{},Vt[_t.target.dataset.id].value=_t.target.value,Ot([...Vt]),ct(Vt,_t.target.dataset.id)},bt=_t=>{Vt[_t.target.dataset.id]=Vt[_t.target.dataset.id]||{},Vt[_t.target.dataset.id].value=_t.target.value,Ot([...Vt]),qt(Vt,_t.target.dataset.id)};function bn(_t,jt){return _t.childNodes.forEach(hn=>{var En;if(hn.childNodes.length>0)bn(hn,jt);else if(hn.nodeName!=="IMG")if(hn.innerHTML)hn.innerHTML=(En=hn.innerHTML)==null?void 0:En.replace(new RegExp(jt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const pn=document.createElement("span");pn.innerHTML=hn.textContent.replace(new RegExp(jt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),hn.replaceWith(pn)}})}const sn=(0,oe.useRef)();ke.jb.WebkitLineClamp=mt,mt&&(xt=me(me({},xt),ke.jb));function Bn(_t){let jt=_t.target;if(jt.tagName.toUpperCase()==="A"){let hn=jt.getAttribute("href");if(hn.indexOf("office")>-1)_t.preventDefault(),xn(hn),Vn("office");else if(hn.indexOf("application/pdf")>-1)_t.preventDefault(),xn(hn),Vn("pdf");else if(hn.indexOf("text/html")>-1)_t.preventDefault(),xn(hn),Vn("html");else if(hn.startsWith("#")){_t.preventDefault();let En=document.getElementById(hn.replace("#",""));En&&En.scrollIntoView(!0)}}}const It=()=>{var _t;const jt=(_t=sn.current)==null?void 0:_t.querySelectorAll("video");jt==null||jt.forEach(hn=>{if(hn.oncontextmenu=()=>!1,hn.src.indexOf(".m3u8")>-1&&!hn.canPlayType("application/vnd.apple.mpegurl")){if(je.ZP.isSupported()){var En=new je.ZP;En.loadSource(hn.src),En.attachMedia(hn)}}})};return(0,oe.useEffect)(()=>{if(sn.current&&Ye&&Ye.match(Ie)&&window.PR.prettyPrint(),sn.current)return sn.current.addEventListener("click",Bn),()=>{var _t;(_t=sn.current)==null||_t.removeEventListener("click",Bn),(0,ke.AL)(),(0,ke.Iy)()}},[Ye,sn.current,Bn]),(0,oe.useEffect)(()=>{var _t;const jt=hn=>{hn.preventDefault(),hn.clipboardData.setData("text",window.getSelection().toString())};return(_t=sn.current)==null||_t.addEventListener("copy",jt),()=>{var hn;(hn=sn.current)==null||hn.removeEventListener("copy",jt)}},[sn.current]),oe.createElement(oe.Fragment,null,rt&&oe.createElement("div",{ref:sn},Ye),!rt&&!hr(Ye)&&oe.createElement("div",{ref:sn,style:me({},xt),className:`${gt||""} ${Cn?"disabled-fill":""} markdown-body ${Nn.current}`,dangerouslySetInnerHTML:{__html:Ye}}),!rt&&hr(Ye)&&oe.createElement(Mt,{html:Ye}),oe.createElement(He.Z,{close:!0,data:kt,type:kt!=null&&kt.length?kn:"",style:me({},Tt),onClose:()=>xn("")}))}},69720:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return be}});var oe=ae(59301),Pe=ae(82326),ke=ae(28284),De=ae(99571),je=ae(89780),Te=ae.n(je),Ge=ae(8336),lt=ae(12469),Ke=Object.defineProperty,He=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,te=(Ae,Ie,Xe)=>Ie in Ae?Ke(Ae,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Ae[Ie]=Xe,ee=(Ae,Ie)=>{for(var Xe in Ie||(Ie={}))Mt.call(Ie,Xe)&&te(Ae,Xe,Ie[Xe]);if($e)for(var Xe of $e(Ie))Fe.call(Ie,Xe)&&te(Ae,Xe,Ie[Xe]);return Ae},he=(Ae,Ie)=>He(Ae,yt(Ie));const ue=Pe.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"]};Ee.Z=({callback:Ae,onCancel:Ie})=>{const[Xe,nt]=(0,oe.useState)("python");function Je(gt){nt(me[gt][1])}function st(gt){Ae(gt)}return oe.createElement(ke.default,he(ee({},fe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:st,style:{width:500}}),oe.createElement(ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(Pe.default,{getPopupContainer:gt=>gt.parentNode,onChange:Je},Object.keys(me).map(gt=>oe.createElement(ue,{key:gt,value:gt},me[gt][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(be,{mode:Xe})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(De.ZP,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))};function be({value:Ae,onChange:Ie,mode:Xe,options:nt={}}){const Je=(0,oe.useRef)(),[st,gt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(st){let rt=function(mt){const xt=mt.getValue();Ie&&Ie(xt)};return st.on("change",rt),()=>{st.off("change",rt)}}},[st,Ie]),(0,oe.useEffect)(()=>{st&&st.setOption("mode",Xe)},[st,Xe]),(0,oe.useEffect)(()=>{st&&(Ae!==st.getValue()||Ae==="")&&setTimeout(()=>{st.setValue(Ae||"")},300)},[st,Ae]),(0,oe.useEffect)(()=>{if(Je.current&&!st){const rt=Te().fromTextArea(Je.current,ee({mode:Xe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},nt));gt(rt)}},[Je.current,st]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:Je}))}},39793:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ti}});var oe=ae(59301),Pe=ae(89780),ke=ae.n(Pe),De=ae(76374),je=ae(8336),Te=ae(6313),Ge=ae(25717),lt=ae(99498),Ke=ae(25419),He=ae(67549),yt=ae(76902),$e=({value:On="",className:yn,showTextOnly:Sn,showLines:Jn,style:ui={}})=>{const Yr=(0,oe.useMemo)(()=>"",[On]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Yr}}))},Mt=Object.defineProperty,Fe=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(On,yn,Sn)=>yn in On?Mt(On,yn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):On[yn]=Sn,me=(On,yn)=>{for(var Sn in yn||(yn={}))he.call(yn,Sn)&&fe(On,Sn,yn[Sn]);if(ee)for(var Sn of ee(yn))ue.call(yn,Sn)&&fe(On,Sn,yn[Sn]);return On},be=(On,yn)=>Fe(On,te(yn));let Ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ie({onActionCallback:On,title:yn,icon:Sn,actionName:Jn,className:ui="",children:Yr}){function ci(){On(Jn)}return oe.createElement("a",{title:yn,className:ui,onClick:ci},oe.createElement("i",{className:`${Sn}`}),Yr)}var Xe=({watch:On,showNullButton:yn,showNullProgramButton:Sn,onActionCallback:Jn,fullScreen:ui,insertTemp:Yr,hidetoolBar:ci,extraUse:ur})=>{const Xr=[...Ae,{title:`${On?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${On?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!ci&&Xr.map((wi,ki)=>oe.createElement("li",{key:ki},wi.actionName?oe.createElement(Ie,be(me({},wi),{onActionCallback:Jn})):oe.createElement("span",{className:"v-line"}))),yn?oe.createElement("li",null,oe.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Jn},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Sn?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Jn},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Jn},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Yr&&oe.createElement("li",null,oe.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Yr}`,onActionCallback:Jn},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ur&&oe.createElement("li",null,ur),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(Ie,{icon:`${ui?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ui?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Jn})))},nt=ae(91558),Je=ae(28284),st=ae(37568),gt=ae(99571),rt=Object.defineProperty,mt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Kt=(On,yn,Sn)=>yn in On?rt(On,yn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):On[yn]=Sn,Cn=(On,yn)=>{for(var Sn in yn||(yn={}))zt.call(yn,Sn)&&Kt(On,Sn,yn[Sn]);if(Tt)for(var Sn of Tt(yn))Qt.call(yn,Sn)&&Kt(On,Sn,yn[Sn]);return On},St=(On,yn)=>mt(On,xt(yn));const pt={labelCol:{span:4},wrapperCol:{span:20}};var ct=({callback:On,onCancel:yn})=>{function Sn(Jn){On(Jn)}return oe.createElement(Je.default,St(Cn({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Sn,style:{width:500}}),oe.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(st.default,null)),oe.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(st.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(gt.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},qt=ae(69720),fn=ae(17077),kt=ae(62957),xn=ae(77019),kn=ae(9507),Vn=ae(59301),Vt=({callback:On,onCancel:yn})=>{const Sn=document.createElement("canvas"),Jn=Sn.getContext("2d");Sn.width=1e3,Sn.height=800,Jn.fillStyle="#ffffff",Jn.fillRect(0,0,Sn.width,Sn.height);const ui=Sn.toDataURL("image/png");return Vn.createElement(kt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Vn.createElement(xn.Z,{style:{height:"100vh"}},Vn.createElement(kn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ui,visible:!0,title:String(Date.now())},onOk:Yr=>{On({src:Yr.url})},onClose:yn})))},Ot=ae(12378);function Nn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Nn,go.CommandHandler),Nn.prototype.canAlignSelection=function(){var On=this.diagram;return!(On===null||On.isReadOnly||On.isModelReadOnly||On.selection.count<2)},Nn.prototype.alignLeft=function(){var On=this.diagram;On.startTransaction("aligning left");var yn=1/0;On.selection.each(function(Sn){Sn instanceof go.Link||(yn=Math.min(Sn.position.x,yn))}),On.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(yn,Sn.position.y))}),On.commitTransaction("aligning left")},Nn.prototype.alignRight=function(){var On=this.diagram;On.startTransaction("aligning right");var yn=-1/0;On.selection.each(function(Sn){if(!(Sn instanceof go.Link)){var Jn=Sn.actualBounds.x+Sn.actualBounds.width;yn=Math.max(Jn,yn)}}),On.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(yn-Sn.actualBounds.width,Sn.position.y))}),On.commitTransaction("aligning right")},Nn.prototype.alignTop=function(){var On=this.diagram;On.startTransaction("alignTop");var yn=1/0;On.selection.each(function(Sn){Sn instanceof go.Link||(yn=Math.min(Sn.position.y,yn))}),On.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(Sn.position.x,yn))}),On.commitTransaction("alignTop")},Nn.prototype.alignBottom=function(){var On=this.diagram;On.startTransaction("aligning bottom");var yn=-1/0;On.selection.each(function(Sn){if(!(Sn instanceof go.Link)){var Jn=Sn.actualBounds.y+Sn.actualBounds.height;yn=Math.max(Jn,yn)}}),On.selection.each(function(Sn){Sn instanceof go.Link||Sn.move(new go.Point(Sn.actualBounds.x,yn-Sn.actualBounds.height))}),On.commitTransaction("aligning bottom")},Nn.prototype.alignCenterX=function(){var On=this.diagram,yn=On.selection.first();if(yn){On.startTransaction("aligning Center X");var Sn=yn.actualBounds.x+yn.actualBounds.width/2;On.selection.each(function(Jn){Jn instanceof go.Link||Jn.move(new go.Point(Sn-Jn.actualBounds.width/2,Jn.actualBounds.y))}),On.commitTransaction("aligning Center X")}},Nn.prototype.alignCenterY=function(){var On=this.diagram,yn=On.selection.first();if(yn){On.startTransaction("aligning Center Y");var Sn=yn.actualBounds.y+yn.actualBounds.height/2;On.selection.each(function(Jn){Jn instanceof go.Link||Jn.move(new go.Point(Jn.actualBounds.x,Sn-Jn.actualBounds.height/2))}),On.commitTransaction("aligning Center Y")}},Nn.prototype.alignColumn=function(On){var yn=this.diagram;yn.startTransaction("align Column"),On===void 0&&(On=0),On=parseFloat(On);var Sn=new Array;yn.selection.each(function(ur){ur instanceof go.Link||Sn.push(ur)});for(var Jn=0;Jn<Sn.length-1;Jn++){var ui=Sn[Jn],Yr=ui.actualBounds.y+ui.actualBounds.height+On,ci=Sn[Jn+1];ci.move(new go.Point(ui.actualBounds.x,Yr))}yn.commitTransaction("align Column")},Nn.prototype.alignRow=function(On){On===void 0&&(On=0),On=parseFloat(On);var yn=this.diagram;yn.startTransaction("align Row");var Sn=new Array;yn.selection.each(function(ur){ur instanceof go.Link||Sn.push(ur)});for(var Jn=0;Jn<Sn.length-1;Jn++){var ui=Sn[Jn],Yr=ui.actualBounds.x+ui.actualBounds.width+On,ci=Sn[Jn+1];ci.move(new go.Point(Yr,ui.actualBounds.y))}yn.commitTransaction("align Row")},Nn.prototype.canRotate=function(On){var yn=this.diagram;return!(yn===null||yn.isReadOnly||yn.isModelReadOnly||yn.selection.count<1)},Nn.prototype.rotate=function(On){On===void 0&&(On=90);var yn=this.diagram;yn.startTransaction("rotate "+On.toString());var yn=this.diagram;yn.selection.each(function(Sn){Sn instanceof go.Link||Sn instanceof go.Group||(Sn.angle+=On)}),yn.commitTransaction("rotate "+On.toString())},Nn.prototype.pullToFront=function(){var On=this.diagram;On.startTransaction("pullToFront");var yn=new go.Map;On.selection.each(function(Sn){yn.set(Sn.layer,0)}),yn.iteratorKeys.each(function(Sn){var Jn=0;Sn.parts.each(function(ui){if(!ui.isSelected){var Yr=ui.zOrder;isNaN(Yr)?ui.zOrder=0:Jn=Math.max(Jn,Yr)}}),yn.set(Sn,Jn)}),On.selection.each(function(Sn){Nn._assignZOrder(Sn,yn.get(Sn.layer)+1)}),On.commitTransaction("pullToFront")},Nn.prototype.pushToBack=function(){var On=this.diagram;On.startTransaction("pushToBack");var yn=new go.Map;On.selection.each(function(Sn){yn.set(Sn.layer,0)}),yn.iteratorKeys.each(function(Sn){var Jn=0;Sn.parts.each(function(ui){if(!ui.isSelected){var Yr=ui.zOrder;isNaN(Yr)?ui.zOrder=0:Jn=Math.min(Jn,Yr)}}),yn.set(Sn,Jn)}),On.selection.each(function(Sn){Nn._assignZOrder(Sn,yn.get(Sn.layer)-1-Nn._findGroupDepth(Sn))}),On.commitTransaction("pushToBack")},Nn._assignZOrder=function(On,yn,Sn){Sn===void 0&&(Sn=On),On.layer===Sn.layer&&(On.zOrder=yn),On instanceof go.Group&&On.memberParts.each(function(Jn){Nn._assignZOrder(Jn,yn+1,Sn)})},Nn._findGroupDepth=function(On){if(On instanceof go.Group){var yn=0;return On.memberParts.each(function(Sn){yn=Math.max(yn,Nn._findGroupDepth(Sn))}),yn+1}else return 0},Nn.prototype.doKeyDown=function(){var On=this.diagram;if(On!==null){var yn=On.lastInput;if(yn.key==="Up"||yn.key==="Down"||yn.key==="Left"||yn.key==="Right"){var Sn=this.arrowKeyBehavior;if(Sn==="none")return;if(Sn==="select"){this._arrowKeySelect();return}else if(Sn==="move"){this._arrowKeyMove();return}else if(Sn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Nn.prototype._getAllParts=function(){var On=new Array;return this.diagram.nodes.each(function(yn){On.push(yn)}),this.diagram.parts.each(function(yn){On.push(yn)}),On},Nn.prototype._arrowKeyMove=function(){var On=this.diagram,yn=On.lastInput,Sn=0,Jn=0;if(yn.control||yn.meta)Sn=1,Jn=1;else if(On.grid!==null){var ui=On.grid.gridCellSize;Jn=ui.width,Sn=ui.height}On.startTransaction("arrowKeyMove"),On.selection.each(function(Yr){yn.key==="Up"?Yr.move(new go.Point(Yr.actualBounds.x,Yr.actualBounds.y-Sn)):yn.key==="Down"?Yr.move(new go.Point(Yr.actualBounds.x,Yr.actualBounds.y+Sn)):yn.key==="Left"?Yr.move(new go.Point(Yr.actualBounds.x-Jn,Yr.actualBounds.y)):yn.key==="Right"&&Yr.move(new go.Point(Yr.actualBounds.x+Jn,Yr.actualBounds.y))}),On.commitTransaction("arrowKeyMove")},Nn.prototype._arrowKeySelect=function(){var On=this.diagram,yn=On.lastInput,Sn=null;yn.key==="Up"?Sn=this._findNearestPartTowards(270):yn.key==="Down"?Sn=this._findNearestPartTowards(90):yn.key==="Left"?Sn=this._findNearestPartTowards(180):yn.key==="Right"&&(Sn=this._findNearestPartTowards(0)),Sn!==null&&(yn.shift?Sn.isSelected=!0:yn.control||yn.meta?Sn.isSelected=!Sn.isSelected:On.select(Sn))},Nn.prototype._findNearestPartTowards=function(On){var yn=this.diagram.selection.first();if(yn===null)return null;for(var Sn=yn.actualBounds.center,Jn=this._getAllParts(),ui=1/0,Yr=yn,ci=0;ci<Jn.length;ci++){var ur=Jn[ci];if(ur!==yn&&ur.canSelect()){var Xr=ur.actualBounds.center,wi=Sn.directionPoint(Xr),ki=this._angleCloseness(wi,On);if(ki<=45){var Fr=Sn.distanceSquaredPoint(Xr);Fr*=1+Math.sin(ki*Math.PI/180),Fr<ui&&(ui=Fr,Yr=ur)}}}return Yr},Nn.prototype._angleCloseness=function(On,yn){return Math.min(Math.abs(yn-On),Math.min(Math.abs(yn+360-On),Math.abs(yn-360-On)))},Nn.prototype._arrowKeyTree=function(){var On=this.diagram,yn=On.selection.first();if(yn instanceof go.Node){var Sn=On.lastInput;if(Sn.key==="Right"){if(!yn.isTreeLeaf)if(!yn.isTreeExpanded)On.commandHandler.canExpandTree(yn)&&On.commandHandler.expandTree(yn);else{var Jn=this._sortTreeChildrenByY(yn).first();Jn!==null&&On.select(Jn)}}else if(Sn.key==="Left")if(!yn.isTreeLeaf&&yn.isTreeExpanded)On.commandHandler.canCollapseTree(yn)&&On.commandHandler.collapseTree(yn);else{var ui=yn.findTreeParentNode();ui!==null&&On.select(ui)}else if(Sn.key==="Up"){var ui=yn.findTreeParentNode();if(ui!==null){var Yr=this._sortTreeChildrenByY(ui),ci=Yr.indexOf(yn);if(ci>0){for(var ur=Yr.elt(ci-1);ur!==null&&ur.isTreeExpanded&&!ur.isTreeLeaf;){var Xr=this._sortTreeChildrenByY(ur);ur=Xr.last()}ur!==null&&On.select(ur)}else On.select(ui)}}else if(Sn.key==="Down")if(yn.isTreeExpanded&&!yn.isTreeLeaf){var Jn=this._sortTreeChildrenByY(yn).first();Jn!==null&&On.select(Jn)}else for(;yn!==null;){var ui=yn.findTreeParentNode();if(ui===null)break;var Yr=this._sortTreeChildrenByY(ui),ci=Yr.indexOf(yn);if(ci<Yr.length-1){On.select(Yr.elt(ci+1));break}else yn=ui}var wi=On.selection.first();wi!==null&&On.scrollToRect(wi.actualBounds)}},Nn.prototype._sortTreeChildrenByY=function(On){var yn=new go.List().addAll(On.findTreeChildrenNodes());return yn.sort(function(Sn,Jn){var ui=Sn.location,Yr=Jn.location;return ui.y<Yr.y?-1:ui.y>Yr.y?1:ui.x<Yr.x?-1:ui.x>Yr.x?1:0}),yn},Nn.prototype.copyToClipboard=function(On){go.CommandHandler.prototype.copyToClipboard.call(this,On),this._lastPasteOffset.set(this.pasteOffset)},Nn.prototype.pasteFromClipboard=function(){var On=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(On,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),On},Object.defineProperty(Nn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(On){if(On!=="move"&&On!=="select"&&On!=="scroll"&&On!=="tree"&&On!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+On);this._arrowKeyBehavior=On}}),Object.defineProperty(Nn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(On){if(!(On instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+On);this._pasteOffset.set(On)}});var tr=Nn,hr=ae(63720),ot=ae(5269),_e=ae(38986),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ye=ae(48790),at=ae(59301),Be=(On,yn,Sn)=>new Promise((Jn,ui)=>{var Yr=Xr=>{try{ur(Sn.next(Xr))}catch(wi){ui(wi)}},ci=Xr=>{try{ur(Sn.throw(Xr))}catch(wi){ui(wi)}},ur=Xr=>Xr.done?Jn(Xr.value):Promise.resolve(Xr.value).then(Yr,ci);ur((Sn=Sn.apply(On,yn)).next())});function bt({onCancel:On,callback:yn}){let Sn=(0,oe.useRef)(),Jn=(0,oe.useRef)(),ui=(0,oe.useRef)(),Yr=(0,oe.useRef)(!1);const ci=(0,oe.useRef)(!1),[ur,Xr]=(0,oe.useState)(0);function wi(){const Fr=Ot.bx.make,Lt={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"};Sn.current=new Ot.S0(Jn.current,{padding:20,grid:Fr(Ot.s_,"Grid",Fr(Ot.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fr(Ot.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:mn=>{var li=mn.diagram.commandHandler.addTopLevelParts(mn.diagram.selection,!0);li||mn.diagram.currentTool.doCancel()},commandHandler:Fr(tr),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:mn=>{var li=mn.subject;li.location=li.location.copy().snapToGridPoint(mn.diagram.grid.gridOrigin,mn.diagram.grid.gridCellSize),setTimeout(()=>{mn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:mn=>{var li=mn.subject;setTimeout(()=>{mn.diagram.commandHandler.editTextBlock()})},LinkRelinked:mn=>{var li=mn.parameter.part;li.invalidateConnectedLinks();var bi=mn.subject;mn.diagram.toolManager.linkingTool.isForwards?bi.toNode.invalidateConnectedLinks():bi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Sn.current.nodeTemplate=Fr(Ot.NB,"Auto",{locationSpot:Ot.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ot.$u(120,60),minSize:new Ot.$u(40,40),resizable:!0,resizeCellSize:new Ot.$u(10,10),rotatable:!0},new Ot.KX("location","loc",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),new Ot.KX("desiredSize","size",Ot.$u.parse).makeTwoWay(Ot.$u.stringify),Fr(Ot.bn,{name:"SHAPE",fill:Lt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ot.z6.AllSides,toSpot:Ot.z6.AllSides},new Ot.KX("figure"),new Ot.KX("fill"),new Ot.KX("stroke","borderColor"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),Fr(Ot.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Fr(Ot.al,{margin:1,textAlign:"center",overflow:Ot.al.OverflowEllipsis,editable:!0},new Ot.KX("text").makeTwoWay(),new Ot.KX("stroke","color"))),Sn.current.nodeTemplate.toolTip=Fr("ToolTip",Fr(Ot.s_,"Vertical",{maxSize:new Ot.$u(200,NaN)},Fr(Ot.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ot.KX("text")),Fr(Ot.al,{font:"10pt sans-serif",textAlign:"center"},new Ot.KX("text","details"))));function cn(mn,li){var bi=(qr,Pi)=>{qr.handled=!0,qr.diagram.model.commit(Ii=>{var Hi=Pi.part.adornedPart,ji=new Ot.E9().setRectSpot(Hi.actualBounds,mn);ji.subtract(Hi.location),ji.scale(2,2),ji.x+=Math.sign(ji.x)*130,ji.y+=Math.sign(ji.y)*130,ji.add(Hi.location),ji.snapToGridPoint(qr.diagram.grid.gridOrigin,qr.diagram.grid.gridCellSize);var Bi=Ii.copyNodeData(Hi.data);Ii.setGroupKeyForNodeData(Bi,Ii.getGroupKeyForNodeData(Hi.data)),Ii.addNodeData(Bi);var io={from:Hi.key,to:Ii.getKeyForNodeData(Bi)};Ii.addLinkData(io);var Qn=qr.diagram.findNodeForData(Bi);Qn.location=ji,qr.diagram.select(Qn),setTimeout(()=>{qr.diagram.commandHandler.editTextBlock()},20)})};return Fr(Ot.bn,{figure:li,alignment:mn,alignmentFocus:mn.opposite(),width:mn.equals(Ot.z6.Top)||mn.equals(Ot.z6.Bottom)?25:18,height:mn.equals(Ot.z6.Top)||mn.equals(Ot.z6.Bottom)?18:25,fill:"orange",stroke:Lt.white,strokeWidth:4,mouseEnter:(qr,Pi)=>Pi.fill="dodgerblue",mouseLeave:(qr,Pi)=>Pi.fill="orange",isActionable:!0,click:bi,contextClick:bi})}function kr(mn){return Fr(Ot.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:(li,bi)=>bi.fill="dodgerblue",mouseLeave:(li,bi)=>bi.fill="orange",click:(li,bi)=>{li.diagram.commandHandler.showContextMenu(bi.part.adornedPart)}},mn||{})}Sn.current.nodeTemplate.selectionAdornmentTemplate=Fr(Ot.uz,"Spot",Fr(Ot.Vm,{padding:10}),cn(Ot.z6.Top,"TriangleUp"),cn(Ot.z6.Left,"TriangleLeft"),cn(Ot.z6.Right,"TriangleRight"),cn(Ot.z6.Bottom,"TriangleDown"),kr({alignment:new Ot.z6(.75,0)}));function Ir(mn,li){return(bi,qr)=>{bi.handled=!0,bi.diagram.model.commit(Pi=>{Pi.set(qr.part.adornedPart.data,mn,li)})}}function Xt(mn,li){return li||(li="color"),Fr(Ot.bn,{width:16,height:16,stroke:"lightgray",fill:mn,margin:1,background:"transparent",mouseEnter:(bi,qr)=>qr.stroke="dodgerblue",mouseLeave:(bi,qr)=>qr.stroke="lightgray",click:Ir(li,mn),contextClick:Ir(li,mn)})}function Fn(){return[Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Xt(Lt.white,"fill"),Xt(Lt.beige,"fill"),Xt(Lt.extralightblue,"fill"),Xt(Lt.extralightred,"fill"))),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Xt(Lt.lightgray,"fill"),Xt(Lt.lightgreen,"fill"),Xt(Lt.lightblue,"fill"),Xt(Lt.lightred,"fill")))]}function fr(){return[Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Xt(Lt.black),Xt(Lt.green),Xt(Lt.blue),Xt(Lt.red))),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Xt(Lt.white),Xt(Lt.magenta),Xt(Lt.purple),Xt(Lt.orange)))]}function dn(mn,li){return li||(li="thickness"),Fr(Ot.bn,"LineH",{width:16,height:16,strokeWidth:mn,margin:1,background:"transparent",mouseEnter:(bi,qr)=>qr.background="dodgerblue",mouseLeave:(bi,qr)=>qr.background="transparent",click:Ir(li,mn),contextClick:Ir(li,mn)})}function Ue(mn,li){return li||(li="dash"),Fr(Ot.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:mn,margin:1,background:"transparent",mouseEnter:(bi,qr)=>qr.background="dodgerblue",mouseLeave:(bi,qr)=>qr.background="transparent",click:Ir(li,mn),contextClick:Ir(li,mn)})}function Mr(){return[Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",dn(1),dn(2),dn(3),dn(4))),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Ue(null),Ue([2,4]),Ue([4,4])))]}function Ur(mn,li){return li||(li="figure"),Fr(Ot.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:mn,margin:1,background:"transparent",mouseEnter:(bi,qr)=>qr.fill="dodgerblue",mouseLeave:(bi,qr)=>qr.fill="lightgray",click:Ir(li,mn),contextClick:Ir(li,mn)})}Sn.current.nodeTemplate.contextMenu=Fr("ContextMenu",Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Ur("Rectangle"),Ur("RoundedRectangle"),Ur("Ellipse"),Ur("Diamond"))),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Ur("Parallelogram2"),Ur("ManualOperation"),Ur("Procedure"),Ur("Cylinder1"))),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Ur("Terminator"),Ur("CreateRequest"),Ur("Document"),Ur("TriangleDown"))),Fn(),fr(),Mr()),Sn.current.groupTemplate=Fr(Ot.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ot.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(mn,li)=>{var bi=li.addMembers(li.diagram.selection,!0);bi||li.diagram.currentTool.doCancel()},avoidable:!1},new Ot.KX("location","loc",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),Fr(Ot.s_,"Auto",{name:"BODY"},Fr(Ot.bn,{parameter1:10,fill:Lt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ot.z6.AllSides,toSpot:Ot.z6.AllSides},new Ot.KX("fill"),new Ot.KX("stroke","color"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),Fr(Ot.Vm,{background:"transparent",margin:20})),Fr(Ot.al,{alignment:Ot.z6.Top,alignmentFocus:Ot.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ot.KX("text"),new Ot.KX("stroke","color"))),Sn.current.groupTemplate.selectionAdornmentTemplate=Fr(Ot.uz,"Spot",Fr(Ot.s_,"Auto",Fr(Ot.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Fr(Ot.Vm,{margin:1.5})),kr({alignment:Ot.z6.TopRight,alignmentFocus:Ot.z6.BottomRight})),Sn.current.groupTemplate.contextMenu=Fr("ContextMenu",Fn(),fr(),Mr()),Sn.current.linkTemplate=Fr(Ot.rU,{layerName:"Foreground",routing:Ot.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ot.KX("fromSpot","fromSpot",Ot.z6.parse),new Ot.KX("toSpot","toSpot",Ot.z6.parse),new Ot.KX("fromShortLength","dir",mn=>mn>=1?10:0),new Ot.KX("toShortLength","dir",mn=>mn>=1?10:0),new Ot.KX("points").makeTwoWay(),Fr(Ot.bn,{strokeWidth:2},new Ot.KX("stroke","color"),new Ot.KX("strokeWidth","thickness"),new Ot.KX("strokeDashArray","dash")),Fr(Ot.bn,{segmentIndex:0,segmentOffset:new Ot.E9(15,0),segmentOrientation:Ot.rU.OrientAlong,alignmentFocus:Ot.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",mn=>mn===1)),Fr(Ot.bn,{segmentIndex:-1,segmentOffset:new Ot.E9(-10,6),segmentOrientation:Ot.rU.OrientPlus90,alignmentFocus:Ot.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",mn=>mn>=1),new Ot.KX("width","thickness",mn=>7+3*mn),new Ot.KX("height","thickness",mn=>7+3*mn),new Ot.KX("segmentOffset","thickness",mn=>new Ot.E9(-15,4+1.5*mn))),Fr(Ot.bn,{segmentIndex:0,segmentOffset:new Ot.E9(15,-6),segmentOrientation:Ot.rU.OrientMinus90,alignmentFocus:Ot.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ot.KX("fill","color"),new Ot.KX("visible","dir",mn=>mn===2),new Ot.KX("width","thickness",mn=>7+3*mn),new Ot.KX("height","thickness",mn=>7+3*mn),new Ot.KX("segmentOffset","thickness",mn=>new Ot.E9(-15,4+1.5*mn))),Fr(Ot.al,{alignmentFocus:new Ot.z6(0,1,-4,0),editable:!0},new Ot.KX("text").makeTwoWay(),new Ot.KX("stroke","color"))),Sn.current.linkTemplate.selectionAdornmentTemplate=Fr(Ot.uz,Fr(Ot.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Wn(2)},new Ot.KX("pathPattern","thickness",Wn)),kr({alignmentFocus:new Ot.z6(0,0,-6,-4)}));function Wn(mn){return Fr(Ot.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(mn+4).toString()+" H3"})}function mi(mn){var li="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return mn===0?li="M0 0 M16 16 M0 8 L16 8":mn===2&&(li="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Fr(Ot.bn,{geometryString:li,margin:2,background:"transparent",mouseEnter:(bi,qr)=>qr.background="dodgerblue",mouseLeave:(bi,qr)=>qr.background="transparent",click:Ir("dir",mn),contextClick:Ir("dir",mn)})}function Qr(mn){var li=(bi,qr)=>{bi.handled=!0,bi.diagram.model.commit(Pi=>{var Ii=qr.part.adornedPart;Pi.set(Ii.data,mn?"toSpot":"fromSpot",Ot.z6.stringify(Ot.z6.AllSides)),(mn?Ii.toNode:Ii.fromNode).invalidateConnectedLinks()})};return Fr(Ot.bn,{width:12,height:12,fill:"transparent",mouseEnter:(bi,qr)=>qr.background="dodgerblue",mouseLeave:(bi,qr)=>qr.background="transparent",click:li,contextClick:li})}function rr(mn,li){var bi=0,qr=Ot.z6.RightSide;mn.equals(Ot.z6.Top)?(bi=270,qr=Ot.z6.TopSide):mn.equals(Ot.z6.Left)?(bi=180,qr=Ot.z6.LeftSide):mn.equals(Ot.z6.Bottom)&&(bi=90,qr=Ot.z6.BottomSide),li||(bi-=180);var Pi=(Ii,Hi)=>{Ii.handled=!0,Ii.diagram.model.commit(ji=>{var Bi=Hi.part.adornedPart;ji.set(Bi.data,li?"toSpot":"fromSpot",Ot.z6.stringify(qr)),(li?Bi.toNode:Bi.fromNode).invalidateConnectedLinks()})};return Fr(Ot.bn,{alignment:mn,alignmentFocus:mn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:bi,background:"transparent",mouseEnter:(Ii,Hi)=>Hi.background="dodgerblue",mouseLeave:(Ii,Hi)=>Hi.background="transparent",click:Pi,contextClick:Pi})}Sn.current.linkTemplate.contextMenu=Fr("ContextMenu",fr(),Mr(),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",mi(0),mi(1),mi(2))),Fr("ContextMenuButton",Fr(Ot.s_,"Horizontal",Fr(Ot.s_,"Spot",Qr(!1),rr(Ot.z6.Top,!1),rr(Ot.z6.Left,!1),rr(Ot.z6.Right,!1),rr(Ot.z6.Bottom,!1)),Fr(Ot.s_,"Spot",{margin:new Ot.Zt(0,0,0,2)},Qr(!0),rr(Ot.z6.Top,!0),rr(Ot.z6.Left,!0),rr(Ot.z6.Right,!0),rr(Ot.z6.Bottom,!0)))));const Gr=`{ "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 on=["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 Ci(mn){return console.log("shapeName:",mn),on.indexOf(mn)>=0}var Vi=new Ot.YI(ui.current,{maxSelectionCount:1,linkTemplate:Fr(Ot.rU,{locationSpot:Ot.z6.Center,selectionAdornmentTemplate:Fr(Ot.uz,"Link",{locationSpot:Ot.z6.Center},Fr(Ot.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Fr(Ot.bn,{toArrow:"Standard",stroke:null}))},{routing:Ot.rU.AvoidsNodes,curve:Ot.rU.JumpOver,corner:5,toShortLength:4},new Ot.KX("points"),Fr(Ot.bn,{isPanelMain:!0,strokeWidth:2}),Fr(Ot.bn,{toArrow:"Standard",stroke:null})),model:new Ot.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ot.bn.getFigureGenerators().toArray().map(mn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:mn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Sn.current.addDiagramListener("TextEdited",function(mn){var li;const bi=mn.subject.part;var qr=(li=document.activeElement)==null?void 0:li.value;typeof qr=="string"&&qr.trim()===""&&Sn.current.model.commit(function(Pi){Pi.set(bi.data,"text","\u672A\u547D\u540D"),Sn.current.commandHandler.stopCommand()},"increment")}),Vi.nodeTemplate=Fr(Ot.NB,"Auto",{locationSpot:Ot.z6.Center},new Ot.KX("location","location",Ot.E9.parse).makeTwoWay(Ot.E9.stringify),Fr(Ot.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 Ot.KX("stroke").makeTwoWay(),new Ot.KX("fill").makeTwoWay(),new Ot.KX("figure")),Fr(Ot.al,{margin:new Ot.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ot.$u(16,16),maxSize:new Ot.$u(10,NaN),textAlign:"center",editable:!0},new Ot.KX("key").makeTwoWay())),setTimeout(()=>{Sn.current.grid=Fr(Ot.s_,"Grid",Fr(Ot.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Fr(Ot.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Sn.current.grid.visible=!0,Sn.current.grid.gridCellStroke="darkgray",Sn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Sn.current,Sn.current}const ki=()=>Be(this,null,function*(){var Fr,Lt=Sn.current.makeImage();const cn=yield(0,_e.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Lt.src,file_data:JSON.stringify({login:(Fr=(0,Ye.eY)())==null?void 0:Fr.login,data:JSON.parse(Sn.current.model.toJson())})}});yn({src:cn.url})});return(0,oe.useEffect)(()=>(setTimeout(()=>{wi()},500),Xr(ur+1),()=>{Sn.current=null}),[]),at.createElement("div",{ref:ci,className:"body-overflow-initial"},at.createElement(kt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ur,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:at.createElement(xn.Z,null,at.createElement(ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),at.createElement(ot.Z,{onClick:()=>{var Fr,Lt,cn=Sn.current.selection.first();if(Yr.current=!Yr.current,document.activeElement&&cn){let kr=(Lt=(Fr=document.activeElement)==null?void 0:Fr.value)==null?void 0:Lt.trim();typeof kr=="string"&&Sn.current.model.commit(function(Ir){Ir.set(cn.data,"text",kr||"\u672A\u547D\u540D"),Sn.current.commandHandler.stopCommand()},"increment")}Xr(ur+1)}},at.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:On},at.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Yr.current?"none":"block"},className:Re.flowChartWrp},at.createElement("div",{style:{display:"flex",height:"100%"}},at.createElement("div",{style:{width:"300px",height:"100%"}},at.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),at.createElement("div",{style:{height:"calc(100% - 50px)"},className:Re.myPaletteDiv,ref:ui})),at.createElement("div",{style:{flex:1,position:"relative"}},at.createElement("div",{ref:Jn,style:{height:"80vh"}}))),at.createElement("div",{className:"tr"},at.createElement(gt.ZP,{size:"large",onClick:ki,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var bn=bt,sn=ae(47889),Bn=ae(71051);const It=sn.ZP.Group,_t={margin:"0 8px"};var jt=({callback:On,onCancel:yn})=>{function Sn(Jn){On(Jn)}return oe.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Sn},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:_t},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:_t},"\u884C\u6570"),oe.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Bn.Z,null)),oe.createElement("span",{style:_t},"\u5217\u6570"),oe.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Bn.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:_t},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(Je.default.Item,{name:"align"},oe.createElement(It,null,oe.createElement(sn.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(sn.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(sn.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(sn.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(gt.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},hn=ae(71411),En=ae(43001),pn=ae.n(En),Tn=(0,oe.forwardRef)(({use3d:On,width:yn,height:Sn,callback:Jn,showSaveButton:ui},Yr)=>{const ci=(0,oe.useRef)(),ur=(0,oe.useRef)(),[Xr,wi]=(0,oe.useState)(!1),ki=(0,oe.useRef)({id:ci,appName:"graphing",width:yn||1e3,height:Sn||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)(()=>{ur.current=new(pn())(ki.current,!0),window.onload=function(){ur.current.inject("applet_container")}},[]);const Fr=()=>{var Lt=window.ggbApplet.getPNGBase64(1,!0,72);return Jn&&Jn(Lt),Lt};return(0,oe.useEffect)(()=>{ki.current.appName=Xr?"3D":"graphing",ur.current.inject("applet_container")},[Xr]),(0,oe.useEffect)(()=>{wi(On)},[On]),(0,oe.useImperativeHandle)(Yr,()=>({getImgData:Fr})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ci}),oe.createElement(xn.Z,{align:"middle"},oe.createElement(ot.Z,{flex:1},oe.createElement(hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Xr,onChange:Lt=>wi(Lt)})),oe.createElement(ot.Z,null,oe.createElement(gt.ZP,{size:"large",onClick:Fr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Yt=ae(76562),en=ae(6767);const vn="link",zn="upload-image",un="add-flowchart",Et="draw-image",Xn="add-flowchart",ir="code-block",Jt="add-table",Er="------------",ni={default:Er,left:`:${Er}`,center:`:${Er}:`,right:`${Er}:`};var Rr=ae(37808);function Mn(){}let ei=0;const Kr=1e4,lr="\u2581",jr="@\u2581\u2581@",oi="@\u2581@",Oe=`
|
|
|
**\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`,dr=["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 Pr(On){return/^\d+$/.test(On)?`${On}px`:On}const Lr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zr={[Lr+"-B"]:"bold",[Lr+"-I"]:"italic"},wr={[vn]:"\u6DFB\u52A0\u94FE\u63A5",[ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[zn]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[un]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Jt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ti=({defaultValue:On="",onChange:yn,width:Sn="100%",height:Jn=400,miniToolbar:ui=!1,isFocus:Yr=!1,watch:ci,insertTemp:ur,mode:Xr="markdown",id:wi="markdown-editor-id",showResizeBar:ki=!1,noStorage:Fr=!1,showNullButton:Lt=!1,showNullProgramButton:cn=!1,hidetoolBar:kr=!1,fullScreen:Ir=!1,onBlur:Xt,onCMBeforeChange:Fn,onFullScreen:fr,className:dn="",disablePaste:Ue=!1,disabled:Mr=!1,disabledFill:Ur=!1,placeholder:Wn="",values:mi="",extraUse:Qr})=>{const[rr,Gr]=(0,oe.useState)(null),[on,Ci]=(0,oe.useState)(On),[Vi,mn]=(0,oe.useState)(ci),[li,bi]=(0,oe.useState)(Ir),[qr,Pi]=(0,oe.useState)(""),[Ii,Hi]=(0,oe.useState)(0),[ji,Bi]=(0,oe.useState)(Jn),[io,Qn]=(0,oe.useState)(!1),[zi,ar]=(0,oe.useState)(0),[vi,Zi]=(0,oe.useState)(0),Fi=(0,oe.useRef)(),fo=(0,oe.useRef)(),co=(0,oe.useRef)(),Wi=(0,oe.useRef)();(0,oe.useEffect)(()=>{const gn=window.scrollY||window.pageYOffset;Ci(mi),rr==null||rr.setValue(mi),window.scrollTo(0,gn)},[mi]),(0,oe.useEffect)(()=>{fr==null||fr(li)},[li]),(0,oe.useEffect)(()=>{if(Fi.current){let gn=function(Yn,an){var cr;if(Ue){an.preventDefault();return}const Vr=an.clipboardData;if(Vr){const Ni=Vr.types.toString(),si=Vr.items;if(Ni==="Files"||Vr.types.indexOf("Files")>-1){if(an.preventDefault(),Xr=="stex")return;try{let Si=si[1];((cr=si[0])==null?void 0:cr.kind)==="file"&&(Si=si[0]);const Ri=Si.getAsFile(),_i=Ri.name.split(".").pop();(0,fn.I)(Ri,ao=>{var wo,Ho,In;ao.id?((wo=Ri==null?void 0:Ri.type)==null?void 0:wo.indexOf("image"))>-1?$n.replaceSelection(`<img width="100%" src="/api/attachments/${ao.id}?type=${ao.content_type})" alt="" />`):((Ho=Ri==null?void 0:Ri.type)==null?void 0:Ho.indexOf("video"))>-1?$n.replaceSelection(`<video width="100%" controls src="/api/attachments/${ao.id}"></video>`):((In=Ri==null?void 0:Ri.type)==null?void 0:In.indexOf("pdf"))>-1?$n.replaceSelection(`<a href="/api/attachments/${ao.id}?type=${Ri.type}&disposition=inline" target="_blank">${Ri.name}</a>`):dr.includes(_i)?$n.replaceSelection(`<a href="/api/attachments/${ao.id}?type=office&disposition=inline" target="_blank">${Ri.name}</a>`):$n.replaceSelection(`[${Ri.name}](/api/attachments/${ao.id}?type=${ao.content_type})`):(ao==null?void 0:ao.status)===401&&(document.location.href="/user/login")})}catch(Si){en.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $n=ke().fromTextArea(Fi.current,{mode:Xr,lineNumbers:!ui,lineWrapping:!0,value:On,autoCloseTags:!0,autoCloseBrackets:!0});return $n.on("keyup",function(Yn,an){an.keyCode===8&&(Yn.getValue()==""?$n.setOption("placeholder",Wn):$n.setOption("placeholder",null))}),$n.on("keydown",function(Yn,an){if(an.keyCode===8){var cr=_n(Yn);cr&&an.preventDefault()}}),Yr&&$n.focus(),$n.on("paste",gn),Mr&&$n.on("beforeChange",function(Yn,an){(an.origin==="paste"||an.origin==="+input")&&an.cancel()}),Gr($n),()=>{$n.off("paste",gn)}}},[]);const zo=(0,oe.useCallback)(()=>{if(fo.current)try{}catch(gn){console.log(gn,"---- to set md editor body height")}},[ji,fo,li]);(0,oe.useEffect)(()=>{function gn(){let $n=new De.Z(Yn=>{for(let an of Yn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&(zo(),rr.setSize("100%","100%"),rr.refresh())});return $n.observe(Fi.current.parentElement),$n}if(rr){const $n=gn();return()=>{var Yn,an;(Yn=Fi.current)!=null&&Yn.parentElement&&$n.unobserve((an=Fi.current)==null?void 0:an.parentElement)}}},[rr,zo]),(0,oe.useEffect)(()=>{if(rr){let gn=[];for(const[$n,Yn]of Object.entries(zr)){let an={[$n]:()=>{vr(Yn)}};gn.push(an),rr.addKeyMap(an)}return()=>{for(let $n of gn)rr.removeKeyMap($n)}}},[rr]),(0,oe.useEffect)(()=>{Ir!==li&&bi(Ir)},[Ir]),(0,Rr.Z)(()=>{if(!Fr&&Ii>0){let gn=new Date().getTime(),$n=window.sessionStorage.getItem(wi);gn>=Ii+Kr&&(!$n||$n!==on)&&(window.sessionStorage.setItem(wi,on),Qn(!0))}},Kr),(0,oe.useEffect)(()=>{mn(ci)},[rr,ci]),(0,oe.useEffect)(()=>{rr&&Yr&&rr.focus()},[rr,Yr]),(0,oe.useEffect)(()=>{if(Vi&&rr){let gn=function(Yn){let an=Yn.target;if(Wi.current){let cr=an.scrollTop/an.scrollHeight;Wi.current.scrollTop=Wi.current.scrollHeight*cr}};const $n=rr.getScrollerElement();return $n.addEventListener("scroll",gn),()=>{$n.removeEventListener("scroll",gn)}}},[rr,Vi]),(0,oe.useEffect)(()=>{if(rr&&Fn){let gn=function($n,Yn){Fn($n,Yn)};return rr.on("beforeChange",gn),()=>{rr.off("beforeChange",gn)}}},[rr,Fn]),(0,oe.useEffect)(()=>{if(rr&&Xt){let gn=function(){Xt(rr.getValue())};return rr.on("blur",gn),()=>{rr.off("blur",gn)}}},[rr,Xt]);function _n(gn,$n){var Yn=gn.getDoc(),an=Yn.getCursor(),cr=Yn.getLine(an.line),Vr=cr.charAt(an.ch-1),Ni=cr.lastIndexOf("@\u2581@",an.ch),si=cr.lastIndexOf("@\u2581\u2581@",an.ch),Si=Ni>si?Ni:si,Ri=Ni>si?3:4;if(jr.indexOf(Vr)===-1)return null;if(console.log("change1:",$n,gn,cr,an,Si,Ni,si,Vr),Si>=0&&an.ch-Si<5){var _i=Si+Ri;return Yn.replaceRange("",{line:an.line,ch:Si},{line:an.line,ch:_i}),{line:an.line,ch:_i}}return null}(0,oe.useEffect)(()=>{if(rr){let gn=function($n,Yn){const an=$n.getValue();Ci(an),Hi(new Date().getTime()),$n.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),yn&&(cn?yn(an,mr(an)):yn(an))};return rr.on("change",gn),()=>{rr.off("change",gn)}}},[rr,yn]),(0,oe.useEffect)(()=>{if(rr)if(On==null)rr.setValue(""),Ci("");else{const gn=window.scrollY||window.pageYOffset;On!==rr.getValue()&&(rr.setValue(On),Ci(On),rr.setCursor(Mr?1:rr.lineCount(),0),window.scrollTo(0,gn))}},[rr,On]);const vr=(0,oe.useCallback)(gn=>{const $n=rr.getCursor(),Yn=rr.getSelection();let an=Yn.split(`
|
|
|
`);switch(gn){case"bold":return rr.replaceSelection("**"+Yn+"**"),Yn===""&&rr.setCursor($n.line,$n.ch+2),rr.focus();case"italic":return rr.replaceSelection("*"+Yn+"*"),Yn===""&&rr.setCursor($n.line,$n.ch+1),rr.focus();case"code":return rr.replaceSelection("`"+Yn+"`"),Yn===""&&rr.setCursor($n.line,$n.ch+1),rr.focus();case"inline-latex":return Pi("inline-latex"),rr.focus();case"latex":return rr.replaceSelection("```latex\n"+Yn+"\n```"),rr.setCursor($n.line+1,Yn.length+1),rr.focus();case"line-break":return rr.replaceSelection(`<br/>
|
|
|
`),rr.focus();case"list-ul":return Yn===""?rr.replaceSelection("- "+Yn):rr.replaceSelection(an.map(cr=>cr===""?"":`- ${cr}`).join(`
|
|
|
`)),rr.focus();case"list-ol":return Yn===""?rr.replaceSelection("1. "+Yn):rr.replaceSelection(an.map((cr,Vr)=>cr===""?"":`${Vr+1}. ${cr}`).join(`
|
|
|
`)),rr.focus();case"add-null-ch":return Yn===""&&rr.setCursor($n.line,$n.ch),rr.replaceSelection(lr),rr.focus();case"add-signal":return Yn===""&&rr.setCursor($n.line,$n.ch),rr.replaceSelection(oi),rr.focus();case"add-multiple":return Yn===""&&rr.setCursor($n.line,$n.ch),rr.replaceSelection(jr),rr.focus();case"inster-template-1":return Yn===""&&rr.setCursor($n.line,$n.ch),rr.replaceSelection(Oe),rr.focus();case"eraser":return rr.setValue(""),rr.focus();case"trigger-watch":return mn(!Vi),rr.focus();case"trigger-full-screen":return bi(!li),rr.focus();case vn:Pi(vn);return;case ir:Pi(ir);return;case zn:Pi(zn);return;case Et:Pi(Et);return;case"maths-latex":Pi("maths-latex");return;case un:Pi(un);return;case Jt:Pi(Jt);return;default:throw new Error}},[rr,Vi,li]),An=(0,oe.useCallback)((gn,$n)=>{var Yn,an,cr,Vr,Ni,si;switch(Pi(""),qr){case vn:const{title:wo,link:Ho}=gn;return rr.replaceSelection(`[${wo}](${Ho})`),rr.focus();case ir:const{language:In,content:ko}=gn;return rr.replaceSelection(["```"+In,ko,"```"].join(`
|
|
|
`)),rr.focus();case"maths-latex":for(var Si=atob(gn),Ri=new Uint8Array(Si.length),_i=0;_i<Si.length;_i++)Ri[_i]=Si.charCodeAt(_i);var ao=new Blob([Ri],{type:"image/png"});(0,fn.I)(ao,za=>{za.id?rr.replaceSelection(``):(za==null?void 0:za.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":rr.replaceSelection("`$$"+gn+"$$`");break;case zn:case Et:case Xn:const{src:po,alt:Yi}=gn,Oi=$n,Oo=(cr=(an=(Yn=Oi==null?void 0:Oi.name)==null?void 0:Yn.split("."))==null?void 0:an.pop)==null?void 0:cr.call(an);return((Vr=Oi==null?void 0:Oi.type)==null?void 0:Vr.indexOf("image"))>-1||!(Oi!=null&&Oi.type)?Oi!=null&&Oi.align||Oi!=null&&Oi.width?rr.replaceSelection(`<p style="text-align:${Oi.align||"initial"}"><img width="${Oi.width?Oi.width+"%":"initial"}" src="${po}" alt="${Yi||""}" /></p>`):rr.replaceSelection(`<img width="100%" src="${po}" alt="${Yi||""}" />`):((Ni=Oi==null?void 0:Oi.type)==null?void 0:Ni.indexOf("video"))>-1?rr.replaceSelection(`<video width="100%" controls src="${po}"></video>`):((si=Oi==null?void 0:Oi.type)==null?void 0:si.indexOf("pdf"))>-1?rr.replaceSelection(`<a href="${po}?type=${Oi.type}&disposition=inline" target="_blank">${Oi.name}</a>`):dr.includes(Oo)?rr.replaceSelection(`<a href="${po}?type=office&disposition=inline" target="_blank">${Oi.name}</a>`):rr.replaceSelection(`[${Oi.name}](${po})`),rr.focus();case Jt:const{row:Wo,col:jn,align:vo}=gn;let ia=`
|
|
|
`;for(let za=0;za<Wo;za++){let hs=[],il=[];for(let Ls=0;Ls<jn;Ls++)za===1&&il.push(ni[vo]),hs.push(" ");za===1&&(ia+=`| ${il.join(" | ")} |
|
|
|
`),ia+=`| ${hs.join(jn===1?"":" | ")} |
|
|
|
`}return rr.replaceSelection(ia+`
|
|
|
`),rr.focus();default:throw new Error}},[rr,qr]),it=(0,oe.useMemo)(()=>{switch(qr){case vn:return oe.createElement(ct,{callback:An,onCancel:Dr});case ir:return oe.createElement(qt.Z,{callback:An,onCancel:Dr});case zn:return oe.createElement(fn.Z,{callback:An,onCancel:Dr});case un:return oe.createElement(bn,{callback:An,onCancel:Dr});case Jt:return oe.createElement(jt,{callback:An,onCancel:Dr});case"maths-latex":return oe.createElement(Tn,{showSaveButton:!0,callback:An});case"inline-latex":return oe.createElement(Yt.Z,{showSaveButton:!0,callback:An});default:return null}},[qr]);function Dr(){Pi("")}(0,oe.useEffect)(()=>{if(co.current){let gn=function(Ni){cr=!0,Vr=Ni.pageY},$n=function(){cr=!1},Yn=function(Ni){if(cr){let si=Ni.pageY-Vr;si<0&&(si=0),si>300&&(si=300);let Si=Jn+si+"px";Bi(Si)}},an=co.current,cr=!1,Vr=0;return an.addEventListener("mousedown",gn),document.addEventListener("mousemove",Yn),document.addEventListener("mouseup",$n),()=>{an.removeEventListener("mousedown",gn),document.removeEventListener("mousemove",Yn),document.removeEventListener("mouseup",$n)}}},[rr,co]),(0,oe.useEffect)(()=>{Bi(Jn)},[Jn]);const Wr=Pr(Sn),pi=Pr(ji),hi={width:Wr,height:pi},ai=(0,oe.useMemo)(()=>{if(Ii){let gn=new Date(Ii),$n=gn.getHours(),Yn=gn.getMinutes(),an=gn.getSeconds();return $n=$n<10?"0"+$n:$n,Yn=Yn<10?"0"+Yn:Yn,an=an<10?"0"+an:an,`${$n}:${Yn}:${an}`}return 0},[Ii]),mr=gn=>{const $n=[];if(cn){let Yn=-1;gn=gn.replace(/(@▁▁@|@▁@)/g,function(an,cr,Vr){$n.push({multiLine:an!==oi})})}return $n};function ht(){window.sessionStorage.removeItem(wi),Qn(!1),Hi(0)}function wn(){Qn(!1),Hi(0),rr.setValue(window.sessionStorage.getItem(wi))}(0,oe.useEffect)(()=>{wr[qr]&&qr!==Et&&qr!==un&&setTimeout(()=>{const gn=document.getElementsByClassName("markdown-popup-form")[0],$n=window.innerWidth/2-gn.offsetWidth/2,Yn=window.innerHeight/2-gn.offsetHeight/2;ar($n),Zi(Yn)},0)},[qr]);const Pn=gn=>{gn.preventDefault();const $n=gn.clientX-zi,Yn=gn.clientY-vi;document.body.onmousemove=an=>{let cr=an.clientX-$n,Vr=an.clientY-Yn;const Ni=document.getElementsByClassName("markdown-popup-form")[0],si=window.innerWidth-Ni.offsetWidth,Si=window.innerHeight-Ni.offsetHeight;cr=Math.max(0,Math.min(cr,si)),Vr=Math.max(0,Math.min(Vr,Si)),Gn(an.clientX,an.clientY,$n,Yn)&&(ar(cr),Zi(Vr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gn=(gn,$n,Yn,an)=>{const cr=document.body.clientHeight,Vr=document.body.clientWidth;return gn<20&&Yn>gn||gn>Vr-20&&Yn<gn||$n<20&&an>$n||$n>cr-20&&an<$n?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:fo},oe.createElement("div",{className:`markdown-editor-container ${dn} ${Vi?"on-preview":""} ${ui?"mini":""} ${li?"full-screen":""}`,style:hi},oe.createElement(Xe,{insertTemp:ur,watch:Vi,fullScreen:li,showNullButton:Lt,showNullProgramButton:cn,onActionCallback:vr,hidetoolBar:kr,extraUse:Qr}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:Fi,placeholder:Wn})),Vi?oe.createElement("div",{ref:Wi,className:"preview-container"},Xr==="stex"&&oe.createElement($e,{value:on}),Xr!=="stex"&&oe.createElement(yt.Z,{disabledFill:Ur,showProgramFill:cn,value:on})):null))),ki?oe.createElement("a",{ref:co,className:"editor-resize"}):null,qr===Et&&oe.createElement(Vt,{callback:An,onCancel:Dr}),qr===un&&oe.createElement(bn,{callback:An,onCancel:Dr}),oe.createElement(nt.Z,null,wr[qr]&&qr!==Et&&qr!==un?oe.createElement(kt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:zi,top:vi},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:Pn},wr[qr]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:qr===un?"1200px":null,height:qr===un?"80vh":null,className:"markdown-popup-form"},it):null))}},17077:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Ie},I:function(){return nt}});var oe=ae(28284),Pe=ae(6767),ke=ae(37568),De=ae(77736),je=ae(71051),Te=ae(47889),Ge=ae(99571),lt=ae(46699),Ke=ae(59301),He=ae(59301),yt=Object.defineProperty,$e=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,he=(Je,st,gt)=>st in Je?yt(Je,st,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Je[st]=gt,ue=(Je,st)=>{for(var gt in st||(st={}))te.call(st,gt)&&he(Je,gt,st[gt]);if(Fe)for(var gt of Fe(st))ee.call(st,gt)&&he(Je,gt,st[gt]);return Je},fe=(Je,st)=>$e(Je,Mt(st));const{useForm:me}=oe.default,be={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Ie=({callback:Je,onCancel:st})=>{const[gt]=me();let rt=(0,Ke.useRef)();function mt(zt){rt.current.width=gt.getFieldValue("width"),rt.current.align=gt.getFieldValue("align"),Je(zt,rt.current)}function xt(zt,Qt){if(zt.status===-1){Pe.ZP.error(zt.message);return}gt.setFieldsValue({src:`/api/attachments/${zt.id}`,type:Qt.type})}function Tt(zt){let Qt=zt.target.files[0];rt.current=Qt,nt(Qt,xt)}return He.createElement(oe.default,fe(ue({form:gt},Ae),{className:"upload-image-panel",onFinish:mt,style:{width:470,overflow:"hidden"}}),He.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},He.createElement(ke.default,{style:be})),He.createElement(Xe,{onFileChange:Tt}))),He.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(ke.default,{style:{width:264}})),He.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(De.Z,null,He.createElement(oe.default.Item,{name:"width",style:{margin:0}},He.createElement(je.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.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"}]})),He.createElement("aside",null,He.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Ge.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function Xe({onFileChange:Je}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:Je}))}function nt(Je,st){if(!Je)throw new String("\u6CA1\u6709\u6587\u4EF6");let gt=new FormData;gt.append("editormd-image-file",Je),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(mt){st(JSON.parse(mt.target.responseText),Je)},!1),rt.addEventListener("error",function(mt){console.error(mt)},!1),rt.open("POST",`${lt.KI}/api/attachments.json`),rt.send(gt)}},91558:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ke}});var oe=ae(59301),Pe=ae(4676);class ke extends oe.Component{constructor(je){super(je);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:je}=this.props;return(0,Pe.createPortal)(je,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(We,Ee,ae){"use strict";ae.d(Ee,{SV:function(){return bn},ZP:function(){return bt}});var oe=ae(59301),Pe=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"]},De={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},je={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},Te={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Ge={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var lt=ae(53184),Ke=ae.n(lt),He=Object.defineProperty,yt=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ee=(sn,Bn,It)=>Bn in sn?He(sn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:It}):sn[Bn]=It,he=(sn,Bn)=>{for(var It in Bn||(Bn={}))Fe.call(Bn,It)&&ee(sn,It,Bn[It]);if(Mt)for(var It of Mt(Bn))te.call(Bn,It)&&ee(sn,It,Bn[It]);return sn},ue=(sn,Bn)=>yt(sn,$e(Bn)),fe=(sn,Bn,It)=>new Promise((_t,jt)=>{var hn=Rt=>{try{pn(It.next(Rt))}catch(Tn){jt(Tn)}},En=Rt=>{try{pn(It.throw(Rt))}catch(Tn){jt(Tn)}},pn=Rt=>Rt.done?_t(Rt.value):Promise.resolve(Rt.value).then(hn,En);pn((It=It.apply(sn,Bn)).next())});const me={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"]}},be=(sn,Bn)=>Bn.map(It=>({label:It,kind:sn.languages.CompletionItemKind.Keyword,insertText:It})),Ae=sn=>Object.keys(me.tables).map(Bn=>({label:Bn,kind:sn.languages.CompletionItemKind.Variable,insertText:Bn})),Ie=(sn,Bn)=>{const It=me.tables[sn];return It?It.map(_t=>({label:_t,kind:Bn.languages.CompletionItemKind.Field,insertText:_t})):[]};function Xe(sn,Bn,It,_t,jt){let hn=Bn.getWordUntilPosition(It),En={startLineNumber:It.lineNumber,endLineNumber:It.lineNumber,startColumn:hn.startColumn,endColumn:hn.endColumn},pn=_t.map(Rt=>({label:Rt,kind:sn.languages.CompletionItemKind.Keyword,insertText:Rt,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:En}));return jt.map(Rt=>{pn.push(ue(he({},Rt),{range:En}))}),pn}var nt=sn=>{me.languages.map(jt=>(sn.languages.registerDocumentFormattingEditProvider(jt,{provideDocumentFormattingEdits(hn,En,pn){return fe(this,null,function*(){const Rt=Ke()(hn.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:hn.getFullModelRange(),text:Rt}]})}}),jt));const Bn=je.quickKey.map(jt=>({label:jt.label,kind:sn.languages.CompletionItemKind.Method,insertText:jt.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),It=Te.quickKey.map(jt=>({label:jt.label,kind:sn.languages.CompletionItemKind.Method,insertText:jt.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),_t=De.quickKey.map(jt=>({label:jt.label,kind:sn.languages.CompletionItemKind.Method,insertText:jt.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet}));sn.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(jt,hn){var En=jt.getWordUntilPosition(hn),pn={startLineNumber:hn.lineNumber,endLineNumber:hn.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},Rt=jt.getLineContent(hn.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...je.keywords.map(Tn=>({label:Tn,kind:sn.languages.CompletionItemKind.Function,documentation:Tn,insertText:Tn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...je.quickKey.map(Tn=>({label:Tn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Tn.content,insertText:Rt.startsWith("#")?Tn.content.replace(/#/,""):Tn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),sn.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(jt,hn){var En=jt.getWordUntilPosition(hn),pn={startLineNumber:hn.lineNumber,endLineNumber:hn.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn};return{suggestions:[...ke.keywords.map(Rt=>({label:Rt,kind:sn.languages.CompletionItemKind.Function,documentation:Rt,insertText:Rt,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),sn.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(jt,hn){var En=jt.getWordUntilPosition(hn),pn={startLineNumber:hn.lineNumber,endLineNumber:hn.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},Rt=jt.getLineContent(hn.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...De.keywords.map(Tn=>({label:Tn,kind:sn.languages.CompletionItemKind.Function,documentation:Tn,insertText:Tn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...De.quickKey.map(Tn=>({label:Tn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Tn.content,insertText:Rt.startsWith("#")?Tn.content.replace(/#/,""):Tn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),sn.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(jt,hn){var En=jt.getWordUntilPosition(hn),pn={startLineNumber:hn.lineNumber,endLineNumber:hn.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},Rt=jt.getLineContent(hn.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...Ge.keywords.map(Tn=>({label:Tn,kind:sn.languages.CompletionItemKind.Function,documentation:Tn,insertText:Tn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...Ge.quickKey.map(Tn=>({label:Tn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Tn.content,insertText:Rt.startsWith("#")?Tn.content.replace(/#/,""):Tn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),sn.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(jt,hn){var En=jt.getWordUntilPosition(hn),pn={startLineNumber:hn.lineNumber,endLineNumber:hn.lineNumber,startColumn:En.startColumn,endColumn:En.endColumn},Rt=jt.getLineContent(hn.lineNumber).substring(En.startColumn-2,En.endColumn);return{suggestions:[...Te.keywords.map(Tn=>({label:Tn,kind:sn.languages.CompletionItemKind.Function,documentation:Tn,insertText:Tn,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...Te.quickKey.map(Tn=>({label:Tn.label,kind:sn.languages.CompletionItemKind.Function,documentation:Tn.content,insertText:Rt.startsWith("#")?Tn.content.replace(/#/,""):Tn.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}})};const Je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var st=Object.defineProperty,gt=(sn,Bn,It)=>Bn in sn?st(sn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:It}):sn[Bn]=It,rt=(sn,Bn,It)=>gt(sn,typeof Bn!="symbol"?Bn+"":Bn,It);const mt=class oE{constructor(Bn,It,_t){this.placeholder=Bn,this.editor=It,this.monaco=_t,It.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return oE.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)}};rt(mt,"ID","editor.widget.placeholderHint");var Tt=mt,zt=ae(96236),Qt=ae(6767),Kt=ae(25399),Cn=ae(89392),St=ae(49535),pt=ae(56102),ct=Object.defineProperty,qt=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,Vn=(sn,Bn,It)=>Bn in sn?ct(sn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:It}):sn[Bn]=It,Vt=(sn,Bn)=>{for(var It in Bn||(Bn={}))xn.call(Bn,It)&&Vn(sn,It,Bn[It]);if(kt)for(var It of kt(Bn))kn.call(Bn,It)&&Vn(sn,It,Bn[It]);return sn},Ot=(sn,Bn)=>qt(sn,fn(Bn)),Nn=(sn,Bn)=>{var It={};for(var _t in sn)xn.call(sn,_t)&&Bn.indexOf(_t)<0&&(It[_t]=sn[_t]);if(sn!=null&&kt)for(var _t of kt(sn))Bn.indexOf(_t)<0&&kn.call(sn,_t)&&(It[_t]=sn[_t]);return It},tr=(sn,Bn,It)=>new Promise((_t,jt)=>{var hn=Rt=>{try{pn(It.next(Rt))}catch(Tn){jt(Tn)}},En=Rt=>{try{pn(It.throw(Rt))}catch(Tn){jt(Tn)}},pn=Rt=>Rt.done?_t(Rt.value):Promise.resolve(Rt.value).then(hn,En);pn((It=It.apply(sn,Bn)).next())});function hr(sn){return/^\d+$/.test(sn)?`${sn}px`:sn}function ot(){}let _e=!1;const Re={"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 Ye(sn=[]){let Bn=sn;if(Array.isArray(sn)){for(let It=0;It<sn.length;It++){let _t=Re[sn[It]];if(_t)return _t}return Bn[0]}return Re[Bn]||Bn}let at=null;const Be=()=>tr(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(sn){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",sn)}});var bt=sn=>{var Bn=sn,{width:It="100%",height:_t="100%",value:jt,language:hn="javascript",style:En={},options:pn={},overrideServices:Rt={},theme:Tn="vs-dark",onEditBlur:Yt,isCopy:en=!1,onSave:vn,autoHeight:zn=!1,forbidCopy:un=!1,onChange:Et=ot,editorDidMount:Xn=ot,onFocus:ir=ot,onBreakPoint:Jt=ot,breakPointValue:Er=[],filename:ni="educoder.txt",errorLine:Rr,errorContent:Mn="",highlightLine:ei,openBreakPoint:Kr=!1,placeholder:lr="",showMiniMap:jr=!0}=Bn,oi=Nn(Bn,["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 Oe=(0,oe.useRef)(),dr=(0,oe.useRef)({}),Pr=(0,oe.useRef)(),or=(0,oe.useRef)(),Lr=(0,oe.useRef)([]),zr=(0,oe.useRef)(!1),wr=(0,oe.useRef)(),Ti=(0,oe.useRef)(),On=(0,oe.useRef)(!1),[yn,Sn]=(0,oe.useState)(!1);function Jn(){let fr;return Oe.current&&(fr=new Pe.Z(dn=>{for(let Ue of dn)(Ue.target.offsetHeight>0||Ue.target.offsetWidth>0)&&dr.current.instance.layout()}),fr.observe(Oe.current)),fr}function ui(){Qt.ZP.warning({content:decodeURIComponent(Je),key:"monaco-editor-tip"})}const Yr=()=>{let fr=dr.current.instance;if(jt!=null&&fr&&yn){const dn=fr.getModel();dn&&jt!==dn.getValue()&&(_e=!0,dn.setValue(jt),fr.layout(),_e=!1)}};(0,oe.useEffect)(()=>{const fr=St.Z.subscribe("formatDocument",dn=>{var Ue;let Mr=dr.current.instance;(Ue=Mr==null?void 0:Mr.getAction)==null||Ue.call(Mr,"editor.action.formatDocument").run()});return window.updateMonacoValue=dn=>{Et(dn)},fr},[]),(0,oe.useEffect)(()=>{var fr;let dn=dr.current.instance;or.current&&clearTimeout(or.current),or.current=setTimeout(()=>{Yr()},500),jt&&(jt!=null&&jt.length)&&((fr=dn==null?void 0:dn.updateOptions)==null||fr.call(dn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(jt.split(/\r\n|\r|\n/g).length))+3,5)}))},[jt,yn,dr.current]),(0,oe.useEffect)(()=>{if(Rr&&dr.current&&dr.current.instance){let dn=dr.current.instance;dn.changeViewZones(function(Ue){var Mr=document.createElement("div");Mr.style.padding="10px 20px",Mr.style.width="calc(100% - 20px)",Mr.className="my-error-line-wrp",Mr.innerHTML=Mn,Ue.addZone({afterLineNumber:Rr||11,heightInLines:3,domNode:Mr})});var fr={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}};dn.addOverlayWidget(fr),dn.revealPositionInCenter({lineNumber:20,column:1})}},[Rr,dr.current,yn]);const ci=(fr="",dn)=>{if(!fr||fr.trim()==="")return!0;const Mr=dr.current.instance.getModel().getLineTokens(dn);let Ur=!1;for(let Wn=0;Wn<2;Wn++)Mr.getStandardTokenType(Wn)===1&&(Ur=!0);return Ur};(0,oe.useEffect)(()=>{var fr;const dn=(fr=dr.current)==null?void 0:fr.instance;if(dn&&yn&&un){const Ue=dn.onDidBlurEditorWidget(()=>{On.current=!1}),Mr=dn.onDidFocusEditorText(()=>{On.current=!0});return()=>{Ue.dispose(),Mr.dispose()}}},[dr.current,yn,un]),(0,oe.useEffect)(()=>{var fr;if((fr=dr.current)!=null&&fr.instance&&yn&&Kr){let dn=dr.current.instance,Ue=dn.getModel();if(!Ue)return;(()=>{var li;let bi=[],qr=[];const Pi=Ue.getAllDecorations();for(let Hi of Pi)Hi.options.className==="highlighted-line"&&(bi.push((li=Hi==null?void 0:Hi.range)==null?void 0:li.startLineNumber),qr.push(Hi==null?void 0:Hi.id));if(ei===bi[0])return;Ue.deltaDecorations(qr,[]);const Ii=Ue.getLineCount();ei&&ei<=Ii&&(dn.deltaDecorations([],[{range:new at.Range(ei,1,ei,Ue.getLineMaxColumn(ei)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dn.revealLineInCenter(ei))})();const Ur=(li=!1)=>{var bi;let qr=[],Pi=[];const Ii=Ue.getAllDecorations();for(let Hi of Ii)Hi.options.linesDecorationsClassName==="breakpoints-select"&&(qr.push((bi=Hi==null?void 0:Hi.range)==null?void 0:bi.startLineNumber),Pi.push(Hi==null?void 0:Hi.id));if(li)return{lines:qr,ids:Pi};Jt(qr)},Wn=li=>tr(void 0,null,function*(){let bi={range:new at.Range(li,1,li,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ue.deltaDecorations([],[bi]),Ur()}),mi=li=>tr(void 0,null,function*(){let bi=[];const qr=dn.getLineDecorations(li);for(let Pi of qr)Pi.options.linesDecorationsClassName==="breakpoints-select"&&bi.push(Pi.id);yield Ue.deltaDecorations(bi,[]),Ur()}),Qr=li=>{let bi=dn.getLineDecorations(li);for(let qr of bi)if(qr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Cn.isEqual)(Er,Ur(!0).lines)){Ue.deltaDecorations(Ur(!0).ids,[]);const li=Er.map(bi=>({range:new at.Range(bi,1,bi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ue.deltaDecorations([],li)}const rr=dn.onDidChangeModelContent(li=>{let bi=dn.getPosition();if(bi){let qr=bi.lineNumber;clearTimeout(Ti.current),Ti.current=setTimeout(()=>{ci(Ue.getLineContent(qr),qr)?mi(qr):Qr(qr)?(mi(qr),Wn(qr)):Ur()},100)}}),Gr=dn.onMouseDown(li=>{var bi,qr,Pi;if(li.target.detail&&((Pi=(qr=(bi=li.target)==null?void 0:bi.element)==null?void 0:qr.className)!=null&&Pi.includes("line-numbers"))){let Ii=li.target.position.lineNumber;if(ci(Ue.getLineContent(Ii),Ii))return;Qr(Ii)?mi(Ii):Wn(Ii)}}),on=li=>{let bi={range:new at.Range(li,1,li,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Lr.current=dn.deltaDecorations(Lr.current,[bi])},Ci=()=>{Lr.current=dn.deltaDecorations(Lr.current,[])},Vi=dn.onMouseMove(li=>{var bi,qr,Pi;if(Ci(),li.target.detail&&((Pi=(qr=(bi=li.target)==null?void 0:bi.element)==null?void 0:qr.className)!=null&&Pi.includes("line-numbers"))){let Ii=li.target.position.lineNumber;if(ci(Ue.getLineContent(Ii),Ii))return;on(Ii)}}),mn=dn.onMouseLeave(()=>{Ci()});return()=>{rr.dispose(),Gr.dispose(),Vi.dispose(),mn.dispose()}}},[dr.current,yn,Er,ei,Kr,hn]),(0,oe.useEffect)(()=>{var fr;(fr=dr.current)!=null&&fr.instance&&Kr&&dr.current.instance.setPosition({lineNumber:0,column:0})},[ei]);function ur(){let fr=dr.current.instance;if(fr){const dn=fr.getSelection(),Ue=dr.current.pastePos||{},Mr=new at.Range(Ue.startLineNumber||dn.endLineNumber,Ue.startColumn||dn.endColumn,Ue.endLineNumber||dn.endLineNumber,Ue.endColumn||dn.endColumn);setTimeout(()=>{fr.executeEdits("",[{range:Mr,text:""}])},300)}}function Xr(fr){(window.navigator.platform.match("Mac")?fr.metaKey:fr.ctrlKey)&&fr.keyCode==83&&(fr.preventDefault(),vn())}const wi=()=>{if(zn&&dr.current.instance){const fr=dr.current.instance.getContentHeight();Xt(fr<_t?_t:fr)}else Xt(_t)};function ki(fr){var dn=document.createEvent("MouseEvents");dn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),fr.dispatchEvent(dn)}const Fr=fr=>{if(!On.current)return;const{keyCode:dn,ctrlKey:Ue,metaKey:Mr,target:Ur,type:Wn}=fr;return(Wn==="paste"||(dn===67||dn===86)&&(Mr||Ue))&&Ur.nodeName==="TEXTAREA"&&(ui(),fr.preventDefault()),!1};function Lt(fr,dn){var Ue=window.URL||window.webkitURL||window,Mr=new Blob([dn]),Ur=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ur.href=Ue.createObjectURL(Mr),Ur.download=fr,ki(Ur)}(0,oe.useEffect)(()=>{wi()},[wi]),(0,oe.useEffect)(()=>{Oe.current&&!yn&&Promise.all([ae.e(8909),ae.e(6656)]).then(ae.bind(ae,71448)).then(fr=>{try{at=fr,dr.current.instance=at.editor.create(Oe.current,{value:jt,language:Ye(hn),theme:Tn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:jr||!1}},Rt);const dn=dr.current.instance;let Ur=[...zt.BH._menuItems].find(rr=>rr[0]._debugName=="EditorContext")[1],Wn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],mi=(rr,Gr)=>{var on,Ci;let Vi=rr._first;do Gr.includes((Ci=(on=Vi.element)==null?void 0:on.command)==null?void 0:Ci.id)&&rr._remove(Vi);while(Vi=Vi.next)};if(Xn(dn,at),setTimeout(()=>{wi(),dr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Lt(ni||"educoder.txt",dn.getValue())}})},500),dr.current.subscription=dn.onDidChangeModelContent(rr=>{zr.current?clearTimeout(wr.current):(wi(),Et(dn.getValue(),rr)),wr.current=setTimeout(()=>{zr.current=!1},500)}),window.Monaco||nt(at,Ye(hn)),un&&(mi(Ur,Wn),Oe.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Fr),window.removeEventListener("paste",Fr),window.addEventListener("keydown",Fr),window.addEventListener("paste",Fr)),window.Monaco=at,Yt&&dn.onDidBlurEditorWidget(()=>{Yt(dn.getValue())}),ir&&dn.onDidFocusEditorText(()=>{un&&Be(),ir(dn.getValue())}),un){Be();try{dn.onDidPaste(rr=>{const Gr=dn.getSelection(),on=dr.current.pastePos||{},Ci=new at.Range(on.startLineNumber||Gr.endLineNumber,on.startColumn||Gr.endColumn,on.endLineNumber||Gr.endLineNumber,on.endColumn||Gr.endColumn);dn.executeEdits("",[{range:rr.range,text:""}])})}catch(rr){}}let Qr=Jn();return lr&&typeof lr=="string"&&new Tt(lr,dn,at),Sn(!0),()=>{const rr=dr.current.instance;rr.dispose();const Gr=rr.getModel();Gr&&Gr.dispose(),dr.current.subscription&&dr.current.subscription.dispose(),Qr.unobserve(Oe.current)}}catch(dn){}})},[]),(0,oe.useEffect)(()=>{if(dr.current.instance&&yn)return document.addEventListener("keydown",Xr,!1),()=>{document.removeEventListener("keydown",Xr)}},[vn,yn]),(0,oe.useEffect)(()=>{let fr=dr.current.instance;if(fr&&yn){let dn=Ye(hn);at.editor.setModelLanguage(fr.getModel(),dn)}},[hn,yn]),(0,oe.useEffect)(()=>{dr.current.instance&&yn&&at.editor.setTheme(Tn)},[Tn,yn]),(0,oe.useEffect)(()=>{let fr=dr.current.instance;Pr.current=pn,fr&&yn&&(fr.updateOptions(Vt({},pn)),setTimeout(()=>{fr.getModel().updateOptions(Vt({},pn))},200))},[JSON.stringify(pn),yn]),(0,oe.useEffect)(()=>{let fr=dr.current.instance;fr&&yn&&fr.layout()},[It,_t,yn]);const[cn,kr]=(0,oe.useState)(hr(It)),[Ir,Xt]=(0,oe.useState)(hr(_t)),Fn=Ot(Vt({},En),{width:cn,height:Ir,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:Oe,style:Fn},en&&oe.createElement(pt.CopyToClipboard,{text:jt,onCopy:()=>Qt.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Kt.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 bn({width:sn="100%",height:Bn="100%",original:It,modified:_t,language:jt,options:hn={}}){const En=(0,oe.useRef)(),[pn,Rt]=(0,oe.useState)(null);function Tn(zn){let un;return En.current&&(un=new Pe.Z(Et=>{for(let Xn of Et)(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&zn.layout()}),un.observe(En.current)),un}(0,oe.useEffect)(()=>(En.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(zn=>{at=zn;const un=at.editor.createDiffEditor(En.current,Ot(Vt({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},hn),{wordWrap:!0}));Rt(un);let Et=Tn(un);return()=>{un.dispose();const Xn=un.getModel();Xn&&Xn.dispose(),Et.unobserve(En.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{pn&&pn.setModel({original:at.editor.createModel(It,jt),modified:at.editor.createModel(_t,jt)})},[It,_t,jt,pn]);const Yt=hr(sn),en=hr(Bn),vn={width:Yt,height:en};return oe.createElement("div",{className:"my-diff-editor",ref:En,style:vn})}},10661:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return yt}});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"},Pe=ae(29787),ke=ae(25399),De=ae(92310),je=ae.n(De),Te=ae(51257),Ge=ae(28426),lt=ae(48790),Ke=ae(59301),yt=({className:$e,dataSource:Mt=[],col:Fe=4,right:te,bottom:ee=23,precision:he=0,wrapWidth:ue=1200,trackEventItems:fe,loading:me,onRemove:be=()=>{},isCurrent:Ae=!0,showAlias:Ie=!1})=>{const Xe=Math.floor((ue-(Fe-1)*te)/Fe),nt=[{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 Ke.createElement(Pe.Z,{spinning:me},Ke.createElement("div",{className:je()(oe.list,$e)},!!(Mt!=null&&Mt.length)&&(Mt==null?void 0:Mt.map((Je,st)=>{var gt;const{name:rt,id:mt,identifier:xt,featured:Tt,school_name:zt,image_url:Qt,excellent:Kt,is_plan:Cn}=Je;return Ke.createElement("div",{key:mt,className:oe.wrap,style:{width:Xe,marginRight:(1+st)%Fe===0?0:te+he,marginBottom:ee}},Ke.createElement("a",{className:oe.li,onClick:St=>{St.preventDefault(),St.stopPropagation(),fe&&(0,Te.L9)([fe]),(0,Te.xg)(`/paths/${xt}`)}},Ke.createElement("div",{className:oe.img},Ke.createElement("img",{className:oe.cover,src:`${Qt}`}),Ae&&(0,lt.bg)()&&(Je==null?void 0:Je.studying)&&Ke.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:St=>{St.stopPropagation(),be(Je)}},Ke.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ke.createElement("span",{className:"c-red"},"\u79FB\u9664")),(gt=Je==null?void 0:Je.subject_tags)==null?void 0:gt.map((St,pt)=>{var ct,qt;if(pt===0){const kt=(ct=nt.find(xn=>xn.name==St))==null?void 0:ct.swimg;return Ke.createElement("img",{className:oe.sign,src:kt,style:{left:"-4px"}})}const fn=(qt=nt.find(kt=>kt.name==St))==null?void 0:qt.ptimg;return Ke.createElement("img",{className:oe.sign,src:fn,style:{left:`${48+52*(pt-1)+2*pt}px`}})}),Ke.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Je==null?void 0:Je.excellent)&&Ke.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ke.createElement("div",{className:oe.name},Ke.createElement(ke.Z,{title:Ie&&(Je!=null&&Je.excellent_alias_name)?Ke.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${rt}`,Ke.createElement("br",null),Ke.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Je==null?void 0:Je.excellent_alias_name}`)):rt},Ke.createElement("span",{className:oe.e},Ie&&(Je==null?void 0:Je.excellent_alias_name)||rt))),Ke.createElement(ke.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${zt}`},Ke.createElement("div",{className:oe.unit},Ke.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),zt)),Ke.createElement("div",{className:oe.tags},Ke.createElement("div",null,Ke.createElement(ke.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ke.createElement("span",null,Je.stages_count))),Ke.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ke.createElement("span",null,Je.members_count)))))))})),!Mt.length&&Ke.createElement(Ge.Z,null)))}},9148:function(We,Ee,ae){"use strict";ae.d(Ee,{jL:function(){return je},w9:function(){return ct},QD:function(){return Yt},cQ:function(){return Qt.Z},op:function(){return jt},O5:function(){return Pr},_b:function(){return Xn},t7:function(){return ue},Gi:function(){return Vn},YG:function(){return xn},qp:function(){return yt},vr:function(){return zn},qE:function(){return pn},Je:function(){return be},wb:function(){return zt},cq:function(){return ot},tp:function(){return Fe}});var oe=ae(59301),Pe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},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==",je=({dataSource:or=[],img:Lr,imgWidth:zr=346,title:wr,sunTitle:Ti,bannerExtraContent:On})=>oe.createElement("div",{className:Pe.banner},oe.createElement("div",{className:Pe.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,wr),oe.createElement("span",null,Ti)),or.length>0&&oe.createElement("div",{className:Pe.btns},or.map((yn,Sn)=>oe.createElement("div",{key:Sn,onClick:yn.click},yn.name,yn.sign?oe.createElement("img",{src:ke,width:39}):null))),On),Lr&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:Lr,width:zr}))),Te={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ge=ae(92310),lt=ae.n(Ge),Ke=ae(89392),yt=({dataSource:or=[],value:Lr,onChange:zr,onTitleChange:wr,className:Ti,title:On,titleWidth:yn=41,style:Sn={},fontColor:Jn="#6A7283",showCount:ui})=>{const[Yr,ci]=(0,oe.useState)(0),[ur,Xr]=(0,oe.useState)(!1),wi=(0,oe.useRef)(null),ki=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var Fr;or.length!==0&&(((Fr=wi==null?void 0:wi.current)==null?void 0:Fr.clientHeight)>97?ci(1):ci(0)),or.length===0&&ci(0),Xr(!1)},[or]),oe.createElement("div",{className:lt()(Te.row,Ti),style:Sn},oe.createElement("div",{onClick:(0,Ke.throttle)(()=>wr==null?void 0:wr(),2e3),style:{width:yn,marginTop:ur?12:4},className:`${Te.title} ${wr?"current":""}`},On),oe.createElement("div",{className:ur?`${Te.tagsWrap} ${Te.tagsBorderWrap}`:Te.tagsWrap},oe.createElement("div",{className:Te.bar,ref:ki,style:Yr>0?{height:Yr===1?97:"auto",overflow:Yr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Te.tag,ref:wi},or==null?void 0:or.map(Fr=>oe.createElement("span",{onClick:()=>zr(Fr.id),key:Fr.id,style:{color:Jn},className:Lr===Fr.id?Te.active:""},oe.createElement("span",{title:Fr.name,className:Te.name},Fr.name),!!ui&&oe.createElement("span",{className:Te.num},Fr.count))))),!!Yr&&oe.createElement(oe.Fragment,null,Yr===1?oe.createElement("div",{onClick:()=>{var Fr;ci(2),((Fr=wi==null?void 0:wi.current)==null?void 0:Fr.clientHeight)>245?Xr(!0):Xr(!1)},className:Te.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{ki.current.scrollTop=0,ci(1),Xr(!1)},className:Te.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},$e={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:or=[],value:Lr,onChange:zr,className:wr,style:Ti={}})=>oe.createElement("div",{style:Ti,className:lt()($e.tabs,wr)},or.map(On=>oe.createElement("span",{onClick:()=>zr(On.id),className:Lr===On.id?$e.active:"",key:On.id},On.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:or=[],value:Lr="",onChange:zr,onInputChange:wr=()=>{},className:Ti,style:On={},placeholder:yn,allowClear:Sn=!1})=>{var Jn;const[ui,Yr]=(0,oe.useState)(""),[ci,ur]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var ki;let Fr=Lr;(ki=JSON.stringify(Lr))!=null&&ki.includes("{")&&(Yr(Lr.id),Fr=Lr.value||"");try{ur(decodeURIComponent(Fr||""))}catch(Lt){ur(decodeURIComponent(Fr||""))}},[Lr]);const Xr=()=>{zr(encodeURIComponent(ci),ui||null)},wi=ki=>{ki!==ui&&(Yr(ki),zr(encodeURIComponent(ci),ki))};return oe.createElement("div",{className:lt()(te.input,Ti),style:On},!!or.length&&oe.createElement("div",{className:te.dropdown},oe.createElement("div",{className:te.text},(Jn=or.find(ki=>ki.id===ui))==null?void 0:Jn.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},or.map((ki,Fr)=>oe.createElement("div",{key:Fr,onClick:()=>wi(ki.id)},ki.name)))),oe.createElement(ee.default,{onPressEnter:Xr,value:ci,onChange:ki=>{ur(ki.target.value),wr(encodeURIComponent(ki.target.value),ui||null)},bordered:!1,placeholder:yn}),oe.createElement("i",{onClick:Xr,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"},be=({value:or,onChange:Lr,className:zr,total:wr,pageSize:Ti,style:On={}})=>{const yn=or<2,Sn=or>=Math.ceil(wr/Ti);return wr<=Ti?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:lt()(fe.quickPager,zr),style:On},oe.createElement("div",{onClick:()=>{yn||Lr(or-1,"prev")},className:yn?fe.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Sn||Lr(or+1,"next")},className:Sn?fe.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ie=ae(29787),Xe=ae(25399),nt=ae(58018),Je=ae(346),st=ae(51257),gt=ae(96908),rt=ae(57177),mt=ae(81378),xt=ae(28426),zt=({className:or,dataSource:Lr=[],col:zr=4,right:wr,bottom:Ti=23,precision:On=0,wrapWidth:yn=1200,trackEventItems:Sn,loading:Jn})=>{const ui=Math.floor((yn-(zr-1)*wr)/zr);return oe.createElement(Ie.Z,{spinning:Jn},oe.createElement("div",{className:lt()(Ae.list,or)},!!Lr.length&&Lr.map((Yr,ci)=>{const{name:ur,id:Xr,identifier:wi,power:ki,cover_image_id:Fr,pic:Lt}=Yr;return oe.createElement("div",{className:Ae.wrap,key:Xr,style:{width:ui,marginRight:(1+ci)%zr===0?0:wr+On,marginBottom:Ti}},oe.createElement("a",{target:"_blank",href:`/shixuns/${wi}/challenges`,className:Ae.li,onClick:cn=>{cn.preventDefault(),Sn&&(0,st.L9)([Sn]),ki&&(0,st.xg)(`/shixuns/${wi}/challenges`)}},oe.createElement("div",{className:Ae.img},oe.createElement("img",{className:Ae.cover,src:`${Lt}`}),Yr.is_jupyter&&oe.createElement("img",{className:Ae.sign,src:gt}),Yr.is_jupyter_lab&&oe.createElement("img",{className:Ae.sign,src:rt}),Yr.is_unity_3d&&oe.createElement("img",{className:Ae.sign,src:mt})),oe.createElement("div",{className:Ae.name},oe.createElement(Xe.Z,{title:ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Ae.e},ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Ae.tags},oe.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,Yr.challenges_count))),!!Yr.myshixuns_count&&oe.createElement(Xe.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,Yr.myshixuns_count))),oe.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,Yr.level))),oe.createElement("div",{className:Ae.rate},oe.createElement(nt.Z,{allowHalf:!0,disabled:!0,defaultValue:Yr.score_info}),oe.createElement("span",null,"\xA0",Yr.score_info?`${Yr.score_info}\u5206`:"5\u5206")))),!ki&&oe.createElement("div",{className:Ae.lockWrap},oe.createElement("img",{src:`${Je.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")))}),!Lr.length&&oe.createElement(xt.Z,null)))},Qt=ae(10661),Kt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},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",St=ae(59301),ct=({className:or,dataSource:Lr=[],col:zr=4,right:wr,bottom:Ti=23,precision:On=0,wrapWidth:yn=1200,trackEventItems:Sn,loading:Jn,handleVery:ui=()=>!0})=>{const Yr=Math.floor((yn-(zr-1)*wr)/zr);return St.createElement(Ie.Z,{spinning:Jn},St.createElement("div",{className:lt()(Kt.list,or)},!!Lr.length&&Lr.map((ci,ur)=>{const{subject_identifier:Xr,id:wi,identifier:ki,power:Fr}=ci,Lt=ci.is_public!=0&&ci.is_public;return St.createElement("div",{className:Kt.wrap,key:wi,style:{width:Yr,marginRight:(1+ur)%zr===0?0:wr+On,marginBottom:Ti}},St.createElement("a",{className:Kt.li,onClick:cn=>{cn.preventDefault(),ui(ci==null?void 0:ci.first_category_url)&&(Sn&&(0,st.L9)([Sn]),(0,st.xg)(ci.first_category_url))}},St.createElement("div",{className:Kt.top},St.createElement(Xe.Z,{title:ci.name},St.createElement("div",{className:Kt.name},ci.name)),St.createElement("img",{className:Kt.img,src:Je.Z.IMG_SERVER+"/images/"+ci.avatar_url}),St.createElement("div",{className:Kt.text,title:ci.creator},ci.creator),Xr&&St.createElement("div",{className:Kt.btns},St.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),St.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Lt&&St.createElement("div",{className:Kt.sign},"\u516C\u5F00")),St.createElement("div",{className:Kt.bottom},ci.visits>0&&St.createElement(Xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-liulanyan"}),St.createElement("span",null,ci.visits))),ci.course_members_count>0&&St.createElement(Xe.Z,{title:"\u6210\u5458",placement:"bottom"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-chengyuan"}),ci.course_members_count)),ci.tasks_count>0&&St.createElement(Xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},St.createElement("span",null,St.createElement("i",{className:"iconfont icon-zuoye"}),ci.tasks_count)),ci.is_end?St.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):St.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ci.is_accessible&&St.createElement("div",{className:Kt.lockWrap},St.createElement("img",{src:`${Je.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),St.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Lr.length&&St.createElement(xt.Z,null)))},qt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},fn=ae(25690),xn=({dataSource:or=[],value:Lr,onChange:zr,className:wr,style:Ti={},tabBarExtraContent:On})=>oe.createElement("div",{className:lt()(qt.tabs,wr),style:Ti},oe.createElement("div",{className:qt.tabsWrap},or.map((yn,Sn)=>!(yn!=null&&yn.hide)&&oe.createElement("aside",{className:qt.tab,onClick:()=>{zr(yn.id),yn.link&&fn.history.push(yn.link)},key:Sn},oe.createElement("div",{className:Lr===yn.id?qt.active:""},yn.name),(yn==null?void 0:yn.resetCount)==null&&(yn==null?void 0:yn.total)!==void 0&&oe.createElement("span",null,"\uFF08",yn==null?void 0:yn.total,"\uFF09"),(yn==null?void 0:yn.resetCount)!==void 0&&(yn==null?void 0:yn.total)!==void 0&&oe.createElement(Xe.Z,{title:(yn==null?void 0:yn.tip)!=null?yn==null?void 0:yn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},yn==null?void 0:yn.resetCount),"/",oe.createElement("span",null,yn==null?void 0:yn.total),"\uFF09"))))),oe.createElement("div",{className:qt.tabBar},On)),Vn=({className:or,style:Lr={},children:zr})=>oe.createElement("div",{className:lt()(or),style:Lr},zr),Vt={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"},Ot=ae(75727),Nn=ae(93041);const tr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ot=({sortValue:or,dropValue:Lr,className:zr,onSort:wr,onDrop:Ti,dataSource:On=tr})=>{var yn;return oe.createElement("div",{className:lt()(Vt.orderWrap,zr)},oe.createElement(Ot.Z,{dropdownRender:()=>oe.createElement(Nn.default,null,On.map((Sn,Jn)=>oe.createElement(Nn.default.Item,{key:Jn,onClick:()=>Ti(Sn.id)},Sn.name)))},oe.createElement("span",{className:Vt.orderTextWrap},(yn=On.find(Sn=>Lr===Sn.id))==null?void 0:yn.name)),oe.createElement("span",{className:Vt.orderIconWrap},oe.createElement("span",{className:Vt.orderAsc},oe.createElement("i",{className:or==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Vt.cursorPointer} ${Vt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Vt.cursorPointer}`,onClick:()=>wr(or==="asc"?"desc":"asc")})),oe.createElement("span",{className:Vt.orderDesc},oe.createElement("i",{className:or==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Vt.cursorPointer} ${Vt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Vt.cursorPointer}`,onClick:()=>wr(or==="asc"?"desc":"asc")}))))},_e={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"},Re=ae(99571),Ye=Object.defineProperty,at=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,bn=(or,Lr,zr)=>Lr in or?Ye(or,Lr,{enumerable:!0,configurable:!0,writable:!0,value:zr}):or[Lr]=zr,sn=(or,Lr)=>{for(var zr in Lr||(Lr={}))Be.call(Lr,zr)&&bn(or,zr,Lr[zr]);if(at)for(var zr of at(Lr))bt.call(Lr,zr)&&bn(or,zr,Lr[zr]);return or},Bn=(or,Lr)=>{var zr={};for(var wr in or)Be.call(or,wr)&&Lr.indexOf(wr)<0&&(zr[wr]=or[wr]);if(or!=null&&at)for(var wr of at(or))Lr.indexOf(wr)<0&&bt.call(or,wr)&&(zr[wr]=or[wr]);return zr},It=(or,Lr,zr)=>new Promise((wr,Ti)=>{var On=Jn=>{try{Sn(zr.next(Jn))}catch(ui){Ti(ui)}},yn=Jn=>{try{Sn(zr.throw(Jn))}catch(ui){Ti(ui)}},Sn=Jn=>Jn.done?wr(Jn.value):Promise.resolve(Jn.value).then(On,yn);Sn((zr=zr.apply(or,Lr)).next())}),jt=or=>{var Lr=or,{className:zr,style:wr,children:Ti,loading:On=!1,openLoading:yn,onClick:Sn=()=>{},size:Jn="middle",shape:ui="round"}=Lr,Yr=Bn(Lr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ci,ur]=(0,oe.useState)(!1);return oe.createElement(Re.ZP,sn({onClick:(0,Ke.throttle)(Xr=>It(void 0,null,function*(){yn&&ur(!0);try{yield Sn(Xr)}catch(wi){console.log("error",wi)}yn&&ur(!1)}),2e3,{leading:!0,trailing:!1}),className:lt()(_e.btn,_e[`${Jn}-${ui}`],zr),style:wr,size:Jn,shape:ui,loading:ci||On},Yr),Ti)},hn={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"},pn=({className:or,style:Lr,children:zr=null,onClick:wr,title:Ti})=>oe.createElement("div",{className:lt()(hn.head,or),style:Lr},oe.createElement("span",{className:"primary-hover",onClick:wr},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:Ti},Ti),oe.createElement("div",{className:hn.node},zr)),Rt={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"},Yt=({confirmShow:or=!0,confirmTitle:Lr,confirmClick:zr,cancelShow:wr=!0,cancelTitle:Ti,cancelClick:On,className:yn,style:Sn,confirmLoading:Jn=!1})=>oe.createElement("div",{className:lt()(Rt.btns,yn),style:Sn},or&&oe.createElement(Re.ZP,{loading:Jn,onClick:zr,type:"primary",className:Rt.confirm},Lr),wr&&oe.createElement(Re.ZP,{onClick:On,className:Rt.cancel},Ti)),en={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"},zn=({className:or,style:Lr={},LeftContent:zr,children:wr,RightContent:Ti})=>oe.createElement("div",{className:lt()(en.fixedBottom,or),style:Lr},oe.createElement("div",{className:en.wrap},oe.createElement("div",{className:en.left},zr),oe.createElement("div",{className:en.center},wr),oe.createElement("div",{className:en.right},Ti))),un={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"},Xn=({className:or,style:Lr={},dataSource:zr=[]})=>oe.createElement("div",{className:lt()(un.crumbs,or),style:Lr},zr.map((wr,Ti)=>Ti<zr.length-1?oe.createElement(oe.Fragment,{key:Ti},wr.path||wr.onClick?oe.createElement("span",{className:un.hover,onClick:wr!=null&&wr.onClick?wr.onClick:()=>fn.history.push(wr.path)},wr.name):oe.createElement("span",null,wr.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:Ti,style:{color:"#5F6368"}},wr.name))),ir=ae(11938),Jt=Object.defineProperty,Er=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,Kr=(or,Lr,zr)=>Lr in or?Jt(or,Lr,{enumerable:!0,configurable:!0,writable:!0,value:zr}):or[Lr]=zr,lr=(or,Lr)=>{for(var zr in Lr||(Lr={}))Mn.call(Lr,zr)&&Kr(or,zr,Lr[zr]);if(Rr)for(var zr of Rr(Lr))ei.call(Lr,zr)&&Kr(or,zr,Lr[zr]);return or},jr=(or,Lr)=>Er(or,ni(Lr)),oi=(or,Lr)=>{var zr={};for(var wr in or)Mn.call(or,wr)&&Lr.indexOf(wr)<0&&(zr[wr]=or[wr]);if(or!=null&&Rr)for(var wr of Rr(or))Lr.indexOf(wr)<0&&ei.call(or,wr)&&(zr[wr]=or[wr]);return zr};const{Countdown:Oe}=ir.default;var Pr=or=>{var Lr=or,{onChange:zr}=Lr,wr=oi(Lr,["onChange"]);const[Ti,On]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof Ti=="number"&&Ti>=0&&zr(Ti)},[Ti]);const yn=Sn=>{const Jn=Math.floor(Sn/1e3);On(Jn)};return oe.createElement(Oe,jr(lr({},wr),{onChange:yn}))}},37808:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(59301);function Pe(ke,De){const je=(0,oe.useRef)();(0,oe.useEffect)(()=>{je.current=ke}),(0,oe.useEffect)(()=>{function Te(){je.current()}if(De!==null){let Ge=setInterval(Te,De);return()=>clearInterval(Ge)}},[De])}},4881:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return te}});var oe=ae(59301),Pe=ae(6767),ke=ae(62957),De=ae(17149),je=ae(14566),Te=ae(99571),Ge=ae(346),lt=ae(51257),Ke=ae(38986),He=ae(25690),yt={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},$e=ae(59301),Mt=(ee,he,ue)=>new Promise((fe,me)=>{var be=Xe=>{try{Ie(ue.next(Xe))}catch(nt){me(nt)}},Ae=Xe=>{try{Ie(ue.throw(Xe))}catch(nt){me(nt)}},Ie=Xe=>Xe.done?fe(Xe.value):Promise.resolve(Xe.value).then(be,Ae);Ie((ue=ue.apply(ee,he)).next())}),te=({visible:ee,onOk:he,onCancel:ue,sub_discipline_id:fe=[]})=>{const[me,be]=(0,oe.useState)([]),[Ae,Ie]=(0,oe.useState)(!1),Xe=(0,He.useParams)(),[nt,Je]=(0,oe.useState)([]),[st,gt]=(0,oe.useState)([]);(0,oe.useEffect)(()=>{ee?rt():(gt([]),be([]),Ie(!1))},[ee]);const rt=()=>Mt(void 0,null,function*(){const Kt=yield(0,Ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Je(Kt.disciplines||[]),gt((fe==null?void 0:fe.length)>0?fe:[])}),mt=()=>{if((st==null?void 0:st.length)===0)return Pe.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",st),Ie(!0),he(me,st[1],()=>{Ie(!1)})},xt=()=>{ue()},Tt=()=>{const Kt=`${Ge.Z.API_SERVER}/api/courses/${Xe.coursesId}/exercises/down_template`;(0,lt.Nd)(null,Kt)},zt=Kt=>{const Cn={name:Kt.name,uid:Kt.uid,file:Kt};return be([Cn]),!1},Qt=()=>{be([])};return $e.createElement(ke.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:ee,onOk:mt,centered:!0,wrapClassName:yt.customModal,onCancel:xt,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:yt.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:Ae},$e.createElement("div",{className:yt.content},$e.createElement("aside",null,$e.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),$e.createElement("ul",null,$e.createElement("li",null,$e.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),$e.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Tt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),$e.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Tt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),$e.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),$e.createElement("li",{className:yt.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),$e.createElement("li",{className:yt.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),$e.createElement("li",{className:yt.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),$e.createElement("li",{className:yt.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),$e.createElement("aside",{style:{marginTop:22}},$e.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),$e.createElement("ul",{style:{flex:1}},$e.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),ee&&$e.createElement($e.Fragment,null,$e.createElement(De.Z,{value:st,className:yt.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:nt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Kt,Cn)=>{gt(Kt||[])}}),$e.createElement("br",null),$e.createElement(je.default,{action:`${Ge.Z.API_SERVER}/api/attachments.json`,beforeUpload:zt,onRemove:Qt,withCredentials:!0,fileList:me,accept:".xls,.xlsx",showUploadList:!1},$e.createElement(Te.ZP,{className:yt.upload,type:"primary",icon:$e.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),me.map((Kt,Cn)=>$e.createElement("div",{key:Cn,className:yt.fileList},$e.createElement("span",{className:yt.fileName},Kt==null?void 0:Kt.name),$e.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Qt})))))))}},37345:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return oe}});var oe=(Pe=>(Pe[Pe.NOMATCH=-1]="NOMATCH",Pe[Pe.OK=0]="OK",Pe[Pe.TIMEOUT=2]="TIMEOUT",Pe[Pe.PODFAILURE=3]="PODFAILURE",Pe[Pe.COMPILEFAILURE=4]="COMPILEFAILURE",Pe[Pe.EXECUTEFAILURE=5]="EXECUTEFAILURE",Pe[Pe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Pe))(oe||{})},81072:function(We,Ee,ae){"use strict";ae.d(Ee,{H7:function(){return te},MK:function(){return Fe},MU:function(){return He},X6:function(){return $e},bM:function(){return Ke},fi:function(){return ee},fu:function(){return lt},n4:function(){return he},rX:function(){return Mt},vl:function(){return ue},zO:function(){return yt}});var oe=ae(38986),Pe=Object.defineProperty,ke=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(fe,me,be)=>me in fe?Pe(fe,me,{enumerable:!0,configurable:!0,writable:!0,value:be}):fe[me]=be,Ge=(fe,me)=>{for(var be in me||(me={}))De.call(me,be)&&Te(fe,be,me[be]);if(ke)for(var be of ke(me))je.call(me,be)&&Te(fe,be,me[be]);return fe};function lt(fe,me){return(0,oe.U2)(`myproblems/${fe}.json`,Ge({hidePopLogin:!0},me||{}))}function Ke(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_submit.json`,me)}function He(fe,me){return(0,oe.v_)(`myproblems/${fe}/code_debug.json`,me)}function yt(fe,me){return me.language&&(me.language=encodeURIComponent(me.language)),(0,oe.U2)(`myproblems/${fe}/submit_records.json`,me)}function $e(fe){return(0,oe.U2)("myproblems/record_detail.json",{id:fe})}function Mt(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)}},53311:function(We,Ee,ae){"use strict";var oe=ae(59301),Pe=ae(25399),ke=ae(37568),De=ae(6767),je=ae(2397),Te=ae(59301),Ge=(Ke,He,yt)=>new Promise(($e,Mt)=>{var Fe=he=>{try{ee(yt.next(he))}catch(ue){Mt(ue)}},te=he=>{try{ee(yt.throw(he))}catch(ue){Mt(ue)}},ee=he=>he.done?$e(he.value):Promise.resolve(he.value).then(Fe,te);ee((yt=yt.apply(Ke,He)).next())});const lt=({defaultValue:Ke,onFinish:He})=>{const[yt,$e]=(0,oe.useState)(!1),[Mt,Fe]=(0,oe.useState)(Ke);return(0,oe.useEffect)(()=>{Fe(Ke)},[Ke]),Te.createElement("div",null,yt?Te.createElement(ke.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Mt,onChange:te=>{Fe(te.target.value)},onBlur:()=>Ge(void 0,null,function*(){var te;if(((te=Mt==null?void 0:Mt.replaceAll(" ",""))==null?void 0:te.length)<=0){De.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield He(Mt))&&$e(!1)}),onPressEnter:()=>Ge(void 0,null,function*(){var te;if(((te=Mt==null?void 0:Mt.replaceAll(" ",""))==null?void 0:te.length)<=0){De.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield He(Mt))&&$e(!1)})}):Te.createElement("div",{className:je.Z.title},Mt,Te.createElement(Pe.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Te.createElement("i",{className:`${je.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>$e(!0)}))))};Ee.Z=lt},52154:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return He}});var oe=ae(62957),Pe={ul:"ul___TdfYY"},ke=ae(32637),De=ae(59301),je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,lt=(yt,$e)=>{var Mt={};for(var Fe in yt)Te.call(yt,Fe)&&$e.indexOf(Fe)<0&&(Mt[Fe]=yt[Fe]);if(yt!=null&&je)for(var Fe of je(yt))$e.indexOf(Fe)<0&&Ge.call(yt,Fe)&&(Mt[Fe]=yt[Fe]);return Mt},He=yt=>{var $e=yt,{open:Mt,onCancel:Fe}=$e,te=lt($e,["open","onCancel"]);return De.createElement(oe.default,{centered:!0,open:Mt,title:De.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Fe,footer:null},De.createElement("div",null,De.createElement("div",{className:"tc"},De.createElement("img",{className:"mt10",src:ke,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),De.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),De.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),De.createElement("div",{style:{color:"#333"},className:"pt30 font14"},De.createElement("ul",{className:Pe.ul},De.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),De.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),De.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},78874:function(We,Ee,ae){"use strict";ae.d(Ee,{I:function(){return Pe}});var oe=ae(59301);const Pe=()=>{const[ke,De]=(0,oe.useState)("hidden");return{overflow:ke,handleMouseEnter:()=>De("auto"),handleMouseLeave:()=>De("hidden")}}},81428:function(We,Ee,ae){"use strict";ae.d(Ee,{AL:function(){return be},Iy:function(){return yt},Qv:function(){return Fe},ez:function(){return me},jb:function(){return $e}});var oe=ae(32834),Pe=ae.n(oe),ke=ae(11690),De=ae.n(ke);let je=1;function Te(Je,st){const gt=Je.match(/^(\s+)(?:```)/);if(gt===null)return st;const rt=gt[1];return st.split(`
|
|
|
`).map(mt=>{const xt=mt.match(/^\s+/);if(xt===null)return mt;const[Tt]=xt;return Tt.length>=rt.length?mt.slice(rt.length):mt}).join(`
|
|
|
`)}let Ge=[],lt=["<ul>"];const Ke=new(Pe()).Renderer,He=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function yt(){Ge.length=0,lt=["<ul>"]}const $e={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Mt(Je,st,gt,rt){if(st>=Je.length||Je[st].level<=gt)return st;var mt=Je[st];rt.push("<li><a href='#"+je+mt.anchor+"'>"+mt.text+"</a>"),st++;var xt=[];return st=Mt(Je,st,mt.level,xt),xt.length>0&&(rt.push("<ul>"),xt.forEach(function(Tt){rt.push(Tt)}),rt.push("</ul>")),rt.push("</li>"),st=Mt(Je,st,gt,rt),st}function Fe(){return Mt(Ge,0,0,lt),lt.push("</ul>"),lt.join("")}const te={heading(Je){const st=He.exec(Je);if(je+=1,st)return{type:"heading",raw:st[0],depth:st[1].length,text:st[2]}},fences(Je){const st=this.rules.block.fences.exec(Je);if(st){const gt=st[0];let rt=Te(gt,st[3]||"");const mt=st[2]?st[2].trim():st[2];if(["latex","katex","math"].indexOf(mt)>=0){const xt=ue(),Tt=rt;rt=xt,fe[xt]={type:"block",expression:Tt}}return{type:"code",raw:gt,lang:mt,text:rt}}}},ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const ue=()=>`__special_katext_id_${he++}__`;let fe={};function me(){return fe}function be(){he=0,fe={}}function Ae(Je){return Je=Je.replace(ee,(st,gt)=>{const rt=ue();return fe[rt]={type:"inline",expression:gt},rt}),Je}const Ie=Ke.listitem;Ke.listitem=function(Je){return Ie(Ae(Je))};const Xe=Ke.paragraph;Ke.paragraph=function(Je){return Xe(Ae(Je))};const nt=Ke.tablecell;Ke.tablecell=function(Je,st){return nt(Ae(Je),st)},Ke.code=function(Je,st,gt){const rt=(st||"").match(/\S*/)[0];return rt?["latex","katex","math"].indexOf(rt)>=0?`<p class='editormd-tex'>${Je}</p>`:`<pre class="prettyprint linenums"><code class="language-${st}">${gt?Je:(0,ke.escape)(Je,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(gt?Je:(0,ke.escape)(Je,!0))+"</code></pre>"},Ke.heading=function(Je,st,gt){let rt=this.options.headerPrefix+gt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ge.push({anchor:rt,level:st,text:Je}),"<h"+st+' id="'+je+rt+'">'+Je+"</h"+st+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:te,renderer:Ke}),Ee.ZP=Pe()},99498:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){oe.defineOption("placeholder","",function(lt,Ke,He){var yt=He&&He!=oe.Init;if(Ke&&!yt)lt.on("blur",je),lt.on("change",Te),lt.on("swapDoc",Te),oe.on(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose=function(){De(lt)}),Te(lt);else if(!Ke&&yt){lt.off("blur",je),lt.off("change",Te),lt.off("swapDoc",Te),oe.off(lt.getInputField(),"compositionupdate",lt.state.placeholderCompose),Pe(lt);var $e=lt.getWrapperElement();$e.className=$e.className.replace(" CodeMirror-empty","")}Ke&&!lt.hasFocus()&&je(lt)});function Pe(lt){lt.state.placeholder&&(lt.state.placeholder.parentNode.removeChild(lt.state.placeholder),lt.state.placeholder=null)}function ke(lt){Pe(lt);var Ke=lt.state.placeholder=document.createElement("pre");Ke.style.cssText="height: 0; overflow: visible",Ke.style.direction=lt.getOption("direction"),Ke.className="CodeMirror-placeholder CodeMirror-line-like";var He=lt.getOption("placeholder");typeof He=="string"&&(He=document.createTextNode(He)),Ke.appendChild(He),lt.display.lineSpace.insertBefore(Ke,lt.display.lineSpace.firstChild)}function De(lt){setTimeout(function(){var Ke=!1,He=lt.getInputField();He.nodeName=="TEXTAREA"?Ke=!He.value:lt.lineCount()==1&&(Ke=!/[^\u200b]/.test(He.querySelector(".CodeMirror-line").textContent)),Ke?ke(lt):Pe(lt)},20)}function je(lt){Ge(lt)&&ke(lt)}function Te(lt){var Ke=lt.getWrapperElement(),He=Ge(lt);Ke.className=Ke.className.replace(" CodeMirror-empty","")+(He?" CodeMirror-empty":""),He?ke(lt):Pe(lt)}function Ge(lt){return lt.lineCount()===1&<.getLine(0)===""}})},25717:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ke=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(te,ee,he){he&&he!=oe.Init&&(te.removeKeyMap(je),te.state.closeBrackets=null),ee&&(Te(De(ee,"pairs")),te.state.closeBrackets=ee,te.addKeyMap(je))});function De(te,ee){return ee=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ee]!=null?te[ee]:Pe[ee]}var je={Backspace:Ke,Enter:He};function Te(te){for(var ee=0;ee<te.length;ee++){var he=te.charAt(ee),ue="'"+he+"'";je[ue]||(je[ue]=Ge(he))}}Te(Pe.pairs+"`");function Ge(te){return function(ee){return $e(ee,te)}}function lt(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=lt(te);if(!ee||te.getOption("disableInput"))return oe.Pass;for(var he=De(ee,"pairs"),ue=te.listSelections(),fe=0;fe<ue.length;fe++){if(!ue[fe].empty())return oe.Pass;var me=Mt(te,ue[fe].head);if(!me||he.indexOf(me)%2!=0)return oe.Pass}for(var fe=ue.length-1;fe>=0;fe--){var be=ue[fe].head;te.replaceRange("",ke(be.line,be.ch-1),ke(be.line,be.ch+1),"+delete")}}function He(te){var ee=lt(te),he=ee&&De(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=Mt(te,ue[fe].head);if(!me||he.indexOf(me)%2!=0)return oe.Pass}te.operation(function(){var be=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(be+be,null),te.execCommand("goCharLeft"),ue=te.listSelections();for(var Ae=0;Ae<ue.length;Ae++){var Ie=ue[Ae].head.line;te.indentLine(Ie,null,!0),te.indentLine(Ie+1,null,!0)}})}function yt(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 $e(te,ee){var he=lt(te);if(!he||te.getOption("disableInput"))return oe.Pass;var ue=De(he,"pairs"),fe=ue.indexOf(ee);if(fe==-1)return oe.Pass;for(var me=De(he,"closeBefore"),be=De(he,"triples"),Ae=ue.charAt(fe+1)==ee,Ie=te.listSelections(),Xe=fe%2==0,nt,Je=0;Je<Ie.length;Je++){var st=Ie[Je],gt=st.head,rt,mt=te.getRange(gt,ke(gt.line,gt.ch+1));if(Xe&&!st.empty())rt="surround";else if((Ae||!Xe)&&mt==ee)Ae&&Fe(te,gt)?rt="both":be.indexOf(ee)>=0&&te.getRange(gt,ke(gt.line,gt.ch+3))==ee+ee+ee?rt="skipThree":rt="skip";else if(Ae&>.ch>1&&be.indexOf(ee)>=0&&te.getRange(ke(gt.line,gt.ch-2),gt)==ee+ee){if(gt.ch>2&&/\bstring/.test(te.getTokenTypeAt(ke(gt.line,gt.ch-2))))return oe.Pass;rt="addFour"}else if(Ae){var xt=gt.ch==0?" ":te.getRange(ke(gt.line,gt.ch-1),gt);if(!oe.isWordChar(mt)&&xt!=ee&&!oe.isWordChar(xt))rt="both";else return oe.Pass}else if(Xe&&(mt.length===0||/\s/.test(mt)||me.indexOf(mt)>-1))rt="both";else return oe.Pass;if(!nt)nt=rt;else if(nt!=rt)return oe.Pass}var Tt=fe%2?ue.charAt(fe-1):ee,zt=fe%2?ee:ue.charAt(fe+1);te.operation(function(){if(nt=="skip")te.execCommand("goCharRight");else if(nt=="skipThree")for(var Qt=0;Qt<3;Qt++)te.execCommand("goCharRight");else if(nt=="surround"){for(var Kt=te.getSelections(),Qt=0;Qt<Kt.length;Qt++)Kt[Qt]=Tt+Kt[Qt]+zt;te.replaceSelections(Kt,"around"),Kt=te.listSelections().slice();for(var Qt=0;Qt<Kt.length;Qt++)Kt[Qt]=yt(Kt[Qt]);te.setSelections(Kt)}else nt=="both"?(te.replaceSelection(Tt+zt,null),te.triggerElectric(Tt+zt),te.execCommand("goCharLeft")):nt=="addFour"&&(te.replaceSelection(Tt+Tt+Tt+Tt,"before"),te.execCommand("goCharRight"))})}function Mt(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(We,Ee,ae){(function(oe){oe(ae(89780),ae(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Ke,He,yt){if(yt!=oe.Init&&yt&&Ke.removeKeyMap("autoCloseTags"),!!He){var $e={name:"autoCloseTags"};(typeof He!="object"||He.whenClosing!==!1)&&($e["'/'"]=function(Mt){return Te(Mt)}),(typeof He!="object"||He.whenOpening!==!1)&&($e["'>'"]=function(Mt){return De(Mt)}),Ke.addKeyMap($e)}});var Pe=["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 De(Ke){if(Ke.getOption("disableInput"))return oe.Pass;for(var He=Ke.listSelections(),yt=[],$e=Ke.getOption("autoCloseTags"),Mt=0;Mt<He.length;Mt++){if(!He[Mt].empty())return oe.Pass;var Fe=He[Mt].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",be=typeof $e=="object"&&$e.dontCloseTags||me&&Pe,Ae=typeof $e=="object"&&$e.indentTags||me&&ke;te.end>Fe.ch&&(fe=fe.slice(0,fe.length-te.end+Fe.ch));var Ie=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||be&&Ge(be,Ie)>-1||lt(Ke,ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(he)||[],fe,Fe,!0))return oe.Pass;var Xe=typeof $e=="object"&&$e.emptyTags;if(Xe&&Ge(Xe,fe)>-1){yt[Mt]={text:"/>",newPos:oe.Pos(Fe.line,Fe.ch+2)};continue}var nt=Ae&&Ge(Ae,Ie)>-1;yt[Mt]={indent:nt,text:">"+(nt?`
|
|
|
|
|
|
`:"")+"</"+fe+">",newPos:nt?oe.Pos(Fe.line+1,0):oe.Pos(Fe.line,Fe.ch+1)}}for(var Je=typeof $e=="object"&&$e.dontIndentOnAutoClose,Mt=He.length-1;Mt>=0;Mt--){var st=yt[Mt];Ke.replaceRange(st.text,He[Mt].head,He[Mt].anchor,"+insert");var gt=Ke.listSelections().slice(0);gt[Mt]={head:st.newPos,anchor:st.newPos},Ke.setSelections(gt),!Je&&st.indent&&(Ke.indentLine(st.newPos.line,null,!0),Ke.indentLine(st.newPos.line+1,null,!0))}}function je(Ke,He){for(var yt=Ke.listSelections(),$e=[],Mt=He?"/":"</",Fe=Ke.getOption("autoCloseTags"),te=typeof Fe=="object"&&Fe.dontIndentOnSlash,ee=0;ee<yt.length;ee++){if(!yt[ee].empty())return oe.Pass;var he=yt[ee].head,ue=Ke.getTokenAt(he),fe=oe.innerMode(Ke.getMode(),ue.state),me=fe.state;if(He&&(ue.type=="string"||ue.string.charAt(0)!="<"||ue.start!=he.ch-1))return oe.Pass;var be,Ae=fe.mode.name!="xml"&&Ke.getMode().name=="htmlmixed";if(Ae&&fe.mode.name=="javascript")be=Mt+"script";else if(Ae&&fe.mode.name=="css")be=Mt+"style";else{var Ie=fe.mode.xmlCurrentContext&&fe.mode.xmlCurrentContext(me);if(!Ie||Ie.length&<(Ke,Ie,Ie[Ie.length-1],he))return oe.Pass;be=Mt+Ie[Ie.length-1]}Ke.getLine(he.line).charAt(ue.end)!=">"&&(be+=">"),$e[ee]=be}if(Ke.replaceSelections($e),yt=Ke.listSelections(),!te)for(var ee=0;ee<yt.length;ee++)(ee==yt.length-1||yt[ee].head.line<yt[ee+1].head.line)&&Ke.indentLine(yt[ee].head.line)}function Te(Ke){return Ke.getOption("disableInput")?oe.Pass:je(Ke,!0)}oe.commands.closeTag=function(Ke){return je(Ke)};function Ge(Ke,He){if(Ke.indexOf)return Ke.indexOf(He);for(var yt=0,$e=Ke.length;yt<$e;++yt)if(Ke[yt]==He)return yt;return-1}function lt(Ke,He,yt,$e,Mt){if(!oe.scanForClosingTag)return!1;var Fe=Math.min(Ke.lastLine()+1,$e.line+500),te=oe.scanForClosingTag(Ke,$e,null,Fe);if(!te||te.tag!=yt)return!1;for(var ee=Mt?1:0,he=He.length-1;he>=0&&He[he]==yt;he--)++ee;$e=te.to;for(var he=1;he<ee;he++){var ue=oe.scanForClosingTag(Ke,$e,null,Fe);if(!ue||ue.tag!=yt)return!1;$e=ue.to}return!0}})},32855:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Pe=oe.Pos;function ke(he,ue){return he.line-ue.line||he.ch-ue.ch}var De="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",je=De+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Te=new RegExp("<(/?)(["+De+"]["+je+"]*)","g");function Ge(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 lt(he,ue){var fe=he.cm.getTokenTypeAt(Pe(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 He(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function yt(he){for(;;){var ue=he.text.indexOf(">",he.ch);if(ue==-1){if(Ke(he))continue;return}if(!lt(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 $e(he){for(;;){var ue=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(ue==-1){if(He(he))continue;return}if(!lt(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 Mt(he){for(;;){Te.lastIndex=he.ch;var ue=Te.exec(he.text);if(!ue){if(Ke(he))continue;return}if(!lt(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(He(he))continue;return}if(!lt(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=Mt(he),be,Ae=he.line,Ie=he.ch-(me?me[0].length:0);if(!me||!(be=yt(he)))return;if(be!="selfClose")if(me[1]){for(var Xe=fe.length-1;Xe>=0;--Xe)if(fe[Xe]==me[2]){fe.length=Xe;break}if(Xe<0&&(!ue||ue==me[2]))return{tag:me[2],from:Pe(Ae,Ie),to:Pe(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"){$e(he);continue}var be=he.line,Ae=he.ch,Ie=$e(he);if(!Ie)return;if(Ie[1])fe.push(Ie[2]);else{for(var Xe=fe.length-1;Xe>=0;--Xe)if(fe[Xe]==Ie[2]){fe.length=Xe;break}if(Xe<0&&(!ue||ue==Ie[2]))return{tag:Ie[2],from:Pe(he.line,he.ch),to:Pe(be,Ae)}}}}oe.registerHelper("fold","xml",function(he,ue){for(var fe=new Ge(he,ue.line,0);;){var me=Mt(fe);if(!me||fe.line!=ue.line)return;var be=yt(fe);if(!be)return;if(!me[1]&&be!="selfClose"){var Ae=Pe(fe.line,fe.ch),Ie=te(fe,me[2]);return Ie&&ke(Ie.from,Ae)>0?{from:Ae,to:Ie.from}:null}}}),oe.findMatchingTag=function(he,ue,fe){var me=new Ge(he,ue.line,ue.ch,fe);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var be=yt(me),Ae=be&&Pe(me.line,me.ch),Ie=be&&$e(me);if(!(!be||!Ie||ke(me,ue)>0)){var Xe={from:Pe(me.line,me.ch),to:Ae,tag:Ie[2]};return be=="selfClose"?{open:Xe,close:null,at:"open"}:Ie[1]?{open:ee(me,Ie[2]),close:Xe,at:"close"}:(me=new Ge(he,Ae.line,Ae.ch,fe),{open:Xe,close:te(me,Ie[2]),at:"open"})}}},oe.findEnclosingTag=function(he,ue,fe,me){for(var be=new Ge(he,ue.line,ue.ch,fe);;){var Ae=ee(be,me);if(!Ae)break;var Ie=new Ge(he,ue.line,ue.ch,fe),Xe=te(Ie,Ae.tag);if(Xe)return{open:Ae,close:Xe}}},oe.scanForClosingTag=function(he,ue,fe,me){var be=new Ge(he,ue.line,ue.ch,me?{from:0,to:me}:null);return te(be,fe)}})},89780:function(We){(function(Ee,ae){We.exports=ae()})(this,function(){"use strict";var Ee=navigator.userAgent,ae=navigator.platform,oe=/gecko\/\d/i.test(Ee),Pe=/MSIE \d/.test(Ee),ke=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ee),De=/Edge\/(\d+)/.exec(Ee),je=Pe||ke||De,Te=je&&(Pe?document.documentMode||6:+(De||ke)[1]),Ge=!De&&/WebKit\//.test(Ee),lt=Ge&&/Qt\/\d+\.\d+/.test(Ee),Ke=!De&&/Chrome\//.test(Ee),He=/Opera\//.test(Ee),yt=/Apple Computer/.test(navigator.vendor),$e=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ee),Mt=/PhantomJS/.test(Ee),Fe=!De&&/AppleWebKit/.test(Ee)&&/Mobile\/\w+/.test(Ee),te=/Android/.test(Ee),ee=Fe||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ee),he=Fe||/Mac/.test(ae),ue=/\bCrOS\b/.test(Ee),fe=/win/i.test(ae),me=He&&Ee.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(He=!1,Ge=!0);var be=he&&(lt||He&&(me==null||me<12.11)),Ae=oe||je&&Te>=9;function Ie(re){return new RegExp("(^|\\s)"+re+"(?:$|\\s)\\s*")}var Xe=function(re,le){var ye=re.className,ve=Ie(le).exec(ye);if(ve){var xe=ye.slice(ve.index+ve[0].length);re.className=ye.slice(0,ve.index)+(xe?ve[1]+xe:"")}};function nt(re){for(var le=re.childNodes.length;le>0;--le)re.removeChild(re.firstChild);return re}function Je(re,le){return nt(re).appendChild(le)}function st(re,le,ye,ve){var xe=document.createElement(re);if(ye&&(xe.className=ye),ve&&(xe.style.cssText=ve),typeof le=="string")xe.appendChild(document.createTextNode(le));else if(le)for(var Ze=0;Ze<le.length;++Ze)xe.appendChild(le[Ze]);return xe}function gt(re,le,ye,ve){var xe=st(re,le,ye,ve);return xe.setAttribute("role","presentation"),xe}var rt;document.createRange?rt=function(re,le,ye,ve){var xe=document.createRange();return xe.setEnd(ve||re,ye),xe.setStart(re,le),xe}:rt=function(re,le,ye){var ve=document.body.createTextRange();try{ve.moveToElementText(re.parentNode)}catch(xe){return ve}return ve.collapse(!0),ve.moveEnd("character",ye),ve.moveStart("character",le),ve};function mt(re,le){if(le.nodeType==3&&(le=le.parentNode),re.contains)return re.contains(le);do if(le.nodeType==11&&(le=le.host),le==re)return!0;while(le=le.parentNode)}function xt(){var re;try{re=document.activeElement}catch(le){re=document.body||null}for(;re&&re.shadowRoot&&re.shadowRoot.activeElement;)re=re.shadowRoot.activeElement;return re}function Tt(re,le){var ye=re.className;Ie(le).test(ye)||(re.className+=(ye?" ":"")+le)}function zt(re,le){for(var ye=re.split(" "),ve=0;ve<ye.length;ve++)ye[ve]&&!Ie(ye[ve]).test(le)&&(le+=" "+ye[ve]);return le}var Qt=function(re){re.select()};Fe?Qt=function(re){re.selectionStart=0,re.selectionEnd=re.value.length}:je&&(Qt=function(re){try{re.select()}catch(le){}});function Kt(re){var le=Array.prototype.slice.call(arguments,1);return function(){return re.apply(null,le)}}function Cn(re,le,ye){le||(le={});for(var ve in re)re.hasOwnProperty(ve)&&(ye!==!1||!le.hasOwnProperty(ve))&&(le[ve]=re[ve]);return le}function St(re,le,ye,ve,xe){le==null&&(le=re.search(/[^\s\u00a0]/),le==-1&&(le=re.length));for(var Ze=ve||0,dt=xe||0;;){var Pt=re.indexOf(" ",Ze);if(Pt<0||Pt>=le)return dt+(le-Ze);dt+=Pt-Ze,dt+=ye-dt%ye,Ze=Pt+1}}var pt=function(){this.id=null,this.f=null,this.time=0,this.handler=Kt(this.onTimeout,this)};pt.prototype.onTimeout=function(re){re.id=0,re.time<=+new Date?re.f():setTimeout(re.handler,re.time-+new Date)},pt.prototype.set=function(re,le){this.f=le;var ye=+new Date+re;(!this.id||ye<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,re),this.time=ye)};function ct(re,le){for(var ye=0;ye<re.length;++ye)if(re[ye]==le)return ye;return-1}var qt=50,fn={toString:function(){return"CodeMirror.Pass"}},kt={scroll:!1},xn={origin:"*mouse"},kn={origin:"+move"};function Vn(re,le,ye){for(var ve=0,xe=0;;){var Ze=re.indexOf(" ",ve);Ze==-1&&(Ze=re.length);var dt=Ze-ve;if(Ze==re.length||xe+dt>=le)return ve+Math.min(dt,le-xe);if(xe+=Ze-ve,xe+=ye-xe%ye,ve=Ze+1,xe>=le)return ve}}var Vt=[""];function Ot(re){for(;Vt.length<=re;)Vt.push(Nn(Vt)+" ");return Vt[re]}function Nn(re){return re[re.length-1]}function tr(re,le){for(var ye=[],ve=0;ve<re.length;ve++)ye[ve]=le(re[ve],ve);return ye}function hr(re,le,ye){for(var ve=0,xe=ye(le);ve<re.length&&ye(re[ve])<=xe;)ve++;re.splice(ve,0,le)}function ot(){}function _e(re,le){var ye;return Object.create?ye=Object.create(re):(ot.prototype=re,ye=new ot),le&&Cn(le,ye),ye}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ye(re){return/\w/.test(re)||re>"\x80"&&(re.toUpperCase()!=re.toLowerCase()||Re.test(re))}function at(re,le){return le?le.source.indexOf("\\w")>-1&&Ye(re)?!0:le.test(re):Ye(re)}function Be(re){for(var le in re)if(re.hasOwnProperty(le)&&re[le])return!1;return!0}var bt=/[\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 bn(re){return re.charCodeAt(0)>=768&&bt.test(re)}function sn(re,le,ye){for(;(ye<0?le>0:le<re.length)&&bn(re.charAt(le));)le+=ye;return le}function Bn(re,le,ye){for(var ve=le>ye?-1:1;;){if(le==ye)return le;var xe=(le+ye)/2,Ze=ve<0?Math.ceil(xe):Math.floor(xe);if(Ze==le)return re(Ze)?le:ye;re(Ze)?ye=Ze:le=Ze+ve}}function It(re,le,ye,ve){if(!re)return ve(le,ye,"ltr",0);for(var xe=!1,Ze=0;Ze<re.length;++Ze){var dt=re[Ze];(dt.from<ye&&dt.to>le||le==ye&&dt.to==le)&&(ve(Math.max(dt.from,le),Math.min(dt.to,ye),dt.level==1?"rtl":"ltr",Ze),xe=!0)}xe||ve(le,ye,"ltr")}var _t=null;function jt(re,le,ye){var ve;_t=null;for(var xe=0;xe<re.length;++xe){var Ze=re[xe];if(Ze.from<le&&Ze.to>le)return xe;Ze.to==le&&(Ze.from!=Ze.to&&ye=="before"?ve=xe:_t=xe),Ze.from==le&&(Ze.from!=Ze.to&&ye!="before"?ve=xe:_t=xe)}return ve!=null?ve:_t}var hn=function(){var re="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",le="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye(Wt){return Wt<=247?re.charAt(Wt):1424<=Wt&&Wt<=1524?"R":1536<=Wt&&Wt<=1785?le.charAt(Wt-1536):1774<=Wt&&Wt<=2220?"r":8192<=Wt&&Wt<=8203?"w":Wt==8204?"b":"L"}var ve=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,Ze=/[LRr]/,dt=/[Lb1n]/,Pt=/[1n]/;function wt(Wt,Zn,rn){this.level=Wt,this.from=Zn,this.to=rn}return function(Wt,Zn){var rn=Zn=="ltr"?"L":"R";if(Wt.length==0||Zn=="ltr"&&!ve.test(Wt))return!1;for(var Cr=Wt.length,yr=[],yi=0;yi<Cr;++yi)yr.push(ye(Wt.charCodeAt(yi)));for(var xi=0,Di=rn;xi<Cr;++xi){var $i=yr[xi];$i=="m"?yr[xi]=Di:Di=$i}for(var yo=0,lo=rn;yo<Cr;++yo){var Ao=yr[yo];Ao=="1"&&lo=="r"?yr[yo]="n":Ze.test(Ao)&&(lo=Ao,Ao=="r"&&(yr[yo]="R"))}for(var Qo=1,uo=yr[0];Qo<Cr-1;++Qo){var ya=yr[Qo];ya=="+"&&uo=="1"&&yr[Qo+1]=="1"?yr[Qo]="1":ya==","&&uo==yr[Qo+1]&&(uo=="1"||uo=="n")&&(yr[Qo]=uo),uo=ya}for(var Ts=0;Ts<Cr;++Ts){var Cl=yr[Ts];if(Cl==",")yr[Ts]="N";else if(Cl=="%"){var Bs=void 0;for(Bs=Ts+1;Bs<Cr&&yr[Bs]=="%";++Bs);for(var Tu=Ts&&yr[Ts-1]=="!"||Bs<Cr&&yr[Bs]=="1"?"1":"N",eu=Ts;eu<Bs;++eu)yr[eu]=Tu;Ts=Bs-1}}for(var sl=0,Gu=rn;sl<Cr;++sl){var Gl=yr[sl];Gu=="L"&&Gl=="1"?yr[sl]="L":Ze.test(Gl)&&(Gu=Gl)}for(var tl=0;tl<Cr;++tl)if(xe.test(yr[tl])){var Ba=void 0;for(Ba=tl+1;Ba<Cr&&xe.test(yr[Ba]);++Ba);for(var Vs=(tl?yr[tl-1]:rn)=="L",Rl=(Ba<Cr?yr[Ba]:rn)=="L",jl=Vs==Rl?Vs?"L":"R":rn,xc=tl;xc<Ba;++xc)yr[xc]=jl;tl=Ba-1}for(var Ds=[],we,Ne=0;Ne<Cr;)if(dt.test(yr[Ne])){var Ve=Ne;for(++Ne;Ne<Cr&&dt.test(yr[Ne]);++Ne);Ds.push(new wt(0,Ve,Ne))}else{var ut=Ne,At=Ds.length,Nt=Zn=="rtl"?1:0;for(++Ne;Ne<Cr&&yr[Ne]!="L";++Ne);for(var Ut=ut;Ut<Ne;)if(Pt.test(yr[Ut])){ut<Ut&&(Ds.splice(At,0,new wt(1,ut,Ut)),At+=Nt);var Zt=Ut;for(++Ut;Ut<Ne&&Pt.test(yr[Ut]);++Ut);Ds.splice(At,0,new wt(2,Zt,Ut)),At+=Nt,ut=Ut}else++Ut;ut<Ne&&Ds.splice(At,0,new wt(1,ut,Ne))}return Zn=="ltr"&&(Ds[0].level==1&&(we=Wt.match(/^\s+/))&&(Ds[0].from=we[0].length,Ds.unshift(new wt(0,0,we[0].length))),Nn(Ds).level==1&&(we=Wt.match(/\s+$/))&&(Nn(Ds).to-=we[0].length,Ds.push(new wt(0,Cr-we[0].length,Cr)))),Zn=="rtl"?Ds.reverse():Ds}}();function En(re,le){var ye=re.order;return ye==null&&(ye=re.order=hn(re.text,le)),ye}var pn=[],Rt=function(re,le,ye){if(re.addEventListener)re.addEventListener(le,ye,!1);else if(re.attachEvent)re.attachEvent("on"+le,ye);else{var ve=re._handlers||(re._handlers={});ve[le]=(ve[le]||pn).concat(ye)}};function Tn(re,le){return re._handlers&&re._handlers[le]||pn}function Yt(re,le,ye){if(re.removeEventListener)re.removeEventListener(le,ye,!1);else if(re.detachEvent)re.detachEvent("on"+le,ye);else{var ve=re._handlers,xe=ve&&ve[le];if(xe){var Ze=ct(xe,ye);Ze>-1&&(ve[le]=xe.slice(0,Ze).concat(xe.slice(Ze+1)))}}}function en(re,le){var ye=Tn(re,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 vn(re,le,ye){return typeof le=="string"&&(le={type:le,preventDefault:function(){this.defaultPrevented=!0}}),en(re,ye||le.type,re,le),Jt(le)||le.codemirrorIgnore}function zn(re){var le=re._handlers&&re._handlers.cursorActivity;if(le)for(var ye=re.curOp.cursorActivityHandlers||(re.curOp.cursorActivityHandlers=[]),ve=0;ve<le.length;++ve)ct(ye,le[ve])==-1&&ye.push(le[ve])}function un(re,le){return Tn(re,le).length>0}function Et(re){re.prototype.on=function(le,ye){Rt(this,le,ye)},re.prototype.off=function(le,ye){Yt(this,le,ye)}}function Xn(re){re.preventDefault?re.preventDefault():re.returnValue=!1}function ir(re){re.stopPropagation?re.stopPropagation():re.cancelBubble=!0}function Jt(re){return re.defaultPrevented!=null?re.defaultPrevented:re.returnValue==!1}function Er(re){Xn(re),ir(re)}function ni(re){return re.target||re.srcElement}function Rr(re){var le=re.which;return le==null&&(re.button&1?le=1:re.button&2?le=3:re.button&4&&(le=2)),he&&re.ctrlKey&&le==1&&(le=3),le}var Mn=function(){if(je&&Te<9)return!1;var re=st("div");return"draggable"in re||"dragDrop"in re}(),ei;function Kr(re){if(ei==null){var le=st("span","\u200B");Je(re,st("span",[le,document.createTextNode("x")])),re.firstChild.offsetHeight!=0&&(ei=le.offsetWidth<=1&&le.offsetHeight>2&&!(je&&Te<8))}var ye=ei?st("span","\u200B"):st("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var lr;function jr(re){if(lr!=null)return lr;var le=Je(re,document.createTextNode("A\u062EA")),ye=rt(le,0,1).getBoundingClientRect(),ve=rt(le,1,2).getBoundingClientRect();return nt(re),!ye||ye.left==ye.right?!1:lr=ve.right-ye.right<3}var oi=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(re){for(var le=0,ye=[],ve=re.length;le<=ve;){var xe=re.indexOf(`
|
|
|
`,le);xe==-1&&(xe=re.length);var Ze=re.slice(le,re.charAt(xe-1)=="\r"?xe-1:xe),dt=Ze.indexOf("\r");dt!=-1?(ye.push(Ze.slice(0,dt)),le+=dt+1):(ye.push(Ze),le=xe+1)}return ye}:function(re){return re.split(/\r\n?|\n/)},Oe=window.getSelection?function(re){try{return re.selectionStart!=re.selectionEnd}catch(le){return!1}}:function(re){var le;try{le=re.ownerDocument.selection.createRange()}catch(ye){}return!le||le.parentElement()!=re?!1:le.compareEndPoints("StartToEnd",le)!=0},dr=function(){var re=st("div");return"oncopy"in re?!0:(re.setAttribute("oncopy","return;"),typeof re.oncopy=="function")}(),Pr=null;function or(re){if(Pr!=null)return Pr;var le=Je(re,st("span","x")),ye=le.getBoundingClientRect(),ve=rt(le,0,1).getBoundingClientRect();return Pr=Math.abs(ye.left-ve.left)>1}var Lr={},zr={};function wr(re,le){arguments.length>2&&(le.dependencies=Array.prototype.slice.call(arguments,2)),Lr[re]=le}function Ti(re,le){zr[re]=le}function On(re){if(typeof re=="string"&&zr.hasOwnProperty(re))re=zr[re];else if(re&&typeof re.name=="string"&&zr.hasOwnProperty(re.name)){var le=zr[re.name];typeof le=="string"&&(le={name:le}),re=_e(le,re),re.name=le.name}else{if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(re))return On("application/xml");if(typeof re=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(re))return On("application/json")}return typeof re=="string"?{name:re}:re||{name:"null"}}function yn(re,le){le=On(le);var ye=Lr[le.name];if(!ye)return yn(re,"text/plain");var ve=ye(re,le);if(Sn.hasOwnProperty(le.name)){var xe=Sn[le.name];for(var Ze in xe)xe.hasOwnProperty(Ze)&&(ve.hasOwnProperty(Ze)&&(ve["_"+Ze]=ve[Ze]),ve[Ze]=xe[Ze])}if(ve.name=le.name,le.helperType&&(ve.helperType=le.helperType),le.modeProps)for(var dt in le.modeProps)ve[dt]=le.modeProps[dt];return ve}var Sn={};function Jn(re,le){var ye=Sn.hasOwnProperty(re)?Sn[re]:Sn[re]={};Cn(le,ye)}function ui(re,le){if(le===!0)return le;if(re.copyState)return re.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 Yr(re,le){for(var ye;re.innerMode&&(ye=re.innerMode(le),!(!ye||ye.mode==re));)le=ye.state,re=ye.mode;return ye||{mode:re,state:le}}function ci(re,le,ye){return re.startState?re.startState(le,ye):!0}var ur=function(re,le,ye){this.pos=this.start=0,this.string=re,this.tabSize=le||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ye};ur.prototype.eol=function(){return this.pos>=this.string.length},ur.prototype.sol=function(){return this.pos==this.lineStart},ur.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ur.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ur.prototype.eat=function(re){var le=this.string.charAt(this.pos),ye;if(typeof re=="string"?ye=le==re:ye=le&&(re.test?re.test(le):re(le)),ye)return++this.pos,le},ur.prototype.eatWhile=function(re){for(var le=this.pos;this.eat(re););return this.pos>le},ur.prototype.eatSpace=function(){for(var re=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>re},ur.prototype.skipToEnd=function(){this.pos=this.string.length},ur.prototype.skipTo=function(re){var le=this.string.indexOf(re,this.pos);if(le>-1)return this.pos=le,!0},ur.prototype.backUp=function(re){this.pos-=re},ur.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=St(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?St(this.string,this.lineStart,this.tabSize):0)},ur.prototype.indentation=function(){return St(this.string,null,this.tabSize)-(this.lineStart?St(this.string,this.lineStart,this.tabSize):0)},ur.prototype.match=function(re,le,ye){if(typeof re=="string"){var ve=function(dt){return ye?dt.toLowerCase():dt},xe=this.string.substr(this.pos,re.length);if(ve(xe)==ve(re))return le!==!1&&(this.pos+=re.length),!0}else{var Ze=this.string.slice(this.pos).match(re);return Ze&&Ze.index>0?null:(Ze&&le!==!1&&(this.pos+=Ze[0].length),Ze)}},ur.prototype.current=function(){return this.string.slice(this.start,this.pos)},ur.prototype.hideFirstChars=function(re,le){this.lineStart+=re;try{return le()}finally{this.lineStart-=re}},ur.prototype.lookAhead=function(re){var le=this.lineOracle;return le&&le.lookAhead(re)},ur.prototype.baseToken=function(){var re=this.lineOracle;return re&&re.baseToken(this.pos)};function Xr(re,le){if(le-=re.first,le<0||le>=re.size)throw new Error("There is no line "+(le+re.first)+" in the document.");for(var ye=re;!ye.lines;)for(var ve=0;;++ve){var xe=ye.children[ve],Ze=xe.chunkSize();if(le<Ze){ye=xe;break}le-=Ze}return ye.lines[le]}function wi(re,le,ye){var ve=[],xe=le.line;return re.iter(le.line,ye.line+1,function(Ze){var dt=Ze.text;xe==ye.line&&(dt=dt.slice(0,ye.ch)),xe==le.line&&(dt=dt.slice(le.ch)),ve.push(dt),++xe}),ve}function ki(re,le,ye){var ve=[];return re.iter(le,ye,function(xe){ve.push(xe.text)}),ve}function Fr(re,le){var ye=le-re.height;if(ye)for(var ve=re;ve;ve=ve.parent)ve.height+=ye}function Lt(re){if(re.parent==null)return null;for(var le=re.parent,ye=ct(le.lines,re),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 cn(re,le){var ye=re.first;e:do{for(var ve=0;ve<re.children.length;++ve){var xe=re.children[ve],Ze=xe.height;if(le<Ze){re=xe;continue e}le-=Ze,ye+=xe.chunkSize()}return ye}while(!re.lines);for(var dt=0;dt<re.lines.length;++dt){var Pt=re.lines[dt],wt=Pt.height;if(le<wt)break;le-=wt}return ye+dt}function kr(re,le){return le>=re.first&&le<re.first+re.size}function Ir(re,le){return String(re.lineNumberFormatter(le+re.firstLineNumber))}function Xt(re,le,ye){if(ye===void 0&&(ye=null),!(this instanceof Xt))return new Xt(re,le,ye);this.line=re,this.ch=le,this.sticky=ye}function Fn(re,le){return re.line-le.line||re.ch-le.ch}function fr(re,le){return re.sticky==le.sticky&&Fn(re,le)==0}function dn(re){return Xt(re.line,re.ch)}function Ue(re,le){return Fn(re,le)<0?le:re}function Mr(re,le){return Fn(re,le)<0?re:le}function Ur(re,le){return Math.max(re.first,Math.min(le,re.first+re.size-1))}function Wn(re,le){if(le.line<re.first)return Xt(re.first,0);var ye=re.first+re.size-1;return le.line>ye?Xt(ye,Xr(re,ye).text.length):mi(le,Xr(re,le.line).text.length)}function mi(re,le){var ye=re.ch;return ye==null||ye>le?Xt(re.line,le):ye<0?Xt(re.line,0):re}function Qr(re,le){for(var ye=[],ve=0;ve<le.length;ve++)ye[ve]=Wn(re,le[ve]);return ye}var rr=function(re,le){this.state=re,this.lookAhead=le},Gr=function(re,le,ye,ve){this.state=le,this.doc=re,this.line=ye,this.maxLookAhead=ve||0,this.baseTokens=null,this.baseTokenPos=1};Gr.prototype.lookAhead=function(re){var le=this.doc.getLine(this.line+re);return le!=null&&re>this.maxLookAhead&&(this.maxLookAhead=re),le},Gr.prototype.baseToken=function(re){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=re;)this.baseTokenPos+=2;var le=this.baseTokens[this.baseTokenPos+1];return{type:le&&le.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-re}},Gr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Gr.fromSaved=function(re,le,ye){return le instanceof rr?new Gr(re,ui(re.mode,le.state),ye,le.lookAhead):new Gr(re,ui(re.mode,le),ye)},Gr.prototype.save=function(re){var le=re!==!1?ui(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new rr(le,this.maxLookAhead):le};function on(re,le,ye,ve){var xe=[re.state.modeGen],Ze={};Hi(re,le.text,re.doc.mode,ye,function(Wt,Zn){return xe.push(Wt,Zn)},Ze,ve);for(var dt=ye.state,Pt=function(Wt){ye.baseTokens=xe;var Zn=re.state.overlays[Wt],rn=1,Cr=0;ye.state=!0,Hi(re,le.text,Zn.mode,ye,function(yr,yi){for(var xi=rn;Cr<yr;){var Di=xe[rn];Di>yr&&xe.splice(rn,1,yr,xe[rn+1],Di),rn+=2,Cr=Math.min(yr,Di)}if(yi)if(Zn.opaque)xe.splice(xi,rn-xi,yr,"overlay "+yi),rn=xi+2;else for(;xi<rn;xi+=2){var $i=xe[xi+1];xe[xi+1]=($i?$i+" ":"")+"overlay "+yi}},Ze),ye.state=dt,ye.baseTokens=null,ye.baseTokenPos=1},wt=0;wt<re.state.overlays.length;++wt)Pt(wt);return{styles:xe,classes:Ze.bgClass||Ze.textClass?Ze:null}}function Ci(re,le,ye){if(!le.styles||le.styles[0]!=re.state.modeGen){var ve=Vi(re,Lt(le)),xe=le.text.length>re.options.maxHighlightLength&&ui(re.doc.mode,ve.state),Ze=on(re,le,ve);xe&&(ve.state=xe),le.stateAfter=ve.save(!xe),le.styles=Ze.styles,Ze.classes?le.styleClasses=Ze.classes:le.styleClasses&&(le.styleClasses=null),ye===re.doc.highlightFrontier&&(re.doc.modeFrontier=Math.max(re.doc.modeFrontier,++re.doc.highlightFrontier))}return le.styles}function Vi(re,le,ye){var ve=re.doc,xe=re.display;if(!ve.mode.startState)return new Gr(ve,!0,le);var Ze=ji(re,le,ye),dt=Ze>ve.first&&Xr(ve,Ze-1).stateAfter,Pt=dt?Gr.fromSaved(ve,dt,Ze):new Gr(ve,ci(ve.mode),Ze);return ve.iter(Ze,le,function(wt){mn(re,wt.text,Pt);var Wt=Pt.line;wt.stateAfter=Wt==le-1||Wt%5==0||Wt>=xe.viewFrom&&Wt<xe.viewTo?Pt.save():null,Pt.nextLine()}),ye&&(ve.modeFrontier=Pt.line),Pt}function mn(re,le,ye,ve){var xe=re.doc.mode,Ze=new ur(le,re.options.tabSize,ye);for(Ze.start=Ze.pos=ve||0,le==""&&li(xe,ye.state);!Ze.eol();)bi(xe,Ze,ye.state),Ze.start=Ze.pos}function li(re,le){if(re.blankLine)return re.blankLine(le);if(re.innerMode){var ye=Yr(re,le);if(ye.mode.blankLine)return ye.mode.blankLine(ye.state)}}function bi(re,le,ye,ve){for(var xe=0;xe<10;xe++){ve&&(ve[0]=Yr(re,ye).mode);var Ze=re.token(le,ye);if(le.pos>le.start)return Ze}throw new Error("Mode "+re.name+" failed to advance stream.")}var qr=function(re,le,ye){this.start=re.start,this.end=re.pos,this.string=re.current(),this.type=le||null,this.state=ye};function Pi(re,le,ye,ve){var xe=re.doc,Ze=xe.mode,dt;le=Wn(xe,le);var Pt=Xr(xe,le.line),wt=Vi(re,le.line,ye),Wt=new ur(Pt.text,re.options.tabSize,wt),Zn;for(ve&&(Zn=[]);(ve||Wt.pos<le.ch)&&!Wt.eol();)Wt.start=Wt.pos,dt=bi(Ze,Wt,wt.state),ve&&Zn.push(new qr(Wt,dt,ui(xe.mode,wt.state)));return ve?Zn:new qr(Wt,dt,wt.state)}function Ii(re,le){if(re)for(;;){var ye=re.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ye)break;re=re.slice(0,ye.index)+re.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 re}function Hi(re,le,ye,ve,xe,Ze,dt){var Pt=ye.flattenSpans;Pt==null&&(Pt=re.options.flattenSpans);var wt=0,Wt=null,Zn=new ur(le,re.options.tabSize,ve),rn,Cr=re.options.addModeClass&&[null];for(le==""&&Ii(li(ye,ve.state),Ze);!Zn.eol();){if(Zn.pos>re.options.maxHighlightLength?(Pt=!1,dt&&mn(re,le,ve,Zn.pos),Zn.pos=le.length,rn=null):rn=Ii(bi(ye,Zn,ve.state,Cr),Ze),Cr){var yr=Cr[0].name;yr&&(rn="m-"+(rn?yr+" "+rn:yr))}if(!Pt||Wt!=rn){for(;wt<Zn.start;)wt=Math.min(Zn.start,wt+5e3),xe(wt,Wt);Wt=rn}Zn.start=Zn.pos}for(;wt<Zn.pos;){var yi=Math.min(Zn.pos,wt+5e3);xe(yi,Wt),wt=yi}}function ji(re,le,ye){for(var ve,xe,Ze=re.doc,dt=ye?-1:le-(re.doc.mode.innerMode?1e3:100),Pt=le;Pt>dt;--Pt){if(Pt<=Ze.first)return Ze.first;var wt=Xr(Ze,Pt-1),Wt=wt.stateAfter;if(Wt&&(!ye||Pt+(Wt instanceof rr?Wt.lookAhead:0)<=Ze.modeFrontier))return Pt;var Zn=St(wt.text,null,re.options.tabSize);(xe==null||ve>Zn)&&(xe=Pt-1,ve=Zn)}return xe}function Bi(re,le){if(re.modeFrontier=Math.min(re.modeFrontier,le),!(re.highlightFrontier<le-10)){for(var ye=re.first,ve=le-1;ve>ye;ve--){var xe=Xr(re,ve).stateAfter;if(xe&&(!(xe instanceof rr)||ve+xe.lookAhead<le)){ye=ve+1;break}}re.highlightFrontier=Math.min(re.highlightFrontier,ye)}}var io=!1,Qn=!1;function zi(){io=!0}function ar(){Qn=!0}function vi(re,le,ye){this.marker=re,this.from=le,this.to=ye}function Zi(re,le){if(re)for(var ye=0;ye<re.length;++ye){var ve=re[ye];if(ve.marker==le)return ve}}function Fi(re,le){for(var ye,ve=0;ve<re.length;++ve)re[ve]!=le&&(ye||(ye=[])).push(re[ve]);return ye}function fo(re,le){re.markedSpans=re.markedSpans?re.markedSpans.concat([le]):[le],le.marker.attachLine(re)}function co(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ze=re[xe],dt=Ze.marker,Pt=Ze.from==null||(dt.inclusiveLeft?Ze.from<=le:Ze.from<le);if(Pt||Ze.from==le&&dt.type=="bookmark"&&(!ye||!Ze.marker.insertLeft)){var wt=Ze.to==null||(dt.inclusiveRight?Ze.to>=le:Ze.to>le);(ve||(ve=[])).push(new vi(dt,Ze.from,wt?null:Ze.to))}}return ve}function Wi(re,le,ye){var ve;if(re)for(var xe=0;xe<re.length;++xe){var Ze=re[xe],dt=Ze.marker,Pt=Ze.to==null||(dt.inclusiveRight?Ze.to>=le:Ze.to>le);if(Pt||Ze.from==le&&dt.type=="bookmark"&&(!ye||Ze.marker.insertLeft)){var wt=Ze.from==null||(dt.inclusiveLeft?Ze.from<=le:Ze.from<le);(ve||(ve=[])).push(new vi(dt,wt?null:Ze.from-le,Ze.to==null?null:Ze.to-le))}}return ve}function zo(re,le){if(le.full)return null;var ye=kr(re,le.from.line)&&Xr(re,le.from.line).markedSpans,ve=kr(re,le.to.line)&&Xr(re,le.to.line).markedSpans;if(!ye&&!ve)return null;var xe=le.from.ch,Ze=le.to.ch,dt=Fn(le.from,le.to)==0,Pt=co(ye,xe,dt),wt=Wi(ve,Ze,dt),Wt=le.text.length==1,Zn=Nn(le.text).length+(Wt?xe:0);if(Pt)for(var rn=0;rn<Pt.length;++rn){var Cr=Pt[rn];if(Cr.to==null){var yr=Zi(wt,Cr.marker);yr?Wt&&(Cr.to=yr.to==null?null:yr.to+Zn):Cr.to=xe}}if(wt)for(var yi=0;yi<wt.length;++yi){var xi=wt[yi];if(xi.to!=null&&(xi.to+=Zn),xi.from==null){var Di=Zi(Pt,xi.marker);Di||(xi.from=Zn,Wt&&(Pt||(Pt=[])).push(xi))}else xi.from+=Zn,Wt&&(Pt||(Pt=[])).push(xi)}Pt&&(Pt=_n(Pt)),wt&&wt!=Pt&&(wt=_n(wt));var $i=[Pt];if(!Wt){var yo=le.text.length-2,lo;if(yo>0&&Pt)for(var Ao=0;Ao<Pt.length;++Ao)Pt[Ao].to==null&&(lo||(lo=[])).push(new vi(Pt[Ao].marker,null,null));for(var Qo=0;Qo<yo;++Qo)$i.push(lo);$i.push(wt)}return $i}function _n(re){for(var le=0;le<re.length;++le){var ye=re[le];ye.from!=null&&ye.from==ye.to&&ye.marker.clearWhenEmpty!==!1&&re.splice(le--,1)}return re.length?re:null}function vr(re,le,ye){var ve=null;if(re.iter(le.line,ye.line+1,function(yr){if(yr.markedSpans)for(var yi=0;yi<yr.markedSpans.length;++yi){var xi=yr.markedSpans[yi].marker;xi.readOnly&&(!ve||ct(ve,xi)==-1)&&(ve||(ve=[])).push(xi)}}),!ve)return null;for(var xe=[{from:le,to:ye}],Ze=0;Ze<ve.length;++Ze)for(var dt=ve[Ze],Pt=dt.find(0),wt=0;wt<xe.length;++wt){var Wt=xe[wt];if(!(Fn(Wt.to,Pt.from)<0||Fn(Wt.from,Pt.to)>0)){var Zn=[wt,1],rn=Fn(Wt.from,Pt.from),Cr=Fn(Wt.to,Pt.to);(rn<0||!dt.inclusiveLeft&&!rn)&&Zn.push({from:Wt.from,to:Pt.from}),(Cr>0||!dt.inclusiveRight&&!Cr)&&Zn.push({from:Pt.to,to:Wt.to}),xe.splice.apply(xe,Zn),wt+=Zn.length-3}}return xe}function An(re){var le=re.markedSpans;if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.detachLine(re);re.markedSpans=null}}function it(re,le){if(le){for(var ye=0;ye<le.length;++ye)le[ye].marker.attachLine(re);re.markedSpans=le}}function Dr(re){return re.inclusiveLeft?-1:0}function Wr(re){return re.inclusiveRight?1:0}function pi(re,le){var ye=re.lines.length-le.lines.length;if(ye!=0)return ye;var ve=re.find(),xe=le.find(),Ze=Fn(ve.from,xe.from)||Dr(re)-Dr(le);if(Ze)return-Ze;var dt=Fn(ve.to,xe.to)||Wr(re)-Wr(le);return dt||le.id-re.id}function hi(re,le){var ye=Qn&&re.markedSpans,ve;if(ye)for(var xe=void 0,Ze=0;Ze<ye.length;++Ze)xe=ye[Ze],xe.marker.collapsed&&(le?xe.from:xe.to)==null&&(!ve||pi(ve,xe.marker)<0)&&(ve=xe.marker);return ve}function ai(re){return hi(re,!0)}function mr(re){return hi(re,!1)}function ht(re,le){var ye=Qn&&re.markedSpans,ve;if(ye)for(var xe=0;xe<ye.length;++xe){var Ze=ye[xe];Ze.marker.collapsed&&(Ze.from==null||Ze.from<le)&&(Ze.to==null||Ze.to>le)&&(!ve||pi(ve,Ze.marker)<0)&&(ve=Ze.marker)}return ve}function wn(re,le,ye,ve,xe){var Ze=Xr(re,le),dt=Qn&&Ze.markedSpans;if(dt)for(var Pt=0;Pt<dt.length;++Pt){var wt=dt[Pt];if(wt.marker.collapsed){var Wt=wt.marker.find(0),Zn=Fn(Wt.from,ye)||Dr(wt.marker)-Dr(xe),rn=Fn(Wt.to,ve)||Wr(wt.marker)-Wr(xe);if(!(Zn>=0&&rn<=0||Zn<=0&&rn>=0)&&(Zn<=0&&(wt.marker.inclusiveRight&&xe.inclusiveLeft?Fn(Wt.to,ye)>=0:Fn(Wt.to,ye)>0)||Zn>=0&&(wt.marker.inclusiveRight&&xe.inclusiveLeft?Fn(Wt.from,ve)<=0:Fn(Wt.from,ve)<0)))return!0}}}function Pn(re){for(var le;le=ai(re);)re=le.find(-1,!0).line;return re}function Gn(re){for(var le;le=mr(re);)re=le.find(1,!0).line;return re}function gn(re){for(var le,ye;le=mr(re);)re=le.find(1,!0).line,(ye||(ye=[])).push(re);return ye}function $n(re,le){var ye=Xr(re,le),ve=Pn(ye);return ye==ve?le:Lt(ve)}function Yn(re,le){if(le>re.lastLine())return le;var ye=Xr(re,le),ve;if(!an(re,ye))return le;for(;ve=mr(ye);)ye=ve.find(1,!0).line;return Lt(ye)+1}function an(re,le){var ye=Qn&&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&&cr(re,le,ve))return!0}}}function cr(re,le,ye){if(ye.to==null){var ve=ye.marker.find(1,!0);return cr(re,ve.line,Zi(ve.line.markedSpans,ye.marker))}if(ye.marker.inclusiveRight&&ye.to==le.text.length)return!0;for(var xe=void 0,Ze=0;Ze<le.markedSpans.length;++Ze)if(xe=le.markedSpans[Ze],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==ye.to&&(xe.to==null||xe.to!=ye.from)&&(xe.marker.inclusiveLeft||ye.marker.inclusiveRight)&&cr(re,le,xe))return!0}function Vr(re){re=Pn(re);for(var le=0,ye=re.parent,ve=0;ve<ye.lines.length;++ve){var xe=ye.lines[ve];if(xe==re)break;le+=xe.height}for(var Ze=ye.parent;Ze;ye=Ze,Ze=ye.parent)for(var dt=0;dt<Ze.children.length;++dt){var Pt=Ze.children[dt];if(Pt==ye)break;le+=Pt.height}return le}function Ni(re){if(re.height==0)return 0;for(var le=re.text.length,ye,ve=re;ye=ai(ve);){var xe=ye.find(0,!0);ve=xe.from.line,le+=xe.from.ch-xe.to.ch}for(ve=re;ye=mr(ve);){var Ze=ye.find(0,!0);le-=ve.text.length-Ze.from.ch,ve=Ze.to.line,le+=ve.text.length-Ze.to.ch}return le}function si(re){var le=re.display,ye=re.doc;le.maxLine=Xr(ye,ye.first),le.maxLineLength=Ni(le.maxLine),le.maxLineChanged=!0,ye.iter(function(ve){var xe=Ni(ve);xe>le.maxLineLength&&(le.maxLineLength=xe,le.maxLine=ve)})}var Si=function(re,le,ye){this.text=re,it(this,le),this.height=ye?ye(this):1};Si.prototype.lineNo=function(){return Lt(this)},Et(Si);function Ri(re,le,ye,ve){re.text=le,re.stateAfter&&(re.stateAfter=null),re.styles&&(re.styles=null),re.order!=null&&(re.order=null),An(re),it(re,ye);var xe=ve?ve(re):1;xe!=re.height&&Fr(re,xe)}function _i(re){re.parent=null,An(re)}var ao={},wo={};function Ho(re,le){if(!re||/^\s*$/.test(re))return null;var ye=le.addModeClass?wo:ao;return ye[re]||(ye[re]=re.replace(/\S+/g,"cm-$&"))}function In(re,le){var ye=gt("span",null,null,Ge?"padding-right: .1px":null),ve={pre:gt("pre",[ye],"CodeMirror-line"),content:ye,col:0,pos:0,cm:re,trailingSpace:!1,splitSpaces:re.getOption("lineWrapping")};le.measure={};for(var xe=0;xe<=(le.rest?le.rest.length:0);xe++){var Ze=xe?le.rest[xe-1]:le.line,dt=void 0;ve.pos=0,ve.addToken=po,jr(re.display.measure)&&(dt=En(Ze,re.doc.direction))&&(ve.addToken=Oi(ve.addToken,dt)),ve.map=[];var Pt=le!=re.display.externalMeasured&&Lt(Ze);Wo(Ze,ve,Ci(re,Ze,Pt)),Ze.styleClasses&&(Ze.styleClasses.bgClass&&(ve.bgClass=zt(Ze.styleClasses.bgClass,ve.bgClass||"")),Ze.styleClasses.textClass&&(ve.textClass=zt(Ze.styleClasses.textClass,ve.textClass||""))),ve.map.length==0&&ve.map.push(0,0,ve.content.appendChild(Kr(re.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(Ge){var wt=ve.content.lastChild;(/\bcm-tab\b/.test(wt.className)||wt.querySelector&&wt.querySelector(".cm-tab"))&&(ve.content.className="cm-tab-wrap-hack")}return en(re,"renderLine",re,le.line,ve.pre),ve.pre.className&&(ve.textClass=zt(ve.pre.className,ve.textClass||"")),ve}function ko(re){var le=st("span","\u2022","cm-invalidchar");return le.title="\\u"+re.charCodeAt(0).toString(16),le.setAttribute("aria-label",le.title),le}function po(re,le,ye,ve,xe,Ze,dt){if(le){var Pt=re.splitSpaces?Yi(le,re.trailingSpace):le,wt=re.cm.state.specialChars,Wt=!1,Zn;if(!wt.test(le))re.col+=le.length,Zn=document.createTextNode(Pt),re.map.push(re.pos,re.pos+le.length,Zn),je&&Te<9&&(Wt=!0),re.pos+=le.length;else{Zn=document.createDocumentFragment();for(var rn=0;;){wt.lastIndex=rn;var Cr=wt.exec(le),yr=Cr?Cr.index-rn:le.length-rn;if(yr){var yi=document.createTextNode(Pt.slice(rn,rn+yr));je&&Te<9?Zn.appendChild(st("span",[yi])):Zn.appendChild(yi),re.map.push(re.pos,re.pos+yr,yi),re.col+=yr,re.pos+=yr}if(!Cr)break;rn+=yr+1;var xi=void 0;if(Cr[0]==" "){var Di=re.cm.options.tabSize,$i=Di-re.col%Di;xi=Zn.appendChild(st("span",Ot($i),"cm-tab")),xi.setAttribute("role","presentation"),xi.setAttribute("cm-text"," "),re.col+=$i}else Cr[0]=="\r"||Cr[0]==`
|
|
|
`?(xi=Zn.appendChild(st("span",Cr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xi.setAttribute("cm-text",Cr[0]),re.col+=1):(xi=re.cm.options.specialCharPlaceholder(Cr[0]),xi.setAttribute("cm-text",Cr[0]),je&&Te<9?Zn.appendChild(st("span",[xi])):Zn.appendChild(xi),re.col+=1);re.map.push(re.pos,re.pos+1,xi),re.pos++}}if(re.trailingSpace=Pt.charCodeAt(le.length-1)==32,ye||ve||xe||Wt||Ze||dt){var yo=ye||"";ve&&(yo+=ve),xe&&(yo+=xe);var lo=st("span",[Zn],yo,Ze);if(dt)for(var Ao in dt)dt.hasOwnProperty(Ao)&&Ao!="style"&&Ao!="class"&&lo.setAttribute(Ao,dt[Ao]);return re.content.appendChild(lo)}re.content.appendChild(Zn)}}function Yi(re,le){if(re.length>1&&!/ /.test(re))return re;for(var ye=le,ve="",xe=0;xe<re.length;xe++){var Ze=re.charAt(xe);Ze==" "&&ye&&(xe==re.length-1||re.charCodeAt(xe+1)==32)&&(Ze="\xA0"),ve+=Ze,ye=Ze==" "}return ve}function Oi(re,le){return function(ye,ve,xe,Ze,dt,Pt,wt){xe=xe?xe+" cm-force-border":"cm-force-border";for(var Wt=ye.pos,Zn=Wt+ve.length;;){for(var rn=void 0,Cr=0;Cr<le.length&&(rn=le[Cr],!(rn.to>Wt&&rn.from<=Wt));Cr++);if(rn.to>=Zn)return re(ye,ve,xe,Ze,dt,Pt,wt);re(ye,ve.slice(0,rn.to-Wt),xe,Ze,null,Pt,wt),Ze=null,ve=ve.slice(rn.to-Wt),Wt=rn.to}}}function Oo(re,le,ye,ve){var xe=!ve&&ye.widgetNode;xe&&re.map.push(re.pos,re.pos+le,xe),!ve&&re.cm.display.input.needsContentAttribute&&(xe||(xe=re.content.appendChild(document.createElement("span"))),xe.setAttribute("cm-marker",ye.id)),xe&&(re.cm.display.input.setUneditable(xe),re.content.appendChild(xe)),re.pos+=le,re.trailingSpace=!1}function Wo(re,le,ye){var ve=re.markedSpans,xe=re.text,Ze=0;if(!ve){for(var dt=1;dt<ye.length;dt+=2)le.addToken(le,xe.slice(Ze,Ze=ye[dt]),Ho(ye[dt+1],le.cm.options));return}for(var Pt=xe.length,wt=0,Wt=1,Zn="",rn,Cr,yr=0,yi,xi,Di,$i,yo;;){if(yr==wt){yi=xi=Di=Cr="",yo=null,$i=null,yr=1/0;for(var lo=[],Ao=void 0,Qo=0;Qo<ve.length;++Qo){var uo=ve[Qo],ya=uo.marker;if(ya.type=="bookmark"&&uo.from==wt&&ya.widgetNode)lo.push(ya);else if(uo.from<=wt&&(uo.to==null||uo.to>wt||ya.collapsed&&uo.to==wt&&uo.from==wt)){if(uo.to!=null&&uo.to!=wt&&yr>uo.to&&(yr=uo.to,xi=""),ya.className&&(yi+=" "+ya.className),ya.css&&(Cr=(Cr?Cr+";":"")+ya.css),ya.startStyle&&uo.from==wt&&(Di+=" "+ya.startStyle),ya.endStyle&&uo.to==yr&&(Ao||(Ao=[])).push(ya.endStyle,uo.to),ya.title&&((yo||(yo={})).title=ya.title),ya.attributes)for(var Ts in ya.attributes)(yo||(yo={}))[Ts]=ya.attributes[Ts];ya.collapsed&&(!$i||pi($i.marker,ya)<0)&&($i=uo)}else uo.from>wt&&yr>uo.from&&(yr=uo.from)}if(Ao)for(var Cl=0;Cl<Ao.length;Cl+=2)Ao[Cl+1]==yr&&(xi+=" "+Ao[Cl]);if(!$i||$i.from==wt)for(var Bs=0;Bs<lo.length;++Bs)Oo(le,0,lo[Bs]);if($i&&($i.from||0)==wt){if(Oo(le,($i.to==null?Pt+1:$i.to)-wt,$i.marker,$i.from==null),$i.to==null)return;$i.to==wt&&($i=!1)}}if(wt>=Pt)break;for(var Tu=Math.min(Pt,yr);;){if(Zn){var eu=wt+Zn.length;if(!$i){var sl=eu>Tu?Zn.slice(0,Tu-wt):Zn;le.addToken(le,sl,rn?rn+yi:yi,Di,wt+sl.length==yr?xi:"",Cr,yo)}if(eu>=Tu){Zn=Zn.slice(Tu-wt),wt=Tu;break}wt=eu,Di=""}Zn=xe.slice(Ze,Ze=ye[Wt++]),rn=Ho(ye[Wt++],le.cm.options)}}}function jn(re,le,ye){this.line=le,this.rest=gn(le),this.size=this.rest?Lt(Nn(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=an(re,le)}function vo(re,le,ye){for(var ve=[],xe,Ze=le;Ze<ye;Ze=xe){var dt=new jn(re.doc,Xr(re.doc,Ze),Ze);xe=Ze+dt.size,ve.push(dt)}return ve}var ia=null;function za(re){ia?ia.ops.push(re):re.ownsGroup=ia={ops:[re],delayedCallbacks:[]}}function hs(re){var le=re.delayedCallbacks,ye=0;do{for(;ye<le.length;ye++)le[ye].call(null);for(var ve=0;ve<re.ops.length;ve++){var xe=re.ops[ve];if(xe.cursorActivityHandlers)for(;xe.cursorActivityCalled<xe.cursorActivityHandlers.length;)xe.cursorActivityHandlers[xe.cursorActivityCalled++].call(null,xe.cm)}}while(ye<le.length)}function il(re,le){var ye=re.ownsGroup;if(ye)try{hs(ye)}finally{ia=null,le(ye)}}var Ls=null;function no(re,le){var ye=Tn(re,le);if(ye.length){var ve=Array.prototype.slice.call(arguments,2),xe;ia?xe=ia.delayedCallbacks:Ls?xe=Ls:(xe=Ls=[],setTimeout(Ra,0));for(var Ze=function(Pt){xe.push(function(){return ye[Pt].apply(null,ve)})},dt=0;dt<ye.length;++dt)Ze(dt)}}function Ra(){var re=Ls;Ls=null;for(var le=0;le<re.length;++le)re[le]()}function Ma(re,le,ye,ve){for(var xe=0;xe<le.changes.length;xe++){var Ze=le.changes[xe];Ze=="text"?fi(re,le):Ze=="gutter"?ho(re,le,ye,ve):Ze=="class"?Qi(re,le):Ze=="widget"&&Io(re,le,ve)}le.changes=null}function ts(re){return re.node==re.text&&(re.node=st("div",null,null,"position: relative"),re.text.parentNode&&re.text.parentNode.replaceChild(re.node,re.text),re.node.appendChild(re.text),je&&Te<8&&(re.node.style.zIndex=2)),re.node}function Oa(re,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=ts(le);le.background=ve.insertBefore(st("div",null,ye),ve.firstChild),re.display.input.setUneditable(le.background)}}function _a(re,le){var ye=re.display.externalMeasured;return ye&&ye.line==le.line?(re.display.externalMeasured=null,le.measure=ye.measure,ye.built):In(re,le)}function fi(re,le){var ye=le.text.className,ve=_a(re,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,Qi(re,le)):ye&&(le.text.className=ye)}function Qi(re,le){Oa(re,le),le.line.wrapClass?ts(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 ho(re,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=ts(le);le.gutterBackground=st("div",null,"CodeMirror-gutter-background "+le.line.gutterClass,"left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px; width: "+ve.gutterTotalWidth+"px"),re.display.input.setUneditable(le.gutterBackground),xe.insertBefore(le.gutterBackground,le.text)}var Ze=le.line.gutterMarkers;if(re.options.lineNumbers||Ze){var dt=ts(le),Pt=le.gutter=st("div",null,"CodeMirror-gutter-wrapper","left: "+(re.options.fixedGutter?ve.fixedPos:-ve.gutterTotalWidth)+"px");if(re.display.input.setUneditable(Pt),dt.insertBefore(Pt,le.text),le.line.gutterClass&&(Pt.className+=" "+le.line.gutterClass),re.options.lineNumbers&&(!Ze||!Ze["CodeMirror-linenumbers"])&&(le.lineNumber=Pt.appendChild(st("div",Ir(re.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ve.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+re.display.lineNumInnerWidth+"px"))),Ze)for(var wt=0;wt<re.display.gutterSpecs.length;++wt){var Wt=re.display.gutterSpecs[wt].className,Zn=Ze.hasOwnProperty(Wt)&&Ze[Wt];Zn&&Pt.appendChild(st("div",[Zn],"CodeMirror-gutter-elt","left: "+ve.gutterLeft[Wt]+"px; width: "+ve.gutterWidth[Wt]+"px"))}}}function Io(re,le,ye){le.alignable&&(le.alignable=null);for(var ve=Ie("CodeMirror-linewidget"),xe=le.node.firstChild,Ze=void 0;xe;xe=Ze)Ze=xe.nextSibling,ve.test(xe.className)&&le.node.removeChild(xe);sa(re,le,ye)}function Do(re,le,ye,ve){var xe=_a(re,le);return le.text=le.node=xe.pre,xe.bgClass&&(le.bgClass=xe.bgClass),xe.textClass&&(le.textClass=xe.textClass),Qi(re,le),ho(re,le,ye,ve),sa(re,le,ve),le.node}function sa(re,le,ye){if(Ji(re,le.line,le,ye,!0),le.rest)for(var ve=0;ve<le.rest.length;ve++)Ji(re,le.rest[ve],le,ye,!1)}function Ji(re,le,ye,ve,xe){if(le.widgets)for(var Ze=ts(ye),dt=0,Pt=le.widgets;dt<Pt.length;++dt){var wt=Pt[dt],Wt=st("div",[wt.node],"CodeMirror-linewidget"+(wt.className?" "+wt.className:""));wt.handleMouseEvents||Wt.setAttribute("cm-ignore-events","true"),Ss(wt,Wt,ye,ve),re.display.input.setUneditable(Wt),xe&&wt.above?Ze.insertBefore(Wt,ye.gutter||ye.text):Ze.appendChild(Wt),no(wt,"redraw")}}function Ss(re,le,ye,ve){if(re.noHScroll){(ye.alignable||(ye.alignable=[])).push(le);var xe=ve.wrapperWidth;le.style.left=ve.fixedPos+"px",re.coverGutter||(xe-=ve.gutterTotalWidth,le.style.paddingLeft=ve.gutterTotalWidth+"px"),le.style.width=xe+"px"}re.coverGutter&&(le.style.zIndex=5,le.style.position="relative",re.noHScroll||(le.style.marginLeft=-ve.gutterTotalWidth+"px"))}function pa(re){if(re.height!=null)return re.height;var le=re.doc.cm;if(!le)return 0;if(!mt(document.body,re.node)){var ye="position: relative;";re.coverGutter&&(ye+="margin-left: -"+le.display.gutters.offsetWidth+"px;"),re.noHScroll&&(ye+="width: "+le.display.wrapper.clientWidth+"px;"),Je(le.display.measure,st("div",[re.node],null,ye))}return re.height=re.node.parentNode.offsetHeight}function Ga(re,le){for(var ye=ni(le);ye!=re.wrapper;ye=ye.parentNode)if(!ye||ye.nodeType==1&&ye.getAttribute("cm-ignore-events")=="true"||ye.parentNode==re.sizer&&ye!=re.mover)return!0}function Fo(re){return re.lineSpace.offsetTop}function ga(re){return re.mover.offsetHeight-re.lineSpace.offsetHeight}function Hs(re){if(re.cachedPaddingH)return re.cachedPaddingH;var le=Je(re.measure,st("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)&&(re.cachedPaddingH=ve),ve}function da(re){return qt-re.display.nativeBarWidth}function Rs(re){return re.display.scroller.clientWidth-da(re)-re.display.barWidth}function ol(re){return re.display.scroller.clientHeight-da(re)-re.display.barHeight}function Xs(re,le,ye){var ve=re.options.lineWrapping,xe=ve&&Rs(re);if(!le.measure.heights||ve&&le.measure.width!=xe){var Ze=le.measure.heights=[];if(ve){le.measure.width=xe;for(var dt=le.text.firstChild.getClientRects(),Pt=0;Pt<dt.length-1;Pt++){var wt=dt[Pt],Wt=dt[Pt+1];Math.abs(wt.bottom-Wt.bottom)>2&&Ze.push((wt.bottom+Wt.top)/2-ye.top)}}Ze.push(ye.bottom-ye.top)}}function $a(re,le,ye){if(re.line==le)return{map:re.measure.map,cache:re.measure.cache};for(var ve=0;ve<re.rest.length;ve++)if(re.rest[ve]==le)return{map:re.measure.maps[ve],cache:re.measure.caches[ve]};for(var xe=0;xe<re.rest.length;xe++)if(Lt(re.rest[xe])>ye)return{map:re.measure.maps[xe],cache:re.measure.caches[xe],before:!0}}function Kl(re,le){le=Pn(le);var ye=Lt(le),ve=re.display.externalMeasured=new jn(re.doc,le,ye);ve.lineN=ye;var xe=ve.built=In(re,ve);return ve.text=xe.pre,Je(re.display.lineMeasure,xe.pre),ve}function nc(re,le,ye,ve){return ll(re,Pl(re,le),ye,ve)}function es(re,le){if(le>=re.display.viewFrom&&le<re.display.viewTo)return re.display.view[Js(re,le)];var ye=re.display.externalMeasured;if(ye&&le>=ye.lineN&&le<ye.lineN+ye.size)return ye}function Pl(re,le){var ye=Lt(le),ve=es(re,ye);ve&&!ve.text?ve=null:ve&&ve.changes&&(Ma(re,ve,ye,Fl(re)),re.curOp.forceUpdate=!0),ve||(ve=Kl(re,le));var xe=$a(ve,le,ye);return{line:le,view:ve,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function ll(re,le,ye,ve,xe){le.before&&(ye=-1);var Ze=ye+(ve||""),dt;return le.cache.hasOwnProperty(Ze)?dt=le.cache[Ze]:(le.rect||(le.rect=le.view.text.getBoundingClientRect()),le.hasHeights||(Xs(re,le.view,le.rect),le.hasHeights=!0),dt=ns(re,le,ye,ve),dt.bogus||(le.cache[Ze]=dt)),{left:dt.left,right:dt.right,top:xe?dt.rtop:dt.top,bottom:xe?dt.rbottom:dt.bottom}}var ul={left:0,right:0,top:0,bottom:0};function rc(re,le,ye){for(var ve,xe,Ze,dt,Pt,wt,Wt=0;Wt<re.length;Wt+=3)if(Pt=re[Wt],wt=re[Wt+1],le<Pt?(xe=0,Ze=1,dt="left"):le<wt?(xe=le-Pt,Ze=xe+1):(Wt==re.length-3||le==wt&&re[Wt+3]>le)&&(Ze=wt-Pt,xe=Ze-1,le>=wt&&(dt="right")),xe!=null){if(ve=re[Wt+2],Pt==wt&&ye==(ve.insertLeft?"left":"right")&&(dt=ye),ye=="left"&&xe==0)for(;Wt&&re[Wt-2]==re[Wt-3]&&re[Wt-1].insertLeft;)ve=re[(Wt-=3)+2],dt="left";if(ye=="right"&&xe==wt-Pt)for(;Wt<re.length-3&&re[Wt+3]==re[Wt+4]&&!re[Wt+5].insertLeft;)ve=re[(Wt+=3)+2],dt="right";break}return{node:ve,start:xe,end:Ze,collapse:dt,coverStart:Pt,coverEnd:wt}}function yc(re,le){var ye=ul;if(le=="left")for(var ve=0;ve<re.length&&(ye=re[ve]).left==ye.right;ve++);else for(var xe=re.length-1;xe>=0&&(ye=re[xe]).left==ye.right;xe--);return ye}function ns(re,le,ye,ve){var xe=rc(le.map,ye,ve),Ze=xe.node,dt=xe.start,Pt=xe.end,wt=xe.collapse,Wt;if(Ze.nodeType==3){for(var Zn=0;Zn<4;Zn++){for(;dt&&bn(le.line.text.charAt(xe.coverStart+dt));)--dt;for(;xe.coverStart+Pt<xe.coverEnd&&bn(le.line.text.charAt(xe.coverStart+Pt));)++Pt;if(je&&Te<9&&dt==0&&Pt==xe.coverEnd-xe.coverStart?Wt=Ze.parentNode.getBoundingClientRect():Wt=yc(rt(Ze,dt,Pt).getClientRects(),ve),Wt.left||Wt.right||dt==0)break;Pt=dt,dt=dt-1,wt="right"}je&&Te<11&&(Wt=ic(re.display.measure,Wt))}else{dt>0&&(wt=ve="right");var rn;re.options.lineWrapping&&(rn=Ze.getClientRects()).length>1?Wt=rn[ve=="right"?rn.length-1:0]:Wt=Ze.getBoundingClientRect()}if(je&&Te<9&&!dt&&(!Wt||!Wt.left&&!Wt.right)){var Cr=Ze.parentNode.getClientRects()[0];Cr?Wt={left:Cr.left,right:Cr.left+Al(re.display),top:Cr.top,bottom:Cr.bottom}:Wt=ul}for(var yr=Wt.top-le.rect.top,yi=Wt.bottom-le.rect.top,xi=(yr+yi)/2,Di=le.view.measure.heights,$i=0;$i<Di.length-1&&!(xi<Di[$i]);$i++);var yo=$i?Di[$i-1]:0,lo=Di[$i],Ao={left:(wt=="right"?Wt.right:Wt.left)-le.rect.left,right:(wt=="left"?Wt.left:Wt.right)-le.rect.left,top:yo,bottom:lo};return!Wt.left&&!Wt.right&&(Ao.bogus=!0),re.options.singleCursorHeightPerLine||(Ao.rtop=yr,Ao.rbottom=yi),Ao}function ic(re,le){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!or(re))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 oc(re){if(re.measure&&(re.measure.cache={},re.measure.heights=null,re.rest))for(var le=0;le<re.rest.length;le++)re.measure.caches[le]={}}function Mu(re){re.display.externalMeasure=null,nt(re.display.lineMeasure);for(var le=0;le<re.display.view.length;le++)oc(re.display.view[le])}function Ou(re){Mu(re),re.display.cachedCharWidth=re.display.cachedTextHeight=re.display.cachedPaddingH=null,re.options.lineWrapping||(re.display.maxLineChanged=!0),re.display.lineNumChars=null}function Ms(){return Ke&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qs(){return Ke&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fs(re){var le=0;if(re.widgets)for(var ye=0;ye<re.widgets.length;++ye)re.widgets[ye].above&&(le+=pa(re.widgets[ye]));return le}function ks(re,le,ye,ve,xe){if(!xe){var Ze=fs(le);ye.top+=Ze,ye.bottom+=Ze}if(ve=="line")return ye;ve||(ve="local");var dt=Vr(le);if(ve=="local"?dt+=Fo(re.display):dt-=re.display.viewOffset,ve=="page"||ve=="window"){var Pt=re.display.lineSpace.getBoundingClientRect();dt+=Pt.top+(ve=="window"?0:Qs());var wt=Pt.left+(ve=="window"?0:Ms());ye.left+=wt,ye.right+=wt}return ye.top+=dt,ye.bottom+=dt,ye}function yu(re,le,ye){if(ye=="div")return le;var ve=le.left,xe=le.top;if(ye=="page")ve-=Ms(),xe-=Qs();else if(ye=="local"||!ye){var Ze=re.display.sizer.getBoundingClientRect();ve+=Ze.left,xe+=Ze.top}var dt=re.display.lineSpace.getBoundingClientRect();return{left:ve-dt.left,top:xe-dt.top}}function zs(re,le,ye,ve,xe){return ve||(ve=Xr(re.doc,le.line)),ks(re,ve,nc(re,ve,le.ch,xe),ye)}function wa(re,le,ye,ve,xe,Ze){ve=ve||Xr(re.doc,le.line),xe||(xe=Pl(re,ve));function dt(yi,xi){var Di=ll(re,xe,yi,xi?"right":"left",Ze);return xi?Di.left=Di.right:Di.right=Di.left,ks(re,ve,Di,ye)}var Pt=En(ve,re.doc.direction),wt=le.ch,Wt=le.sticky;if(wt>=ve.text.length?(wt=ve.text.length,Wt="before"):wt<=0&&(wt=0,Wt="after"),!Pt)return dt(Wt=="before"?wt-1:wt,Wt=="before");function Zn(yi,xi,Di){var $i=Pt[xi],yo=$i.level==1;return dt(Di?yi-1:yi,yo!=Di)}var rn=jt(Pt,wt,Wt),Cr=_t,yr=Zn(wt,rn,Wt=="before");return Cr!=null&&(yr.other=Zn(wt,Cr,Wt!="before")),yr}function ma(re,le){var ye=0;le=Wn(re.doc,le),re.options.lineWrapping||(ye=Al(re.display)*le.ch);var ve=Xr(re.doc,le.line),xe=Vr(ve)+Fo(re.display);return{left:ye,right:ye,top:xe,bottom:xe+ve.height}}function Vo(re,le,ye,ve,xe){var Ze=Xt(re,le,ye);return Ze.xRel=xe,ve&&(Ze.outside=ve),Ze}function cs(re,le,ye){var ve=re.doc;if(ye+=re.display.viewOffset,ye<0)return Vo(ve.first,0,null,-1,-1);var xe=cn(ve,ye),Ze=ve.first+ve.size-1;if(xe>Ze)return Vo(ve.first+ve.size-1,Xr(ve,Ze).text.length,null,1,1);le<0&&(le=0);for(var dt=Xr(ve,xe);;){var Pt=Nr(re,dt,xe,le,ye),wt=ht(dt,Pt.ch+(Pt.xRel>0||Pt.outside>0?1:0));if(!wt)return Pt;var Wt=wt.find(1);if(Wt.line==xe)return Wt;dt=Xr(ve,xe=Wt.line)}}function Mi(re,le,ye,ve){ve-=fs(le);var xe=le.text.length,Ze=Bn(function(dt){return ll(re,ye,dt-1).bottom<=ve},xe,0);return xe=Bn(function(dt){return ll(re,ye,dt).top>ve},Ze,xe),{begin:Ze,end:xe}}function ps(re,le,ye,ve){ye||(ye=Pl(re,le));var xe=ks(re,le,ll(re,ye,ve),"line").top;return Mi(re,le,ye,xe)}function tn(re,le,ye,ve){return re.bottom<=ye?!1:re.top>ye?!0:(ve?re.left:re.right)>le}function Nr(re,le,ye,ve,xe){xe-=Vr(le);var Ze=Pl(re,le),dt=fs(le),Pt=0,wt=le.text.length,Wt=!0,Zn=En(le,re.doc.direction);if(Zn){var rn=(re.options.lineWrapping?Su:Tl)(re,le,ye,Ze,Zn,ve,xe);Wt=rn.level!=1,Pt=Wt?rn.from:rn.to-1,wt=Wt?rn.to:rn.from-1}var Cr=null,yr=null,yi=Bn(function(Qo){var uo=ll(re,Ze,Qo);return uo.top+=dt,uo.bottom+=dt,tn(uo,ve,xe,!1)?(uo.top<=xe&&uo.left<=ve&&(Cr=Qo,yr=uo),!0):!1},Pt,wt),xi,Di,$i=!1;if(yr){var yo=ve-yr.left<yr.right-ve,lo=yo==Wt;yi=Cr+(lo?0:1),Di=lo?"after":"before",xi=yo?yr.left:yr.right}else{!Wt&&(yi==wt||yi==Pt)&&yi++,Di=yi==0?"after":yi==le.text.length?"before":ll(re,Ze,yi-(Wt?1:0)).bottom+dt<=xe==Wt?"after":"before";var Ao=wa(re,Xt(ye,yi,Di),"line",le,Ze);xi=Ao.left,$i=xe<Ao.top?-1:xe>=Ao.bottom?1:0}return yi=sn(le.text,yi,1),Vo(ye,yi,Di,$i,ve-xi)}function Tl(re,le,ye,ve,xe,Ze,dt){var Pt=Bn(function(rn){var Cr=xe[rn],yr=Cr.level!=1;return tn(wa(re,Xt(ye,yr?Cr.to:Cr.from,yr?"before":"after"),"line",le,ve),Ze,dt,!0)},0,xe.length-1),wt=xe[Pt];if(Pt>0){var Wt=wt.level!=1,Zn=wa(re,Xt(ye,Wt?wt.from:wt.to,Wt?"after":"before"),"line",le,ve);tn(Zn,Ze,dt,!0)&&Zn.top>dt&&(wt=xe[Pt-1])}return wt}function Su(re,le,ye,ve,xe,Ze,dt){var Pt=Mi(re,le,ve,dt),wt=Pt.begin,Wt=Pt.end;/\s/.test(le.text.charAt(Wt-1))&&Wt--;for(var Zn=null,rn=null,Cr=0;Cr<xe.length;Cr++){var yr=xe[Cr];if(!(yr.from>=Wt||yr.to<=wt)){var yi=yr.level!=1,xi=ll(re,ve,yi?Math.min(Wt,yr.to)-1:Math.max(wt,yr.from)).right,Di=xi<Ze?Ze-xi+1e9:xi-Ze;(!Zn||rn>Di)&&(Zn=yr,rn=Di)}}return Zn||(Zn=xe[xe.length-1]),Zn.from<wt&&(Zn={from:wt,to:Zn.to,level:Zn.level}),Zn.to>Wt&&(Zn={from:Zn.from,to:Wt,level:Zn.level}),Zn}var ja;function rs(re){if(re.cachedTextHeight!=null)return re.cachedTextHeight;if(ja==null){ja=st("pre",null,"CodeMirror-line-like");for(var le=0;le<49;++le)ja.appendChild(document.createTextNode("x")),ja.appendChild(st("br"));ja.appendChild(document.createTextNode("x"))}Je(re.measure,ja);var ye=ja.offsetHeight/50;return ye>3&&(re.cachedTextHeight=ye),nt(re.measure),ye||1}function Al(re){if(re.cachedCharWidth!=null)return re.cachedCharWidth;var le=st("span","xxxxxxxxxx"),ye=st("pre",[le],"CodeMirror-line-like");Je(re.measure,ye);var ve=le.getBoundingClientRect(),xe=(ve.right-ve.left)/10;return xe>2&&(re.cachedCharWidth=xe),xe||10}function Fl(re){for(var le=re.display,ye={},ve={},xe=le.gutters.clientLeft,Ze=le.gutters.firstChild,dt=0;Ze;Ze=Ze.nextSibling,++dt){var Pt=re.display.gutterSpecs[dt].className;ye[Pt]=Ze.offsetLeft+Ze.clientLeft+xe,ve[Pt]=Ze.clientWidth}return{fixedPos:ac(le),gutterTotalWidth:le.gutters.offsetWidth,gutterLeft:ye,gutterWidth:ve,wrapperWidth:le.wrapper.clientWidth}}function ac(re){return re.scroller.getBoundingClientRect().left-re.sizer.getBoundingClientRect().left}function Wa(re){var le=rs(re.display),ye=re.options.lineWrapping,ve=ye&&Math.max(5,re.display.scroller.clientWidth/Al(re.display)-3);return function(xe){if(an(re.doc,xe))return 0;var Ze=0;if(xe.widgets)for(var dt=0;dt<xe.widgets.length;dt++)xe.widgets[dt].height&&(Ze+=xe.widgets[dt].height);return ye?Ze+(Math.ceil(xe.text.length/ve)||1)*le:Ze+le}}function Eo(re){var le=re.doc,ye=Wa(re);le.iter(function(ve){var xe=ye(ve);xe!=ve.height&&Fr(ve,xe)})}function bs(re,le,ye,ve){var xe=re.display;if(!ye&&ni(le).getAttribute("cm-not-content")=="true")return null;var Ze,dt,Pt=xe.lineSpace.getBoundingClientRect();try{Ze=le.clientX-Pt.left,dt=le.clientY-Pt.top}catch(rn){return null}var wt=cs(re,Ze,dt),Wt;if(ve&&wt.xRel>0&&(Wt=Xr(re.doc,wt.line).text).length==wt.ch){var Zn=St(Wt,Wt.length,re.options.tabSize)-Wt.length;wt=Xt(wt.line,Math.max(0,Math.round((Ze-Hs(re.display).left)/Al(re.display))-Zn))}return wt}function Js(re,le){if(le>=re.display.viewTo||(le-=re.display.viewFrom,le<0))return null;for(var ye=re.display.view,ve=0;ve<ye.length;ve++)if(le-=ye[ve].size,le<0)return ve}function ua(re,le,ye,ve){le==null&&(le=re.doc.first),ye==null&&(ye=re.doc.first+re.doc.size),ve||(ve=0);var xe=re.display;if(ve&&ye<xe.viewTo&&(xe.updateLineNumbers==null||xe.updateLineNumbers>le)&&(xe.updateLineNumbers=le),re.curOp.viewChanged=!0,le>=xe.viewTo)Qn&&$n(re.doc,le)<xe.viewTo&&Ya(re);else if(ye<=xe.viewFrom)Qn&&Yn(re.doc,ye+ve)>xe.viewFrom?Ya(re):(xe.viewFrom+=ve,xe.viewTo+=ve);else if(le<=xe.viewFrom&&ye>=xe.viewTo)Ya(re);else if(le<=xe.viewFrom){var Ze=cl(re,ye,ye+ve,1);Ze?(xe.view=xe.view.slice(Ze.index),xe.viewFrom=Ze.lineN,xe.viewTo+=ve):Ya(re)}else if(ye>=xe.viewTo){var dt=cl(re,le,le,-1);dt?(xe.view=xe.view.slice(0,dt.index),xe.viewTo=dt.lineN):Ya(re)}else{var Pt=cl(re,le,le,-1),wt=cl(re,ye,ye+ve,1);Pt&&wt?(xe.view=xe.view.slice(0,Pt.index).concat(vo(re,Pt.lineN,wt.lineN)).concat(xe.view.slice(wt.index)),xe.viewTo+=ve):Ya(re)}var Wt=xe.externalMeasured;Wt&&(ye<Wt.lineN?Wt.lineN+=ve:le<Wt.lineN+Wt.size&&(xe.externalMeasured=null))}function Zo(re,le,ye){re.curOp.viewChanged=!0;var ve=re.display,xe=re.display.externalMeasured;if(xe&&le>=xe.lineN&&le<xe.lineN+xe.size&&(ve.externalMeasured=null),!(le<ve.viewFrom||le>=ve.viewTo)){var Ze=ve.view[Js(re,le)];if(Ze.node!=null){var dt=Ze.changes||(Ze.changes=[]);ct(dt,ye)==-1&&dt.push(ye)}}}function Ya(re){re.display.viewFrom=re.display.viewTo=re.doc.first,re.display.view=[],re.display.viewOffset=0}function cl(re,le,ye,ve){var xe=Js(re,le),Ze,dt=re.display.view;if(!Qn||ye==re.doc.first+re.doc.size)return{index:xe,lineN:ye};for(var Pt=re.display.viewFrom,wt=0;wt<xe;wt++)Pt+=dt[wt].size;if(Pt!=le){if(ve>0){if(xe==dt.length-1)return null;Ze=Pt+dt[xe].size-le,xe++}else Ze=Pt-le;le+=Ze,ye+=Ze}for(;$n(re.doc,ye)!=ye;){if(xe==(ve<0?0:dt.length-1))return null;ye+=ve*dt[xe-(ve<0?1:0)].size,xe+=ve}return{index:xe,lineN:ye}}function Ia(re,le,ye){var ve=re.display,xe=ve.view;xe.length==0||le>=ve.viewTo||ye<=ve.viewFrom?(ve.view=vo(re,le,ye),ve.viewFrom=le):(ve.viewFrom>le?ve.view=vo(re,le,ve.viewFrom).concat(ve.view):ve.viewFrom<le&&(ve.view=ve.view.slice(Js(re,le))),ve.viewFrom=le,ve.viewTo<ye?ve.view=ve.view.concat(vo(re,ve.viewTo,ye)):ve.viewTo>ye&&(ve.view=ve.view.slice(0,Js(re,ye)))),ve.viewTo=ye}function Sl(re){for(var le=re.display.view,ye=0,ve=0;ve<le.length;ve++){var xe=le[ve];!xe.hidden&&(!xe.node||xe.changes)&&++ye}return ye}function Es(re){re.display.input.showSelection(re.display.input.prepareSelection())}function Fu(re,le){le===void 0&&(le=!0);for(var ye=re.doc,ve={},xe=ve.cursors=document.createDocumentFragment(),Ze=ve.selection=document.createDocumentFragment(),dt=0;dt<ye.sel.ranges.length;dt++)if(!(!le&&dt==ye.sel.primIndex)){var Pt=ye.sel.ranges[dt];if(!(Pt.from().line>=re.display.viewTo||Pt.to().line<re.display.viewFrom)){var wt=Pt.empty();(wt||re.options.showCursorWhenSelecting)&&va(re,Pt.head,xe),wt||oa(re,Pt,Ze)}}return ve}function va(re,le,ye){var ve=wa(re,le,"div",null,null,!re.options.singleCursorHeightPerLine),xe=ye.appendChild(st("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)*re.options.cursorHeight+"px",ve.other){var Ze=ye.appendChild(st("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ze.style.display="",Ze.style.left=ve.other.left+"px",Ze.style.top=ve.other.top+"px",Ze.style.height=(ve.other.bottom-ve.other.top)*.85+"px"}}function Os(re,le){return re.top-le.top||re.left-le.left}function oa(re,le,ye){var ve=re.display,xe=re.doc,Ze=document.createDocumentFragment(),dt=Hs(re.display),Pt=dt.left,wt=Math.max(ve.sizerWidth,Rs(re)-ve.sizer.offsetLeft)-dt.right,Wt=xe.direction=="ltr";function Zn(lo,Ao,Qo,uo){Ao<0&&(Ao=0),Ao=Math.round(Ao),uo=Math.round(uo),Ze.appendChild(st("div",null,"CodeMirror-selected","position: absolute; left: "+lo+`px;
|
|
|
top: `+Ao+"px; width: "+(Qo==null?wt-lo:Qo)+`px;
|
|
|
height: `+(uo-Ao)+"px"))}function rn(lo,Ao,Qo){var uo=Xr(xe,lo),ya=uo.text.length,Ts,Cl;function Bs(sl,Gu){return zs(re,Xt(lo,sl),"div",uo,Gu)}function Tu(sl,Gu,Gl){var tl=ps(re,uo,null,sl),Ba=Gu=="ltr"==(Gl=="after")?"left":"right",Vs=Gl=="after"?tl.begin:tl.end-(/\s/.test(uo.text.charAt(tl.end-1))?2:1);return Bs(Vs,Ba)[Ba]}var eu=En(uo,xe.direction);return It(eu,Ao||0,Qo==null?ya:Qo,function(sl,Gu,Gl,tl){var Ba=Gl=="ltr",Vs=Bs(sl,Ba?"left":"right"),Rl=Bs(Gu-1,Ba?"right":"left"),jl=Ao==null&&sl==0,xc=Qo==null&&Gu==ya,Ds=tl==0,we=!eu||tl==eu.length-1;if(Rl.top-Vs.top<=3){var Ne=(Wt?jl:xc)&&Ds,Ve=(Wt?xc:jl)&&we,ut=Ne?Pt:(Ba?Vs:Rl).left,At=Ve?wt:(Ba?Rl:Vs).right;Zn(ut,Vs.top,At-ut,Vs.bottom)}else{var Nt,Ut,Zt,Un;Ba?(Nt=Wt&&jl&&Ds?Pt:Vs.left,Ut=Wt?wt:Tu(sl,Gl,"before"),Zt=Wt?Pt:Tu(Gu,Gl,"after"),Un=Wt&&xc&&we?wt:Rl.right):(Nt=Wt?Tu(sl,Gl,"before"):Pt,Ut=!Wt&&jl&&Ds?wt:Vs.right,Zt=!Wt&&xc&&we?Pt:Rl.left,Un=Wt?Tu(Gu,Gl,"after"):wt),Zn(Nt,Vs.top,Ut-Nt,Vs.bottom),Vs.bottom<Rl.top&&Zn(Pt,Vs.bottom,null,Rl.top),Zn(Zt,Rl.top,Un-Zt,Rl.bottom)}(!Ts||Os(Vs,Ts)<0)&&(Ts=Vs),Os(Rl,Ts)<0&&(Ts=Rl),(!Cl||Os(Vs,Cl)<0)&&(Cl=Vs),Os(Rl,Cl)<0&&(Cl=Rl)}),{start:Ts,end:Cl}}var Cr=le.from(),yr=le.to();if(Cr.line==yr.line)rn(Cr.line,Cr.ch,yr.ch);else{var yi=Xr(xe,Cr.line),xi=Xr(xe,yr.line),Di=Pn(yi)==Pn(xi),$i=rn(Cr.line,Cr.ch,Di?yi.text.length+1:null).end,yo=rn(yr.line,Di?0:null,yr.ch).start;Di&&($i.top<yo.top-2?(Zn($i.right,$i.top,null,$i.bottom),Zn(Pt,yo.top,yo.left,yo.bottom)):Zn($i.right,$i.top,yo.left-$i.right,$i.bottom)),$i.bottom<yo.top&&Zn(Pt,$i.bottom,null,yo.top)}ye.appendChild(Ze)}function Ta(re){if(re.state.focused){var le=re.display;clearInterval(le.blinker);var ye=!0;le.cursorDiv.style.visibility="",re.options.cursorBlinkRate>0?le.blinker=setInterval(function(){re.hasFocus()||sc(re),le.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},re.options.cursorBlinkRate):re.options.cursorBlinkRate<0&&(le.cursorDiv.style.visibility="hidden")}}function La(re){re.state.focused||(re.display.input.focus(),na(re))}function Za(re){re.state.delayingBlurEvent=!0,setTimeout(function(){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1,sc(re))},100)}function na(re,le){re.state.delayingBlurEvent&&(re.state.delayingBlurEvent=!1),re.options.readOnly!="nocursor"&&(re.state.focused||(en(re,"focus",re,le),re.state.focused=!0,Tt(re.display.wrapper,"CodeMirror-focused"),!re.curOp&&re.display.selForContextMenu!=re.doc.sel&&(re.display.input.reset(),Ge&&setTimeout(function(){return re.display.input.reset(!0)},20)),re.display.input.receivedFocus()),Ta(re))}function sc(re,le){re.state.delayingBlurEvent||(re.state.focused&&(en(re,"blur",re,le),re.state.focused=!1,Xe(re.display.wrapper,"CodeMirror-focused")),clearInterval(re.display.blinker),setTimeout(function(){re.state.focused||(re.display.shift=!1)},150))}function bo(re){for(var le=re.display,ye=le.lineDiv.offsetTop,ve=0;ve<le.view.length;ve++){var xe=le.view[ve],Ze=re.options.lineWrapping,dt=void 0,Pt=0;if(!xe.hidden){if(je&&Te<8){var wt=xe.node.offsetTop+xe.node.offsetHeight;dt=wt-ye,ye=wt}else{var Wt=xe.node.getBoundingClientRect();dt=Wt.bottom-Wt.top,!Ze&&xe.text.firstChild&&(Pt=xe.text.firstChild.getBoundingClientRect().right-Wt.left-1)}var Zn=xe.line.height-dt;if((Zn>.005||Zn<-.005)&&(Fr(xe.line,dt),Dc(xe.line),xe.rest))for(var rn=0;rn<xe.rest.length;rn++)Dc(xe.rest[rn]);if(Pt>re.display.sizerWidth){var Cr=Math.ceil(Pt/Al(re.display));Cr>re.display.maxLineLength&&(re.display.maxLineLength=Cr,re.display.maxLine=xe.line,re.display.maxLineChanged=!0)}}}}function Dc(re){if(re.widgets)for(var le=0;le<re.widgets.length;++le){var ye=re.widgets[le],ve=ye.node.parentNode;ve&&(ye.height=ve.offsetHeight)}}function aa(re,le,ye){var ve=ye&&ye.top!=null?Math.max(0,ye.top):re.scroller.scrollTop;ve=Math.floor(ve-Fo(re));var xe=ye&&ye.bottom!=null?ye.bottom:ve+re.wrapper.clientHeight,Ze=cn(le,ve),dt=cn(le,xe);if(ye&&ye.ensure){var Pt=ye.ensure.from.line,wt=ye.ensure.to.line;Pt<Ze?(Ze=Pt,dt=cn(le,Vr(Xr(le,Pt))+re.wrapper.clientHeight)):Math.min(wt,le.lastLine())>=dt&&(Ze=cn(le,Vr(Xr(le,wt))-re.wrapper.clientHeight),dt=wt)}return{from:Ze,to:Math.max(dt,Ze+1)}}function Sc(re,le){if(!vn(re,"scrollCursorIntoView")){var ye=re.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&&!Mt){var Ze=st("div","\u200B",null,`position: absolute;
|
|
|
top: `+(le.top-ye.viewOffset-Fo(re.display))+`px;
|
|
|
height: `+(le.bottom-le.top+da(re)+ye.barHeight)+`px;
|
|
|
left: `+le.left+"px; width: "+Math.max(2,le.right-le.left)+"px;");re.display.lineSpace.appendChild(Ze),Ze.scrollIntoView(xe),re.display.lineSpace.removeChild(Ze)}}}function Bu(re,le,ye,ve){ve==null&&(ve=0);var xe;!re.options.lineWrapping&&le==ye&&(le=le.ch?Xt(le.line,le.sticky=="before"?le.ch-1:le.ch,"after"):le,ye=le.sticky=="before"?Xt(le.line,le.ch+1,"before"):le);for(var Ze=0;Ze<5;Ze++){var dt=!1,Pt=wa(re,le),wt=!ye||ye==le?Pt:wa(re,ye);xe={left:Math.min(Pt.left,wt.left),top:Math.min(Pt.top,wt.top)-ve,right:Math.max(Pt.left,wt.left),bottom:Math.max(Pt.bottom,wt.bottom)+ve};var Wt=Rc(re,xe),Zn=re.doc.scrollTop,rn=re.doc.scrollLeft;if(Wt.scrollTop!=null&&(Nl(re,Wt.scrollTop),Math.abs(re.doc.scrollTop-Zn)>1&&(dt=!0)),Wt.scrollLeft!=null&&(bl(re,Wt.scrollLeft),Math.abs(re.doc.scrollLeft-rn)>1&&(dt=!0)),!dt)break}return xe}function bu(re,le){var ye=Rc(re,le);ye.scrollTop!=null&&Nl(re,ye.scrollTop),ye.scrollLeft!=null&&bl(re,ye.scrollLeft)}function Rc(re,le){var ye=re.display,ve=rs(re.display);le.top<0&&(le.top=0);var xe=re.curOp&&re.curOp.scrollTop!=null?re.curOp.scrollTop:ye.scroller.scrollTop,Ze=ol(re),dt={};le.bottom-le.top>Ze&&(le.bottom=le.top+Ze);var Pt=re.doc.height+ga(ye),wt=le.top<ve,Wt=le.bottom>Pt-ve;if(le.top<xe)dt.scrollTop=wt?0:le.top;else if(le.bottom>xe+Ze){var Zn=Math.min(le.top,(Wt?Pt:le.bottom)-Ze);Zn!=xe&&(dt.scrollTop=Zn)}var rn=re.options.fixedGutter?0:ye.gutters.offsetWidth,Cr=re.curOp&&re.curOp.scrollLeft!=null?re.curOp.scrollLeft:ye.scroller.scrollLeft-rn,yr=Rs(re)-ye.gutters.offsetWidth,yi=le.right-le.left>yr;return yi&&(le.right=le.left+yr),le.left<10?dt.scrollLeft=0:le.left<Cr?dt.scrollLeft=Math.max(0,le.left+rn-(yi?0:10)):le.right>yr+Cr-3&&(dt.scrollLeft=le.right+(yi?0:10)-yr),dt}function Xc(re,le){le!=null&&(Gs(re),re.curOp.scrollTop=(re.curOp.scrollTop==null?re.doc.scrollTop:re.curOp.scrollTop)+le)}function Yl(re){Gs(re);var le=re.getCursor();re.curOp.scrollToPos={from:le,to:le,margin:re.options.cursorScrollMargin}}function Xl(re,le,ye){(le!=null||ye!=null)&&Gs(re),le!=null&&(re.curOp.scrollLeft=le),ye!=null&&(re.curOp.scrollTop=ye)}function la(re,le){Gs(re),re.curOp.scrollToPos=le}function Gs(re){var le=re.curOp.scrollToPos;if(le){re.curOp.scrollToPos=null;var ye=ma(re,le.from),ve=ma(re,le.to);du(re,ye,ve,le.margin)}}function du(re,le,ye,ve){var xe=Rc(re,{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});Xl(re,xe.scrollLeft,xe.scrollTop)}function Nl(re,le){Math.abs(re.doc.scrollTop-le)<2||(oe||tt(re,{top:le}),dl(re,le,!0),oe&&tt(re),bc(re,100))}function dl(re,le,ye){le=Math.max(0,Math.min(re.display.scroller.scrollHeight-re.display.scroller.clientHeight,le)),!(re.display.scroller.scrollTop==le&&!ye)&&(re.doc.scrollTop=le,re.display.scrollbars.setScrollTop(le),re.display.scroller.scrollTop!=le&&(re.display.scroller.scrollTop=le))}function bl(re,le,ye,ve){le=Math.max(0,Math.min(le,re.display.scroller.scrollWidth-re.display.scroller.clientWidth)),!((ye?le==re.doc.scrollLeft:Math.abs(re.doc.scrollLeft-le)<2)&&!ve)&&(re.doc.scrollLeft=le,ln(re),re.display.scroller.scrollLeft!=le&&(re.display.scroller.scrollLeft=le),re.display.scrollbars.setScrollLeft(le))}function $o(re){var le=re.display,ye=le.gutters.offsetWidth,ve=Math.round(re.doc.height+ga(re.display));return{clientHeight:le.scroller.clientHeight,viewHeight:le.wrapper.clientHeight,scrollWidth:le.scroller.scrollWidth,clientWidth:le.scroller.clientWidth,viewWidth:le.wrapper.clientWidth,barLeft:re.options.fixedGutter?ye:0,docHeight:ve,scrollHeight:ve+da(re)+le.barHeight,nativeBarWidth:le.nativeBarWidth,gutterWidth:ye}}var ca=function(re,le,ye){this.cm=ye;var ve=this.vert=st("div",[st("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=st("div",[st("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ve.tabIndex=xe.tabIndex=-1,re(ve),re(xe),Rt(ve,"scroll",function(){ve.clientHeight&&le(ve.scrollTop,"vertical")}),Rt(xe,"scroll",function(){xe.clientWidth&&le(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,je&&Te<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ca.prototype.update=function(re){var le=re.scrollWidth>re.clientWidth+1,ye=re.scrollHeight>re.clientHeight+1,ve=re.nativeBarWidth;if(ye){this.vert.style.display="block",this.vert.style.bottom=le?ve+"px":"0";var xe=re.viewHeight-(le?ve:0);this.vert.firstChild.style.height=Math.max(0,re.scrollHeight-re.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=re.barLeft+"px";var Ze=re.viewWidth-re.barLeft-(ye?ve:0);this.horiz.firstChild.style.width=Math.max(0,re.scrollWidth-re.clientWidth+Ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&re.clientHeight>0&&(ve==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ye?ve:0,bottom:le?ve:0}},ca.prototype.setScrollLeft=function(re){this.horiz.scrollLeft!=re&&(this.horiz.scrollLeft=re),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ca.prototype.setScrollTop=function(re){this.vert.scrollTop!=re&&(this.vert.scrollTop=re),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ca.prototype.zeroWidthHack=function(){var re=he&&!$e?"12px":"18px";this.horiz.style.height=this.vert.style.width=re,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new pt,this.disableVert=new pt},ca.prototype.enableZeroWidthBar=function(re,le,ye){re.style.pointerEvents="auto";function ve(){var xe=re.getBoundingClientRect(),Ze=ye=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);Ze!=re?re.style.pointerEvents="none":le.set(1e3,ve)}le.set(1e3,ve)},ca.prototype.clear=function(){var re=this.horiz.parentNode;re.removeChild(this.horiz),re.removeChild(this.vert)};var Va=function(){};Va.prototype.update=function(){return{bottom:0,right:0}},Va.prototype.setScrollLeft=function(){},Va.prototype.setScrollTop=function(){},Va.prototype.clear=function(){};function Is(re,le){le||(le=$o(re));var ye=re.display.barWidth,ve=re.display.barHeight;xs(re,le);for(var xe=0;xe<4&&ye!=re.display.barWidth||ve!=re.display.barHeight;xe++)ye!=re.display.barWidth&&re.options.lineWrapping&&bo(re),xs(re,$o(re)),ye=re.display.barWidth,ve=re.display.barHeight}function xs(re,le){var ye=re.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&&re.options.coverGutterNextToScrollbar&&re.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 Ll={native:ca,null:Va};function Bl(re){re.display.scrollbars&&(re.display.scrollbars.clear(),re.display.scrollbars.addClass&&Xe(re.display.wrapper,re.display.scrollbars.addClass)),re.display.scrollbars=new Ll[re.options.scrollbarStyle](function(le){re.display.wrapper.insertBefore(le,re.display.scrollbarFiller),Rt(le,"mousedown",function(){re.state.focused&&setTimeout(function(){return re.display.input.focus()},0)}),le.setAttribute("cm-not-content","true")},function(le,ye){ye=="horizontal"?bl(re,le):Nl(re,le)},re),re.display.scrollbars.addClass&&Tt(re.display.wrapper,re.display.scrollbars.addClass)}var _l=0;function kl(re){re.curOp={cm:re,viewChanged:!1,startHeight:re.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:++_l},za(re.curOp)}function hu(re){var le=re.curOp;le&&il(le,function(ye){for(var ve=0;ve<ye.ops.length;ve++)ye.ops[ve].cm.curOp=null;bd(ye)})}function bd(re){for(var le=re.ops,ye=0;ye<le.length;ye++)Hd(le[ye]);for(var ve=0;ve<le.length;ve++)ch(le[ve]);for(var xe=0;xe<le.length;xe++)dh(le[xe]);for(var Ze=0;Ze<le.length;Ze++)gs(le[Ze]);for(var dt=0;dt<le.length;dt++)lc(le[dt])}function Hd(re){var le=re.cm,ye=le.display;Qc(le),re.updateMaxLine&&si(le),re.mustUpdate=re.viewChanged||re.forceUpdate||re.scrollTop!=null||re.scrollToPos&&(re.scrollToPos.from.line<ye.viewFrom||re.scrollToPos.to.line>=ye.viewTo)||ye.maxLineChanged&&le.options.lineWrapping,re.update=re.mustUpdate&&new Eu(le,re.mustUpdate&&{top:re.scrollTop,ensure:re.scrollToPos},re.forceUpdate)}function ch(re){re.updatedDisplay=re.mustUpdate&&Ce(re.cm,re.update)}function dh(re){var le=re.cm,ye=le.display;re.updatedDisplay&&bo(le),re.barMeasure=$o(le),ye.maxLineChanged&&!le.options.lineWrapping&&(re.adjustWidthTo=nc(le,ye.maxLine,ye.maxLine.text.length).left+3,le.display.sizerWidth=re.adjustWidthTo,re.barMeasure.scrollWidth=Math.max(ye.scroller.clientWidth,ye.sizer.offsetLeft+re.adjustWidthTo+da(le)+le.display.barWidth),re.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+re.adjustWidthTo-Rs(le))),(re.updatedDisplay||re.selectionChanged)&&(re.preparedSelection=ye.input.prepareSelection())}function gs(re){var le=re.cm;re.adjustWidthTo!=null&&(le.display.sizer.style.minWidth=re.adjustWidthTo+"px",re.maxScrollLeft<le.doc.scrollLeft&&bl(le,Math.min(le.display.scroller.scrollLeft,re.maxScrollLeft),!0),le.display.maxLineChanged=!1);var ye=re.focus&&re.focus==xt();re.preparedSelection&&le.display.input.showSelection(re.preparedSelection,ye),(re.updatedDisplay||re.startHeight!=le.doc.height)&&Is(le,re.barMeasure),re.updatedDisplay&&Ht(le,re.barMeasure),re.selectionChanged&&Ta(le),le.state.focused&&re.updateInput&&le.display.input.reset(re.typing),ye&&La(re.cm)}function lc(re){var le=re.cm,ye=le.display,ve=le.doc;if(re.updatedDisplay&&Qe(le,re.update),ye.wheelStartX!=null&&(re.scrollTop!=null||re.scrollLeft!=null||re.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),re.scrollTop!=null&&dl(le,re.scrollTop,re.forceScroll),re.scrollLeft!=null&&bl(le,re.scrollLeft,!0,!0),re.scrollToPos){var xe=Bu(le,Wn(ve,re.scrollToPos.from),Wn(ve,re.scrollToPos.to),re.scrollToPos.margin);Sc(le,xe)}var Ze=re.maybeHiddenMarkers,dt=re.maybeUnhiddenMarkers;if(Ze)for(var Pt=0;Pt<Ze.length;++Pt)Ze[Pt].lines.length||en(Ze[Pt],"hide");if(dt)for(var wt=0;wt<dt.length;++wt)dt[wt].lines.length&&en(dt[wt],"unhide");ye.wrapper.offsetHeight&&(ve.scrollTop=le.display.scroller.scrollTop),re.changeObjs&&en(le,"changes",le,re.changeObjs),re.update&&re.update.finish()}function Na(re,le){if(re.curOp)return le();kl(re);try{return le()}finally{hu(re)}}function js(re,le){return function(){if(re.curOp)return le.apply(re,arguments);kl(re);try{return le.apply(re,arguments)}finally{hu(re)}}}function $s(re){return function(){if(this.curOp)return re.apply(this,arguments);kl(this);try{return re.apply(this,arguments)}finally{hu(this)}}}function qs(re){return function(){var le=this.cm;if(!le||le.curOp)return re.apply(this,arguments);kl(le);try{return re.apply(this,arguments)}finally{hu(le)}}}function bc(re,le){re.doc.highlightFrontier<re.display.viewTo&&re.state.highlight.set(le,Kt(Fs,re))}function Fs(re){var le=re.doc;if(!(le.highlightFrontier>=re.display.viewTo)){var ye=+new Date+re.options.workTime,ve=Vi(re,le.highlightFrontier),xe=[];le.iter(ve.line,Math.min(le.first+le.size,re.display.viewTo+500),function(Ze){if(ve.line>=re.display.viewFrom){var dt=Ze.styles,Pt=Ze.text.length>re.options.maxHighlightLength?ui(le.mode,ve.state):null,wt=on(re,Ze,ve,!0);Pt&&(ve.state=Pt),Ze.styles=wt.styles;var Wt=Ze.styleClasses,Zn=wt.classes;Zn?Ze.styleClasses=Zn:Wt&&(Ze.styleClasses=null);for(var rn=!dt||dt.length!=Ze.styles.length||Wt!=Zn&&(!Wt||!Zn||Wt.bgClass!=Zn.bgClass||Wt.textClass!=Zn.textClass),Cr=0;!rn&&Cr<dt.length;++Cr)rn=dt[Cr]!=Ze.styles[Cr];rn&&xe.push(ve.line),Ze.stateAfter=ve.save(),ve.nextLine()}else Ze.text.length<=re.options.maxHighlightLength&&mn(re,Ze.text,ve),Ze.stateAfter=ve.line%5==0?ve.save():null,ve.nextLine();if(+new Date>ye)return bc(re,re.options.workDelay),!0}),le.highlightFrontier=ve.line,le.modeFrontier=Math.max(le.modeFrontier,ve.line),xe.length&&Na(re,function(){for(var Ze=0;Ze<xe.length;Ze++)Zo(re,xe[Ze],"text")})}}var Eu=function(re,le,ye){var ve=re.display;this.viewport=le,this.visible=aa(ve,re.doc,le),this.editorIsHidden=!ve.wrapper.offsetWidth,this.wrapperHeight=ve.wrapper.clientHeight,this.wrapperWidth=ve.wrapper.clientWidth,this.oldDisplayWidth=Rs(re),this.force=ye,this.dims=Fl(re),this.events=[]};Eu.prototype.signal=function(re,le){un(re,le)&&this.events.push(arguments)},Eu.prototype.finish=function(){for(var re=0;re<this.events.length;re++)en.apply(null,this.events[re])};function Qc(re){var le=re.display;!le.scrollbarsClipped&&le.scroller.offsetWidth&&(le.nativeBarWidth=le.scroller.offsetWidth-le.scroller.clientWidth,le.heightForcer.style.height=da(re)+"px",le.sizer.style.marginBottom=-le.nativeBarWidth+"px",le.sizer.style.borderRightWidth=da(re)+"px",le.scrollbarsClipped=!0)}function Ed(re){if(re.hasFocus())return null;var le=xt();if(!le||!mt(re.display.lineDiv,le))return null;var ye={activeElt:le};if(window.getSelection){var ve=window.getSelection();ve.anchorNode&&ve.extend&&mt(re.display.lineDiv,ve.anchorNode)&&(ye.anchorNode=ve.anchorNode,ye.anchorOffset=ve.anchorOffset,ye.focusNode=ve.focusNode,ye.focusOffset=ve.focusOffset)}return ye}function Il(re){if(!(!re||!re.activeElt||re.activeElt==xt())&&(re.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(re.activeElt.nodeName)&&re.anchorNode&&mt(document.body,re.anchorNode)&&mt(document.body,re.focusNode))){var le=window.getSelection(),ye=document.createRange();ye.setEnd(re.anchorNode,re.anchorOffset),ye.collapse(!1),le.removeAllRanges(),le.addRange(ye),le.extend(re.focusNode,re.focusOffset)}}function Ce(re,le){var ye=re.display,ve=re.doc;if(le.editorIsHidden)return Ya(re),!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&&Sl(re)==0)return!1;Ln(re)&&(Ya(re),le.dims=Fl(re));var xe=ve.first+ve.size,Ze=Math.max(le.visible.from-re.options.viewportMargin,ve.first),dt=Math.min(xe,le.visible.to+re.options.viewportMargin);ye.viewFrom<Ze&&Ze-ye.viewFrom<20&&(Ze=Math.max(ve.first,ye.viewFrom)),ye.viewTo>dt&&ye.viewTo-dt<20&&(dt=Math.min(xe,ye.viewTo)),Qn&&(Ze=$n(re.doc,Ze),dt=Yn(re.doc,dt));var Pt=Ze!=ye.viewFrom||dt!=ye.viewTo||ye.lastWrapHeight!=le.wrapperHeight||ye.lastWrapWidth!=le.wrapperWidth;Ia(re,Ze,dt),ye.viewOffset=Vr(Xr(re.doc,ye.viewFrom)),re.display.mover.style.top=ye.viewOffset+"px";var wt=Sl(re);if(!Pt&&wt==0&&!le.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var Wt=Ed(re);return wt>4&&(ye.lineDiv.style.display="none"),ft(re,ye.updateLineNumbers,le.dims),wt>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,Il(Wt),nt(ye.cursorDiv),nt(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,Pt&&(ye.lastWrapHeight=le.wrapperHeight,ye.lastWrapWidth=le.wrapperWidth,bc(re,400)),ye.updateLineNumbers=null,!0}function Qe(re,le){for(var ye=le.viewport,ve=!0;;ve=!1){if(!ve||!re.options.lineWrapping||le.oldDisplayWidth==Rs(re)){if(ye&&ye.top!=null&&(ye={top:Math.min(re.doc.height+ga(re.display)-ol(re),ye.top)}),le.visible=aa(re.display,re.doc,ye),le.visible.from>=re.display.viewFrom&&le.visible.to<=re.display.viewTo)break}else ve&&(le.visible=aa(re.display,re.doc,ye));if(!Ce(re,le))break;bo(re);var xe=$o(re);Es(re),Is(re,xe),Ht(re,xe),le.force=!1}le.signal(re,"update",re),(re.display.viewFrom!=re.display.reportedViewFrom||re.display.viewTo!=re.display.reportedViewTo)&&(le.signal(re,"viewportChange",re,re.display.viewFrom,re.display.viewTo),re.display.reportedViewFrom=re.display.viewFrom,re.display.reportedViewTo=re.display.viewTo)}function tt(re,le){var ye=new Eu(re,le);if(Ce(re,ye)){bo(re),Qe(re,ye);var ve=$o(re);Es(re),Is(re,ve),Ht(re,ve),ye.finish()}}function ft(re,le,ye){var ve=re.display,xe=re.options.lineNumbers,Ze=ve.lineDiv,dt=Ze.firstChild;function Pt(yi){var xi=yi.nextSibling;return Ge&&he&&re.display.currentWheelTarget==yi?yi.style.display="none":yi.parentNode.removeChild(yi),xi}for(var wt=ve.view,Wt=ve.viewFrom,Zn=0;Zn<wt.length;Zn++){var rn=wt[Zn];if(!rn.hidden)if(!rn.node||rn.node.parentNode!=Ze){var Cr=Do(re,rn,Wt,ye);Ze.insertBefore(Cr,dt)}else{for(;dt!=rn.node;)dt=Pt(dt);var yr=xe&&le!=null&&le<=Wt&&rn.lineNumber;rn.changes&&(ct(rn.changes,"gutter")>-1&&(yr=!1),Ma(re,rn,Wt,ye)),yr&&(nt(rn.lineNumber),rn.lineNumber.appendChild(document.createTextNode(Ir(re.options,Wt)))),dt=rn.node.nextSibling}Wt+=rn.size}for(;dt;)dt=Pt(dt)}function Ft(re){var le=re.gutters.offsetWidth;re.sizer.style.marginLeft=le+"px"}function Ht(re,le){re.display.sizer.style.minHeight=le.docHeight+"px",re.display.heightForcer.style.top=le.docHeight+"px",re.display.gutters.style.height=le.docHeight+re.display.barHeight+da(re)+"px"}function ln(re){var le=re.display,ye=le.view;if(!(!le.alignWidgets&&(!le.gutters.firstChild||!re.options.fixedGutter))){for(var ve=ac(le)-le.scroller.scrollLeft+re.doc.scrollLeft,xe=le.gutters.offsetWidth,Ze=ve+"px",dt=0;dt<ye.length;dt++)if(!ye[dt].hidden){re.options.fixedGutter&&(ye[dt].gutter&&(ye[dt].gutter.style.left=Ze),ye[dt].gutterBackground&&(ye[dt].gutterBackground.style.left=Ze));var Pt=ye[dt].alignable;if(Pt)for(var wt=0;wt<Pt.length;wt++)Pt[wt].style.left=Ze}re.options.fixedGutter&&(le.gutters.style.left=ve+xe+"px")}}function Ln(re){if(!re.options.lineNumbers)return!1;var le=re.doc,ye=Ir(re.options,le.first+le.size-1),ve=re.display;if(ye.length!=ve.lineNumChars){var xe=ve.measure.appendChild(st("div",[st("div",ye)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ze=xe.firstChild.offsetWidth,dt=xe.offsetWidth-Ze;return ve.lineGutter.style.width="",ve.lineNumInnerWidth=Math.max(Ze,ve.lineGutter.offsetWidth-dt)+1,ve.lineNumWidth=ve.lineNumInnerWidth+dt,ve.lineNumChars=ve.lineNumInnerWidth?ye.length:-1,ve.lineGutter.style.width=ve.lineNumWidth+"px",Ft(re.display),!0}return!1}function Sr(re,le){for(var ye=[],ve=!1,xe=0;xe<re.length;xe++){var Ze=re[xe],dt=null;if(typeof Ze!="string"&&(dt=Ze.style,Ze=Ze.className),Ze=="CodeMirror-linenumbers")if(le)ve=!0;else continue;ye.push({className:Ze,style:dt})}return le&&!ve&&ye.push({className:"CodeMirror-linenumbers",style:null}),ye}function xr(re){var le=re.gutters,ye=re.gutterSpecs;nt(le),re.lineGutter=null;for(var ve=0;ve<ye.length;++ve){var xe=ye[ve],Ze=xe.className,dt=xe.style,Pt=le.appendChild(st("div",null,"CodeMirror-gutter "+Ze));dt&&(Pt.style.cssText=dt),Ze=="CodeMirror-linenumbers"&&(re.lineGutter=Pt,Pt.style.width=(re.lineNumWidth||1)+"px")}le.style.display=ye.length?"":"none",Ft(re)}function er(re){xr(re.display),ua(re),ln(re)}function Zr(re,le,ye,ve){var xe=this;this.input=ye,xe.scrollbarFiller=st("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=st("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=gt("div",null,"CodeMirror-code"),xe.selectionDiv=st("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=st("div",null,"CodeMirror-cursors"),xe.measure=st("div",null,"CodeMirror-measure"),xe.lineMeasure=st("div",null,"CodeMirror-measure"),xe.lineSpace=gt("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var Ze=gt("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=st("div",[Ze],null,"position: relative"),xe.sizer=st("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=st("div",null,null,"position: absolute; height: "+qt+"px; width: 1px;"),xe.gutters=st("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=st("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=st("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),je&&Te<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!Ge&&!(oe&&ee)&&(xe.scroller.draggable=!0),re&&(re.appendChild?re.appendChild(xe.wrapper):re(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=Sr(ve.gutters,ve.lineNumbers),xr(xe),ye.init(xe)}var Hr=0,sr=null;je?sr=-.53:oe?sr=15:Ke?sr=-.7:yt&&(sr=-1/3);function Po(re){var le=re.wheelDeltaX,ye=re.wheelDeltaY;return le==null&&re.detail&&re.axis==re.HORIZONTAL_AXIS&&(le=re.detail),ye==null&&re.detail&&re.axis==re.VERTICAL_AXIS?ye=re.detail:ye==null&&(ye=re.wheelDelta),{x:le,y:ye}}function jo(re){var le=Po(re);return le.x*=sr,le.y*=sr,le}function ea(re,le){var ye=Po(le),ve=ye.x,xe=ye.y,Ze=re.display,dt=Ze.scroller,Pt=dt.scrollWidth>dt.clientWidth,wt=dt.scrollHeight>dt.clientHeight;if(ve&&Pt||xe&&wt){if(xe&&he&&Ge){e:for(var Wt=le.target,Zn=Ze.view;Wt!=dt;Wt=Wt.parentNode)for(var rn=0;rn<Zn.length;rn++)if(Zn[rn].node==Wt){re.display.currentWheelTarget=Wt;break e}}if(ve&&!oe&&!He&&sr!=null){xe&&wt&&Nl(re,Math.max(0,dt.scrollTop+xe*sr)),bl(re,Math.max(0,dt.scrollLeft+ve*sr)),(!xe||xe&&wt)&&Xn(le),Ze.wheelStartX=null;return}if(xe&&sr!=null){var Cr=xe*sr,yr=re.doc.scrollTop,yi=yr+Ze.wrapper.clientHeight;Cr<0?yr=Math.max(0,yr+Cr-50):yi=Math.min(re.doc.height,yi+Cr+50),tt(re,{top:yr,bottom:yi})}Hr<20&&(Ze.wheelStartX==null?(Ze.wheelStartX=dt.scrollLeft,Ze.wheelStartY=dt.scrollTop,Ze.wheelDX=ve,Ze.wheelDY=xe,setTimeout(function(){if(Ze.wheelStartX!=null){var xi=dt.scrollLeft-Ze.wheelStartX,Di=dt.scrollTop-Ze.wheelStartY,$i=Di&&Ze.wheelDY&&Di/Ze.wheelDY||xi&&Ze.wheelDX&&xi/Ze.wheelDX;Ze.wheelStartX=Ze.wheelStartY=null,$i&&(sr=(sr*Hr+$i)/(Hr+1),++Hr)}},200)):(Ze.wheelDX+=ve,Ze.wheelDY+=xe))}}var so=function(re,le){this.ranges=re,this.primIndex=le};so.prototype.primary=function(){return this.ranges[this.primIndex]},so.prototype.equals=function(re){if(re==this)return!0;if(re.primIndex!=this.primIndex||re.ranges.length!=this.ranges.length)return!1;for(var le=0;le<this.ranges.length;le++){var ye=this.ranges[le],ve=re.ranges[le];if(!fr(ye.anchor,ve.anchor)||!fr(ye.head,ve.head))return!1}return!0},so.prototype.deepCopy=function(){for(var re=[],le=0;le<this.ranges.length;le++)re[le]=new To(dn(this.ranges[le].anchor),dn(this.ranges[le].head));return new so(re,this.primIndex)},so.prototype.somethingSelected=function(){for(var re=0;re<this.ranges.length;re++)if(!this.ranges[re].empty())return!0;return!1},so.prototype.contains=function(re,le){le||(le=re);for(var ye=0;ye<this.ranges.length;ye++){var ve=this.ranges[ye];if(Fn(le,ve.from())>=0&&Fn(re,ve.to())<=0)return ye}return-1};var To=function(re,le){this.anchor=re,this.head=le};To.prototype.from=function(){return Mr(this.anchor,this.head)},To.prototype.to=function(){return Ue(this.anchor,this.head)},To.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bo(re,le,ye){var ve=re&&re.options.selectionsMayTouch,xe=le[ye];le.sort(function(Cr,yr){return Fn(Cr.from(),yr.from())}),ye=ct(le,xe);for(var Ze=1;Ze<le.length;Ze++){var dt=le[Ze],Pt=le[Ze-1],wt=Fn(Pt.to(),dt.from());if(ve&&!dt.empty()?wt>0:wt>=0){var Wt=Mr(Pt.from(),dt.from()),Zn=Ue(Pt.to(),dt.to()),rn=Pt.empty()?dt.from()==dt.head:Pt.from()==Pt.head;Ze<=ye&&--ye,le.splice(--Ze,2,new To(rn?Zn:Wt,rn?Wt:Zn))}}return new so(le,ye)}function Xa(re,le){return new so([new To(re,le||re)],0)}function Qa(re){return re.text?Xt(re.from.line+re.text.length-1,Nn(re.text).length+(re.text.length==1?re.from.ch:0)):re.to}function Ki(re,le){if(Fn(re,le.from)<0)return re;if(Fn(re,le.to)<=0)return Qa(le);var ye=re.line+le.text.length-(le.to.line-le.from.line)-1,ve=re.ch;return re.line==le.to.line&&(ve+=Qa(le).ch-le.to.ch),Xt(ye,ve)}function ka(re,le){for(var ye=[],ve=0;ve<re.sel.ranges.length;ve++){var xe=re.sel.ranges[ve];ye.push(new To(Ki(xe.anchor,le),Ki(xe.head,le)))}return Bo(re.cm,ye,re.sel.primIndex)}function ws(re,le,ye){return re.line==le.line?Xt(ye.line,re.ch-le.ch+ye.ch):Xt(ye.line+(re.line-le.line),re.ch)}function Ua(re,le,ye){for(var ve=[],xe=Xt(re.first,0),Ze=xe,dt=0;dt<le.length;dt++){var Pt=le[dt],wt=ws(Pt.from,xe,Ze),Wt=ws(Qa(Pt),xe,Ze);if(xe=Pt.to,Ze=Wt,ye=="around"){var Zn=re.sel.ranges[dt],rn=Fn(Zn.head,Zn.anchor)<0;ve[dt]=new To(rn?Wt:wt,rn?wt:Wt)}else ve[dt]=new To(wt,wt)}return new so(ve,re.sel.primIndex)}function xo(re){re.doc.mode=yn(re.options,re.doc.modeOption),Dl(re)}function Dl(re){re.doc.iter(function(le){le.stateAfter&&(le.stateAfter=null),le.styles&&(le.styles=null)}),re.doc.modeFrontier=re.doc.highlightFrontier=re.doc.first,bc(re,100),re.state.modeGen++,re.curOp&&ua(re)}function is(re,le){return le.from.ch==0&&le.to.ch==0&&Nn(le.text)==""&&(!re.cm||re.cm.options.wholeLineUpdateBefore)}function Ko(re,le,ye,ve){function xe(yo){return ye?ye[yo]:null}function Ze(yo,lo,Ao){Ri(yo,lo,Ao,ve),no(yo,"change",yo,le)}function dt(yo,lo){for(var Ao=[],Qo=yo;Qo<lo;++Qo)Ao.push(new Si(Wt[Qo],xe(Qo),ve));return Ao}var Pt=le.from,wt=le.to,Wt=le.text,Zn=Xr(re,Pt.line),rn=Xr(re,wt.line),Cr=Nn(Wt),yr=xe(Wt.length-1),yi=wt.line-Pt.line;if(le.full)re.insert(0,dt(0,Wt.length)),re.remove(Wt.length,re.size-Wt.length);else if(is(re,le)){var xi=dt(0,Wt.length-1);Ze(rn,rn.text,yr),yi&&re.remove(Pt.line,yi),xi.length&&re.insert(Pt.line,xi)}else if(Zn==rn)if(Wt.length==1)Ze(Zn,Zn.text.slice(0,Pt.ch)+Cr+Zn.text.slice(wt.ch),yr);else{var Di=dt(1,Wt.length-1);Di.push(new Si(Cr+Zn.text.slice(wt.ch),yr,ve)),Ze(Zn,Zn.text.slice(0,Pt.ch)+Wt[0],xe(0)),re.insert(Pt.line+1,Di)}else if(Wt.length==1)Ze(Zn,Zn.text.slice(0,Pt.ch)+Wt[0]+rn.text.slice(wt.ch),xe(0)),re.remove(Pt.line+1,yi);else{Ze(Zn,Zn.text.slice(0,Pt.ch)+Wt[0],xe(0)),Ze(rn,Cr+rn.text.slice(wt.ch),yr);var $i=dt(1,Wt.length-1);yi>1&&re.remove(Pt.line+1,yi-1),re.insert(Pt.line+1,$i)}no(re,"change",re,le)}function Yo(re,le,ye){function ve(xe,Ze,dt){if(xe.linked)for(var Pt=0;Pt<xe.linked.length;++Pt){var wt=xe.linked[Pt];if(wt.doc!=Ze){var Wt=dt&&wt.sharedHist;ye&&!Wt||(le(wt.doc,Wt),ve(wt.doc,xe,Wt))}}}ve(re,null,!0)}function Ea(re,le){if(le.cm)throw new Error("This document is already in use.");re.doc=le,le.cm=re,Eo(re),xo(re),ds(re),re.options.lineWrapping||si(re),re.options.mode=le.modeOption,ua(re)}function ds(re){(re.doc.direction=="rtl"?Tt:Xe)(re.display.lineDiv,"CodeMirror-rtl")}function al(re){Na(re,function(){ds(re),ua(re)})}function El(re){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=re||1}function Ul(re,le){var ye={from:dn(le.from),to:Qa(le),text:wi(re,le.from,le.to)};return _u(re,ye,le.from.line,le.to.line+1),Yo(re,function(ve){return _u(ve,ye,le.from.line,le.to.line+1)},!0),ye}function Ar(re){for(;re.length;){var le=Nn(re);if(le.ranges)re.pop();else break}}function hl(re,le){if(le)return Ar(re.done),Nn(re.done);if(re.done.length&&!Nn(re.done).ranges)return Nn(re.done);if(re.done.length>1&&!re.done[re.done.length-2].ranges)return re.done.pop(),Nn(re.done)}function Ql(re,le,ye,ve){var xe=re.history;xe.undone.length=0;var Ze=+new Date,dt,Pt;if((xe.lastOp==ve||xe.lastOrigin==le.origin&&le.origin&&(le.origin.charAt(0)=="+"&&xe.lastModTime>Ze-(re.cm?re.cm.options.historyEventDelay:500)||le.origin.charAt(0)=="*"))&&(dt=hl(xe,xe.lastOp==ve)))Pt=Nn(dt.changes),Fn(le.from,le.to)==0&&Fn(le.from,Pt.to)==0?Pt.to=Qa(le):dt.changes.push(Ul(re,le));else{var wt=Nn(xe.done);for((!wt||!wt.ranges)&&Jl(re.sel,xe.done),dt={changes:[Ul(re,le)],generation:xe.generation},xe.done.push(dt);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=Ze,xe.lastOp=xe.lastSelOp=ve,xe.lastOrigin=xe.lastSelOrigin=le.origin,Pt||en(re,"historyAdded")}function Or(re,le,ye,ve){var xe=le.charAt(0);return xe=="*"||xe=="+"&&ye.ranges.length==ve.ranges.length&&ye.somethingSelected()==ve.somethingSelected()&&new Date-re.history.lastSelTime<=(re.cm?re.cm.options.historyEventDelay:500)}function xl(re,le,ye,ve){var xe=re.history,Ze=ve&&ve.origin;ye==xe.lastSelOp||Ze&&xe.lastSelOrigin==Ze&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==Ze||Or(re,Ze,Nn(xe.done),le))?xe.done[xe.done.length-1]=le:Jl(le,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=Ze,xe.lastSelOp=ye,ve&&ve.clearRedo!==!1&&Ar(xe.undone)}function Jl(re,le){var ye=Nn(le);ye&&ye.ranges&&ye.equals(re)||le.push(re)}function _u(re,le,ye,ve){var xe=le["spans_"+re.id],Ze=0;re.iter(Math.max(re.first,ye),Math.min(re.first+re.size,ve),function(dt){dt.markedSpans&&((xe||(xe=le["spans_"+re.id]={}))[Ze]=dt.markedSpans),++Ze})}function el(re){if(!re)return null;for(var le,ye=0;ye<re.length;++ye)re[ye].marker.explicitlyCleared?le||(le=re.slice(0,ye)):le&&le.push(re[ye]);return le?le.length?le:null:re}function ms(re,le){var ye=le["spans_"+re.id];if(!ye)return null;for(var ve=[],xe=0;xe<le.text.length;++xe)ve.push(el(ye[xe]));return ve}function ql(re,le){var ye=ms(re,le),ve=zo(re,le);if(!ye)return ve;if(!ve)return ye;for(var xe=0;xe<ye.length;++xe){var Ze=ye[xe],dt=ve[xe];if(Ze&&dt)e:for(var Pt=0;Pt<dt.length;++Pt){for(var wt=dt[Pt],Wt=0;Wt<Ze.length;++Wt)if(Ze[Wt].marker==wt.marker)continue e;Ze.push(wt)}else dt&&(ye[xe]=dt)}return ye}function fl(re,le,ye){for(var ve=[],xe=0;xe<re.length;++xe){var Ze=re[xe];if(Ze.ranges){ve.push(ye?so.prototype.deepCopy.call(Ze):Ze);continue}var dt=Ze.changes,Pt=[];ve.push({changes:Pt});for(var wt=0;wt<dt.length;++wt){var Wt=dt[wt],Zn=void 0;if(Pt.push({from:Wt.from,to:Wt.to,text:Wt.text}),le)for(var rn in Wt)(Zn=rn.match(/^spans_(\d+)$/))&&ct(le,Number(Zn[1]))>-1&&(Nn(Pt)[rn]=Wt[rn],delete Wt[rn])}}return ve}function Qu(re,le,ye,ve){if(ve){var xe=re.anchor;if(ye){var Ze=Fn(le,xe)<0;Ze!=Fn(ye,xe)<0?(xe=le,le=ye):Ze!=Fn(le,ye)<0&&(le=ye)}return new To(xe,le)}else return new To(ye||le,le)}function uc(re,le,ye,ve,xe){xe==null&&(xe=re.cm&&(re.cm.display.shift||re.extend)),ge(re,new so([Qu(re.sel.primary(),le,ye,xe)],0),ve)}function cc(re,le,ye){for(var ve=[],xe=re.cm&&(re.cm.display.shift||re.extend),Ze=0;Ze<re.sel.ranges.length;Ze++)ve[Ze]=Qu(re.sel.ranges[Ze],le[Ze],null,xe);var dt=Bo(re.cm,ve,re.sel.primIndex);ge(re,dt,ye)}function wl(re,le,ye,ve){var xe=re.sel.ranges.slice(0);xe[le]=ye,ge(re,Bo(re.cm,xe,re.sel.primIndex),ve)}function Ju(re,le,ye,ve){ge(re,Xa(le,ye),ve)}function zd(re,le,ye){var ve={ranges:le.ranges,update:function(xe){this.ranges=[];for(var Ze=0;Ze<xe.length;Ze++)this.ranges[Ze]=new To(Wn(re,xe[Ze].anchor),Wn(re,xe[Ze].head))},origin:ye&&ye.origin};return en(re,"beforeSelectionChange",re,ve),re.cm&&en(re.cm,"beforeSelectionChange",re.cm,ve),ve.ranges!=le.ranges?Bo(re.cm,ve.ranges,ve.ranges.length-1):le}function ce(re,le,ye){var ve=re.history.done,xe=Nn(ve);xe&&xe.ranges?(ve[ve.length-1]=le,et(re,le,ye)):ge(re,le,ye)}function ge(re,le,ye){et(re,le,ye),xl(re,re.sel,re.cm?re.cm.curOp.id:NaN,ye)}function et(re,le,ye){(un(re,"beforeSelectionChange")||re.cm&&un(re.cm,"beforeSelectionChange"))&&(le=zd(re,le,ye));var ve=ye&&ye.bias||(Fn(le.primary().head,re.sel.primary().head)<0?-1:1);nn(re,ti(re,le,ve,!0)),!(ye&&ye.scroll===!1)&&re.cm&&Yl(re.cm)}function nn(re,le){le.equals(re.sel)||(re.sel=le,re.cm&&(re.cm.curOp.updateInput=1,re.cm.curOp.selectionChanged=!0,zn(re.cm)),no(re,"cursorActivity",re))}function br(re){nn(re,ti(re,re.sel,null,!1))}function ti(re,le,ye,ve){for(var xe,Ze=0;Ze<le.ranges.length;Ze++){var dt=le.ranges[Ze],Pt=le.ranges.length==re.sel.ranges.length&&re.sel.ranges[Ze],wt=Lo(re,dt.anchor,Pt&&Pt.anchor,ye,ve),Wt=Lo(re,dt.head,Pt&&Pt.head,ye,ve);(xe||wt!=dt.anchor||Wt!=dt.head)&&(xe||(xe=le.ranges.slice(0,Ze)),xe[Ze]=new To(wt,Wt))}return xe?Bo(re.cm,xe,le.primIndex):le}function Li(re,le,ye,ve,xe){var Ze=Xr(re,le.line);if(Ze.markedSpans)for(var dt=0;dt<Ze.markedSpans.length;++dt){var Pt=Ze.markedSpans[dt],wt=Pt.marker,Wt="selectLeft"in wt?!wt.selectLeft:wt.inclusiveLeft,Zn="selectRight"in wt?!wt.selectRight:wt.inclusiveRight;if((Pt.from==null||(Wt?Pt.from<=le.ch:Pt.from<le.ch))&&(Pt.to==null||(Zn?Pt.to>=le.ch:Pt.to>le.ch))){if(xe&&(en(wt,"beforeCursorEnter"),wt.explicitlyCleared))if(Ze.markedSpans){--dt;continue}else break;if(!wt.atomic)continue;if(ye){var rn=wt.find(ve<0?1:-1),Cr=void 0;if((ve<0?Zn:Wt)&&(rn=Xo(re,rn,-ve,rn&&rn.line==le.line?Ze:null)),rn&&rn.line==le.line&&(Cr=Fn(rn,ye))&&(ve<0?Cr<0:Cr>0))return Li(re,rn,le,ve,xe)}var yr=wt.find(ve<0?-1:1);return(ve<0?Wt:Zn)&&(yr=Xo(re,yr,ve,yr.line==le.line?Ze:null)),yr?Li(re,yr,le,ve,xe):null}}return le}function Lo(re,le,ye,ve,xe){var Ze=ve||1,dt=Li(re,le,ye,Ze,xe)||!xe&&Li(re,le,ye,Ze,!0)||Li(re,le,ye,-Ze,xe)||!xe&&Li(re,le,ye,-Ze,!0);return dt||(re.cantEdit=!0,Xt(re.first,0))}function Xo(re,le,ye,ve){return ye<0&&le.ch==0?le.line>re.first?Wn(re,Xt(le.line-1)):null:ye>0&&le.ch==(ve||Xr(re,le.line)).text.length?le.line<re.first+re.size-1?Xt(le.line+1,0):null:new Xt(le.line,le.ch+ye)}function ii(re){re.setSelection(Xt(re.firstLine(),0),Xt(re.lastLine()),kt)}function qi(re,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,Ze,dt,Pt){xe&&(ve.from=Wn(re,xe)),Ze&&(ve.to=Wn(re,Ze)),dt&&(ve.text=dt),Pt!==void 0&&(ve.origin=Pt)}),en(re,"beforeChange",re,ve),re.cm&&en(re.cm,"beforeChange",re.cm,ve),ve.canceled?(re.cm&&(re.cm.curOp.updateInput=2),null):{from:ve.from,to:ve.to,text:ve.text,origin:ve.origin}}function ta(re,le,ye){if(re.cm){if(!re.cm.curOp)return js(re.cm,ta)(re,le,ye);if(re.cm.state.suppressEdits)return}if(!((un(re,"beforeChange")||re.cm&&un(re.cm,"beforeChange"))&&(le=qi(re,le,!0),!le))){var ve=io&&!ye&&vr(re,le.from,le.to);if(ve)for(var xe=ve.length-1;xe>=0;--xe)Aa(re,{from:ve[xe].from,to:ve[xe].to,text:xe?[""]:le.text,origin:le.origin});else Aa(re,le)}}function Aa(re,le){if(!(le.text.length==1&&le.text[0]==""&&Fn(le.from,le.to)==0)){var ye=ka(re,le);Ql(re,le,ye,re.cm?re.cm.curOp.id:NaN),xu(re,le,ye,zo(re,le));var ve=[];Yo(re,function(xe,Ze){!Ze&&ct(ve,xe.history)==-1&&(Mc(xe.history,le),ve.push(xe.history)),xu(xe,le,null,zo(xe,le))})}}function os(re,le,ye){var ve=re.cm&&re.cm.state.suppressEdits;if(!(ve&&!ye)){for(var xe=re.history,Ze,dt=re.sel,Pt=le=="undo"?xe.done:xe.undone,wt=le=="undo"?xe.undone:xe.done,Wt=0;Wt<Pt.length&&(Ze=Pt[Wt],!(ye?Ze.ranges&&!Ze.equals(re.sel):!Ze.ranges));Wt++);if(Wt!=Pt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(Ze=Pt.pop(),Ze.ranges){if(Jl(Ze,wt),ye&&!Ze.equals(re.sel)){ge(re,Ze,{clearRedo:!1});return}dt=Ze}else if(ve){Pt.push(Ze);return}else break;var Zn=[];Jl(dt,wt),wt.push({changes:Zn,generation:xe.generation}),xe.generation=Ze.generation||++xe.maxGeneration;for(var rn=un(re,"beforeChange")||re.cm&&un(re.cm,"beforeChange"),Cr=function(xi){var Di=Ze.changes[xi];if(Di.origin=le,rn&&!qi(re,Di,!1))return Pt.length=0,{};Zn.push(Ul(re,Di));var $i=xi?ka(re,Di):Nn(Pt);xu(re,Di,$i,ql(re,Di)),!xi&&re.cm&&re.cm.scrollIntoView({from:Di.from,to:Qa(Di)});var yo=[];Yo(re,function(lo,Ao){!Ao&&ct(yo,lo.history)==-1&&(Mc(lo.history,Di),yo.push(lo.history)),xu(lo,Di,null,ql(lo,Di))})},yr=Ze.changes.length-1;yr>=0;--yr){var yi=Cr(yr);if(yi)return yi.v}}}}function Uu(re,le){if(le!=0&&(re.first+=le,re.sel=new so(tr(re.sel.ranges,function(xe){return new To(Xt(xe.anchor.line+le,xe.anchor.ch),Xt(xe.head.line+le,xe.head.ch))}),re.sel.primIndex),re.cm)){ua(re.cm,re.first,re.first-le,le);for(var ye=re.cm.display,ve=ye.viewFrom;ve<ye.viewTo;ve++)Zo(re.cm,ve,"gutter")}}function xu(re,le,ye,ve){if(re.cm&&!re.cm.curOp)return js(re.cm,xu)(re,le,ye,ve);if(le.to.line<re.first){Uu(re,le.text.length-1-(le.to.line-le.from.line));return}if(!(le.from.line>re.lastLine())){if(le.from.line<re.first){var xe=le.text.length-1-(re.first-le.from.line);Uu(re,xe),le={from:Xt(re.first,0),to:Xt(le.to.line+xe,le.to.ch),text:[Nn(le.text)],origin:le.origin}}var Ze=re.lastLine();le.to.line>Ze&&(le={from:le.from,to:Xt(Ze,Xr(re,Ze).text.length),text:[le.text[0]],origin:le.origin}),le.removed=wi(re,le.from,le.to),ye||(ye=ka(re,le)),re.cm?wu(re.cm,le,ve):Ko(re,le,ve),et(re,ye,kt),re.cantEdit&&Lo(re,Xt(re.firstLine(),0))&&(re.cantEdit=!1)}}function wu(re,le,ye){var ve=re.doc,xe=re.display,Ze=le.from,dt=le.to,Pt=!1,wt=Ze.line;re.options.lineWrapping||(wt=Lt(Pn(Xr(ve,Ze.line))),ve.iter(wt,dt.line+1,function(yr){if(yr==xe.maxLine)return Pt=!0,!0})),ve.sel.contains(le.from,le.to)>-1&&zn(re),Ko(ve,le,ye,Wa(re)),re.options.lineWrapping||(ve.iter(wt,Ze.line+le.text.length,function(yr){var yi=Ni(yr);yi>xe.maxLineLength&&(xe.maxLine=yr,xe.maxLineLength=yi,xe.maxLineChanged=!0,Pt=!1)}),Pt&&(re.curOp.updateMaxLine=!0)),Bi(ve,Ze.line),bc(re,400);var Wt=le.text.length-(dt.line-Ze.line)-1;le.full?ua(re):Ze.line==dt.line&&le.text.length==1&&!is(re.doc,le)?Zo(re,Ze.line,"text"):ua(re,Ze.line,dt.line+1,Wt);var Zn=un(re,"changes"),rn=un(re,"change");if(rn||Zn){var Cr={from:Ze,to:dt,text:le.text,removed:le.removed,origin:le.origin};rn&&no(re,"change",re,Cr),Zn&&(re.curOp.changeObjs||(re.curOp.changeObjs=[])).push(Cr)}re.display.selForContextMenu=null}function dc(re,le,ye,ve,xe){var Ze;ve||(ve=ye),Fn(ve,ye)<0&&(Ze=[ve,ye],ye=Ze[0],ve=Ze[1]),typeof le=="string"&&(le=re.splitLines(le)),ta(re,{from:ye,to:ve,text:le,origin:xe})}function Hl(re,le,ye,ve){ye<re.line?re.line+=ve:le<re.line&&(re.line=le,re.ch=0)}function Cu(re,le,ye,ve){for(var xe=0;xe<re.length;++xe){var Ze=re[xe],dt=!0;if(Ze.ranges){Ze.copied||(Ze=re[xe]=Ze.deepCopy(),Ze.copied=!0);for(var Pt=0;Pt<Ze.ranges.length;Pt++)Hl(Ze.ranges[Pt].anchor,le,ye,ve),Hl(Ze.ranges[Pt].head,le,ye,ve);continue}for(var wt=0;wt<Ze.changes.length;++wt){var Wt=Ze.changes[wt];if(ye<Wt.from.line)Wt.from=Xt(Wt.from.line+ve,Wt.from.ch),Wt.to=Xt(Wt.to.line+ve,Wt.to.ch);else if(le<=Wt.to.line){dt=!1;break}}dt||(re.splice(0,xe+1),xe=0)}}function Mc(re,le){var ye=le.from.line,ve=le.to.line,xe=le.text.length-(ve-ye)-1;Cu(re.done,ye,ve,xe),Cu(re.undone,ye,ve,xe)}function fu(re,le,ye,ve){var xe=le,Ze=le;return typeof le=="number"?Ze=Xr(re,Ur(re,le)):xe=Lt(le),xe==null?null:(ve(Ze,xe)&&re.cm&&Zo(re.cm,xe,ye),Ze)}function hh(re){this.lines=re,this.parent=null;for(var le=0,ye=0;ye<re.length;++ye)re[ye].parent=this,le+=re[ye].height;this.height=le}hh.prototype={chunkSize:function(){return this.lines.length},removeInner:function(re,le){for(var ye=re,ve=re+le;ye<ve;++ye){var xe=this.lines[ye];this.height-=xe.height,_i(xe),no(xe,"delete")}this.lines.splice(re,le)},collapse:function(re){re.push.apply(re,this.lines)},insertInner:function(re,le,ye){this.height+=ye,this.lines=this.lines.slice(0,re).concat(le).concat(this.lines.slice(re));for(var ve=0;ve<le.length;++ve)le[ve].parent=this},iterN:function(re,le,ye){for(var ve=re+le;re<ve;++re)if(ye(this.lines[re]))return!0}};function Cs(re){this.children=re;for(var le=0,ye=0,ve=0;ve<re.length;++ve){var xe=re[ve];le+=xe.chunkSize(),ye+=xe.height,xe.parent=this}this.size=le,this.height=ye,this.parent=null}Cs.prototype={chunkSize:function(){return this.size},removeInner:function(re,le){this.size-=le;for(var ye=0;ye<this.children.length;++ye){var ve=this.children[ye],xe=ve.chunkSize();if(re<xe){var Ze=Math.min(le,xe-re),dt=ve.height;if(ve.removeInner(re,Ze),this.height-=dt-ve.height,xe==Ze&&(this.children.splice(ye--,1),ve.parent=null),(le-=Ze)==0)break;re=0}else re-=xe}if(this.size-le<25&&(this.children.length>1||!(this.children[0]instanceof hh))){var Pt=[];this.collapse(Pt),this.children=[new hh(Pt)],this.children[0].parent=this}},collapse:function(re){for(var le=0;le<this.children.length;++le)this.children[le].collapse(re)},insertInner:function(re,le,ye){this.size+=le.length,this.height+=ye;for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ze=xe.chunkSize();if(re<=Ze){if(xe.insertInner(re,le,ye),xe.lines&&xe.lines.length>50){for(var dt=xe.lines.length%25+25,Pt=dt;Pt<xe.lines.length;){var wt=new hh(xe.lines.slice(Pt,Pt+=25));xe.height-=wt.height,this.children.splice(++ve,0,wt),wt.parent=this}xe.lines=xe.lines.slice(0,dt),this.maybeSpill()}break}re-=Ze}},maybeSpill:function(){if(!(this.children.length<=10)){var re=this;do{var le=re.children.splice(re.children.length-5,5),ye=new Cs(le);if(re.parent){re.size-=ye.size,re.height-=ye.height;var xe=ct(re.parent.children,re);re.parent.children.splice(xe+1,0,ye)}else{var ve=new Cs(re.children);ve.parent=re,re.children=[ve,ye],re=ve}ye.parent=re.parent}while(re.children.length>10);re.parent.maybeSpill()}},iterN:function(re,le,ye){for(var ve=0;ve<this.children.length;++ve){var xe=this.children[ve],Ze=xe.chunkSize();if(re<Ze){var dt=Math.min(le,Ze-re);if(xe.iterN(re,dt,ye))return!0;if((le-=dt)==0)break;re=0}else re-=Ze}}};var ud=function(re,le,ye){if(ye)for(var ve in ye)ye.hasOwnProperty(ve)&&(this[ve]=ye[ve]);this.doc=re,this.node=le};ud.prototype.clear=function(){var re=this.doc.cm,le=this.line.widgets,ye=this.line,ve=Lt(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 Ze=pa(this);Fr(ye,Math.max(0,ye.height-Ze)),re&&(Na(re,function(){Kp(re,ye,-Ze),Zo(re,ve,"widget")}),no(re,"lineWidgetCleared",re,this,ve))}},ud.prototype.changed=function(){var re=this,le=this.height,ye=this.doc.cm,ve=this.line;this.height=null;var xe=pa(this)-le;xe&&(an(this.doc,ve)||Fr(ve,ve.height+xe),ye&&Na(ye,function(){ye.curOp.forceUpdate=!0,Kp(ye,ve,xe),no(ye,"lineWidgetChanged",ye,re,Lt(ve))}))},Et(ud);function Kp(re,le,ye){Vr(le)<(re.curOp&&re.curOp.scrollTop||re.doc.scrollTop)&&Xc(re,ye)}function Gd(re,le,ye,ve){var xe=new ud(re,ye,ve),Ze=re.cm;return Ze&&xe.noHScroll&&(Ze.display.alignWidgets=!0),fu(re,le,"widget",function(dt){var Pt=dt.widgets||(dt.widgets=[]);if(xe.insertAt==null?Pt.push(xe):Pt.splice(Math.min(Pt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=dt,Ze&&!an(re,dt)){var wt=Vr(dt)<re.scrollTop;Fr(dt,dt.height+pa(xe)),wt&&Xc(Ze,xe.height),Ze.curOp.forceUpdate=!0}return!0}),Ze&&no(Ze,"lineWidgetAdded",Ze,xe,typeof le=="number"?le:Lt(le)),xe}var Yp=0,Dn=function(re,le){this.lines=[],this.type=le,this.doc=re,this.id=++Yp};Dn.prototype.clear=function(){if(!this.explicitlyCleared){var re=this.doc.cm,le=re&&!re.curOp;if(le&&kl(re),un(this,"clear")){var ye=this.find();ye&&no(this,"clear",ye.from,ye.to)}for(var ve=null,xe=null,Ze=0;Ze<this.lines.length;++Ze){var dt=this.lines[Ze],Pt=Zi(dt.markedSpans,this);re&&!this.collapsed?Zo(re,Lt(dt),"text"):re&&(Pt.to!=null&&(xe=Lt(dt)),Pt.from!=null&&(ve=Lt(dt))),dt.markedSpans=Fi(dt.markedSpans,Pt),Pt.from==null&&this.collapsed&&!an(this.doc,dt)&&re&&Fr(dt,rs(re.display))}if(re&&this.collapsed&&!re.options.lineWrapping)for(var wt=0;wt<this.lines.length;++wt){var Wt=Pn(this.lines[wt]),Zn=Ni(Wt);Zn>re.display.maxLineLength&&(re.display.maxLine=Wt,re.display.maxLineLength=Zn,re.display.maxLineChanged=!0)}ve!=null&&re&&this.collapsed&&ua(re,ve,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,re&&br(re.doc)),re&&no(re,"markerCleared",re,this,ve,xe),le&&hu(re),this.parent&&this.parent.clear()}},Dn.prototype.find=function(re,le){re==null&&this.type=="bookmark"&&(re=1);for(var ye,ve,xe=0;xe<this.lines.length;++xe){var Ze=this.lines[xe],dt=Zi(Ze.markedSpans,this);if(dt.from!=null&&(ye=Xt(le?Ze:Lt(Ze),dt.from),re==-1))return ye;if(dt.to!=null&&(ve=Xt(le?Ze:Lt(Ze),dt.to),re==1))return ve}return ye&&{from:ye,to:ve}},Dn.prototype.changed=function(){var re=this,le=this.find(-1,!0),ye=this,ve=this.doc.cm;!le||!ve||Na(ve,function(){var xe=le.line,Ze=Lt(le.line),dt=es(ve,Ze);if(dt&&(oc(dt),ve.curOp.selectionChanged=ve.curOp.forceUpdate=!0),ve.curOp.updateMaxLine=!0,!an(ye.doc,xe)&&ye.height!=null){var Pt=ye.height;ye.height=null;var wt=pa(ye)-Pt;wt&&Fr(xe,xe.height+wt)}no(ve,"markerChanged",ve,re)})},Dn.prototype.attachLine=function(re){if(!this.lines.length&&this.doc.cm){var le=this.doc.cm.curOp;(!le.maybeHiddenMarkers||ct(le.maybeHiddenMarkers,this)==-1)&&(le.maybeUnhiddenMarkers||(le.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(re)},Dn.prototype.detachLine=function(re){if(this.lines.splice(ct(this.lines,re),1),!this.lines.length&&this.doc.cm){var le=this.doc.cm.curOp;(le.maybeHiddenMarkers||(le.maybeHiddenMarkers=[])).push(this)}},Et(Dn);function xd(re,le,ye,ve,xe){if(ve&&ve.shared)return Xp(re,le,ye,ve,xe);if(re.cm&&!re.cm.curOp)return js(re.cm,xd)(re,le,ye,ve,xe);var Ze=new Dn(re,xe),dt=Fn(le,ye);if(ve&&Cn(ve,Ze,!1),dt>0||dt==0&&Ze.clearWhenEmpty!==!1)return Ze;if(Ze.replacedWith&&(Ze.collapsed=!0,Ze.widgetNode=gt("span",[Ze.replacedWith],"CodeMirror-widget"),ve.handleMouseEvents||Ze.widgetNode.setAttribute("cm-ignore-events","true"),ve.insertLeft&&(Ze.widgetNode.insertLeft=!0)),Ze.collapsed){if(wn(re,le.line,le,ye,Ze)||le.line!=ye.line&&wn(re,ye.line,le,ye,Ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");ar()}Ze.addToHistory&&Ql(re,{from:le,to:ye,origin:"markText"},re.sel,NaN);var Pt=le.line,wt=re.cm,Wt;if(re.iter(Pt,ye.line+1,function(rn){wt&&Ze.collapsed&&!wt.options.lineWrapping&&Pn(rn)==wt.display.maxLine&&(Wt=!0),Ze.collapsed&&Pt!=le.line&&Fr(rn,0),fo(rn,new vi(Ze,Pt==le.line?le.ch:null,Pt==ye.line?ye.ch:null)),++Pt}),Ze.collapsed&&re.iter(le.line,ye.line+1,function(rn){an(re,rn)&&Fr(rn,0)}),Ze.clearOnEnter&&Rt(Ze,"beforeCursorEnter",function(){return Ze.clear()}),Ze.readOnly&&(zi(),(re.history.done.length||re.history.undone.length)&&re.clearHistory()),Ze.collapsed&&(Ze.id=++Yp,Ze.atomic=!0),wt){if(Wt&&(wt.curOp.updateMaxLine=!0),Ze.collapsed)ua(wt,le.line,ye.line+1);else if(Ze.className||Ze.startStyle||Ze.endStyle||Ze.css||Ze.attributes||Ze.title)for(var Zn=le.line;Zn<=ye.line;Zn++)Zo(wt,Zn,"text");Ze.atomic&&br(wt.doc),no(wt,"markerAdded",wt,Ze)}return Ze}var Jc=function(re,le){this.markers=re,this.primary=le;for(var ye=0;ye<re.length;++ye)re[ye].parent=this};Jc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var re=0;re<this.markers.length;++re)this.markers[re].clear();no(this,"clear")}},Jc.prototype.find=function(re,le){return this.primary.find(re,le)},Et(Jc);function Xp(re,le,ye,ve,xe){ve=Cn(ve),ve.shared=!1;var Ze=[xd(re,le,ye,ve,xe)],dt=Ze[0],Pt=ve.widgetNode;return Yo(re,function(wt){Pt&&(ve.widgetNode=Pt.cloneNode(!0)),Ze.push(xd(wt,Wn(wt,le),Wn(wt,ye),ve,xe));for(var Wt=0;Wt<wt.linked.length;++Wt)if(wt.linked[Wt].isParent)return;dt=Nn(Ze)}),new Jc(Ze,dt)}function Qp(re){return re.findMarks(Xt(re.first,0),re.clipPos(Xt(re.lastLine())),function(le){return le.parent})}function Jp(re,le){for(var ye=0;ye<le.length;ye++){var ve=le[ye],xe=ve.find(),Ze=re.clipPos(xe.from),dt=re.clipPos(xe.to);if(Fn(Ze,dt)){var Pt=xd(re,Ze,dt,ve.primary,ve.primary.type);ve.markers.push(Pt),Pt.parent=ve}}}function qp(re){for(var le=function(ve){var xe=re[ve],Ze=[xe.primary.doc];Yo(xe.primary.doc,function(wt){return Ze.push(wt)});for(var dt=0;dt<xe.markers.length;dt++){var Pt=xe.markers[dt];ct(Ze,Pt.doc)==-1&&(Pt.parent=null,xe.markers.splice(dt--,1))}},ye=0;ye<re.length;ye++)le(ye)}var Vh=0,zl=function(re,le,ye,ve,xe){if(!(this instanceof zl))return new zl(re,le,ye,ve,xe);ye==null&&(ye=0),Cs.call(this,[new hh([new Si("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var Ze=Xt(ye,0);this.sel=Xa(Ze),this.history=new El(null),this.id=++Vh,this.modeOption=le,this.lineSep=ve,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof re=="string"&&(re=this.splitLines(re)),Ko(this,{from:Ze,to:Ze,text:re}),ge(this,Xa(Ze),kt)};zl.prototype=_e(Cs.prototype,{constructor:zl,iter:function(re,le,ye){ye?this.iterN(re-this.first,le-re,ye):this.iterN(this.first,this.first+this.size,re)},insert:function(re,le){for(var ye=0,ve=0;ve<le.length;++ve)ye+=le[ve].height;this.insertInner(re-this.first,le,ye)},remove:function(re,le){this.removeInner(re-this.first,le)},getValue:function(re){var le=ki(this,this.first,this.first+this.size);return re===!1?le:le.join(re||this.lineSeparator())},setValue:qs(function(re){var le=Xt(this.first,0),ye=this.first+this.size-1;ta(this,{from:le,to:Xt(ye,Xr(this,ye).text.length),text:this.splitLines(re),origin:"setValue",full:!0},!0),this.cm&&Xl(this.cm,0,0),ge(this,Xa(le),kt)}),replaceRange:function(re,le,ye,ve){le=Wn(this,le),ye=ye?Wn(this,ye):le,dc(this,re,le,ye,ve)},getRange:function(re,le,ye){var ve=wi(this,Wn(this,re),Wn(this,le));return ye===!1?ve:ve.join(ye||this.lineSeparator())},getLine:function(re){var le=this.getLineHandle(re);return le&&le.text},getLineHandle:function(re){if(kr(this,re))return Xr(this,re)},getLineNumber:function(re){return Lt(re)},getLineHandleVisualStart:function(re){return typeof re=="number"&&(re=Xr(this,re)),Pn(re)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(re){return Wn(this,re)},getCursor:function(re){var le=this.sel.primary(),ye;return re==null||re=="head"?ye=le.head:re=="anchor"?ye=le.anchor:re=="end"||re=="to"||re===!1?ye=le.to():ye=le.from(),ye},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qs(function(re,le,ye){Ju(this,Wn(this,typeof re=="number"?Xt(re,le||0):re),null,ye)}),setSelection:qs(function(re,le,ye){Ju(this,Wn(this,re),Wn(this,le||re),ye)}),extendSelection:qs(function(re,le,ye){uc(this,Wn(this,re),le&&Wn(this,le),ye)}),extendSelections:qs(function(re,le){cc(this,Qr(this,re),le)}),extendSelectionsBy:qs(function(re,le){var ye=tr(this.sel.ranges,re);cc(this,Qr(this,ye),le)}),setSelections:qs(function(re,le,ye){if(re.length){for(var ve=[],xe=0;xe<re.length;xe++)ve[xe]=new To(Wn(this,re[xe].anchor),Wn(this,re[xe].head));le==null&&(le=Math.min(re.length-1,this.sel.primIndex)),ge(this,Bo(this.cm,ve,le),ye)}}),addSelection:qs(function(re,le,ye){var ve=this.sel.ranges.slice(0);ve.push(new To(Wn(this,re),Wn(this,le||re))),ge(this,Bo(this.cm,ve,ve.length-1),ye)}),getSelection:function(re){for(var le=this.sel.ranges,ye,ve=0;ve<le.length;ve++){var xe=wi(this,le[ve].from(),le[ve].to());ye=ye?ye.concat(xe):xe}return re===!1?ye:ye.join(re||this.lineSeparator())},getSelections:function(re){for(var le=[],ye=this.sel.ranges,ve=0;ve<ye.length;ve++){var xe=wi(this,ye[ve].from(),ye[ve].to());re!==!1&&(xe=xe.join(re||this.lineSeparator())),le[ve]=xe}return le},replaceSelection:function(re,le,ye){for(var ve=[],xe=0;xe<this.sel.ranges.length;xe++)ve[xe]=re;this.replaceSelections(ve,le,ye||"+input")},replaceSelections:qs(function(re,le,ye){for(var ve=[],xe=this.sel,Ze=0;Ze<xe.ranges.length;Ze++){var dt=xe.ranges[Ze];ve[Ze]={from:dt.from(),to:dt.to(),text:this.splitLines(re[Ze]),origin:ye}}for(var Pt=le&&le!="end"&&Ua(this,ve,le),wt=ve.length-1;wt>=0;wt--)ta(this,ve[wt]);Pt?ce(this,Pt):this.cm&&Yl(this.cm)}),undo:qs(function(){os(this,"undo")}),redo:qs(function(){os(this,"redo")}),undoSelection:qs(function(){os(this,"undo",!0)}),redoSelection:qs(function(){os(this,"redo",!0)}),setExtending:function(re){this.extend=re},getExtending:function(){return this.extend},historySize:function(){for(var re=this.history,le=0,ye=0,ve=0;ve<re.done.length;ve++)re.done[ve].ranges||++le;for(var xe=0;xe<re.undone.length;xe++)re.undone[xe].ranges||++ye;return{undo:le,redo:ye}},clearHistory:function(){var re=this;this.history=new El(this.history.maxGeneration),Yo(this,function(le){return le.history=re.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(re){return re&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(re){return this.history.generation==(re||this.cleanGeneration)},getHistory:function(){return{done:fl(this.history.done),undone:fl(this.history.undone)}},setHistory:function(re){var le=this.history=new El(this.history.maxGeneration);le.done=fl(re.done.slice(0),null,!0),le.undone=fl(re.undone.slice(0),null,!0)},setGutterMarker:qs(function(re,le,ye){return fu(this,re,"gutter",function(ve){var xe=ve.gutterMarkers||(ve.gutterMarkers={});return xe[le]=ye,!ye&&Be(xe)&&(ve.gutterMarkers=null),!0})}),clearGutter:qs(function(re){var le=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[re]&&fu(le,ye,"gutter",function(){return ye.gutterMarkers[re]=null,Be(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(re){var le;if(typeof re=="number"){if(!kr(this,re)||(le=re,re=Xr(this,re),!re))return null}else if(le=Lt(re),le==null)return null;return{line:le,handle:re,text:re.text,gutterMarkers:re.gutterMarkers,textClass:re.textClass,bgClass:re.bgClass,wrapClass:re.wrapClass,widgets:re.widgets}},addLineClass:qs(function(re,le,ye){return fu(this,re,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(Ie(ye).test(ve[xe]))return!1;ve[xe]+=" "+ye}return!0})}),removeLineClass:qs(function(re,le,ye){return fu(this,re,le=="gutter"?"gutter":"class",function(ve){var xe=le=="text"?"textClass":le=="background"?"bgClass":le=="gutter"?"gutterClass":"wrapClass",Ze=ve[xe];if(Ze)if(ye==null)ve[xe]=null;else{var dt=Ze.match(Ie(ye));if(!dt)return!1;var Pt=dt.index+dt[0].length;ve[xe]=Ze.slice(0,dt.index)+(!dt.index||Pt==Ze.length?"":" ")+Ze.slice(Pt)||null}else return!1;return!0})}),addLineWidget:qs(function(re,le,ye){return Gd(this,re,le,ye)}),removeLineWidget:function(re){re.clear()},markText:function(re,le,ye){return xd(this,Wn(this,re),Wn(this,le),ye,ye&&ye.type||"range")},setBookmark:function(re,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 re=Wn(this,re),xd(this,re,re,ye,"bookmark")},findMarksAt:function(re){re=Wn(this,re);var le=[],ye=Xr(this,re.line).markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve){var xe=ye[ve];(xe.from==null||xe.from<=re.ch)&&(xe.to==null||xe.to>=re.ch)&&le.push(xe.marker.parent||xe.marker)}return le},findMarks:function(re,le,ye){re=Wn(this,re),le=Wn(this,le);var ve=[],xe=re.line;return this.iter(re.line,le.line+1,function(Ze){var dt=Ze.markedSpans;if(dt)for(var Pt=0;Pt<dt.length;Pt++){var wt=dt[Pt];!(wt.to!=null&&xe==re.line&&re.ch>=wt.to||wt.from==null&&xe!=re.line||wt.from!=null&&xe==le.line&&wt.from>=le.ch)&&(!ye||ye(wt.marker))&&ve.push(wt.marker.parent||wt.marker)}++xe}),ve},getAllMarks:function(){var re=[];return this.iter(function(le){var ye=le.markedSpans;if(ye)for(var ve=0;ve<ye.length;++ve)ye[ve].from!=null&&re.push(ye[ve].marker)}),re},posFromIndex:function(re){var le,ye=this.first,ve=this.lineSeparator().length;return this.iter(function(xe){var Ze=xe.text.length+ve;if(Ze>re)return le=re,!0;re-=Ze,++ye}),Wn(this,Xt(ye,le))},indexFromPos:function(re){re=Wn(this,re);var le=re.ch;if(re.line<this.first||re.ch<0)return 0;var ye=this.lineSeparator().length;return this.iter(this.first,re.line,function(ve){le+=ve.text.length+ye}),le},copy:function(re){var le=new zl(ki(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,re&&(le.history.undoDepth=this.history.undoDepth,le.setHistory(this.getHistory())),le},linkedDoc:function(re){re||(re={});var le=this.first,ye=this.first+this.size;re.from!=null&&re.from>le&&(le=re.from),re.to!=null&&re.to<ye&&(ye=re.to);var ve=new zl(ki(this,le,ye),re.mode||this.modeOption,le,this.lineSep,this.direction);return re.sharedHist&&(ve.history=this.history),(this.linked||(this.linked=[])).push({doc:ve,sharedHist:re.sharedHist}),ve.linked=[{doc:this,isParent:!0,sharedHist:re.sharedHist}],Jp(ve,Qp(this)),ve},unlinkDoc:function(re){if(re instanceof Fa&&(re=re.doc),this.linked)for(var le=0;le<this.linked.length;++le){var ye=this.linked[le];if(ye.doc==re){this.linked.splice(le,1),re.unlinkDoc(this),qp(Qp(this));break}}if(re.history==this.history){var ve=[re.id];Yo(re,function(xe){return ve.push(xe.id)},!0),re.history=new El(null),re.history.done=fl(this.history.done,ve),re.history.undone=fl(this.history.undone,ve)}},iterLinkedDocs:function(re){Yo(this,re)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(re){return this.lineSep?re.split(this.lineSep):oi(re)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:qs(function(re){re!="rtl"&&(re="ltr"),re!=this.direction&&(this.direction=re,this.iter(function(le){return le.order=null}),this.cm&&al(this.cm))})}),zl.prototype.eachLine=zl.prototype.iter;var jd=0;function tp(re){var le=this;if(Pf(le),!(vn(le,re)||Ga(le.display,re))){Xn(re),je&&(jd=+new Date);var ye=bs(le,re,!0),ve=re.dataTransfer.files;if(!(!ye||le.isReadOnly()))if(ve&&ve.length&&window.FileReader&&window.File)for(var xe=ve.length,Ze=Array(xe),dt=0,Pt=function(){++dt==xe&&js(le,function(){ye=Wn(le.doc,ye);var yr={from:ye,to:ye,text:le.doc.splitLines(Ze.filter(function(yi){return yi!=null}).join(le.doc.lineSeparator())),origin:"paste"};ta(le.doc,yr),ce(le.doc,Xa(Wn(le.doc,ye),Wn(le.doc,Qa(yr))))})()},wt=function(yr,yi){if(le.options.allowDropFileTypes&&ct(le.options.allowDropFileTypes,yr.type)==-1){Pt();return}var xi=new FileReader;xi.onerror=function(){return Pt()},xi.onload=function(){var Di=xi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Di)){Pt();return}Ze[yi]=Di,Pt()},xi.readAsText(yr)},Wt=0;Wt<ve.length;Wt++)wt(ve[Wt],Wt);else{if(le.state.draggingText&&le.doc.sel.contains(ye)>-1){le.state.draggingText(re),setTimeout(function(){return le.display.input.focus()},20);return}try{var Zn=re.dataTransfer.getData("Text");if(Zn){var rn;if(le.state.draggingText&&!le.state.draggingText.copy&&(rn=le.listSelections()),et(le.doc,Xa(ye,ye)),rn)for(var Cr=0;Cr<rn.length;++Cr)dc(le.doc,"",rn[Cr].anchor,rn[Cr].head,"drag");le.replaceSelection(Zn,"around","paste"),le.display.input.focus()}}catch(yr){}}}}function $p(re,le){if(je&&(!re.state.draggingText||+new Date-jd<100)){Er(le);return}if(!(vn(re,le)||Ga(re.display,le))&&(le.dataTransfer.setData("Text",re.getSelection()),le.dataTransfer.effectAllowed="copyMove",le.dataTransfer.setDragImage&&!yt)){var ye=st("img",null,null,"position: fixed; left: 0; top: 0;");ye.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",He&&(ye.width=ye.height=1,re.display.wrapper.appendChild(ye),ye._top=ye.offsetTop),le.dataTransfer.setDragImage(ye,0,0),He&&ye.parentNode.removeChild(ye)}}function eg(re,le){var ye=bs(re,le);if(ye){var ve=document.createDocumentFragment();va(re,ye,ve),re.display.dragCursor||(re.display.dragCursor=st("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),re.display.lineSpace.insertBefore(re.display.dragCursor,re.display.cursorDiv)),Je(re.display.dragCursor,ve)}}function Pf(re){re.display.dragCursor&&(re.display.lineSpace.removeChild(re.display.dragCursor),re.display.dragCursor=null)}function np(re){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 Ze=0;Ze<ye.length;Ze++)re(ye[Ze])})}}var rp=!1;function qu(){rp||(fh(),rp=!0)}function fh(){var re;Rt(window,"resize",function(){re==null&&(re=setTimeout(function(){re=null,np(ip)},100))}),Rt(window,"blur",function(){return np(sc)})}function ip(re){var le=re.display;le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.scrollbarsClipped=!1,re.setSize()}for(var qc={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"},Wh=0;Wh<10;Wh++)qc[Wh+48]=qc[Wh+96]=String(Wh);for(var Tf=65;Tf<=90;Tf++)qc[Tf]=String.fromCharCode(Tf);for(var Zh=1;Zh<=12;Zh++)qc[Zh+111]=qc[Zh+63235]="F"+Zh;var $l={};$l.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"},$l.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"},$l.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"},$l.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"]},$l.default=he?$l.macDefault:$l.pcDefault;function op(re){var le=re.split(/-(?!$)/);re=le[le.length-1];for(var ye,ve,xe,Ze,dt=0;dt<le.length-1;dt++){var Pt=le[dt];if(/^(cmd|meta|m)$/i.test(Pt))Ze=!0;else if(/^a(lt)?$/i.test(Pt))ye=!0;else if(/^(c|ctrl|control)$/i.test(Pt))ve=!0;else if(/^s(hift)?$/i.test(Pt))xe=!0;else throw new Error("Unrecognized modifier name: "+Pt)}return ye&&(re="Alt-"+re),ve&&(re="Ctrl-"+re),Ze&&(re="Cmd-"+re),xe&&(re="Shift-"+re),re}function Af(re){var le={};for(var ye in re)if(re.hasOwnProperty(ye)){var ve=re[ye];if(/^(name|fallthrough|(de|at)tach)$/.test(ye))continue;if(ve=="..."){delete re[ye];continue}for(var xe=tr(ye.split(" "),op),Ze=0;Ze<xe.length;Ze++){var dt=void 0,Pt=void 0;Ze==xe.length-1?(Pt=xe.join(" "),dt=ve):(Pt=xe.slice(0,Ze+1).join(" "),dt="...");var wt=le[Pt];if(!wt)le[Pt]=dt;else if(wt!=dt)throw new Error("Inconsistent bindings for "+Pt)}delete re[ye]}for(var Wt in le)re[Wt]=le[Wt];return re}function Pu(re,le,ye,ve){le=wd(le);var xe=le.call?le.call(re,ve):le[re];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 Pu(re,le.fallthrough,ye,ve);for(var Ze=0;Ze<le.fallthrough.length;Ze++){var dt=Pu(re,le.fallthrough[Ze],ye,ve);if(dt)return dt}}}function Vd(re){var le=typeof re=="string"?re:qc[re.keyCode];return le=="Ctrl"||le=="Alt"||le=="Shift"||le=="Mod"}function Nf(re,le,ye){var ve=re;return le.altKey&&ve!="Alt"&&(re="Alt-"+re),(be?le.metaKey:le.ctrlKey)&&ve!="Ctrl"&&(re="Ctrl-"+re),(be?le.ctrlKey:le.metaKey)&&ve!="Mod"&&(re="Cmd-"+re),!ye&&le.shiftKey&&ve!="Shift"&&(re="Shift-"+re),re}function tg(re,le){if(He&&re.keyCode==34&&re.char)return!1;var ye=qc[re.keyCode];return ye==null||re.altGraphKey?!1:(re.keyCode==3&&re.code&&(ye=re.code),Nf(ye,re,le))}function wd(re){return typeof re=="string"?$l[re]:re}function Hu(re,le){for(var ye=re.doc.sel.ranges,ve=[],xe=0;xe<ye.length;xe++){for(var Ze=le(ye[xe]);ve.length&&Fn(Ze.from,Nn(ve).to)<=0;){var dt=ve.pop();if(Fn(dt.from,Ze.from)<0){Ze.from=dt.from;break}}ve.push(Ze)}Na(re,function(){for(var Pt=ve.length-1;Pt>=0;Pt--)dc(re.doc,"",ve[Pt].from,ve[Pt].to,"+delete");Yl(re)})}function ap(re,le,ye){var ve=sn(re.text,le+ye,ye);return ve<0||ve>re.text.length?null:ve}function Ps(re,le,ye){var ve=ap(re,le.ch,ye);return ve==null?null:new Xt(le.line,ve,ye<0?"after":"before")}function Kh(re,le,ye,ve,xe){if(re){le.doc.direction=="rtl"&&(xe=-xe);var Ze=En(ye,le.doc.direction);if(Ze){var dt=xe<0?Nn(Ze):Ze[0],Pt=xe<0==(dt.level==1),wt=Pt?"after":"before",Wt;if(dt.level>0||le.doc.direction=="rtl"){var Zn=Pl(le,ye);Wt=xe<0?ye.text.length-1:0;var rn=ll(le,Zn,Wt).top;Wt=Bn(function(Cr){return ll(le,Zn,Cr).top==rn},xe<0==(dt.level==1)?dt.from:dt.to-1,Wt),wt=="before"&&(Wt=ap(ye,Wt,1))}else Wt=xe<0?dt.to:dt.from;return new Xt(ve,Wt,wt)}}return new Xt(ve,xe<0?ye.text.length:0,xe<0?"before":"after")}function Lf(re,le,ye,ve){var xe=En(le,re.doc.direction);if(!xe)return Ps(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 Ze=jt(xe,ye.ch,ye.sticky),dt=xe[Ze];if(re.doc.direction=="ltr"&&dt.level%2==0&&(ve>0?dt.to>ye.ch:dt.from<ye.ch))return Ps(le,ye,ve);var Pt=function($i,yo){return ap(le,$i instanceof Xt?$i.ch:$i,yo)},wt,Wt=function($i){return re.options.lineWrapping?(wt=wt||Pl(re,le),ps(re,le,wt,$i)):{begin:0,end:le.text.length}},Zn=Wt(ye.sticky=="before"?Pt(ye,-1):ye.ch);if(re.doc.direction=="rtl"||dt.level==1){var rn=dt.level==1==ve<0,Cr=Pt(ye,rn?1:-1);if(Cr!=null&&(rn?Cr<=dt.to&&Cr<=Zn.end:Cr>=dt.from&&Cr>=Zn.begin)){var yr=rn?"before":"after";return new Xt(ye.line,Cr,yr)}}var yi=function($i,yo,lo){for(var Ao=function(Ts,Cl){return Cl?new Xt(ye.line,Pt(Ts,1),"before"):new Xt(ye.line,Ts,"after")};$i>=0&&$i<xe.length;$i+=yo){var Qo=xe[$i],uo=yo>0==(Qo.level!=1),ya=uo?lo.begin:Pt(lo.end,-1);if(Qo.from<=ya&&ya<Qo.to||(ya=uo?Qo.from:Pt(Qo.to,-1),lo.begin<=ya&&ya<lo.end))return Ao(ya,uo)}},xi=yi(Ze+ve,ve,Zn);if(xi)return xi;var Di=ve>0?Zn.end:Pt(Zn.begin,-1);return Di!=null&&!(ve>0&&Di==le.text.length)&&(xi=yi(ve>0?0:xe.length-1,ve,Wt(Di)),xi)?xi:null}var Cd={selectAll:ii,singleSelection:function(re){return re.setSelection(re.getCursor("anchor"),re.getCursor("head"),kt)},killLine:function(re){return Hu(re,function(le){if(le.empty()){var ye=Xr(re.doc,le.head.line).text.length;return le.head.ch==ye&&le.head.line<re.lastLine()?{from:le.head,to:Xt(le.head.line+1,0)}:{from:le.head,to:Xt(le.head.line,ye)}}else return{from:le.from(),to:le.to()}})},deleteLine:function(re){return Hu(re,function(le){return{from:Xt(le.from().line,0),to:Wn(re.doc,Xt(le.to().line+1,0))}})},delLineLeft:function(re){return Hu(re,function(le){return{from:Xt(le.from().line,0),to:le.from()}})},delWrappedLineLeft:function(re){return Hu(re,function(le){var ye=re.charCoords(le.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return{from:ve,to:le.from()}})},delWrappedLineRight:function(re){return Hu(re,function(le){var ye=re.charCoords(le.head,"div").top+5,ve=re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div");return{from:le.from(),to:ve}})},undo:function(re){return re.undo()},redo:function(re){return re.redo()},undoSelection:function(re){return re.undoSelection()},redoSelection:function(re){return re.redoSelection()},goDocStart:function(re){return re.extendSelection(Xt(re.firstLine(),0))},goDocEnd:function(re){return re.extendSelection(Xt(re.lastLine()))},goLineStart:function(re){return re.extendSelectionsBy(function(le){return ph(re,le.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(re){return re.extendSelectionsBy(function(le){return sp(re,le.head)},{origin:"+move",bias:1})},goLineEnd:function(re){return re.extendSelectionsBy(function(le){return Pd(re,le.head.line)},{origin:"+move",bias:-1})},goLineRight:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5;return re.coordsChar({left:re.display.lineDiv.offsetWidth+100,top:ye},"div")},kn)},goLineLeft:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5;return re.coordsChar({left:0,top:ye},"div")},kn)},goLineLeftSmart:function(re){return re.extendSelectionsBy(function(le){var ye=re.cursorCoords(le.head,"div").top+5,ve=re.coordsChar({left:0,top:ye},"div");return ve.ch<re.getLine(ve.line).search(/\S/)?sp(re,le.head):ve},kn)},goLineUp:function(re){return re.moveV(-1,"line")},goLineDown:function(re){return re.moveV(1,"line")},goPageUp:function(re){return re.moveV(-1,"page")},goPageDown:function(re){return re.moveV(1,"page")},goCharLeft:function(re){return re.moveH(-1,"char")},goCharRight:function(re){return re.moveH(1,"char")},goColumnLeft:function(re){return re.moveH(-1,"column")},goColumnRight:function(re){return re.moveH(1,"column")},goWordLeft:function(re){return re.moveH(-1,"word")},goGroupRight:function(re){return re.moveH(1,"group")},goGroupLeft:function(re){return re.moveH(-1,"group")},goWordRight:function(re){return re.moveH(1,"word")},delCharBefore:function(re){return re.deleteH(-1,"codepoint")},delCharAfter:function(re){return re.deleteH(1,"char")},delWordBefore:function(re){return re.deleteH(-1,"word")},delWordAfter:function(re){return re.deleteH(1,"word")},delGroupBefore:function(re){return re.deleteH(-1,"group")},delGroupAfter:function(re){return re.deleteH(1,"group")},indentAuto:function(re){return re.indentSelection("smart")},indentMore:function(re){return re.indentSelection("add")},indentLess:function(re){return re.indentSelection("subtract")},insertTab:function(re){return re.replaceSelection(" ")},insertSoftTab:function(re){for(var le=[],ye=re.listSelections(),ve=re.options.tabSize,xe=0;xe<ye.length;xe++){var Ze=ye[xe].from(),dt=St(re.getLine(Ze.line),Ze.ch,ve);le.push(Ot(ve-dt%ve))}re.replaceSelections(le)},defaultTab:function(re){re.somethingSelected()?re.indentSelection("add"):re.execCommand("insertTab")},transposeChars:function(re){return Na(re,function(){for(var le=re.listSelections(),ye=[],ve=0;ve<le.length;ve++)if(le[ve].empty()){var xe=le[ve].head,Ze=Xr(re.doc,xe.line).text;if(Ze){if(xe.ch==Ze.length&&(xe=new Xt(xe.line,xe.ch-1)),xe.ch>0)xe=new Xt(xe.line,xe.ch+1),re.replaceRange(Ze.charAt(xe.ch-1)+Ze.charAt(xe.ch-2),Xt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>re.doc.first){var dt=Xr(re.doc,xe.line-1).text;dt&&(xe=new Xt(xe.line,1),re.replaceRange(Ze.charAt(0)+re.doc.lineSeparator()+dt.charAt(dt.length-1),Xt(xe.line-1,dt.length-1),xe,"+transpose"))}}ye.push(new To(xe,xe))}re.setSelections(ye)})},newlineAndIndent:function(re){return Na(re,function(){for(var le=re.listSelections(),ye=le.length-1;ye>=0;ye--)re.replaceRange(re.doc.lineSeparator(),le[ye].anchor,le[ye].head,"+input");le=re.listSelections();for(var ve=0;ve<le.length;ve++)re.indentLine(le[ve].from().line,null,!0);Yl(re)})},openLine:function(re){return re.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(re){return re.toggleOverwrite()}};function ph(re,le){var ye=Xr(re.doc,le),ve=Pn(ye);return ve!=ye&&(le=Lt(ve)),Kh(!0,re,ve,le,1)}function Pd(re,le){var ye=Xr(re.doc,le),ve=Gn(ye);return ve!=ye&&(le=Lt(ve)),Kh(!0,re,ye,le,-1)}function sp(re,le){var ye=ph(re,le.line),ve=Xr(re.doc,ye.line),xe=En(ve,re.doc.direction);if(!xe||xe[0].level==0){var Ze=Math.max(ye.ch,ve.text.search(/\S/)),dt=le.line==ye.line&&le.ch<=Ze&&le.ch;return Xt(ye.line,dt?0:Ze,ye.sticky)}return ye}function gh(re,le,ye){if(typeof le=="string"&&(le=Cd[le],!le))return!1;re.display.input.ensurePolled();var ve=re.display.shift,xe=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),ye&&(re.display.shift=!1),xe=le(re)!=fn}finally{re.display.shift=ve,re.state.suppressEdits=!1}return xe}function lp(re,le,ye){for(var ve=0;ve<re.state.keyMaps.length;ve++){var xe=Pu(le,re.state.keyMaps[ve],ye,re);if(xe)return xe}return re.options.extraKeys&&Pu(le,re.options.extraKeys,ye,re)||Pu(le,re.options.keyMap,ye,re)}var $c=new pt;function Wd(re,le,ye,ve){var xe=re.state.keySeq;if(xe){if(Vd(le))return"handled";if(/\'$/.test(le)?re.state.keySeq=null:$c.set(50,function(){re.state.keySeq==xe&&(re.state.keySeq=null,re.display.input.reset())}),kf(re,xe+" "+le,ye,ve))return!0}return kf(re,le,ye,ve)}function kf(re,le,ye,ve){var xe=lp(re,le,ve);return xe=="multi"&&(re.state.keySeq=le),xe=="handled"&&no(re,"keyHandled",re,le,ye),(xe=="handled"||xe=="multi")&&(Xn(ye),Ta(re)),!!xe}function If(re,le){var ye=tg(le,!0);return ye?le.shiftKey&&!re.state.keySeq?Wd(re,"Shift-"+ye,le,function(ve){return gh(re,ve,!0)})||Wd(re,ye,le,function(ve){if(typeof ve=="string"?/^go[A-Z]/.test(ve):ve.motion)return gh(re,ve)}):Wd(re,ye,le,function(ve){return gh(re,ve)}):!1}function Yh(re,le,ye){return Wd(re,"'"+ye+"'",le,function(ve){return gh(re,ve,!0)})}var Zd=null;function up(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&(le.curOp.focus=xt(),!vn(le,re))){je&&Te<11&&re.keyCode==27&&(re.returnValue=!1);var ye=re.keyCode;le.display.shift=ye==16||re.shiftKey;var ve=If(le,re);He&&(Zd=ve?ye:null,!ve&&ye==88&&!dr&&(he?re.metaKey:re.ctrlKey)&&le.replaceSelection("",null,"cut")),oe&&!he&&!ve&&ye==46&&re.shiftKey&&!re.ctrlKey&&document.execCommand&&document.execCommand("cut"),ye==18&&!/\bCodeMirror-crosshair\b/.test(le.display.lineDiv.className)&&cp(le)}}function cp(re){var le=re.display.lineDiv;Tt(le,"CodeMirror-crosshair");function ye(ve){(ve.keyCode==18||!ve.altKey)&&(Xe(le,"CodeMirror-crosshair"),Yt(document,"keyup",ye),Yt(document,"mouseover",ye))}Rt(document,"keyup",ye),Rt(document,"mouseover",ye)}function dp(re){re.keyCode==16&&(this.doc.sel.shift=!1),vn(this,re)}function Ec(re){var le=this;if(!(re.target&&re.target!=le.display.input.getField())&&!(Ga(le.display,re)||vn(le,re)||re.ctrlKey&&!re.altKey||he&&re.metaKey)){var ye=re.keyCode,ve=re.charCode;if(He&&ye==Zd){Zd=null,Xn(re);return}if(!(He&&(!re.which||re.which<10)&&If(le,re))){var xe=String.fromCharCode(ve==null?ye:ve);xe!="\b"&&(Yh(le,re,xe)||le.display.input.onKeyPress(re))}}}var ng=400,hp=function(re,le,ye){this.time=re,this.pos=le,this.button=ye};hp.prototype.compare=function(re,le,ye){return this.time+ng>re&&Fn(le,this.pos)==0&&ye==this.button};var mh,Kd;function fp(re,le){var ye=+new Date;return Kd&&Kd.compare(ye,re,le)?(mh=Kd=null,"triple"):mh&&mh.compare(ye,re,le)?(Kd=new hp(ye,re,le),mh=null,"double"):(mh=new hp(ye,re,le),Kd=null,"single")}function Oc(re){var le=this,ye=le.display;if(!(vn(le,re)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=re.shiftKey,Ga(ye,re)){Ge||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!Qh(le,re)){var ve=bs(le,re),xe=Rr(re),Ze=ve?fp(ve,xe):"single";window.focus(),xe==1&&le.state.selectingText&&le.state.selectingText(re),!(ve&&vh(le,xe,ve,Ze,re))&&(xe==1?ve?rg(le,ve,Ze,re):ni(re)==ye.scroller&&Xn(re):xe==2?(ve&&uc(le.doc,ve),setTimeout(function(){return ye.input.focus()},20)):xe==3&&(Ae?le.display.input.onContextMenu(re):Za(le)))}}}function vh(re,le,ye,ve,xe){var Ze="Click";return ve=="double"?Ze="Double"+Ze:ve=="triple"&&(Ze="Triple"+Ze),Ze=(le==1?"Left":le==2?"Middle":"Right")+Ze,Wd(re,Nf(Ze,xe),xe,function(dt){if(typeof dt=="string"&&(dt=Cd[dt]),!dt)return!1;var Pt=!1;try{re.isReadOnly()&&(re.state.suppressEdits=!0),Pt=dt(re,ye)!=fn}finally{re.state.suppressEdits=!1}return Pt})}function Xh(re,le,ye){var ve=re.getOption("configureMouse"),xe=ve?ve(re,le,ye):{};if(xe.unit==null){var Ze=ue?ye.shiftKey&&ye.metaKey:ye.altKey;xe.unit=Ze?"rectangle":le=="single"?"char":le=="double"?"word":"line"}return(xe.extend==null||re.doc.extend)&&(xe.extend=re.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 rg(re,le,ye,ve){je?setTimeout(Kt(La,re),0):re.curOp.focus=xt();var xe=Xh(re,ye,ve),Ze=re.doc.sel,dt;re.options.dragDrop&&Mn&&!re.isReadOnly()&&ye=="single"&&(dt=Ze.contains(le))>-1&&(Fn((dt=Ze.ranges[dt]).from(),le)<0||le.xRel>0)&&(Fn(dt.to(),le)>0||le.xRel<0)?pp(re,ve,le,xe):jg(re,ve,le,xe)}function pp(re,le,ye,ve){var xe=re.display,Ze=!1,dt=js(re,function(Wt){Ge&&(xe.scroller.draggable=!1),re.state.draggingText=!1,Yt(xe.wrapper.ownerDocument,"mouseup",dt),Yt(xe.wrapper.ownerDocument,"mousemove",Pt),Yt(xe.scroller,"dragstart",wt),Yt(xe.scroller,"drop",dt),Ze||(Xn(Wt),ve.addNew||uc(re.doc,ye,null,null,ve.extend),Ge&&!yt||je&&Te==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),Pt=function(Wt){Ze=Ze||Math.abs(le.clientX-Wt.clientX)+Math.abs(le.clientY-Wt.clientY)>=10},wt=function(){return Ze=!0};Ge&&(xe.scroller.draggable=!0),re.state.draggingText=dt,dt.copy=!ve.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Rt(xe.wrapper.ownerDocument,"mouseup",dt),Rt(xe.wrapper.ownerDocument,"mousemove",Pt),Rt(xe.scroller,"dragstart",wt),Rt(xe.scroller,"drop",dt),Za(re),setTimeout(function(){return xe.input.focus()},20)}function gp(re,le,ye){if(ye=="char")return new To(le,le);if(ye=="word")return re.findWordAt(le);if(ye=="line")return new To(Xt(le.line,0),Wn(re.doc,Xt(le.line+1,0)));var ve=ye(re,le);return new To(ve.from,ve.to)}function jg(re,le,ye,ve){var xe=re.display,Ze=re.doc;Xn(le);var dt,Pt,wt=Ze.sel,Wt=wt.ranges;if(ve.addNew&&!ve.extend?(Pt=Ze.sel.contains(ye),Pt>-1?dt=Wt[Pt]:dt=new To(ye,ye)):(dt=Ze.sel.primary(),Pt=Ze.sel.primIndex),ve.unit=="rectangle")ve.addNew||(dt=new To(ye,ye)),ye=bs(re,le,!0,!0),Pt=-1;else{var Zn=gp(re,ye,ve.unit);ve.extend?dt=Qu(dt,Zn.anchor,Zn.head,ve.extend):dt=Zn}ve.addNew?Pt==-1?(Pt=Wt.length,ge(Ze,Bo(re,Wt.concat([dt]),Pt),{scroll:!1,origin:"*mouse"})):Wt.length>1&&Wt[Pt].empty()&&ve.unit=="char"&&!ve.extend?(ge(Ze,Bo(re,Wt.slice(0,Pt).concat(Wt.slice(Pt+1)),0),{scroll:!1,origin:"*mouse"}),wt=Ze.sel):wl(Ze,Pt,dt,xn):(Pt=0,ge(Ze,new so([dt],0),xn),wt=Ze.sel);var rn=ye;function Cr(lo){if(Fn(rn,lo)!=0)if(rn=lo,ve.unit=="rectangle"){for(var Ao=[],Qo=re.options.tabSize,uo=St(Xr(Ze,ye.line).text,ye.ch,Qo),ya=St(Xr(Ze,lo.line).text,lo.ch,Qo),Ts=Math.min(uo,ya),Cl=Math.max(uo,ya),Bs=Math.min(ye.line,lo.line),Tu=Math.min(re.lastLine(),Math.max(ye.line,lo.line));Bs<=Tu;Bs++){var eu=Xr(Ze,Bs).text,sl=Vn(eu,Ts,Qo);Ts==Cl?Ao.push(new To(Xt(Bs,sl),Xt(Bs,sl))):eu.length>sl&&Ao.push(new To(Xt(Bs,sl),Xt(Bs,Vn(eu,Cl,Qo))))}Ao.length||Ao.push(new To(ye,ye)),ge(Ze,Bo(re,wt.ranges.slice(0,Pt).concat(Ao),Pt),{origin:"*mouse",scroll:!1}),re.scrollIntoView(lo)}else{var Gu=dt,Gl=gp(re,lo,ve.unit),tl=Gu.anchor,Ba;Fn(Gl.anchor,tl)>0?(Ba=Gl.head,tl=Mr(Gu.from(),Gl.anchor)):(Ba=Gl.anchor,tl=Ue(Gu.to(),Gl.head));var Vs=wt.ranges.slice(0);Vs[Pt]=yh(re,new To(Wn(Ze,tl),Ba)),ge(Ze,Bo(re,Vs,Pt),xn)}}var yr=xe.wrapper.getBoundingClientRect(),yi=0;function xi(lo){var Ao=++yi,Qo=bs(re,lo,!0,ve.unit=="rectangle");if(Qo)if(Fn(Qo,rn)!=0){re.curOp.focus=xt(),Cr(Qo);var uo=aa(xe,Ze);(Qo.line>=uo.to||Qo.line<uo.from)&&setTimeout(js(re,function(){yi==Ao&&xi(lo)}),150)}else{var ya=lo.clientY<yr.top?-20:lo.clientY>yr.bottom?20:0;ya&&setTimeout(js(re,function(){yi==Ao&&(xe.scroller.scrollTop+=ya,xi(lo))}),50)}}function Di(lo){re.state.selectingText=!1,yi=1/0,lo&&(Xn(lo),xe.input.focus()),Yt(xe.wrapper.ownerDocument,"mousemove",$i),Yt(xe.wrapper.ownerDocument,"mouseup",yo),Ze.history.lastSelOrigin=null}var $i=js(re,function(lo){lo.buttons===0||!Rr(lo)?Di(lo):xi(lo)}),yo=js(re,Di);re.state.selectingText=yo,Rt(xe.wrapper.ownerDocument,"mousemove",$i),Rt(xe.wrapper.ownerDocument,"mouseup",yo)}function yh(re,le){var ye=le.anchor,ve=le.head,xe=Xr(re.doc,ye.line);if(Fn(ye,ve)==0&&ye.sticky==ve.sticky)return le;var Ze=En(xe);if(!Ze)return le;var dt=jt(Ze,ye.ch,ye.sticky),Pt=Ze[dt];if(Pt.from!=ye.ch&&Pt.to!=ye.ch)return le;var wt=dt+(Pt.from==ye.ch==(Pt.level!=1)?0:1);if(wt==0||wt==Ze.length)return le;var Wt;if(ve.line!=ye.line)Wt=(ve.line-ye.line)*(re.doc.direction=="ltr"?1:-1)>0;else{var Zn=jt(Ze,ve.ch,ve.sticky),rn=Zn-dt||(ve.ch-ye.ch)*(Pt.level==1?-1:1);Zn==wt-1||Zn==wt?Wt=rn<0:Wt=rn>0}var Cr=Ze[wt+(Wt?-1:0)],yr=Wt==(Cr.level==1),yi=yr?Cr.from:Cr.to,xi=yr?"after":"before";return ye.ch==yi&&ye.sticky==xi?le:new To(new Xt(ye.line,yi,xi),ve)}function Df(re,le,ye,ve){var xe,Ze;if(le.touches)xe=le.touches[0].clientX,Ze=le.touches[0].clientY;else try{xe=le.clientX,Ze=le.clientY}catch(Cr){return!1}if(xe>=Math.floor(re.display.gutters.getBoundingClientRect().right))return!1;ve&&Xn(le);var dt=re.display,Pt=dt.lineDiv.getBoundingClientRect();if(Ze>Pt.bottom||!un(re,ye))return Jt(le);Ze-=Pt.top-dt.viewOffset;for(var wt=0;wt<re.display.gutterSpecs.length;++wt){var Wt=dt.gutters.childNodes[wt];if(Wt&&Wt.getBoundingClientRect().right>=xe){var Zn=cn(re.doc,Ze),rn=re.display.gutterSpecs[wt];return en(re,ye,re,Zn,rn.className,le),Jt(le)}}}function Qh(re,le){return Df(re,le,"gutterClick",!0)}function Rf(re,le){Ga(re.display,le)||ig(re,le)||vn(re,le,"contextmenu")||Ae||re.display.input.onContextMenu(le)}function ig(re,le){return un(re,"gutterContextMenu")?Df(re,le,"gutterContextMenu",!1):!1}function mp(re){re.display.wrapper.className=re.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+re.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ou(re)}var Td={toString:function(){return"CodeMirror.Init"}},Jh={},qh={};function og(re){var le=re.optionHandlers;function ye(ve,xe,Ze,dt){re.defaults[ve]=xe,Ze&&(le[ve]=dt?function(Pt,wt,Wt){Wt!=Td&&Ze(Pt,wt,Wt)}:Ze)}re.defineOption=ye,re.Init=Td,ye("value","",function(ve,xe){return ve.setValue(xe)},!0),ye("mode",null,function(ve,xe){ve.doc.modeOption=xe,xo(ve)},!0),ye("indentUnit",2,xo,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(ve){Dl(ve),Ou(ve),ua(ve)},!0),ye("lineSeparator",null,function(ve,xe){if(ve.doc.lineSep=xe,!!xe){var Ze=[],dt=ve.doc.first;ve.doc.iter(function(wt){for(var Wt=0;;){var Zn=wt.text.indexOf(xe,Wt);if(Zn==-1)break;Wt=Zn+xe.length,Ze.push(Xt(dt,Zn))}dt++});for(var Pt=Ze.length-1;Pt>=0;Pt--)dc(ve.doc,xe,Ze[Pt],Xt(Ze[Pt].line,Ze[Pt].ch+xe.length))}}),ye("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ve,xe,Ze){ve.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),Ze!=Td&&ve.refresh()}),ye("specialCharPlaceholder",ko,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){mp(ve),er(ve)},!0),ye("keyMap","default",function(ve,xe,Ze){var dt=wd(xe),Pt=Ze!=Td&&wd(Ze);Pt&&Pt.detach&&Pt.detach(ve,dt),dt.attach&&dt.attach(ve,Pt||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,vp,!0),ye("gutters",[],function(ve,xe){ve.display.gutterSpecs=Sr(xe,ve.options.lineNumbers),er(ve)},!0),ye("fixedGutter",!0,function(ve,xe){ve.display.gutters.style.left=xe?ac(ve.display)+"px":"0",ve.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(ve){return Is(ve)},!0),ye("scrollbarStyle","native",function(ve){Bl(ve),Is(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=Sr(ve.options.gutters,xe),er(ve)},!0),ye("firstLineNumber",1,er,!0),ye("lineNumberFormatter",function(ve){return ve},er,!0),ye("showCursorWhenSelecting",!1,Es,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(ve,xe){xe=="nocursor"&&(sc(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,Mf),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,Es,!0),ye("singleCursorHeightPerLine",!0,Es,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,Dl,!0),ye("addModeClass",!1,Dl,!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,Dl,!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 Mf(re,le,ye){var ve=ye&&ye!=Td;if(!le!=!ve){var xe=re.display.dragFunctions,Ze=le?Rt:Yt;Ze(re.display.scroller,"dragstart",xe.start),Ze(re.display.scroller,"dragenter",xe.enter),Ze(re.display.scroller,"dragover",xe.over),Ze(re.display.scroller,"dragleave",xe.leave),Ze(re.display.scroller,"drop",xe.drop)}}function vp(re){re.options.lineWrapping?(Tt(re.display.wrapper,"CodeMirror-wrap"),re.display.sizer.style.minWidth="",re.display.sizerWidth=null):(Xe(re.display.wrapper,"CodeMirror-wrap"),si(re)),Eo(re),ua(re),Ou(re),setTimeout(function(){return Is(re)},100)}function Fa(re,le){var ye=this;if(!(this instanceof Fa))return new Fa(re,le);this.options=le=le?Cn(le):{},Cn(Jh,le,!1);var ve=le.value;typeof ve=="string"?ve=new zl(ve,le.mode,null,le.lineSeparator,le.direction):le.mode&&(ve.modeOption=le.mode),this.doc=ve;var xe=new Fa.inputStyles[le.inputStyle](this),Ze=this.display=new Zr(re,ve,xe,le);Ze.wrapper.CodeMirror=this,mp(this),le.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bl(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 pt,keySeq:null,specialChars:null},le.autofocus&&!ee&&Ze.input.focus(),je&&Te<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),Yd(this),qu(),kl(this),this.curOp.forceUpdate=!0,Ea(this,ve),le.autofocus&&!ee||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&na(ye)},20):sc(this);for(var dt in qh)qh.hasOwnProperty(dt)&&qh[dt](this,le[dt],Td);Ln(this),le.finishInit&&le.finishInit(this);for(var Pt=0;Pt<Xd.length;++Pt)Xd[Pt](this);hu(this),Ge&&le.lineWrapping&&getComputedStyle(Ze.lineDiv).textRendering=="optimizelegibility"&&(Ze.lineDiv.style.textRendering="auto")}Fa.defaults=Jh,Fa.optionHandlers=qh;function Yd(re){var le=re.display;Rt(le.scroller,"mousedown",js(re,Oc)),je&&Te<11?Rt(le.scroller,"dblclick",js(re,function(wt){if(!vn(re,wt)){var Wt=bs(re,wt);if(!(!Wt||Qh(re,wt)||Ga(re.display,wt))){Xn(wt);var Zn=re.findWordAt(Wt);uc(re.doc,Zn.anchor,Zn.head)}}})):Rt(le.scroller,"dblclick",function(wt){return vn(re,wt)||Xn(wt)}),Rt(le.scroller,"contextmenu",function(wt){return Rf(re,wt)}),Rt(le.input.getField(),"contextmenu",function(wt){le.scroller.contains(wt.target)||Rf(re,wt)});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 Ze(wt){if(wt.touches.length!=1)return!1;var Wt=wt.touches[0];return Wt.radiusX<=1&&Wt.radiusY<=1}function dt(wt,Wt){if(Wt.left==null)return!0;var Zn=Wt.left-wt.left,rn=Wt.top-wt.top;return Zn*Zn+rn*rn>20*20}Rt(le.scroller,"touchstart",function(wt){if(!vn(re,wt)&&!Ze(wt)&&!Qh(re,wt)){le.input.ensurePolled(),clearTimeout(ye);var Wt=+new Date;le.activeTouch={start:Wt,moved:!1,prev:Wt-ve.end<=300?ve:null},wt.touches.length==1&&(le.activeTouch.left=wt.touches[0].pageX,le.activeTouch.top=wt.touches[0].pageY)}}),Rt(le.scroller,"touchmove",function(){le.activeTouch&&(le.activeTouch.moved=!0)}),Rt(le.scroller,"touchend",function(wt){var Wt=le.activeTouch;if(Wt&&!Ga(le,wt)&&Wt.left!=null&&!Wt.moved&&new Date-Wt.start<300){var Zn=re.coordsChar(le.activeTouch,"page"),rn;!Wt.prev||dt(Wt,Wt.prev)?rn=new To(Zn,Zn):!Wt.prev.prev||dt(Wt,Wt.prev.prev)?rn=re.findWordAt(Zn):rn=new To(Xt(Zn.line,0),Wn(re.doc,Xt(Zn.line+1,0))),re.setSelection(rn.anchor,rn.head),re.focus(),Xn(wt)}xe()}),Rt(le.scroller,"touchcancel",xe),Rt(le.scroller,"scroll",function(){le.scroller.clientHeight&&(Nl(re,le.scroller.scrollTop),bl(re,le.scroller.scrollLeft,!0),en(re,"scroll",re))}),Rt(le.scroller,"mousewheel",function(wt){return ea(re,wt)}),Rt(le.scroller,"DOMMouseScroll",function(wt){return ea(re,wt)}),Rt(le.wrapper,"scroll",function(){return le.wrapper.scrollTop=le.wrapper.scrollLeft=0}),le.dragFunctions={enter:function(wt){vn(re,wt)||Er(wt)},over:function(wt){vn(re,wt)||(eg(re,wt),Er(wt))},start:function(wt){return $p(re,wt)},drop:js(re,tp),leave:function(wt){vn(re,wt)||Pf(re)}};var Pt=le.input.getField();Rt(Pt,"keyup",function(wt){return dp.call(re,wt)}),Rt(Pt,"keydown",js(re,up)),Rt(Pt,"keypress",js(re,Ec)),Rt(Pt,"focus",function(wt){return na(re,wt)}),Rt(Pt,"blur",function(wt){return sc(re,wt)})}var Xd=[];Fa.defineInitHook=function(re){return Xd.push(re)};function pl(re,le,ye,ve){var xe=re.doc,Ze;ye==null&&(ye="add"),ye=="smart"&&(xe.mode.indent?Ze=Vi(re,le).state:ye="prev");var dt=re.options.tabSize,Pt=Xr(xe,le),wt=St(Pt.text,null,dt);Pt.stateAfter&&(Pt.stateAfter=null);var Wt=Pt.text.match(/^\s*/)[0],Zn;if(!ve&&!/\S/.test(Pt.text))Zn=0,ye="not";else if(ye=="smart"&&(Zn=xe.mode.indent(Ze,Pt.text.slice(Wt.length),Pt.text),Zn==fn||Zn>150)){if(!ve)return;ye="prev"}ye=="prev"?le>xe.first?Zn=St(Xr(xe,le-1).text,null,dt):Zn=0:ye=="add"?Zn=wt+re.options.indentUnit:ye=="subtract"?Zn=wt-re.options.indentUnit:typeof ye=="number"&&(Zn=wt+ye),Zn=Math.max(0,Zn);var rn="",Cr=0;if(re.options.indentWithTabs)for(var yr=Math.floor(Zn/dt);yr;--yr)Cr+=dt,rn+=" ";if(Cr<Zn&&(rn+=Ot(Zn-Cr)),rn!=Wt)return dc(xe,rn,Xt(le,0),Xt(le,Wt.length),"+input"),Pt.stateAfter=null,!0;for(var yi=0;yi<xe.sel.ranges.length;yi++){var xi=xe.sel.ranges[yi];if(xi.head.line==le&&xi.head.ch<Wt.length){var Di=Xt(le,Wt.length);wl(xe,yi,new To(Di,Di));break}}}var zu=null;function cd(re){zu=re}function $h(re,le,ye,ve,xe){var Ze=re.doc;re.display.shift=!1,ve||(ve=Ze.sel);var dt=+new Date-200,Pt=xe=="paste"||re.state.pasteIncoming>dt,wt=oi(le),Wt=null;if(Pt&&ve.ranges.length>1)if(zu&&zu.text.join(`
|
|
|
`)==le){if(ve.ranges.length%zu.text.length==0){Wt=[];for(var Zn=0;Zn<zu.text.length;Zn++)Wt.push(Ze.splitLines(zu.text[Zn]))}}else wt.length==ve.ranges.length&&re.options.pasteLinesPerSelection&&(Wt=tr(wt,function($i){return[$i]}));for(var rn=re.curOp.updateInput,Cr=ve.ranges.length-1;Cr>=0;Cr--){var yr=ve.ranges[Cr],yi=yr.from(),xi=yr.to();yr.empty()&&(ye&&ye>0?yi=Xt(yi.line,yi.ch-ye):re.state.overwrite&&!Pt?xi=Xt(xi.line,Math.min(Xr(Ze,xi.line).text.length,xi.ch+Nn(wt).length)):Pt&&zu&&zu.lineWise&&zu.text.join(`
|
|
|
`)==wt.join(`
|
|
|
`)&&(yi=xi=Xt(yi.line,0)));var Di={from:yi,to:xi,text:Wt?Wt[Cr%Wt.length]:wt,origin:xe||(Pt?"paste":re.state.cutIncoming>dt?"cut":"+input")};ta(re.doc,Di),no(re,"inputRead",re,Di)}le&&!Pt&&Sp(re,le),Yl(re),re.curOp.updateInput<2&&(re.curOp.updateInput=rn),re.curOp.typing=!0,re.state.pasteIncoming=re.state.cutIncoming=-1}function yp(re,le){var ye=re.clipboardData&&re.clipboardData.getData("Text");if(ye)return re.preventDefault(),!le.isReadOnly()&&!le.options.disableInput&&Na(le,function(){return $h(le,ye,0,null,"paste")}),!0}function Sp(re,le){if(!(!re.options.electricChars||!re.options.smartIndent))for(var ye=re.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 Ze=re.getModeAt(xe.head),dt=!1;if(Ze.electricChars){for(var Pt=0;Pt<Ze.electricChars.length;Pt++)if(le.indexOf(Ze.electricChars.charAt(Pt))>-1){dt=pl(re,xe.head.line,"smart");break}}else Ze.electricInput&&Ze.electricInput.test(Xr(re.doc,xe.head.line).text.slice(0,xe.head.ch))&&(dt=pl(re,xe.head.line,"smart"));dt&&no(re,"electricInput",re,xe.head.line)}}}function bp(re){for(var le=[],ye=[],ve=0;ve<re.doc.sel.ranges.length;ve++){var xe=re.doc.sel.ranges[ve].head.line,Ze={anchor:Xt(xe,0),head:Xt(xe+1,0)};ye.push(Ze),le.push(re.getRange(Ze.anchor,Ze.head))}return{text:le,ranges:ye}}function Ep(re,le,ye,ve){re.setAttribute("autocorrect",ye?"":"off"),re.setAttribute("autocapitalize",ve?"":"off"),re.setAttribute("spellcheck",!!le)}function xp(){var re=st("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),le=st("div",[re],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ge?re.style.width="1000px":re.setAttribute("wrap","off"),Fe&&(re.style.border="1px solid black"),Ep(re),le}function Ad(re){var le=re.optionHandlers,ye=re.helpers={};re.prototype={constructor:re,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ve,xe){var Ze=this.options,dt=Ze[ve];Ze[ve]==xe&&ve!="mode"||(Ze[ve]=xe,le.hasOwnProperty(ve)&&js(this,le[ve])(this,xe,dt),en(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"](wd(ve))},removeKeyMap:function(ve){for(var xe=this.state.keyMaps,Ze=0;Ze<xe.length;++Ze)if(xe[Ze]==ve||xe[Ze].name==ve)return xe.splice(Ze,1),!0},addOverlay:$s(function(ve,xe){var Ze=ve.token?ve:re.getMode(this.options,ve);if(Ze.startState)throw new Error("Overlays may not be stateful.");hr(this.state.overlays,{mode:Ze,modeSpec:ve,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(dt){return dt.priority}),this.state.modeGen++,ua(this)}),removeOverlay:$s(function(ve){for(var xe=this.state.overlays,Ze=0;Ze<xe.length;++Ze){var dt=xe[Ze].modeSpec;if(dt==ve||typeof ve=="string"&&dt.name==ve){xe.splice(Ze,1),this.state.modeGen++,ua(this);return}}}),indentLine:$s(function(ve,xe,Ze){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),kr(this.doc,ve)&&pl(this,ve,xe,Ze)}),indentSelection:$s(function(ve){for(var xe=this.doc.sel.ranges,Ze=-1,dt=0;dt<xe.length;dt++){var Pt=xe[dt];if(Pt.empty())Pt.head.line>Ze&&(pl(this,Pt.head.line,ve,!0),Ze=Pt.head.line,dt==this.doc.sel.primIndex&&Yl(this));else{var wt=Pt.from(),Wt=Pt.to(),Zn=Math.max(Ze,wt.line);Ze=Math.min(this.lastLine(),Wt.line-(Wt.ch?0:1))+1;for(var rn=Zn;rn<Ze;++rn)pl(this,rn,ve);var Cr=this.doc.sel.ranges;wt.ch==0&&xe.length==Cr.length&&Cr[dt].from().ch>0&&wl(this.doc,dt,new To(wt,Cr[dt].to()),kt)}}}),getTokenAt:function(ve,xe){return Pi(this,ve,xe)},getLineTokens:function(ve,xe){return Pi(this,Xt(ve),xe,!0)},getTokenTypeAt:function(ve){ve=Wn(this.doc,ve);var xe=Ci(this,Xr(this.doc,ve.line)),Ze=0,dt=(xe.length-1)/2,Pt=ve.ch,wt;if(Pt==0)wt=xe[2];else for(;;){var Wt=Ze+dt>>1;if((Wt?xe[Wt*2-1]:0)>=Pt)dt=Wt;else if(xe[Wt*2+1]<Pt)Ze=Wt+1;else{wt=xe[Wt*2+2];break}}var Zn=wt?wt.indexOf("overlay "):-1;return Zn<0?wt:Zn==0?null:wt.slice(0,Zn-1)},getModeAt:function(ve){var xe=this.doc.mode;return xe.innerMode?re.innerMode(xe,this.getTokenAt(ve).state).mode:xe},getHelper:function(ve,xe){return this.getHelpers(ve,xe)[0]},getHelpers:function(ve,xe){var Ze=[];if(!ye.hasOwnProperty(xe))return Ze;var dt=ye[xe],Pt=this.getModeAt(ve);if(typeof Pt[xe]=="string")dt[Pt[xe]]&&Ze.push(dt[Pt[xe]]);else if(Pt[xe])for(var wt=0;wt<Pt[xe].length;wt++){var Wt=dt[Pt[xe][wt]];Wt&&Ze.push(Wt)}else Pt.helperType&&dt[Pt.helperType]?Ze.push(dt[Pt.helperType]):dt[Pt.name]&&Ze.push(dt[Pt.name]);for(var Zn=0;Zn<dt._global.length;Zn++){var rn=dt._global[Zn];rn.pred(Pt,this)&&ct(Ze,rn.val)==-1&&Ze.push(rn.val)}return Ze},getStateAfter:function(ve,xe){var Ze=this.doc;return ve=Ur(Ze,ve==null?Ze.first+Ze.size-1:ve),Vi(this,ve+1,xe).state},cursorCoords:function(ve,xe){var Ze,dt=this.doc.sel.primary();return ve==null?Ze=dt.head:typeof ve=="object"?Ze=Wn(this.doc,ve):Ze=ve?dt.from():dt.to(),wa(this,Ze,xe||"page")},charCoords:function(ve,xe){return zs(this,Wn(this.doc,ve),xe||"page")},coordsChar:function(ve,xe){return ve=yu(this,ve,xe||"page"),cs(this,ve.left,ve.top)},lineAtHeight:function(ve,xe){return ve=yu(this,{top:ve,left:0},xe||"page").top,cn(this.doc,ve+this.display.viewOffset)},heightAtLine:function(ve,xe,Ze){var dt=!1,Pt;if(typeof ve=="number"){var wt=this.doc.first+this.doc.size-1;ve<this.doc.first?ve=this.doc.first:ve>wt&&(ve=wt,dt=!0),Pt=Xr(this.doc,ve)}else Pt=ve;return ks(this,Pt,{top:0,left:0},xe||"page",Ze||dt).top+(dt?this.doc.height-Vr(Pt):0)},defaultTextHeight:function(){return rs(this.display)},defaultCharWidth:function(){return Al(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ve,xe,Ze,dt,Pt){var wt=this.display;ve=wa(this,Wn(this.doc,ve));var Wt=ve.bottom,Zn=ve.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),wt.sizer.appendChild(xe),dt=="over")Wt=ve.top;else if(dt=="above"||dt=="near"){var rn=Math.max(wt.wrapper.clientHeight,this.doc.height),Cr=Math.max(wt.sizer.clientWidth,wt.lineSpace.clientWidth);(dt=="above"||ve.bottom+xe.offsetHeight>rn)&&ve.top>xe.offsetHeight?Wt=ve.top-xe.offsetHeight:ve.bottom+xe.offsetHeight<=rn&&(Wt=ve.bottom),Zn+xe.offsetWidth>Cr&&(Zn=Cr-xe.offsetWidth)}xe.style.top=Wt+"px",xe.style.left=xe.style.right="",Pt=="right"?(Zn=wt.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(Pt=="left"?Zn=0:Pt=="middle"&&(Zn=(wt.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=Zn+"px"),Ze&&bu(this,{left:Zn,top:Wt,right:Zn+xe.offsetWidth,bottom:Wt+xe.offsetHeight})},triggerOnKeyDown:$s(up),triggerOnKeyPress:$s(Ec),triggerOnKeyUp:dp,triggerOnMouseDown:$s(Oc),execCommand:function(ve){if(Cd.hasOwnProperty(ve))return Cd[ve].call(null,this)},triggerElectric:$s(function(ve){Sp(this,ve)}),findPosH:function(ve,xe,Ze,dt){var Pt=1;xe<0&&(Pt=-1,xe=-xe);for(var wt=Wn(this.doc,ve),Wt=0;Wt<xe&&(wt=Sh(this.doc,wt,Pt,Ze,dt),!wt.hitSide);++Wt);return wt},moveH:$s(function(ve,xe){var Ze=this;this.extendSelectionsBy(function(dt){return Ze.display.shift||Ze.doc.extend||dt.empty()?Sh(Ze.doc,dt.head,ve,xe,Ze.options.rtlMoveVisually):ve<0?dt.from():dt.to()},kn)}),deleteH:$s(function(ve,xe){var Ze=this.doc.sel,dt=this.doc;Ze.somethingSelected()?dt.replaceSelection("",null,"+delete"):Hu(this,function(Pt){var wt=Sh(dt,Pt.head,ve,xe,!1);return ve<0?{from:wt,to:Pt.head}:{from:Pt.head,to:wt}})}),findPosV:function(ve,xe,Ze,dt){var Pt=1,wt=dt;xe<0&&(Pt=-1,xe=-xe);for(var Wt=Wn(this.doc,ve),Zn=0;Zn<xe;++Zn){var rn=wa(this,Wt,"div");if(wt==null?wt=rn.left:rn.left=wt,Wt=Fc(this,rn,Pt,Ze),Wt.hitSide)break}return Wt},moveV:$s(function(ve,xe){var Ze=this,dt=this.doc,Pt=[],wt=!this.display.shift&&!dt.extend&&dt.sel.somethingSelected();if(dt.extendSelectionsBy(function(Zn){if(wt)return ve<0?Zn.from():Zn.to();var rn=wa(Ze,Zn.head,"div");Zn.goalColumn!=null&&(rn.left=Zn.goalColumn),Pt.push(rn.left);var Cr=Fc(Ze,rn,ve,xe);return xe=="page"&&Zn==dt.sel.primary()&&Xc(Ze,zs(Ze,Cr,"div").top-rn.top),Cr},kn),Pt.length)for(var Wt=0;Wt<dt.sel.ranges.length;Wt++)dt.sel.ranges[Wt].goalColumn=Pt[Wt]}),findWordAt:function(ve){var xe=this.doc,Ze=Xr(xe,ve.line).text,dt=ve.ch,Pt=ve.ch;if(Ze){var wt=this.getHelper(ve,"wordChars");(ve.sticky=="before"||Pt==Ze.length)&&dt?--dt:++Pt;for(var Wt=Ze.charAt(dt),Zn=at(Wt,wt)?function(rn){return at(rn,wt)}:/\s/.test(Wt)?function(rn){return/\s/.test(rn)}:function(rn){return!/\s/.test(rn)&&!at(rn)};dt>0&&Zn(Ze.charAt(dt-1));)--dt;for(;Pt<Ze.length&&Zn(Ze.charAt(Pt));)++Pt}return new To(Xt(ve.line,dt),Xt(ve.line,Pt))},toggleOverwrite:function(ve){ve!=null&&ve==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Tt(this.display.cursorDiv,"CodeMirror-overwrite"):Xe(this.display.cursorDiv,"CodeMirror-overwrite"),en(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==xt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$s(function(ve,xe){Xl(this,ve,xe)}),getScrollInfo:function(){var ve=this.display.scroller;return{left:ve.scrollLeft,top:ve.scrollTop,height:ve.scrollHeight-da(this)-this.display.barHeight,width:ve.scrollWidth-da(this)-this.display.barWidth,clientHeight:ol(this),clientWidth:Rs(this)}},scrollIntoView:$s(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:Xt(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?la(this,ve):du(this,ve.from,ve.to,ve.margin)}),setSize:$s(function(ve,xe){var Ze=this,dt=function(wt){return typeof wt=="number"||/^\d+$/.test(String(wt))?wt+"px":wt};ve!=null&&(this.display.wrapper.style.width=dt(ve)),xe!=null&&(this.display.wrapper.style.height=dt(xe)),this.options.lineWrapping&&Mu(this);var Pt=this.display.viewFrom;this.doc.iter(Pt,this.display.viewTo,function(wt){if(wt.widgets){for(var Wt=0;Wt<wt.widgets.length;Wt++)if(wt.widgets[Wt].noHScroll){Zo(Ze,Pt,"widget");break}}++Pt}),this.curOp.forceUpdate=!0,en(this,"refresh",this)}),operation:function(ve){return Na(this,ve)},startOperation:function(){return kl(this)},endOperation:function(){return hu(this)},refresh:$s(function(){var ve=this.display.cachedTextHeight;ua(this),this.curOp.forceUpdate=!0,Ou(this),Xl(this,this.doc.scrollLeft,this.doc.scrollTop),Ft(this.display),(ve==null||Math.abs(ve-rs(this.display))>.5||this.options.lineWrapping)&&Eo(this),en(this,"refresh",this)}),swapDoc:$s(function(ve){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),Ea(this,ve),Ou(this),this.display.input.reset(),Xl(this,ve.scrollLeft,ve.scrollTop),this.curOp.forceScroll=!0,no(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}},Et(re),re.registerHelper=function(ve,xe,Ze){ye.hasOwnProperty(ve)||(ye[ve]=re[ve]={_global:[]}),ye[ve][xe]=Ze},re.registerGlobalHelper=function(ve,xe,Ze,dt){re.registerHelper(ve,xe,dt),ye[ve]._global.push({pred:Ze,val:dt})}}function Sh(re,le,ye,ve,xe){var Ze=le,dt=ye,Pt=Xr(re,le.line),wt=xe&&re.direction=="rtl"?-ye:ye;function Wt(){var yo=le.line+wt;return yo<re.first||yo>=re.first+re.size?!1:(le=new Xt(yo,le.ch,le.sticky),Pt=Xr(re,yo))}function Zn(yo){var lo;if(ve=="codepoint"){var Ao=Pt.text.charCodeAt(le.ch+(ve>0?0:-1));isNaN(Ao)?lo=null:lo=new Xt(le.line,Math.max(0,Math.min(Pt.text.length,le.ch+ye*(Ao>=55296&&Ao<56320?2:1))),-ye)}else xe?lo=Lf(re.cm,Pt,le,ye):lo=Ps(Pt,le,ye);if(lo==null)if(!yo&&Wt())le=Kh(xe,re.cm,Pt,le.line,wt);else return!1;else le=lo;return!0}if(ve=="char"||ve=="codepoint")Zn();else if(ve=="column")Zn(!0);else if(ve=="word"||ve=="group")for(var rn=null,Cr=ve=="group",yr=re.cm&&re.cm.getHelper(le,"wordChars"),yi=!0;!(ye<0&&!Zn(!yi));yi=!1){var xi=Pt.text.charAt(le.ch)||`
|
|
|
`,Di=at(xi,yr)?"w":Cr&&xi==`
|
|
|
`?"n":!Cr||/\s/.test(xi)?null:"p";if(Cr&&!yi&&!Di&&(Di="s"),rn&&rn!=Di){ye<0&&(ye=1,Zn(),le.sticky="after");break}if(Di&&(rn=Di),ye>0&&!Zn(!yi))break}var $i=Lo(re,le,Ze,dt,!0);return fr(Ze,$i)&&($i.hitSide=!0),$i}function Fc(re,le,ye,ve){var xe=re.doc,Ze=le.left,dt;if(ve=="page"){var Pt=Math.min(re.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),wt=Math.max(Pt-.5*rs(re.display),3);dt=(ye>0?le.bottom:le.top)+ye*wt}else ve=="line"&&(dt=ye>0?le.bottom+3:le.top-3);for(var Wt;Wt=cs(re,Ze,dt),!!Wt.outside;){if(ye<0?dt<=0:dt>=xe.height){Wt.hitSide=!0;break}dt+=ye*5}return Wt}var Ja=function(re){this.cm=re,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ja.prototype.init=function(re){var le=this,ye=this,ve=ye.cm,xe=ye.div=re.lineDiv;Ep(xe,ve.options.spellcheck,ve.options.autocorrect,ve.options.autocapitalize);function Ze(Pt){for(var wt=Pt.target;wt;wt=wt.parentNode){if(wt==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(wt.className))break}return!1}Rt(xe,"paste",function(Pt){!Ze(Pt)||vn(ve,Pt)||yp(Pt,ve)||Te<=11&&setTimeout(js(ve,function(){return le.updateFromDOM()}),20)}),Rt(xe,"compositionstart",function(Pt){le.composing={data:Pt.data,done:!1}}),Rt(xe,"compositionupdate",function(Pt){le.composing||(le.composing={data:Pt.data,done:!1})}),Rt(xe,"compositionend",function(Pt){le.composing&&(Pt.data!=le.composing.data&&le.readFromDOMSoon(),le.composing.done=!0)}),Rt(xe,"touchstart",function(){return ye.forceCompositionEnd()}),Rt(xe,"input",function(){le.composing||le.readFromDOMSoon()});function dt(Pt){if(!(!Ze(Pt)||vn(ve,Pt))){if(ve.somethingSelected())cd({lineWise:!1,text:ve.getSelections()}),Pt.type=="cut"&&ve.replaceSelection("",null,"cut");else if(ve.options.lineWiseCopyCut){var wt=bp(ve);cd({lineWise:!0,text:wt.text}),Pt.type=="cut"&&ve.operation(function(){ve.setSelections(wt.ranges,0,kt),ve.replaceSelection("",null,"cut")})}else return;if(Pt.clipboardData){Pt.clipboardData.clearData();var Wt=zu.text.join(`
|
|
|
`);if(Pt.clipboardData.setData("Text",Wt),Pt.clipboardData.getData("Text")==Wt){Pt.preventDefault();return}}var Zn=xp(),rn=Zn.firstChild;ve.display.lineSpace.insertBefore(Zn,ve.display.lineSpace.firstChild),rn.value=zu.text.join(`
|
|
|
`);var Cr=document.activeElement;Qt(rn),setTimeout(function(){ve.display.lineSpace.removeChild(Zn),Cr.focus(),Cr==xe&&ye.showPrimarySelection()},50)}}Rt(xe,"copy",dt),Rt(xe,"cut",dt)},Ja.prototype.screenReaderLabelChanged=function(re){re?this.div.setAttribute("aria-label",re):this.div.removeAttribute("aria-label")},Ja.prototype.prepareSelection=function(){var re=Fu(this.cm,!1);return re.focus=document.activeElement==this.div,re},Ja.prototype.showSelection=function(re,le){!re||!this.cm.display.view.length||((re.focus||le)&&this.showPrimarySelection(),this.showMultipleSelections(re))},Ja.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ja.prototype.showPrimarySelection=function(){var re=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){re.removeAllRanges();return}var Ze=tf(le,re.anchorNode,re.anchorOffset),dt=tf(le,re.focusNode,re.focusOffset);if(!(Ze&&!Ze.bad&&dt&&!dt.bad&&Fn(Mr(Ze,dt),ve)==0&&Fn(Ue(Ze,dt),xe)==0)){var Pt=le.display.view,wt=ve.line>=le.display.viewFrom&&Of(le,ve)||{node:Pt[0].measure.map[2],offset:0},Wt=xe.line<le.display.viewTo&&Of(le,xe);if(!Wt){var Zn=Pt[Pt.length-1].measure,rn=Zn.maps?Zn.maps[Zn.maps.length-1]:Zn.map;Wt={node:rn[rn.length-1],offset:rn[rn.length-2]-rn[rn.length-3]}}if(!wt||!Wt){re.removeAllRanges();return}var Cr=re.rangeCount&&re.getRangeAt(0),yr;try{yr=rt(wt.node,wt.offset,Wt.offset,Wt.node)}catch(yi){}yr&&(!oe&&le.state.focused?(re.collapse(wt.node,wt.offset),yr.collapsed||(re.removeAllRanges(),re.addRange(yr))):(re.removeAllRanges(),re.addRange(yr)),Cr&&re.anchorNode==null?re.addRange(Cr):oe&&this.startGracePeriod()),this.rememberSelection()}},Ja.prototype.startGracePeriod=function(){var re=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){re.gracePeriod=!1,re.selectionChanged()&&re.cm.operation(function(){return re.cm.curOp.selectionChanged=!0})},20)},Ja.prototype.showMultipleSelections=function(re){Je(this.cm.display.cursorDiv,re.cursors),Je(this.cm.display.selectionDiv,re.selection)},Ja.prototype.rememberSelection=function(){var re=this.getSelection();this.lastAnchorNode=re.anchorNode,this.lastAnchorOffset=re.anchorOffset,this.lastFocusNode=re.focusNode,this.lastFocusOffset=re.focusOffset},Ja.prototype.selectionInEditor=function(){var re=this.getSelection();if(!re.rangeCount)return!1;var le=re.getRangeAt(0).commonAncestorContainer;return mt(this.div,le)},Ja.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ja.prototype.blur=function(){this.div.blur()},Ja.prototype.getField=function(){return this.div},Ja.prototype.supportsTouch=function(){return!0},Ja.prototype.receivedFocus=function(){var re=this;this.selectionInEditor()?this.pollSelection():Na(this.cm,function(){return re.cm.curOp.selectionChanged=!0});function le(){re.cm.state.focused&&(re.pollSelection(),re.polling.set(re.cm.options.pollInterval,le))}this.polling.set(this.cm.options.pollInterval,le)},Ja.prototype.selectionChanged=function(){var re=this.getSelection();return re.anchorNode!=this.lastAnchorNode||re.anchorOffset!=this.lastAnchorOffset||re.focusNode!=this.lastFocusNode||re.focusOffset!=this.lastFocusOffset},Ja.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var re=this.getSelection(),le=this.cm;if(te&&Ke&&this.cm.display.gutterSpecs.length&&ef(re.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,re.anchorNode,re.anchorOffset),ve=tf(le,re.focusNode,re.focusOffset);ye&&ve&&Na(le,function(){ge(le.doc,Xa(ye,ve),kt),(ye.bad||ve.bad)&&(le.curOp.selectionChanged=!0)})}}},Ja.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var re=this.cm,le=re.display,ye=re.doc.sel.primary(),ve=ye.from(),xe=ye.to();if(ve.ch==0&&ve.line>re.firstLine()&&(ve=Xt(ve.line-1,Xr(re.doc,ve.line-1).length)),xe.ch==Xr(re.doc,xe.line).text.length&&xe.line<re.lastLine()&&(xe=Xt(xe.line+1,0)),ve.line<le.viewFrom||xe.line>le.viewTo-1)return!1;var Ze,dt,Pt;ve.line==le.viewFrom||(Ze=Js(re,ve.line))==0?(dt=Lt(le.view[0].line),Pt=le.view[0].node):(dt=Lt(le.view[Ze].line),Pt=le.view[Ze-1].node.nextSibling);var wt=Js(re,xe.line),Wt,Zn;if(wt==le.view.length-1?(Wt=le.viewTo-1,Zn=le.lineDiv.lastChild):(Wt=Lt(le.view[wt+1].line)-1,Zn=le.view[wt+1].node.previousSibling),!Pt)return!1;for(var rn=re.doc.splitLines(bh(re,Pt,Zn,dt,Wt)),Cr=wi(re.doc,Xt(dt,0),Xt(Wt,Xr(re.doc,Wt).text.length));rn.length>1&&Cr.length>1;)if(Nn(rn)==Nn(Cr))rn.pop(),Cr.pop(),Wt--;else if(rn[0]==Cr[0])rn.shift(),Cr.shift(),dt++;else break;for(var yr=0,yi=0,xi=rn[0],Di=Cr[0],$i=Math.min(xi.length,Di.length);yr<$i&&xi.charCodeAt(yr)==Di.charCodeAt(yr);)++yr;for(var yo=Nn(rn),lo=Nn(Cr),Ao=Math.min(yo.length-(rn.length==1?yr:0),lo.length-(Cr.length==1?yr:0));yi<Ao&&yo.charCodeAt(yo.length-yi-1)==lo.charCodeAt(lo.length-yi-1);)++yi;if(rn.length==1&&Cr.length==1&&dt==ve.line)for(;yr&&yr>ve.ch&&yo.charCodeAt(yo.length-yi-1)==lo.charCodeAt(lo.length-yi-1);)yr--,yi++;rn[rn.length-1]=yo.slice(0,yo.length-yi).replace(/^\u200b+/,""),rn[0]=rn[0].slice(yr).replace(/\u200b+$/,"");var Qo=Xt(dt,yr),uo=Xt(Wt,Cr.length?Nn(Cr).length-yi:0);if(rn.length>1||rn[0]||Fn(Qo,uo))return dc(re.doc,rn,Qo,uo,"+input"),!0},Ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ja.prototype.reset=function(){this.forceCompositionEnd()},Ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ja.prototype.readFromDOMSoon=function(){var re=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(re.readDOMTimeout=null,re.composing)if(re.composing.done)re.composing=null;else return;re.updateFromDOM()},80))},Ja.prototype.updateFromDOM=function(){var re=this;(this.cm.isReadOnly()||!this.pollContent())&&Na(this.cm,function(){return ua(re.cm)})},Ja.prototype.setUneditable=function(re){re.contentEditable="false"},Ja.prototype.onKeyPress=function(re){re.charCode==0||this.composing||(re.preventDefault(),this.cm.isReadOnly()||js(this.cm,$h)(this.cm,String.fromCharCode(re.charCode==null?re.keyCode:re.charCode),0))},Ja.prototype.readOnlyChanged=function(re){this.div.contentEditable=String(re!="nocursor")},Ja.prototype.onContextMenu=function(){},Ja.prototype.resetPosition=function(){},Ja.prototype.needsContentAttribute=!0;function Of(re,le){var ye=es(re,le.line);if(!ye||ye.hidden)return null;var ve=Xr(re.doc,le.line),xe=$a(ye,ve,le.line),Ze=En(ve,re.doc.direction),dt="left";if(Ze){var Pt=jt(Ze,le.ch);dt=Pt%2?"right":"left"}var wt=rc(xe.map,le.ch,dt);return wt.offset=wt.collapse=="right"?wt.end:wt.start,wt}function ef(re){for(var le=re;le;le=le.parentNode)if(/CodeMirror-gutter-wrapper/.test(le.className))return!0;return!1}function Qd(re,le){return le&&(re.bad=!0),re}function bh(re,le,ye,ve,xe){var Ze="",dt=!1,Pt=re.doc.lineSeparator(),wt=!1;function Wt(yr){return function(yi){return yi.id==yr}}function Zn(){dt&&(Ze+=Pt,wt&&(Ze+=Pt),dt=wt=!1)}function rn(yr){yr&&(Zn(),Ze+=yr)}function Cr(yr){if(yr.nodeType==1){var yi=yr.getAttribute("cm-text");if(yi){rn(yi);return}var xi=yr.getAttribute("cm-marker"),Di;if(xi){var $i=re.findMarks(Xt(ve,0),Xt(xe+1,0),Wt(+xi));$i.length&&(Di=$i[0].find(0))&&rn(wi(re.doc,Di.from,Di.to).join(Pt));return}if(yr.getAttribute("contenteditable")=="false")return;var yo=/^(pre|div|p|li|table|br)$/i.test(yr.nodeName);if(!/^br$/i.test(yr.nodeName)&&yr.textContent.length==0)return;yo&&Zn();for(var lo=0;lo<yr.childNodes.length;lo++)Cr(yr.childNodes[lo]);/^(pre|p)$/i.test(yr.nodeName)&&(wt=!0),yo&&(dt=!0)}else yr.nodeType==3&&rn(yr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Cr(le),le!=ye;)le=le.nextSibling,wt=!1;return Ze}function tf(re,le,ye){var ve;if(le==re.display.lineDiv){if(ve=re.display.lineDiv.childNodes[ye],!ve)return Qd(re.clipPos(Xt(re.display.viewTo-1)),!0);le=null,ye=0}else for(ve=le;;ve=ve.parentNode){if(!ve||ve==re.display.lineDiv)return null;if(ve.parentNode&&ve.parentNode==re.display.lineDiv)break}for(var xe=0;xe<re.display.view.length;xe++){var Ze=re.display.view[xe];if(Ze.node==ve)return ag(Ze,le,ye)}}function ag(re,le,ye){var ve=re.text.firstChild,xe=!1;if(!le||!mt(ve,le))return Qd(Xt(Lt(re.line),0),!0);if(le==ve&&(xe=!0,le=ve.childNodes[ye],ye=0,!le)){var Ze=re.rest?Nn(re.rest):re.line;return Qd(Xt(Lt(Ze),Ze.text.length),xe)}var dt=le.nodeType==3?le:null,Pt=le;for(!dt&&le.childNodes.length==1&&le.firstChild.nodeType==3&&(dt=le.firstChild,ye&&(ye=dt.nodeValue.length));Pt.parentNode!=ve;)Pt=Pt.parentNode;var wt=re.measure,Wt=wt.maps;function Zn(Di,$i,yo){for(var lo=-1;lo<(Wt?Wt.length:0);lo++)for(var Ao=lo<0?wt.map:Wt[lo],Qo=0;Qo<Ao.length;Qo+=3){var uo=Ao[Qo+2];if(uo==Di||uo==$i){var ya=Lt(lo<0?re.line:re.rest[lo]),Ts=Ao[Qo]+yo;return(yo<0||uo!=Di)&&(Ts=Ao[Qo+(yo?1:0)]),Xt(ya,Ts)}}}var rn=Zn(dt,Pt,ye);if(rn)return Qd(rn,xe);for(var Cr=Pt.nextSibling,yr=dt?dt.nodeValue.length-ye:0;Cr;Cr=Cr.nextSibling){if(rn=Zn(Cr,Cr.firstChild,0),rn)return Qd(Xt(rn.line,rn.ch-yr),xe);yr+=Cr.textContent.length}for(var yi=Pt.previousSibling,xi=ye;yi;yi=yi.previousSibling){if(rn=Zn(yi,yi.firstChild,-1),rn)return Qd(Xt(rn.line,rn.ch+xi),xe);xi+=yi.textContent.length}}var gl=function(re){this.cm=re,this.prevInput="",this.pollingFast=!1,this.polling=new pt,this.hasSelection=!1,this.composing=null};gl.prototype.init=function(re){var le=this,ye=this,ve=this.cm;this.createField(re);var xe=this.textarea;re.wrapper.insertBefore(this.wrapper,re.wrapper.firstChild),Fe&&(xe.style.width="0px"),Rt(xe,"input",function(){je&&Te>=9&&le.hasSelection&&(le.hasSelection=null),ye.poll()}),Rt(xe,"paste",function(dt){vn(ve,dt)||yp(dt,ve)||(ve.state.pasteIncoming=+new Date,ye.fastPoll())});function Ze(dt){if(!vn(ve,dt)){if(ve.somethingSelected())cd({lineWise:!1,text:ve.getSelections()});else if(ve.options.lineWiseCopyCut){var Pt=bp(ve);cd({lineWise:!0,text:Pt.text}),dt.type=="cut"?ve.setSelections(Pt.ranges,null,kt):(ye.prevInput="",xe.value=Pt.text.join(`
|
|
|
`),Qt(xe))}else return;dt.type=="cut"&&(ve.state.cutIncoming=+new Date)}}Rt(xe,"cut",Ze),Rt(xe,"copy",Ze),Rt(re.scroller,"paste",function(dt){if(!(Ga(re,dt)||vn(ve,dt))){if(!xe.dispatchEvent){ve.state.pasteIncoming=+new Date,ye.focus();return}var Pt=new Event("paste");Pt.clipboardData=dt.clipboardData,xe.dispatchEvent(Pt)}}),Rt(re.lineSpace,"selectstart",function(dt){Ga(re,dt)||Xn(dt)}),Rt(xe,"compositionstart",function(){var dt=ve.getCursor("from");ye.composing&&ye.composing.range.clear(),ye.composing={start:dt,range:ve.markText(dt,ve.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(xe,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},gl.prototype.createField=function(re){this.wrapper=xp(),this.textarea=this.wrapper.firstChild},gl.prototype.screenReaderLabelChanged=function(re){re?this.textarea.setAttribute("aria-label",re):this.textarea.removeAttribute("aria-label")},gl.prototype.prepareSelection=function(){var re=this.cm,le=re.display,ye=re.doc,ve=Fu(re);if(re.options.moveInputWithCursor){var xe=wa(re,ye.sel.primary().head,"div"),Ze=le.wrapper.getBoundingClientRect(),dt=le.lineDiv.getBoundingClientRect();ve.teTop=Math.max(0,Math.min(le.wrapper.clientHeight-10,xe.top+dt.top-Ze.top)),ve.teLeft=Math.max(0,Math.min(le.wrapper.clientWidth-10,xe.left+dt.left-Ze.left))}return ve},gl.prototype.showSelection=function(re){var le=this.cm,ye=le.display;Je(ye.cursorDiv,re.cursors),Je(ye.selectionDiv,re.selection),re.teTop!=null&&(this.wrapper.style.top=re.teTop+"px",this.wrapper.style.left=re.teLeft+"px")},gl.prototype.reset=function(re){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&&Qt(this.textarea),je&&Te>=9&&(this.hasSelection=ye)}else re||(this.prevInput=this.textarea.value="",je&&Te>=9&&(this.hasSelection=null))}},gl.prototype.getField=function(){return this.textarea},gl.prototype.supportsTouch=function(){return!1},gl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ee||xt()!=this.textarea))try{this.textarea.focus()}catch(re){}},gl.prototype.blur=function(){this.textarea.blur()},gl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gl.prototype.receivedFocus=function(){this.slowPoll()},gl.prototype.slowPoll=function(){var re=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){re.poll(),re.cm.state.focused&&re.slowPoll()})},gl.prototype.fastPoll=function(){var re=!1,le=this;le.pollingFast=!0;function ye(){var ve=le.poll();!ve&&!re?(re=!0,le.polling.set(60,ye)):(le.pollingFast=!1,le.slowPoll())}le.polling.set(20,ye)},gl.prototype.poll=function(){var re=this,le=this.cm,ye=this.textarea,ve=this.prevInput;if(this.contextMenuPending||!le.state.focused||Oe(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(je&&Te>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return le.display.input.reset(),!1;if(le.doc.sel==le.display.selForContextMenu){var Ze=xe.charCodeAt(0);if(Ze==8203&&!ve&&(ve="\u200B"),Ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var dt=0,Pt=Math.min(ve.length,xe.length);dt<Pt&&ve.charCodeAt(dt)==xe.charCodeAt(dt);)++dt;return Na(le,function(){$h(le,xe.slice(dt),ve.length-dt,null,re.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
|
|
|
`)>-1?ye.value=re.prevInput="":re.prevInput=xe,re.composing&&(re.composing.range.clear(),re.composing.range=le.markText(re.composing.start,le.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gl.prototype.onKeyPress=function(){je&&Te>=9&&(this.hasSelection=null),this.fastPoll()},gl.prototype.onContextMenu=function(re){var le=this,ye=le.cm,ve=ye.display,xe=le.textarea;le.contextMenuPending&&le.contextMenuPending();var Ze=bs(ye,re),dt=ve.scroller.scrollTop;if(!Ze||He)return;var Pt=ye.options.resetSelectionOnContextMenu;Pt&&ye.doc.sel.contains(Ze)==-1&&js(ye,ge)(ye.doc,Xa(Ze),kt);var wt=xe.style.cssText,Wt=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: `+(re.clientY-Zn.top-5)+"px; left: "+(re.clientX-Zn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(je?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var rn;Ge&&(rn=window.scrollY),ve.input.focus(),Ge&&window.scrollTo(null,rn),ve.input.reset(),ye.somethingSelected()||(xe.value=le.prevInput=" "),le.contextMenuPending=yr,ve.selForContextMenu=ye.doc.sel,clearTimeout(ve.detectingSelectAll);function Cr(){if(xe.selectionStart!=null){var xi=ye.somethingSelected(),Di="\u200B"+(xi?xe.value:"");xe.value="\u21DA",xe.value=Di,le.prevInput=xi?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=Di.length,ve.selForContextMenu=ye.doc.sel}}function yr(){if(le.contextMenuPending==yr&&(le.contextMenuPending=!1,le.wrapper.style.cssText=Wt,xe.style.cssText=wt,je&&Te<9&&ve.scrollbars.setScrollTop(ve.scroller.scrollTop=dt),xe.selectionStart!=null)){(!je||je&&Te<9)&&Cr();var xi=0,Di=function(){ve.selForContextMenu==ye.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&le.prevInput=="\u200B"?js(ye,ii)(ye):xi++<10?ve.detectingSelectAll=setTimeout(Di,500):(ve.selForContextMenu=null,ve.input.reset())};ve.detectingSelectAll=setTimeout(Di,200)}}if(je&&Te>=9&&Cr(),Ae){Er(re);var yi=function(){Yt(window,"mouseup",yi),setTimeout(yr,20)};Rt(window,"mouseup",yi)}else setTimeout(yr,50)},gl.prototype.readOnlyChanged=function(re){re||this.reset(),this.textarea.disabled=re=="nocursor",this.textarea.readOnly=!!re},gl.prototype.setUneditable=function(){},gl.prototype.needsContentAttribute=!1;function Ff(re,le){if(le=le?Cn(le):{},le.value=re.value,!le.tabindex&&re.tabIndex&&(le.tabindex=re.tabIndex),!le.placeholder&&re.placeholder&&(le.placeholder=re.placeholder),le.autofocus==null){var ye=xt();le.autofocus=ye==re||re.getAttribute("autofocus")!=null&&ye==document.body}function ve(){re.value=Pt.getValue()}var xe;if(re.form&&(Rt(re.form,"submit",ve),!le.leaveSubmitMethodAlone)){var Ze=re.form;xe=Ze.submit;try{var dt=Ze.submit=function(){ve(),Ze.submit=xe,Ze.submit(),Ze.submit=dt}}catch(wt){}}le.finishInit=function(wt){wt.save=ve,wt.getTextArea=function(){return re},wt.toTextArea=function(){wt.toTextArea=isNaN,ve(),re.parentNode.removeChild(wt.getWrapperElement()),re.style.display="",re.form&&(Yt(re.form,"submit",ve),!le.leaveSubmitMethodAlone&&typeof re.form.submit=="function"&&(re.form.submit=xe))}},re.style.display="none";var Pt=Fa(function(wt){return re.parentNode.insertBefore(wt,re.nextSibling)},le);return Pt}function Jd(re){re.off=Yt,re.on=Rt,re.wheelEventPixels=jo,re.Doc=zl,re.splitLines=oi,re.countColumn=St,re.findColumn=Vn,re.isWordChar=Ye,re.Pass=fn,re.signal=en,re.Line=Si,re.changeEnd=Qa,re.scrollbarModel=Ll,re.Pos=Xt,re.cmpPos=Fn,re.modes=Lr,re.mimeModes=zr,re.resolveMode=On,re.getMode=yn,re.modeExtensions=Sn,re.extendMode=Jn,re.copyState=ui,re.startState=ci,re.innerMode=Yr,re.commands=Cd,re.keyMap=$l,re.keyName=tg,re.isModifierKey=Vd,re.lookupKey=Pu,re.normalizeKeyMap=Af,re.StringStream=ur,re.SharedTextMarker=Jc,re.TextMarker=Dn,re.LineWidget=ud,re.e_preventDefault=Xn,re.e_stopPropagation=ir,re.e_stop=Er,re.addClass=Tt,re.contains=mt,re.rmClass=Xe,re.keyNames=qc}og(Fa),Ad(Fa);var Bc="iter insert remove copy getEditor constructor".split(" ");for(var qd in zl.prototype)zl.prototype.hasOwnProperty(qd)&&ct(Bc,qd)<0&&(Fa.prototype[qd]=function(re){return function(){return re.apply(this.doc,arguments)}}(zl.prototype[qd]));return Et(zl),Fa.inputStyles={textarea:gl,contenteditable:Ja},Fa.defineMode=function(re){!Fa.defaults.mode&&re!="null"&&(Fa.defaults.mode=re),wr.apply(this,arguments)},Fa.defineMIME=Ti,Fa.defineMode("null",function(){return{token:function(re){return re.skipToEnd()}}}),Fa.defineMIME("text/plain","null"),Fa.defineExtension=function(re,le){Fa.prototype[re]=le},Fa.defineDocExtension=function(re,le){zl.prototype[re]=le},Fa.fromTextArea=Ff,Jd(Fa),Fa.version="5.58.2",Fa})},25419:function(We,Ee,ae){(function(oe){oe(ae(89780),ae(15525),ae(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(Pe,ke){var De=oe.getMode(Pe,"text/html"),je=De.name=="null";function Te(St){if(oe.findModeByName){var pt=oe.findModeByName(St);pt&&(St=pt.mime||pt.mimes[0])}var ct=oe.getMode(Pe,St);return ct.name=="null"?null:ct}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 Ge={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var lt in Ge)Ge.hasOwnProperty(lt)&&ke.tokenTypeOverrides[lt]&&(Ge[lt]=ke.tokenTypeOverrides[lt]);var Ke=/^([*\-_])(?:\s*\1){2,}\s*$/,He=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,yt=/^\[(x| )\](?=\s)/i,$e=ke.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Mt=/^ {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(St,pt,ct){return pt.f=pt.inline=ct,ct(St,pt)}function me(St,pt,ct){return pt.f=pt.block=ct,ct(St,pt)}function be(St){return!St||!/\S/.test(St.string)}function Ae(St){if(St.linkTitle=!1,St.linkHref=!1,St.linkText=!1,St.em=!1,St.strong=!1,St.strikethrough=!1,St.quote=0,St.indentedCode=!1,St.f==Xe){var pt=je;if(!pt){var ct=oe.innerMode(De,St.htmlState);pt=ct.mode.name=="xml"&&ct.state.tagStart===null&&!ct.state.context&&ct.state.tokenize.isInText}pt&&(St.f=gt,St.block=Ie,St.htmlState=null)}return St.trailingSpace=0,St.trailingSpaceNewLine=!1,St.prevLine=St.thisLine,St.thisLine={stream:null},null}function Ie(St,pt){var ct=St.column()===pt.indentation,qt=be(pt.prevLine.stream),fn=pt.indentedCode,kt=pt.prevLine.hr,xn=pt.list!==!1,kn=(pt.listStack[pt.listStack.length-1]||0)+3;pt.indentedCode=!1;var Vn=pt.indentation;if(pt.indentationDiff===null&&(pt.indentationDiff=pt.indentation,xn)){for(pt.list=null;Vn<pt.listStack[pt.listStack.length-1];)pt.listStack.pop(),pt.listStack.length?pt.indentation=pt.listStack[pt.listStack.length-1]:pt.list=!1;pt.list!==!1&&(pt.indentationDiff=Vn-pt.listStack[pt.listStack.length-1])}var Vt=!qt&&!kt&&!pt.prevLine.header&&(!xn||!fn)&&!pt.prevLine.fencedCodeEnd,Ot=(pt.list===!1||kt||qt)&&pt.indentation<=kn&&St.match(Ke),Nn=null;if(pt.indentationDiff>=4&&(fn||pt.prevLine.fencedCodeEnd||pt.prevLine.header||qt))return St.skipToEnd(),pt.indentedCode=!0,Ge.code;if(St.eatSpace())return null;if(ct&&pt.indentation<=kn&&(Nn=St.match($e))&&Nn[1].length<=6)return pt.quote=0,pt.header=Nn[1].length,pt.thisLine.header=!0,ke.highlightFormatting&&(pt.formatting="header"),pt.f=pt.inline,Je(pt);if(pt.indentation<=kn&&St.eat(">"))return pt.quote=ct?1:pt.quote+1,ke.highlightFormatting&&(pt.formatting="quote"),St.eatSpace(),Je(pt);if(!Ot&&!pt.setext&&ct&&pt.indentation<=kn&&(Nn=St.match(He))){var tr=Nn[1]?"ol":"ul";return pt.indentation=Vn+St.current().length,pt.list=!0,pt.quote=0,pt.listStack.push(pt.indentation),pt.em=!1,pt.strong=!1,pt.code=!1,pt.strikethrough=!1,ke.taskLists&&St.match(yt,!1)&&(pt.taskList=!0),pt.f=pt.inline,ke.highlightFormatting&&(pt.formatting=["list","list-"+tr]),Je(pt)}else{if(ct&&pt.indentation<=kn&&(Nn=St.match(te,!0)))return pt.quote=0,pt.fencedEndRE=new RegExp(Nn[1]+"+ *$"),pt.localMode=ke.fencedCodeBlockHighlighting&&Te(Nn[2]||ke.fencedCodeBlockDefaultMode),pt.localMode&&(pt.localState=oe.startState(pt.localMode)),pt.f=pt.block=nt,ke.highlightFormatting&&(pt.formatting="code-block"),pt.code=-1,Je(pt);if(pt.setext||(!Vt||!xn)&&!pt.quote&&pt.list===!1&&!pt.code&&!Ot&&!ee.test(St.string)&&(Nn=St.lookAhead(1))&&(Nn=Nn.match(Mt)))return pt.setext?(pt.header=pt.setext,pt.setext=0,St.skipToEnd(),ke.highlightFormatting&&(pt.formatting="header")):(pt.header=Nn[0].charAt(0)=="="?1:2,pt.setext=pt.header),pt.thisLine.header=!0,pt.f=pt.inline,Je(pt);if(Ot)return St.skipToEnd(),pt.hr=!0,pt.thisLine.hr=!0,Ge.hr;if(St.peek()==="[")return fe(St,pt,zt)}return fe(St,pt,pt.inline)}function Xe(St,pt){var ct=De.token(St,pt.htmlState);if(!je){var qt=oe.innerMode(De,pt.htmlState);(qt.mode.name=="xml"&&qt.state.tagStart===null&&!qt.state.context&&qt.state.tokenize.isInText||pt.md_inside&&St.current().indexOf(">")>-1)&&(pt.f=gt,pt.block=Ie,pt.htmlState=null)}return ct}function nt(St,pt){var ct=pt.listStack[pt.listStack.length-1]||0,qt=pt.indentation<ct,fn=ct+3;if(pt.fencedEndRE&&pt.indentation<=fn&&(qt||St.match(pt.fencedEndRE))){ke.highlightFormatting&&(pt.formatting="code-block");var kt;return qt||(kt=Je(pt)),pt.localMode=pt.localState=null,pt.block=Ie,pt.f=gt,pt.fencedEndRE=null,pt.code=0,pt.thisLine.fencedCodeEnd=!0,qt?me(St,pt,pt.block):kt}else return pt.localMode?pt.localMode.token(St,pt.localState):(St.skipToEnd(),Ge.code)}function Je(St){var pt=[];if(St.formatting){pt.push(Ge.formatting),typeof St.formatting=="string"&&(St.formatting=[St.formatting]);for(var ct=0;ct<St.formatting.length;ct++)pt.push(Ge.formatting+"-"+St.formatting[ct]),St.formatting[ct]==="header"&&pt.push(Ge.formatting+"-"+St.formatting[ct]+"-"+St.header),St.formatting[ct]==="quote"&&(!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=St.quote?pt.push(Ge.formatting+"-"+St.formatting[ct]+"-"+St.quote):pt.push("error"))}if(St.taskOpen)return pt.push("meta"),pt.length?pt.join(" "):null;if(St.taskClosed)return pt.push("property"),pt.length?pt.join(" "):null;if(St.linkHref?pt.push(Ge.linkHref,"url"):(St.strong&&pt.push(Ge.strong),St.em&&pt.push(Ge.em),St.strikethrough&&pt.push(Ge.strikethrough),St.emoji&&pt.push(Ge.emoji),St.linkText&&pt.push(Ge.linkText),St.code&&pt.push(Ge.code),St.image&&pt.push(Ge.image),St.imageAltText&&pt.push(Ge.imageAltText,"link"),St.imageMarker&&pt.push(Ge.imageMarker)),St.header&&pt.push(Ge.header,Ge.header+"-"+St.header),St.quote&&(pt.push(Ge.quote),!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=St.quote?pt.push(Ge.quote+"-"+St.quote):pt.push(Ge.quote+"-"+ke.maxBlockquoteDepth)),St.list!==!1){var qt=(St.listStack.length-1)%3;qt?qt===1?pt.push(Ge.list2):pt.push(Ge.list3):pt.push(Ge.list1)}return St.trailingSpaceNewLine?pt.push("trailing-space-new-line"):St.trailingSpace&&pt.push("trailing-space-"+(St.trailingSpace%2?"a":"b")),pt.length?pt.join(" "):null}function st(St,pt){if(St.match(Fe,!0))return Je(pt)}function gt(St,pt){var ct=pt.text(St,pt);if(typeof ct!="undefined")return ct;if(pt.list)return pt.list=null,Je(pt);if(pt.taskList){var qt=St.match(yt,!0)[1]===" ";return qt?pt.taskOpen=!0:pt.taskClosed=!0,ke.highlightFormatting&&(pt.formatting="task"),pt.taskList=!1,Je(pt)}if(pt.taskOpen=!1,pt.taskClosed=!1,pt.header&&St.match(/^#+$/,!0))return ke.highlightFormatting&&(pt.formatting="header"),Je(pt);var fn=St.next();if(pt.linkTitle){pt.linkTitle=!1;var kt=fn;fn==="("&&(kt=")"),kt=(kt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var xn="^\\s*(?:[^"+kt+"\\\\]+|\\\\\\\\|\\\\.)"+kt;if(St.match(new RegExp(xn),!0))return Ge.linkHref}if(fn==="`"){var kn=pt.formatting;ke.highlightFormatting&&(pt.formatting="code"),St.eatWhile("`");var Vn=St.current().length;if(pt.code==0&&(!pt.quote||Vn==1))return pt.code=Vn,Je(pt);if(Vn==pt.code){var Vt=Je(pt);return pt.code=0,Vt}else return pt.formatting=kn,Je(pt)}else if(pt.code)return Je(pt);if(fn==="\\"&&(St.next(),ke.highlightFormatting)){var Ot=Je(pt),Nn=Ge.formatting+"-escape";return Ot?Ot+" "+Nn:Nn}if(fn==="!"&&St.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return pt.imageMarker=!0,pt.image=!0,ke.highlightFormatting&&(pt.formatting="image"),Je(pt);if(fn==="["&&pt.imageMarker&&St.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return pt.imageMarker=!1,pt.imageAltText=!0,ke.highlightFormatting&&(pt.formatting="image"),Je(pt);if(fn==="]"&&pt.imageAltText){ke.highlightFormatting&&(pt.formatting="image");var Ot=Je(pt);return pt.imageAltText=!1,pt.image=!1,pt.inline=pt.f=mt,Ot}if(fn==="["&&!pt.image)return pt.linkText&&St.match(/^.*?\]/)||(pt.linkText=!0,ke.highlightFormatting&&(pt.formatting="link")),Je(pt);if(fn==="]"&&pt.linkText){ke.highlightFormatting&&(pt.formatting="link");var Ot=Je(pt);return pt.linkText=!1,pt.inline=pt.f=St.match(/\(.*?\)| ?\[.*?\]/,!1)?mt:gt,Ot}if(fn==="<"&&St.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){pt.f=pt.inline=rt,ke.highlightFormatting&&(pt.formatting="link");var Ot=Je(pt);return Ot?Ot+=" ":Ot="",Ot+Ge.linkInline}if(fn==="<"&&St.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){pt.f=pt.inline=rt,ke.highlightFormatting&&(pt.formatting="link");var Ot=Je(pt);return Ot?Ot+=" ":Ot="",Ot+Ge.linkEmail}if(ke.xml&&fn==="<"&&St.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var tr=St.string.indexOf(">",St.pos);if(tr!=-1){var hr=St.string.substring(St.start,tr);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(hr)&&(pt.md_inside=!0)}return St.backUp(1),pt.htmlState=oe.startState(De),me(St,pt,Xe)}if(ke.xml&&fn==="<"&&St.match(/^\/\w*?>/))return pt.md_inside=!1,"tag";if(fn==="*"||fn==="_"){for(var ot=1,_e=St.pos==1?" ":St.string.charAt(St.pos-2);ot<3&&St.eat(fn);)ot++;var Re=St.peek()||" ",Ye=!/\s/.test(Re)&&(!he.test(Re)||/\s/.test(_e)||he.test(_e)),at=!/\s/.test(_e)&&(!he.test(_e)||/\s/.test(Re)||he.test(Re)),Be=null,bt=null;if(ot%2&&(!pt.em&&Ye&&(fn==="*"||!at||he.test(_e))?Be=!0:pt.em==fn&&at&&(fn==="*"||!Ye||he.test(Re))&&(Be=!1)),ot>1&&(!pt.strong&&Ye&&(fn==="*"||!at||he.test(_e))?bt=!0:pt.strong==fn&&at&&(fn==="*"||!Ye||he.test(Re))&&(bt=!1)),bt!=null||Be!=null){ke.highlightFormatting&&(pt.formatting=Be==null?"strong":bt==null?"em":"strong em"),Be===!0&&(pt.em=fn),bt===!0&&(pt.strong=fn);var Vt=Je(pt);return Be===!1&&(pt.em=!1),bt===!1&&(pt.strong=!1),Vt}}else if(fn===" "&&(St.eat("*")||St.eat("_"))){if(St.peek()===" ")return Je(pt);St.backUp(1)}if(ke.strikethrough){if(fn==="~"&&St.eatWhile(fn)){if(pt.strikethrough){ke.highlightFormatting&&(pt.formatting="strikethrough");var Vt=Je(pt);return pt.strikethrough=!1,Vt}else if(St.match(/^[^\s]/,!1))return pt.strikethrough=!0,ke.highlightFormatting&&(pt.formatting="strikethrough"),Je(pt)}else if(fn===" "&&St.match(/^~~/,!0)){if(St.peek()===" ")return Je(pt);St.backUp(2)}}if(ke.emoji&&fn===":"&&St.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){pt.emoji=!0,ke.highlightFormatting&&(pt.formatting="emoji");var bn=Je(pt);return pt.emoji=!1,bn}return fn===" "&&(St.match(/^ +$/,!1)?pt.trailingSpace++:pt.trailingSpace&&(pt.trailingSpaceNewLine=!0)),Je(pt)}function rt(St,pt){var ct=St.next();if(ct===">"){pt.f=pt.inline=gt,ke.highlightFormatting&&(pt.formatting="link");var qt=Je(pt);return qt?qt+=" ":qt="",qt+Ge.linkInline}return St.match(/^[^>]+/,!0),Ge.linkInline}function mt(St,pt){if(St.eatSpace())return null;var ct=St.next();return ct==="("||ct==="["?(pt.f=pt.inline=Tt(ct==="("?")":"]"),ke.highlightFormatting&&(pt.formatting="link-string"),pt.linkHref=!0,Je(pt)):"error"}var xt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Tt(St){return function(pt,ct){var qt=pt.next();if(qt===St){ct.f=ct.inline=gt,ke.highlightFormatting&&(ct.formatting="link-string");var fn=Je(ct);return ct.linkHref=!1,fn}return pt.match(xt[St]),ct.linkHref=!0,Je(ct)}}function zt(St,pt){return St.match(/^([^\]\\]|\\.)*\]:/,!1)?(pt.f=Qt,St.next(),ke.highlightFormatting&&(pt.formatting="link"),pt.linkText=!0,Je(pt)):fe(St,pt,gt)}function Qt(St,pt){if(St.match(/^\]:/,!0)){pt.f=pt.inline=Kt,ke.highlightFormatting&&(pt.formatting="link");var ct=Je(pt);return pt.linkText=!1,ct}return St.match(/^([^\]\\]|\\.)+/,!0),Ge.linkText}function Kt(St,pt){return St.eatSpace()?null:(St.match(/^[^\s]+/,!0),St.peek()===void 0?pt.linkTitle=!0:St.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),pt.f=pt.inline=gt,Ge.linkHref+" url")}var Cn={startState:function(){return{f:Ie,prevLine:{stream:null},thisLine:{stream:null},block:Ie,htmlState:null,indentation:0,inline:gt,text:st,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(St){return{f:St.f,prevLine:St.prevLine,thisLine:St.thisLine,block:St.block,htmlState:St.htmlState&&oe.copyState(De,St.htmlState),indentation:St.indentation,localMode:St.localMode,localState:St.localMode?oe.copyState(St.localMode,St.localState):null,inline:St.inline,text:St.text,formatting:!1,linkText:St.linkText,linkTitle:St.linkTitle,linkHref:St.linkHref,code:St.code,em:St.em,strong:St.strong,strikethrough:St.strikethrough,emoji:St.emoji,header:St.header,setext:St.setext,hr:St.hr,taskList:St.taskList,list:St.list,listStack:St.listStack.slice(0),quote:St.quote,indentedCode:St.indentedCode,trailingSpace:St.trailingSpace,trailingSpaceNewLine:St.trailingSpaceNewLine,md_inside:St.md_inside,fencedEndRE:St.fencedEndRE}},token:function(St,pt){if(pt.formatting=!1,St!=pt.thisLine.stream){if(pt.header=0,pt.hr=!1,St.match(/^\s*$/,!0))return Ae(pt),null;if(pt.prevLine=pt.thisLine,pt.thisLine={stream:St},pt.taskList=!1,pt.trailingSpace=0,pt.trailingSpaceNewLine=!1,!pt.localState&&(pt.f=pt.block,pt.f!=Xe)){var ct=St.match(/^\s*/,!0)[0].replace(/\t/g,ue).length;if(pt.indentation=ct,pt.indentationDiff=null,ct>0)return null}}return pt.f(St,pt)},innerMode:function(St){return St.block==Xe?{state:St.htmlState,mode:De}:St.localState?{state:St.localState,mode:St.localMode}:{state:St,mode:Cn}},indent:function(St,pt,ct){return St.block==Xe&&De.indent?De.indent(St.htmlState,pt,ct):St.localState&&St.localMode.indent?St.localMode.indent(St.localState,pt,ct):oe.Pass},blankLine:Ae,getType:Je,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Cn},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(We,Ee,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 Pe=0;Pe<oe.modeInfo.length;Pe++){var ke=oe.modeInfo[Pe];ke.mimes&&(ke.mime=ke.mimes[0])}oe.findModeByMIME=function(De){De=De.toLowerCase();for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.mime==De)return Te;if(Te.mimes){for(var Ge=0;Ge<Te.mimes.length;Ge++)if(Te.mimes[Ge]==De)return Te}}if(/\+xml$/.test(De))return oe.findModeByMIME("application/xml");if(/\+json$/.test(De))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(De){De=De.toLowerCase();for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.ext){for(var Ge=0;Ge<Te.ext.length;Ge++)if(Te.ext[Ge]==De)return Te}}},oe.findModeByFileName=function(De){for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.file&&Te.file.test(De))return Te}var Ge=De.lastIndexOf("."),lt=Ge>-1&&De.substring(Ge+1,De.length);if(lt)return oe.findModeByExtension(lt)},oe.findModeByName=function(De){De=De.toLowerCase();for(var je=0;je<oe.modeInfo.length;je++){var Te=oe.modeInfo[je];if(Te.name.toLowerCase()==De)return Te;if(Te.alias){for(var Ge=0;Ge<Te.alias.length;Ge++)if(Te.alias[Ge].toLowerCase()==De)return Te}}}})},67549:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";oe.defineMode("stex",function(Pe,ke){"use strict";function De(Fe,te){Fe.cmdState.push(te)}function je(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 Ge(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 lt(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=lt("importmodule","tag",["string","builtin"]),Ke.documentclass=lt("documentclass","tag",["","atom"]),Ke.usepackage=lt("usepackage","tag",["atom"]),Ke.begin=lt("begin","tag",["atom"]),Ke.end=lt("end","tag",["atom"]),Ke.label=lt("label","tag",["atom"]),Ke.ref=lt("ref","tag",["atom"]),Ke.eqref=lt("eqref","tag",["atom"]),Ke.cite=lt("cite","tag",["atom"]),Ke.bibitem=lt("bibitem","tag",["atom"]),Ke.Bibitem=lt("Bibitem","tag",["atom"]),Ke.RBibitem=lt("RBibitem","tag",["atom"]),Ke.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function He(Fe,te){Fe.f=te}function yt(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,De(te,ee),He(te,Mt),ee.style}if(Fe.match(/^\\[$&%#{}_]/)||Fe.match(/^\\[,;!\/\\]/))return"tag";if(Fe.match("\\["))return He(te,function(fe,me){return $e(fe,me,"\\]")}),"keyword";if(Fe.match("\\("))return He(te,function(fe,me){return $e(fe,me,"\\)")}),"keyword";if(Fe.match("$$"))return He(te,function(fe,me){return $e(fe,me,"$$")}),"keyword";if(Fe.match("$"))return He(te,function(fe,me){return $e(fe,me,"$")}),"keyword";var ue=Fe.next();if(ue=="%")return Fe.skipToEnd(),"comment";if(ue=="}"||ue=="]"){if(ee=je(te),ee)ee.closeBracket(ue),He(te,Mt);else return"error";return"bracket"}else return ue=="{"||ue=="["?(ee=Ke.DEFAULT,ee=new ee,De(te,ee),"bracket"):/\d/.test(ue)?(Fe.eatWhile(/[\w.%]/),"atom"):(Fe.eatWhile(/[\w\-_]/),ee=Ge(te),ee.name=="begin"&&(ee.argument=Fe.current()),ee.styleIdentifier())}function $e(Fe,te,ee){if(Fe.eatSpace())return null;if(ee&&Fe.match(ee))return He(te,yt),"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 Mt(Fe,te){var ee=Fe.peek(),he;return ee=="{"||ee=="["?(he=je(te),he.openBracket(ee),Fe.eat(ee),He(te,yt),"bracket"):/[ \t\r]/.test(ee)?(Fe.eat(ee),null):(He(te,yt),Te(te),yt(Fe,te))}return{startState:function(){var Fe=ke.inMathMode?function(te,ee){return $e(te,ee)}:yt;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=yt,Fe.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(We,Ee,ae){(function(oe){oe(ae(89780))})(function(oe){"use strict";var Pe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ke={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(De,je){var Te=De.indentUnit,Ge={},lt=je.htmlMode?Pe:ke;for(var Ke in lt)Ge[Ke]=lt[Ke];for(var Ke in je)Ge[Ke]=je[Ke];var He,yt;function $e(rt,mt){function xt(Qt){return mt.tokenize=Qt,Qt(rt,mt)}var Tt=rt.next();if(Tt=="<")return rt.eat("!")?rt.eat("[")?rt.match("CDATA[")?xt(te("atom","]]>")):null:rt.match("--")?xt(te("comment","-->")):rt.match("DOCTYPE",!0,!0)?(rt.eatWhile(/[\w\._\-]/),xt(ee(1))):null:rt.eat("?")?(rt.eatWhile(/[\w\._\-]/),mt.tokenize=te("meta","?>"),"meta"):(He=rt.eat("/")?"closeTag":"openTag",mt.tokenize=Mt,"tag bracket");if(Tt=="&"){var zt;return rt.eat("#")?rt.eat("x")?zt=rt.eatWhile(/[a-fA-F\d]/)&&rt.eat(";"):zt=rt.eatWhile(/[\d]/)&&rt.eat(";"):zt=rt.eatWhile(/[\w\.\-:]/)&&rt.eat(";"),zt?"atom":"error"}else return rt.eatWhile(/[^&<]/),null}$e.isInText=!0;function Mt(rt,mt){var xt=rt.next();if(xt==">"||xt=="/"&&rt.eat(">"))return mt.tokenize=$e,He=xt==">"?"endTag":"selfcloseTag","tag bracket";if(xt=="=")return He="equals",null;if(xt=="<"){mt.tokenize=$e,mt.state=me,mt.tagName=mt.tagStart=null;var Tt=mt.tokenize(rt,mt);return Tt?Tt+" tag error":"tag error"}else return/[\'\"]/.test(xt)?(mt.tokenize=Fe(xt),mt.stringStartCol=rt.column(),mt.tokenize(rt,mt)):(rt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Fe(rt){var mt=function(xt,Tt){for(;!xt.eol();)if(xt.next()==rt){Tt.tokenize=Mt;break}return"string"};return mt.isInAttribute=!0,mt}function te(rt,mt){return function(xt,Tt){for(;!xt.eol();){if(xt.match(mt)){Tt.tokenize=$e;break}xt.next()}return rt}}function ee(rt){return function(mt,xt){for(var Tt;(Tt=mt.next())!=null;){if(Tt=="<")return xt.tokenize=ee(rt+1),xt.tokenize(mt,xt);if(Tt==">")if(rt==1){xt.tokenize=$e;break}else return xt.tokenize=ee(rt-1),xt.tokenize(mt,xt)}return"meta"}}function he(rt,mt,xt){this.prev=rt.context,this.tagName=mt,this.indent=rt.indented,this.startOfLine=xt,(Ge.doNotIndent.hasOwnProperty(mt)||rt.context&&rt.context.noIndent)&&(this.noIndent=!0)}function ue(rt){rt.context&&(rt.context=rt.context.prev)}function fe(rt,mt){for(var xt;;){if(!rt.context||(xt=rt.context.tagName,!Ge.contextGrabbers.hasOwnProperty(xt)||!Ge.contextGrabbers[xt].hasOwnProperty(mt)))return;ue(rt)}}function me(rt,mt,xt){return rt=="openTag"?(xt.tagStart=mt.column(),be):rt=="closeTag"?Ae:me}function be(rt,mt,xt){return rt=="word"?(xt.tagName=mt.current(),yt="tag",nt):Ge.allowMissingTagName&&rt=="endTag"?(yt="tag bracket",nt(rt,mt,xt)):(yt="error",be)}function Ae(rt,mt,xt){if(rt=="word"){var Tt=mt.current();return xt.context&&xt.context.tagName!=Tt&&Ge.implicitlyClosed.hasOwnProperty(xt.context.tagName)&&ue(xt),xt.context&&xt.context.tagName==Tt||Ge.matchClosing===!1?(yt="tag",Ie):(yt="tag error",Xe)}else return Ge.allowMissingTagName&&rt=="endTag"?(yt="tag bracket",Ie(rt,mt,xt)):(yt="error",Xe)}function Ie(rt,mt,xt){return rt!="endTag"?(yt="error",Ie):(ue(xt),me)}function Xe(rt,mt,xt){return yt="error",Ie(rt,mt,xt)}function nt(rt,mt,xt){if(rt=="word")return yt="attribute",Je;if(rt=="endTag"||rt=="selfcloseTag"){var Tt=xt.tagName,zt=xt.tagStart;return xt.tagName=xt.tagStart=null,rt=="selfcloseTag"||Ge.autoSelfClosers.hasOwnProperty(Tt)?fe(xt,Tt):(fe(xt,Tt),xt.context=new he(xt,Tt,zt==xt.indented)),me}return yt="error",nt}function Je(rt,mt,xt){return rt=="equals"?st:(Ge.allowMissing||(yt="error"),nt(rt,mt,xt))}function st(rt,mt,xt){return rt=="string"?gt:rt=="word"&&Ge.allowUnquoted?(yt="string",nt):(yt="error",nt(rt,mt,xt))}function gt(rt,mt,xt){return rt=="string"?gt:nt(rt,mt,xt)}return{startState:function(rt){var mt={tokenize:$e,state:me,indented:rt||0,tagName:null,tagStart:null,context:null};return rt!=null&&(mt.baseIndent=rt),mt},token:function(rt,mt){if(!mt.tagName&&rt.sol()&&(mt.indented=rt.indentation()),rt.eatSpace())return null;He=null;var xt=mt.tokenize(rt,mt);return(xt||He)&&xt!="comment"&&(yt=null,mt.state=mt.state(He||xt,rt,mt),yt&&(xt=yt=="error"?xt+" error":yt)),xt},indent:function(rt,mt,xt){var Tt=rt.context;if(rt.tokenize.isInAttribute)return rt.tagStart==rt.indented?rt.stringStartCol+1:rt.indented+Te;if(Tt&&Tt.noIndent)return oe.Pass;if(rt.tokenize!=Mt&&rt.tokenize!=$e)return xt?xt.match(/^(\s*)/)[0].length:0;if(rt.tagName)return Ge.multilineTagIndentPastTag!==!1?rt.tagStart+rt.tagName.length+2:rt.tagStart+Te*(Ge.multilineTagIndentFactor||1);if(Ge.alignCDATA&&/<!\[CDATA\[/.test(mt))return 0;var zt=mt&&/^<(\/)?([\w_:\.-]*)/.exec(mt);if(zt&&zt[1])for(;Tt;)if(Tt.tagName==zt[2]){Tt=Tt.prev;break}else if(Ge.implicitlyClosed.hasOwnProperty(Tt.tagName))Tt=Tt.prev;else break;else if(zt)for(;Tt;){var Qt=Ge.contextGrabbers[Tt.tagName];if(Qt&&Qt.hasOwnProperty(zt[2]))Tt=Tt.prev;else break}for(;Tt&&Tt.prev&&!Tt.startOfLine;)Tt=Tt.prev;return Tt?Tt.indent+Te:rt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ge.htmlMode?"html":"xml",helperType:Ge.htmlMode?"html":"xml",skipAttribute:function(rt){rt.state==st&&(rt.state=nt)},xmlCurrentTag:function(rt){return rt.tagName?{name:rt.tagName,close:rt.type=="closeTag"}:null},xmlCurrentContext:function(rt){for(var mt=[],xt=rt.context;xt;xt=xt.prev)xt.tagName&&mt.push(xt.tagName);return mt.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(We,Ee){"use strict";var ae;Ee.Q=De,ae=je;var oe=",",Pe=" ",ke="";function De(Te){for(var Ge=[],lt=String(Te||ke),Ke=lt.indexOf(oe),He=0,yt=!1,$e;!yt;)Ke===-1&&(Ke=lt.length,yt=!0),$e=lt.slice(He,Ke).trim(),($e||!yt)&&Ge.push($e),He=Ke+1,Ke=lt.indexOf(oe,He);return Ge}function je(Te,Ge){var lt=Ge||{},Ke=lt.padLeft===!1?ke:Pe,He=lt.padRight?Pe:ke;return Te[Te.length-1]===ke&&(Te=Te.concat(ke)),Te.join(He+oe+Ke).trim()}},86204:function(We){"use strict";var Ee=typeof Reflect=="object"?Reflect:null,ae=Ee&&typeof Ee.apply=="function"?Ee.apply:function(me,be,Ae){return Function.prototype.apply.call(me,be,Ae)},oe;Ee&&typeof Ee.ownKeys=="function"?oe=Ee.ownKeys:Object.getOwnPropertySymbols?oe=function(me){return Object.getOwnPropertyNames(me).concat(Object.getOwnPropertySymbols(me))}:oe=function(me){return Object.getOwnPropertyNames(me)};function Pe(fe){console&&console.warn&&console.warn(fe)}var ke=Number.isNaN||function(me){return me!==me};function De(){De.init.call(this)}We.exports=De,We.exports.once=ee,De.EventEmitter=De,De.prototype._events=void 0,De.prototype._eventsCount=0,De.prototype._maxListeners=void 0;var je=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(De,"defaultMaxListeners",{enumerable:!0,get:function(){return je},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+".");je=fe}}),De.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},De.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 Ge(fe){return fe._maxListeners===void 0?De.defaultMaxListeners:fe._maxListeners}De.prototype.getMaxListeners=function(){return Ge(this)},De.prototype.emit=function(me){for(var be=[],Ae=1;Ae<arguments.length;Ae++)be.push(arguments[Ae]);var Ie=me==="error",Xe=this._events;if(Xe!==void 0)Ie=Ie&&Xe.error===void 0;else if(!Ie)return!1;if(Ie){var nt;if(be.length>0&&(nt=be[0]),nt instanceof Error)throw nt;var Je=new Error("Unhandled error."+(nt?" ("+nt.message+")":""));throw Je.context=nt,Je}var st=Xe[me];if(st===void 0)return!1;if(typeof st=="function")ae(st,this,be);else for(var gt=st.length,rt=Mt(st,gt),Ae=0;Ae<gt;++Ae)ae(rt[Ae],this,be);return!0};function lt(fe,me,be,Ae){var Ie,Xe,nt;if(Te(be),Xe=fe._events,Xe===void 0?(Xe=fe._events=Object.create(null),fe._eventsCount=0):(Xe.newListener!==void 0&&(fe.emit("newListener",me,be.listener?be.listener:be),Xe=fe._events),nt=Xe[me]),nt===void 0)nt=Xe[me]=be,++fe._eventsCount;else if(typeof nt=="function"?nt=Xe[me]=Ae?[be,nt]:[nt,be]:Ae?nt.unshift(be):nt.push(be),Ie=Ge(fe),Ie>0&&nt.length>Ie&&!nt.warned){nt.warned=!0;var Je=new Error("Possible EventEmitter memory leak detected. "+nt.length+" "+String(me)+" listeners added. Use emitter.setMaxListeners() to increase limit");Je.name="MaxListenersExceededWarning",Je.emitter=fe,Je.type=me,Je.count=nt.length,Pe(Je)}return fe}De.prototype.addListener=function(me,be){return lt(this,me,be,!1)},De.prototype.on=De.prototype.addListener,De.prototype.prependListener=function(me,be){return lt(this,me,be,!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 He(fe,me,be){var Ae={fired:!1,wrapFn:void 0,target:fe,type:me,listener:be},Ie=Ke.bind(Ae);return Ie.listener=be,Ae.wrapFn=Ie,Ie}De.prototype.once=function(me,be){return Te(be),this.on(me,He(this,me,be)),this},De.prototype.prependOnceListener=function(me,be){return Te(be),this.prependListener(me,He(this,me,be)),this},De.prototype.removeListener=function(me,be){var Ae,Ie,Xe,nt,Je;if(Te(be),Ie=this._events,Ie===void 0)return this;if(Ae=Ie[me],Ae===void 0)return this;if(Ae===be||Ae.listener===be)--this._eventsCount===0?this._events=Object.create(null):(delete Ie[me],Ie.removeListener&&this.emit("removeListener",me,Ae.listener||be));else if(typeof Ae!="function"){for(Xe=-1,nt=Ae.length-1;nt>=0;nt--)if(Ae[nt]===be||Ae[nt].listener===be){Je=Ae[nt].listener,Xe=nt;break}if(Xe<0)return this;Xe===0?Ae.shift():Fe(Ae,Xe),Ae.length===1&&(Ie[me]=Ae[0]),Ie.removeListener!==void 0&&this.emit("removeListener",me,Je||be)}return this},De.prototype.off=De.prototype.removeListener,De.prototype.removeAllListeners=function(me){var be,Ae,Ie;if(Ae=this._events,Ae===void 0)return this;if(Ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ae[me]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ae[me]),this;if(arguments.length===0){var Xe=Object.keys(Ae),nt;for(Ie=0;Ie<Xe.length;++Ie)nt=Xe[Ie],nt!=="removeListener"&&this.removeAllListeners(nt);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Ae[me],typeof be=="function")this.removeListener(me,be);else if(be!==void 0)for(Ie=be.length-1;Ie>=0;Ie--)this.removeListener(me,be[Ie]);return this};function yt(fe,me,be){var Ae=fe._events;if(Ae===void 0)return[];var Ie=Ae[me];return Ie===void 0?[]:typeof Ie=="function"?be?[Ie.listener||Ie]:[Ie]:be?te(Ie):Mt(Ie,Ie.length)}De.prototype.listeners=function(me){return yt(this,me,!0)},De.prototype.rawListeners=function(me){return yt(this,me,!1)},De.listenerCount=function(fe,me){return typeof fe.listenerCount=="function"?fe.listenerCount(me):$e.call(fe,me)},De.prototype.listenerCount=$e;function $e(fe){var me=this._events;if(me!==void 0){var be=me[fe];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}De.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function Mt(fe,me){for(var be=new Array(me),Ae=0;Ae<me;++Ae)be[Ae]=fe[Ae];return be}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),be=0;be<me.length;++be)me[be]=fe[be].listener||fe[be];return me}function ee(fe,me){return new Promise(function(be,Ae){function Ie(nt){fe.removeListener(me,Xe),Ae(nt)}function Xe(){typeof fe.removeListener=="function"&&fe.removeListener("error",Ie),be([].slice.call(arguments))}ue(fe,me,Xe,{once:!0}),me!=="error"&&he(fe,Ie,{once:!0})})}function he(fe,me,be){typeof fe.on=="function"&&ue(fe,"error",me,be)}function ue(fe,me,be,Ae){if(typeof fe.on=="function")Ae.once?fe.once(me,be):fe.on(me,be);else if(typeof fe.addEventListener=="function")fe.addEventListener(me,function Ie(Xe){Ae.once&&fe.removeEventListener(me,Ie),be(Xe)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof fe)}},58847:function(We){"use strict";var Ee=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,oe=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,ke=function(lt){return typeof Array.isArray=="function"?Array.isArray(lt):ae.call(lt)==="[object Array]"},De=function(lt){if(!lt||ae.call(lt)!=="[object Object]")return!1;var Ke=Ee.call(lt,"constructor"),He=lt.constructor&<.constructor.prototype&&Ee.call(lt.constructor.prototype,"isPrototypeOf");if(lt.constructor&&!Ke&&!He)return!1;var yt;for(yt in lt);return typeof yt=="undefined"||Ee.call(lt,yt)},je=function(lt,Ke){oe&&Ke.name==="__proto__"?oe(lt,Ke.name,{enumerable:!0,configurable:!0,value:Ke.newValue,writable:!0}):lt[Ke.name]=Ke.newValue},Te=function(lt,Ke){if(Ke==="__proto__")if(Ee.call(lt,Ke)){if(Pe)return Pe(lt,Ke).value}else return;return lt[Ke]};We.exports=function Ge(){var lt,Ke,He,yt,$e,Mt,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(lt=arguments[te],lt!=null)for(Ke in lt)He=Te(Fe,Ke),yt=Te(lt,Ke),Fe!==yt&&(he&&yt&&(De(yt)||($e=ke(yt)))?($e?($e=!1,Mt=He&&ke(He)?He:[]):Mt=He&&De(He)?He:{},je(Fe,{name:Ke,newValue:Ge(he,Mt,yt)})):typeof yt!="undefined"&&je(Fe,{name:Ke,newValue:yt}));return Fe}},12378:function(We,Ee,ae){"use strict";ae.d(Ee,{$u:function(){return Ke},BD:function(){return ot},E9:function(){return lt},FF:function(){return ei},FJ:function(){return me},Hn:function(){return fe},KX:function(){return Ae},NB:function(){return It},S0:function(){return Nn},UL:function(){return He},Vk:function(){return ue},Vm:function(){return jt},YI:function(){return tr},ZA:function(){return ke},Zt:function(){return yt},al:function(){return Be},bn:function(){return at},bx:function(){return _e},g2:function(){return hr},h1:function(){return st},hD:function(){return Et},l4:function(){return Te},rU:function(){return _t},s_:function(){return Re},uz:function(){return Bn},z6:function(){return $e}}),We=ae.hmd(We),function(){var Oe;function dr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Pr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:dr(a)}}function or(a){for(var y,b=[];!(y=a.next()).done;)b.push(y.value);return b}var Lr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},zr;if(typeof Object.setPrototypeOf=="function")zr=Object.setPrototypeOf;else{var wr;e:{var Ti={a:!0},On={};try{On.__proto__=Ti,wr=On.a;break e}catch(a){}wr=!1}zr=wr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var yn=zr;function Sn(a,y){if(a.prototype=Lr(y.prototype),a.prototype.constructor=a,yn)yn(a,y);else for(var b in y)if(b!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,b);E&&Object.defineProperty(a,b,E)}else a[b]=y[b];a.QA=y.prototype}var Jn=typeof ae.g!="undefined"&&ae.g!=null?ae.g:self,ui=typeof Object.assign=="function"?Object.assign:function(a,y){for(var b=1;b<arguments.length;b++){var E=arguments[b];if(E)for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(a[x]=E[x])}return a},Yr=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,b){a!=Array.prototype&&a!=Object.prototype&&(a[y]=b.value)};function ci(a,y){if(y){var b=Jn;a=a.split(".");for(var E=0;E<a.length-1;E++){var x=a[E];x in b||(b[x]={}),b=b[x]}a=a[a.length-1],E=b[a],y=y(E),y!=E&&y!=null&&Yr(b,a,{writable:!0,value:y})}}ci("Object.assign",function(a){return a||ui}),ci("Array.prototype.fill",function(a){return a||function(y,b,E){var x=this.length||0;for(0>b&&(b=Math.max(0,x+b)),(E==null||E>x)&&(E=x),E=Number(E),0>E&&(E=Math.max(0,x+E)),b=Number(b||0);b<E;b++)this[b]=y;return this}});var ur=typeof globalThis=="object"&&globalThis||typeof ae.g=="object"&&ae.g.global===ae.g&&ae.g||typeof self=="object"&&self.self===self&&self||{};ur.requestAnimationFrame===void 0&&(ur.setImmediate===void 0?ur.requestAnimationFrame=function(a){ur.setTimeout(a,0)}:ur.requestAnimationFrame=ur.setImmediate);function Xr(){}function wi(a,y){var b=-1;return function(){var E=this,x=arguments;b!==-1&&ur.clearTimeout(b),b=ki(function(){b=-1,a.apply(E,x)},y)}}function ki(a,y){return ur.setTimeout(a,y)}function Fr(a){return ur.document.createElement(a)}function Lt(a){throw Error(a)}function cn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Lt(a)}function kr(a,y,b,E){b=b===null?"*":typeof b=="string"?b:typeof b=="function"&&typeof b.className=="string"?b.className:"",E!==void 0&&(b+="."+E),Lt(b+" is not in the range "+y+": "+a)}function Ir(a){ur.console&&ur.console.log(a)}function Xt(a){return typeof a=="object"&&a!==null}function Fn(a){return Array.isArray(a)||ur.NodeList&&a instanceof ur.NodeList||ur.HTMLCollection&&a instanceof ur.HTMLCollection}function fr(a){return Array.prototype.slice.call(a)}function dn(a,y,b){Array.isArray(a)?y>=a.length?a.push(b):a.splice(y,0,b):Lt("Cannot insert an object into an HTMLCollection or NodeList: "+b+" at "+y)}function Ue(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Lt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Mr(){var a=Vi.pop();return a===void 0?[]:a}function Ur(a){a.length=0,Vi.push(a)}function Wn(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(Xt(a)&&a.constructor)return Wn(a.constructor);return typeof a}function mi(a){var y=a;return Xt(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 Qr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var b=a.CA;if(b&&b[y])return!0;a=Object.getPrototypeOf(a)}return!1}function rr(a,y,b){Object.defineProperty(aa.prototype,a,{get:y,set:b})}function Gr(a){for(var y=[],b=0;256>b;b++)y["0123456789abcdef".charAt(b>>4)+"0123456789abcdef".charAt(b&15)]=String.fromCharCode(b);a.length%2&&(a="0"+a),b=[];for(var E=0,x=0;x<a.length;x+=2)b[E++]=y[a.substr(x,2)];for(a=b.join(""),a=a===""?"0":a,y=[],b=0;256>b;b++)y[b]=b;for(b=E=0;256>b;b++)E=(E+y[b]+119)%256,x=y[b],y[b]=y[E],y[E]=x;E=b=0;for(var z="",ne=0;ne<a.length;ne++)b=(b+1)%256,E=(E+y[b])%256,x=y[b],y[b]=y[E],y[E]=x,z+=String.fromCharCode(a.charCodeAt(ne)^y[(y[b]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var on=ur.navigator!==void 0&&0<ur.navigator.userAgent.indexOf("Trident/7"),Ci=ur.navigator!==void 0&&ur.navigator.platform!==void 0&&ur.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Vi=[];Object.freeze([]),Xr.className="Util",Xr.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Xr.adym="gojs.net",Xr.vfo="28e645fdb266",Xr.className="Util";function mn(a,y,b){vi(this),this.j=a,this.xa=y,this.o=b}mn.prototype.toString=function(){return"EnumValue."+this.xa};function li(a,y){return y==null||y===""?null:a[y]}Jn.Object.defineProperties(mn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),mn.className="EnumValue";function bi(){this.ew=[]}bi.prototype.toString=function(){return this.ew.join("")},bi.prototype.add=function(a){a!==""&&this.ew.push(a)},bi.className="StringBuilder";function qr(){}qr.className="PropertyCollection";var Pi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ur.console&&ur.console.log(a)},HA:function(a,y,b,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(b,b),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},b;for(b in a){if(y.x=b,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var x={Tj:0};x.Tj<y.Zl.length;x={Tj:x.Tj},x.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[x.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[x.Tj],{set:function(ne,ie){return function(){throw Error("Property "+ne.Zl[ie.Tj]+" of "+ne.x+" is read-only.")}}(y,x)})}}}y={Zl:y.Zl,x:y.x}}}};function Ii(){}Ii.prototype.reset=function(){},Ii.prototype.next=function(){return!1},Ii.prototype.Ad=function(){return!1},Ii.prototype.first=function(){return null},Ii.prototype.any=function(){return!1},Ii.prototype.all=function(){return!0},Ii.prototype.each=function(){return this},Ii.prototype.map=function(){return this},Ii.prototype.filter=function(){return this},Ii.prototype.de=function(){},Ii.prototype.toString=function(){return"EmptyIterator"},Jn.Object.defineProperties(Ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Ii.prototype.first=Ii.prototype.first,Ii.prototype.hasNext=Ii.prototype.Ad,Ii.prototype.next=Ii.prototype.next,Ii.prototype.reset=Ii.prototype.reset;var Hi=null;Ii.className="EmptyIterator",Hi=new Ii;function ji(a){this.key=-1,this.value=a}ji.prototype.reset=function(){this.key=-1},ji.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},ji.prototype.Ad=function(){return this.next()},ji.prototype.first=function(){return this.key=0,this.value},ji.prototype.any=function(a){return this.key=-1,a(this.value)},ji.prototype.all=function(a){return this.key=-1,a(this.value)},ji.prototype.each=function(a){return this.key=-1,a(this.value),this},ji.prototype.map=function(a){return new ji(a(this.value))},ji.prototype.filter=function(a){return a(this.value)?new ji(this.value):Hi},ji.prototype.de=function(){this.value=null},ji.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Jn.Object.defineProperties(ji.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),ji.prototype.first=ji.prototype.first,ji.prototype.hasNext=ji.prototype.Ad,ji.prototype.next=ji.prototype.next,ji.prototype.reset=ji.prototype.reset,ji.className="SingletonIterator";function Bi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Bi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Bi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,b=++this.Za,E=this.qf;if(E!==null)for(;b<y;){var x=a[b];if(E(x))return this.key=this.Za=b,this.value=x,!0;b++}else{if(b<y)return this.key=b,this.value=a[b],!0;this.de()}return!1},Bi.prototype.Ad=function(){return this.next()},Bi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,b=this.qf;if(b!==null){for(var E=0;E<y;){var x=a[E];if(b(x))return this.key=this.Za=E,this.value=x;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Bi.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var b=y.length,E=this.qf,x=0;x<b;x++){var z=y[x];if((E===null||E(z))&&a(z))return!0}return!1},Bi.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var b=y.length,E=this.qf,x=0;x<b;x++){var z=y[x];if((E===null||E(z))&&!a(z))return!1}return!0},Bi.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var b=y.length,E=this.qf,x=0;x<b;x++){var z=y[x];(E===null||E(z))&&a(z)}return this},Bi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var b=[];y=y.s;for(var E=y.length,x=this.qf,z=0;z<E;z++){var ne=y[z];(x===null||x(ne))&&b.push(a(ne))}return a=new Qn,a.s=b,a.xb(),a.iterator},Bi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var b=[];y=y.s;for(var E=y.length,x=this.qf,z=0;z<E;z++){var ne=y[z];(x===null||x(ne))&&a(ne)&&b.push(ne)}return a=new Qn,a.s=b,a.xb(),a.iterator},Bi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Bi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Jn.Object.defineProperties(Bi.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,b=this.Bb.s,E=b.length,x=0;x<E;x++)a(b[x])&&y++;return y}return this.Bb.s.length}}}),Bi.prototype.first=Bi.prototype.first,Bi.prototype.hasNext=Bi.prototype.Ad,Bi.prototype.next=Bi.prototype.next,Bi.prototype.reset=Bi.prototype.reset,Bi.className="ListIterator";function io(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}io.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},io.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)},io.prototype.Ad=function(){return this.next()},io.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},io.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)if(a(y[b]))return!0;return!1},io.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)if(!a(y[b]))return!1;return!0},io.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)a(y[b]);return this},io.prototype.map=function(a){var y=this.Bb;y.Hg=null;var b=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)b.push(a(y[E]));return a=new Qn,a.s=b,a.xb(),a.iterator},io.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var b=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var x=y[E];a(x)&&b.push(x)}return a=new Qn,a.s=b,a.xb(),a.iterator},io.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},io.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Jn.Object.defineProperties(io.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),io.prototype.first=io.prototype.first,io.prototype.hasNext=io.prototype.Ad,io.prototype.next=io.prototype.next,io.prototype.reset=io.prototype.reset,io.className="ListIteratorBackwards";function Qn(a){vi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Oe=Qn.prototype,Oe.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.toString=function(){return"List()#"+Fi(this)},Oe.add=function(a){return a===null?this:(this._isFrozen&&cn(this,a),this.s.push(a),this.xb(),this)},Oe.push=function(a){this.add(a)},Oe.addAll=function(a){if(a===null)return this;this._isFrozen&&cn(this);var y=this.s;if(Fn(a))for(var b=a.length,E=0;E<b;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Oe.clear=function(){this._isFrozen&&cn(this),this.s.length=0,this.xb()},Oe.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Oe.has=function(a){return this.contains(a)},Oe.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Oe.M=function(a){var y=this.s;return(0>a||a>=y.length)&&kr(a,"0 <= i < length",Qn,"elt:i"),y[a]},Oe.get=function(a){return this.M(a)},Oe.cd=function(a,y){var b=this.s;(0>a||a>=b.length)&&kr(a,"0 <= i < length",Qn,"setElt:i"),this._isFrozen&&cn(this,a),b[a]=y},Oe.set=function(a,y){this.cd(a,y)},Oe.first=function(){var a=this.s;return a.length===0?null:a[0]},Oe.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Oe.pop=function(){this._isFrozen&&cn(this);var a=this.s;return 0<a.length?a.pop():null},Qn.prototype.any=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)if(a(y[E]))return!0;return!1},Qn.prototype.all=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)if(!a(y[E]))return!1;return!0},Qn.prototype.each=function(a){for(var y=this.s,b=y.length,E=0;E<b;E++)a(y[E]);return this},Qn.prototype.map=function(a){for(var y=new Qn,b=[],E=this.s,x=E.length,z=0;z<x;z++)b.push(a(E[z]));return y.s=b,y.xb(),y},Qn.prototype.filter=function(a){for(var y=new Qn,b=[],E=this.s,x=E.length,z=0;z<x;z++){var ne=E[z];a(ne)&&b.push(ne)}return y.s=b,y.xb(),y},Oe=Qn.prototype,Oe.Gb=function(a,y){0>a&&kr(a,">= 0",Qn,"insertAt:i"),this._isFrozen&&cn(this,a);var b=this.s;a>=b.length?b.push(y):b.splice(a,0,y),this.xb()},Oe.remove=function(a){if(a===null)return!1;this._isFrozen&&cn(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)},Oe.delete=function(a){return this.remove(a)},Oe.mb=function(a){var y=this.s;(0>a||a>=y.length)&&kr(a,"0 <= i < length",Qn,"removeAt:i"),this._isFrozen&&cn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Oe.removeRange=function(a,y){var b=this.s,E=b.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&cn(this);for(var x=a,z=y+1;z<E;)b[x++]=b[z++];return b.length=E-(y-a+1),this.xb(),this},Qn.prototype.copy=function(){var a=new Qn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Oe=Qn.prototype,Oe.Fa=function(){for(var a=this.s,y=this.count,b=Array(y),E=0;E<y;E++)b[E]=a[E];return b},Oe.Iv=function(){for(var a=new ar,y=this.s,b=this.count,E=0;E<b;E++)a.add(y[E]);return a},Oe.sort=function(a){return this._isFrozen&&cn(this),this.s.sort(a),this.xb(),this},Oe.zi=function(a,y,b){var E=this.s,x=E.length;y===void 0&&(y=0),b===void 0&&(b=x),this._isFrozen&&cn(this);var z=b-y;if(1>=z)return this;if((0>y||y>=x-1)&&kr(y,"0 <= from < length",Qn,"sortRange:from"),z===2)return b=E[y],x=E[y+1],0<a(b,x)&&(E[y]=x,E[y+1]=b,this.xb()),this;if(y===0)if(b>=x)E.sort(a);else for(y=E.slice(0,b),y.sort(a),a=0;a<b;a++)E[a]=y[a];else if(b>=x)for(b=E.slice(y),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];else for(x=E.slice(y,b),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];return this.xb(),this},Oe.reverse=function(){return this._isFrozen&&cn(this),this.s.reverse(),this.xb(),this},Jn.Object.defineProperties(Qn.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 Hi;var a=this.Sa;return a!==null?(a.reset(),a):new Bi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Hi;var a=this.Hg;return a!==null?(a.reset(),a):new io(this)}}}),Qn.prototype.reverse=Qn.prototype.reverse,Qn.prototype.sortRange=Qn.prototype.zi,Qn.prototype.sort=Qn.prototype.sort,Qn.prototype.toSet=Qn.prototype.Iv,Qn.prototype.toArray=Qn.prototype.Fa,Qn.prototype.removeRange=Qn.prototype.removeRange,Qn.prototype.removeAt=Qn.prototype.mb,Qn.prototype.delete=Qn.prototype.delete,Qn.prototype.remove=Qn.prototype.remove,Qn.prototype.insertAt=Qn.prototype.Gb,Qn.prototype.pop=Qn.prototype.pop,Qn.prototype.last=Qn.prototype.jc,Qn.prototype.first=Qn.prototype.first,Qn.prototype.set=Qn.prototype.set,Qn.prototype.setElt=Qn.prototype.cd,Qn.prototype.get=Qn.prototype.get,Qn.prototype.elt=Qn.prototype.M,Qn.prototype.indexOf=Qn.prototype.indexOf,Qn.prototype.has=Qn.prototype.has,Qn.prototype.contains=Qn.prototype.contains,Qn.prototype.clear=Qn.prototype.clear,Qn.prototype.addAll=Qn.prototype.addAll,Qn.prototype.push=Qn.prototype.push,Qn.prototype.add=Qn.prototype.add,Qn.prototype.thaw=Qn.prototype.ka,Qn.prototype.freeze=Qn.prototype.freeze,Qn.className="List";function zi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}zi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},zi.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)},zi.prototype.Ad=function(){return this.next()},zi.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},zi.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},zi.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},zi.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},zi.prototype.map=function(a){var y=this.eg;y.Sa=null;var b=new Qn;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},zi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var b=new Qn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},zi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},zi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Jn.Object.defineProperties(zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),zi.prototype.first=zi.prototype.first,zi.prototype.hasNext=zi.prototype.Ad,zi.prototype.next=zi.prototype.next,zi.prototype.reset=zi.prototype.reset,zi.className="SetIterator";function ar(a){vi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Oe=ar.prototype,Oe.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.toString=function(){return"Set()#"+Fi(this)},Oe.add=function(a){if(a===null)return this;this._isFrozen&&cn(this,a);var y=a;return Xt(a)&&(y=Zi(a)),this.Tb[y]===void 0&&(this.Sb++,a=new _n(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},Oe.addAll=function(a){if(a===null)return this;if(this._isFrozen&&cn(this),Fn(a))for(var y=a.length,b=0;b<y;b++)this.add(a[b]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Oe.contains=function(a){if(a===null)return!1;var y=a;return Xt(a)&&(y=Fi(a),y===void 0)?!1:this.Tb[y]!==void 0},Oe.has=function(a){return this.contains(a)},Oe.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Oe.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Oe.first=function(){var a=this.ea;return a===null?null:a.value},ar.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ar.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ar.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},ar.prototype.map=function(a){for(var y=new ar,b=this.ea;b!==null;)y.add(a(b.value)),b=b.va;return y},ar.prototype.filter=function(a){for(var y=new ar,b=this.ea;b!==null;){var E=b.value;a(E)&&y.add(E),b=b.va}return y},Oe=ar.prototype,Oe.remove=function(a){if(a===null)return!1;this._isFrozen&&cn(this,a);var y=a;if(Xt(a)&&(y=Fi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var b=a.va,E=a.ll;return b!==null&&(b.ll=E),E!==null&&(E.va=b),this.ea===a&&(this.ea=b),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Oe.delete=function(a){return this.remove(a)},Oe.hp=function(a){if(a===null)return this;if(this._isFrozen&&cn(this),Fn(a))for(var y=a.length,b=0;b<y;b++)this.remove(a[b]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Oe.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&cn(this);var y=new ar;y.addAll(a),a=[];for(var b=this.iterator;b.next();){var E=b.value;y.contains(E)||a.push(E)}return this.hp(a),this},Oe.clear=function(){this._isFrozen&&cn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},ar.prototype.copy=function(){var a=new ar,y=this.Tb,b;for(b in y)a.add(y[b].value);return a},ar.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,b=0,E;for(E in y)a[b]=y[E].value,b++;return a},ar.prototype.Hv=function(){var a=new Qn,y=this.Tb,b;for(b in y)a.add(y[b].value);return a};function vi(a){a.__gohashid=fo++}function Zi(a){var y=a.__gohashid;return y===void 0&&(y=fo++,a.__gohashid=y),y}function Fi(a){return a.__gohashid}Jn.Object.defineProperties(ar.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Hi;var a=this.Sa;return a!==null?(a.reset(),a):new zi(this)}}}),ar.prototype.toList=ar.prototype.Hv,ar.prototype.toArray=ar.prototype.Fa,ar.prototype.clear=ar.prototype.clear,ar.prototype.retainAll=ar.prototype.pA,ar.prototype.removeAll=ar.prototype.hp,ar.prototype.delete=ar.prototype.delete,ar.prototype.remove=ar.prototype.remove,ar.prototype.first=ar.prototype.first,ar.prototype.containsAny=ar.prototype.Ty,ar.prototype.containsAll=ar.prototype.Sy,ar.prototype.has=ar.prototype.has,ar.prototype.contains=ar.prototype.contains,ar.prototype.addAll=ar.prototype.addAll,ar.prototype.add=ar.prototype.add,ar.prototype.thaw=ar.prototype.ka,ar.prototype.freeze=ar.prototype.freeze;var fo=1;ar.className="Set",ar.uniqueHash=vi,ar.hashIdUnique=Zi,ar.hashId=Fi;function co(a){this.ma=a,this.qa=a.Ja,this.sa=null}co.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},co.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)},co.prototype.Ad=function(){return this.next()},co.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},co.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},co.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},co.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},co.prototype.map=function(a){var y=this.ma;this.sa=null;var b=new Qn;for(y=y.ea;y!==null;)b.add(a(y.key)),y=y.va;return b.iterator},co.prototype.filter=function(a){var y=this.ma;this.sa=null;var b=new Qn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&b.add(E),y=y.va}return b.iterator},co.prototype.de=function(){this.value=this.key=null,this.qa=-1},co.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Jn.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset,co.className="MapKeySetIterator";function Wi(a){ar.call(this),vi(this),this._isFrozen=!0,this.ma=a}Sn(Wi,ar),Oe=Wi.prototype,Oe.freeze=function(){return this},Oe.ka=function(){return this},Oe.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Oe.add=function(){Lt("This Set is read-only: "+this.toString())},Oe.contains=function(a){return this.ma.contains(a)},Oe.has=function(a){return this.contains(a)},Oe.remove=function(){Lt("This Set is read-only: "+this.toString())},Oe.delete=function(a){return this.remove(a)},Oe.clear=function(){Lt("This Set is read-only: "+this.toString())},Oe.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Wi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Wi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Wi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Wi.prototype.map=function(a){for(var y=new ar,b=this.ma.ea;b!==null;)y.add(a(b.key)),b=b.va;return y},Wi.prototype.filter=function(a){for(var y=new ar,b=this.ma.ea;b!==null;){var E=b.key;a(E)&&y.add(E),b=b.va}return y},Wi.prototype.copy=function(){return new Wi(this.ma)},Wi.prototype.Iv=function(){var a=new ar,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},Wi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),b=0,E;for(E in a)y[b]=a[E].key,b++;return y},Wi.prototype.Hv=function(){var a=new Qn,y=this.ma.Tb,b;for(b in y)a.add(y[b].key);return a},Jn.Object.defineProperties(Wi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Hi:new co(this.ma)}}}),Wi.prototype.toList=Wi.prototype.Hv,Wi.prototype.toArray=Wi.prototype.Fa,Wi.prototype.toSet=Wi.prototype.Iv,Wi.prototype.first=Wi.prototype.first,Wi.prototype.clear=Wi.prototype.clear,Wi.prototype.delete=Wi.prototype.delete,Wi.prototype.remove=Wi.prototype.remove,Wi.prototype.has=Wi.prototype.has,Wi.prototype.contains=Wi.prototype.contains,Wi.prototype.add=Wi.prototype.add,Wi.prototype.thaw=Wi.prototype.ka,Wi.prototype.freeze=Wi.prototype.freeze,Wi.className="MapKeySet";function zo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}zo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},zo.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)},zo.prototype.Ad=function(){return this.next()},zo.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},zo.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},zo.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},zo.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},zo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var b=new Qn;for(y=y.ea;y!==null;)b.add(a(y.value)),y=y.va;return b.iterator},zo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var b=new Qn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&b.add(E),y=y.va}return b.iterator},zo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},zo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Jn.Object.defineProperties(zo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),zo.prototype.first=zo.prototype.first,zo.prototype.hasNext=zo.prototype.Ad,zo.prototype.next=zo.prototype.next,zo.prototype.reset=zo.prototype.reset,zo.className="MapValueSetIterator";function _n(a,y){this.key=a,this.value=y,this.ll=this.va=null}_n.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},_n.className="KeyValuePair";function vr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}vr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},vr.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)},vr.prototype.Ad=function(){return this.next()},vr.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},vr.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},vr.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},vr.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},vr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new Qn;for(y=y.ea;y!==null;)b.add(a(y)),y=y.va;return b.iterator},vr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var b=new Qn;for(y=y.ea;y!==null;)a(y)&&b.add(y),y=y.va;return b.iterator},vr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},vr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Jn.Object.defineProperties(vr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),vr.prototype.first=vr.prototype.first,vr.prototype.hasNext=vr.prototype.Ad,vr.prototype.next=vr.prototype.next,vr.prototype.reset=vr.prototype.reset,vr.className="MapIterator";function An(a){vi(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"&&Lt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Oe=An.prototype,Oe.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.toString=function(){return"Map()#"+Fi(this)},Oe.add=function(a,y){this._isFrozen&&cn(this,a);var b=a;Xt(a)&&(b=Zi(a));var E=this.Tb[b];return E===void 0?(this.Sb++,a=new _n(a,y),this.Tb[b]=a,b=this.kf,b===null?this.ea=a:(a.ll=b,b.va=a),this.kf=a,this.xb()):E.value=y,this},Oe.set=function(a,y){return this.add(a,y)},Oe.addAll=function(a){if(a===null)return this;if(Fn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];this.add(E.key,E.value)}else if(a instanceof An)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},Oe.first=function(){return this.ea},An.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},An.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},An.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},An.prototype.map=function(a){for(var y=new An,b=this.ea;b!==null;)y.add(b.key,a(b)),b=b.va;return y},An.prototype.filter=function(a){for(var y=new An,b=this.ea;b!==null;)a(b)&&y.add(b.key,b.value),b=b.va;return y},Oe=An.prototype,Oe.contains=function(a){var y=a;return Xt(a)&&(y=Fi(a),y===void 0)?!1:this.Tb[y]!==void 0},Oe.has=function(a){return this.contains(a)},Oe.I=function(a){var y=a;return Xt(a)&&(y=Fi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Oe.get=function(a){return this.I(a)},Oe.remove=function(a){if(a===null)return!1;this._isFrozen&&cn(this,a);var y=a;if(Xt(a)&&(y=Fi(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var b=a.va,E=a.ll;return b!==null&&(b.ll=E),E!==null&&(E.va=b),this.ea===a&&(this.ea=b),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Oe.delete=function(a){return this.remove(a)},Oe.clear=function(){this._isFrozen&&cn(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()},An.prototype.copy=function(){var a=new An,y=this.Tb,b;for(b in y){var E=y[b];a.add(E.key,E.value)}return a},An.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),b=0,E;for(E in a){var x=a[E];y[b]=new _n(x.key,x.value),b++}return y},An.prototype.Lf=function(){return new Wi(this)},Jn.Object.defineProperties(An.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Hi;var a=this.Sa;return a!==null?(a.reset(),a):new vr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Hi:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return Hi;var a=this.jf;return a!==null?(a.reset(),a):new zo(this)}}}),An.prototype.toKeySet=An.prototype.Lf,An.prototype.toArray=An.prototype.Fa,An.prototype.clear=An.prototype.clear,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.get=An.prototype.get,An.prototype.getValue=An.prototype.I,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.first=An.prototype.first,An.prototype.addAll=An.prototype.addAll,An.prototype.set=An.prototype.set,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze,An.className="Map";function it(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Lt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Dr,Wr,pi,hi,ai;it.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},it.prototype.h=function(a,y){return this.x=a,this.y=y,this},it.prototype.sg=function(a,y){return this.x=a,this.y=y,this},it.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},it.prototype.copy=function(){var a=new it;return a.x=this.x,a.y=this.y,a},Oe=it.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function mr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;return(E=a[y++])&&(x=parseFloat(E)),new it(b,x)}return new it}function ht(a){return a.x.toString()+" "+a.y.toString()}Oe.toString=function(){return"Point("+this.x+","+this.y+")"},Oe.D=function(a){return a instanceof it?this.x===a.x&&this.y===a.y:!1},Oe.hi=function(a,y){return this.x===a&&this.y===y},Oe.Xa=function(a){return tn.B(this.x,a.x)&&tn.B(this.y,a.y)},Oe.add=function(a){return this.x+=a.x,this.y+=a.y,this},Oe.re=function(a){return this.x-=a.x,this.y-=a.y,this},Oe.offset=function(a,y){return this.x+=a,this.y+=y,this},it.prototype.rotate=function(a){if(a===0)return this;var y=this.x,b=this.y;if(y===0&&b===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*b,this.y=E*y+a*b,this},Oe=it.prototype,Oe.scale=function(a,y){return this.x*=a,this.y*=y,this},Oe.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Oe.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Oe.normalize=function(){var a=this.x,y=this.y,b=Math.sqrt(a*a+y*y);return 0<b&&(this.x=a/b,this.y=y/b),this},Oe.ab=function(a){return wn(a.x-this.x,a.y-this.y)},Oe.direction=function(a,y){return wn(a-this.x,y-this.y)};function wn(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 b=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b}Oe.Ry=function(a,y){return tn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Oe.fA=function(a,y,b,E){return tn.qh(a,y,b,E,this.x,this.y,this),this},Oe.gA=function(a,y){return tn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Oe.uA=function(a,y,b,E){return tn.No(this.x,this.y,a,y,b,E,this),this},Oe.vA=function(a,y){return tn.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Oe.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},Oe.yi=function(a,y,b,E,x){return this.x=a+x.x*b+x.offsetX,this.y=y+x.y*E+x.offsetY,this},Oe.transform=function(a){return a.Ga(this),this};function Pn(a,y){return y.Cd(a),a}function Gn(a,y,b,E,x,z){var ne=x-b,ie=z-E,se=ne*ne+ie*ie;b-=a,E-=y;var de=-b*ne-E*ie;return 0>=de||de>=se?(ne=x-a,ie=z-y,Math.min(b*b+E*E,ne*ne+ie*ie)):(a=ne*E-ie*b,a*a/se)}function gn(a,y,b,E){return a=b-a,y=E-y,a*a+y*y}function $n(a,y,b,E){return a=b-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Oe.w=function(){return isFinite(this.x)&&isFinite(this.y)},it.alloc=function(){var a=Yn.pop();return a===void 0?new it:a},it.allocAt=function(a,y){var b=Yn.pop();return b===void 0?new it(a,y):(b.x=a,b.y=y,b)},it.free=function(a){Yn.push(a)},it.prototype.isReal=it.prototype.w,it.prototype.setSpot=it.prototype.yi,it.prototype.setRectSpot=it.prototype.xi,it.prototype.snapToGridPoint=it.prototype.vA,it.prototype.snapToGrid=it.prototype.uA,it.prototype.projectOntoLineSegmentPoint=it.prototype.gA,it.prototype.projectOntoLineSegment=it.prototype.fA,it.intersectingLineSegments=function(a,y,b,E,x,z,ne,ie){return tn.Rl(a,y,b,E,x,z,ne,ie)},it.prototype.compareWithLineSegmentPoint=it.prototype.Ry,it.compareWithLineSegment=function(a,y,b,E,x,z){return tn.Fl(a,y,b,E,x,z)},it.prototype.direction=it.prototype.direction,it.prototype.directionPoint=it.prototype.ab,it.prototype.normalize=it.prototype.normalize,it.prototype.distanceSquared=it.prototype.zd,it.prototype.distanceSquaredPoint=it.prototype.Bf,it.prototype.scale=it.prototype.scale,it.prototype.rotate=it.prototype.rotate,it.prototype.offset=it.prototype.offset,it.prototype.subtract=it.prototype.re,it.prototype.add=it.prototype.add,it.prototype.equalsApprox=it.prototype.Xa,it.prototype.equalTo=it.prototype.hi,it.prototype.equals=it.prototype.D,it.prototype.set=it.prototype.set,it.prototype.setTo=it.prototype.sg;var Yn=[];it.className="Point",it.parse=mr,it.stringify=ht,it.distanceLineSegmentSquared=Gn,it.distanceSquared=gn,it.direction=$n,it.Origin=Dr=new it(0,0).ja(),it.InfiniteTopLeft=Wr=new it(-1/0,-1/0).ja(),it.InfiniteBottomRight=pi=new it(1/0,1/0).ja(),it.SixPoint=hi=new it(6,6).ja(),it.NoPoint=ai=new it(NaN,NaN).ja(),it.parse=mr,it.stringify=ht,it.distanceLineSegmentSquared=Gn,it.distanceSquared=gn,it.direction=$n;function an(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):Lt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var cr,Vr,Ni,si,Si,Ri,_i;an.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},an.prototype.h=function(a,y){return this.width=a,this.height=y,this},an.prototype.sg=function(a,y){return this.width=a,this.height=y,this},an.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},an.prototype.copy=function(){var a=new an;return a.width=this.width,a.height=this.height,a},Oe=an.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ao(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;return(E=a[y++])&&(x=parseFloat(E)),new an(b,x)}return new an}function wo(a){return a.width.toString()+" "+a.height.toString()}Oe.toString=function(){return"Size("+this.width+","+this.height+")"},Oe.D=function(a){return a instanceof an?this.width===a.width&&this.height===a.height:!1},Oe.hi=function(a,y){return this.width===a&&this.height===y},Oe.Xa=function(a){return tn.B(this.width,a.width)&&tn.B(this.height,a.height)},Oe.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},Oe.w=function(){return isFinite(this.width)&&isFinite(this.height)},an.alloc=function(){var a=Ho.pop();return a===void 0?new an:a},an.free=function(a){Ho.push(a)},an.prototype.isReal=an.prototype.w,an.prototype.inflate=an.prototype.Bc,an.prototype.equalsApprox=an.prototype.Xa,an.prototype.equalTo=an.prototype.hi,an.prototype.equals=an.prototype.D,an.prototype.set=an.prototype.set,an.prototype.setTo=an.prototype.sg;var Ho=[];an.className="Size",an.parse=ao,an.stringify=wo,an.ZeroSize=cr=new an(0,0).ja(),an.OneSize=Vr=new an(1,1).ja(),an.SixSize=Ni=new an(6,6).ja(),an.EightSize=si=new an(8,8).ja(),an.TenSize=Si=new an(10,10).ja(),an.InfiniteSize=Ri=new an(1/0,1/0).ja(),an.NoSize=_i=new an(NaN,NaN).ja(),an.parse=ao,an.stringify=wo;function In(a,y,b,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof b=="number"&&(0<=b||isNaN(b))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=b,this.height=E):a instanceof it?(b=a.x,a=a.y,y instanceof it?(E=y.x,y=y.y,this.x=Math.min(b,E),this.y=Math.min(a,y),this.width=Math.abs(b-E),this.height=Math.abs(a-y)):y instanceof an?(this.x=b,this.y=a,this.width=y.width,this.height=y.height):Lt("Incorrect second argument supplied to Rect constructor "+y)):Lt("Invalid arguments to Rect constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}Oe=In.prototype,Oe.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Oe.h=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this};function ko(a,y,b){a.width=y,a.height=b}Oe.sg=function(a,y,b,E){return this.x=a,this.y=y,this.width=b,this.height=E,this},Oe.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Oe.dd=function(a){return this.x=a.x,this.y=a.y,this},Oe.tA=function(a){return this.width=a.width,this.height=a.height,this},In.prototype.copy=function(){var a=new In;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Oe=In.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function po(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;(E=a[y++])&&(x=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),new In(b,x,z,ne)}return new In}function Yi(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Oe.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Oe.D=function(a){return a instanceof In?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Oe.hi=function(a,y,b,E){return this.x===a&&this.y===y&&this.width===b&&this.height===E},Oe.Xa=function(a){return tn.B(this.x,a.x)&&tn.B(this.y,a.y)&&tn.B(this.width,a.width)&&tn.B(this.height,a.height)};function Oi(a,y){return tn.$(a.x,y.x)&&tn.$(a.y,y.y)&&tn.$(a.width,y.width)&&tn.$(a.height,y.height)}Oe.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Oe.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},Oe.contains=function(a,y,b,E){return b===void 0&&(b=0),E===void 0&&(E=0),this.x<=a&&a+b<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Oe.offset=function(a,y){return this.x+=a,this.y+=y,this},Oe.Bc=function(a,y){return Oo(this,y,a,y,a)},Oe.Co=function(a){return Oo(this,a.top,a.right,a.bottom,a.left)},Oe.Fv=function(a){return Oo(this,-a.top,-a.right,-a.bottom,-a.left)},Oe.Hz=function(a,y,b,E){return Oo(this,a,y,b,E)};function Oo(a,y,b,E,x){var z=a.width;return b+x<=-z?(a.x+=z/2,a.width=0):(a.x-=x,a.width+=b+x),b=a.height,y+E<=-b?(a.y+=b/2,a.height=0):(a.y-=y,a.height+=y+E),a}Oe.Ex=function(a){return Wo(this,a.x,a.y,a.width,a.height)},Oe.Uu=function(a,y,b,E){return Wo(this,a,y,b,E)};function Wo(a,y,b,E,x){var z=Math.max(a.x,y),ne=Math.max(a.y,b);return y=Math.min(a.x+a.width,y+E),b=Math.min(a.y+a.height,b+x),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,b-ne),a}Oe.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Oe.Vu=function(a,y,b,E){var x=this.width,z=this.x;return x!==1/0&&b!==1/0&&(x+=z,b+=a,isNaN(b)||isNaN(x)||z>b||a>x)?!1:(a=this.height,b=this.y,!(a!==1/0&&E!==1/0&&(a+=b,E+=y,isNaN(E)||isNaN(a)||b>E||y>a)))};function jn(a,y){var b=a.width,E=a.x,x=y.x-10;return E>y.width+10+10+x||x>b+E?!1:(b=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>b+a))}Oe.Ye=function(a){return vo(this,a.x,a.y,0,0)},Oe.ed=function(a){return vo(this,a.x,a.y,a.width,a.height)},Oe.Kv=function(a,y,b,E){return b===void 0&&(b=0),E===void 0&&(E=0),vo(this,a,y,b,E)};function vo(a,y,b,E,x){var z=Math.min(a.x,y),ne=Math.min(a.y,b);return y=Math.max(a.x+a.width,y+E),b=Math.max(a.y+a.height,b+x),a.x=z,a.y=ne,a.width=y-z,a.height=b-ne,a}Oe.yi=function(a,y,b){return this.x=a-b.offsetX-b.x*this.width,this.y=y-b.offsetY-b.y*this.height,this};function ia(a,y,b,E,x,z,ne,ie){return ne===void 0&&(ne=0),ie===void 0&&(ie=0),a<=x&&x+ne<=a+b&&y<=z&&z+ie<=y+E}function za(a,y,b,E,x,z,ne,ie){return a>ne+x||x>b+a?!1:!(y>ie+z||z>E+y)}Oe.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Oe.Mz=function(){return this.width===0&&this.height===0},In.alloc=function(){var a=Ls.pop();return a===void 0?new In:a},In.allocAt=function(a,y,b,E){var x=Ls.pop();return x===void 0?new In(a,y,b,E):x.h(a,y,b,E)},In.free=function(a){Ls.push(a)},Jn.Object.defineProperties(In.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 it(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new an(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new it(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}}}),In.prototype.isEmpty=In.prototype.Mz,In.prototype.isReal=In.prototype.w,In.intersectsLineSegment=function(a,y,b,E,x,z,ne,ie){return tn.Fx(a,y,b,E,x,z,ne,ie)},In.prototype.setSpot=In.prototype.yi,In.prototype.union=In.prototype.Kv,In.prototype.unionRect=In.prototype.ed,In.prototype.unionPoint=In.prototype.Ye,In.prototype.intersects=In.prototype.Vu,In.prototype.intersectsRect=In.prototype.Yc,In.prototype.intersect=In.prototype.Uu,In.prototype.intersectRect=In.prototype.Ex,In.prototype.grow=In.prototype.Hz,In.prototype.subtractMargin=In.prototype.Fv,In.prototype.addMargin=In.prototype.Co,In.prototype.inflate=In.prototype.Bc,In.prototype.offset=In.prototype.offset,In.prototype.contains=In.prototype.contains,In.prototype.containsRect=In.prototype.Re,In.prototype.containsPoint=In.prototype.ca,In.prototype.equalsApprox=In.prototype.Xa,In.prototype.equalTo=In.prototype.hi,In.prototype.equals=In.prototype.D,In.prototype.setSize=In.prototype.tA,In.prototype.setPoint=In.prototype.dd,In.prototype.set=In.prototype.set,In.prototype.setTo=In.prototype.sg;var hs=null,il=null,Ls=[];In.className="Rect",In.parse=po,In.stringify=Yi,In.contains=ia,In.intersects=za,In.ZeroRect=hs=new In(0,0,0,0).ja(),In.NoRect=il=new In(NaN,NaN,NaN,NaN).ja(),In.parse=po,In.stringify=Yi,In.contains=ia,In.intersects=za;function no(a,y,b,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:b===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=b,this.left=E):Lt("Invalid arguments to Margin constructor: "+a+", "+y+", "+b+", "+E),this._isFrozen=!1}no.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},no.prototype.sg=function(a,y,b,E){return this.top=a,this.right=y,this.bottom=b,this.left=E,this},no.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},no.prototype.copy=function(){var a=new no;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Oe=no.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ra(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,b=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(b=parseFloat(E)),isNaN(b))return new no;for(var x=NaN;a[y]==="";)y++;if((E=a[y++])&&(x=parseFloat(E)),isNaN(x))return new no(b);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new no(b,x);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new no(b,x):new no(b,x,z,ne)}return new no}function Ma(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Oe.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Oe.D=function(a){return a instanceof no?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Oe.hi=function(a,y,b,E){return this.top===a&&this.right===y&&this.bottom===b&&this.left===E},Oe.Xa=function(a){return tn.B(this.top,a.top)&&tn.B(this.right,a.right)&&tn.B(this.bottom,a.bottom)&&tn.B(this.left,a.left)},Oe.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},no.alloc=function(){var a=_a.pop();return a===void 0?new no:a},no.free=function(a){_a.push(a)},no.prototype.isReal=no.prototype.w,no.prototype.equalsApprox=no.prototype.Xa,no.prototype.equalTo=no.prototype.hi,no.prototype.equals=no.prototype.D,no.prototype.set=no.prototype.set,no.prototype.setTo=no.prototype.sg;var ts=null,Oa=null,_a=[];no.className="Margin",no.parse=Ra,no.stringify=Ma,no.ZeroMargin=ts=new no(0,0,0,0).ja(),no.TwoMargin=Oa=new no(2,2,2,2).ja(),no.parse=Ra,no.stringify=Ma;function fi(a,y,b,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),b===void 0&&(b=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=b,this.offsetY=E),this._isFrozen=!1}var Qi,ho,Io,Do,sa,Ji,Ss,pa,Ga,Fo,ga,Hs,da,Rs,ol,Xs,$a,Kl,nc,es,Pl,ll,ul,rc,yc,ns,ic,oc,Mu,Ou,Ms,Qs,fs,ks,yu,zs;fi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fi.prototype.sg=function(a,y,b,E){return this.x=a,this.y=y,this.offsetX=b,this.offsetY=E,this},fi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fi.prototype.copy=function(){var a=new fi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Oe=fi.prototype,Oe.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Oe.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this};function wa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ma(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Qi;if(a==="TopLeft")return ho;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Io;if(a==="TopRight")return Do;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return sa;if(a==="Center")return Ji;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ss;if(a==="BottomLeft")return pa;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ga;if(a==="BottomRight")return Fo;if(a==="TopSide")return ga;if(a==="LeftSide")return Hs;if(a==="RightSide")return da;if(a==="BottomSide")return Rs;if(a==="TopBottomSides")return ol;if(a==="LeftRightSides")return Xs;if(a==="TopLeftSides")return $a;if(a==="TopRightSides")return Kl;if(a==="BottomLeftSides")return nc;if(a==="BottomRightSides")return es;if(a==="NotTopSide")return Pl;if(a==="NotLeftSide")return ll;if(a==="NotRightSide")return ul;if(a==="NotBottomSide")return rc;if(a==="AllSides")return yc;if(a==="Default")return ns;a=a.split(" ");for(var y=0,b=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(b=parseFloat(E));for(var x=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(x=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ne=parseFloat(E)),new fi(b,x,z,ne)}return new fi}function Vo(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Oe.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(Qi)?"None":this.D(ho)?"TopLeft":this.D(Io)?"Top":this.D(Do)?"TopRight":this.D(sa)?"Left":this.D(Ji)?"Center":this.D(Ss)?"Right":this.D(pa)?"BottomLeft":this.D(Ga)?"Bottom":this.D(Fo)?"BottomRight":this.D(ga)?"TopSide":this.D(Hs)?"LeftSide":this.D(da)?"RightSide":this.D(Rs)?"BottomSide":this.D(ol)?"TopBottomSides":this.D(Xs)?"LeftRightSides":this.D($a)?"TopLeftSides":this.D(Kl)?"TopRightSides":this.D(nc)?"BottomLeftSides":this.D(es)?"BottomRightSides":this.D(Pl)?"NotTopSide":this.D(ll)?"NotLeftSide":this.D(ul)?"NotRightSide":this.D(rc)?"NotBottomSide":this.D(yc)?"AllSides":this.D(ns)?"Default":"None"},Oe.D=function(a){return a instanceof fi?(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},Oe.gv=function(){return new fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Oe.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ic))a=Hs;else if(a.D(oc))a=da;else if(a.D(Mu))a=ga;else if(a.D(Ou))a=Rs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Oe.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Oe.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Oe.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Oe.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Oe.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fi.alloc=function(){var a=cs.pop();return a===void 0?new fi:a},fi.free=function(a){cs.push(a)},fi.prototype.isDefault=fi.prototype.Xb,fi.prototype.isNone=fi.prototype.ys,fi.prototype.isSide=fi.prototype.$c,fi.prototype.isNoSpot=fi.prototype.Mc,fi.prototype.isSpot=fi.prototype.sb,fi.prototype.includesSide=fi.prototype.Hf,fi.prototype.opposite=fi.prototype.gv,fi.prototype.equals=fi.prototype.D,fi.prototype.set=fi.prototype.set,fi.prototype.setTo=fi.prototype.sg;var cs=[];fi.className="Spot",fi.parse=ma,fi.stringify=Vo,fi.None=Qi=wa(new fi(0,0,0,0),0).ja(),fi.Default=ns=wa(new fi(0,0,-1,0),-1).ja(),fi.TopLeft=ho=new fi(0,0,0,0).ja(),fi.TopCenter=Io=new fi(.5,0,0,0).ja(),fi.TopRight=Do=new fi(1,0,0,0).ja(),fi.LeftCenter=sa=new fi(0,.5,0,0).ja(),fi.Center=Ji=new fi(.5,.5,0,0).ja(),fi.RightCenter=Ss=new fi(1,.5,0,0).ja(),fi.BottomLeft=pa=new fi(0,1,0,0).ja(),fi.BottomCenter=Ga=new fi(.5,1,0,0).ja(),fi.BottomRight=Fo=new fi(1,1,0,0).ja(),fi.MiddleTop=Ms=Io,fi.MiddleLeft=Qs=sa,fi.MiddleRight=fs=Ss,fi.MiddleBottom=ks=Ga,fi.Top=Mu=Io,fi.Left=ic=sa,fi.Right=oc=Ss,fi.Bottom=Ou=Ga,fi.TopSide=ga=wa(new fi(0,0,1,1),1).ja(),fi.LeftSide=Hs=wa(new fi(0,0,1,2),1).ja(),fi.RightSide=da=wa(new fi(0,0,1,4),1).ja(),fi.BottomSide=Rs=wa(new fi(0,0,1,8),1).ja(),fi.TopBottomSides=ol=wa(new fi(0,0,1,9),1).ja(),fi.LeftRightSides=Xs=wa(new fi(0,0,1,6),1).ja(),fi.TopLeftSides=$a=wa(new fi(0,0,1,3),1).ja(),fi.TopRightSides=Kl=wa(new fi(0,0,1,5),1).ja(),fi.BottomLeftSides=nc=wa(new fi(0,0,1,10),1).ja(),fi.BottomRightSides=es=wa(new fi(0,0,1,12),1).ja(),fi.NotTopSide=Pl=wa(new fi(0,0,1,14),1).ja(),fi.NotLeftSide=ll=wa(new fi(0,0,1,13),1).ja(),fi.NotRightSide=ul=wa(new fi(0,0,1,11),1).ja(),fi.NotBottomSide=rc=wa(new fi(0,0,1,7),1).ja(),fi.AllSides=yc=wa(new fi(0,0,1,15),1).ja(),yu=new fi(.156,.156).ja(),zs=new fi(.844,.844).ja(),fi.parse=ma,fi.stringify=Vo;function Mi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Mi.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},Mi.prototype.setTransform=function(a,y,b,E,x,z){return this.m11=a,this.m12=y,this.m21=b,this.m22=E,this.dx=x,this.dy=z,this},Mi.prototype.copy=function(){var a=new Mi;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},Mi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Mi.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},Mi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Mi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Mi.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,b=this.m12*a.m11+this.m22*a.m12,E=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=b,this.m21=E,this.m22=x,this},Mi.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),b=a.m22*y,E=-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*b+this.m21*E,b=this.m12*b+this.m22*E,E=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=b,this.m21=E,this.m22=x,this},Mi.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,b=-this.m21*a,E=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=b,this.m22=E,this.dx=x,this.dy=z,this},Mi.prototype.rotate=function(a,y,b){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,b),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var x=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ne=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=x,this.m21=z,this.m22=ne,this.translate(-y,-b),this},Oe=Mi.prototype,Oe.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Oe.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Oe.Ga=function(a){var y=a.x,b=a.y;return a.h(y*this.m11+b*this.m21+this.dx,y*this.m12+b*this.m22+this.dy)},Oe.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),b=a.x,E=a.y;return a.h(b*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),b*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Oe.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),b=1.25*a.x,E=1.2*a.y;return a.h(b*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),b*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Oe.pp=function(a){var y=a.x,b=a.y,E=y+a.width,x=b+a.height,z=this.m11,ne=this.m12,ie=this.m21,se=this.m22,de=this.dx,pe=this.dy,Se=y*z+b*ie+de,Le=y*ne+b*se+pe,Me=E*z+b*ie+de,ze=E*ne+b*se+pe;return b=y*z+x*ie+de,y=y*ne+x*se+pe,z=E*z+x*ie+de,E=E*ne+x*se+pe,x=Math.min(Se,Me),Se=Math.max(Se,Me),Me=Math.min(Le,ze),Le=Math.max(Le,ze),x=Math.min(x,b),Se=Math.max(Se,b),Me=Math.min(Me,y),Le=Math.max(Le,y),x=Math.min(x,z),Se=Math.max(Se,z),Me=Math.min(Me,E),Le=Math.max(Le,E),a.h(x,Me,Se-x,Le-Me),a},Mi.alloc=function(){var a=ps.pop();return a===void 0?new Mi:a},Mi.free=function(a){ps.push(a)},Mi.prototype.transformRect=Mi.prototype.pp,Mi.prototype.transformPoint=Mi.prototype.Ga,Mi.prototype.scale=Mi.prototype.scale,Mi.prototype.translate=Mi.prototype.translate,Mi.prototype.rotate=Mi.prototype.rotate,Mi.prototype.invert=Mi.prototype.Vj,Mi.prototype.multiplyInverted=Mi.prototype.bv,Mi.prototype.multiply=Mi.prototype.multiply,Mi.prototype.reset=Mi.prototype.reset,Mi.prototype.isIdentity=Mi.prototype.ws,Mi.prototype.equals=Mi.prototype.D,Mi.prototype.setTransform=Mi.prototype.setTransform,Mi.prototype.set=Mi.prototype.set;var ps=[];Mi.className="Transform",Mi.xF="54a702f3e53909c447824c6706603faf4c";var tn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=tn.Uv;if(y===null){y=[];for(var b=0;2e3>=b;b++)y[b]=Math.sqrt(b);tn.Uv=y}return 1>a?(b=1/a,2e3>=b?1/y[b|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,b,E,x,z,ne){if(0>=x&&(x=1e-6),a<b)var ie=a,se=b;else ie=b,se=a;if(y<E)var de=y,pe=E;else de=E,pe=y;if(a===b)return de<=ne&&ne<=pe&&a-x<=z&&z<=a+x;if(y===E)return ie<=z&&z<=se&&y-x<=ne&&ne<=y+x;if(se+=x,ie-=x,ie<=z&&z<=se&&(pe+=x,de-=x,de<=ne&&ne<=pe))if(se-ie>pe-de)if(a-b>x||b-a>x){if(z=(E-y)/(b-a)*(z-a)+y,z-x<=ne&&ne<=z+x)return!0}else return!0;else if(y-E>x||E-y>x){if(ne=(b-a)/(E-y)*(ne-y)+a,ne-x<=z&&z<=ne+x)return!0}else return!0;return!1},cs:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se){if(tn.Yb(a,y,ne,ie,Se,b,E)&&tn.Yb(a,y,ne,ie,Se,x,z))return tn.Yb(a,y,ne,ie,Se,de,pe);var Le=(a+b)/2,Me=(y+E)/2,ze=(b+x)/2,qe=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(Le+ze)/2,b=(Me+qe)/2,ze=(ze+x)/2,qe=(qe+z)/2;var Ct=(E+ze)/2,vt=(b+qe)/2;return tn.cs(a,y,Le,Me,E,b,Ct,vt,se,de,pe,Se)||tn.cs(Ct,vt,ze,qe,x,z,ne,ie,se,de,pe,Se)},ax:function(a,y,b,E,x,z,ne,ie,se){var de=(b+x)/2,pe=(E+z)/2;return se.h((((a+b)/2+de)/2+(de+(x+ne)/2)/2)/2,(((y+E)/2+pe)/2+(pe+(z+ie)/2)/2)/2),se},My:function(a,y,b,E,x,z,ne,ie){var se=(b+x)/2,de=(E+z)/2;return $n(((a+b)/2+se)/2,((y+E)/2+de)/2,(se+(x+ne)/2)/2,(de+(z+ie)/2)/2)},Dl:function(a,y,b,E,x,z,ne,ie,se,de){if(tn.Yb(a,y,ne,ie,se,b,E)&&tn.Yb(a,y,ne,ie,se,x,z))vo(de,a,y,0,0),vo(de,ne,ie,0,0);else{var pe=(a+b)/2,Se=(y+E)/2,Le=(b+x)/2,Me=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Le)/2,b=(Se+Me)/2,Le=(Le+x)/2,Me=(Me+z)/2;var ze=(E+Le)/2,qe=(b+Me)/2;tn.Dl(a,y,pe,Se,E,b,ze,qe,se,de),tn.Dl(ze,qe,Le,Me,x,z,ne,ie,se,de)}return de},Qe:function(a,y,b,E,x,z,ne,ie,se,de){if(tn.Yb(a,y,ne,ie,se,b,E)&&tn.Yb(a,y,ne,ie,se,x,z))de.length===0&&(de.push(a),de.push(y)),de.push(ne),de.push(ie);else{var pe=(a+b)/2,Se=(y+E)/2,Le=(b+x)/2,Me=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(pe+Le)/2,b=(Se+Me)/2,Le=(Le+x)/2,Me=(Me+z)/2;var ze=(E+Le)/2,qe=(b+Me)/2;tn.Qe(a,y,pe,Se,E,b,ze,qe,se,de),tn.Qe(ze,qe,Le,Me,x,z,ne,ie,se,de)}return de},jv:function(a,y,b,E,x,z,ne,ie,se,de){if(tn.Yb(a,y,x,z,de,b,E))return tn.Yb(a,y,x,z,de,ie,se);var pe=(a+b)/2,Se=(y+E)/2;b=(b+x)/2,E=(E+z)/2;var Le=(pe+b)/2,Me=(Se+E)/2;return tn.jv(a,y,pe,Se,Le,Me,ne,ie,se,de)||tn.jv(Le,Me,b,E,x,z,ne,ie,se,de)},OA:function(a,y,b,E,x,z,ne){return ne.h(((a+b)/2+(b+x)/2)/2,((y+E)/2+(E+z)/2)/2),ne},iv:function(a,y,b,E,x,z,ne,ie){if(tn.Yb(a,y,x,z,ne,b,E))vo(ie,a,y,0,0),vo(ie,x,z,0,0);else{var se=(a+b)/2,de=(y+E)/2;b=(b+x)/2,E=(E+z)/2;var pe=(se+b)/2,Se=(de+E)/2;tn.iv(a,y,se,de,pe,Se,ne,ie),tn.iv(pe,Se,b,E,x,z,ne,ie)}return ie},ep:function(a,y,b,E,x,z,ne,ie){if(tn.Yb(a,y,x,z,ne,b,E))ie.length===0&&(ie.push(a),ie.push(y)),ie.push(x),ie.push(z);else{var se=(a+b)/2,de=(y+E)/2;b=(b+x)/2,E=(E+z)/2;var pe=(se+b)/2,Se=(de+E)/2;tn.ep(a,y,se,de,pe,Se,ne,ie),tn.ep(pe,Se,b,E,x,z,ne,ie)}return ie},Eo:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se,Le,Me){if(tn.Yb(a,y,ne,ie,Le,b,E)&&tn.Yb(a,y,ne,ie,Le,x,z))return!tn.Rl(a,y,ne,ie,se,de,pe,Se)||(Le=(a-ne)*(de-Se)-(y-ie)*(se-pe),Le===0)?!1:(Me.h(((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Le,((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Le),!0);var ze=(a+b)/2,qe=(y+E)/2,Ct=(b+x)/2,vt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(ze+Ct)/2,b=(qe+vt)/2,Ct=(Ct+x)/2,vt=(vt+z)/2;var Dt=(E+Ct)/2,Bt=(b+vt)/2,Gt=1/0,$t=!1,Rn=0,Jr=0;return tn.Eo(a,y,ze,qe,E,b,Dt,Bt,se,de,pe,Se,Le,Me)&&(a=(Me.x-se)*(Me.x-se)+(Me.y-de)*(Me.y-de),a<Gt&&(Gt=a,$t=!0,Rn=Me.x,Jr=Me.y)),tn.Eo(Dt,Bt,Ct,vt,x,z,ne,ie,se,de,pe,Se,Le,Me)&&(Me.x-se)*(Me.x-se)+(Me.y-de)*(Me.y-de)<Gt&&($t=!0,Rn=Me.x,Jr=Me.y),$t&&(Me.x=Rn,Me.y=Jr),$t},Fo:function(a,y,b,E,x,z,ne,ie,se,de,pe,Se,Le){var Me=0;if(tn.Yb(a,y,ne,ie,Le,b,E)&&tn.Yb(a,y,ne,ie,Le,x,z)){if(Le=(a-ne)*(de-Se)-(y-ie)*(se-pe),Le===0)return Me;var ze=((a*ie-y*ne)*(se-pe)-(a-ne)*(se*Se-de*pe))/Le,qe=((a*ie-y*ne)*(de-Se)-(y-ie)*(se*Se-de*pe))/Le;if(ze>=pe)return Me;if((se>pe?se-pe:pe-se)<(de>Se?de-Se:Se-de)){if(y<ie?(se=y,a=ie):(se=ie,a=y),qe<se||qe>a)return Me}else if(a<ne?(se=a,a=ne):se=ne,ze<se||ze>a)return Me;0<Le?Me++:0>Le&&Me--}else{ze=(a+b)/2,qe=(y+E)/2;var Ct=(b+x)/2,vt=(E+z)/2;x=(x+ne)/2,z=(z+ie)/2,E=(ze+Ct)/2,b=(qe+vt)/2,Ct=(Ct+x)/2,vt=(vt+z)/2;var Dt=(E+Ct)/2,Bt=(b+vt)/2;Me+=tn.Fo(a,y,ze,qe,E,b,Dt,Bt,se,de,pe,Se,Le),Me+=tn.Fo(Dt,Bt,Ct,vt,x,z,ne,ie,se,de,pe,Se,Le)}return Me},qh:function(a,y,b,E,x,z,ne){return tn.$(a,b)?(y<E?(b=y,y=E):b=E,z<b?(ne.h(a,b),!1):z>y?(ne.h(a,y),!1):(ne.h(a,z),!0)):tn.$(y,E)?(a<b?(E=a,a=b):E=b,x<E?(ne.h(E,y),!1):x>a?(ne.h(a,y),!1):(ne.h(x,y),!0)):(x=((a-x)*(a-b)+(y-z)*(y-E))/((b-a)*(b-a)+(E-y)*(E-y)),-5e-6>x?(ne.h(a,y),!1):1.000005<x?(ne.h(b,E),!1):(ne.h(a+x*(b-a),y+x*(E-y)),!0))},Ve:function(a,y,b,E,x,z,ne,ie,se){return tn.B(a,b)&&tn.B(y,E)?(se.h(a,y),!1):tn.$(x,ne)?tn.$(a,b)?(tn.qh(a,y,b,E,x,z,se),!1):tn.qh(a,y,b,E,x,(E-y)/(b-a)*(x-a)+y,se):(ie=(ie-z)/(ne-x),tn.$(a,b)?(b=ie*(a-x)+z,y<E?(x=y,y=E):x=E,b<x?(se.h(a,x),!1):b>y?(se.h(a,y),!1):(se.h(a,b),!0)):(ne=(E-y)/(b-a),tn.$(ie,ne)?(tn.qh(a,y,b,E,x,z,se),!1):(x=(ne*a-ie*x+z-y)/(ne-ie),tn.$(ne,0)?(a<b?(E=a,a=b):E=b,x<E?(se.h(E,y),!1):x>a?(se.h(a,y),!1):(se.h(x,y),!0)):tn.qh(a,y,b,E,x,ne*(x-a)+y,se))))},MA:function(a,y,b,E,x){return tn.Ve(b.x,b.y,E.x,E.y,a.x,a.y,y.x,y.y,x)},KA:function(a,y,b,E,x,z,ne,ie,se,de){function pe(Ct,vt){var Dt=(Ct-a)*(Ct-a)+(vt-y)*(vt-y);Dt<Se&&(Se=Dt,se.h(Ct,vt))}var Se=1/0;pe(se.x,se.y);var Le=0,Me=0,ze=0,qe=0;if(x<ne?(Le=x,Me=ne):(Le=ne,Me=x),z<ie?(ze=x,qe=ne):(ze=ne,qe=x),Le=(Me-Le)/2+de,de=(qe-ze)/2+de,x=(x+ne)/2,z=(z+ie)/2,Le===0||de===0)return se;if(.5>(b>a?b-a:a-b)){if(Le=1-(b-x)*(b-x)/(Le*Le),0>Le)return se;Le=Math.sqrt(Le),E=-de*Le+z,pe(b,de*Le+z),pe(b,E)}else{if(b=(E-y)/(b-a),E=1/(Le*Le)+b*b/(de*de),ie=2*b*(y-b*a)/(de*de)-2*b*z/(de*de)-2*x/(Le*Le),Le=ie*ie-4*E*(2*b*a*z/(de*de)-2*y*z/(de*de)+z*z/(de*de)+x*x/(Le*Le)-1+(y-b*a)*(y-b*a)/(de*de)),0>Le)return se;Le=Math.sqrt(Le),de=(-ie+Le)/(2*E),pe(de,b*de-b*a+y),Le=(-ie-Le)/(2*E),pe(Le,b*Le-b*a+y)}return se},Ff:function(a,y,b,E,x,z,ne,ie,se){var de=1e21,pe=a,Se=y;if(tn.Ve(a,y,a,E,x,z,ne,ie,se)){var Le=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z);Le<de&&(de=Le,pe=se.x,Se=se.y)}return tn.Ve(b,y,b,E,x,z,ne,ie,se)&&(Le=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),Le<de&&(de=Le,pe=se.x,Se=se.y)),tn.Ve(a,y,b,y,x,z,ne,ie,se)&&(y=(se.x-x)*(se.x-x)+(se.y-z)*(se.y-z),y<de&&(de=y,pe=se.x,Se=se.y)),tn.Ve(a,E,b,E,x,z,ne,ie,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,b){return tn.Fx(a.x,a.y,a.width,a.height,y.x,y.y,b.x,b.y)},Fx:function(a,y,b,E,x,z,ne,ie){var se=a+b,de=y+E;return x===ne?(z<ie?(ne=z,z=ie):ne=ie,a<=x&&x<=se&&ne<=de&&z>=y):z===ie?(x<ne?(ie=x,x=ne):ie=ne,y<=z&&z<=de&&ie<=se&&x>=a):!!(ia(a,y,b,E,x,z)||ia(a,y,b,E,ne,ie)||tn.Rl(a,y,se,y,x,z,ne,ie)||tn.Rl(se,y,se,de,x,z,ne,ie)||tn.Rl(se,de,a,de,x,z,ne,ie)||tn.Rl(a,de,a,y,x,z,ne,ie))},Rl:function(a,y,b,E,x,z,ne,ie){return a===b&&y===E&&x===ne&&z===ie?a===x&&y===z:0>=tn.Fl(a,y,b,E,x,z)*tn.Fl(a,y,b,E,ne,ie)&&0>=tn.Fl(x,z,ne,ie,a,y)*tn.Fl(x,z,ne,ie,b,E)},Fl:function(a,y,b,E,x,z){return b-=a,E-=y,a=x-a,y=z-y,z=a*E-y*b,z===0&&(z=a*b+y*E,0<z&&(z=(a-b)*b+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,b,E,x,z){var ne=Math.PI;z||(E*=ne/180,x*=ne/180);var ie=E>x?-1:1;z=[];var se=ne/2,de=E;if(E=Math.min(2*ne,Math.abs(x-E)),1e-5>E)return se=de+ie*Math.min(E,se),ie=a+b*Math.cos(de),de=y+b*Math.sin(de),a+=b*Math.cos(se),y+=b*Math.sin(se),b=(ie+a)/2,se=(de+y)/2,z.push([ie,de,b,se,b,se,a,y]),z;for(;1e-5<E;)x=de+ie*Math.min(E,se),z.push(tn.Vy(b,de,x,a,y)),E-=Math.abs(x-de),de=x;return z},Vy:function(a,y,b,E,x){var z=(b-y)/2,ne=a*Math.cos(z),ie=a*Math.sin(z),se=-ie,de=ne*ne+se*se,pe=de+ne*ne+se*ie;return de=4/3*(Math.sqrt(2*de*pe)-pe)/(ne*ie-se*ne),ie=ne-de*se,ne=se+de*ne,se=-ne,de=z+y,z=Math.cos(de),de=Math.sin(de),[E+a*Math.cos(y),x+a*Math.sin(y),E+ie*z-ne*de,x+ie*de+ne*z,E+ie*z-se*de,x+ie*de+se*z,E+a*Math.cos(b),x+a*Math.sin(b)]},No:function(a,y,b,E,x,z,ne){b=Math.floor((a-b)/x)*x+b,E=Math.floor((y-E)/z)*z+E;var ie=b;return b+x-a<x/2&&(ie=b+x),a=E,E+z-y<z/2&&(a=E+z),ne.h(ie,a),ne},vx:function(a,y){var b=Math.max(a,y);a=Math.min(a,y);var E;do y=b%a,b=E=a,a=y;while(0<y);return E},$y:function(a,y,b,E){var x=0>b,z=0>E;if(a<y)var ne=1,ie=0;else ne=0,ie=1;var se=ne===0?a:y,de=ne===0?b:E;return(ne===0?x:z)&&(de=-de),ne=ie,b=ne===0?b:E,(ne===0?x:z)&&(b=-b),tn.az(se,ne===0?a:y,de,b,0,0)},az:function(a,y,b,E,x,z){if(0<E)if(0<b){x=a*a,z=y*y,a*=b;var ne=y*E,ie=-z+ne,se=-z+Math.sqrt(a*a+ne*ne);y=ie;for(var de=0;9999999999>de&&(y=.5*(ie+se),!(y===ie||y===se));++de){var pe=a/(y+x),Se=ne/(y+z);if(pe=pe*pe+Se*Se-1,0<pe)ie=y;else if(0>pe)se=y;else break}b=x*b/(y+x)-b,E=z*E/(y+z)-E,b=Math.sqrt(b*b+E*E)}else b=Math.abs(E-y);else E=a*a-y*y,z=a*b,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),b=a*E-b,b=Math.sqrt(b*b+z*z)):b=Math.abs(b-a);return b},Ze:new qr,um:new qr,Mf:new qr,Nf:0,vm:100};tn.za=tn.AA;function Nr(a){vi(this),this.l=2,a===void 0&&(a=Nr.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Nr.o?this.ee=new Qn:(Nr.V===null&&(Nr.V=new Qn().freeze()),this.ee=Nr.V),this.aq=this.ee.Ja,this.Ip=new In().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ho,this.gg=Fo,this.Rk=this.Sk=NaN,this.Uf=Cr}Nr.prototype.copy=function(){var a=new Nr;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===Nr.o){for(var y=this.ee.s,b=a.ee,E=0;E<y.length;E++)b.add(y[E].copy());a.ee=b}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},Nr.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Nr.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Nr.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,b=0;b<y;b++)a[b].freeze();return this},Nr.prototype.ka=function(){if(Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Nr.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,b=0;b<y;b++)a[b].ka();return this},Nr.prototype.Xa=function(a){if(!(a instanceof Nr))return!1;if(this.type!==a.type)return this.type===Nr.j&&a.type===Nr.o?Tl(this,a):a.type===Nr.j&&this.type===Nr.o?Tl(a,this):!1;if(this.type===Nr.o){var y=this.figures.s;a=a.figures.s;var b=y.length;if(b!==a.length)return!1;for(var E=0;E<b;E++)if(!y[E].Xa(a[E]))return!1;return!0}return tn.B(this.startX,a.startX)&&tn.B(this.startY,a.startY)&&tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)};function Tl(a,y){return a.type!==Nr.j||y.type!==Nr.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&tn.B(a.startX,y.startX)&&tn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Zo&&tn.B(a.endX,y.endX)&&tn.B(a.endY,y.endY))))}Nr.ia=function(a){return a.toString()},Nr.prototype.qb=function(a){a.classType===Nr&&(this.type=a)},Nr.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Nr.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 Nr.u:var y=new In(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 Nr.F:if(y=new In(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 b=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+b+"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 "+b;case Nr.o:y="",b=this.figures.s;for(var E=b.length,x=0;x<E;x++){var z=b[x];0<x&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Nr.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,b="",E=0;E<y;E++){var x=a[E];b=x.match(/[Ff]/)!==null?E===0?b+x:b+("X"+(x[0]===" "?"":" ")+x):b+((E===0?"":"X ")+"F"+(x[0]===" "?"":" ")+x)}return b},Nr.parse=function(a,y){function b(){return qe>=Gt-1?!0:de[qe+1].match($t)!==null}function E(){return qe++,de[qe]}function x(to){var Ui=parseFloat(E()),Uo=parseFloat(E());Ct===Ct.toLowerCase()&&(Ui=Bt.x+Ui,Uo=Bt.y+Uo),to.h(Ui,Uo)}function z(){return x(Bt),Bt}function ne(){return x(Dt),Dt}function ie(){var to=vt.toLowerCase();return to!=="c"&&to!=="s"&&to!=="q"&&to!=="t"?Bt:new it(2*Bt.x-Dt.x,2*Bt.y-Dt.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=Mr();for(var Se="",Le=!1,Me=0;Me<pe.length;Me++){var ze=pe[Me];ze!=="."||Le?ze==="."?(se.push(Se),Se="."):Se+=ze:(Le=!0,Se+=ze)}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,Ur(se)}}var qe=-1,Ct="",vt="";se=new it(0,0);var Dt=new it(0,0),Bt=new it(0,0),Gt=de.length;a=BS(null),Le=Se=pe=!1,Me=!0,ze=null;for(var $t=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(qe>=Gt-1);)if(vt=Ct,Ct=E(),Ct!=="")switch(Ct.toUpperCase()){case"X":Me=!0,Se=pe=!1;break;case"M":for(ze=z(),a.mc===null||Me===!0?(mg(a,ze.x,ze.y,pe,!Se,Le),Me=!1):a.moveTo(ze.x,ze.y),se.assign(Bt);!b();)ze=z(),a.lineTo(ze.x,ze.y);break;case"L":for(;!b();)ze=z(),a.lineTo(ze.x,ze.y);break;case"H":for(;!b();)Bt=new it((Ct===Ct.toLowerCase()?Bt.x:0)+parseFloat(E()),Bt.y),a.lineTo(Bt.x,Bt.y);break;case"V":for(;!b();)Bt=new it(Bt.x,(Ct===Ct.toLowerCase()?Bt.y:0)+parseFloat(E())),a.lineTo(Bt.x,Bt.y);break;case"C":for(;!b();){ze=new it,x(ze);var Rn=ne(),Jr=z();Th(a,ze.x,ze.y,Rn.x,Rn.y,Jr.x,Jr.y)}break;case"S":for(;!b();)ze=ie(),Rn=ne(),Jr=z(),Th(a,ze.x,ze.y,Rn.x,Rn.y,Jr.x,Jr.y);break;case"Q":for(;!b();)ze=ne(),Rn=z(),d0(a,ze.x,ze.y,Rn.x,Rn.y);break;case"T":for(;!b();)Dt=ze=ie(),Rn=z(),d0(a,ze.x,ze.y,Rn.x,Rn.y);break;case"B":for(;!b();){ze=parseFloat(E()),Rn=parseFloat(E()),Jr=parseFloat(E());var gi=parseFloat(E()),di=parseFloat(E()),Br=di,gr=!1;b()||(Br=parseFloat(E()),b()||(gr=parseFloat(E())!==0)),Ct===Ct.toLowerCase()&&(Jr+=Bt.x,gi+=Bt.y),a.arcTo(ze,Rn,Jr,gi,di,Br,gr)}break;case"A":for(;!b();)ze=Math.abs(parseFloat(E())),Rn=Math.abs(parseFloat(E())),Jr=parseFloat(E()),di=gi=!1,gr=Br=0,Br=E(),Br.length===1?(gi=!!parseFloat(Br),di=!!parseFloat(E()),Br=parseFloat(E())):Br.length===2?(gi=!!parseFloat(Br[0]),di=!!parseFloat(Br[1]),Br=parseFloat(E())):(gi=!!parseFloat(Br[0]),di=!!parseFloat(Br[1]),Br=parseFloat(Br.slice(2))),gr=parseFloat(E()),Ct===Ct.toLowerCase()&&(Br=Bt.x+Br,gr=Bt.y+gr),Bt.h(Br,gr),dE(a,ze,Rn,Jr,gi,di,Br,gr);break;case"Z":cE(a),Bt.assign(se);break;case"F":for(ze="",Rn=1;de[qe+Rn];)if(de[qe+Rn]==="0")Le=!0,Rn++;else if(de[qe+Rn].match(/[Uu]/)!==null)Rn++;else if(de[qe+Rn].match($t)===null)Rn++;else{ze=de[qe+Rn];break}ze.match(/[Mm]/)?pe=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(ze="",Rn=1;de[qe+Rn];)if(de[qe+Rn].match(/[Ff]/)!==null)Rn++;else if(de[qe+Rn].match($t)===null)Rn++;else{ze=de[qe+Rn];break}ze.match(/[Mm]/)?Se=!0:a.mc.isShadowed=!1}if(se=a.os,h0=a,y)for(y=se.figures.iterator;y.next();)y.value.isFilled=!0;return se},Nr.Ha=function(a,y){for(var b=a.length,E=it.alloc(),x=0;x<b;x++){var z=a[x];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}it.free(E)},Nr.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Nr.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,b=0;b<y;b++)if(a[b].Zu())return!0}return!1},Nr.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Nr.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,b=0;b<y;b++){var E=a[b];E._isInvalidBounds=!1;var x=E.segments;E.sr=x.Ja,E=x.s,x=E.length;for(var z=0;z<x;z++){var ne=E[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),Su(this,a,!1),vo(a,0,0,0,0),a.freeze()},Nr.prototype.ix=function(){var a=new In;return Su(this,a,!0),a};function Su(a,y,b){switch(a.type){case Nr.j:case Nr.u:case Nr.F:b?y.h(a.od,a.pd,0,0):vo(y,a.od,a.pd,0,0),vo(y,a.Dc,a.Ec,0,0);break;case Nr.o:var E=a.figures;a=E.s,E=E.length;for(var x=0;x<E;x++){var z=a[x];b&&x===0?y.h(z.startX,z.startY,0,0):vo(y,z.startX,z.startY,0,0);for(var ne=z.segments.s,ie=ne.length,se=z.startX,de=z.startY,pe=0;pe<ie;pe++){var Se=ne[pe];switch(Se.type){case Zo:case ua:se=Se.endX,de=Se.endY,vo(y,se,de,0,0);break;case Ya:tn.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 cl:tn.iv(se,de,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,y),se=Se.endX,de=Se.endY;break;case Ia:case Sl:var Le=Se.type===Ia?bs(Se,z):Js(Se,z,se,de),Me=Le.length;if(Me===0){se=Se.type===Ia?Se.centerX:Se.endX,de=Se.type===Ia?Se.centerY:Se.endY,vo(y,se,de,0,0);break}Se=null;for(var ze=0;ze<Me;ze++)Se=Le[ze],tn.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:Lt("Unknown Segment type: "+Se.type)}}}break;default:Lt("Unknown Geometry type: "+a.type)}}Nr.prototype.normalize=function(){this._isFrozen&&cn(this);var a=this.ix();return this.offset(-a.x,-a.y),new it(-a.x,-a.y)},Nr.prototype.offset=function(a,y){return this._isFrozen&&cn(this),this.transform(1,0,0,1,a,y),this},Nr.prototype.scale=function(a,y){return this._isFrozen&&cn(this),this.transform(a,0,0,y,0,0),this},Nr.prototype.rotate=function(a,y,b){this._isFrozen&&cn(this),y===void 0&&(y=0),b===void 0&&(b=0);var E=Mi.alloc();return E.reset(),E.rotate(a,y,b),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Mi.free(E),this},Oe=Nr.prototype,Oe.transform=function(a,y,b,E,x,z){switch(this.type){case Nr.j:case Nr.u:case Nr.F:var ne=this.od,ie=this.pd;this.od=ne*a+ie*b+x,this.pd=ne*y+ie*E+z,ne=this.Dc,ie=this.Ec,this.Dc=ne*a+ie*b+x,this.Ec=ne*y+ie*E+z;break;case Nr.o:for(var se=this.figures.s,de=se.length,pe=0;pe<de;pe++){var Se=se[pe];ne=Se.startX,ie=Se.startY,Se.startX=ne*a+ie*b+x,Se.startY=ne*y+ie*E+z,Se=Se.segments.s;for(var Le=Se.length,Me=0;Me<Le;Me++){var ze=Se[Me];switch(ze.type){case Zo:case ua:ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case Ya:ne=ze.point1X,ie=ze.point1Y,ze.point1X=ne*a+ie*b+x,ze.point1Y=ne*y+ie*E+z,ne=ze.point2X,ie=ze.point2Y,ze.point2X=ne*a+ie*b+x,ze.point2Y=ne*y+ie*E+z,ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case cl:ne=ze.point1X,ie=ze.point1Y,ze.point1X=ne*a+ie*b+x,ze.point1Y=ne*y+ie*E+z,ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z;break;case Ia:ne=ze.centerX,ie=ze.centerY,ze.centerX=ne*a+ie*b+x,ze.centerY=ne*y+ie*E+z,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),ze.startAngle+=ne),0>a&&(ze.startAngle=180-ze.startAngle,ze.sweepAngle=-ze.sweepAngle),0>E&&(ze.startAngle=-ze.startAngle,ze.sweepAngle=-ze.sweepAngle),ze.radiusX*=Math.sqrt(a*a+b*b),ze.radiusY!==void 0&&(ze.radiusY*=Math.sqrt(y*y+E*E));break;case Sl:if(ne=ze.endX,ie=ze.endY,ze.endX=ne*a+ie*b+x,ze.endY=ne*y+ie*E+z,ze.radiusX===0||ze.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),ze.xAxisRotation+=ne),0>a&&(ze.xAxisRotation=180-ze.xAxisRotation,ze.isClockwiseArc=!ze.isClockwiseArc),0>E&&(ze.xAxisRotation=-ze.xAxisRotation,ze.isClockwiseArc=!ze.isClockwiseArc),ze.radiusX*=Math.sqrt(a*a+b*b),ze.radiusY*=Math.sqrt(y*y+E*E);break;default:Lt("Unknown Segment type: "+ze.type)}}}}return this._isInvalidBounds=!0,this},Oe.ca=function(a,y){y===void 0&&(y=0);var b=this.od,E=this.pd,x=this.Dc,z=this.Ec;switch(this.type){case Nr.j:return tn.Yb(b,E,x,z,y,a.x,a.y);case Nr.u:var ne=In.allocAt(Math.min(b,x)-y,Math.min(E,z)-y,Math.abs(x-b)+2*y,Math.abs(z-E)+2*y);return a=ne.ca(a),In.free(ne),a;case Nr.F:ne=Math.min(b,x)-y;var ie=Math.min(E,z)-y;return b=(Math.abs(x-b)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=b||0>=y?!1:(ne=a.x-(ne+b),ie=a.y-(ie+y),1>=ne*ne/(b*b)+ie*ie/(y*y));case Nr.o:return ja(this,a,y,!0,!1);default:return!1}};function ja(a,y,b,E,x){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,ie=0,se,de,pe,Se,Le=a.figures.s,Me=Le.length,ze=0;ze<Me;ze++){var qe=Le[ze],Ct=!qe.isEvenOdd;if(qe.isFilled){if(E&&qe.ca(z,y,b))return!0;var vt=qe.segments;se=qe.startX,de=qe.startY;for(var Dt=se,Bt=de,Gt=vt.s,$t=0;$t<=vt.length;$t++){var Rn=void 0;if($t!==vt.length){Rn=Gt[$t];var Jr=Rn.type;a=Rn.endX,Se=Rn.endY}else Jr=Zo,a=Dt,Se=Bt;switch(Jr){case ua:if(Dt=rs(z,y,ne,y,se,de,Dt,Bt),isNaN(Dt))return!0;ie+=Dt,Dt=a,Bt=Se;break;case Zo:if(se=rs(z,y,ne,y,se,de,a,Se),isNaN(se))return!0;ie+=se;break;case Ya:pe=tn.Fo(se,de,Rn.point1X,Rn.point1Y,Rn.point2X,Rn.point2Y,a,Se,ne,y,z,y,.5),ie+=pe;break;case cl:pe=tn.Fo(se,de,(se+2*Rn.point1X)/3,(de+2*Rn.point1Y)/3,(2*Rn.point1X+a)/3,(2*Rn.point1Y+Se)/3,a,Se,ne,y,z,y,.5),ie+=pe;break;case Ia:case Sl:Jr=Rn.type===Ia?bs(Rn,qe):Js(Rn,qe,se,de);var gi=Jr.length;if(gi===0){if(se=rs(z,y,ne,y,se,de,Rn.type===Ia?Rn.centerX:Rn.endX,Rn.type===Ia?Rn.centerY:Rn.endY),isNaN(se))return!0;ie+=se;break}Rn=null;for(var di=0;di<gi;di++){if(Rn=Jr[di],di===0){if(pe=rs(z,y,ne,y,se,de,Rn[0],Rn[1]),isNaN(pe))return!0;ie+=pe}pe=tn.Fo(Rn[0],Rn[1],Rn[2],Rn[3],Rn[4],Rn[5],Rn[6],Rn[7],ne,y,z,y,.5),ie+=pe}Rn!==null&&(a=Rn[6],Se=Rn[7]);break;default:Lt("Unknown Segment type: "+Rn.type)}se=a,de=Se}if(Ct){if(ie!==0)return!0}else if(ie%2!==0)return!0;ie=0}else if(qe.ca(z,y,x?b:b+2))return!0}return!1}function rs(a,y,b,E,x,z,ne,ie){if(tn.Yb(x,z,ne,ie,.05,a,y))return NaN;var se=(a-b)*(z-ie);if(se===0)return 0;var de=((a*E-y*b)*(x-ne)-(a-b)*(x*ie-z*ne))/se;if(y=(a*E-y*b)*(z-ie)/se,de>=a)return 0;if((x>ne?x-ne:ne-x)<(z>ie?z-ie:ie-z)){if(z<ie){if(y<z||y>ie)return 0}else if(y<ie||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 Al(a,y,b,E){a=a.figures.s;for(var x=a.length,z=0;z<x;z++)if(a[z].ca(y,b,E))return!0;return!1}Oe.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new it),this.type===Nr.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var b=this.flattenedSegments,E=this.flattenedLengths,x=b.length,z=this.flattenedTotalLength*a,ne=0,ie=0;ie<x;ie++){var se=E[ie],de=se.length;for(a=0;a<de;a++){var pe=se[a];if(ne+pe>=z)return E=z-ne,E=pe===0?0:E/pe,b=b[ie],ie=b[2*a],x=b[2*a+1],y.h(ie+(b[2*a+2]-ie)*E,x+(b[2*a+3]-x)*E),y;ne+=pe}}return y},Oe.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Nr.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,b=this.flattenedLengths,E=y.length,x=this.flattenedTotalLength*a,z=0,ne=0;ne<E;ne++){var ie=b[ne],se=ie.length;for(a=0;a<se;a++){var de=ie[a];if(z+de>=x)return x=y[ne],y=x[2*a],b=x[2*a+1],E=x[2*a+2],a=x[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-b)?0:1>Math.abs(E-y)?0<=a-b?90:270:1>Math.abs(a-b)?0<=E-y?0:180:180*Math.atan2(a-b,E-y)/Math.PI;z+=de}}return NaN},Oe.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Nr.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 b=this.flattenedSegments,E=this.flattenedLengths,x=b.length,z=this.flattenedTotalLength*a,ne=0,ie=0;ie<x;ie++){var se=E[ie],de=se.length;for(a=0;a<de;a++){var pe=se[a];if(ne+pe>=z)return E=z-ne,E=pe===0?0:E/pe,pe=b[ie],b=pe[2*a],ie=pe[2*a+1],x=pe[2*a+2],a=pe[2*a+3],y[0]=b+(x-b)*E,y[1]=ie+(a-ie)*E,y[2]=1>Math.abs(x-b)&&1>Math.abs(a-ie)?0:1>Math.abs(x-b)?0<=a-ie?90:270:1>Math.abs(a-ie)?0<=x-b?0:180:180*Math.atan2(a-ie,x-b)/Math.PI,y;ne+=pe}}return y},Oe.xx=function(a){if(this.type===Nr.j){var y=this.startX,b=this.startY,E=this.endX,x=this.endY;if(y!==E||b!==x){var z=a.x;if(a=a.y,y===E){if(b<x){var ne=b;E=x}else ne=x,E=b;return a<=ne?ne===b?0:1:a>=E?E===b?0:1:Math.abs(a-b)/(E-ne)}if(b===x)return y<E?ne=y:(ne=E,E=y),z<=ne?ne===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ne);ne=(E-y)*(E-y)+(x-b)*(x-b);var ie=it.alloc();return tn.qh(y,b,E,x,z,a,ie),a=ie.x,z=ie.y,it.free(ie),Math.sqrt(((a-y)*(a-y)+(z-b)*(z-b))/ne)}}else if(this.type===Nr.u){ne=this.startX,ie=this.startY;var se=this.endX;if(x=this.endY,ne!==se||ie!==x){y=se-ne,b=x-ie,z=2*y+2*b,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),se),a=Math.min(Math.max(a,ie),x),ne=Math.abs(E-ne),se=Math.abs(E-se),ie=Math.abs(a-ie),x=Math.abs(a-x);var de=Math.min(ne,se,ie,x);if(de===ie)return E/z;if(de===se)return(y+a)/z;if(de===x)return(2*y+b-E)/z;if(de===ne)return(2*y+2*b-a)/z}}else{y=this.flattenedSegments,b=this.flattenedLengths,z=this.flattenedTotalLength,E=it.alloc(),x=1/0,ie=ne=0,se=y.length;for(var pe=de=0,Se=0;Se<se;Se++)for(var Le=y[Se],Me=b[Se],ze=Le.length,qe=0;qe<ze;qe+=2){var Ct=Le[qe],vt=Le[qe+1];if(qe!==0){tn.qh(de,pe,Ct,vt,a.x,a.y,E);var Dt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Dt<x&&(x=Dt,ne=ie,ne+=Math.sqrt((E.x-de)*(E.x-de)+(E.y-pe)*(E.y-pe))),ie+=Me[(qe-2)/2]}de=Ct,pe=vt}return it.free(E),a=ne/z,0>a?0:1<a?1:a}return 0};function Fl(a){if(a.tk===null){var y=a.tk=[],b=a.ym=[],E=[],x=[];if(a.type===Nr.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),x.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),b.push(x);else if(a.type===Nr.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),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)),b.push(x);else if(a.type===Nr.F){var z=new Wa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new Eo(Ia);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=bs(ne,z),x=a.length,x===0)E.push(ne.centerX),E.push(ne.centerY);else{ne=z.startX,z=z.startY;for(var ie=0;ie<x;ie++){var se=a[ie];tn.Qe(ne,z,se[2],se[3],se[4],se[5],se[6],se[7],.5,E),ne=se[6],z=se[7]}}y.push(E),b.push(ac(E))}else for(a=a.figures.iterator;a.next();){x=a.value,E=[],E.push(x.startX),E.push(x.startY),ne=x.startX,z=x.startY,ie=ne,se=z;for(var de=x.segments.s,pe=de.length,Se=0;Se<pe;Se++){var Le=de[Se];switch(Le.type){case ua:4<=E.length&&(y.push(E),b.push(ac(E))),E=[],E.push(Le.endX),E.push(Le.endY),ne=Le.endX,z=Le.endY,ie=ne,se=z;break;case Zo:E.push(Le.endX),E.push(Le.endY),ne=Le.endX,z=Le.endY;break;case Ya:tn.Qe(ne,z,Le.point1X,Le.point1Y,Le.point2X,Le.point2Y,Le.endX,Le.endY,.5,E),ne=Le.endX,z=Le.endY;break;case cl:tn.ep(ne,z,Le.point1X,Le.point1Y,Le.endX,Le.endY,.5,E),ne=Le.endX,z=Le.endY;break;case Ia:var Me=bs(Le,x),ze=Me.length;if(ze===0){E.push(Le.centerX),E.push(Le.centerY),ne=Le.centerX,z=Le.centerY;break}for(var qe=0;qe<ze;qe++){var Ct=Me[qe];tn.Qe(ne,z,Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,E),ne=Ct[6],z=Ct[7]}break;case Sl:if(Me=Js(Le,x,ne,z),ze=Me.length,qe=Le.endX,Ct=Le.endY,ze===0){E.push(qe),E.push(Ct),ne=qe,z=Ct;break}for(qe=0;qe<ze;qe++)Ct=Me[qe],tn.Qe(ne,z,Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,E),ne=Ct[6],z=Ct[7];break;default:Lt("Segment not of valid type: "+Le.type)}Le.isClosed&&(E.push(ie),E.push(se))}4<=E.length&&(y.push(E),b.push(ac(E)))}}}function ac(a){for(var y=[],b=0,E=0,x=a.length,z=0;z<x;z+=2){var ne=a[z],ie=a[z+1];z!==0&&y.push(Math.sqrt(gn(b,E,ne,ie))),b=ne,E=ie}return y}Oe.add=function(a){return this.ee.add(a),this},Oe.pm=function(a,y,b,E,x,z,ne,ie){return this._isFrozen&&cn(this),this.fg=new fi(a,y,x,z).freeze(),this.gg=new fi(b,E,ne,ie).freeze(),this},Jn.Object.defineProperties(Nr.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 Fl(this),this.tk}},flattenedLengths:{get:function(){return Fl(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Nr.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===Nr.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var b=y.length,E=a=0;E<b;E++)for(var x=y[E],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&&cn(this,a),this.na=a,a===Nr.o?this.ee=new Qn:(Nr.V===null&&(Nr.V=new Qn().freeze()),this.ee=Nr.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&cn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&cn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&cn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&cn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&cn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&cn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&cn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&cn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Nr.prototype.setSpots=Nr.prototype.pm,Nr.prototype.add=Nr.prototype.add,Nr.prototype.getFractionForPoint=Nr.prototype.xx,Nr.prototype.getPointAndAngleAlongPath=Nr.prototype.Qu,Nr.prototype.getAngleAlongPath=Nr.prototype.wx,Nr.prototype.getPointAlongPath=Nr.prototype.Pu,Nr.prototype.containsPoint=Nr.prototype.ca,Nr.prototype.transform=Nr.prototype.transform,Nr.prototype.rotate=Nr.prototype.rotate,Nr.prototype.scale=Nr.prototype.scale,Nr.prototype.offset=Nr.prototype.offset,Nr.prototype.normalize=Nr.prototype.normalize,Nr.prototype.computeBoundsWithoutOrigin=Nr.prototype.ix,Nr.prototype.equalsApprox=Nr.prototype.Xa,Nr.className="Geometry",Nr.j=new mn(Nr,"Line",0),Nr.u=new mn(Nr,"Rectangle",1),Nr.F=new mn(Nr,"Ellipse",2),Nr.o=new mn(Nr,"Path",3),Nr.V=null,Nr.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Nr.className="Geometry",Nr.stringify=Nr.ia,Nr.fillPath=Nr.nb,Nr.parse=Nr.parse,Nr.Line=Nr.j,Nr.Rectangle=Nr.u,Nr.Ellipse=Nr.F,Nr.Path=Nr.o;function Wa(a,y,b,E,x){vi(this),b===void 0&&(b=!0),E===void 0&&(E=!0),x===void 0&&(x=!1),this.l=2|(b?4:0)|(E?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 Qn,this.sr=this.pl.Ja,this.fw=null}Wa.prototype.copy=function(){var a=new Wa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,b=y.length,E=a.pl,x=0;x<b;x++){var z=y[x].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Oe=Wa.prototype,Oe.Xa=function(a){if(!(a instanceof Wa&&tn.B(this.startX,a.startX)&&tn.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var b=y.length;if(b!==a.length)return!1;for(var E=0;E<b;E++)if(!y[E].Xa(a[E]))return!1;return!0},Oe.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),b=this.segments.s,E=b.length,x=0;x<E;x++)y+=" "+b[x].toString(a);return y},Oe.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var b=0;b<a;b++)y[b].freeze();return this},Oe.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,b=0;b<y;b++)a[b].ka();return this},Oe.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,b=0;b<y;b++)if(a[b]._isInvalidBounds)return!0;return!1},Oe.add=function(a){return this.pl.add(a),this},Oe.ca=function(a,y,b){for(var E=this.startX,x=this.startY,z=E,ne=x,ie=this.segments.s,se=ie.length,de=0;de<se;de++){var pe=ie[de];switch(pe.type){case ua:z=pe.endX,ne=pe.endY,E=pe.endX,x=pe.endY;break;case Zo:if(tn.Yb(E,x,pe.endX,pe.endY,b,a,y))return!0;E=pe.endX,x=pe.endY;break;case Ya:if(tn.cs(E,x,pe.point1X,pe.point1Y,pe.point2X,pe.point2Y,pe.endX,pe.endY,.5,a,y,b))return!0;E=pe.endX,x=pe.endY;break;case cl:if(tn.jv(E,x,pe.point1X,pe.point1Y,pe.endX,pe.endY,.5,a,y,b))return!0;E=pe.endX,x=pe.endY;break;case Ia:case Sl:var Se=pe.type===Ia?bs(pe,this):Js(pe,this,E,x),Le=Se.length,Me=pe.type===Ia?pe.centerX:pe.endX,ze=pe.type===Ia?pe.centerY:pe.endY;if(Le===0){if(tn.Yb(E,x,Me,ze,b,a,y))return!0;E=Me,x=ze;break}for(Me=null,ze=0;ze<Le;ze++)if(Me=Se[ze],ze===0&&tn.Yb(E,x,Me[0],Me[1],b,a,y)||tn.cs(Me[0],Me[1],Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],.5,a,y,b))return!0;Me!==null&&(E=Me[6],x=Me[7]);break;default:Lt("Unknown Segment type: "+pe.type)}if(pe.isClosed&&(E!==z||x!==ne)&&tn.Yb(E,x,z,ne,b,a,y))return!0}return!1},Jn.Object.defineProperties(Wa.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&cn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&cn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&cn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&cn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&cn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&cn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Wa.prototype.add=Wa.prototype.add,Wa.prototype.equalsApprox=Wa.prototype.Xa,Wa.className="PathFigure";function Eo(a,y,b,E,x,z,ne,ie){vi(this),a===void 0&&(a=Zo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,b!==void 0?this.Ec=b:this.Ec=0,E===void 0&&(E=0),x===void 0&&(x=0),z===void 0&&(z=0),ne===void 0&&(ne=0),a===Sl?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(x,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),ie&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=x,a===Ia&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===Ia&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}Eo.prototype.copy=function(){var a=new Eo;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},Oe=Eo.prototype,Oe.Xa=function(a){if(!(a instanceof Eo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ua:case Zo:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY);case Ya:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y)&&tn.B(this.point2X,a.point2X)&&tn.B(this.point2Y,a.point2Y);case cl:return tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.point1X,a.point1X)&&tn.B(this.point1Y,a.point1Y);case Ia:return tn.B(this.startAngle,a.startAngle)&&tn.B(this.sweepAngle,a.sweepAngle)&&tn.B(this.centerX,a.centerX)&&tn.B(this.centerY,a.centerY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);case Sl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&tn.B(this.xAxisRotation,a.xAxisRotation)&&tn.B(this.endX,a.endX)&&tn.B(this.endY,a.endY)&&tn.B(this.radiusX,a.radiusX)&&tn.B(this.radiusY,a.radiusY);default:return!1}},Oe.qb=function(a){a.classType===Eo&&(this.type=a)},Oe.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ua:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ya: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 cl: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 Ia: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 Sl: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":"")},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.close=function(){return this.isClosed=!0,this};function bs(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var b=a.radiusX,E=a.radiusY;if(E===void 0&&(E=b),b===0||E===0)return a.ae=[],a.ae;y=a.Ne;var x=a.Vh,z=tn.jx(0,0,b<E?b:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(b!==E){var ne=Mi.alloc();ne.reset(),b<E?ne.scale(1,E/b):ne.scale(b/E,1),Nr.Ha(z,ne),Mi.free(ne)}for(b=z.length,E=0;E<b;E++)ne=z[E],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 Js(a,y,b,E){function x(qe,Ct,vt,Dt){return(qe*Dt<Ct*vt?-1:1)*Math.acos((qe*vt+Ct*Dt)/(Math.sqrt(qe*qe+Ct*Ct)*Math.sqrt(vt*vt+Dt*Dt)))}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,ie=a.isLargeArc,se=a.isClockwiseArc,de=a.Dc,pe=a.Ec,Se=Math.cos(ne),Le=Math.sin(ne),Me=Se*(b-de)/2+Le*(E-pe)/2;ne=-Le*(b-de)/2+Se*(E-pe)/2;var ze=Me*Me/(y*y)+ne*ne/(z*z);return 1<ze&&(y*=Math.sqrt(ze),z*=Math.sqrt(ze)),ze=(ie===se?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Me*Me)/(y*y*ne*ne+z*z*Me*Me)),isNaN(ze)&&(ze=0),ie=ze*y*ne/z,ze=ze*-z*Me/y,isNaN(ie)&&(ie=0),isNaN(ze)&&(ze=0),b=(b+de)/2+Se*ie-Le*ze,E=(E+pe)/2+Le*ie+Se*ze,pe=x(1,0,(Me-ie)/y,(ne-ze)/z),Se=(Me-ie)/y,de=(ne-ze)/z,Me=(-Me-ie)/y,ie=(-ne-ze)/z,ne=x(Se,de,Me,ie),Me=(Se*Me+de*ie)/(Math.sqrt(Se*Se+de*de)*Math.sqrt(Me*Me+ie*ie)),-1>=Me?ne=Math.PI:1<=Me&&(ne=0),!se&&0<ne&&(ne-=2*Math.PI),se&&0>ne&&(ne+=2*Math.PI),se=y>z?1:y/z,Me=y>z?z/y:1,y=tn.jx(0,0,y>z?y:z,pe,pe+ne,!0),z=Mi.alloc(),z.reset(),z.translate(b,E),z.rotate(a.Ne,0,0),z.scale(se,Me),Nr.Ha(y,z),Mi.free(z),a.ae=y,a.ae}Jn.Object.defineProperties(Eo.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&&cn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&cn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&cn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&cn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&cn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&cn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&cn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&cn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&cn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&kr(a,">= zero",Eo,"radiusX"),this._isFrozen&&cn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&kr(a,">= zero",Eo,"radiusY"),this._isFrozen&&cn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&cn(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&&cn(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&&cn(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&&cn(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&&cn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Eo.prototype.equalsApprox=Eo.prototype.Xa;var ua=new mn(Eo,"Move",0),Zo=new mn(Eo,"Line",1),Ya=new mn(Eo,"Bezier",2),cl=new mn(Eo,"QuadraticBezier",3),Ia=new mn(Eo,"Arc",4),Sl=new mn(Eo,"SvgArc",4);Eo.className="PathSegment",Eo.Move=ua,Eo.Line=Zo,Eo.Bezier=Ya,Eo.QuadraticBezier=cl,Eo.Arc=Ia,Eo.SvgArc=Sl;function Es(){this.H=null,this.xu=new it(0,0).freeze(),this.mt=new it(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}Es.prototype.copy=function(){var a=new Es;return this.clone(a)},Es.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},Es.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},Es.prototype.So=function(a,y){var b=this.diagram;return b===null||Nf(b,a,y),y},Es.prototype.Bz=function(a,y){var b=this.diagram;return b===null||(Nf(b,a,y),y.assign(b.Ps(y))),y},Jn.Object.defineProperties(Es.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}}}),Es.prototype.getMultiTouchDocumentPoint=Es.prototype.Bz,Es.prototype.getMultiTouchViewPoint=Es.prototype.So,Es.className="InputEvent";function Fu(){this.H=null,this.xa="",this.ar=this.Lr=null}Fu.prototype.copy=function(){var a=new Fu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Fu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Jn.Object.defineProperties(Fu.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}}}),Fu.className="DiagramEvent";function va(){this.Fm=oa,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}va.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},va.prototype.copy=function(){var a=new va;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=Xt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Xt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Xt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Xt(y)&&typeof y.J=="function"?y.J():y,a},va.prototype.qb=function(a){a.classType===va&&(this.change=a)},va.prototype.toString=function(){var a="";return a=this.change===Os?a+"* ":this.change===oa?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===Os?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=mi(this.object)),this.oldValue!==null&&(a+=" old: "+mi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+mi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},va.prototype.I=function(a){return a?this.oldValue:this.newValue},va.prototype.Dz=function(a){return a?this.oldParam:this.newParam},va.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},va.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},va.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},va.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Jn.Object.defineProperties(va.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===Os&&(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}}}),va.prototype.redo=va.prototype.redo,va.prototype.canRedo=va.prototype.canRedo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.getParam=va.prototype.Dz,va.prototype.getValue=va.prototype.I,va.prototype.clear=va.prototype.clear;var Os=new mn(va,"Transaction",-1),oa=new mn(va,"Property",0),Ta=new mn(va,"Insert",1),La=new mn(va,"Remove",2);va.className="ChangedEvent",va.Transaction=Os,va.Property=oa,va.Insert=Ta,va.Remove=La;function Za(){this.o=new Qn().freeze(),this.xa="",this.j=!1}Za.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 b=0;b<a;b++){var E=this.changes.M(b);E!==null&&(y+=`
|
|
|
`+E.toString())}}return y},Za.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var b=a.M(y);b!==null&&b.clear()}a.clear(),a.freeze()},Za.prototype.canUndo=function(){return this.isComplete},Za.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()}},Za.prototype.canRedo=function(){return this.isComplete},Za.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var b=this.changes.M(y);b!==null&&b.redo()}},Za.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new An,b=0;b<a.count;b++){var E=a.M(b);if(E!==null&&E.change===oa&&E.object){var x=y.get(E.object);x||(x=new An,y.set(E.object,x));var z=x.get(E.propertyName);z===null?x.set(E.propertyName,-1):(0<z&&a.cd(z,null),x.set(E.propertyName,b))}}for(b=y=0;b<a.count;b++)E=a.M(b),E!==null&&(b>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Jn.Object.defineProperties(Za.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}}}),Za.prototype.optimize=Za.prototype.ak,Za.prototype.redo=Za.prototype.redo,Za.prototype.canRedo=Za.prototype.canRedo,Za.prototype.undo=Za.prototype.undo,Za.prototype.canUndo=Za.prototype.canUndo,Za.prototype.clear=Za.prototype.clear,Za.className="Transaction";function na(){this.Pt=new ar,this.Jd=!1,this.u=new Qn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Qn().freeze(),this.hl=new Qn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}na.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var b=this.nestedTransactionNames.count,E=0;E<b;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(b=this.history.count,E=0;E<b;E++)y+=`
|
|
|
`+this.history.M(E).toString(a-1);return y},na.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var b=a.M(y);b!==null&&b.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},na.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Oe=na.prototype,Oe.Xw=function(a){this.Pt.add(a)},Oe.Rx=function(a){this.Pt.remove(a)},Oe.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},Oe.eb=function(a){return a===void 0&&(a=""),sc(this,!0,a)},Oe.Kf=function(){return sc(this,!1,"")};function sc(a,y,b){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Ir("Ending transaction without having started a transaction: "+b);var E=a.transactionLevel===1,x=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",b,x));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(b===""&&(b=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(E){if(y)a.rq=!1,x===null&&b!==""&&(x=a.currentTransaction),a.isEnabled&&x!==null&&(x.isComplete||(x.isComplete=!0,x.name=b),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===x||(y.add(x),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",b,x);else{a.Fe=!0;try{a.isEnabled&&x!==null&&(x.isComplete=!0,x.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",b,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,b=x.changes,x=b.count-1;x>=a;x--)y=b.M(x),y!==null&&y.undo(),b.ka(),b.mb(x);b.freeze()}return!1}Oe.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var b=a.M(y);b!==null&&b.clear(),a.mb(y),this.rq=!0}a.freeze()}},na.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},na.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){Ir("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},na.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},na.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){Ir("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},na.prototype.Ob=function(a,y,b){b===void 0&&(b=null);var E=new va;for(E.change=Os,E.propertyName=a,E.object=b,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},na.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Za);var b=a.copy();y=y.changes,y.ka(),y.add(b),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Ir("Change not within a transaction: "+b.toString()))}},na.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},Jn.Object.defineProperties(na.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}}}),na.prototype.handleChanged=na.prototype.Tu,na.prototype.redo=na.prototype.redo,na.prototype.undo=na.prototype.undo,na.prototype.canUndo=na.prototype.canUndo,na.prototype.discardHistoryAfterIndex=na.prototype.lx,na.prototype.rollbackTransaction=na.prototype.Kf,na.prototype.commitTransaction=na.prototype.eb,na.prototype.startTransaction=na.prototype.Ea,na.prototype.removeModel=na.prototype.Rx,na.prototype.addModel=na.prototype.Xw,na.prototype.clear=na.prototype.clear,na.className="UndoManager";function bo(){vi(this),this.H=Jc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Es,this.Zr=-1}bo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Wn(this.constructor)},bo.prototype.updateAdornments=function(){},bo.prototype.canStart=function(){return this.isEnabled},bo.prototype.doStart=function(){},bo.prototype.doActivate=function(){this.isActive=!0},bo.prototype.doDeactivate=function(){this.isActive=!1},bo.prototype.doStop=function(){},bo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},bo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},bo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},bo.prototype.doMouseMove=function(){},bo.prototype.doMouseUp=function(){this.stopTool()},bo.prototype.doMouseWheel=function(){},bo.prototype.canStartMultiTouch=function(){return!0},bo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,it.allocAt(NaN,NaN)),E=y.So(1,it.allocAt(NaN,NaN));if(b.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var x=E.x-b.x,z=E.y-b.y;a.Jw=Math.sqrt(x*x+z*z),y.bubbles=!1}it.free(b),it.free(E)},bo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,b=y.So(0,it.allocAt(NaN,NaN)),E=y.So(1,it.allocAt(NaN,NaN));if(b.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var x=E.x-b.x,z=E.y-b.y;z=Math.sqrt(x*x+z*z)/a.Jw,x=new it((Math.min(E.x,b.x)+Math.max(E.x,b.x))/2,(Math.min(E.y,b.y)+Math.max(E.y,b.y))/2),z*=a.Bw;var ne=a.commandHandler;if(z!==a.scale&&ne.canResetZoom(z)){var ie=a.zoomPoint;a.zoomPoint=x,ne.resetZoom(z),a.zoomPoint=ie}y.bubbles=!1}it.free(b),it.free(E)},bo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},bo.prototype.doKeyUp=function(){},bo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},bo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},bo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,b=a.Ol(y.documentPoint,!1);if(b!==null){if(Ci?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=b;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!b.isSelected){for(a.R("ChangingSelection",a.selection),y=b;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!b.isSelected){for(y=b;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Ci?y.meta:y.control)||y.shift||a.clearSelection()}},bo.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(x){return!x.layer.isTemporary});var b=this.diagram,E=b.lastInput;return a=b.ic(E.documentPoint,a,y),E.targetObject=a,Dc(a,E,b),E.handled};function Dc(a,y,b){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var x="ObjectSingleClicked";if(a!==null){switch(E){case 1:x="ObjectSingleClicked";break;case 2:x="ObjectDoubleClicked";break;case 3:x="ObjectContextClicked"}E!==0&&b.R(x,a)}else{switch(E){case 1:x="BackgroundSingleClicked";break;case 2:x="BackgroundDoubleClicked";break;case 3:x="BackgroundContextClicked"}E!==0&&b.R(x)}if(a!==null)for(;a!==null;){switch(b=null,E){case 1:b=a.click;break;case 2:b=a.doubleClick?a.doubleClick:a.click;break;case 3:b=a.contextClick}if(b!==null&&(b(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=b.click;break;case 2:a=b.doubleClick?b.doubleClick:b.click;break;case 3:a=b.contextClick}a!==null&&a(y)}}}bo.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var b=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var x=!1;if(E!==a.Ck){var z=a.Ck,ne=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var ie=z.mouseLeave;if(ie!==null&&(E===z||E!==null&&E.rg(z)||(ie(y,z,E),x=!0,y.handled)))break;z=z.panel}for(z=ne,y.handled=!1;E!==null&&(ne=E.mouseEnter,!(ne!==null&&(z===E||z!==null&&z.rg(E)||(ne(y,E,z),x=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ne="";z!==null&&(ne=z.cursor,ne==="");)z=z.panel;for(a.currentCursor=ne,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),x=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),x=!0);x&&a.$b(),a.skipsUndoManager=b}},bo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},bo.prototype.doCurrentObjectChanged=function(){},bo.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,b=y.delta;if(b!==0&&a.documentBounds.w()){var E=a.commandHandler,x=a.toolManager.mouseWheelBehavior;if(E!==null&&(x===bu&&!y.shift||x===Bu&&y.control))(0<b?E.canIncreaseZoom():E.canDecreaseZoom())&&(x=a.zoomPoint,a.zoomPoint=y.viewPoint,0<b?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=x),y.bubbles=!1;else if(x===bu&&y.shift||x===Bu&&!y.control){E=a.position.copy();var z=y.event;x=z.deltaMode;var ne=z.deltaX;z=z.deltaY;var ie="pixel";if(ne===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(b=3*b*a.scrollVerticalLineChange,a.scroll(ie,0<b?"up":"down",Math.abs(b))):y.shift&&a.allowHorizontalScroll&&(b=3*b*a.scrollHorizontalLineChange,a.scroll(ie,0<b?"left":"right",Math.abs(b)));else{switch(x){case 0:ie="pixel";break;case 1:ie="line";break;case 2:ie="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(ie,0<ne?"right":"left",Math.abs(ne))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ie,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},bo.prototype.doWheelChange=function(a,y,b){a.position.D(y)&&b.event.wheelDeltaX===0||(b.bubbles=!1)},bo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var b=this,E=y.clone(this.yy);this.Zr=ki(function(){b.doWaitAfter(E)},a)},bo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ur.clearTimeout(this.Zr),this.Zr=-1},bo.prototype.doWaitAfter=function(){},bo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(b){for(;b!==null&&!(b.panel instanceof Mo);)b=b.panel;return b}),a===null?null:a.part.category===y?a:null},bo.prototype.isBeyondDragSize=function(a,y){var b=this.diagram;a===void 0&&(a=b.firstInput.viewPoint),y===void 0&&(y=b.lastInput.viewPoint);var E=b.toolManager.dragSize,x=E.width;return E=E.height,b.firstInput.isTouchEvent&&(x+=6,E+=6),Math.abs(y.x-a.x)>x||Math.abs(y.y-a.y)>E},Jn.Object.defineProperties(bo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Dn&&(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}}}),bo.prototype.startTransaction=bo.prototype.Ea,bo.className="Tool";function aa(){bo.call(this),this.name="ToolManager",this.hb=new Qn,this.ob=new Qn,this.Hb=new Qn,this.F=this.V=850,this.o=new an(2,2).ja(),this.Ha=5e3,this.ia=Bu,this.u=Xc,this.Mp=this.j=null,this.zj=-1}Sn(aa,bo),aa.prototype.initializeStandardTools=function(){},aa.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Mo&&this.Mp===a){var b=y.adornedObject;(a!==null?b.part===a:b===null)?this.showToolTip(y,b):this.hideToolTip()}},aa.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Yl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Xl){y.bubbles=!0;return}if(this.gestureBehavior===Yl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var b=this.mouseDownTools.length,E=0;E<b;E++){var x=this.mouseDownTools.M(E);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===Bu?this.mouseWheelBehavior=bu:this.mouseWheelBehavior===bu&&(this.mouseWheelBehavior=Bu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},aa.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Xl){y.bubbles=!0;return}if(this.gestureBehavior===Yl)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var b=this.mouseMoveTools.length,E=0;E<b;E++){var x=this.mouseMoveTools.M(E);if(x.diagram=this.diagram,x.canStart()){a.doFocus(),a.currentTool=x,a.currentTool===x&&(x.isActive||x.doActivate(),x.doMouseMove());return}}Sc(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Sc(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}aa.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Mo&&(y===a||y.rg(a))||this.hideToolTip()},aa.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()))},aa.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var b=y.targetObject;if(b!==null)for(y.handled=!1;b!==null&&(a=this.isActive?b.mouseHold:b.mouseHover,!(a!==null&&(a(y,b),y.handled)));)b=b.panel;else b=this.isActive?a.mouseHold:a.mouseHover,b!==null&&b(y)},aa.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 Mo)||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()},aa.prototype.showToolTip=function(a,y){var b=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Mo){a.layerName="Tool",a.selectable=!1,a.scale=1/b.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=b.scale);var E=a.diagram;E!==null&&E!==b&&E.remove(a),b.add(a),y!==null?a.adornedObject=y:a.data=b.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Po&&a!==this.currentToolTip&&a.show(y,b,this);if(this.currentToolTip=a,this.zj!==-1&&(ur.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var x=this;this.zj=ki(function(){x.hideToolTip()},a)}},aa.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,b=y.lastInput.documentPoint.copy(),E=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(b.x-=E.width),b.x+E.width>x.right&&(b.x-=E.width+5/y.scale),b.x<x.x&&(b.x=x.x),b.y=b.y+20/y.scale+E.height>x.bottom?b.y-(E.height+5/y.scale):b.y+20/y.scale,b.y<x.y&&(b.y=x.y),a.position=b}},aa.prototype.hideToolTip=function(){this.zj!==-1&&(ur.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Mo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Po&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},aa.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,b=0;b<y;b++){var E=this.mouseUpTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},aa.prototype.doMouseWheel=function(){this.standardMouseWheel()},aa.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},aa.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},aa.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,b=0;b<y;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return E}for(y=this.mouseMoveTools.length,b=0;b<y;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return E;for(y=this.mouseUpTools.length,b=0;b<y;b++)if(E=this.mouseUpTools.M(b),E.name===a)return E;return null},aa.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var b=this.mouseDownTools.length,E=0;E<b;E++){var x=this.mouseDownTools.M(E);if(x.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),x}for(b=this.mouseMoveTools.length,E=0;E<b;E++)if(x=this.mouseMoveTools.M(E),x.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),x;for(b=this.mouseUpTools.length,E=0;E<b;E++)if(x=this.mouseUpTools.M(E),x.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),x;return null},aa.prototype.gb=function(a,y,b){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&b.add(y)},Jn.Object.defineProperties(aa.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 Mo?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}}}),aa.prototype.replaceStandardTool=aa.prototype.gb;var Bu=new mn(aa,"WheelScroll",0),bu=new mn(aa,"WheelZoom",1),Rc=new mn(aa,"WheelNone",2),Xc=new mn(aa,"GestureZoom",3),Yl=new mn(aa,"GestureCancel",4),Xl=new mn(aa,"GestureNone",5);aa.className="ToolManager",aa.WheelScroll=Bu,aa.WheelZoom=bu,aa.WheelNone=Rc,aa.GestureZoom=Xc,aa.GestureCancel=Yl,aa.GestureNone=Xl;function la(){bo.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 it(NaN,NaN),this.Fr=new it,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new ar().freeze(),this.ia=new le,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gs;Sn(la,bo),la.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},la.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},la.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,(Ci?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},la.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),gs=null,this.isActive=!0,this.tl.set(a.position),du(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&&zl(a),Yh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,gs=this,lc=this.diagram,this.doSimulatedDragOut()))};function du(a,y){if(a.dragsLink){var b=a.diagram;b.allowRelink&&(b.model.Wj()&&y.count===1&&y.first()instanceof _r?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=b.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Il,a.Oe.diagram=b),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}la.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},la.prototype.Pd=function(a){return a===void 0?new Bc(Dr):this.isGridSnapEnabled?new Bc(new it(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Bc(a.copy())},la.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Nl(this),Zd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gs.count){for(var y=Gs,b=y.length,E=0;E<b;E++){var x=y.M(E);ca(x),$o(x),Nl(x),x.diagram.ug()}y.clear()}ca(this),this.tl.h(NaN,NaN),lc!==null&&(lc.currentCursor=""),gs=lc=null,$o(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),jd(a,!0)},la.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Nl(a){var y=a.diagram,b=y.skipsUndoManager;y.skipsUndoManager=!0,Ll(a,y.lastInput,null),y.skipsUndoManager=b,a.Cg.length=0}function dl(){var a=gs;$o(a),Is(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}la.prototype.doCancel=function(){$o(this),Is(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},la.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},la.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function bl(a,y){if(a.copiedParts===null){var b=a.diagram;if((!y||!b.isReadOnly&&!b.isModelReadOnly)&&a.draggedParts!==null){var E=b.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(b.undoManager.Kf(),b.Ea("Drag")):Is(a),b.skipsUndoManager=!y,b.partManager.addsToTemporaryLayer=!y,a.startPoint=b.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():b.selection,y=b.Kj(y,b,!0),b=new An,E=a.draggedParts.iterator;E.next();){var x=E.key;if(x.Zc()&&x.canCopy()){var z=y.I(x);z!==null&&(z.location=x.location,z.Va(),b.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof _r&&E.canCopy()&&b.add(E,a.Pd());a.copiedParts=b,du(a,b.Lf()),a.draggedLink!==null&&(b=a.draggedLink,y=b.routeBounds,Lh(b,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function $o(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var b=a.draggedParts.iterator;b.next();)b.key instanceof _r&&(b.value.point=new it(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ca(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 Va(a,y,b){var E=a.diagram,x=a.startPoint,z=it.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(x),b),it.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(zl(E),E.hk())}la.prototype.moveParts=function(a,y,b){b===void 0&&(b=!1);var E=this.diagram;E!==null&&Wd(E,a,y,this.dragOptions,b)};function Is(a){if(a.draggedParts!==null){for(var y=a.diagram,b=a.draggedParts.iterator;b.next();){var E=b.key;E.Zc()&&(E.location=b.value.point)}for(b=a.draggedParts.iterator;b.next();)if(E=b.key,E instanceof _r&&E.suspendsRouting){var x=b.value.point;a.draggedParts.add(E,a.Pd()),Lh(E,-x.x,-x.y)}y.bd()}}function xs(a,y){var b=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),kl(a,!1));var E=a.findDragOverObject(y),x=b.lastInput;x.targetObject=E,a.doUpdateCursor(E);var z=b.skipsUndoManager,ne=!1;try{if(b.skipsUndoManager=!0,ne=Ll(a,x,E),!a.isActive&&gs===null)return;var ie=E!==null?E.part:null;if(ie===null||b.handlesDragDropForTopLevelParts&&ie.isTopLevel&&!(ie instanceof ro)){var se=b.mouseDragOver;se!==null&&(se(x),ne=!0)}if(!a.isActive&&gs===null||(a.doDragOver(y,E),!a.isActive&&gs===null))return}finally{b.skipsUndoManager=z,ne&&b.bd()}a.Bn=E,b.isReadOnly||!b.allowMove&&!b.allowCopy||!b.allowHorizontalScroll&&!b.allowVerticalScroll||b.gs(x.viewPoint)}la.prototype.findDragOverObject=function(a){var y=this;return qc(this.diagram,a,null,function(b){return b===null?b=!0:(b=b.part,b=!!(b===null||b instanceof Mo||b.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(b)||y.copiedParts&&y.copiedParts.contains(b))),!b})},la.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 Ll(a,y,b){var E=!1,x=a.Cg.length,z=0<x?a.Cg[0]:null;if(b===z)return!1;y.handled=!1;for(var ne=0;ne<x;ne++){var ie=a.Cg[ne],se=ie.mouseDragLeave;if(se!==null&&(se(y,ie,b),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&gs===null||b===null)return E;for(y.handled=!1,x=b;x!==null;)a.Cg.push(x),x=Bl(x);for(x=a.Cg.length,b=0;b<x&&(ne=a.Cg[b],ie=ne.mouseDragEnter,ie===null||(ie(y,ne,z),E=!0,!y.handled));b++);return E}function Bl(a){var y=a.panel;return y!==null?y:a instanceof Ai&&!(a instanceof ro)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function _l(a,y,b){var E=a.Oe;if(E===null)return null;var x=a.diagram.og(y,E.portGravity,function(de){return E.findValidLinkablePort(de,b)});a=it.alloc();var z=1/0,ne=null;for(x=x.iterator;x.next();){var ie=x.value;if(ie.part!==null){var se=ie.ga(Ji,a);se=y.Bf(se),se<z&&(ne=ie,z=se)}}return it.free(a),ne}function kl(a,y){var b=a.draggedLink;if(b!==null&&!(2>b.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var x=a.Oe;if(x!==null){var z=null,ne=null;b.fromNode===null&&(z=_l(a,b.i(0),!1),z!==null&&(ne=z.part));var ie=null,se=null;b.toNode===null&&(ie=_l(a,b.i(b.pointsCount-1),!0),ie!==null&&(se=ie.part)),x.isValidLink(ne,z,se,ie)?y?(b.defaultFromPoint=b.i(0),b.defaultToPoint=b.i(b.pointsCount-1),b.suspendsRouting=!1,b.fromNode=ne,z!==null&&(b.fromPortId=z.portId),b.toNode=se,ie!==null&&(b.toPortId=ie.portId),b.fromPort!==E.Mx&&E.R("LinkRelinked",b,E.Mx),b.toPort!==E.Nx&&E.R("LinkRelinked",b,E.Nx)):Ce(x,ne,z,se,ie):Ce(x,null,null,null,null)}}}}la.prototype.doDragOver=function(){};function hu(a,y){var b=a.diagram;a.dragsLink&&kl(a,!0),Nl(a);var E=a.findDragOverObject(y),x=b.lastInput;if(x.targetObject=E,E!==null){x.handled=!1;for(var z=E;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(x,z),x.handled))break;bd(a,x,z),z=Bl(z)}}else z=b.mouseDrop,z!==null&&z(x);if(a.isActive||gs!==null){for(x=(a.copiedParts||a.draggedParts).iterator;x.next();)z=x.key,z instanceof $r&&z.linksConnected.each(function(ie){ie.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||gs!==null){for(a=In.alloc(),y=b.selection.iterator;y.next();)E=y.value,E instanceof $r&&Hd(b,E,a);In.free(a)}}}function bd(a,y,b){a=a.diagram,b=b.part,!a.handlesDragDropForTopLevelParts||!b.isTopLevel||b instanceof ro||(b=a.mouseDrop,b!==null&&b(y))}function Hd(a,y,b){var E=!1;if(b=y.getAvoidableRect(b),a.viewportBounds.Re(b)&&(E=!0),a=a.Nu(b,function(x){return x.part},function(x){return x instanceof _r},!0,function(x){return x instanceof _r},E),a.count!==0)for(a=a.iterator;a.next();)b=a.value,!b.Td(y)&&b.isAvoiding&&b.bb()}la.prototype.doDropOnto=function(){},la.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()?(bl(this,!1),Yh(a,this.copiedParts),Va(this,this.copiedParts,!1),Zd(a,this.copiedParts)):this.mayMove()?($o(this),Va(this,this.draggedParts,!0)):this.mayDragOut()?(bl(this,!1),Va(this,this.copiedParts,!1)):$o(this),xs(this,a.lastInput.documentPoint))}},la.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 b=this.mayCopy();if(b&&this.copiedParts!==null?($o(this),bl(this,!0),Yh(a,this.copiedParts),Va(this,this.copiedParts,!1),Zd(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,$o(this),this.mayMove()&&(Va(this,this.draggedParts,!0),xs(this,a.lastInput.documentPoint))),this.Ym=!0,hu(this,a.lastInput.documentPoint),this.isActive){var E=b?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ch(this),a.Ya(),Zd(a,this.draggedParts),this.transactionResult=b?"Copy":"Move",a.R(b?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),b&&a.R("ChangedSelection",a.selection)}}},la.prototype.simulatedMouseMove=function(a,y,b){if(gs===null)return!1;var E=gs.diagram;b instanceof Dn||(b=null);var x=lc;return b!==x&&(x!==null&&x!==E&&(x.ug(),gs.isDragOutStarted=!1,x=x.toolManager.findTool("Dragging"),x!==null&&x.doSimulatedDragLeave()),lc=b,b!==null&&b!==E&&(dl(),x=b.toolManager.findTool("Dragging"),x!==null&&(Gs.contains(x)||Gs.add(x),x.doSimulatedDragEnter())),this.doUpdateCursor(null)),b===null||b===E||!b.allowDrop||b.isReadOnly||!b.allowInsert?!1:(E=b.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=b.getMouse(a)),b.lastInput.documentPoint=y,b.lastInput.viewPoint=b.op(y),b.lastInput.down=!1,b.lastInput.up=!1,E.doSimulatedDragOver()),!0)},la.prototype.simulatedMouseUp=function(a,y,b){if(gs===null)return!1;var E=lc,x=gs.diagram;if(b===null)return gs.doCancel(),!0;if(b!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==x&&z!==null)return E.ug(),gs.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;lc=b,E=b.toolManager.findTool("Dragging"),E!==null&&(dl(),Gs.contains(E)||Gs.add(E),E.doSimulatedDragEnter())}return b!==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=b.getMouse(a)):y===null&&(y=new it),b.lastInput.documentPoint=y,b.lastInput.viewPoint=b.op(y),b.lastInput.down=!1,b.lastInput.up=!0,a=b.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=gs,a!==null&&(b=a.mayCopy(),a.transactionResult=b?"Copy":"Move",a.stopTool()),!0):!1};function ch(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var b=y.key;b instanceof $r&&(b=b.containingGroup,b===null||b.placeholder===null||a.draggedParts.contains(b)||b.placeholder.v())}}la.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Ci?!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())},la.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())},la.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())},la.prototype.computeBorder=function(a,y,b){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:b.assign(y)},la.prototype.Az=function(){return gs},la.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=gs;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},la.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Hu(a),a.animationManager.Cc(),a=gs,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},la.prototype.doSimulatedDragLeave=function(){var a=gs;a!==null&&a.doSimulatedDragOut(),this.doCancel()},la.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=gs;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;dh(this,y.draggedParts.Lf(),!1,a.firstInput),Va(this,this.copiedParts,!1),xs(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},la.prototype.doSimulatedDrop=function(){var a=this.diagram,y=gs;if(y!==null){var b=y.diagram;if(y.Ym=!0,$o(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),dh(this,y.draggedParts.Lf(),!0,a.lastInput),Va(this,this.copiedParts,!1);var E=new ar;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(x){x.isSelected=!0,E.add(x)})),hu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,b),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function dh(a,y,b,E){if(a.copiedParts===null){var x=a.diagram;if(!x.isReadOnly&&!x.isModelReadOnly){x.skipsUndoManager=!b,x.partManager.addsToTemporaryLayer=!b,a.startPoint=E.documentPoint,b=x.Kj(y,x,!0);var z=In.alloc();x=E=1/0;for(var ne=-1/0,ie=-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<E&&(E=de),pe<x&&(x=pe),de>ne&&(ne=de),pe>ie&&(ie=pe))}}for(E===1/0?z.h(0,0,0,0):z.h(E,x,ne-E,ie-x),E=z.x+z.width/2,x=z.y+z.height/2,In.free(z),z=a.Fr,ne=new An,ie=it.alloc(),se=y.iterator;se.next();)de=se.value,de instanceof _r&&de.canCopy()&&(pe=b.I(de),pe!==null&&(pe.points=de.points,Lh(pe,z.x-E,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=b.I(de),se!==null&&(de=de.location,ie.h(z.x-(E-de.x),z.y-(x-de.y)),se.location=ie,se.Va(),ne.add(se,a.Pd(ie))));it.free(ie),a.copiedParts=ne,du(a,ne.Lf()),a.draggedLink!==null&&(b=a.draggedLink,y=b.routeBounds,Lh(b,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}la.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},la.prototype.computeMove=function(a,y,b,E){return b=this.diagram,b!==null?b.computeMove(a,y,this.dragOptions,E):new it},Jn.Object.defineProperties(la.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}}}),la.prototype.getDraggingSource=la.prototype.Az;var gs=null,lc=null;la.className="DraggingTool",Gs=new Qn,rr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),aa.prototype.doCancel=function(){gs!==null&&gs.doCancel(),bo.prototype.doCancel.call(this)};function Na(){bo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new _r,y=new oo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new oo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new $r,y=new oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Vr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new $r,y=new oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Vr,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 An,this.Of=this.gj=this.Pf=null}Sn(Na,bo),Na.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Na.prototype.copyPortProperties=function(a,y,b,E,x){if(a!==null&&y!==null&&b!==null&&E!==null){var z=y.Df(),ne=an.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,an.free(ne),x?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),b.locationSpot=Ji,z=it.alloc(),b.location=y.ga(Ji,z),it.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,b,E,x)}},Na.prototype.setNoTargetPortProperties=function(a,y,b){y!==null&&(y.desiredSize=Vr,y.fromSpot=Qi,y.toSpot=Qi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,b)},Na.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Na.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof $r){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)}},Na.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var b=a.part;if(!(b instanceof $r))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof $r)&&(y?this.isValidTo(b,a):this.isValidFrom(b,a)))return a;if(E===!1)break;a=a.panel}return null},Na.prototype.findTargetPort=function(a){var y=this.diagram,b=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var x=this,z=y.og(b,E,function(Se){return x.findValidLinkablePort(Se,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,ie=ne.part;if(ie instanceof $r){var se=ne.ga(Ji,it.alloc()),de=b.x-se.x,pe=b.y-se.y;it.free(se),se=de*de+pe*pe,se<E&&(de=this.validPortsCache.I(ne),de!==null?de&&(y=ne,E=se):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ie,ne)||!a&&this.isValidLink(ie,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,E=se):this.validPortsCache.add(ne,!1))}}return y!==null&&(b=y.part,b instanceof $r&&(b.layer===null||b.layer.allowLink))?y:null},Na.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 b=y.fromMaxLinks;if(1/0>b){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=b)return!1}return!0},Na.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 b=y.toMaxLinks;if(1/0>b){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=b)return!1}return!0},Na.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Na.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var b=a.part;if(!(b instanceof $r))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof $r))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===b&&E.fromPortId===a)return!0;return!1},Na.prototype.isValidLink=function(a,y,b,E){if(!this.isValidFrom(a,y)||!this.isValidTo(b,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||b!==null&&this.isLabelDependentOnLink(b,this.originalLink))||a!==null&&b!==null&&(a.data===null&&b.data!==null||a.data!==null&&b.data===null)||!this.isValidCycle(a,b,this.originalLink))return!1;if(a!==null){var x=a.linkValidation;if(x!==null&&!x(a,y,b,E,this.originalLink))return!1}return b!==null&&(x=b.linkValidation,x!==null&&!x(a,y,b,E,this.originalLink))?!1:(x=this.linkValidation,x!==null?x(a,y,b,E,this.originalLink):!0)},Na.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var b=a.labeledLink;if(b===null)return!1;if(b===y)return!0;var E=new ar;return E.add(a),js(this,b,y,E)};function js(a,y,b,E){if(y===b)return!0;var x=y.fromNode;return x!==null&&x.isLinkLabel&&(E.add(x),js(a,x.labeledLink,b,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),js(a,y.labeledLink,b,E))))}Na.prototype.isValidCycle=function(a,y,b){if(b===void 0&&(b=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==$h){if(E===Ep){if(E=b||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var x=E.value;if(x!==b&&x.isTreeLink&&x.toNode===y)return!1}return!$s(this,a,y,b,!0)}if(E===xp){if(E=b||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(x=E.value,x!==b&&x.isTreeLink&&x.fromNode===a)return!1;return!$s(this,a,y,b,!0)}if(E===yp)return a===y?a=!0:(E=new ar,E.add(y),a=qs(this,E,a,y,b)),!a;if(E===Sp)return!$s(this,a,y,b,!1);if(E===bp)return a===y?a=!0:(E=new ar,E.add(y),a=bc(this,E,a,y,b)),!a}return!0};function $s(a,y,b,E,x){if(y===b)return!0;if(y===null||b===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==E&&(!x||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&$s(a,ne,b,E,x)))return!0}return!1}function qs(a,y,b,E,x){if(b===E)return!0;if(b===null||E===null||y.contains(b))return!1;y.add(b);for(var z=b.linksConnected;z.next();){var ne=z.value;if(ne!==x&&ne.toNode===b&&(ne=ne.fromNode,ne!==b&&qs(a,y,ne,E,x)))return!0}return!1}function bc(a,y,b,E,x){if(b===E)return!0;if(b===null||E===null||y.contains(b))return!1;y.add(b);for(var z=b.linksConnected;z.next();){var ne=z.value;if(ne!==x){var ie=ne.fromNode;if(ne=ne.toNode,ie=ie===b?ne:ie,ie!==b&&bc(a,y,ie,E,x))return!0}}return!1}Jn.Object.defineProperties(Na.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 b=y.O.indexOf(this.j);y.mb(b),y.Gb(b,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 b=y.O.indexOf(this.o);y.mb(b),y.Gb(b,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}}}),Na.className="LinkingBaseTool";function Fs(){Na.call(this),this.name="Linking",this.V={},this.F=null,this.K=Eu,this.Xd=null}Sn(Fs,Na),Fs.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},Fs.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 $r)))return null;var b=this.direction;if(b===Eu||b===Qc){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(b===Eu||b===Ed)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Fs.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 $r&&(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 $r&&(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)},Fs.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()},Fs.prototype.doStop=function(){Na.prototype.doStop.call(this),this.startObject=null},Fs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,b=null,E=null,x=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var ie=ne.part;ie instanceof $r&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,b=this.originalFromPort),E=ie,x=ne):(y=ie,b=ne,this.originalToNode!==null&&(E=this.originalToNode,x=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,b=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,x=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,b,E,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,b,E,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)}}},Fs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof _r)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)},Fs.prototype.insertLink=function(a,y,b,E){return this.diagram.partManager.insertLink(a,y,b,E)},Fs.prototype.doNoLink=function(){},Jn.Object.defineProperties(Fs.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 Eu=new mn(Fs,"Either",0),Qc=new mn(Fs,"ForwardsOnly",0),Ed=new mn(Fs,"BackwardsOnly",0);Fs.className="LinkingTool",Fs.Either=Eu,Fs.ForwardsOnly=Qc,Fs.BackwardsOnly=Ed;function Il(){Na.call(this),this.name="Relinking";var a=new oo;a.figure="Diamond",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new oo,a.figure="Diamond",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new In}Sn(Il,Na),Il.prototype.updateAdornments=function(a){if(a!==null&&a instanceof _r){var y="RelinkFrom",b=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(b=a.Pj(y),b===null&&(b=this.makeAdornment(E,!1),a.bh(y,b)))}b===null&&a.Jf(y),y="RelinkTo",b=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(b=a.Pj(y),b===null?(b=this.makeAdornment(E,!0),a.bh(y,b)):b.v())),b===null&&a.Jf(y)}},Il.prototype.makeAdornment=function(a,y){var b=new Mo;return b.type=Tr.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&b.add(y.copy()),b.adornedObject=a,b},Il.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},Il.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 b=y.part;if(!(b instanceof Mo&&b.adornedPart instanceof _r))return;this.handle=y,this.isForwards=b===null||b.category==="RelinkTo",this.originalLink=b.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=cr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=cr),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},Il.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var b=a.curve;(b===Sg||b===kh)&&(b=iu),y.curve=b,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}},Il.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()},Il.prototype.doStop=function(){Na.prototype.doStop.call(this),this.handle=null},Il.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,b=this.originalFromPort,E=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 $r&&(this.isForwards?(E=ne,x=this.targetPort):(y=ne,b=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?x=E=null:b=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?x:b,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()}}},Il.prototype.reconnectLink=function(a,y,b,E){return b=b!==null&&b.portId!==null?b.portId:"",E?(a.toNode=y,a.toPortId=b):(a.fromNode=y,a.fromPortId=b),!0},Il.prototype.doNoRelink=function(){};function Ce(a,y,b,E,x){y!==null?(a.copyPortProperties(y,b,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,x,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Jn.Object.defineProperties(Il.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 Mo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Il.className="RelinkingTool",rr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),rr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Qe(){bo.call(this),this.name="LinkReshaping";var a=new oo;a.figure="Rectangle",a.desiredSize=Ni,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new oo,a.figure="Diamond",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new it,this.Yq=new Qn}Sn(Qe,bo),Qe.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ft},Qe.prototype.om=function(a,y){a.reshapingBehavior=y},Qe.prototype.updateAdornments=function(a){if(a!==null&&a instanceof _r){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.path;b!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(b),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Qe.prototype.makeAdornment=function(a){var y=a.part,b=y.pointsCount,E=y.isOrthogonal,x=null;if(y.points!==null&&1<b){x=new Mo,x.type=Tr.Link,b=y.firstPickIndex;var z=y.lastPickIndex,ne=E?1:0;if(y.resegmentable&&y.computeCurve()!==$u)for(var ie=b+ne;ie<z-ne;ie++){var se=this.makeResegmentHandle(a,ie);se!==null&&(se.segmentIndex=ie,se.segmentFraction=.5,se.fromMaxLinks=999,x.add(se))}for(ne=b+1;ne<z;ne++)if(ie=this.makeHandle(a,ne),ie!==null){if(ie.segmentIndex=ne,ne!==b)if(ne===b+1&&E){se=y.i(b);var de=y.i(b+1);tn.B(se.x,de.x)&&tn.B(se.y,de.y)&&(de=y.i(b-1)),tn.B(se.x,de.x)?(this.om(ie,Ht),ie.cursor="n-resize"):tn.B(se.y,de.y)&&(this.om(ie,Ft),ie.cursor="w-resize")}else ne===z-1&&E?(se=y.i(z-1),de=y.i(z),tn.B(se.x,de.x)&&tn.B(se.y,de.y)&&(se=y.i(z+1)),tn.B(se.x,de.x)?(this.om(ie,Ht),ie.cursor="n-resize"):tn.B(se.y,de.y)&&(this.om(ie,Ft),ie.cursor="w-resize")):ne!==z&&(this.om(ie,ln),ie.cursor="move");x.add(ie)}x.adornedObject=a}return x},Qe.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Qe.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Qe.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},Qe.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 _r){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var b=y.points.copy(),E=this.getResegmentingPoint();if(b.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&b.Gb(this.handle.segmentIndex+1,E),y.points=b,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}}},Qe.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Qe.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Qe.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Qe.prototype.getResegmentingPoint=function(){return this.handle.ga(Ji)},Qe.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Qe.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 b=this.handle.segmentIndex,E=y.i(b-1),x=y.i(b),z=y.i(b+1);if(y.isOrthogonal){if(b>y.firstPickIndex+1&&b<y.lastPickIndex-1){var ne=y.i(b-2);if(Math.abs(E.x-x.x)<this.resegmentingDistance&&Math.abs(E.y-x.y)<this.resegmentingDistance&&(tt(this,ne,E,x,z,!0)||tt(this,ne,E,x,z,!1))){var ie=y.points.copy();tt(this,ne,E,x,z,!0)?(ie.cd(b-2,new it(ne.x,(z.y+ne.y)/2)),ie.cd(b+1,new it(z.x,(z.y+ne.y)/2))):(ie.cd(b-2,new it((z.x+ne.x)/2,ne.y)),ie.cd(b+1,new it((z.x+ne.x)/2,z.y))),ie.mb(b),ie.mb(b-1),y.points=ie,y.Wb()}else ne=y.i(b+2),Math.abs(x.x-z.x)<this.resegmentingDistance&&Math.abs(x.y-z.y)<this.resegmentingDistance&&(tt(this,E,x,z,ne,!0)||tt(this,E,x,z,ne,!1))&&(ie=y.points.copy(),tt(this,E,x,z,ne,!0)?(ie.cd(b-1,new it(E.x,(E.y+ne.y)/2)),ie.cd(b+2,new it(ne.x,(E.y+ne.y)/2))):(ie.cd(b-1,new it((E.x+ne.x)/2,E.y)),ie.cd(b+2,new it((E.x+ne.x)/2,ne.y))),ie.mb(b+1),ie.mb(b),y.points=ie,y.Wb())}}else ne=it.alloc(),tn.qh(E.x,E.y,z.x,z.y,x.x,x.y,ne)&&ne.Bf(x)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(b),y.points=E,y.Wb()),it.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function tt(a,y,b,E,x,z){return z?Math.abs(y.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-x.y)<a.resegmentingDistance:Math.abs(y.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-x.x)<a.resegmentingDistance}Qe.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var b=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(b===y.firstPickIndex+1)b=y.firstPickIndex+1,E===Ht?(y.L(b,y.i(b-1).x,a.y),y.L(b+1,y.i(b+2).x,a.y)):E===Ft&&(y.L(b,a.x,y.i(b-1).y),y.L(b+1,a.x,y.i(b+2).y));else if(b===y.lastPickIndex-1)b=y.lastPickIndex-1,E===Ht?(y.L(b-1,y.i(b-2).x,a.y),y.L(b,y.i(b+1).x,a.y)):E===Ft&&(y.L(b-1,a.x,y.i(b-2).y),y.L(b,a.x,y.i(b+1).y));else{E=b;var x=y.i(E),z=y.i(E-1),ne=y.i(E+1);tn.B(z.x,x.x)&&tn.B(x.y,ne.y)?(tn.B(z.x,y.i(E-2).x)&&!tn.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),b++,E++):y.L(E-1,a.x,z.y),tn.B(ne.y,y.i(E+2).y)&&!tn.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)):tn.B(z.y,x.y)&&tn.B(x.x,ne.x)?(tn.B(z.y,y.i(E-2).y)&&!tn.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),b++,E++):y.L(E-1,z.x,a.y),tn.B(ne.x,y.i(E+2).x)&&!tn.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):tn.B(z.x,x.x)&&tn.B(x.x,ne.x)?(tn.B(z.x,y.i(E-2).x)&&!tn.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),b++,E++):y.L(E-1,a.x,z.y),tn.B(ne.x,y.i(E+2).x)&&!tn.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):tn.B(z.y,x.y)&&tn.B(x.y,ne.y)&&(tn.B(z.y,y.i(E-2).y)&&!tn.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),b++,E++):y.L(E-1,z.x,a.y),tn.B(ne.y,y.i(E+2).y)&&!tn.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)),y.L(b,a.x,a.y)}else y.L(b,a.x,a.y),E=y.fromNode,x=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,x=E.port)),b===1&&y.computeSpot(!0,x).Mc()&&(z=x.ga(Ji,it.alloc()),E=y.getLinkPointFromPoint(E,x,z,a,!0,it.alloc()),y.L(0,E.x,E.y),it.free(z),it.free(E)),E=y.toNode,x=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,x=E.port)),b===y.pointsCount-2&&y.computeSpot(!1,x).Mc()&&(b=x.ga(Ji,it.alloc()),a=y.getLinkPointFromPoint(E,x,b,a,!1,it.alloc()),y.L(y.pointsCount-1,a.x,a.y),it.free(b),it.free(a));y.zf()},Qe.prototype.computeReshape=function(a){var y=this.adornedLink,b=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ln:return a;case Ht:return new it(y.i(b).x,a.y);case Ft:return new it(a.x,y.i(b).y);default:case ft:return y.i(b)}},Jn.Object.defineProperties(Qe.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 Mo))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}}}),Qe.prototype.setReshapingBehavior=Qe.prototype.om,Qe.prototype.getReshapingBehavior=Qe.prototype.Ru;var ft=new mn(Qe,"None",0),Ft=new mn(Qe,"Horizontal",1),Ht=new mn(Qe,"Vertical",2),ln=new mn(Qe,"All",3);Qe.className="LinkReshapingTool",Qe.None=ft,Qe.Horizontal=Ft,Qe.Vertical=Ht,Qe.All=ln,rr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ln(){bo.call(this),this.name="Resizing",this.o=new an(1,1).freeze(),this.j=new an(9999,9999).freeze(),this.yg=new an(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new oo;a.alignmentFocus=Ji,a.figure="Rectangle",a.desiredSize=Ni,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new it,this.Dw=new an,this.Tn=new it,this.rt=new an(0,0),this.qt=new an(1/0,1/0),this.pt=new an(1,1)}Sn(Ln,bo),Ln.prototype.updateAdornments=function(a){if(!(a===null||a instanceof _r)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,b=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((b===null||b.adornedObject!==y)&&(b=this.makeAdornment(y)),b!==null)){y=y.li(),of(a)&&this.updateResizeHandles(b,y),a.bh(this.name,b);return}}a.Jf(this.name)}},Ln.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Mo,y.type=Tr.Spot,y.locationSpot=Ji;var b=new ru;b.isPanelMain=!0,y.add(b),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,Do)),y.add(this.makeHandle(a,Fo)),y.add(this.makeHandle(a,pa)),y.add(this.makeHandle(a,Ms)),y.add(this.makeHandle(a,fs)),y.add(this.makeHandle(a,ks)),y.add(this.makeHandle(a,Qs))}else if(Tc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ln.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ln.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var b=a.alignment;if(b.Mc()&&(b=Ji),0>=b.x)y=0>=b.y?y+225:1<=b.y?y+135:y+180;else if(1<=b.x)0>=b.y?y+=315:1<=b.y&&(y+=45);else if(0>=b.y)y+=270;else if(1<=b.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 Tr)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ln.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},Ln.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))},Ln.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ln.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ln.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ln.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,b=this.qt,E=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,it.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),a.bd(),it.free(x)}},Ln.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,b=this.qt,E=this.pt,x=this.adornedObject.qs(a.lastInput.documentPoint,it.alloc()),z=this.computeReshape();y=this.computeResize(x,this.handle.alignment,y,b,E,z),this.resize(y),it.free(x),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ln.prototype.resize=function(a){var y=this.diagram,b=this.adornedObject;if(b!==null){if(b.desiredSize=a.size,a=b.part,a.Va(),b=b.ga(this.handle.alignment.gv()),a instanceof ro){var E=new Qn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var x=new le;x.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(b),!0,x)}else a.location=a.location.copy().re(b).add(this.oppositePoint);y.bd()}},Ln.prototype.computeResize=function(a,y,b,E,x,z){y.Mc()&&(y=Ji);var ne=this.adornedObject.naturalBounds,ie=ne.x,se=ne.y,de=ne.x+ne.width,pe=ne.y+ne.height,Se=1;if(!z){Se=ne.width;var Le=ne.height;0>=Se&&(Se=1),0>=Le&&(Le=1),Se=Le/Se}return Le=it.alloc(),tn.No(a.x,a.y,ie,se,x.width,x.height,Le),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Le.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=Math.max(de-a.x,b.width),a.y=Math.max(Le.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=Math.max(pe-a.y,b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.x=de-a.width,a.y=pe-a.height)):1<=y.y?(a.x=Math.max(Le.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=Math.max(de-a.x,b.width),a.height=Math.max(Math.min(Le.y-se,E.height),b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.x=de-a.width)):(a.x=Math.max(Le.x,de-E.width),a.x=Math.min(a.x,de-b.width),a.width=de-a.x,z||(a.height=Math.max(Math.min(Se*a.width,E.height),b.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(Le.x-ie,E.width),b.width),a.y=Math.max(Le.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=Math.max(pe-a.y,b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width),a.y=pe-a.height)):1<=y.y?(a.width=Math.max(Math.min(Le.x-ie,E.width),b.width),a.height=Math.max(Math.min(Le.y-se,E.height),b.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se):(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width))):(a.width=Math.max(Math.min(Le.x-ie,E.width),b.width),z||(a.height=Math.max(Math.min(Se*a.width,E.height),b.height),a.width=a.height/Se,a.y=se+.5*(pe-se-a.height))):0>=y.y?(a.y=Math.max(Le.y,pe-E.height),a.y=Math.min(a.y,pe-b.height),a.height=pe-a.y,z||(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width,a.x=ie+.5*(de-ie-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Le.y-se,E.height),b.height),z||(a.width=Math.max(Math.min(a.height/Se,E.width),b.width),a.height=Se*a.width,a.x=ie+.5*(de-ie-a.width))),it.free(Le),a},Ln.prototype.computeReshape=function(){var a=yr;return this.adornedObject instanceof oo&&(a=Bv(this.adornedObject)),!(a===yi||this.diagram.lastInput.shift)},Ln.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},Ln.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},Ln.prototype.computeCellSize=function(){var a=new an(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},Jn.Object.defineProperties(Ln.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 Mo))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 Mo)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}}}),Ln.className="ResizingTool",rr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Sr(){bo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new it,this.ue=null;var a=new oo;a.figure="Ellipse",a.desiredSize=si,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new it(NaN,NaN),this.u=0,this.F=50}Sn(Sr,bo),Sr.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 b=a.Pj(this.name);if((b===null||b.adornedObject!==y)&&(b=this.makeAdornment(y)),b!==null){b.angle=y.li(),b.placeholder===null&&(b.location=this.computeAdornmentLocation(y)),a.bh(this.name,b);return}}a.Jf(this.name)}},Sr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Mo,y.type=Tr.Position,y.locationSpot=Ji;var b=this.handleArchetype;b!==null&&y.add(b.copy())}else if(Tc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Sr.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},Sr.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)},Sr.prototype.computeRotationPoint=function(a){var y=a.part,b=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===b?b.ga(y.locationSpot):a.ga(Ji)},Sr.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var b=this.handleAngle;0>b?b+=360:360<=b&&(b-=360),b=Math.round(45*Math.round(b/45));var E=this.handleDistance;return b===0?y.x=a.naturalBounds.width+E:b===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):b===90?y.y=a.naturalBounds.height+E:b===135?(y.x=-E,y.y=a.naturalBounds.height+E):b===180?y.x=-E:b===225?(y.x=-E,y.y=-E):b===270?y.y=-E:b===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Sr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new it(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Sr.prototype.stopTransaction=function(){var a=this.diagram,y=bo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Sr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Sr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Sr.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()},Sr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var b=y.locationObject,E=y.rotateObject;(b===E||b.rg(E))&&(b=this.Tn.copy(),y.location=b.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Sr.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 b=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<b&&(a%y<b?a=Math.floor(a/y)*y:a%y>y-b&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Jn.Object.defineProperties(Sr.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 Mo))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 Mo)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}}}),Sr.className="RotatingTool",rr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function xr(){bo.call(this),this.name="ClickSelecting"}Sn(xr,bo),xr.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},xr.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},xr.className="ClickSelectingTool";function er(){bo.call(this),this.name="Action",this.pk=null}Sn(er,bo),er.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,b=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return b!==null&&b.isActionable?(this.pk=b,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},er.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()},er.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))}},er.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(b){for(;b.panel!==null&&(!b.isActionable||b!==y);)b=b.panel;return b},function(b){return b===y})}this.stopTool()},er.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())},er.prototype.doStop=function(){this.pk=null},er.className="ActionTool";function Zr(){bo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new it(0,0)}Sn(Zr,bo),Zr.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)},Zr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Zr.prototype.insertPart=function(a){var y=this.diagram,b=this.archetypeNodeData;if(b===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),b instanceof Ai)b.Zc()&&(Tc(b),E=b.copy(),E!==null&&y.add(E));else if(b!==null){var x=y.model.copyNodeData(b);Xt(x)&&(y.model.xf(x),E=y.Lc(x))}if(E!==null){var z=it.allocAt(a.x,a.y);this.isGridSnapEnabled&&If(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),it.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Jn.Object.defineProperties(Zr.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}}}),Zr.className="ClickCreatingTool";function Hr(){bo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Ai;a.layerName="Tool",a.selectable=!1;var y=new oo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Sn(Hr,bo),Hr.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))},Hr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Hr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Hr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),b=this.box.fb("SHAPE");b===null&&(b=this.box.Pb());var E=an.alloc().h(y.width,y.height);b.desiredSize=E,this.box.mm(y.x,y.y,!1),an.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Hr.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()},Hr.prototype.computeBoxBounds=function(){var a=this.diagram;return new In(a.firstInput.documentPoint,a.lastInput.documentPoint)},Hr.prototype.selectInRect=function(a){var y=this.diagram,b=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Ci?b.meta:b.control)if(b.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(b.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(b=new Qn,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||b.add(E)}for(y=b.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Jn.Object.defineProperties(Hr.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}}}),Hr.className="DragSelectingTool";function sr(){bo.call(this),this.name="Panning",this.Xt=new it,this.xy=new it,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ur.document,"scroll",a.Kw,!1),a.stopTool()}}Sn(sr,bo),sr.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())},sr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ur.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},sr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},sr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},sr.prototype.doMouseMove=function(){this.move()},sr.prototype.doMouseUp=function(){this.move(),this.stopTool()},sr.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,b=a.firstInput.documentPoint,E=a.lastInput.documentPoint,x=y.x+b.x-E.x;b=y.y+b.y-E.y,a.allowHorizontalScroll||(x=y.x),a.allowVerticalScroll||(b=y.y),a.position=this.xy.h(x,b)}},Jn.Object.defineProperties(sr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),sr.className="PanningTool",rr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),rr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),rr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),rr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),rr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Po(){this.F=this.u=this.j=this.o=null}Jn.Object.defineProperties(Po.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}}}),Po.className="HTMLInfo";function jo(a,y,b){this.text=a,this.hx=y,this.visible=b}jo.className="ContextMenuButtonInfo";function ea(){bo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new it,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Sn(ea,bo);function so(a){var y=new Po;y.show=function(x,z,ne){ne.showDefaultContextMenu()},y.hide=function(x,z){z.hideDefaultContextMenu()},Ki=y,a.tu=function(){a.stopTool()},y=Fr("div");var b=Fr("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",b.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=Fr("style");ur.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",To,!1),E.addEventListener(y,"selectstart",To,!1),E.addEventListener(b,"contextmenu",To,!1)),y.className="goCXforeground",b.className="goCXbackground",ur.document.body&&(ur.document.body.appendChild(y),ur.document.body.appendChild(b)),Ua=y,ws=b,ka=!0}function To(a){return a.preventDefault(),!1}ea.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)},ea.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ea.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ea.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.lastInput,E=null;if(a instanceof Dn||(a instanceof rn?E=a:E=y.ic(b.documentPoint,null,function(x){return!x.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},ea.prototype.doActivate=function(){},ea.prototype.doMouseDown=function(){if(bo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Mo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Bo(this)},ea.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Mo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Bo(this)};function Bo(a){var y=a.diagram;if(a.isActive){var b=a.currentContextMenu;if(b!==null){var E=null;b instanceof Po||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(b)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Xa(a,!0),a.isActive||a.stopTool())}ea.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Xa(a,y,b){if(b===void 0&&(b=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Ki,b===null&&(b=a.findObjectWithContextMenu()),b!==null){var E=b.contextMenu;E!==null?(a.currentObject=b instanceof rn?b:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Mo&&!a.currentContextMenu.visible&&a.stopTool()}}ea.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ea.prototype.showContextMenu=function(a,y){var b=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Mo){a.layerName="Tool",a.selectable=!1,a.scale=1/b.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=b.scale);var E=a.diagram;E!==null&&E!==b&&E.remove(a),b.add(a),y!==null?a.adornedObject=y:a.data=b.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Po&&a.show(y,b,this);this.currentContextMenu=a},ea.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,b=y.lastInput.documentPoint.copy(),E=a.measuredBounds,x=y.viewportBounds;y.lastInput.isTouchEvent&&(b.x-=E.width),b.x+E.width>x.right&&(b.x-=E.width+5/y.scale),b.x<x.x&&(b.x=x.x),b.y+E.height>x.bottom&&(b.y-=E.height+5/y.scale),b.y<x.y&&(b.y=x.y),a.position=b}},ea.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Mo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Po&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Qa(a){var y=new Qn;return y.add(new jo("Copy",function(b){b.commandHandler.copySelection()},function(b){return b.commandHandler.canCopySelection()})),y.add(new jo("Cut",function(b){b.commandHandler.cutSelection()},function(b){return b.commandHandler.canCutSelection()})),y.add(new jo("Delete",function(b){b.commandHandler.deleteSelection()},function(b){return b.commandHandler.canDeleteSelection()})),y.add(new jo("Paste",function(b){b.commandHandler.pasteSelection(a.mouseDownPoint)},function(b){return b.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new jo("Select All",function(b){b.commandHandler.selectAll()},function(b){return b.commandHandler.canSelectAll()})),y.add(new jo("Undo",function(b){b.commandHandler.undo()},function(b){return b.commandHandler.canUndo()})),y.add(new jo("Redo",function(b){b.commandHandler.redo()},function(b){return b.commandHandler.canRedo()})),y.add(new jo("Scroll To Part",function(b){b.commandHandler.scrollToPart()},function(b){return b.commandHandler.canScrollToPart()})),y.add(new jo("Zoom To Fit",function(b){b.commandHandler.zoomToFit()},function(b){return b.commandHandler.canZoomToFit()})),y.add(new jo("Reset Zoom",function(b){b.commandHandler.resetZoom()},function(b){return b.commandHandler.canResetZoom()})),y.add(new jo("Group Selection",function(b){b.commandHandler.groupSelection()},function(b){return b.commandHandler.canGroupSelection()})),y.add(new jo("Ungroup Selection",function(b){b.commandHandler.ungroupSelection()},function(b){return b.commandHandler.canUngroupSelection()})),y.add(new jo("Edit Text",function(b){b.commandHandler.editTextBlock()},function(b){return b.commandHandler.canEditTextBlock()})),y}ea.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Qa(this)),Ua.innerHTML="",ws.addEventListener("pointerdown",this.tu,!1);var y=this,b=Fr("ul");b.className="goCXul",Ua.appendChild(b),b.innerHTML="";for(var E=this.jt.iterator;E.next();){var x=E.value,z=x.visible;if(typeof x.hx=="function"&&(typeof z!="function"||z(a))){z=Fr("li"),z.className="goCXli";var ne=Fr("a");ne.className="goCXa",ne.href="#",ne.ky=x.hx,ne.addEventListener("pointerdown",function(ie){return this.ky(a),y.stopTool(),ie.preventDefault(),!1},!1),ne.textContent=x.text,z.appendChild(ne),b.appendChild(z)}}Ua.style.display="block",ws.style.display="block"},ea.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ki){Ua.style.display="none",ws.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ws,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Jn.Object.defineProperties(ea.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Mo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ka===!1&&Ki===null&&Fa&&so(this),Ki},set:function(a){a===null&&(ka=!0),Ki=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ki=null,ka=!1,ws=null,Ua=null;ea.className="ContextMenuTool",rr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function xo(){bo.call(this),this.name="TextEditing",this.Zh=new Sa,this.ia=null,this.V=El,this.vj=null,this.qa=Ar,this.u=1,this.F=!0,this.o=null,this.j=new Po,this.kt=null,Dl(this,this.j)}Sn(xo,bo);function Dl(a,y){if(Fa){var b=Fr("textarea");a.kt=b,b.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),b.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var x=E.key;x==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(ds)):x==="Tab"?(a.acceptText(Ea),E.preventDefault()):x==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),b.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ar){var E=a.kt;a.qa===hl&&(a.qa=Ql),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),b.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ar){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return b.value},y.mainElement=b,y.show=function(E,x,z){if(E instanceof Sa&&z instanceof xo)if(z.state===xl)b.style.border="3px solid red",b.focus();else{var ne=E.ga(Ji),ie=x.position,se=x.scale,de=E.Df()*se;de<z.minimumEditorScale&&(de=z.minimumEditorScale);var pe=E.naturalBounds.width*de+6,Se=E.naturalBounds.height*de+2,Le=(ne.x-ie.x)*se;ne=(ne.y-ie.y)*se,ie=E.verticalAlignment,se=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*de,Se=ie.y*Se-ie.y*se+ie.offsetY-(.5*Se-.5*se)-se/2,b.value=E.text,x.div.style.font=E.font,b.style.position="absolute",b.style.zIndex="100",b.style.font="inherit",b.style.fontSize=100*de+"%",b.style.lineHeight="normal",b.style.width=pe+"px",b.style.left=(Le-pe/2|0)-1+"px",b.style.top=(ne+Se|0)-1+"px",b.style.textAlign=E.textAlign,b.style.margin="0",b.style.padding="1px",b.style.border="0",b.style.outline="none",b.style.whiteSpace="pre-wrap",b.style.overflow="hidden",b.rows=E.lineCount,b.wA=de,b.className="goTXarea",x.div.appendChild(b),b.focus(),z.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(b)}}}xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||_u&&_u!==this&&(_u.acceptText(Yo),_u&&_u!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Sa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===El&&!y.isSelected||this.starting===Ul&&2>a.lastInput.clickCount)):!1},xo.prototype.doStart=function(){_u=this,this.textBlock!==null&&this.doActivate()},xo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Sa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=hl;var b=this.defaultTextEditor;y.textEditor!==null&&(b=y.textEditor),this.Zh=this.textBlock.copy();var E=new In(this.textBlock.ga(ho),this.textBlock.ga(Fo));a.tv(E),b.show(y,a,this),this.currentTextEditor=b}}}},xo.prototype.doCancel=function(){this.stopTool()},xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Yo)},xo.prototype.acceptText=function(a){switch(a){case Yo:this.qa===Jl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===hl||this.qa===xl||this.qa===Ql)&&(this.qa=Or,is(this));break;case Ko:case ds:case Ea:(ds!==a||this.textBlock.isMultiline!==!0)&&(this.qa===hl||this.qa===xl||this.qa===Ql)&&(this.qa=Or,is(this))}};function is(a){var y=a.textBlock,b=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var x=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,x,z)?(a.Ea(a.name),a.qa=Jl,a.transactionResult=a.name,y.text=z,a.doSuccess(x,z),b!==null&&b.R("TextEdited",y,x),a.stopTransaction(),a.stopTool(),b!==null&&b.doFocus()):(a.qa=xl,a.doError(x,z))}}xo.prototype.doError=function(a,y){var b=this.textBlock;b.errorFunction!==null&&b.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(b,this.diagram,this)},xo.prototype.doSuccess=function(a,y){var b=this.textBlock;b.textEdited!==null&&b.textEdited(b,a,y)},xo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ar,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},xo.prototype.doStop=function(){_u=null},xo.prototype.isValidText=function(a,y,b){var E=this.textValidation;return E!==null&&!E(a,y,b)?!1:(E=a.textValidation,!!(E===null||E(a,y,b)))},xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Jn.Object.defineProperties(xo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),xo.prototype.measureTemporaryTextBlock=xo.prototype.Lx;var Ko=new mn(xo,"LostFocus",0),Yo=new mn(xo,"MouseDown",1),Ea=new mn(xo,"Tab",2),ds=new mn(xo,"Enter",3),al=new mn(xo,"SingleClick",0),El=new mn(xo,"SingleClickSelected",1),Ul=new mn(xo,"DoubleClick",2),Ar=new mn(xo,"StateNone",0),hl=new mn(xo,"StateActive",1),Ql=new mn(xo,"StateEditing",2),Or=new mn(xo,"StateValidating",3),xl=new mn(xo,"StateInvalid",4),Jl=new mn(xo,"StateValidated",5),_u=null;xo.className="TextEditingTool",xo.LostFocus=Ko,xo.MouseDown=Yo,xo.Tab=Ea,xo.Enter=ds,xo.SingleClick=al,xo.SingleClickSelected=El,xo.DoubleClick=Ul,xo.StateNone=Ar,xo.StateActive=hl,xo.StateEditing=Ql,xo.StateValidating=Or,xo.StateInvalid=xl,xo.StateValidated=Jl,rr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function el(a){ti||(nn(),ti=!0),this.H=Jc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Li,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ar,this.ce=new ii,this.ce.Yd=this,this.Ei=new ar,this.pu=new ar,this.Sr=new ar,this.pr=new ar,a&&Object.assign(this,a)}el.prototype.Xe=function(a){this.H=a},el.prototype.canStart=function(){return!0};function ms(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ps(a.H),a.zb=!0)}function ql(a){if(a.Jd&&a.zb){var y=a.ce,b=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Li?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(b,"position",b.position.copy().offset(0,-200),b.position),y.add(b,"opacity",0,1)):a.Pk===Xo&&y.vc.clear(),a.Qw=!!(a.Pk===Lo&&b.du.D(b.pa)),b.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),qi(y,b),a.Ok=!1,b.N()):(a.Zd.clear(),b.kg=!1,E=y.vc.get(b),b.autoScale!==pl&&E!==null&&(delete E.start.scale,delete E.end.scale),ur.requestAnimationFrame(function(){a.zb===!1||y.bc||(b.Gf("temporaryPixelRatio")&&zl(b),tp(b),a.zb=!1,y.start(),y.bc&&(wl(a),b.Ya(),Uu(y,0),Hu(b,!0),Ju(a),b.R("AnimationStarting",a)))}))}}function fl(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qu(a,y,b,E){a.isTicking||fl(a)||y instanceof _r&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",b,E,!1)}Oe=el.prototype,Oe.fv=function(a){return this.ce.fv(a)},Oe.Xu=function(a){return this.ce.Xu(a)};function uc(a,y){function b(){if(0<x.Sr.count&&(E.addAll(x.Sr),x.Sr.clear(),x.bc=!0),x.bc!==!1&&E.count!==0){x.pu.addAll(E);for(var z=x.pu.iterator;z.next();){var ne=z.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var ie=!0;else{for(ie=ne.vc.iterator;ie.next();){var se=ie.key;if(se instanceof rn&&se.diagram!==null||se instanceof Dn){ie=!0;break e}}ie=!1}ie?os(ne,!1):ne.Xk=!0}}x.pu.clear(),x.bc!==!1&&(wl(x),Hu(x.H),Ju(x)),ur.requestAnimationFrame(b)}}var E=a.Ei,x=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),ur.requestAnimationFrame(function(){b()}))}function cc(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function wl(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 Ju(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Oe.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(),qi(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),qi(y,this.H)},Oe.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))},Oe.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ge(this,a))},Oe.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ta(this.ce,y,"position",y.position,y.position),ge(this,a))};function zd(a,y,b){!a.zb||y.D(b)||fl(a)||(a.H.pi||(y=b.copy()),ta(a.ce,a.H,"position",y,b))}function ce(a,y,b){y.fd&&(y.Tg=b,a.pr.add(y))}function ge(a,y){for(y=y.findLinksConnected();y.next();){var b=y.value;b.fd&&(b.Tg=b.points.copy(),a.pr.add(b))}}function et(a,y,b,E,x){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ne=a[1],ie=a[2];a=a[3];var se=y[0],de=y[1],pe=y[2];return y=y[3],ie===0||ie===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(b,z,se-z,E)%360,ne=x(b,ne,de-ne,E),ie=x(b,ie,pe-ie,E),b=x(b,a,y-a,E),"hsla("+z+", "+ne+"%, "+ie+"%, "+b+")"}function nn(){function a(b,E,x,z,ne,ie){b.position=new it(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}var y=new An;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!1):b.position=new it(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("location",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!0):b.location=new it(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("position:placeholder",function(b,E,x,z,ne,ie){ne<ie?b.mm(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie),!1):b.position=new it(z(ne,E.x,x.x-E.x,ie),z(ne,E.y,x.y-E.y,ie))}),y.add("position:nodeCollapse",function(b,E,x,z,ne,ie){var se=b.actualBounds,de=x.actualBounds;x=de.x+de.width/2-se.width/2,se=de.y+de.height/2-se.height/2,ne<ie?b.mm(z(ne,E.x,x-E.x,ie),z(ne,E.y,se-E.y,ie),!1):b.position=new it(z(ne,E.x,x-E.x,ie),z(ne,E.y,se-E.y,ie))}),y.add("desiredSize",function(b,E,x,z,ne,ie){b.desiredSize=new In(z(ne,E.width,x.width-E.width,ie),z(ne,E.height,x.height-E.height,ie))}),y.add("width",function(b,E,x,z,ne,ie){b.width=z(ne,E,x-E,ie)}),y.add("height",function(b,E,x,z,ne,ie){b.height=z(ne,E,x-E,ie)}),y.add("fill",function(b,E,x,z,ne,ie){b.fill=et(E,x,ne,ie,z)}),y.add("stroke",function(b,E,x,z,ne,ie){b.stroke=et(E,x,ne,ie,z)}),y.add("strokeWidth",function(b,E,x,z,ne,ie){b.strokeWidth=z(ne,E,x-E,ie)}),y.add("strokeDashOffset",function(b,E,x,z,ne,ie){b.strokeDashOffset=z(ne,E,x-E,ie)}),y.add("background",function(b,E,x,z,ne,ie){b.background=et(E,x,ne,ie,z)}),y.add("areaBackground",function(b,E,x,z,ne,ie){b.areaBackground=et(E,x,ne,ie,z)}),y.add("opacity",function(b,E,x,z,ne,ie){b.opacity=z(ne,E,x-E,ie)}),y.add("scale",function(b,E,x,z,ne,ie){b.scale=z(ne,E,x-E,ie)}),y.add("angle",function(b,E,x,z,ne,ie){b.angle=z(ne,E,x-E,ie)}),br=y}Jn.Object.defineProperties(el.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&&kr(a,">= 1",el,"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}}}),el.prototype.stopAnimation=el.prototype.Cc;var br=null,ti=!1,Li=new mn(el,"Default",1),Lo=new mn(el,"AnimateLocations",2),Xo=new mn(el,"None",3);el.className="AnimationManager",el.defineAnimationEffect=function(a,y){ti||(nn(),ti=!0),br.add(a,y)},el.Default=Li,el.AnimateLocations=Lo,el.None=Xo;function ii(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=xu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Dr,this.vc=new An,this.Tt=new An,this.yl=new ar,this.Ut=new ar,this.dw=Ad,a&&Object.assign(this,a)}ii.prototype.suspend=function(){this.Xk=!0},ii.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,os(this,!0),wl(this.Yd),Hu(this.H),Ju(this.Yd),this.H.redraw()};function qi(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}Oe=ii.prototype,Oe.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var b=y.key;a===null&&(b instanceof Dn?a=b:b instanceof rn&&(a=b.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===Li&&this===y.defaultAnimation&&(this.Lp=wu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Sh),wl(y),this.yl.each(function(E){E.data=null,a.add(E)}),Ju(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,uc(y,this),this)},Oe.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Oe.add=function(a,y,b,E,x){if(y==="position"&&b.Xa(E))return this;if(this.H===null&&(a instanceof Dn?this.H=a:a instanceof rn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Ai){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ta(this,a,y,b,E,x),this};function ta(a,y,b,E,x,z){var ne=a.vc;if(y instanceof Dn&&b==="position"&&(b="position:diagram"),(b==="fill"||b==="stroke"||b==="background"||b==="areaBackground")&&(Pc(E),Bf(),E=[Ml.j,Ml.u,Ml.o,Ml.F],Pc(x),Bf(),x=[Ml.j,Ml.u,Ml.o,Ml.F]),ne.contains(y)){var ie=ne.I(y),se=ie.start,de=ie.end;se[b]===void 0&&(se[b]=Aa(E)),de[b]=Aa(x)}else se={},de={},se[b]=Aa(E),de[b]=Aa(x),ie=se.position,y instanceof rn&&ie instanceof it&&!ie.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ie.assign(de.position),ie=new dc(se,de,z),ne.add(y,ie);ne=se[b],ne instanceof it&&!ne.w()&&ne.assign(a.o),z&&b.indexOf("position:")===0&&y instanceof Ai?ie.Ku.location=Aa(y.location):z&&(ie.Ku[b]=Aa(E))}function Aa(a){return a instanceof it||a instanceof an?a.copy():a}Oe.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Oe.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function os(a,y){if(!a.Xk||y){var b=a.Yd;if(a.bc!==!1){var E=+new Date,x=E>a.cn?a.Gd:E-a.Qd;y&&(x=a.gw,x<a.Gd?(a.Qd=+new Date-x,a.cn=a.Qd+a.Gd):x=a.Gd),wl(b),Uu(a,x),Hu(a.H,!0),Ju(b),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Uu(a,y){for(var b=a.Gd,E=a.vc.iterator,x=a.Wk;E.next();){var z=E.key;if(!(z instanceof rn&&z.diagram===null)){var ne=E.value,ie=x?ne.end:ne.start;ne=x?ne.start:ne.end;var se=br,de;for(de in ne)de==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||se.get(de)===null||se.get(de)(z,ie[de],ne[de],a.Lp,y,b,a)}}}Oe.stop=function(){return this.bc?(this.Ml(!0),this):this},Oe.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,b=this.Yd;this.Xk=this.bc=b.Ok=!1,wl(b);for(var E=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,E=E.iterator;for(var z=br;E.next();){var ne=E.key,ie=E.value,se=x?ie.end:ie.start,de=x?ie.start:ie.end,pe=ie.Ku,Se;for(Se in de)if(z.get(Se)!==null){var Le=Se;!ie.Hu||Le!=="position:nodeCollapse"&&Le!=="position:placeholder"||(Le="position"),z.get(Le)(ne,se[Se],pe[Se]!==void 0?pe[Se]:ie.Hu?se[Se]:de[Se],this.Lp,this.Gd,this.Gd,this)}ie.Hu&&pe.location!==void 0&&ne instanceof Ai&&(ne.location=pe.location),ie.nv&&ne instanceof Ai&&ne.Zb(!1)}if(y.As.clear(),jd(y,!1),y.Ya(),y.N(),Hu(y,!0),b.defaultAnimation===this){for(Se=b.pr.iterator;Se.next();)x=Se.value,x.Tg!==null&&(x.points=x.Tg,x.Tg=null);b.pr.clear()}Hu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Ju(b),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),qi(this,null),b.Ml(this),y.$b())}},Oe.Cj=function(a,y){var b=y.actualBounds,E=null;if(y instanceof ro&&(E=y.placeholder),E!==null?(b=E.ga(ho),E=E.padding,b.x+=E.left,b.y+=E.top,this.add(a,"position",b,a.position,!1)):this.add(a,"position",new it(b.x+b.width/2,b.y+b.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof ro)for(a=a.memberParts;a.next();)E=a.value,E instanceof $r&&this.Cj(E,y)},Oe.Aj=function(a,y){if(a.isVisible()){var b=null;if(y instanceof ro&&(b=y.placeholder),b!==null){var E=b.ga(ho);b=b.padding,E.x+=b.left,E.y+=b.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof ro)for(a=a.memberParts;a.next();)E=a.value,E instanceof $r&&this.Aj(E,y)}},Oe.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Jn.Object.defineProperties(ii.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&kr(a,">= 1",ii,"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:Lt("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}}}),ii.prototype.getTemporaryState=ii.prototype.Ez,ii.prototype.stop=ii.prototype.stop,ii.prototype.add=ii.prototype.add,ii.prototype.addTemporaryPart=ii.prototype.Iy;function xu(a,y,b,E){return a/=E/2,1>a?b/2*a*a+y:-b/2*(--a*(a-2)-1)+y}function wu(a,y,b,E){return a===E?y+b:b*(-Math.pow(2,-10*a/E)+1)+y}ii.className="Animation",ii.EaseLinear=function(a,y,b,E){return b*a/E+y},ii.EaseInOutQuad=xu,ii.EaseInQuad=function(a,y,b,E){return b*(a/=E)*a+y},ii.EaseOutQuad=function(a,y,b,E){return-b*(a/=E)*(a-2)+y},ii.EaseInExpo=function(a,y,b,E){return a===0?y:b*Math.pow(2,10*(a/E-1))+y},ii.EaseOutExpo=wu;function dc(a,y,b){this.start=a,this.end=y,this.Ku={},this.Hu=b,this.nv=!1}dc.className="AnimationState";function Hl(a,y,b){this.xd=null,this.rf=a,this.so=b||Mc,this.uk=null,y!==void 0&&(this.uk=y,b===void 0&&(this.so=fu))}Hl.prototype.copy=function(){var a=new Hl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var b={};y.duration!==void 0&&(b.duration=y.duration),y.finished!==void 0&&(b.finished=y.finished),y.easing!==void 0&&(b.easing=y.easing),a.uk=b}return a};function Cu(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Jn.Object.defineProperties(Hl.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 mn(Hl,"Default",1),fu=new mn(Hl,"Immediate",2),hh=new mn(Hl,"Bundled",3);Hl.className="AnimationTrigger",Hl.Default=Mc,Hl.Immediate=fu,Hl.Bundled=hh;function Cs(a){vi(this),this.H=null,this.Pa=new Qn,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)}Oe=Cs.prototype,Oe.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var b=a.s[y];b.Ig=null,tl(b)}a.clear(),this.Zq.length=0},Oe.Xe=function(a){this.H=a},Oe.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var b=0,E=0,x=0,z=0,ne=0,ie=this.Pa.iterator;ie.next();){var se=ie.value;se instanceof ro?x++:se instanceof $r?E++:se instanceof _r?z++:se instanceof Mo?ne++:b++}if(ie="",0<b&&(ie+=b+" Parts "),0<E&&(ie+=E+" Nodes "),0<x&&(ie+=x+" Groups "),0<z&&(ie+=z+" Links "),0<ne&&(ie+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)b=a.value,ie+=`
|
|
|
`+b.toString(),E=b.data,E!==null&&Fi(E)&&(ie+=" #"+Fi(E)),b instanceof $r?ie+=" "+mi(E):b instanceof _r&&(ie+=" "+mi(b.fromNode)+" "+mi(b.toNode));return y+" "+this.Pa.count+": "+ie},Oe.ic=function(a,y,b){if(y===void 0&&(y=null),b===void 0&&(b=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var x=it.alloc(),z=this.Pa.s,ne=z.length;ne--;){var ie=z[ne];if((E!==!0||of(ie)!==!1)&&ie.isVisible()&&(x.assign(a),Pn(x,ie.oe),ie=ie.ic(x,y,b),ie!==null&&(y!==null&&(ie=y(ie)),ie!==null&&(b===null||b(ie)))))return it.free(x),ie}return it.free(x),null},Oe.ji=function(a,y,b,E){if(y===void 0&&(y=null),b===void 0&&(b=null),E instanceof Qn||E instanceof ar||(E=new ar),this.Uh===!1)return E;var x=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(x=!0);for(var z=it.alloc(),ne=this.Pa.s,ie=ne.length;ie--;){var se=ne[ie];if((x!==!0||of(se)!==!1)&&se.isVisible()){z.assign(a),Pn(z,se.oe);var de=se;se.ji(z,y,b,E)&&(y!==null&&(de=y(de)),de===null||b!==null&&!b(de)||E.add(de))}}return it.free(z),E},Oe.Cf=function(a,y,b,E,x){if(y===void 0&&(y=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof Qn||x instanceof ar||(x=new ar),this.Uh===!1)return x;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ne=this.Pa.s,ie=ne.length;ie--;){var se=ne[ie];if((z!==!0||of(se)!==!1)&&se.isVisible()){var de=se;se.Cf(a,y,b,E,x)&&(y!==null&&(de=y(de)),de===null||b!==null&&!b(de)||x.add(de))}}return x},Oe.Nu=function(a,y,b,E,x,z,ne){if(this.Uh===!1)return x;for(var ie=this.Pa.s,se=ie.length;se--;){var de=ie[se];if((ne!==!0||of(de)!==!1)&&z(de)&&de.isVisible()){var pe=de;de.Cf(a,y,b,E,x)&&(y!==null&&(pe=y(pe)),pe===null||b!==null&&!b(pe)||x.add(pe))}}return x},Oe.og=function(a,y,b,E,x,z){if(b===void 0&&(b=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Qn||x instanceof ar)&&(z=x),x=!0),z instanceof Qn||z instanceof ar||(z=new ar),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var ie=it.alloc(),se=it.alloc(),de=this.Pa.s,pe=de.length;pe--;){var Se=de[pe];if((ne!==!0||of(Se)!==!1)&&Se.isVisible()){ie.assign(a),Pn(ie,Se.oe),se.h(a.x+y,a.y),Pn(se,Se.oe);var Le=Se;Se.og(ie,se,b,E,x,z)&&(b!==null&&(Le=b(Le)),Le===null||E!==null&&!E(Le)||z.add(Le))}}return it.free(ie),it.free(se),z},Oe.Fd=function(a,y){if(this.visible){var b=this.Pa.s,E=b.length;if(E!==0){a=Mr();for(var x=Mr(),z=0;z<E;z++){var ne=b[z];if(ne.vw=z,ne instanceof _r){if(ne.fd===!1)continue}else if(ne instanceof Mo&&ne.adornedPart!==null)continue;var ie=ne.actualBounds;ne.isVisible()&&jn(ie,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(b=a[y],Yv(b),b=b.adornments;b.next();)E=b.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<x.length;y++)Yv(x[y]);Ur(a),Ur(x)}}};function ud(a,y){var b=1;return a.pb!==1&&(b=y.globalAlpha,y.globalAlpha=b*a.pb),b}Oe.gc=function(a,y,b){if(this.visible&&this.pb!==0&&(b===void 0&&(b=!0),b||!this.isTemporary)){b=this.Pa.s;var E=b.length;if(E!==0){if(a.isTemporary)for(var x=0;x<E;x++)b[x].Gj();x=ud(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,ie=In.alloc(),se=0;se<E;se++)this.Oj(a,b[se],y,z,ne,ie,!0);if(In.free(ie),a.isTemporary)for(y=0;y<E;y++)b[y].Gj();a.globalAlpha=x}}};function Kp(a,y,b,E,x){if(a.visible&&a.pb!==0&&(x||!a.isTemporary)){x=a.Pa.s;var z=x.length;if(z!==0){var ne=ud(a,y),ie=a.Zq;ie.length=0;for(var se=b.scale,de=In.alloc(),pe=0;pe<z;pe++){var Se=x[pe];E.contains(Se)&&a.Oj(y,Se,b,ie,se,de,!1)}In.free(de),y.globalAlpha=ne}}}Oe.Oj=function(a,y,b,E,x,z,ne){if(ne&&!of(y))a.Hs(y);else{if(E!==null&&y instanceof _r&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,E=y.containingGroup;E!==null;)ne?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ne=!0,z.assign(E.tb)),E=E.containingGroup;var ie=y.actualBounds;if(E=!1,ne&&y.isVisible()){if(!z.Yc(ie)){a.Hs(y);return}E=!z.Re(ie)}E&&(a.save(),a instanceof Go?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ie.width*x>b.Oq||ie.height*x>b.Oq?y.gc(a,b):(x=y.actualBounds,z=y.naturalBounds,x.width===0||x.height===0||isNaN(x.x)||isNaN(x.y)||!y.isVisible()||(b=y.transform,y.areaBackground!==null&&(Ba(y,a,y.areaBackground,!0,!0,z,x),a.fillRect(x.x,x.y,x.width,x.height)),y.areaBackground===null&&y.background===null&&(Ba(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(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ba(y,a,y.background,!0,!1,z,x),a.fillRect(0,0,z.width/2,z.height/2),b.ws()||(y=1/(b.m11*b.m22-b.m12*b.m21),a.transform(b.m22*y,-b.m12*y,-b.m21*y,b.m11*y,y*(b.m21*b.dy-b.m22*b.dx),y*(b.m12*b.dx-b.m11*b.dy)))))),E&&(a.restore(),a.Vc(!0))}},Oe.g=function(a,y,b,E,x){var z=this.diagram;z!==null&&z.cb(oa,a,this,y,b,E,x)},Oe.oi=function(a,y,b){var E=this.Pa;if(y.Ig=this,this===null&&tl(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(b),E=this.diagram,E!==null&&(b?E.N():E.oi(y)),Gd(this,a,y),a},Oe.pc=function(a,y,b){if(!b&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,b);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(b),E.mb(a),E=this.diagram,E!==null&&(b?E.N():E.pc(y)),y.Ig=null,tl(y),a};function Gd(a,y,b){if(y=Yp(a,y,b),b instanceof ro&&b!==null&&isNaN(b.zOrder)){if(b.memberParts.count!==0){for(var E=-1,x=a.Pa.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];if(ie===b&&(y=ne,0<=E)||0>E&&ie.containingGroup===b&&(E=ne,0<=y))break}!(0>E)&&E<y&&(x=a.Pa,x.mb(y),x.Gb(E,b))}y=b.containingGroup,y!==null&&Gd(a,-1,y)}b.svg!==null&&b.svg.remove()}function Yp(a,y,b){var E=b.zOrder;if(isNaN(E))return y;a=a.Pa;var x=a.count;if(1>=x)return y;if(0>y&&(y=a.indexOf(b)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var ie=y+1,se=NaN;ie<x&&(se=a.M(ie).zOrder,!!isNaN(se));)ie++;if(!isNaN(ne)&&ne>E)for(;;){if(z===-1||ne<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,b),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(se)&&se<E)for(;;){if(ie===x||se>=E){if(ie--,ie===y)break;return a.mb(y),a.Gb(ie,b),ie}for(se=NaN;++ie<x&&(se=a.M(ie).zOrder,isNaN(se)););}return y}Jn.Object.defineProperties(Cs.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 b=this.diagram;if(b!==null)for(y===""&&Lt("Cannot rename default Layer to: "+a),b=b.layers;b.next();)b.value.name===a&&Lt("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)&&kr(a,"0 <= value <= 1",Cs,"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))}}}),Cs.prototype.findObjectsNear=Cs.prototype.og,Cs.prototype.findObjectsIn=Cs.prototype.Cf,Cs.prototype.findObjectsAt=Cs.prototype.ji,Cs.prototype.findObjectAt=Cs.prototype.ic,Cs.className="Layer";function Dn(a,y){if(ag||(gl(),ag=!0),vi(this),Jc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Fa){var b=this,E=function(){b.removeEventListener(ur.document,"DOMContentLoaded",E,!1),b.setRTL()};ur.document.body!==null?this.setRTL():b.addEventListener(ur.document,"DOMContentLoaded",E,!1)}this.ol=null,Mf.add("Model",Jo);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 ie=z.change;z.modelChange===""&&ie===oa&&ne.updateDataBindings(z.object,z.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(z){x.partManager.doModelChanged(z)},this.hu=this.ku=null,Xp(this),this.model=wy(),this.Wg=!0,$p(this),this.layout=new Pa,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 Ff,a!==void 0&&(typeof a=="string"||ur.Element&&a instanceof Element?qp(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var xd,Jc;function Xp(a){a.Yd=new el,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Qn,a.pj=new An,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new it(NaN,NaN).freeze(),a.du=new it(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new it(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Mi,a.zu=new it(NaN,NaN).freeze(),a.ut=new In(NaN,NaN,NaN,NaN).freeze(),a.rj=new no(0,0,0,0).freeze(),a.sj=Ad,a.nu=!1,a.Zt=null,a.fu=null,a.yh=pl,a.zk=ns,a.Fg=pl,a.pq=ns,a.yt=ho,a.Bt=ho,a.Fc=!0,a.pn=!1,a.De=new ar,a.Eh=new An,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new no(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Es,a.bq.diagram=a,a.Qg=new Es,a.Qg.diagram=a,a.cj=new Es,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,jg(a),a.ai=new ar,a.Ht=!0,a.uu=Fc,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 An,a.Xn=new Qn,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 no(5).freeze(),a.Hw=new ar().freeze(),a.Nt=999999999,a.nw=new ar().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 ar,a.ow=new ar,a.Xh=null,a.aw=new an(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new it,bounds:new In,Py:new an,bA:new an,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new In(NaN,NaN,NaN,NaN).freeze(),a.wo=new an(NaN,NaN).freeze(),a.Sp=new In(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new An;var y=new $r,b=new Sa;b.bind(new ss("text","",mi)),y.add(b),a.ny=y,a.Lg.add("",y),y=new $r,b=new Sa,b.stroke="brown",b.bind(new ss("text","",mi)),y.add(b),a.Lg.add("Comment",y),y=new $r,y.selectable=!1,y.avoidable=!1,b=new oo,b.figure="Ellipse",b.fill="black",b.stroke=null,b.desiredSize=new an(3,3).ja(),y.add(b),a.Lg.add("LinkLabel",y),a.Yi=new An,y=new ro,y.selectionObjectName="GROUPPANEL",y.type=Tr.Vertical,b=new Sa,b.font="bold 12pt sans-serif",b.bind(new ss("text","",mi)),y.add(b),b=new Tr(Tr.Auto),b.name="GROUPPANEL";var E=new oo;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",b.add(E),E=new ru,E.padding=new no(5,5,5,5).ja(),b.add(E),y.add(b),a.ly=y,a.Yi.add("",y),a.Kh=new An,y=new _r,b=new oo,b.isPanelMain=!0,y.add(b),b=new oo,b.toArrow="Standard",b.fill="black",b.stroke=null,b.strokeWidth=0,y.add(b),a.my=y,a.Kh.add("",y),y=new _r,b=new oo,b.isPanelMain=!0,b.stroke="brown",y.add(b),a.Kh.add("Comment",y),y=new Mo,y.type=Tr.Auto,b=new oo,b.fill=null,b.stroke="dodgerblue",b.strokeWidth=3,y.add(b),b=new ru,b.margin=new no(1.5,1.5,1.5,1.5).ja(),y.add(b),a.St=y,a.wt=y,y=new Mo,y.type=Tr.Link,b=new oo,b.isPanelMain=!0,b.fill=null,b.stroke="dodgerblue",b.strokeWidth=3,y.add(b),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Jo,a.toolManager=new aa,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=Jp(),a.eq=null,a.fq=ai,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 it,a.zy=500,a.wp=new it,a.wq=!1}Dn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Yd=null,Xd="",Qp(this,!1),this.Xn.clear(),pg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Qp(a,y){a.animationManager.Cc(!0),a.Hw=new ar().freeze(),a.nw=new ar().freeze();var b=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(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 ie=a.Wa.s[y].parts;ie.next();){var se=ie.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(),pg(),a.Og.clear(),Vi=[],x!==null&&(a.add(x),a.partManager.parts.remove(x)),E&&(a.skipsUndoManager=b),z}function Jp(){return null}Dn.prototype.reset=function(){this.clear(),this.vb=!0,Xp(this),Oc(this),this.Wg=!0,$p(this),this.layout=new Pa,this.Wg=!1,this.model=wy(),this.model.undoManager=new na,this.vb=this.rn=!1,this.N()},Dn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ur.document.body);var y=Fr("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 b="reverse";0<y.scrollLeft?b="default":(y.scrollLeft=1,y.scrollLeft===0&&(b="negative")),a.removeChild(y),this.bu=b},Dn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ur.document.body);var y=0;if(Fa){var b=vp;y=xd,b===null&&(b=vp=Fr("p"),b.style.width="100%",b.style.height="200px",b.style.boxSizing="content-box",y=xd=Fr("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(b)),y.style.overflow="hidden",a.appendChild(y);var E=b.offsetWidth;y.style.overflow="scroll",b=b.offsetWidth,E===b&&(b=y.clientWidth),a.removeChild(y),y=E-b,y!==0||Ci||(y=11)}this.Db=y,this.Gw=!0},Dn.prototype.qb=function(a){a.classType===Dn&&(this.autoScale=a)},Dn.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 b=this.Wa.iterator;b.next();)y+=`
|
|
|
`+b.value.toString(a-1);return y};function qp(a,y){if(Fa){if(y!=null||Lt("Diagram setup requires an argument DIV."),a.Ka!==null&&Lt("Diagram has already completed setup."),typeof y=="string"?a.Ka=ur.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Lt("No DIV or DIV id supplied: "+y),a.Ka===null&&Lt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Lt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ur.ResizeObserver){var b=wi(function(){a.$b()},250);a.ol=new ur.ResizeObserver(function(){b()}),a.ol.observe(a.Ka)}ur.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ur.go;var x=new nu(a);if(x.style!==void 0&&(x.style.position="absolute",x.style.top="0px",x.style.left="0px",ur.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,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),sp(a,a.Aa,a.ya),a.Ka.insertBefore(x.Oa,a.Ka.firstChild),x=new nu(null),x.width=1,x.height=1,a.jw=x,a.oy=x.context,Fa){x=Fr("div");var z=Fr("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=Pf,x.addEventListener("pointerdown",np),x.H=a,x.uy=!0,x.vy=!0,a.ku=x,a.hu=z}a.hk=wi(function(){a.Yh=null,a.N()},300),a.Ov=wi(function(){tp(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var ie=$l(a,ne,!0);ie.bubbles=!0;var se=0,de=0;ie.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(se=0<ne.deltaX?1:-1),ne.deltaY!==0&&(de=0<ne.deltaY?1:-1),ie.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),ie.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-se:-de):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(ie.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),Pu(ie,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,$l(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var ie=a.Yt;ie[ne.pointerId]===void 0&&(ie[ne.pointerId]=ne),ie=a.oj;var se=!1;if(ie[0]===null||ie[0].pointerId!==ne.pointerId&&ie[0].pointerType===ne.pointerType)if(ie[1]!==null&&ie[1].pointerId===ne.pointerId)ie[1]=ne,se=!0;else if(ie[0]===null)ie[0]=ne;else if(ie[1]===null)ie[1]=ne,se=!0;else{ne.preventDefault();return}else ie[0]=ne;(ie=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var de=se;se=Af(a,ne,!0,!1,!0,de),Vd(a,ne,se),se.targetDiagram=op(ne,ne.target),se.targetObject=null,de||se.clone(a.bq),de=a.uw,ie=ie?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(de.x-ne.screenX)>ie||Math.abs(de.y-ne.screenY)>ie)?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():Pu(se,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var ie=a.oj;if(ie[0]===null||ie[0].pointerId!==ne.pointerId&&ie[0].pointerType===ne.pointerType){if(ie[1]!==null&&ie[1].pointerId===ne.pointerId){ie[1]=ne;return}if(ie[0]===null)ie[0]=ne;else return}else ie[0]=ne;if(ie[0].pointerId===ne.pointerId){ie=Af(a,ne,!1,!1,!1,ie[1]!==null);var se=ur.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),ie.targetDiagram=de,Vd(a,pe,ie),ie.targetObject=null,a.doMouseMove(),Pu(ie,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var ie=ne.pointerType==="touch"||ne.pointerType==="pen",se=a.Yt;if(ie&&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=Af(a,ne,!1,!0,!0,!1);var de=ur.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 Dn&&de.H!==a&&Vd(de.H,ne,se),de===null&&(de=ne.target),Vd(a,ne,se),se.clickCount=a.yq,se.targetDiagram=op(ne,de),se.targetObject=null,a.doMouseUp(),Pu(se,ne),ie&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var ie=a.Yt;ie[ne.pointerId]&&delete ie[ne.pointerId],ie=a.oj,ie[0]!==null&&ie[0].pointerId===ne.pointerId&&(ie[0]=null),ie[1]!==null&&ie[1].pointerId===ne.pointerId&&(ie[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var ie=a.oj;ie[0]!==null&&ie[0].pointerId===ne.pointerId?(ie[0]=null,a.wq=!1):ie[1]!==null&&ie[1].pointerId===ne.pointerId&&(ie[1]=null)},a.Vp=E.Z["d"+qd[1]+qd[2]+"wI"+bh.slice(1,5)]["b"+EE.slice(1,y)](E.Z,tf,y,y),E.Vc(!0),Vh(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Dn.prototype.addEventListener=function(a,y,b,E){a.addEventListener(y,b,{capture:E,passive:!1})},Dn.prototype.removeEventListener=function(a,y,b,E){a.removeEventListener(y,b,{capture:E})};function Vh(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(b){return b.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(b){return b.preventDefault(),!1},!1),a.addEventListener(ur,"resize",a.Ov,!1)}function zl(a){30<a.Sq&&(a.Yh=1)}function jd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Pi&&Pi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Dn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ur.devicePixelRatio||1},Dn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Dn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Dn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Dn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Dn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Dn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Dn.prototype.doFocus=function(){this.focus()},Dn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ur.scrollX||ur.pageXOffset,y=ur.scrollY||ur.pageYOffset;this.ta.focus(),ur.scrollTo(a,y)}},Dn.prototype.Oy=function(){this.H.R("GainedFocus")},Dn.prototype.Ny=function(){this.H.R("LostFocus")};function tp(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var b=a.gf?a.Db:0,E=a.Be?a.Db:0,x=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==x&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+b||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===pl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function $p(a){var y=new Cs;y.name="Background",a.Al(y),y=new Cs,y.name="",a.Al(y),y=new Cs,y.name="Foreground",a.Al(y),y=new Cs,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Cs,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Cs,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function eg(a){var y=new Tr(Tr.Grid);y.name="GRID";var b=new oo;return b.figure="LineH",b.stroke="lightgray",b.strokeWidth=.5,b.interval=1,y.add(b),b=new oo,b.figure="LineH",b.stroke="gray",b.strokeWidth=.5,b.interval=5,y.add(b),b=new oo,b.figure="LineH",b.stroke="gray",b.strokeWidth=1,b.interval=10,y.add(b),b=new oo,b.figure="LineV",b.stroke="lightgray",b.strokeWidth=.5,b.interval=1,y.add(b),b=new oo,b.figure="LineV",b.stroke="gray",b.strokeWidth=.5,b.interval=5,y.add(b),b=new oo,b.figure="LineV",b.stroke="gray",b.strokeWidth=1,b.interval=10,y.add(b),b=new Ai,b.add(y),b.layerName="Grid",b.zOrder=0,b.isInDocumentBounds=!1,b.isAnimated=!1,b.pickable=!1,b.locationObjectName="GRID",a.add(b),a.partManager.parts.remove(b),y.visible=!1,y}function Pf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):gh(this.H)}function np(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):gh(this.H)}Dn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,b=this.hu;this.qr=!0;var E=this.documentBounds,x=this.viewportBounds,z=this.rj,ne=E.x-z.left,ie=E.y-z.top,se=E.width+z.left+z.right,de=E.height+z.top+z.bottom,pe=E.right+z.right;z=E.bottom+z.bottom;var Se=x.x;E=x.y;var Le=x.width,Me=x.height,ze=x.right,qe=x.bottom;x=this.scale;var Ct=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ct=Ct+a.scrollWidth-a.clientWidth;break;case"reverse":Ct=a.scrollWidth-Ct-a.clientWidth}var vt=Ct;Le<se||Me<de?(Ct=it.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==vt&&(Ct.x=vt/x+ne,this.ju=vt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ct.y=a.scrollTop/x+ie,this.lu=a.scrollTop),this.position=Ct,it.free(Ct),this.Ee=this.qr=!1):(Ct=it.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<Se&&(this.position=Ct.h(vt+ne,this.position.y)),pe>ze&&(this.position=Ct.h(-(y.scrollWidth-this.Aa)+vt-this.Aa/x+pe,this.position.y))),a.vy&&this.allowVerticalScroll&&(ie<E&&(this.position=Ct.h(this.position.x,a.scrollTop+ie)),z>qe&&(this.position=Ct.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/x+z))),it.free(Ct),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,x=this.viewportBounds,pe=E.right,ze=x.right,z=E.bottom,qe=x.bottom,ne=E.x,Se=x.x,ie=E.y,E=x.y,Le>=se&&ne>=Se&&pe<=ze&&(b.style.width="1px"),Me>=de&&ie>=E&&z<=qe&&(b.style.height="1px"))}},Dn.prototype.computeBounds=function(a){return a===void 0&&(a=new In),Ps(this),rp(this,a)};function rp(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var b=!0,E=a.Wa.s,x=E.length,z=0;z<x;z++){var ne=E[z];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var ie=ne.length,se=0;se<ie;se++){var de=ne[se];de.isInDocumentBounds&&de.isVisible()&&(de=de.actualBounds,de.w()&&(b?(b=!1,y.assign(de)):y.ed(de)))}}}return b&&y.h(0,0,0,0),y.Co(a.yb),y}Dn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var b=null;if(Fn(a))for(var E=0;E<a.length;E++){var x=a[E];!y&&x instanceof _r||(x.Va(),b===null?b=x.actualBounds.copy():b.ed(x.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof _r||(E.Va(),b===null?b=E.actualBounds.copy():b.ed(E.actualBounds));return b===null?new In(NaN,NaN,0,0):b};function qu(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var b=a.initialPosition;if(b.w()){a.vb=!1,a.position=b;return}b=it.alloc(),b.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=In.allocAt(0,0,E.width,E.height);var x=it.alloc();x.xi(E,a.initialViewportSpot),x.h(b.x-x.x,b.y-x.y),a.position=x,In.free(E),it.free(x),it.free(b)}b=a.yh,y&&a.Fg!==pl&&(b=a.Fg);var z=b!==pl?fh(a,b):a.scale;b=a.pa.x,E=a.pa.y,x=a.Aa/z;var ne=a.ya/z,ie=a.zk,se=a.pq;y&&!ie.sb()&&(se.sb()||se.Xb())&&(ie=se.Xb()?Ji:se),ip(a,a.documentBounds,x,ne,ie,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,tn.B(z.x,b)&&tn.B(z.y,E)&&tn.B(z.width,x)&&tn.B(z.height,ne)||a.onViewportBoundsChanged(new In(b,E,x,ne),z,y,!1)}}function fh(a,y){var b=a.Pp;if(a.ta===null)return b;a.Va();var E=a.documentBounds;if(!E.w())return b;var x=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),ie=z/x,se=ne/E;return y===zu?(y=Math.min(se,ie),y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===cd?(y=se>ie?(ne-a.Db)/E:(z-a.Db)/x,y>b&&(y=b),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Dn.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ad,this.scale=fh(this,zu),a!==Ad&&(qu(this,!1),ip(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Oe=Dn.prototype,Oe.BA=function(a,y){y===void 0&&(y=zu);var b=a.width,E=a.height;if(!(b===0||E===0||isNaN(b)&&isNaN(E))){var x=1;if(y===zu||y===cd)if(isNaN(b))x=this.viewportBounds.height*this.scale/E;else if(isNaN(E))x=this.viewportBounds.width*this.scale/b;else{x=this.Aa;var z=this.ya;x=y===cd?z/E>x/b?(z-(this.Be?this.Db:0))/E:(x-(this.gf?this.Db:0))/b:Math.min(z/E,x/b)}this.scale=x,this.position=new it(a.x,a.y)}},Oe.Jy=function(a,y){this.Va();var b=this.documentBounds,E=this.viewportBounds;this.position=new it(b.x+(a.x*b.width+a.offsetX)-(y.x*E.width-y.offsetX),b.y+(a.y*b.height+a.offsetY)-(y.y*E.height-y.offsetY))},Oe.zz=function(a){if(a instanceof rn){this.eq=a;var y=it.alloc();this.fq=this.op(a.ga(ho,y)),it.free(y)}else this.eq=null,this.fq=ai};function ip(a,y,b,E,x,z){var ne=it.allocAt(a.pa.x,a.pa.y),ie=ne.x,se=ne.y;if(a.eq!==null){var de=it.alloc();de=a.eq.ga(ho,de),ie=de.x-a.fq.x/a.scale,se=de.y-a.fq.y/a.scale,x=Qi,it.free(de)}(z||a.scrollMode===Ad)&&(x.sb()&&(b>y.width&&(ie=y.x+(x.x*y.width+x.offsetX)-(x.x*b-x.offsetX)),E>y.height&&(se=y.y+(x.y*y.height+x.offsetY)-(x.y*E-x.offsetY))),x=a.rj,z=b-y.width,b<y.width+x.left+x.right?(ie=Math.min(ie+b/2,y.right+Math.max(z,x.right)-b/2),ie=Math.max(ie,y.left-Math.max(z,x.left)+b/2),ie-=b/2):ie>y.left?ie=y.left:ie<y.right-b&&(ie=y.right-b),b=E-y.height,E<y.height+x.top+x.bottom?(se=Math.min(se+E/2,y.bottom+Math.max(b,x.bottom)-E/2),se=Math.max(se,y.top-Math.max(b,x.top)+E/2),se-=E/2):se>y.top?se=y.top:se<y.bottom-E&&(se=y.bottom-E)),ne.x=isFinite(ie)?ie:-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),zd(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Oc(a),it.free(ne)}Oe.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=qc(this,a,function(b){return b.part},function(b){return b.canSelect()}),a instanceof Ai)return a}else if(a=qc(this,a,function(b){return b.part}),a instanceof Ai)return a;return null},Oe.ic=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null),Ps(this);for(var E=this.Wa.iteratorBackwards;E.next();){var x=E.value;if(x.visible&&(x=x.ic(a,y,b),x!==null))return x}return null};function qc(a,y,b,E){for(b===void 0&&(b=null),E===void 0&&(E=null),Ps(a),a=a.Wa.iteratorBackwards;a.next();){var x=a.value;if(x.visible&&!x.isTemporary&&(x=x.ic(y,b,E),x!==null))return x}return null}Oe.lz=function(a,y,b){return y===void 0&&(y=!0),Wh(this,a,function(E){return E.part},y?function(E){return E instanceof Ai&&E.canSelect()}:null,b)};function Wh(a,y,b,E,x){for(b===void 0&&(b=null),E===void 0&&(E=null),x instanceof Qn||x instanceof ar||(x=new ar),Ps(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,b,E,x)}return x}Oe.ji=function(a,y,b,E){y===void 0&&(y=null),b===void 0&&(b=null),E instanceof Qn||E instanceof ar||(E=new ar),Ps(this);for(var x=this.Wa.iteratorBackwards;x.next();){var z=x.value;z.visible&&z.ji(a,y,b,E)}return E},Oe.ux=function(a,y,b,E){return y===void 0&&(y=!1),b===void 0&&(b=!0),Tf(this,a,function(x){return x instanceof Ai&&(!b||x.canSelect())},y,E)},Oe.Cf=function(a,y,b,E,x){y===void 0&&(y=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof Qn||x instanceof ar||(x=new ar),Ps(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,b,E,x)}return x},Oe.Nu=function(a,y,b,E,x,z){var ne=new ar;Ps(this);for(var ie=this.Wa.iteratorBackwards;ie.next();){var se=ie.value;se.visible&&se.Nu(a,y,b,E,ne,x,z)}return ne};function Tf(a,y,b,E,x){var z=null;for(z===void 0&&(z=null),b===void 0&&(b=null),E===void 0&&(E=!1),x instanceof Qn||x instanceof ar||(x=new ar),Ps(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,b,E,x)}return x}Oe.mz=function(a,y,b,E,x){return b===void 0&&(b=!0),E===void 0&&(E=!0),Zh(this,a,y,function(z){return z instanceof Ai&&(!E||z.canSelect())},b,x)},Oe.og=function(a,y,b,E,x,z){b===void 0&&(b=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Qn||x instanceof ar)&&(z=x),x=!0),z instanceof Qn||z instanceof ar||(z=new ar),Ps(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var ie=ne.value;ie.visible&&ie.og(a,y,b,E,x,z)}return z};function Zh(a,y,b,E,x,z){var ne=null;for(ne===void 0&&(ne=null),E===void 0&&(E=null),x===void 0&&(x=!0),x!==!1&&x!==!0&&((x instanceof Qn||x instanceof ar)&&(z=x),x=!0),z instanceof Qn||z instanceof ar||(z=new ar),Ps(a),a=a.Wa.iteratorBackwards;a.next();){var ie=a.value;ie.visible&&!ie.isTemporary&&ie.og(y,b,ne,E,x,z)}return z}Dn.prototype.acceptEvent=function(a){return $l(this,a,a instanceof MouseEvent)};function $l(a,y,b){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,b?Vd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Ci&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=op(y,y.target),E.targetObject=null,E}function op(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 Af(a,y,b,E,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,Ci&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=b,ne.up=E,ne.handled=!1,ne.bubbles=x,ne.isMultiTouch=z,ne}function Pu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Dn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var b=$l(y,a,!1);switch(b.key=String.fromCharCode(a.which),b.down=!0,a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del";break;case 48:b.key="0";break;case 187:case 61:case 107:b.key="Add";break;case 189:case 173:case 109:b.key="Subtract";break;case 27:b.key="Esc"}return y.doKeyDown(),Pu(b,a)},Dn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=$l(y,a,!1);switch(b.key=String.fromCharCode(a.which),b.up=!0,a.which){case 8:b.key="Backspace";break;case 33:b.key="PageUp";break;case 34:b.key="PageDown";break;case 35:b.key="End";break;case 36:b.key="Home";break;case 37:b.key="Left";break;case 38:b.key="Up";break;case 39:b.key="Right";break;case 40:b.key="Down";break;case 45:b.key="Insert";break;case 46:b.key="Del"}return y.doKeyUp(),Pu(b,a)},Dn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=$l(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(b),y.currentTool.standardMouseOver(),Pu(b,a)},Dn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var b=$l(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(b),Pu(b,a)},Dn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new it(0,0);var b=y.getBoundingClientRect();return y=a.clientX-this.Aa/b.width*b.left,a=a.clientY-this.ya/b.height*b.top,this.Ab!==null?Pn(new it(y,a),this.Ab):new it(y,a)};function Vd(a,y,b){var E=a.ta,x=a.Aa,z=a.ya,ne=0,ie=0;E!==null&&(E=E.getBoundingClientRect(),ne=y.clientX-x/E.width*E.left,ie=y.clientY-z/E.height*E.top),b.viewPoint.h(ne,ie),a.Ab!==null?(y=it.allocAt(ne,ie),a.Ab.Cd(y),b.documentPoint.assign(y),it.free(y)):b.documentPoint.h(ne,ie)}function Nf(a,y,b){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),b.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}Dn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function tg(a){a.ld||Ps(a),a.Va()}Dn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Oe=Dn.prototype,Oe.Pz=function(){return this.kg},Oe.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,b=y.isEnabled;y.Cc(),y.isEnabled=!1,Hu(this),this.hf=!1,this.du=new it(NaN,NaN),y.isEnabled=b,this.ld=!0;var E=this;a!==null&&ki(function(){E.ld=!1,ms(y,"Model"),a(E)},1)},Oe.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ur.requestAnimationFrame(function(){y.kg&&y.bd()})}},Oe.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Hu(this))};function wd(a,y,b){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||gh(a)||(y&&Ps(a),b&&qu(a,!1))}function Hu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var b=a.animationManager,E=a.Xn;if(!b.isAnimating&&E.length!==0){for(var x=E.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];Ut(ie,!1),ie.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(se){se.Nv()}),E.clear()),x=E=!1,b.defaultAnimation.isAnimating&&(x=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),b.zb||tp(a),wd(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Ec(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ps(a),z=!1,(!a.hf||a.xh)&&(a.hf?pp(a,!a.Jk):(a.Ea("Initial Layout"),b.isEnabled===!1&&b.Cc(),pp(a,!1)),z=!0),a.Jk=!1,Ps(a),a.ou||tg(a),wd(a,!0,!1),ne=!1,z?(b=In.alloc(),b.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,ap(a)),a.R("LayoutCompleted"),wd(a,!0,!1),In.free(b)):b.Ok&&b.Qw&&(a.Fg!==pl?a.scale=fh(a,a.Fg):a.yh!==pl?a.scale=fh(a,a.yh):(b=a.initialScale,isFinite(b)&&0<b&&(a.scale=b)),qu(a,!0)),z&&ne&&a.eb("Initial Layout"),Ps(a),y||a.gc(a.ib),x&&(a.skipsUndoManager=E),a.ld=!1}}function ap(a){if(a.Fg!==pl)a.scale=fh(a,a.Fg);else if(a.yh!==pl)a.scale=fh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}qu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Ec(a)}function Ps(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var b=a.De.iterator;if(b===null||a.De.count===0)break;a.De=new ar,a.Nv(b,a.De)}a.nodes.each(function(E){E instanceof ro&&E.U&65536&&(E.U=E.U^65536)})}}Oe.Nv=function(a,y){for(a.reset();a.next();){var b=a.value;!b.Zc()||b instanceof ro||(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))}for(a.reset();a.next();)b=a.value,b instanceof ro&&b.isVisible()&&Kh(this,b);for(a.reset();a.next();)b=a.value,b instanceof _r&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b));for(a.reset();a.next();)b=a.value,b instanceof Mo&&b.isVisible()&&(b.si()?(b.measure(1/0,1/0),b.arrange()):y.add(b))};function Kh(a,y){for(var b=Mr(),E=Mr(),x=y.memberParts;x.next();){var z=x.value;z.isVisible()&&(z instanceof ro?(Nt(z)||Zt(z)||rf(z))&&Kh(a,z):z instanceof _r?z.fromNode===y||z.toNode===y?E.push(z):b.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=b.length,x=0;x<a;x++)z=b[x],z.measure(1/0,1/0),z.arrange();for(Ur(b),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)b=E[y],b.measure(1/0,1/0),b.arrange();Ur(E)}Oe.Fd=function(a,y,b,E){if(this.vd||this.animationManager.isAnimating)for(var x=0;x<y;x++)a[x].Fd(b,E)},Oe.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Lt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Pd(this);var b=this.Aa,E=this.ya;if(a.Gv.resize(b,E,b,E),b=this.Wa.s,E=b.length,this.Fd(b,E,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,ie=this.Ab;for(ie.reset(),x!==1&&ie.scale(x),y.x===0&&y.y===0||ie.translate(-z,-ne),a.ti=null,Ha(a,ie.m11,ie.m12,ie.m21,ie.m22,ie.dx,ie.dy),this.pb!==1&&(a.globalAlpha=this.pb),Cd(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)b[y].gc(a,this);a=!1,this.Yf?Jd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Mi.prototype.Cd=Mi.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(b=new Date,Pd(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,x=y.length,this.Fd(y,x,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ne=this.Mb,ie=this.pa;var se=this.Ca,de=Math.round(ie.x*se)/se,pe=Math.round(ie.y*se)/se;for(se!==1&&z.scale(se),ie.x===0&&ie.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),Cd(this,a),ie=0;ie<x;ie++)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[ie].gc(a,this);if(y=!1,this.Yf?Jd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Mi.prototype.Cd=Mi.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+b,E=Pi&&Pi.nx,b=this.zw,E||this.Yh===null){for(b[this.Tq]=y,this.Tq=(this.Tq+1)%b.length,x=y=0;x<b.length;x++)y+=b[x];this.Sq=y/b.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<b.length;E++)a.fillText(b[E].toString(),20,150+ +(20*E))}}};function Lf(a,y,b,E,x,z,ne,ie,se,de){if(a.Ka!==null){a.ta===null&&Lt("No canvas specified"),ne===void 0&&(ne=null),ie===void 0&&(ie=null),se===void 0&&(se=!1),de===void 0&&(de=!1),Pd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var pe=a.Ca;a.Ca=x;var Se=a.Wa.s,Le=Se.length;try{var Me=new In(z.x,z.y,E.width/x,E.height/x),ze=Me.copy();ze.Co(b),Ec(a,ze),Ps(a),a.Fd(Se,Le,a,Me),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),ie!==null&&ie!==""&&(y.fillStyle=ie,y.ox(0,0,E.width,E.height));var qe=a.Mb;y.scale(qe,qe);var Ct=Mi.alloc();Ct.reset(),Ct.translate(b.left,b.top),Ct.scale(x),z.x===0&&z.y===0||Ct.translate(-z.x,-z.y),y.setTransform(Ct.m11,Ct.m12,Ct.m21,Ct.m22,Ct.dx,Ct.dy),y.yc(),y instanceof Go&&Ha(y,Ct.m11,Ct.m12,Ct.m21,Ct.m22,Ct.dx,Ct.dy),Mi.free(Ct),Cd(a,y),y.globalAlpha=a.pb;var vt=a.Qj("Grid");if(ne){var Dt=new ar,Bt=ne.iterator;for(Bt.reset();Bt.next();){var Gt=Bt.value;Gt instanceof Ai&&(de||Gt.layer!==vt)&&(Gt.Gj(),Dt.add(Gt))}for(de=0;de<Le;de++)Kp(Se[de],y,a,Dt,se);Dt.each(function(Rn){return Rn.Gj()})}else for(Dt=0;Dt<Le;Dt++){var $t=Se[Dt];$t===vt?de&&$t.gc(y,a,!0):$t.gc(y,a,se)}a.$i=!1,a.Yf&&Jd(a.Yf,a)&&a.Vp()}finally{a.Ca=pe,a.ib.Vc(!0),a.vd=!0,a.Fd(Se,Le,a,a.viewportBounds),Ec(a),a.ib instanceof Go&&(a.ib.Nj.PA(),a.redraw())}}}Oe.Gf=function(a){return this.Rg[a]},Oe.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Oe.Tx=function(){this.Rg=new qr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Ci||on),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Cd(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Oe.Ql=function(a){return this.on[a]},Oe.sA=function(a,y){this.on[a]=y},Oe.Sx=function(){this.on=new qr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Oe.set=function(a){return Object.assign(this,a),this},Oe.Du=function(a){return this.nm(a)},Oe.nm=function(a){return ph(this,a),this};function ph(a,y){var b=a instanceof Tr,E=a instanceof Dn,x;for(x in y){x===""&&Lt("Setting properties requires non-empty property names");var z=a,ne=x;if(b||E){var ie=x.indexOf(".");if(0<ie){var se=x.substring(0,ie);b?z=a.fb(se):(z=a[se],z==null&&(z=a.toolManager[se])),Xt(z)?ne=x.substr(ie+1):Lt("Unable to find object named: "+se+" in "+a.toString()+" when trying to set property: "+x)}}if(ne[0]!=="_"&&!Qr(z,ne))if(E&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(E&&ne==="Changed"){a.Pe(y[ne]);continue}else if(E&&Qr(a.toolManager,ne))z=a.toolManager;else if(E&&yh(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof Ei&&ne==="Changed"){a.Pe(y[ne]);continue}else Lt('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[x],ne[0]==="_"&&z instanceof rn&&z.Vw(ne)}}Oe.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new An,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Oe.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")},Dn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var b=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Sh&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=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))*E&&0<Math.max(0,z-x)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=In.alloc(),vh(this,this.computeBounds(E)),In.free(E)),E=this.ta,E===null||E instanceof ra)))){var ne=this.Mb;x=this.Aa*ne;var ie=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!==ie&&(se.height=ie),a.clearRect(0,0,x,ie),se=190*ne;var de=70*ne,pe=Math.max(z,0),Se=Math.max(y,0),Le=Math.floor(x-pe),Me=Math.floor(ie-Se);a.drawImage(E.Oa,pe,Se,Le,Me,0,0,Le,Me),Jd(this.Yf,this)&&a.clearRect(0,0,se,de),E=Mr(),a=Mr(),Me=Math.abs(z),Le=Math.abs(y);var ze=pe===0?0:x-Me;pe=it.allocAt(ze,0),Me=it.allocAt(Me+ze,ie),a.push(new In(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y)));var qe=this.Ab;if(qe.reset(),qe.scale(ne,ne),this.Ca!==1&&qe.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&qe.translate(-ne.x,-ne.y),Pn(pe,qe),Pn(Me,qe),E.push(new In(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),ze=Se===0?0:ie-Le,pe.h(0,ze),Me.h(x,Le+ze),a.push(new In(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),Pn(pe,qe),Pn(Me,qe),E.push(new In(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),Jd(this.Yf,this)&&(x=0<z?0:-z,ie=0<y?0:-y,pe.h(x,ie),Me.h(se+x,de+ie),a.push(new In(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y))),Pn(pe,qe),Pn(Me,qe),E.push(new In(Math.min(pe.x,Me.x),Math.min(pe.y,Me.y),Math.abs(pe.x-Me.x),Math.abs(pe.y-Me.y)))),it.free(pe),it.free(Me),wd(this,!1,!0),this.Ka===null&&Lt("No div specified"),this.ta===null&&Lt("No canvas specified"),!this.animationManager.zb&&(x=this.ib,this.Fc)){for(Pd(this),ie=this.Mb,x.setTransform(1,0,0,1,0,0),x.clearRect(0,0,this.Aa*ie,this.ya*ie),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(ie,0,0,ie,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),Cd(this,x),x.globalAlpha=this.pb,ie=0;ie<z;ie++)if(ne=y[ie],se=E,ne.visible&&ne.pb!==0){de=ud(ne,x),Se=ne.Zq,Se.length=0,pe=this.scale,Le=In.alloc(),Me=ne.Pa.s,qe=Me.length,ze=se.length;for(var Ct=0;Ct<qe;Ct++){var vt=Me[Ct],Dt=jf(vt,vt.actualBounds);e:{for(var Bt=2/pe,Gt=4/pe,$t=0;$t<ze;$t++){var Rn=se[$t];if(Rn.width!==0&&Rn.height!==0&&Dt.Vu(Rn.x-Bt,Rn.y-Bt,Rn.width+Gt,Rn.height+Gt)){Dt=!0;break e}}Dt=!1}Dt&&ne.Oj(x,vt,this,Se,pe,Le,!0)}In.free(Le),x.globalAlpha=de}x.restore(),x.Vc(!0),this.Yf&&Jd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Ur(E),Ur(a),this.ld=!1}}else this.bd();b&&(zl(this),this.bd(),jd(this,!0))}else b?(zl(this),this.bd(),jd(this,!0)):this.bd()}};function Pd(a){a.pn!==!1&&(a.pn=!1,sp(a,a.Aa,a.ya))}function sp(a,y,b){Oc(a);var E=a.Mb;a.ta.resize(y*E,b*E,y,b)&&(a.Fc=!0,a.ib.Vc(!0))}function gh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var b=a.Aa,E=a.ya,x=a.Ka,z=!1,ne=a.gf?a.Db:0,ie=a.Be?a.Db:0,se=x.clientWidth||b+ne,de=x.clientHeight||E+ie,pe=a.viewportBounds;x=pe.x;var Se=pe.y,Le=pe.width,Me=pe.height;if((se!==b+ne||de!==E+ie)&&(a.gf=!1,a.Be=!1,ie=ne=0,a.Aa=se,a.ya=de,z=a.pn=!0,Oc(a)),!a.hf||!a.viewportBounds.w())return!0;var ze=a.ku,qe=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ct=a.documentBounds,vt=0,Dt=0,Bt=0,Gt=0,$t=pe.width,Rn=pe.height,Jr=a.rj;a.contentAlignment.sb()?(Ct.width>$t&&(vt=Jr.left,Dt=Jr.right),Ct.height>Rn&&(Bt=Jr.top,Gt=Jr.bottom)):(vt=Jr.left,Dt=Jr.right,Bt=Jr.top,Gt=Jr.bottom);var gi=Ct.width+vt+Dt,di=Ct.height+Bt+Gt;Jr=a.scale;var Br=gi>se/Jr,gr=di>de/Jr;if(!(z||a.gf||a.Be||Br||gr))return!0;vt=Ct.x-vt,se=pe.x,Dt=Ct.right+Dt,de=pe.right+ne,Bt=Ct.y-Bt;var to=pe.y;Ct=Ct.bottom+Gt,pe=pe.bottom+ie;var Ui="1px";if(Gt="1px",a.scrollMode===Ad&&(Br||gr)&&(Br&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Br=1,vt+1<se&&(Br=Math.max((se-vt)*Jr+a.Aa,Br)),Dt>de+1&&(Br=Math.max((Dt-de)*Jr+a.Aa,Br)),$t+ne+1<gi&&(Br=Math.max((gi-$t)*Jr+a.Aa,Br)),Ui=Br.toString()+"px"),gr&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Br=1,Bt+1<to&&(Br=Math.max((to-Bt)*Jr+a.ya,Br)),Ct>pe+1&&(Br=Math.max((Ct-pe)*Jr+a.ya,Br)),Rn+ie+1<di&&(Br=Math.max((di-Rn)*Jr+a.ya,Br)),Gt=Br.toString()+"px")),Br=Ui!=="1px",gr=Gt!=="1px",Br&&gr||!Br&&!gr||(gr&&(de-=a.Db),Br&&(pe-=a.Db),gi<$t+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,vt+1<se&&(ne=Math.max((se-vt)*Jr+a.Aa,ne)),Dt>de+1&&(ne=Math.max((Dt-de)*Jr+a.Aa,ne)),$t+1<gi&&(ne=Math.max((gi-$t)*Jr+a.Aa,ne)),Ui=ne.toString()+"px"),Br=Ui!=="1px",ne=a.ya,Br!==a.Be&&(ne=Br?a.ya-a.Db:a.ya+a.Db),di<Rn+ie||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ie=1,Bt+1<to&&(ie=Math.max((to-Bt)*Jr+ne,ie)),Ct>pe+1&&(ie=Math.max((Ct-pe)*Jr+ne,ie)),Rn+1<di&&(ie=Math.max((di-Rn)*Jr+ne,ie)),Gt=ie.toString()+"px"),gr=Gt!=="1px"),a.qr&&Br===a.Be&&gr===a.gf)return b===a.Aa&&E===a.ya||a.bd(),!1;if(Br!==a.Be&&(Ui==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Br,qe.style.width=Ui,gr!==a.gf&&(Gt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ie=it.alloc(),gr?(y.style.left=a.Db+"px",a.position=ie.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ie.h(a.pa.x-a.Db/a.scale,a.pa.y)),it.free(ie))),z&&Oc(a),a.gf=gr,qe.style.height=Gt,a.gu=!0,z&&(a.pn=!0),y=ze.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&($t+1<gi?y=(a.position.x-vt)*Jr:vt+1<se?y=ze.scrollWidth-ze.clientWidth:Dt>de+1&&(y=a.position.x*Jr)),a.tn)switch(a.bu){case"negative":y=-(ze.scrollWidth-y-ze.clientWidth);break;case"reverse":y=ze.scrollWidth-y-ze.clientWidth}return ze.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Rn+1<di?ze.scrollTop=(a.position.y-Bt)*Jr:Bt+1<to?ze.scrollTop=ze.scrollHeight-ze.clientHeight:Ct>pe+1&&(ze.scrollTop=a.position.y*Jr)),se=a.Aa,de=a.ya,ze.style.width=se+(a.gf?a.Db:0)+"px",ze.style.height=de+(a.Be?a.Db:0)+"px",b!==se||E!==de||a.animationManager.zb?(b=In.allocAt(x,Se,Le,Me),a.onViewportBoundsChanged(b,a.viewportBounds,Jr,z),In.free(b),!1):!0}Oe=Dn.prototype,Oe.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Lt("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&&Lt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var b=y.oi(99999999,a,a.diagram===this);0<=b&&this.cb(Ta,"parts",y,null,a,null,b),y.isTemporary||this.Ya(),a.C(1),b=a.layerChanged,b!==null&&b(a,null,y)}},Oe.oi=function(a){this.partManager.oi(a);var y=this;Hf(a,function(b){mh(y,b)}),(a instanceof Mo||a instanceof ro&&a.placeholder!==null)&&a.v(),a.data!==null&&Hf(a,function(b){by(y.partManager,b)}),Zt(a)!==!0&&rf(a)!==!0||this.De.add(a),VS(a,!0,this),ZS(a)?(a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.$b()},Oe.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Hf(a,function(b){Ey(y.partManager,b,y)}),this.De.remove(a),ZS(a)?(a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(jf(a,a.actualBounds)),this.$b()},Oe.remove=function(a){lp(this,a,!0)};function lp(a,y,b){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),b&&y.Lj(),b=E.pc(-1,y,!1),0<=b&&a.cb(La,"parts",E,y,null,b,null),a=y.layerChanged,a!==null&&a(y,E,null))}Oe.Is=function(a,y){if(y===void 0&&(y=!1),Fn(a))for(var b=a.length,E=0;E<b;E++){var x=a[E];y&&!x.canDelete()||this.remove(x)}else for(b=new ar,b.addAll(a),a=b.iterator;a.next();)b=a.value,y&&!b.canDelete()||this.remove(b)},Oe.Kj=function(a,y,b){return b===void 0&&(b=!1),this.partManager.Kj(a,y,b)},Dn.prototype.moveParts=function(a,y,b,E){if(b===void 0&&(b=!1),E===void 0&&(E=kf(this)),this.toolManager!==null){var x=new An;if(a!==null)if(Fn(a))for(var z=0;z<a.length;z++)$c(this,x,a[z],b,E);else for(a=a.iterator;a.next();)$c(this,x,a.value,b,E);else{for(a=this.parts;a.next();)$c(this,x,a.value,b,E);for(a=this.nodes;a.next();)$c(this,x,a.value,b,E);for(a=this.links;a.next();)$c(this,x,a.value,b,E)}Wd(this,x,y,E,b)}};function $c(a,y,b,E,x,z){if(!y.contains(b)&&(z===void 0&&(z=!1),!E||z||b.canMove()||b.canCopy()))if(x===void 0&&(x=kf(a)),b instanceof $r){if(y.add(b,a.Pd(x,b,b.location)),b instanceof ro&&(b.placeholder!==null||x.dragsMembers))for(z=b.memberParts;z.next();)$c(a,y,z.value,E,x,x.groupsAlwaysMove);for(z=b.linksConnected;z.next();){var ne=z.value;if(!y.contains(ne)){var ie=ne.fromNode,se=ne.toNode;ie!==null&&y.contains(ie)&&se!==null&&y.contains(se)&&$c(a,y,ne,E,x)}}if(x.dragsTree)for(b=b.Ou();b.next();)$c(a,y,b.value,E,x)}else if(b instanceof _r)for(y.add(b,a.Pd(x,b)),b=b.labelNodes;b.next();)$c(a,y,b.value,E,x);else b instanceof Mo||y.add(b,a.Pd(x,b,b.location))}function Wd(a,y,b,E,x){if(y!==null&&y.count!==0){var z=it.alloc(),ne=it.alloc();ne.assign(b),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(b=a.Mr)||Yh(a,y);for(var ie=Mr(),se=Mr(),de=y.iterator,pe=it.alloc();de.next();){var Se=de.key,Le=de.value;if(Se.Zc()){var Me=up(a,Se,y);Me!==null?ie.push(new re(Se,Le,Me)):(!x||Se.canMove())&&(Me=Le.point,z.assign(Me),a.computeMove(Se,z.add(ne),E,pe),Se.location=pe,Le.shifted===void 0&&(Le.shifted=new it),Le.shifted.assign(pe.re(Me)))}else de.key instanceof _r&&se.push(de.sa)}for(it.free(pe),x=ie.length,de=0;de<x;de++)Se=ie[de],z.assign(Se.info.point),Se.Su.shifted===void 0&&(Se.Su.shifted=new it),Se.node.location=z.add(Se.Su.shifted);for(x=it.alloc(),de=it.alloc(),Se=se.length,Le=0;Le<Se;Le++){var ze=se[Le];if(Me=ze.key,Me instanceof _r)if(Me.suspendsRouting){Me.Tg=null,pe=Me.fromNode;var qe=Me.toNode;if(a.draggedLink!==null&&E.dragsLink)if(qe=ze.value.point,Me.dragComputation===null)y.add(Me,a.Pd(E,Me,ne)),Lh(Me,ne.x-qe.x,ne.y-qe.y);else{ze=it.allocAt(0,0),(pe=Me.i(0))&&pe.w()&&ze.assign(pe);var Ct=pe=it.alloc().assign(ze).add(ne);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Ct=it.alloc(),If(a,Me,pe,Ct,E)),pe.assign(Me.dragComputation(Me,pe,Ct)).re(ze),y.add(Me,a.Pd(E,Me,pe)),Lh(Me,pe.x-qe.x,pe.y-qe.y),it.free(ze),it.free(pe),Ct!==pe&&it.free(Ct)}else pe!==null&&(x.assign(pe.location),Ct=y.I(pe),Ct!==null&&x.re(Ct.point)),qe!==null&&(de.assign(qe.location),Ct=y.I(qe),Ct!==null&&de.re(Ct.point)),pe!==null&&qe!==null?x.Xa(de)?(pe=ze.value.point,qe=z,qe.assign(x),qe.re(pe),y.add(Me,a.Pd(E,Me,x)),Lh(Me,qe.x,qe.y)):(Me.suspendsRouting=!1,Me.bb()):(ze=ze.value.point,pe=pe!==null?x:qe!==null?de:ne,y.add(Me,a.Pd(E,Me,pe)),Lh(Me,pe.x-ze.x,pe.y-ze.y))}else(Me.fromNode===null||Me.toNode===null)&&(pe=ze.value.point,y.add(Me,a.Pd(E,Me,ne)),Lh(Me,ne.x-pe.x,ne.y-pe.y))}it.free(z),it.free(ne),it.free(x),it.free(de),Ur(ie),Ur(se),b||(Ps(a),Zd(a,y))}}Dn.prototype.computeMove=function(a,y,b,E){if(E===void 0&&(E=new it),E.assign(y),a===null)return E;var x=y,z=b.isGridSnapEnabled;z&&(b.isGridSnapRealtime||this.lastInput.up)&&(x=it.alloc(),If(this,a,y,x,b)),b=a.dragComputation!==null?a.dragComputation(a,y,x):x;var ne=a.minLocation,ie=ne.x;isNaN(ie)&&(ie=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),E.h(Math.max(ie,Math.min(b.x,de)),Math.max(ne,Math.min(b.y,se))),x!==y&&it.free(x),E};function kf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function If(a,y,b,E,x){if(x===void 0&&(x=kf(a)),E.assign(b),y!==null){var z=a.grid;y=x.gridSnapCellSize,a=y.width,y=y.height;var ne=x.gridSnapOrigin,ie=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(ie)&&(ie=z.x),isNaN(ne)&&(ne=z.y)}z=it.allocAt(0,0),z.yi(0,0,a,y,x),tn.No(b.x,b.y,ie+z.x,ne+z.y,a,y,E),it.free(z)}}function Yh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof _r&&(y.suspendsRouting=!0)}function Zd(a,y){if(y!==null){for(y=y.iterator;y.next();){var b=y.key;b instanceof _r&&(b.suspendsRouting=!1,ay(b)&&b.bb())}a.Mr=!1}}function up(a,y,b){return y=y.containingGroup,y!==null&&(a=up(a,y,b),a!==null||(a=b.I(y),a!==null))?a:null}Oe=Dn.prototype,Oe.Pd=function(a,y,b){if(b===void 0)return new Bc(Dr);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Bc(new it(Math.round(1e3*b.x)/1e3,Math.round(1e3*b.y)/1e3)):new Bc(b.copy())};function cp(a,y,b){if(y.diagram!==null&&y.diagram!==a&&Lt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),b===null?y.diagram!==null&&Lt("Cannot add an existing Layer to this Diagram again: "+y):(b.diagram!==a&&Lt("Existing Layer must be in this Diagram: "+b+" not in "+b.diagram),y===b&&Lt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,b=a.count;for(var E=0;E<b;E++)a.M(E).name===y&&Lt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Oe.Al=function(a){cp(this,a,null),a.Xe(this);var y=this.Wa,b=y.count-1;if(!a.isTemporary)for(;0<=b&&y.M(b).isTemporary;)b--;return y.Gb(b+1,a),this.cc!==null&&this.cb(Ta,"layers",this,null,a,null,b+1),this.N(),this.Ya(),this},Oe.Ww=function(a,y){cp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(La,"layers",this,a,null,E,null));var x=b.count,z;for(z=0;z<x;z++)if(b.M(z)===y){b.Gb(z,a);break}return this.cc!==null&&this.cb(Ta,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Oe.Cy=function(a,y){cp(this,a,y),a.Xe(this);var b=this.Wa,E=b.indexOf(a);0<=E&&(b.remove(a),this.cc!==null&&this.cb(La,"layers",this,a,null,E,null));var x=b.count,z;for(z=0;z<x;z++)if(b.M(z)===y){b.Gb(z+1,a);break}return this.cc!==null&&this.cb(Ta,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Oe.kA=function(a){if(a.diagram!==this&&Lt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,b=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,x=E.layerName;x!==a.name?E.layerName=x:E.layerName=""}this.cc!==null&&this.cb(La,"layers",this,a,null,b,null),this.N(),this.Ya()}}},Oe.Qj=function(a){for(var y=this.layers;y.next();){var b=y.value;if(b.name===a)return b}return null},Oe.Yw=function(a){return this.pf===null&&(this.pf=new Qn),this.pf.add(a),this.model.Pe(a),this},Oe.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Oe.Pe=function(a){return this.zg===null&&(this.zg=new Qn),this.zg.add(a),this},Oe.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Oe.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Os&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,b=y.length,E=0;E<b;E++)y.M(E)(a)},Oe.cb=function(a,y,b,E,x,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var ie=new va;ie.diagram=this,ie.change=a,ie.propertyName=y,ie.object=b,ie.oldValue=E,ie.oldParam=z,ie.newValue=x,ie.newParam=ne,this.ds(ie)},Oe.g=function(a,y,b,E,x){this.cb(oa,a,this,y,b,E,x)},Dn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var b=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===oa){var x=a.object;if(Ca(x,a.propertyName,a.I(y)),x instanceof rn){var z=x.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Ta){var ne=a.object,ie=a.newParam,se=a.newValue;if(ne instanceof Tr)if(typeof ie=="number"&&se instanceof rn){y?ne.pc(ie):ne.Gb(ie,se);var de=ne.part;de!==null&&de.Wb()}else typeof ie=="number"&&se instanceof vs&&(se.isRow?mS(ne,ie,y?void 0:se):vS(ne,ie,y?void 0:se));else if(ne instanceof Cs){var pe=a.oldParam===!0;typeof ie=="number"&&se instanceof Ai&&(y?(se.isSelected=!1,se.isHighlighted=!1,se.Wb(),ne.pc(pe?ie:-1,se,pe)):ne.oi(ie,se,pe))}else ne instanceof Dn?typeof ie=="number"&&se instanceof Cs&&(y?this.Wa.mb(ie):(se.Xe(this),this.Wa.Gb(ie,se))):Lt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===La){var Se=a.object,Le=a.oldParam,Me=a.oldValue;if(Se instanceof Tr)typeof Le=="number"&&Me instanceof rn?y?Se.Gb(Le,Me):Se.pc(Le):typeof Le=="number"&&Me instanceof vs&&(Me.isRow?mS(Se,Le,y?Me:void 0):vS(Se,Le,y?Me:void 0));else if(Se instanceof Cs){var ze=a.newParam===!0;typeof Le=="number"&&Me instanceof Ai&&(y?0>Se.Pa.indexOf(Me)&&Se.oi(Le,Me,ze):(Me.isSelected=!1,Me.isHighlighted=!1,Me.Wb(),Se.pc(ze?Le:-1,Me,ze)))}else Se instanceof Dn?typeof Le=="number"&&Me instanceof Cs&&(y?(Me.Xe(this),this.Wa.Gb(Le,Me)):this.Wa.mb(Le)):Lt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Os&&Lt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=b}}},Dn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Dn.prototype.eb=function(a){return this.undoManager.eb(a)},Dn.prototype.Kf=function(){return this.undoManager.Kf()},Dn.prototype.commit=function(a,y){y===void 0&&(y="");var b=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=b}},Dn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Dn.prototype.rp=function(){this.partManager.rp()};function dp(a,y,b){var E=a.animationManager;if(a.vb||a.ld)a.Ca=b,Oc(a),a.N(),a.Ee=!0,E.zb&&(fl(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=b,Oc(a);else{a.vb=!0;var x=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,ie=a.zoomPoint.x,se=a.zoomPoint.y,de=a.contentAlignment;isNaN(ie)&&(de.$c()?de.Hf(Hs)?ie=0:de.Hf(da)&&(ie=z-1):ie=de.sb()?de.x*(z-1):z/2),isNaN(se)&&(de.$c()?de.Hf(ga)?se=0:de.Hf(Rs)&&(se=ne-1):se=de.sb()?de.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(b=a.scaleComputation(a,b)),b<a.minScale&&(b=a.minScale),b>a.maxScale&&(b=a.maxScale),z=it.allocAt(a.pa.x+ie/y-ie/b,a.pa.y+se/y-se/b),a.position=z,it.free(z),a.Ca=b,Oc(a),a.vb=!1,a.onViewportBoundsChanged(x,a.viewportBounds,y,!1),qu(a,!1),E.zb&&(fl(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Dn.prototype.onViewportBoundsChanged=function(a,y,b,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var x=this.layout;x===null||!x.isViewportSized||this.autoScale!==pl||a.width===y.width&&a.height===y.height||x.C(),x=this.currentTool,this.Vk===!0&&x instanceof aa&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Sc(x,this)),this.vb||this.invalidateViewport(a,y),Ec(this),this.fc.scale=b,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*b),this.fc.canvasSize.height=Math.round(a.height*b),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Ec(a,y){var b=a.fe;if(b!==null&&b.visible){for(var E=an.alloc(),x=1,z=1,ne=b.O.s,ie=ne.length,se=0;se<ie;se++){var de=ne[se],pe=Math.abs(de.interval);2>pe||(Nv(de.figure)?z=z*pe/tn.vx(z,pe):x=x*pe/tn.vx(x,pe))}if(ne=b.gridCellSize,E.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=In.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){In.free(y);return}x=y.width,z=y.height,a=y.x,ne=y.y,In.free(y)}b.width=x+2*E.width,b.height=z+2*E.height,y=it.alloc(),tn.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),an.free(E),b.part.location=y,it.free(y)}}Dn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var b=y.Fa(),E=b.length,x=0;x<E;x++)b[x].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Dn.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))},Dn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Fn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];E instanceof Ai||Lt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Ai||Lt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Dn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),b=y.length,E=0;E<b;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Oe=Dn.prototype,Oe.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Oe.Jz=function(a){a=new ar().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 Ai||Lt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Oe.scroll=function(a,y,b){b===void 0&&(b=1);var E=y==="up"||y==="down",x=0,z=it.alloc();if(a==="pixel")x=b;else if(a==="line")x=b*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(x=b*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){x=this.documentBounds,b=this.viewportBounds,y==="up"?this.position=z.h(b.x,x.y):y==="left"?this.position=z.h(x.x,b.y):y==="down"?this.position=z.h(b.x,x.bottom-b.height):y==="right"&&(this.position=z.h(x.right-b.width,b.y)),it.free(z);return}Lt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}x/=this.scale,b=this.position,y==="up"?this.position=z.h(b.x,b.y-x):y==="down"?this.position=z.h(b.x,b.y+x):y==="left"?this.position=z.h(b.x-x,b.y):y==="right"?this.position=z.h(b.x+x,b.y):Lt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),it.free(z)},Oe.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)},Oe.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Oe.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var b=this.pa;return(b.x!==0||b.y!==0)&&isFinite(b.x)&&isFinite(b.y)&&y.translate(-b.x,-b.y),a.copy().transform(this.Ab)},Oe.zA=function(a){var y=this.Ab,b=a.x,E=a.y,x=b+a.width,z=E+a.height,ne=y.m11,ie=y.m12,se=y.m21,de=y.m22,pe=y.dx,Se=y.dy,Le=b*ne+E*se+pe;y=b*ie+E*de+Se;var Me=x*ne+E*se+pe;return a=x*ie+E*de+Se,E=b*ne+z*se+pe,b=b*ie+z*de+Se,ne=x*ne+z*se+pe,x=x*ie+z*de+Se,z=Math.min(Le,Me),Le=Math.max(Le,Me),Me=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Le=Math.max(Le,E),Me=Math.min(Me,b),y=Math.max(y,b),z=Math.min(z,ne),Le=Math.max(Le,ne),Me=Math.min(Me,x),y=Math.max(y,x),new In(z,Me,Le-z,y-Me)},Oe.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var b=this.pa;return(b.x!==0||b.y!==0)&&isFinite(b.x)&&isFinite(b.y)&&y.translate(-b.x,-b.y),Pn(a.copy(),this.Ab)};function ng(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function hp(a){return a=Mf.get(a),a!==null?new a:new Jo}Dn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var b=a.change,E=a.propertyName;if(b===Os&&E[0]==="S")if(E==="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 E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&b===Os){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ps(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ql(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(ng(this),this.As.clear(),cc(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var ie=this;ki(function(){ie.currentTool.standardMouseOver(),ie.Rt=!1},10)}}}finally{this.aa=!0}}}};function mh(a,y){y=y.O.s;for(var b=y.length,E=0;E<b;E++)Kd(a,y[E])}function Kd(a,y){if(y instanceof gu){var b=y.element;if(b!==null&&b instanceof HTMLImageElement){b.Bg instanceof ar&&b.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),b.hn)if(b=b.getAttribute("src")||"",E=a.Og.I(b),E===null)E=[],E.push(y),a.Og.add(b,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function fp(a,y){if(y instanceof gu){var b=y.element;if(b!==null&&b instanceof HTMLImageElement&&b.hn){var E=b.getAttribute("src")||"",x=a.Og.I(E);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(E),b.Fq&&b.removeEventListener("load",b.Fq),b.Yp&&b.removeEventListener("error",b.Yp),delete b.Fq,delete b.Yp,b.Bg instanceof ar&&b.Bg.remove(a),pg(E));break}}}}}Dn.prototype.Wd=function(){this.partManager.Wd()},Dn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Dn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Dn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Dn.prototype.Vb=function(a){return this.partManager.Vb(a)},Dn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Oe=Dn.prototype,Oe.Lc=function(a){return this.partManager.Lc(a)},Oe.ii=function(a){return this.partManager.ii(a)},Oe.Kc=function(a){return this.partManager.Kc(a)},Oe.ms=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:or(Pr(y)))},Oe.ls=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:or(Pr(y)))};function Oc(a){var y=a.pa,b=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/b,Math.max(a.ya,0)/b),a.vd=!0}function vh(a,y){a.Zi=!1;var b=a.Sp;b.D(y)||(b=b.copy(),a.Sp.assign(y),qu(a,!1),a.R("DocumentBoundsChanged",void 0,b),a.Ee=!0,a.N())}Oe.Va=function(){if(this.Zi){var a=In.alloc();vh(this,this.computeBounds(a)),In.free(a)}},Oe.rz=function(){for(var a=new ar,y=this.nodes;y.next();){var b=y.value;b.isTopLevel&&a.add(b)}for(y=this.links;y.next();)b=y.value,b.isTopLevel&&a.add(b);return a.iterator},Oe.qz=function(){return this.ai.iterator},Oe.Uz=function(a){Ps(this),a&&Xh(this,!0),this.ld?pp(this,!1):(this.Jk=!0,Hu(this))};function Xh(a,y){for(var b=a.ai.iterator;b.next();)rg(a,b.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function rg(a,y,b){if(y!==null){for(var E=y.gl.iterator;E.next();)rg(a,E.value,b);y.layout!==null&&(b?y.layout.isValidLayout=!1:y.layout.C())}}function pp(a,y){if(a.xh&&!a.lt){var b=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,x=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||ms(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)gp(a,ne.value,y,E);x.isValidLayout||(!y||x.isRealtime||x.isRealtime===null||E===0?(x.doLayout(a),Ps(a),x.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||ql(z),a.aa=b}}}function gp(a,y,b,E){if(y!==null){for(var x=y.gl.iterator;x.next();)gp(a,x.value,b,E);x=y.layout,x===null||x.isValidLayout||(!b||x.isRealtime||E===0?(y.rh=!y.location.w(),x.doLayout(y),y.C(32),Kh(a,y),x.isValidLayout=!0):a.xh=!0)}}Oe.yz=function(){for(var a=new Qn,y=this.nodes;y.next();){var b=y.value;b.isTopLevel&&b.kh()===null&&a.add(b)}return a.iterator};function jg(a){function y(x){var z=x.toLowerCase(),ne=new Qn;b.add(x,ne),b.add(z,ne),E.add(x,x),E.add(z,x)}var b=new An,E=new An;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=b,a.hw=E}function yh(a,y){var b=a.hw.I(y);return b!==null?b:a.hw.I(y.toLowerCase())}function Df(a,y){var b=a.iw.I(y);if(b!==null||(b=a.iw.I(y.toLowerCase()),b!==null))return b;Lt("Unknown DiagramEvent name: "+y)}Oe.Bj=function(a,y){return a=Df(this,a),a!==null&&a.add(y),this},Oe.am=function(a,y){a=Df(this,a),a!==null&&a.remove(y)},Oe.R=function(a,y,b){var E=Df(this,a),x=new Fu;if(x.diagram=this,a=yh(this,a),a!==null&&(x.name=a),y!==void 0&&(x.subject=y),b!==void 0&&(x.parameter=b),y=E.length,y===1)E.M(0)(x);else if(y!==0)for(E=E.Fa(),b=0;b<y;b++)(0,E[b])(x)};function Qh(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Oe.Yj=function(a,y){return Rf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Dn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?rp(this,a):a.assign(this.documentBounds)};function Rf(a,y,b,E){var x=a.Xh;if(x===null&&(a.Xh=x=new um(a.avoidanceCellSize)),x.vs||x.group!==b||x.Yx!==E){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)),b!==null&&(b=ig(a,b)),b===null){y=In.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),x.initialize(y);for(var z=a.nodes;z.next();){var ne=z.value,ie=ne.layer;ie!==null&&ie.visible&&!ie.isTemporary&&mp(a,ne,E,y)}In.free(y)}else{for(0<b.memberParts.count&&(y=a.computePartsBounds(b.memberParts,!1),y.Bc(20,20),x.initialize(y)),y=In.alloc(),z=b.memberParts;z.next();)ne=z.value,ne instanceof $r&&mp(a,ne,E,y);In.free(y)}x.group=b,x.Yx=E,x.vs=!1}else y&&d1(x);return x}function ig(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ig(a,y.containingGroup):null}function mp(a,y,b,E){if(y!==b&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var x=y.x,z=y.y;if(bg(a,x,z))for(b=(z-a.Od)/a.sc|0,E=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<=E;x++)if(z=a.ac[x],z.fill)z.fill(Ih,b,y+1);else for(var ne=b;ne<=y;ne++)z[ne]=Ih}else if(y instanceof ro)for(y=y.memberParts;y.next();)x=y.value,x instanceof $r&&mp(a,x,b,E)}}function Td(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Dn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Jh(this)};function Jh(a){a.vk===-1&&(a.vk=ki(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=In.alloc(),a.computeBounds(y),y.ed(a.documentBounds),vh(a,y),In.free(y),a.Fc=!0,a.bd(),Jh(a))}},a.vp))}Dn.prototype.ug=function(){this.vk!==-1&&(ur.clearTimeout(this.vk),this.vk=-1)},Dn.prototype.computeAutoScrollPosition=function(a){var y=this.position,b=this.xp;if(0>=b.top&&0>=b.left&&0>=b.right&&0>=b.bottom)return y;var E=this.viewportBounds,x=this.scale;E=In.allocAt(0,0,E.width*x,E.height*x);var z=it.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+b.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,z.x-=ne,a.x<E.x+b.left/2&&(z.x-=ne),a.x<E.x+b.left/4&&(z.x-=4*ne)}else a.x<=E.x+E.width&&a.x>E.x+E.width-b.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>E.x+E.width-b.right/2&&(z.x+=ne),a.x>E.x+E.width-b.right/4&&(z.x+=4*ne));return a.y>=E.y&&a.y<E.y+b.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y-=ne,a.y<E.y+b.top/2&&(z.y-=ne),a.y<E.y+b.top/4&&(z.y-=4*ne)):a.y<=E.y+E.height&&a.y>E.y+E.height-b.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>E.y+E.height-b.bottom/2&&(z.y+=ne),a.y>E.y+E.height-b.bottom/4&&(z.y+=4*ne)),z.Xa(Dr)||(y=new it(y.x+z.x/x,y.y+z.y/x)),In.free(E),it.free(z),y},Oe=Dn.prototype,Oe.Cs=function(){return null},Oe.av=function(){return null},Oe.bs=function(a,y){this.pj.add(a,y)},Oe.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof ro&&(y.$p=null)})};function qh(a,y,b){function E(){var pe=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||pe-de>se?y(b,x,ie):ur.requestAnimationFrame(E)}for(var x=b.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof x!="function"||z)return y(b,x,a);var ie=a,se=b.callbackTimeout||300,de=+new Date;return ur.requestAnimationFrame(function(){E()}),null}Oe.Wz=function(a){return Fa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Oe.Jx=function(a){return a===void 0&&(a={}),qh(this,this.Xz,a)},Oe.Xz=function(a,y,b){var E=og(b,a,"canvas",null);if(E===null)return null;b=E.Z.canvas;var x=null;if(b!==null)switch(x=a.returnType,x===void 0?x="string":x=x.toLowerCase(),x){case bh+"data":x=E.getImageData(0,0,b.width,b.height);break;case bh:E=(a.document||document).createElement("img"),E.src=b.toDataURL(a.type,a.details),x=E;break;case"blob":return typeof y!="function"&&Lt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof b.toBlob=="function"?(b.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:x=b.toDataURL(a.type,a.details)}return typeof y=="function"?(y(x),null):x};function og(a,y,b,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Lt("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=b==="SVG"?new an(1/0,1/0):new an(2e3,2e3));var ie=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 Le=y.document||document,Me=y.elementFinished||null,ze=y.showTemporary;ze===void 0&&(ze=!Se),y=y.showGrid,y===void 0&&(y=ze),x!==null&&isNaN(x.width)&&isNaN(x.height)&&(x=null),typeof de=="number"?de=new no(de):de instanceof no||Lt("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 nu(null,Le,void 0,!0);var qe=Se.context;if(!(x||z||se||ie))return Se.width=a.Aa+Math.ceil(de.left+de.right),Se.height=a.ya+Math.ceil(de.top+de.bottom),b==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Le,E.hs=Me,Lf(a,E.context,de,new an(Se.width,Se.height),a.Ca,a.pa,se,pe,ze,y),E.context):(a.Xm=!1,Lf(a,qe,de,new an(Se.width,Se.height),a.Ca,a.pa,se,pe,ze,y),a.Xm=!0,Se.context);var Ct=a.Pp,vt=a.documentBounds.copy();if(vt.Fv(a.yb),ze)for(var Dt=a.Wa.s,Bt=Dt.length,Gt=0;Gt<Bt;Gt++){var $t=Dt[Gt];if($t.visible&&$t.isTemporary){$t=$t.Pa.s;for(var Rn=$t.length,Jr=0;Jr<Rn;Jr++){var gi=$t[Jr];gi.isInDocumentBounds&&gi.isVisible()&&(gi=gi.actualBounds,gi.w()&&vt.ed(gi))}}}if(Dt=new it(vt.x,vt.y),se!==null){for(Bt=new In(0,0,0,0),Gt=!0,$t=se.iterator,$t.reset();$t.next();)Rn=$t.value,Rn instanceof Ai&&(Jr=Rn.layer,Jr!==null&&!Jr.visible||Jr!==null&&!ze&&Jr.isTemporary||!Rn.isVisible()||(Rn=Rn.actualBounds,Rn.w()&&(Gt?(Gt=!1,Bt.assign(Rn)):Bt.ed(Rn))));vt.width=Bt.width,vt.height=Bt.height,Dt.x=Bt.x,Dt.y=Bt.y}return ie!==null&&ie.w()&&(Dt=ie,z||(z=Ct)),Bt=ie=0,de!==null&&(ie=de.left+de.right,Bt=de.top+de.bottom),Gt=$t=0,x!==null&&($t=x.width,Gt=x.height,isFinite($t)&&($t=Math.max(0,$t-ie)),isFinite(Gt)&&(Gt=Math.max(0,Gt-Bt))),x!==null&&z!==null?(z==="NaN"&&(z=Ct),x.w()?(x=$t,vt=Gt):isNaN(Gt)?(x=$t,vt=vt.height*z):(x=vt.width*z,vt=Gt)):x!==null?x.w()?(z=Math.min($t/vt.width,Gt/vt.height),x=$t,vt=Gt):isNaN(Gt)?(z=$t/vt.width,x=$t,vt=vt.height*z):(z=Gt/vt.height,x=vt.width*z,vt=Gt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-ie)/vt.width,(ne.height-Bt)/vt.height),z>Ct?(z=Ct,x=vt.width,vt=vt.height):(x=ne.width,vt=ne.height)):(x=vt.width*z,vt=vt.height*z):(z=Ct,x=vt.width,vt=vt.height),de!==null?(x+=ie,vt+=Bt):de=new no(0),ne!==null&&(Ct=ne.width,ne=ne.height,isNaN(Ct)&&(Ct=2e3),isNaN(ne)&&(ne=2e3),isFinite(Ct)&&(x=Math.min(x,Ct)),isFinite(ne)&&(vt=Math.min(vt,ne))),Se.width=Math.ceil(x),Se.height=Math.ceil(vt),b==="SVG"?E===null?null:(E.resize(Se.width,Se.height,Se.width,Se.height),E.ownerDocument=Le,E.hs=Me,Lf(a,E.context,de,new an(Math.ceil(x),Math.ceil(vt)),z,Dt,se,pe,ze,y),E.context):(a.Xm=!1,Lf(a,qe,de,new an(Math.ceil(x),Math.ceil(vt)),z,Dt,se,pe,ze,y),a.Xm=!0,Se.context)}Jn.Object.defineProperties(Dn.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 ra(this,ur.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 ra(this,ur.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(b){b.cancelWaitAfter()}),y.mouseMoveTools.each(function(b){b.cancelWaitAfter()}),y.mouseUpTools.each(function(b){b.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(ur,"resize",this.Ov,!1),this.removeEventListener(ur,"wheel",this.$j,!0),Jc===this&&(Jc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),qp(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)&&kr(a,"0 <= value <= 1",Dn,"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),qu(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),qu(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),qu(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),qu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&kr(a,">= 0",Dn,"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&&kr(a,">= 0",Dn,"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,b=this.Ka;if(y!==null&&b!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,b.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,b.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,b.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,b.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 b=0;b<a;b++)y[b].isSelected=!1;this.R("ChangedSelection",this.selection)}}else kr(a,">= 0",Dn,"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||ng(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&&Lt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var b=Qp(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ms(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=hp(this.cc.type);for(var x=0;x<b.length;x++)this.add(b[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=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(ur,"pointermove",this.dk,!0),this.addEventListener(ur,"pointerdown",this.ui,!0),this.addEventListener(ur,"pointerup",this.fk,!0),this.addEventListener(ur,"pointerout",this.ek,!0),this.addEventListener(ur,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ur,"wheel",this.$j,!0),this.addEventListener(ur,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ur,"pointermove",this.dk,!0),this.removeEventListener(ur,"pointerdown",this.ui,!0),this.removeEventListener(ur,"pointerup",this.fk,!0),this.removeEventListener(ur,"pointerout",this.ek,!0),this.removeEventListener(ur,"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(ur,"wheel",this.$j,!0),this.removeEventListener(ur,"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=it.alloc().assign(this.pa);if(!y.D(a)){var b=this.viewportBounds.copy();this.pa.assign(a),zd(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Oc(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(b,this.viewportBounds,this.Ca,!1)}it.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=eg(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=eg(this)),a.type!==Tr.Grid&&Lt("Diagram.grid must be a Panel of type Panel.Grid");var b=y.panel;b!==null&&b.remove(y),this.fe=a,a.name="GRID",b!==null&&b.add(a),Ec(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Oc(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||Lt("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 no(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===Ad&&qu(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,qu(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,dp(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&&dp(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!==pl&&qu(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()||Lt("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()||Lt("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)):kr(a,"> 0",Dn,"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)):kr(a,"> 0",Dn,"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),qu(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 no(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&&Lt("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();)$g(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Fc&&a!==Ja&&a!==Of&&Lt("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 an(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 no(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Jn.Object.defineProperties(Dn,{licenseKey:{get:function(){return ef.jc()},set:function(a){ef.add(a.replace(/\s/g,""))}},version:{get:function(){return Qd}}}),Dn.prototype.makeImageData=Dn.prototype.Jx,Dn.prototype.makeImage=Dn.prototype.Wz,Dn.prototype.cacheGroupExternalLinks=Dn.prototype.Fu,Dn.prototype.addRenderer=Dn.prototype.bs,Dn.prototype.makeSVG=Dn.prototype.av,Dn.prototype.makeSvg=Dn.prototype.Cs,Dn.prototype.stopAutoScroll=Dn.prototype.ug,Dn.prototype.doAutoScroll=Dn.prototype.gs,Dn.prototype.isUnoccupied=Dn.prototype.Yj,Dn.prototype.raiseDiagramEvent=Dn.prototype.R,Dn.prototype.removeDiagramListener=Dn.prototype.am,Dn.prototype.addDiagramListener=Dn.prototype.Bj,Dn.prototype.findTreeRoots=Dn.prototype.yz,Dn.prototype.layoutDiagram=Dn.prototype.Uz,Dn.prototype.findTopLevelGroups=Dn.prototype.qz,Dn.prototype.findTopLevelNodesAndLinks=Dn.prototype.rz,Dn.prototype.ensureBounds=Dn.prototype.Va,Dn.prototype.findLinksByExample=Dn.prototype.ls,Dn.prototype.findNodesByExample=Dn.prototype.ms,Dn.prototype.findLinkForData=Dn.prototype.Kc,Dn.prototype.findNodeForData=Dn.prototype.ii,Dn.prototype.findPartForData=Dn.prototype.Lc,Dn.prototype.findLinkForKey=Dn.prototype.findLinkForKey,Dn.prototype.findNodeForKey=Dn.prototype.Vb,Dn.prototype.findPartForKey=Dn.prototype.findPartForKey,Dn.prototype.rebuildParts=Dn.prototype.Wd,Dn.prototype.transformViewToDoc=Dn.prototype.Ps,Dn.prototype.transformRectDocToView=Dn.prototype.zA,Dn.prototype.transformDocToView=Dn.prototype.op,Dn.prototype.centerRect=Dn.prototype.es,Dn.prototype.scrollToRect=Dn.prototype.tv,Dn.prototype.scroll=Dn.prototype.scroll,Dn.prototype.highlightCollection=Dn.prototype.Jz,Dn.prototype.highlight=Dn.prototype.Iz,Dn.prototype.selectCollection=Dn.prototype.rA,Dn.prototype.select=Dn.prototype.select,Dn.prototype.updateAllRelationshipsFromData=Dn.prototype.rp,Dn.prototype.updateAllTargetBindings=Dn.prototype.updateAllTargetBindings,Dn.prototype.commit=Dn.prototype.commit,Dn.prototype.rollbackTransaction=Dn.prototype.Kf,Dn.prototype.commitTransaction=Dn.prototype.eb,Dn.prototype.startTransaction=Dn.prototype.Ea,Dn.prototype.raiseChanged=Dn.prototype.g,Dn.prototype.raiseChangedEvent=Dn.prototype.cb,Dn.prototype.removeChangedListener=Dn.prototype.ik,Dn.prototype.addChangedListener=Dn.prototype.Pe,Dn.prototype.removeModelChangedListener=Dn.prototype.mA,Dn.prototype.addModelChangedListener=Dn.prototype.Yw,Dn.prototype.findLayer=Dn.prototype.Qj,Dn.prototype.removeLayer=Dn.prototype.kA,Dn.prototype.addLayerAfter=Dn.prototype.Cy,Dn.prototype.addLayerBefore=Dn.prototype.Ww,Dn.prototype.addLayer=Dn.prototype.Al,Dn.prototype.moveParts=Dn.prototype.moveParts,Dn.prototype.copyParts=Dn.prototype.Kj,Dn.prototype.removeParts=Dn.prototype.Is,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.add=Dn.prototype.add,Dn.prototype.clearDelayedGeometries=Dn.prototype.bx,Dn.prototype.setProperties=Dn.prototype.nm,Dn.prototype.attach=Dn.prototype.Du,Dn.prototype.set=Dn.prototype.set,Dn.prototype.resetInputOptions=Dn.prototype.Sx,Dn.prototype.setInputOption=Dn.prototype.sA,Dn.prototype.getInputOption=Dn.prototype.Ql,Dn.prototype.resetRenderingHints=Dn.prototype.Tx,Dn.prototype.setRenderingHint=Dn.prototype.Xx,Dn.prototype.getRenderingHint=Dn.prototype.Gf,Dn.prototype.maybeUpdate=Dn.prototype.bd,Dn.prototype.requestUpdate=Dn.prototype.$b,Dn.prototype.delayInitialization=Dn.prototype.Xy,Dn.prototype.isUpdateRequested=Dn.prototype.Pz,Dn.prototype.invalidateDocumentBounds=Dn.prototype.Ya,Dn.prototype.findObjectsNear=Dn.prototype.og,Dn.prototype.findPartsNear=Dn.prototype.mz,Dn.prototype.findObjectsIn=Dn.prototype.Cf,Dn.prototype.findPartsIn=Dn.prototype.ux,Dn.prototype.findObjectsAt=Dn.prototype.ji,Dn.prototype.findPartsAt=Dn.prototype.lz,Dn.prototype.findObjectAt=Dn.prototype.ic,Dn.prototype.findPartAt=Dn.prototype.Ol,Dn.prototype.focusObject=Dn.prototype.zz,Dn.prototype.alignDocument=Dn.prototype.Jy,Dn.prototype.zoomToRect=Dn.prototype.BA,Dn.prototype.zoomToFit=Dn.prototype.zoomToFit,Dn.prototype.diagramScroll=Dn.prototype.kx,Dn.prototype.focus=Dn.prototype.focus;var Mf=new An,vp=null,Fa=ur.document!==void 0,Yd=null,Xd="",pl=new mn(Dn,"None",0),zu=new mn(Dn,"Uniform",1),cd=new mn(Dn,"UniformToFill",2),$h=new mn(Dn,"CycleAll",10),yp=new mn(Dn,"CycleNotDirected",11),Sp=new mn(Dn,"CycleNotDirectedFast",12),bp=new mn(Dn,"CycleNotUndirected",13),Ep=new mn(Dn,"CycleDestinationTree",14),xp=new mn(Dn,"CycleSourceTree",15),Ad=new mn(Dn,"DocumentScroll",1),Sh=new mn(Dn,"InfiniteScroll",2),Fc=new mn(Dn,"TreeParentCollapsed",21),Ja=new mn(Dn,"AllParentsCollapsed",22),Of=new mn(Dn,"AnyParentsCollapsed",23),ef=new Qn,Qd="2.3.10",bh="image",tf=null,ag=!1;function gl(){if(Fa){var a=ur.document.createElement("canvas"),y=a.getContext("2d"),b=Gr("7ca11abfd022028846");y[b]=Gr("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Xr.Dx+"4ae6247590da4bb21c324ba3a84e385776",Mi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",tn.za],x=1;5>x;x++)y[Gr("7ca11abfd7330390")](Gr(E[x-1]),10,15*x);for(y[b]=Gr("39f046ebb36e4b"),b=1;5>b;b++)y[Gr("7ca11abfd7330390")](Gr(E[b-1]),10,15*b);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Mi.prototype.Cd=Mi.prototype.Eu),tf=a}}Dn.className="Diagram",Dn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ur.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Dn?y.H:null},Dn.inherit=function(a,y){function b(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+a);b.prototype=y.prototype,a.prototype=new b,a.prototype.constructor=a},Dn.useDOM=function(a){Fa=a?ur.document!==void 0:!1},Dn.isUsingDOM=function(){return Fa},Dn.None=pl,Dn.Uniform=zu,Dn.UniformToFill=cd,Dn.CycleAll=$h,Dn.CycleNotDirected=yp,Dn.CycleNotDirectedFast=Sp,Dn.CycleNotUndirected=bp,Dn.CycleDestinationTree=Ep,Dn.CycleSourceTree=xp,Dn.DocumentScroll=Ad,Dn.InfiniteScroll=Sh,Dn.TreeParentCollapsed=Fc,Dn.AllParentsCollapsed=Ja,Dn.AnyParentsCollapsed=Of;function Ff(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Jd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var b=ur[Gr("76a715b2f73f148a")][Gr("72ba13b5")]||"";if(a.Rc=!0,Fa){var E=Dn[Gr("76a115b6ed251eaf4692")];if(E)for(var x=ef.iterator;x.next()&&(E=x.value,E=Gr(E).split(Gr("39e9")),!(6>E.length));){var z=Gr(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=Gr(Xr[Gr("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var ie=ur[Gr("74a900bae4370f8b51")][Gr("6fbb13a1c2311e8a57")].toLowerCase();if(ne=ie[Gr("73a612b6fb191d")](Gr("3aad1ab6e022098b4dc4")),z=Gr(E[2]),-1<ne&&(ie=ie[Gr("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ie&&ie<ne),!a.Rc))break;for(ne=b[Gr("76ad18b4f73e")],ie=b[Gr("73a612b6fb191d")](Gr("35e7"))+2;ie<ne;ie++)y+=b[ie];if(ne=y[Gr("73a612b6fb191d")](z),0>ne&&z!==Gr("7da71ca0ad381e90")&&(ne=y[Gr("73a612b6fb191d")](Gr("76a715b2ef3e149757"))),0>ne&&(ne=y[Gr("73a612b6fb191d")](Gr("76a715b2ef3e149757"))),0>ne&&(ne=y[Gr("73a612b6fb191d")](Gr("2bfa41fdb3784bca12"))),0>ne&&(ne=b[Gr("73a612b6fb191d")](Gr("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[Gr("73a612b6fb191d")](Gr("35"))||y[Gr("73a612b6fb191d")](Gr("35"))===-1),!a.Rc||b[Gr("73a612b6fb191d")](Gr("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<b[Gr("73a612b6fb191d")](z)),!a.Rc)||(ne=ur[Gr("76a715b2f73f148a")][Gr("69ad17a1e03e")],ie=ne[Gr("73a612b6fb191d")](Gr("7fb002b6ed25128b4da25b2e")),-1<ie&&(a.Rc=!(ne[Gr("73a612b6fb191d")](z)>ie),!a.Rc)))break;if(z[0]==="#"){ne=ur.document.createElement("div");for(var se=E[0].replace(/[A-Za-z]/g,"");4>se.length;)se+="9";if(ie=se,se=se.substr(se.length-4),E="",E+=["gsh","gsf"][parseInt(se.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(se.substr(0,1),10)%4],ne[Gr("79a417a0f0181a8946")]=E,ur.document[Gr("78a712aa")]){ur.document[Gr("78a712aa")][Gr("7bb806b6ed32388c4a875b")](ne),se=ur.getComputedStyle(ne).getPropertyValue(Gr("78a704b7e62456904c9b12701b6532a8"));var de=ur.getComputedStyle(ne).getPropertyValue(Gr("75b817b0ea2202"));if(ur.document[Gr("78a712aa")][Gr("68ad1bbcf533388c4a875b")](ne),se){if(ne=ur[Gr("77a902b0eb1b1e804a8a")],de==="0."+parseInt(ie,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(Gr("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ne=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var pe in ne)if(E===ne[pe].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(pe=b[Gr("76ad18b4f73e")],x=b[Gr("73a612b6fb191d")](Gr("35e7"))+2;x<pe;x++)y+=b[x];b=y[Gr("73a612b6fb191d")](Gr("7da71ca0ad381e90")),a.Rc=!(0<=b&&b<y[Gr("73a612b6fb191d")](Gr("35")))}}}return 0<a.Rc&&a!==a.wy}Ff.className="DiagramHelper";function Bc(a){this.j=a===void 0?new it:a,this.o=new it}Jn.Object.defineProperties(Bc.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 qd="DraggingInfo";Bc.className="DraggingInfo";function re(a,y,b){this.node=a,this.info=y,this.Su=b}re.className="DraggingNodeInfoPair";function le(){this.reset()}le.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new an(NaN,NaN).freeze(),this.gridSnapCellSpot=ho,this.gridSnapOrigin=new it(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"||ur.Element&&a instanceof Element)var b=Dn.call(this,a)||this;else b=Dn.call(this)||this,y=a;return ve(b),y&&b.nm(y),b}Sn(ye,Dn);function ve(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Io,a.layout=new nl}ye.prototype.reset=function(){Dn.prototype.reset.call(this),ve(this)},ye.className="Palette";function xe(a,y){if(typeof a=="string"||ur.Element&&a instanceof Element)var b=Dn.call(this,a)||this;else b=Dn.call(this)||this,y=a;var E=b;b.animationManager.isEnabled=!1,b.vb=!0,b.V=null,b.mn=!1,b.nn=!1,b.F=!0,b.u=!0,b.ia=0,b.o=!1,b.ql=null,b.Xx("drawShadows",!1),a=new Ai;var x=new oo;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),b.j=a,b.allowCopy=!1,b.allowDelete=!1,b.allowSelect=!0,b.autoScrollRegion=new no(0,0,0,0),b.pa.h(0,0),b.toolManager.gb("Dragging",new Pt,b.toolManager.mouseMoveTools),b.click=function(){var z=E.observed;if(z!==null){var ne=z.viewportBounds,ie=E.lastInput.documentPoint;z.position=new it(ie.x-ne.width/2,ie.y-ne.height/2)}},b.Pf=function(){E.Ya(),dt(E)},b.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},b.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},b.Of=function(){E.observed!==null&&dt(E)},b.autoScale=zu,b.vb=!1,y&&Object.assign(b,y),b}Sn(xe,Dn),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(Pd(this),this.ql===null){var b=new nu(null);b.width=a.width,b.height=a.height,this.ql=b}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),Ze(this)}finally{this.ta=a,this.ib=y}}}Dn.prototype.redraw.call(this)},xe.prototype.gc=function(){if(this.Ka===null&&Lt("No div specified"),this.ta===null&&Lt("No canvas specified"),!(this.ta instanceof ra)&&(Yv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Pd(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?Ze(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 b=y.length,E=0;E<b;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Ze(a){var y=a.observed;if(y!==null){var b=a.drawsTemporaryLayers,E=a.drawsGrid&&b,x=y.grid;E&&x!==null&&x.visible&&!isNaN(x.width)&&!isNaN(x.height)&&(x=In.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Ec(y,x),In.free(x),Ps(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 ie=y[ne],se=a;if(ie.visible&&ie.opacity!==0){var de=ie.diagram.grid.part;if(!b&&ie.isTemporary)E&&de.layer===ie&&(ie=ud(ie,x),de.gc(x,se),x.globalAlpha=ie);else{for(var pe=ud(ie,x),Se=se.scale,Le=In.alloc(),Me=ie.Pa.s,ze=Me.length,qe=0;qe<ze;qe++){var Ct=Me[qe];(E||Ct!==de)&&ie.Oj(x,Ct,se,null,Se,Le,!1)}In.free(Le),x.globalAlpha=pe}}}}}function dt(a){var y=a.box;if(y!==null){var b=a.observed;if(b!==null){a.Fc=!0,b=b.viewportBounds;var E=y.selectionObject,x=an.alloc();x.h(b.width,b.height),E.desiredSize=x,an.free(x),a=2/a.scale,E instanceof oo&&(E.strokeWidth=a),y.location=new it(b.x-a/2,b.y-a/2),y.isSelected=!0}}}xe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return hs;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,b,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),dt(this),this.fc.scale=b,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},Jn.Object.defineProperties(xe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xe&&Lt("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 b=this.ta,E=this.ib;b&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,b.width,b.height))}else this.Ha(null),dt(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),dt(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),xe.className="Overview";function Pt(){la.call(this),this.j=null}Sn(Pt,la),Pt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var b=a.lastInput;return!b.left||a.currentTool!==this&&(!this.isBeyondDragSize()||b.isTouchEvent&&b.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(b=y.viewportBounds,this.j=new it(b.width/2,b.height/2),a=a.firstInput.documentPoint,y.position=new it(a.x-this.j.x,a.y-this.j.y)),!0)},Pt.prototype.doActivate=function(){this.j=null,la.prototype.doActivate.call(this)},Pt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Pt.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var b=a.box;if(b!==null){if(this.j===null){var E=a.firstInput.documentPoint;b=b.location,this.j=new it(E.x-b.x,E.y-b.y)}a=a.lastInput.documentPoint,y.position=new it(a.x-this.j.x,a.y-this.j.y)}}},Pt.className="OverviewDraggingTool";function wt(){vi(this),this.H=Jc,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=hs,this.hb=!0,this.cg=null,this.ob=200}wt.prototype.toString=function(){return"CommandHandler"},wt.prototype.Xe=function(a){this.H=a},wt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,b=Ci?y.meta:y.control,E=y.shift,x=y.alt,z=y.key;!b||z!=="C"&&z!=="Insert"?b&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():b&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():b&&z==="Y"||x&&E&&z==="Backspace"?this.canRedo()&&this.redo():b&&z==="Z"||x&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():b&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(b?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(b?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(b?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(b?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?b&&a.allowVerticalScroll?a.scroll("document","up"):!b&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?b&&a.allowVerticalScroll?a.scroll("document","down"):!b&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():b&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():b&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():b&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},wt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},wt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof aa&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},wt.prototype.canStopCommand=function(){return!0},wt.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 b=a.nodes;b.next();)b.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},wt.prototype.canSelectAll=function(){return this.diagram.allowSelect},wt.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 ar,b=a.selection.iterator;b.next();)af(y,b.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},wt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},wt.prototype.copySelection=function(){var a=this.diagram,y=new ar;for(a=a.selection.iterator;a.next();)af(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(b){return b.canCopy()});this.copyToClipboard(y)},wt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},wt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},wt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},wt.prototype.copyToClipboard=function(a){var y=this.diagram,b=null;if(a===null)Yd=null,Xd="";else{b=y.model;var E=!1,x=!1,z=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(x=b.Ij,b.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=x),b=new Qn,b.addAll(z),Yd=b,Xd=y.model.dataFormat}}y.R("ClipboardChanged",b)},wt.prototype.pasteFromClipboard=function(){var a=new ar,y=Yd;if(y===null)return a;var b=this.diagram;if(Xd!==b.model.dataFormat)return a;var E=b.model,x=!1,z=!1,ne=null;try{E.Tl()&&(x=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ne=b.Kj(y,b,!1)}finally{for(E.Tl()&&(E.Jj=x),E.Wj()&&(E.Ij=z),y=ne.iterator;y.next();)b=y.value,E=y.key,b.location.w()||(E.location.w()?b.location=E.location:!b.position.w()&&E.position.w()&&(b.position=E.position)),a.add(b)}return a},wt.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 b=this.pasteFromClipboard();0<b.count&&y.clearSelection(!0);for(var E=b.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var x=y.computePartsBounds(y.selection);if(x.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Wd(y,z,new it(a.x-x.centerX,a.y-x.centerY),y.Wm,!1)}}y.R("ClipboardPasted",b)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},wt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Yd===null||Yd.count===0||Xd!==a.model.dataFormat)},wt.prototype.undo=function(){this.diagram.undoManager.undo()},wt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},wt.prototype.redo=function(){this.diagram.undoManager.redo()},wt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},wt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===pl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},wt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==pl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},wt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===pl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},wt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==pl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},wt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},wt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},wt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var b=a.position,E=a.scale;ms(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=hs):(this.Jt=E,this.sw=b.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ql(y)},wt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},wt.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 b=y.animationManager;ms(b,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var x=Wt(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 $r&&se.isTreeExpanded&&(!(se instanceof ro)||se.isSubGraphExpanded);)se=x.pop();0<x.length?(se instanceof Ai&&y.tv(se.actualBounds),se instanceof $r&&!se.isTreeExpanded&&(se.isTreeExpanded=!0),se instanceof ro&&!se.isSubGraphExpanded&&(se.isSubGraphExpanded=!0)):(se instanceof Ai&&y.es(se.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){ki(z,(b.isEnabled?b.duration:0)+E)};y.Bj("LayoutCompleted",ne),z()}}else{var ie=y.position.copy();y.es(a.actualBounds),ie.Xa(y.position)&&b.Cc()}}};function Wt(a,y,b){if(y.isVisible())return b;if(y instanceof Mo)Wt(a,y.adornedPart,b);else if(y instanceof _r){var E=y.fromNode;E!==null&&Wt(a,E,b),y=y.toNode,y!==null&&Wt(a,y,b)}else y instanceof $r&&(E=y.labeledLink,E!==null&&Wt(a,E,b),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||b.push(E),Wt(a,E,b))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||b.push(y),Wt(a,y,b));return b}wt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Ai)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},wt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ms(y.animationManager,"Collapse Tree");var b=new Qn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof $r&&x.isTreeExpanded&&(x.collapseTree(),b.add(x))}y.R("TreeCollapsed",b)}finally{y.eb("Collapse Tree")}},wt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof $r&&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 $r&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},wt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ms(y.animationManager,"Expand Tree");var b=new Qn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof $r&&!x.isTreeExpanded&&(x.expandTree(),b.add(x))}y.R("TreeExpanded",b)}finally{y.eb("Expand Tree")}},wt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof $r)||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 $r&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},wt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var b=this.archetypeGroupData;if(b!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var x=new Qn,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&x.add(ne)}for(var ie=new Qn,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||ie.add(de)}if(0<ie.count){var Se=ie.first().containingGroup;if(Se!==null)for(;Se!==null;){x=!1;for(var Le=ie.iterator;Le.next();)if(!Le.value.Td(Se)){x=!0;break}if(x)Se=Se.containingGroup;else break}if(b instanceof ro)Tc(b),E=b.copy(),E!==null&&a.add(E);else if(y.Yu(b)){var Me=y.copyNodeData(b);Xt(Me)&&(y.xf(Me),E=a.ii(Me))}if(E!==null){Se!==null&&this.isValidMember(Se,E)&&(E.containingGroup=Se);for(var ze=ie.iterator;ze.next();){var qe=ze.value;this.isValidMember(E,qe)&&(qe.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},wt.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=Mr();for(a=a.iterator;a.next();){var b=a.value;b instanceof _r||y.push(b)}a=new ar,b=y.length;for(var E=0;E<b;E++){for(var x=y[E],z=!0,ne=0;ne<b;ne++)if(x.Td(y[ne])){z=!1;break}z&&a.add(x)}return Ur(y),a}wt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof _r)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var b=a.memberValidation;if(b!==null&&!b(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return b=this.memberValidation,b!==null?b(a,y):!0},wt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.model;if(b.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new Qn;if(a!==null)E.add(a);else for(var x=y.selection.iterator;x.next();){var z=x.value;z instanceof ro&&z.canUngroup()&&E.add(z)}var ne=new Qn;if(0<E.count){y.clearSelection(!0);for(var ie=E.iterator;ie.next();){var se=ie.value;se.expandSubGraph();var de=se.containingGroup,pe=de!==null&&de.data!==null?b.wa(de.data):void 0;ne.addAll(se.memberParts);for(var Se=ne.iterator;Se.next();){var Le=Se.value;if(Le.isSelected=!0,!(Le instanceof _r)){var Me=Le.data;Me!==null?b.mp(Me,pe):Le.containingGroup=de}}y.remove(se)}}y.R("SelectionUngrouped",E,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},wt.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 ro))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ro&&y.canUngroup())return!0;return!1},wt.prototype.addTopLevelParts=function(a,y){var b=!0;for(a=Zn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:b=!1)}return b},wt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ms(y.animationManager,"Collapse SubGraph");var b=new Qn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof ro&&x.isSubGraphExpanded&&(x.collapseSubGraph(),b.add(x))}y.R("SubGraphCollapsed",b)}finally{y.eb("Collapse SubGraph")}},wt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof ro&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ro&&y.isSubGraphExpanded)return!0;return!1},wt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ms(y.animationManager,"Expand SubGraph");var b=new Qn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),b.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var x=E.value;x instanceof ro&&!x.isSubGraphExpanded&&(x.expandSubGraph(),b.add(x))}y.R("SubGraphExpanded",b)}finally{y.eb("Expand SubGraph")}},wt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof ro&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof ro&&!y.isSubGraphExpanded)return!0;return!1},wt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,b=y.toolManager.findTool("TextEditing");if(b!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var x=E.value;if(x.canEdit()){a=x;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Sa&&z.editable})}a!==null&&(y.currentTool=null,b.textBlock=a,y.currentTool=b)}},wt.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 Sa))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(b){return b instanceof Sa&&b.editable}),a!==null))return!0;return!1},wt.prototype.showContextMenu=function(a){var y=this.diagram,b=y.toolManager.findTool("ContextMenu");if(b!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=b.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,x=null;a instanceof rn?x=a.ga(Ji):y.viewportBounds.ca(E.documentPoint)||(x=y.viewportBounds,x=new it(x.x+x.width/2,x.y+x.height/2)),x!==null&&(E.viewPoint=y.op(x),E.documentPoint=x,E.left=!1,E.right=!0,E.up=!0),y.currentTool=b,Xa(b,!1,a)}},wt.prototype.canShowContextMenu=function(a){var y=this.diagram,b=y.toolManager.findTool("ContextMenu");return b===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),b.findObjectWithContextMenu(a)!==null)},wt.prototype.computeEffectiveCollection=function(a,y){var b=this.diagram,E=b.toolManager.findTool("Dragging"),x=b.currentTool===E;if(y===void 0&&(y=x?E.dragOptions:b.Wm),E=new An,a===null)return E;for(var z=a.iterator;z.next();)$c(b,E,z.value,x,y);if(b.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof _r&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},Jn.Object.defineProperties(wt.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||Lt("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}}}),wt.className="CommandHandler",Jp=function(){return new wt};function rn(){vi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new it(NaN,NaN).freeze(),this.jd=_i,this.Ab=new Mi,this.wh=new Mi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ts,this.uc=new In(NaN,NaN,NaN,NaN).freeze(),this.Ib=new In(NaN,NaN,NaN,NaN).freeze(),this.dc=new In(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ns,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 Cr,yr,yi,xi,Di,$i,yo,lo,Ao,Qo;rn.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=fr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},rn.prototype.Vw=function(a){var y=this.Dh;if(Fn(y)){for(var b=0;b<y.length;b++)if(y[b]===a)return}else this.Dh=y=[];y.push(a)},rn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},rn.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 b=this.Dh[y];a[b]=this[b]}return a},rn.prototype.copy=function(){return this.clone()},Oe=rn.prototype,Oe.qb=function(a){a.classType===_r?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Lt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===rn&&(this.stretch=a)},Oe.toString=function(){return Wn(this.constructor)+"#"+Fi(this)},Oe.th=function(){this.A!==null&&(this.A.nc=!0)};function uo(a){a.A===null?a.A=new Xi:a.A.nc&&(a.A=a.A.copy())}Oe.Xc=function(){if(this.ba===null){var a=new So;a.Xi=Qi,a.yj=Qi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Oe.cb=function(a,y,b,E,x,z,ne){var ie=this.part;if(ie!==null&&(ie.gk(a,y,b,E,x,z,ne),b===this&&a===oa&&Ne(this)&&ya(this,ie,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 An),ne=z.undoManager.transactionLevel===0,a.startCondition===fu?ne=!0:a.startCondition===hh&&(ne=!1),ne?(z=new ii,Cu(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,E,x),z.start()):(ms(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,x)))),this instanceof Tr&&b===ie&&(ie.l&16777216)!==0&&ie.data!==null))for(b=this.O.s,E=b.length,x=0;x<E;x++)ie=b[x],ie instanceof Tr&&Hf(ie,function(se){se.data!==null&&se.l&16777216&&se.La(y)})};function ya(a,y,b){var E=a.ih();if(E!==null)for(var x=a.localBindings.iterator;x.next();){var z=x.value,ne=null;if(z.sourceName!==null){if(ne=R1(z,E,a),ne===null)continue;z.sp(a,ne,b,null)}else if(z.isToModel){var ie=y.diagram;ie===null||ie.skipsModelSourceBindings||z.sp(a,ie.model.modelData,b,E)}else{if(ie=E.data,ie===null)continue;var se=y.diagram;se===null||se.skipsModelSourceBindings||z.sp(a,ie,b,E)}ne===a&&(ie=E.ks(z.Ai),ie!==null&&z.Mv(ie,ne,b))}}Oe.ks=function(a){return this.bindingId===a?this:null},Oe.g=function(a,y,b){this.cb(oa,a,this,y,b)},Oe.Ge=function(a,y,b,E){var x=this.uc;if(x.h(a,y,b,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Mi);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),z.pp(x)}};function Ts(a,y,b,E){return a.pickable===!1?!1:(E.multiply(a.transform),b?a.Yc(y,E):a.fh(y,E))}Oe.tx=function(a,y,b){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),b?Gn(a.x,a.y,0,0,0,E.height)<=y||Gn(a.x,a.y,0,E.height,E.width,E.height)<=y||Gn(a.x,a.y,E.width,E.height,E.width,0)<=y||Gn(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Oe.se=function(){return!0},Oe.ca=function(a){var y=it.alloc();y.assign(a),this.transform.Ga(y);var b=this.actualBounds;if(!b.w())return it.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var x=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ne=z/2,ie=this.naturalBounds;E=this.Df()*E.scale;var se=1/E;if(ie.width*E<x&&ie.height*E<x)return a=ia(b.x-ne*se,b.y-ne*se,b.width+z*se,b.height+z*se,y.x,y.y),it.free(y),a}return x=!1,(this instanceof Mo||this instanceof oo?ia(b.x-5,b.y-5,b.width+10,b.height+10,y.x,y.y):b.ca(y))&&(this.tb&&!this.tb.ca(y)?x=!1:this.areaBackground!==null&&b.ca(y)||this.Ma!==null&&this.dc.ca(a)?x=!0:x=this.gh(a)),it.free(y),x},Oe.gh=function(a){var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Oe.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=In.allocAt(0,0,y.width,y.height);var b=this.transform,E=!1,x=it.allocAt(a.x,a.y);return y.ca(b.Cd(x))&&(x.h(a.x,a.bottom),y.ca(b.Cd(x))&&(x.h(a.right,a.bottom),y.ca(b.Cd(x))&&(x.h(a.right,a.y),y.ca(b.Cd(x))&&(E=!0)))),it.free(x),In.free(y),E},Oe.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.naturalBounds,E=!1,x=it.allocAt(0,0);return a.ca(y.Ga(x))&&(x.h(0,b.height),a.ca(y.Ga(x))&&(x.h(b.width,b.height),a.ca(y.Ga(x))&&(x.h(b.width,0),a.ca(y.Ga(x))&&(E=!0)))),it.free(x),E},Oe.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var b=this.naturalBounds,E=it.allocAt(0,0),x=it.allocAt(0,b.height),z=it.allocAt(b.width,b.height),ne=it.allocAt(b.width,0),ie=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(x))||a.ca(y.Ga(z))||a.ca(y.Ga(ne)))ie=!0;else{b=In.allocAt(0,0,b.width,b.height);var se=it.allocAt(a.x,a.y);b.ca(y.Cd(se))?ie=!0:(se.h(a.x,a.bottom),b.ca(y.Cd(se))?ie=!0:(se.h(a.right,a.bottom),b.ca(y.Cd(se))?ie=!0:(se.h(a.right,a.y),b.ca(y.Cd(se))&&(ie=!0)))),it.free(se),In.free(b),!ie&&(tn.us(a,E,x)||tn.us(a,x,z)||tn.us(a,z,ne)||tn.us(a,ne,E))&&(ie=!0)}return it.free(E),it.free(x),it.free(z),it.free(ne),ie},Oe.ga=function(a,y){if(y===void 0&&(y=new it),a instanceof fi){var b=this.naturalBounds;y.h(a.x*b.width+a.offsetX,a.y*b.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Oe.mi=function(a){a===void 0&&(a=new In);var y=this.naturalBounds,b=this.oe,E=it.allocAt(0,0).transform(b);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(b),vo(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(b),vo(a,E.x,E.y,0,0),E.h(0,y.height).transform(b),vo(a,E.x,E.y,0,0),it.free(E),a},Oe.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},Oe.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Oe.qs=function(a,y){return y===void 0&&(y=new it),y.assign(a),this.oe.Cd(y),y},Oe.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},Oe.Sj=function(a,y,b,E,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),ie=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),Le=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,tn.Ff(z.left,z.top,z.right,z.bottom,a,y,b,E,x)):(ne=a*ie+y*de+Se,a=a*se+y*pe+Le,y=b*ie+E*de+Se,b=b*se+E*pe+Le,x.h(0,0),E=this.naturalBounds,b=tn.Ff(0,0,E.width,E.height,ne,a,y,b,x),x.transform(z),b)},rn.prototype.measure=function(a,y,b,E){if(Nt(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),b=Math.max((b||0)-z,0),E=Math.max((E||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=b||0,ne=E||0;var ie=this instanceof Tr;switch(jl(this,!0)){case yr:ne=x=0,ie&&(y=a=1/0);break;case Cr:isFinite(a)&&a>b&&(x=a),isFinite(y)&&y>E&&(ne=y);break;case xi:isFinite(a)&&a>b&&(x=a),ne=0,ie&&(y=1/0);break;case Di:isFinite(y)&&y>E&&(ne=y),x=0,ie&&(a=1/0)}ie=this.maxSize;var se=this.minSize;x>ie.width&&se.width<ie.width&&(x=ie.width),ne>ie.height&&se.height<ie.height&&(ne=ie.height),b=Math.max(x,se.width),E=Math.max(ne,se.height),ie.width<b&&(b=Math.min(se.width,b)),ie.height<E&&(E=Math.min(se.height,E)),a=Math.min(ie.width,a),y=Math.min(ie.height,y),a=Math.max(b,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=b,b=E,E=z),this.uc.ka(),this.Wl(a,y,b,E),this.uc.freeze(),this.uc.w()||Lt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ut(this,!1)}},rn.prototype.Wl=function(){},rn.prototype.Dd=function(){return!1},rn.prototype.arrange=function(a,y,b,E,x){this.Uk();var z=In.alloc();z.assign(this.Ib),this.Ib.ka(),Zt(this)===!1?this.Ib.h(a,y,b,E):this.eh(a,y,b,E),this.Ib.freeze(),x===void 0?this.tb=null:this.tb=x,b=!1,x!==void 0?b=!0:(x=this.panel,x!==null&&Ph(x)&&(x=x.panel),x!==null&&(x=x.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),b=y+E.height,E=a+E.width,b=!(0<=a+.05&&E<=x.width+.05&&0<=y+.05&&b<=x.height+.05),this instanceof Sa&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(b=!0)),this.l=b?this.l|256:this.l&-257,this.Ib.w()||Lt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Un(this,!1),In.free(z)},Oe=rn.prototype,Oe.eh=function(){};function Cl(a,y,b,E,x){if(a.Ib.h(y,b,E,x),!a.desiredSize.w()){var z=a.uc;b=a.Kg,y=b.right+b.left;var ne=b.top+b.bottom;switch(b=z.width+y,z=z.height+ne,E+=y,x+=ne,y=jl(a,!0),b===E&&z===x&&(y=yr),y){case yr:(b>E||z>x)&&(Ut(a,!0),a.measure(b>E?E:b,z>x?x:z,0,0));break;case Cr:Ut(a,!0),a.measure(E,x,0,0);break;case xi:Ut(a,!0),a.measure(E,z,0,0);break;case Di:Ut(a,!0),a.measure(b,x,0,0)}}}Oe.Xl=function(a,y){var b=this.part;b!==null&&b.diagram!==null&&(b.selectionObject!==this&&b.resizeObject!==this&&b.rotateObject!==this||Jv(b,!0),this.N(),Oi(a,y)||(b.oh(),this.Pn(b)))},Oe.Pn=function(a){this.portId!==null&&(Jv(a,!0),a instanceof $r&&QS(a,this))},Oe.gc=function(a,y){if(!Gu(this,a,y)&&this.visible){var b=this.opacity;if(b!==0){var E=1;b!==1&&(E=a.globalAlpha,a.globalAlpha=E*b);var x="";this.filter!==""&&(x=a.filter,a.filter=this.filter);var z=this instanceof Tr&&Ph(this),ne=this.Ib;if(z){var ie=this.Ib,se=this.dc,de=this.areaBackground,pe=this.Ma;de===null&&pe===null||a.yc(),de!==null&&(Ba(this,a,de,!0,!0,se,ie),de instanceof _o&&de.type===hc?(a.beginPath(),a.rect(ie.x,ie.y,ie.width,ie.height),a.ng(de)):a.fillRect(ie.x,ie.y,ie.width,ie.height)),pe!==null&&(Ba(this,a,pe,!0,!1,se,ie),pe instanceof _o&&pe.type===hc?(a.beginPath(),a.rect(ie.x,ie.y,ie.width,ie.height),a.ng(pe)):a.fillRect(ie.x,ie.y,ie.width,ie.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,ie=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 Le;if(!(Le=y.$i||!pe)){var Me=this.naturalBounds;Le=this.wh;var ze=Le.m11,qe=Le.m21,Ct=Le.dx,vt=Le.m12,Dt=Le.m22,Bt=Le.dy,Gt,$t=Gt=0;Le=Gt*ze+$t*qe+Ct;var Rn=Gt*vt+$t*Dt+Bt;Gt=Me.width+Se,$t=0;var Jr=Gt*ze+$t*qe+Ct;Gt=Gt*vt+$t*Dt+Bt,$t=Math.min(Le,Jr);var gi=Math.min(Rn,Gt),di=Math.max(Le+0,Jr)-$t,Br=Math.max(Rn+0,Gt)-gi;Le=$t,Rn=gi,Gt=Me.width+Se,$t=Me.height+Se,Jr=Gt*ze+$t*qe+Ct,Gt=Gt*vt+$t*Dt+Bt,$t=Math.min(Le,Jr),gi=Math.min(Rn,Gt),di=Math.max(Le+di,Jr)-$t,Br=Math.max(Rn+Br,Gt)-gi,Le=$t,Rn=gi,Gt=0,$t=Me.height+Se,Jr=Gt*ze+$t*qe+Ct,Gt=Gt*vt+$t*Dt+Bt,$t=Math.min(Le,Jr),gi=Math.min(Rn,Gt),di=Math.max(Le+di,Jr)-$t,Br=Math.max(Rn+Br,Gt)-gi,Le=$t,Rn=gi,Se=y.viewportBounds,Me=Se.x,ze=Se.y,Le=!(Le>Se.width+Me||Me>di+Le||Rn>Se.height+ze||ze>Br+Rn)}if(Le){if(Le=(this.l&256)!==0,a.clipInsteadOfFill&&(Le=!1),this instanceof Sa&&(a.font=this.font),Le){if(Rn=ie.se()?ie.naturalBounds:ie.actualBounds,di=Math.max(ne.x,Rn.x),Br=Math.max(ne.y,Rn.y),Se=Math.min(ne.right,Rn.right)-di,Me=Math.min(ne.bottom,Rn.bottom)-Br,ze=this.tb,ze!==null&&(di=ze.x,Br=ze.y,Se=ze.width,Me=ze.height),di>ne.width+ne.x||ne.x>Rn.width+Rn.x){b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x);return}a.save(),a.beginPath(),a.rect(di,Br,Se,Me),a.clip()}if(pe){if(!de.isVisible()){b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x);return}se&&(Rn=de.shadowOffset,a.Ev(Rn.x*y.scale*this.scale*y.Mb,Rn.y*y.scale*this.scale*y.Mb,de.shadowBlur),Nu(a),a.shadowColor=de.shadowColor)}se&&this.shadowVisible===!0?Nu(a):se&&this.shadowVisible===!1&&Zs(a),de=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Tu(this,a,de,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),se&&Bs(this,ie)&&this.shadowVisible===null&&Zs(a),this.Ma!==null&&(a.yc(),eu(this,a,de,ne)),se&&(this.Ma!==null||this.areaBackground!==null||Bs(this,ie))?(we(this,!0),this.shadowVisible===null&&Zs(a)):we(this,!1),this.hh(a,y),se&&this.l&512&&Nu(a),pe&&se&&Zs(a),Le&&(a.restore(),a.Vc(this instanceof Tr)),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)))}}b!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=x)}}};function Bs(a,y){return y===null?!1:(Ph(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Tr.Auto||y.type===Tr.Spot)&&y.Pb()!==a)}Oe.Dv=function(){};function Tu(a,y,b,E){Ba(a,y,a.areaBackground,!0,!0,b,E),a.areaBackground instanceof _o&&a.areaBackground.type===hc?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function eu(a,y,b,E){var x=a.kq(),z=b.x,ne=b.y,ie=b.width+x,se=b.height+x;Ba(a,y,a.Ma,!0,!1,b,E),a.Ma instanceof _o&&a.Ma.type===hc?(y.beginPath(),y.rect(z-x/2,ne-x/2,ie,se),y.ng(a.Ma)):y.fillRect(z-x/2,ne-x/2,ie,se)}function sl(a,y,b){for(var E=y.O.s,x=E.length,z=-1,ne=0;ne<x;ne++)if(E[ne]===a){z=ne;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(b):y.svg.Ma?y.svg.Ma.after(b):y.type===Tr.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(b)):y.svg.prepend(b);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(b):(a=y.M(a-1).svg,a!==null?a.after(b):y.svg.appendChild(b))}}function Gu(a,y,b){if(!(y instanceof Go))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,x=a.nk(y);if(a.kk(y,b,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):E&&sl(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*b.scale*a.scale*b.Mb,z.y*b.scale*a.scale*b.Mb,a.shadowBlur),Nu(y),y.shadowColor=a.shadowColor}a instanceof Sa&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof Tr;var ie=a instanceof Tr?Ph(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&&ie?(ju(y,1,0,0,1,0,0),a.svg=y.ad):z?(ju(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):ju(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],Tu(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?(ie&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),eu(a,y,x,se),ie&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],eu(a,y,x,se)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,x=a.part,ie=!1,x&&b.Gf("drawShadows")&&(ie=x.isShadowed),y.clipInsteadOfFill&&(ie=!1),a.Dd()&&ie&&Nu(y),ie&&a.shadowVisible===!0?Nu(y):ie&&a.shadowVisible===!1&&Zs(y),x=a.panel,ie&&Bs(a,x)&&a.shadowVisible===null&&Zs(y),y.Il&&(de=b.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)),ie&&(a.Ma!==null||a.areaBackground!==null||Bs(a,x))?(we(a,!0),a.shadowVisible===null&&Zs(y)):we(a,!1),x=ie,a.hh(y,b),z&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,ie=z?a.svg:y.yd,de=a.svg,!z&&de!==null&&ie!==de&&de.parentNode===a.panel.svg?(a.svg.replaceWith(ie),a.svg=ie,ie!==null&&a.$o(y,E,se,ie),Gl(y,de),!0):(a.svg=ie,ne!==null&&ie===null&&(Uc(y),y.nh.pop()),ie===null||(a.$o(y,E,se,ie),y.Il&&(b=b.computePixelRatio(),a.Dv(ie,"drop-shadow("+y.shadowOffsetX/b+"px "+y.shadowOffsetY/b+"px "+y.shadowBlur/b/2+"px "+y.shadowColor+")")),x&&a.l&512&&Nu(y),a.Dd()&&Zs(y),b=a.Dd()?a.opacity*y.globalAlpha:a.opacity,b!==1&&ie.setAttributeNS(null,"opacity",b.toString()),a.filter!==""&&ie.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ie):y.Nj.prepend(ie),y.ti=ie):E!==null&&sl(a,E,ie),ne!==null&&ne(a,ie)),!0)}Oe.$o=function(a,y,b,E){var x=(this.l&256)!==0;if(a.clipInsteadOfFill&&(x=!1),x){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(b.x,z.x),x=Math.max(b.y,z.y);var ne=Math.min(b.right,z.right)-y;b=Math.min(b.bottom,z.bottom)-x,z=this.tb,z!==null&&(y=z.x,x=z.y,ne=z.width,b=z.height),z=E.getAttribute("clip-path");var ie=null;z!==null&&(ie=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ie===null?(z="CLIP"+fo++,ie=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:x,width:ne,height:b}),this instanceof Tr&&(x=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+x.m11+", "+x.m12+", "+x.m21+", "+x.m22+", "+x.dx+", "+x.dy+")")),ie.appendChild(y),a.svg.appendChild(ie),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ie.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",x.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",b.toString()))}else E.removeAttributeNS(null,"clip-path"),Gl(a,E)};function Gl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function tl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),b=a.svg.ownerDocument;if(y!==null){y=Pr(y);for(var E=y.next();!E.done;E=y.next())E=b.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Oe.hh=function(){},Oe.lv=function(){this.Uc=!0},Oe.kk=function(a,y,b){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"&&b||y.nodeName==="g"&&!b)return!1;var E=this.transform,x=this instanceof Tr?Ph(this):!1;if(!(this instanceof Tr&&x))if(this instanceof gu){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&ml(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),b?y.lastElementChild.setAttributeNS(null,"transform",Ka(a)):y.setAttributeNS(null,"transform",Ka(a))}else if(!b||this instanceof Tr)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof oo){z=y.getElementsByTagName("path");for(var ne=0;ne<z.length;ne++)z[ne].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ne=E.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],Tu(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&&Hc(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Hc(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((x||b&&!(this instanceof Tr))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),eu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Hc(a,y.Ma),b=y.Ma.getAttribute("filter"),b!==null&&a.ad.setAttribute("filter",b),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&Hc(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Oe.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 Ba(a,y,b,E,x,z,ne){if(b!==null){var ie=1,se=1;if(typeof b=="string")E?y.fillStyle=b:y.strokeStyle=b;else if(b.type===Ch)E?y.fillStyle=b.color:y.strokeStyle=b.color;else{var de=a.kq();if(ie=z.width,se=z.height,x?(ie=ne.width,se=ne.height):E||(ie+=de,se+=de),(z=y instanceof wc)&&b.xe&&(b.type===ug||b.yk===ie&&b.ft===se))var pe=b.xe;else{var Se=0,Le=0,Me=0,ze=0,qe=0,Ct=0;if(Ct=qe=0,x?(qe=ne.x,Ct=ne.y):E||(qe-=de/2,Ct-=de/2),Se=b.start.x*ie+b.start.offsetX,Le=b.start.y*se+b.start.offsetY,Me=b.end.x*ie+b.end.offsetX,ze=b.end.y*se+b.end.offsetY,Se+=qe,Me+=qe,Le+=Ct,ze+=Ct,b.type===eh)pe=y.createLinearGradient(Se,Le,Me,ze);else if(b.type===hc)Ct=isNaN(b.endRadius)?Math.max(ie,se)/2:b.endRadius,isNaN(b.startRadius)?(qe=0,Ct=Math.max(ie,se)/2):qe=b.startRadius,pe=y.createRadialGradient(Se,Le,qe,Me,ze,Ct);else if(b.type===ug)try{pe=y.createPattern(b.pattern,"repeat")}catch(Dt){pe=null}if(b.type!==ug&&(x=b.colorStops,x!==null))for(x=x.iterator;x.next();)pe.addColorStop(x.key,x.value);if(z&&(b.xe=pe,pe!==null&&(b.yk=ie,b.ft=se),pe===null&&b.type===ug&&b.yk!==-1)){b.yk=-1;var vt=a.diagram;vt!==null&&b.yk===-1&&ki(function(){vt.redraw()},600)}}E?y.fillStyle=pe:y.strokeStyle=pe}}}Oe.rg=function(a){if(a instanceof Tr)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},Oe.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Oe.If=function(){for(var a=this instanceof Tr?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()){ut(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 b=a.naturalBounds;a.no(y,b.x,b.y,b.width,b.height)}ut(a,!1),At(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,At(a,!1)):y.oe!==null&&(b=a.wh,b.reset(),y.se()?b.multiply(y.wh):y.panel!==null&&b.multiply(y.panel.wh),b.multiply(a.Ab),a.Kk=a.scale*y.Kk,At(a,!1)))}Oe.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=it.alloc();z.yi(y,b,E,x,Ji),a.rotate(this.Kb,z.x,z.y),it.free(z)}},Oe.v=function(a){if(!Nt(this)){a===void 0&&(a=!1),Ut(this,!0),Un(this,!0);var y=this.panel;y===null||a||y.v()}},Oe.Uj=function(){Nt(this)||(Ut(this,!0),Un(this,!0))};function Rl(a){if(!Zt(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof $r&&a.Bd(),y.$b())),Un(a,!0)}}Oe.Uk=function(){!(this.l&2048)&&(ut(this,!0),At(this,!0))},Oe.Wu=function(){At(this,!0)},Oe.N=function(){var a=this.part;a!==null&&a.N()};function jl(a,y){var b=a.stretch,E=a.panel;return E!==null&&E.type===Tr.Table?xc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Tr.Auto&&E.Pb()===a?Ds(a,Cr,y):b===$i?E!==null?E.type===Tr.Spot&&E.Pb()===a?Ds(a,Cr,y):(b=E.defaultStretch,b===$i?Ds(a,yr,y):Ds(a,b,y)):Ds(a,yr,y):Ds(a,b,y)}function xc(a,y,b,E){var x=a.stretch;if(x!==$i)return Ds(a,x,E);var z=x=null;switch(y.stretch){case Di:z=!0;break;case Cr:z=!0}switch(b.stretch){case xi:x=!0;break;case Cr:x=!0}return y=a.panel.defaultStretch,x===null&&(x=y===xi||y===Cr),z===null&&(z=y===Di||y===Cr),x===!0&&z===!0?Ds(a,Cr,E):x===!0?Ds(a,xi,E):z===!0?Ds(a,Di,E):Ds(a,yr,E)}function Ds(a,y,b){if(b)return y;if(y===yr||(b=a.desiredSize,b.w()))return yr;if(a=a.angle,!isNaN(b.width))if(a!==90&&a!==270){if(y===xi)return yr;if(y===Cr)return Di}else{if(y===Di)return yr;if(y===Cr)return xi}if(!isNaN(b.height))if(a!==90&&a!==270){if(y===Di)return yr;if(y===Cr)return xi}else{if(y===xi)return yr;if(y===Cr)return Di}return y}function we(a,y){a.l=y?a.l|512:a.l&-513}function Ne(a){return(a.l&1024)!==0}function Ve(a,y){a.l=y?a.l|1024:a.l&-1025}function ut(a,y){a.l=y?a.l|2048:a.l&-2049}function At(a,y){a.l=y?a.l|4096:a.l&-4097}function Nt(a){return(a.l&8192)!==0}function Ut(a,y){a.l=y?a.l|8192:a.l&-8193}function Zt(a){return(a.l&16384)!==0}function Un(a,y){a.l=y?a.l|16384:a.l&-16385}Oe.Gj=function(){this.svg=null},Oe.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Oe.Av=function(){},Oe.zv=function(a){return this.pa=a,Rl(this),!0},Oe.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Oe.kq=function(){return 0};function nr(a){var y=a.part;if(y instanceof $r&&(a.portId!==null||a===y.port)){var b=y.diagram;b===null||b.undoManager.isUndoingRedoing||QS(y,a)}}function qn(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Tr?a instanceof $r?a.Bd():a.qm(a,function(b){nr(b)}):nr(a))}Oe.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new ss(a,y,b,E):x=a,x.xd=this,a=this.ih(),a!==null&&yS(a)&&Lt("Cannot add a Binding to a template that has already been copied: "+x),this.localBindings===null&&(this.localBindings=new Qn),this.localBindings.add(x),this},Oe.set=function(a){return Object.assign(this,a),this},Oe.Du=function(a){return Kn(this,a),this},Oe.apply=function(a){return a(this),this},Oe.nm=function(a){return ph(this,a),this},Oe.pz=function(){return this.ih()},Oe.ih=function(){for(var a=this instanceof Tr?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Oe.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new An),this.animationTriggers.add(a.propertyName,a),this};function Hn(a,y){for(var b=1;b<arguments.length;++b);b=arguments;var E=null,x=null;if(typeof a=="function")x=a;else if(typeof a=="string"){var z=Gi.I(a);typeof z=="function"?(b=fr(arguments),E=z(b),Xt(E)||Lt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):x=ur.go[a]}if(E===null&&(x!=null&&x.constructor||Lt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new x),x=1,E instanceof Dn&&1<b.length){z=E;var ne=b[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(qp(z,ne),x++)}for(;x<b.length;x++)z=b[x],z===void 0?Lt("Undefined value at argument "+x+" for object being constructed by GraphObject.make: "+E):Kn(E,z);return E}function Kn(a,y){if(typeof y=="string")if(a instanceof Sa)a.text=y;else if(a instanceof oo)a.figure=y;else if(a instanceof gu)a.source=y;else if(a instanceof Tr)y=zc.I(y),y!==null&&(a.type=y);else if(a instanceof _o){var b=li(_o,y);b!==null?a.type=b:Lt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Nr?(y=li(Nr,y),y!==null&&(a.type=y)):a instanceof Eo&&(y=li(Eo,y),y!==null&&(a.type=y));else if(y instanceof rn)a instanceof Tr||Lt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof vs){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof vs?e0(E,y):Lt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof mn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof As)a.type=y;else if(y instanceof ss)a instanceof rn||a instanceof vs?a.bind(y):Lt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Hl)a instanceof rn?a.Jv(y):Lt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Wa)a instanceof Nr&&a.type===Nr.o?a.figures.add(y):Lt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Eo)a instanceof Wa?a.segments.add(y):Lt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Pa)a instanceof Dn||a instanceof ro?a.layout=y:Lt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(b=0;b<y.length;b++)Kn(a,y[b]);else if(typeof y=="object"&&y!==null)if(a instanceof _o){b=new qr;for(var x in y)E=parseFloat(x),isNaN(E)?b[x]=y[x]:a.addColorStop(E,y[x]);ph(a,b)}else if(a instanceof vs){y.row!==void 0?(x=y.row,(x==null||x===1/0||isNaN(x)||0>x)&&Lt("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)&&Lt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+x),a.isRow=!1,a.index=x),x=new qr;for(b in y)b!=="row"&&b!=="column"&&(x[b]=y[b]);ph(a,x)}else ph(a,y);else Lt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function pr(a,y){Gi.add(a,y)}function ri(a,y,b){b===void 0&&(b=null);var E=a[1];if(typeof b=="function"?b(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof b=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Jn.Object.defineProperties(rn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Xi),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 Xi),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 Xi),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(uo(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&&(uo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:iu},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new eo),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===iu&&(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 eo),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 eo),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Dr},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new eo),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:$i},set:function(a){var y=this.stretch;y!==a&&(uo(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&&(uo(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)&&kr(a,"0 <= value <= 1",rn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(jf(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(jf(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(),qn(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&&xh(a,"GraphObject.areaBackground"),a instanceof _o&&a.freeze(),uo(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&&xh(a,"GraphObject.background"),a instanceof _o&&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 Ai)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,b=a.y,E=this.pa,x=E.x;E=E.y,(x===y||isNaN(x)&&isNaN(y))&&(E===b||isNaN(E)&&isNaN(b))?this.Av():(a=a.copy(),this.zv(a,x,E)&&this.g("position",new it(x,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Lt("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,qn(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,b=a.height,E=this.jd,x=E.width,z=E.height;(x===y||isNaN(x)&&isNaN(y))&&(z===b||isNaN(z)&&isNaN(b))||(this.jd=a=a.J(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",E,a),Ne(this)&&(a=this.part,a!==null&&(ya(this,a,"width"),ya(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 an(a,this.jd.height).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),Ne(this)&&(a=this.part,a!==null&&ya(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 an(this.jd.width,a).freeze(),this.v(),this instanceof oo&&this.qc(),this.g("desiredSize",y,a),Ne(this)&&(a=this.part,a!==null&&ya(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:cr},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(),uo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ri},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(),uo(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 no(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&&(uo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:yr},set:function(a){this.reshapingBehavior!==a&&(uo(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()&&Lt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Rl(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&&kr(a,">= 0",rn,"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&&kr(a,">= 1",rn,"columnSpan"),uo(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&&kr(a,">= 0",rn,"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&&kr(a,">= 1",rn,"rowSpan"),uo(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&&(uo(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 b=this.part;b===null||b instanceof $r||Lt("Cannot set portID on a Link: "+a),y!==null&&b!==null&&ty(b,this),this.Yn=a,a!==null&&b!==null&&(b.Te=!0,$S(b,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Qi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),nr(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&kr(a,">= 0",rn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),nr(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),nr(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&&kr(a,">= 0",rn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Qi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),nr(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&kr(a,">= 0",rn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),nr(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),nr(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&&kr(a,">= 0",rn,"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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(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&&(uo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),rn.prototype.trigger=rn.prototype.Jv,rn.prototype.findBindingPanel=rn.prototype.ih,rn.prototype.findTemplateBinder=rn.prototype.pz,rn.prototype.setProperties=rn.prototype.nm,rn.prototype.apply=rn.prototype.apply,rn.prototype.attach=rn.prototype.Du,rn.prototype.set=rn.prototype.set,rn.prototype.isEnabledObject=rn.prototype.If,rn.prototype.isVisibleObject=rn.prototype.Ed,rn.prototype.isContainedBy=rn.prototype.rg,rn.prototype.getNearestIntersectionPoint=rn.prototype.rs,rn.prototype.getLocalPoint=rn.prototype.qs,rn.prototype.getDocumentScale=rn.prototype.Df,rn.prototype.getDocumentAngle=rn.prototype.li,rn.prototype.getDocumentBounds=rn.prototype.mi,rn.prototype.getDocumentPoint=rn.prototype.ga,rn.prototype.intersectsRect=rn.prototype.Yc,rn.prototype.containedInRect=rn.prototype.fh,rn.prototype.containsRect=rn.prototype.Re,rn.prototype.containsPoint=rn.prototype.ca,rn.prototype.raiseChanged=rn.prototype.g,rn.prototype.raiseChangedEvent=rn.prototype.cb,rn.prototype.addCopyProperty=rn.prototype.Vw;var Gi=null;rn.className="GraphObject",Gi=new An,pr("Button",function(){function a(b,E){return b.diagram.ic(b.documentPoint,function(x){for(;x.panel!==null&&!x.isActionable;)x=x.panel;return x},function(x){return x===E})!==null}var y=Hn(Tr,Tr.Auto,{isActionable:!0,enabledChanged:function(b,E){if(b instanceof Tr){var x=b.fb("ButtonBorder");x!==null&&(x.fill=E?b._buttonFillNormal:b._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Hn(oo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new fi(0,0,2.76142374915397,2.761423749153969),spot2:new fi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(b,E){if(E.If()&&E instanceof Tr&&(b=E.fb("ButtonBorder"),b instanceof oo)){var x=E._buttonFillOver;E._buttonFillNormal=b.fill,b.fill=x,x=E._buttonStrokeOver,E._buttonStrokeNormal=b.stroke,b.stroke=x}},y.mouseLeave=function(b,E){E.If()&&E instanceof Tr&&(b=E.fb("ButtonBorder"),b instanceof oo&&(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal))},y.actionDown=function(b,E){if(E.If()&&E instanceof Tr&&E._buttonFillPressed!==null&&b.button===0){var x=E.fb("ButtonBorder");if(x instanceof oo){b=b.diagram;var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ne=E._buttonFillPressed;E._buttonFillOver=x.fill,x.fill=ne,ne=E._buttonStrokePressed,E._buttonStrokeOver=x.stroke,x.stroke=ne,b.skipsUndoManager=z}}},y.actionUp=function(b,E){if(E.If()&&E instanceof Tr&&E._buttonFillPressed!==null&&b.button===0){var x=E.fb("ButtonBorder");if(x instanceof oo){var z=b.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(b,E)?(x.fill=E._buttonFillOver,x.stroke=E._buttonStrokeOver):(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(b,E){if(E.If()&&E instanceof Tr&&E._buttonFillPressed!==null){var x=E.fb("ButtonBorder");if(x instanceof oo){var z=b.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(b,E)?(x.fill=E._buttonFillOver,x.stroke=E._buttonStrokeOver):(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(b,E){if(E.If()&&E instanceof Tr&&E._buttonFillPressed!==null){var x=b.diagram;if(x.firstInput.button===0&&(x.currentTool.standardMouseOver(),a(b,E)&&(b=E.fb("ButtonBorder"),b instanceof oo))){var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=E._buttonFillPressed;b.fill!==ne&&(b.fill=ne),ne=E._buttonStrokePressed,b.stroke!==ne&&(b.stroke=ne),x.skipsUndoManager=z}}},y}),pr("TreeExpanderButton",function(){var a=Hn("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Hn(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:si},new ss("figure","isTreeExpanded",function(y,b){return b=b.panel,y?b._treeExpandedFigure:b._treeCollapsedFigure}).cp()),{visible:!1},new ss("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,b){if(b=b.part,b instanceof Mo&&(b=b.adornedPart),b instanceof $r){var E=b.diagram;if(E!==null){if(E=E.commandHandler,b.isTreeExpanded){if(!E.canCollapseTree(b))return}else if(!E.canExpandTree(b))return;y.handled=!0,b.isTreeExpanded?E.collapseTree(b):E.expandTree(b)}}},a}),pr("SubGraphExpanderButton",function(){var a=Hn("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Hn(oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:si},new ss("figure","isSubGraphExpanded",function(y,b){return b=b.panel,y?b._subGraphExpandedFigure:b._subGraphCollapsedFigure}).cp()));return a.click=function(y,b){if(b=b.part,b instanceof Mo&&(b=b.adornedPart),b instanceof ro){var E=b.diagram;if(E!==null){if(E=E.commandHandler,b.isSubGraphExpanded){if(!E.canCollapseSubGraph(b))return}else if(!E.canExpandSubGraph(b))return;y.handled=!0,b.isSubGraphExpanded?E.collapseSubGraph(b):E.expandSubGraph(b)}}},a}),pr("ToolTip",function(){return Hn(Mo,Tr.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new it(0,3),shadowBlur:5},Hn(oo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new fi(0,0,4,6),spot2:new fi(1,1,-4,-4)}))}),pr("ContextMenu",function(){return Hn(Mo,Tr.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new it(0,3),shadowBlur:5},new ss("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),pr("ContextMenuButton",function(){var a=Hn("Button");a.stretch=xi;var y=a.fb("ButtonBorder");return y instanceof oo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new fi(0,0,2,3),y.spot2=new fi(1,1,-2,-2)),a}),pr("PanelExpanderButton",function(a){var y=ri(a,"COLLAPSIBLE"),b=Hn("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},Hn(oo,{name:"ButtonIcon",strokeWidth:2},new ss("geometryString","visible",function(E){return E?b._buttonExpandedFigure:b._buttonCollapsedFigure}).cp(y)));return a=b.fb("ButtonBorder"),a instanceof oo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),b.click=function(E,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&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),x.visible=!x.visible,z.eb("Collapse/Expand Panel")))}},b}),pr("CheckBoxButton",function(a){var y=ri(a);return a=Hn("Button",{desiredSize:new an(14,14)},Hn(oo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Cr,geometryStretch:yi,visible:!1},y!==""?new ss("visible",y).Kx():[])),a.click=function(b,E){if(E instanceof Tr){var x=b.diagram;if(!(x===null||x.isReadOnly||y!==""&&x.model.isReadOnly)){b.handled=!0;var z=E.fb("ButtonIcon");x.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(b,E),x.eb("checkbox")}}},a}),pr("CheckBox",function(a){a=ri(a),a=Hn("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new no(0,1,0,0)});var y=Hn(Tr,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new no(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}),rn.None=yr=new mn(rn,"None",0),rn.Default=$i=new mn(rn,"Default",0),rn.Vertical=Di=new mn(rn,"Vertical",4),rn.Horizontal=xi=new mn(rn,"Horizontal",5),rn.Fill=Cr=new mn(rn,"Fill",3),rn.Uniform=yi=new mn(rn,"Uniform",1),rn.UniformToFill=yo=new mn(rn,"UniformToFill",2),rn.FlipVertical=lo=new mn(rn,"FlipVertical",1),rn.FlipHorizontal=Ao=new mn(rn,"FlipHorizontal",2),rn.FlipBoth=Qo=new mn(rn,"FlipBoth",3),rn.make=Hn,rn.getBuilders=function(){var a=new An,y;for(y in Gi)if(y!==y.toLowerCase()){var b=Gi.I(y);typeof b=="function"&&a.add(y,b)}return a.freeze(),a},rn.defineBuilder=pr,rn.build=function(a,y,b){for(var E=[],x=2;x<arguments.length;++x)E[x-2]=arguments[x];if(x=Gi.I(a),typeof x=="function"&&(E=x([a].concat(E)),E instanceof rn))return y&&E.set(y),E;Lt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},rn.takeBuilderArgument=ri;function Xi(){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=cr,this.o=Ri,this.hg=$i,this.ob=this.Bi=1,this.Pf=yr,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Xi.prototype.copy=function(){var a=new Xi;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 eo(){this.u=-1/0,this.o=0,this.F=Dr,this.rr=iu,this.j=this.V="None"}eo.prototype.copy=function(){var a=new eo;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},eo.className="LinkElementSettings";function So(){this.yj=this.Xi=ns,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}So.prototype.copy=function(){var a=new So;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},So.className="LinkSettings";function Co(){this.ha=[1,0,0,1,0,0]}Co.prototype.copy=function(){var a=new Co;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},Co.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},Co.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Co.prototype.rotate=function(a,y,b){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,b),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var x=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ne=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=x,this.ha[2]=z,this.ha[3]=ne,this.translate(-y,-b)}},Co.className="STransform";function Ro(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Ro.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Ro.className="SGradient";function ra(a,y,b){this.ownerDocument=a=y===void 0?ur.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 Go(this,b)}ra.prototype.resize=function(a,y,b,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=b+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",b+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+b+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",b+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},ra.prototype.Ud=function(a,y,b){if(a=this.ownerDocument.createElementNS(this.cA,a),Xt(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return b!==void 0&&(a.textContent=b),a},ra.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ra.prototype.focus=function(){this.Oa.focus()},ra.prototype.mx=function(){this.ownerDocument=null},Jn.Object.defineProperties(ra.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}}}),ra.className="SVGSurface";function Go(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 Co,this.j=Uc(this),this.Nj=Uc(this,"gojs-diagram"),this.Hl=this.ti=null;var b=fo++,E=this.Ud("clipPath",{id:"mainClip"+b});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+b+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Ha(a,y,b,E,x,z,ne){a.Nj===void 0?ju(a,y,b,E,x,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+b+", "+E+", "+x+", "+z+", "+ne+")")}Oe=Go.prototype,Oe.arc=function(a,y,b,E,x,z,ne,ie){var se=2*Math.PI,de=se-1e-6,pe=b*Math.cos(E),Se=b*Math.sin(E),Le=a+pe,Me=y+Se,ze=z?0:1;E=z?E-x:x-E,(1e-6<Math.abs(ne-Le)||1e-6<Math.abs(ie-Me))&&this.path.push(["L",Le,+Me]),0>E&&(E=E%se+se),E>de?(this.path.push(["A",b,b,0,1,ze,a-pe,y-Se]),this.path.push(["A",b,b,0,1,ze,Le,Me])):1e-6<E&&this.path.push(["A",b,b,0,+(E>=Math.PI),ze,a+b*Math.cos(x),y+b*Math.sin(x)])},Oe.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Oe.Se=function(a){this.addPath(this.path,this.rb,a||0)},Oe.bezierCurveTo=function(a,y,b,E,x,z){this.path.push(["C",a,y,b,E,x,z])},Oe.clearRect=function(){},Oe.clip=function(){this.Yl.clipPath=!0},Oe.closePath=function(){this.path.push(["z"])},Oe.createLinearGradient=function(a,y,b,E){var x=new Ro("linear");return x.x1=a,x.y1=y,x.x2=b,x.y2=E,x},Oe.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var b=this.eA;if(b[y])return"url(#"+b[y]+")";var E="PATTERN"+fo++,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:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(bh,x)),this.svg.appendChild(a),b[y]=E,"url(#"+E+")"},Oe.createRadialGradient=function(a,y,b,E,x,z){var ne=new Ro("radial");return ne.x1=a,ne.y1=y,ne.r1=b,ne.x2=E,ne.y2=x,ne.r2=z,ne};function ml(a,y,b,E,x,z,ne,ie,se){E=ie/E,x=se/x,z===0&&ne===0||a.rb.translate(z,ne),E===1&&x===1||a.rb.scale(E,x),y===0&&b===0||a.rb.translate(-y,-b)}Oe.drawImage=function(a,y,b,E,x,z,ne,ie,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,E===void 0&&(z=y,ne=b,ie=E=pe,se=x=a),E=E||0,x=x||0,ie=ie||0,se=se||0,ml(this,y,b,E,x,z||0,ne||0,ie,se),z={x:0,y:0,width:pe||E,height:a||x,href:de},tn.$(E,ie)&&tn.$(x,se)?de.toLowerCase().indexOf(".svg")===-1&&de.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||b!==0||E!==pe||x!==a)&&(E+=y,x+=b,z["clip-path"]="path('M "+y+","+b+" L "+E+" "+b+" L "+E+" "+x+" L "+y+" "+x+" z')"),Ws(this,bh,z,this.rb),this.addElement(bh,z)},Oe.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),tu(this,this.Yl)},Oe.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Oe.fillRect=function(a,y,b,E){a=[a,y,b,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ws(this,"fill",a,this.rb),this.addElement("rect",a)},Oe.ox=function(a,y,b,E){a={x:a,y,width:b,height:E},Ws(this,"fill",a,this.rb),tu(this,a),this.svg.prepend(this.Ud("rect",a))},Oe.fillText=function(a,y,b){a=[a,y,b],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},Ws(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Oe.lineTo=function(a,y){this.path.push(["L",a,y])},Oe.moveTo=function(a,y){this.path.push(["M",a,y])},Oe.quadraticCurveTo=function(a,y,b,E){this.path.push(["Q",a,y,b,E])},Oe.rect=function(a,y,b,E){this.path.push(["M",a,y],["L",a+b,y],["L",a+b,y+E],["L",a,y+E],["z"])},Oe.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},Oe.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())},Oe.setTransform=function(a,y,b,E,x,z){a===1&&y===0&&b===0&&E===1&&x===0&&z===0||ju(this,a,y,b,E,x,z)};function Ka(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Oe.scale=function(a,y){this.rb.scale(a,y)},Oe.translate=function(a,y){this.rb.translate(a,y)},Oe.transform=function(){},Oe.yc=function(){},Oe.stroke=function(){dd(this,this.Yl)},Oe.jk=function(){this.clipInsteadOfFill||this.stroke()},Oe.Ud=function(a,y,b){return this.Gv.Ud(a,y,b)},Oe.addElement=function(a,y,b){return a=this.Ud(a,y,b),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Ws(a,y,b,E){y==="fill"?tu(a,b):y==="stroke"&&dd(a,b),E!==null&&(a=E.ha,b.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function tu(a,y){a.fillStyle instanceof Ro?y.fill=_c(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 Au(a,y,b){b=b?"fill":"stroke",a.fillStyle instanceof Ro?y.setAttributeNS(null,"fill",_c(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,b,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,b+"-opacity",a[4])):y.setAttributeNS(null,b,a.fillStyle)}function dd(a,y){if(a.strokeStyle instanceof Ro)y.stroke=_c(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var b=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+b[1]+","+b[2]+","+b[3]+")",y["stroke-opacity"]=b[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 _c(a,y,b){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(b?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),b=a.svg.getElementById(E),b!==null&&b.remove()):E="GRAD"+fo++,y.type==="linear")b=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")b=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var x=y.gx;y=x.length;for(var z=[],ne=0;ne<y;ne++){var ie=x[ne],se=ie.color;ie={offset:ie.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),ie["stop-color"]="rgb("+se[1]+","+se[2]+","+se[3]+")",ie["stop-opacity"]=se[4]),z.push(ie)}for(z.sort(function(de,pe){return de.offset>pe.offset?1:-1}),x=0;x<y;x++)b.appendChild(a.Ud("stop",z[x]));return a.svg.appendChild(b),"url(#"+E+")"}Oe.addPath=function(a,y,b){for(var E=[],x=0;x<a.length;x++){var z=fr(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());E.push(ne.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Ws(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ie in a)ie!=="transform"&&y.setAttributeNS(null,ie,a[ie]);else{ie=y.getElementsByTagName("path");for(var se in a)se!=="transform"&&ie[b].setAttributeNS(null,se,a[se])}else this.addElement("path",a)};function ju(a,y,b,E,x,z,ne){var ie=new Co;ie.ha=[y,b,E,x,z,ne],y={},Ws(a,"g",y,ie),ie=a.addElement("g",y),a.nh.push(ie)}function Uc(a,y){var b={};return y&&(b.class=y),y=a.addElement("g",b),a.nh.push(y),y}Oe.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b};function Zs(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Nu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Oe.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Oe.fs=function(){this.Ct=!1},Oe.Vc=function(){},Oe.Wx=function(){},Go.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Go.prototype.getImageData=function(){return null},Go.prototype.measureText=function(){return null};function Hc(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()))}Go.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Go.className="SVGContext",Dn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new ra(this,ur.document));var y=new ra(this,ur.document,!0);a===void 0&&(a=new qr);var b=this;return qh(this,function(E,x){return E=og(b,E,"SVG",y),E=E!==null?E.svg:null,typeof x=="function"?(x(E),null):E},a)},Dn.prototype.makeSvg=Dn.prototype.Cs,Dn.prototype.av=function(a){return this.Cs(a)},Dn.prototype.makeSVG=Dn.prototype.av;function nu(a,y,b,E){this.ownerDocument=y=y===void 0?ur.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new wc(y,b,E),y.H=a}nu.prototype.resize=function(a,y,b,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=b+"px",this.style.height=E+"px",!0):!1},nu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},nu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},nu.prototype.focus=function(){this.Oa.focus()},nu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Jn.Object.defineProperties(nu.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}}}),nu.className="CanvasSurface";function wc(a,y,b){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Lt("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 Mi,this.isTemporary=!!b}Oe=wc.prototype,Oe.Wx=function(a){this.Z.imageSmoothingEnabled=a},Oe.arc=function(a,y,b,E,x,z){this.Z.arc(a,y,b,E,x,z)},Oe.beginPath=function(){this.Z.beginPath()},Oe.Se=function(){},Oe.bezierCurveTo=function(a,y,b,E,x,z){this.Z.bezierCurveTo(a,y,b,E,x,z)},Oe.clearRect=function(a,y,b,E){this.yc(),this.Z.clearRect(a,y,b,E)},Oe.clip=function(){this.Z.clip()},Oe.closePath=function(){this.Z.closePath()},Oe.createLinearGradient=function(a,y,b,E){return this.Z.createLinearGradient(a,y,b,E)},Oe.createPattern=function(a,y){return this.Z.createPattern(a,y)},Oe.createRadialGradient=function(a,y,b,E,x,z){return this.Z.createRadialGradient(a,y,b,E,x,z)},Oe.drawImage=function(a,y,b,E,x,z,ne,ie,se){E===void 0?this.Z.drawImage(a,y,b):this.Z.drawImage(a,y,b,E,x,z,ne,ie,se)},Oe.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Oe.fillRect=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},Oe.ox=function(a,y,b,E){this.Z.fillRect(a,y,b,E)},Oe.fillText=function(a,y,b){this.Z.fillText(a,y,b)},Oe.getImageData=function(a,y,b,E){return this.Z.getImageData(a,y,b,E)},Oe.lineTo=function(a,y){this.Z.lineTo(a,y)},Oe.measureText=function(a){return this.Z.measureText(a)},Oe.moveTo=function(a,y){this.Z.moveTo(a,y)},Oe.quadraticCurveTo=function(a,y,b,E){this.Z.quadraticCurveTo(a,y,b,E)},Oe.rect=function(a,y,b,E){this.Z.rect(a,y,b,E)},Oe.restore=function(){this.Z.restore()},Oe.save=function(){this.yc(),this.Z.save()},wc.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Oe=wc.prototype,Oe.setTransform=function(a,y,b,E,x,z){this.El.setTransform(a,y,b,E,x,z)},Oe.scale=function(a,y){this.El.scale(a,y)},Oe.translate=function(a,y){this.El.translate(a,y)},Oe.stroke=function(){this.Z.stroke()},Oe.transform=function(a,y,b,E,x,z){if(a!==1||y!==0||b!==0||E!==1||x!==0||z!==0){var ne=this.El,ie=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*b+ne.m21*E,b=ne.m12*b+ne.m22*E,ne.dx=ne.m11*x+ne.m21*z+ne.dx,ne.dy=ne.m12*x+ne.m22*z+ne.dy,ne.m11=ie,ne.m12=a,ne.m21=y,ne.m22=b}},Oe.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Oe.ng=function(a,y){if(a instanceof _o&&a.type===hc){var b=a.yk;a=a.ft,a>b?(this.scale(b/a,1),this.translate((a-b)/2,0)):b>a&&(this.scale(1,a/b),this.translate(0,(b-a)/2)),this.Hm?this.clip():this.fill(y),a>b?(this.translate(-(a-b)/2,0),this.scale(1/(b/a),1)):b>a&&(this.translate(0,-(b-a)/2),this.scale(1,1/(a/b)))}else this.Hm?this.clip():this.fill(y)},Oe.jk=function(){this.Hm||this.stroke()},Oe.Ev=function(a,y,b){this.Ar=a,this.Br=y,this.Vg=b},Oe.js=function(a,y){var b=this.Z;b.setLineDash!==void 0&&(b.setLineDash(a),b.lineDashOffset=y)},Oe.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Eh),a.lineDashOffset=0)},Oe.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Oe.Hs=function(){},Jn.Object.defineProperties(wc.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 Eh=Object.freeze([]);wc.className="CanvasSurfaceContext";function Cc(){this.F=this.o=this.u=this.j=0}Cc.className="ColorNumbers";function _o(a,y){lg||(Cp(),lg=!0),vi(this),this._isFrozen=!1,a===void 0?(this.na=Ch,this.xk="black"):typeof a=="string"?(this.na=Ch,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===eh?(this.Qd=Io,this.Lk=Ga):this.Lk=a===hc?this.Qd=Ji:this.Qd=Qi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}_o.prototype.copy=function(){var a=new _o;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},Oe=_o.prototype,Oe.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Oe.ka=function(){return Object.isFrozen(this)&&Lt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Oe.qb=function(a){a.classType===_o&&(this.type=a)},Oe.toString=function(){var a="Brush(";if(this.type===Ch)a+=this.color;else if(a=this.type===eh?a+"Linear ":this.type===hc?a+"Radial ":this.type===ug?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+")"},Oe.addColorStop=function(a,y){return this._isFrozen&&cn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&kr(a,"0 <= loc <= 1",_o,"addColorStop:loc"),this.we===null&&(this.we=new An),this.we.add(a,y),this.na===Ch&&(this.type=eh),this.xe=null,this},Oe.Vz=function(a,y){if(this._isFrozen&&cn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cg:y,this.type===Ch)Pc(this.color),this.color=fd(a,y);else if((this.type===eh||this.type===hc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)Pc(b.value),this.addColorStop(b.key,fd(a,y));return this};function wp(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?cg:b,Pc(a),fd(y,b)}Oe.Wy=function(a,y){if(this._isFrozen&&cn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cg:y,this.type===Ch)Pc(this.color),this.color=fd(-a,y);else if((this.type===eh||this.type===hc)&&this.colorStops!==null)for(var b=this.colorStops.iterator;b.next();)Pc(b.value),this.addColorStop(b.key,fd(-a,y));return this};function hd(a,y,b){return y=y===void 0||typeof y!="number"?.2:y,b=b===void 0?cg:b,Pc(a),fd(-y,b)}function nf(a,y,b){Pc(a),a=ha.j;var E=ha.u,x=ha.o,z=ha.F;return Pc(y),b===void 0&&(b=.5),"rgba("+Math.round((ha.j-a)*b+a)+", "+Math.round((ha.u-E)*b+E)+", "+Math.round((ha.o-x)*b+x)+", "+Math.round((ha.F-z)*b+z)+")"}Oe.Gx=function(){if(this.type===Ch)return $d(this.color);if((this.type===eh||this.type===hc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===hc)return $d(a.first().value);if(a.get(.5)!==null)return $d(a.get(.5));if(a.count===2)return a=a.Fa(),$d(nf(a[0].value,a[1].value));for(var y=a.iterator,b=-1,E=-1,x=1,z=1;y.next();){var ne=y.key,ie=Math.abs(.5-y.key);x>z&&ie<x?(b=ne,x=ie):z>=x&&ie<z&&(E=ne,z=ie)}return b>E&&(z=b,b=E,E=z,z=x),x=E-b,$d(nf(a.get(b),a.get(E),1-z/x))}return!1};function $d(a){return a?a instanceof _o?a.Gx():(Pc(a),128>(299*ha.j+587*ha.u+114*ha.o)/1e3):!1}function fd(a,y){switch(y){case cg:y=100*sg(ha.j);var b=100*sg(ha.u),E=100*sg(ha.o);return vl.j=.4124564*y+.3575761*b+.1804375*E,vl.u=.2126729*y+.7151522*b+.072175*E,vl.o=.0193339*y+.119192*b+.9503041*E,vl.F=ha.F,y=_f(vl.j/wh[0]),b=_f(vl.u/wh[1]),E=_f(vl.o/wh[2]),Nd.j=116*b-16,Nd.u=500*(y-b),Nd.o=200*(b-E),Nd.F=vl.F,Nd.j=Math.min(100,Math.max(0,Nd.j+100*a)),a=(Nd.j+16)/116,y=a-Nd.o/200,vl.j=wh[0]*Um(Nd.u/500+a),vl.u=wh[1]*(Nd.j>Pp*Uf?Math.pow(a,3):Nd.j/Pp),vl.o=wh[2]*Um(y),vl.F=Nd.F,a=-.969266*vl.j+1.8760108*vl.u+.041556*vl.o,y=.0556434*vl.j+-.2040259*vl.u+1.0572252*vl.o,ha.j=255*Vg((3.2404542*vl.j+-1.5371385*vl.u+-.4985314*vl.o)/100),ha.u=255*Vg(a/100),ha.o=255*Vg(y/100),ha.F=vl.F,ha.j=Math.round(ha.j),255<ha.j?ha.j=255:0>ha.j&&(ha.j=0),ha.u=Math.round(ha.u),255<ha.u?ha.u=255:0>ha.u&&(ha.u=0),ha.o=Math.round(ha.o),255<ha.o?ha.o=255:0>ha.o&&(ha.o=0),"rgba("+ha.j+", "+ha.u+", "+ha.o+", "+ha.F+")";case lS:return Bf(),Ml.o=Math.min(100,Math.max(0,Ml.o+100*a)),"hsla("+Ml.j+", "+Ml.u+"%, "+Ml.o+"%, "+Ml.F+")";default:Lt("Unknown color space: "+y)}}function Pc(a){lg||(Cp(),lg=!0);var y=Tp;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var b=y.fillStyle;y.fillStyle=a,y.fillStyle!==b?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,ha.j=a[0],ha.u=a[1],ha.o=a[2],ha.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ha.j=0,ha.u=0,ha.o=0,ha.F=1)}}function Bf(){var a=ha.j/255,y=ha.u/255,b=ha.o/255,E=Math.max(a,y,b),x=Math.min(a,y,b),z=E-x;if(x=(E+x)/2,z===0)var ne=a=0;else{switch(E){case a:ne=(y-b)/z%6;break;case y:ne=(b-a)/z+2;break;case b:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*x-1))}Ml.j=Math.round(ne),Ml.u=Math.round(100*a),Ml.o=Math.round(100*x),Ml.F=ha.F}function sg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Vg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function _f(a){return a>Uf?Math.pow(a,1/3):(Pp*a+16)/116}function Um(a){var y=a*a*a;return y>Uf?y:(116*a-16)/Pp}function xh(a,y){typeof a!="string"&&(a instanceof _o||Lt("Value for "+y+" must be a color string or a Brush, not "+a))}function Cp(){Tp=Fa?new nu(null,void 0,{willReadFrequently:!0}).context:null}Jn.Object.defineProperties(_o.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&cn(this,a),this.na=a,this.start.Mc()&&(a===eh?this.start=Io:a===hc&&(this.start=Ji)),this.end.Mc()&&(a===eh?this.end=Ga:a===hc&&(this.end=Ji)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&cn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&cn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&cn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&cn(this,a),0>a&&kr(a,">= zero",_o,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&cn(this,a),0>a&&kr(a,">= zero",_o,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&cn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&cn(this,a),this.cr=a,this.xe=null}}}),_o.prototype.isDark=_o.prototype.Gx,_o.prototype.darkenBy=_o.prototype.Wy,_o.prototype.lightenBy=_o.prototype.Vz,_o.prototype.addColorStop=_o.prototype.addColorStop;var Uf=216/24389,Pp=24389/27,wh=[95.047,100,108.883],Tp=null,ha=new Cc,Ml=new Cc,vl=new Cc,Nd=new Cc,lg=!1;_o.className="Brush";var Ch;_o.Solid=Ch=new mn(_o,"Solid",0);var eh;_o.Linear=eh=new mn(_o,"Linear",1);var hc;_o.Radial=hc=new mn(_o,"Radial",2);var ug;_o.Pattern=ug=new mn(_o,"Pattern",4);var cg;_o.Lab=cg=new mn(_o,"Lab",5);var lS;_o.HSL=lS=new mn(_o,"HSL",6),_o.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var b=Math.abs(y-a);y=Math.floor(a+Math.random()*b).toString(16);var E=Math.floor(a+Math.random()*b).toString(16);return a=Math.floor(a+Math.random()*b).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},_o.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;lg||(Cp(),lg=!0);var y=Tp;if(y===null)return!0;y.fillStyle="#000000";var b=y.fillStyle;return y.fillStyle=a,y.fillStyle!==b?!0:(y.fillStyle="#FFFFFF",b=y.fillStyle,y.fillStyle=a,y.fillStyle!==b)},_o.lighten=function(a){return wp(a)},_o.lightenBy=wp,_o.darken=function(a){return hd(a)},_o.darkenBy=hd,_o.mix=nf,_o.isDark=$d;function As(){this.xa="Base"}As.prototype.measure=function(){},As.prototype.Yz=function(a,y,b,E,x){a.measure(y,b,E,x)},As.prototype.arrange=function(){},As.prototype.Ly=function(a,y,b,E,x,z){a.arrange(y,b,E,x,z)},As.prototype.iA=function(a){a.Uj()},As.prototype.gc=function(){},Jn.Object.defineProperties(As.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Tr}}}),As.prototype.remeasureObject=As.prototype.iA,As.prototype.arrangeElement=As.prototype.Ly,As.prototype.measureElement=As.prototype.Yz,As.className="PanelLayout";function Hm(){this.xa="Base"}Sn(Hm,As),Hm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;a=th(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===a){var pe=de.margin,Se=pe.right+pe.left;pe=pe.top+pe.bottom,de.measure(y,b,z,ne);var Le=de.measuredBounds;Se=Math.max(Le.width+Se,0),pe=Math.max(Le.height+pe,0),Le=de.position.x;var Me=de.position.y;isFinite(Le)||(Le=0),isFinite(Me)||(Me=0),de instanceof oo&&de.isGeometryPositioned&&(de=de.strokeWidth/2,Le-=de,Me-=de),vo(x,Le,Me,Se,pe)}}},Hm.prototype.arrange=function(a,y,b){var E=y.length,x=a.padding;for(a=b.x-x.left,b=b.y-x.top,x=0;x<E;x++){var z=y[x],ne=z.measuredBounds,ie=z.margin,se=z.position.x,de=z.position.y;if(se=isNaN(se)?-a:se-a,de=isNaN(de)?-b:de-b,z instanceof oo&&z.isGeometryPositioned){var pe=z.strokeWidth/2;se-=pe,de-=pe}z.visible&&z.arrange(se+ie.left,de+ie.top,ne.width,ne.height)}};function zm(){this.xa="Base"}Sn(zm,As),zm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length;y=Mr(),z=th(a);for(var se=0;se<ie;se++){var de=E[se];if(de.visible||de===z){var pe=jl(de,!1);if(pe!==yr&&pe!==xi)y.push(de);else{de.measure(1/0,b,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(E=y.length,a.desiredSize.height?b=Math.min(a.desiredSize.height,a.maxSize.height):x.height!==0&&(b=Math.min(x.height,a.maxSize.height)),a=0;a<E;a++)se=y[a],(se.visible||se===z)&&(pe=se.margin,ie=pe.right+pe.left,pe=pe.top+pe.bottom,se.measure(1/0,b,0,ne),se=se.measuredBounds,pe=Math.max(se.height+pe,0),x.width+=Math.max(se.width+ie,0),x.height=Math.max(x.height,pe));Ur(y)},zm.prototype.arrange=function(a,y,b){for(var E=y.length,x=a.padding,z=x.top,ne=a.isOpposite,ie=ne?b.width:x.left,se=0;se<E;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Le=pe.margin,Me=Le.top+Le.bottom,ze=z+x.bottom,qe=Se.height,Ct=jl(pe,!1);(isNaN(pe.desiredSize.height)&&Ct===Cr||Ct===Di)&&(qe=Math.max(b.height-Me-ze,0)),Me=qe+Me+ze,ze=pe.alignment,ze.Xb()&&(ze=a.defaultAlignment),ze.sb()||(ze=Ji),ne&&(ie-=Se.width+Le.left+Le.right),pe.arrange(ie+ze.offsetX+Le.left,de+ze.offsetY+Le.top+(b.height*ze.y-Me*ze.y),Se.width,qe),ne||(ie+=Se.width+Le.left+Le.right)}}};function Gm(){this.xa="Base"}Sn(Gm,As),Gm.prototype.measure=function(a,y,b,E,x,z){var ne=E.length;b=Mr();for(var ie=th(a),se=0;se<ne;se++){var de=E[se];if(de.visible||de===ie){var pe=jl(de,!1);if(pe!==yr&&pe!==Di)b.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,ko(x,Math.max(x.width,Math.max(de.width+pe,0)),x.height+Math.max(de.height+Se,0))}}}if(E=b.length,E!==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<E;a++)se=b[a],(se.visible||se===ie)&&(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);Ur(b)}},Gm.prototype.arrange=function(a,y,b){for(var E=y.length,x=a.padding,z=x.left,ne=a.isOpposite,ie=ne?b.height:x.top,se=0;se<E;se++){var de=z,pe=y[se];if(pe.visible){var Se=pe.measuredBounds,Le=pe.margin,Me=Le.left+Le.right,ze=z+x.right,qe=Se.width,Ct=jl(pe,!1);(isNaN(pe.desiredSize.width)&&Ct===Cr||Ct===xi)&&(qe=Math.max(b.width-Me-ze,0)),Me=qe+Me+ze,ze=pe.alignment,ze.Xb()&&(ze=a.defaultAlignment),ze.sb()||(ze=Ji),ne&&(ie-=Se.height+Le.bottom+Le.top),pe.arrange(de+ze.offsetX+Le.left+(b.width*ze.x-Me*ze.x),ie+ze.offsetY+Le.top,qe,Se.height),ne||(ie+=Se.height+Le.bottom+Le.top)}}};function jm(){this.xa="Base"}Sn(jm,As),jm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length,se=a.Pb(),de=se.margin,pe=de.right+de.left,Se=de.top+de.bottom;se.measure(y,b,z,ne);var Le=se.measuredBounds;z=Le.width,ne=Le.height;var Me=Math.max(z+pe,0),ze=Math.max(ne+Se,0),qe=a.isClipping,Ct=In.allocAt(-de.left,-de.top,Me,ze),vt=In.allocAt(0,0,z,ne);Tv(se,vt,!0),z=vt.width,ne=vt.height;for(var Dt=!0,Bt=th(a),Gt=0;Gt<ie;Gt++){var $t=E[Gt];Le=y;var Rn=b;if($t!==se&&($t.visible||$t===Bt)){de=$t.margin;var Jr=de.left,gi=de.top;switch(Me=de.right+de.left,ze=de.top+de.bottom,de=jl($t,!1),de){case Cr:Le=z,Rn=ne,gi=Jr=ze=Me=0;break;case xi:Le=z,Jr=Me=0;break;case Di:Rn=ne,gi=ze=0}$t.measure(Le,Rn,0,0),Le=$t.measuredBounds,Me=Math.max(Le.width+Me,0),ze=Math.max(Le.height+ze,0),de=$t.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=Ji);var di=$t.alignmentFocus;if(di.Xb()&&(di=Ji),Rn=null,$t instanceof Tr&&$t.$e!==""&&(Rn=$t.fb($t.$e),Rn===$t&&(Rn=null)),Jr=vt.x-Jr,gi=vt.y-gi,Rn!==null){for($t.arrange(0,0,Le.width,Le.height),Le=Rn.actualBounds,Le=it.allocAt(Le.x+(di.x*Le.width-di.offsetX),Le.y+(di.y*Le.height-di.offsetY)),Rn=Rn.panel;Rn!==$t;)Rn.transform.Ga(Le),Rn=Rn.panel;Jr+=de.x*z+de.offsetX-Le.x,gi+=de.y*ne+de.offsetY-Le.y,it.free(Le)}else Jr+=de.x*z+de.offsetX-(di.x*Le.width+di.offsetX),gi+=de.y*ne+de.offsetY-(di.y*Le.height+di.offsetY);Dt?(Dt=!1,x.h(Jr,gi,Me,ze)):vo(x,Jr,gi,Me,ze)}}switch(Dt?x.assign(Ct):qe?x.Uu(vt.x,vt.y,vt.width,vt.height):vo(x,Ct.x,Ct.y,Ct.width,Ct.height),In.free(Ct),In.free(vt),de=se.stretch,de===$i&&(de=jl(se,!1)),de){case yr:return;case Cr:if(!isFinite(y)&&!isFinite(b))return;break;case xi:if(!isFinite(y))return;break;case Di:if(!isFinite(b))return}for(Le=se.measuredBounds,z=Le.width,ne=Le.height,Me=Math.max(z+pe,0),ze=Math.max(ne+Se,0),de=se.margin,vt=In.allocAt(-de.left,-de.top,Me,ze),Tv(se,vt,!0),z=vt.width,ne=vt.height,y=0;y<ie;y++)b=E[y],b===se||!b.visible&&b!==Bt||(de=b.margin,Me=de.right+de.left,ze=de.top+de.bottom,Le=b.measuredBounds,Me=Math.max(Le.width+Me,0),ze=Math.max(Le.height+ze,0),pe=b.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=Ji),b=b.alignmentFocus,b.Xb()&&(b=Ji),Dt?(Dt=!1,x.h(pe.x*z+pe.offsetX-(b.x*Le.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Le.height+b.offsetY)-de.top,Me,ze)):vo(x,pe.x*z+pe.offsetX-(b.x*Le.width+b.offsetX)-de.left,pe.y*ne+pe.offsetY-(b.y*Le.height+b.offsetY)-de.top,Me,ze));Dt?x.assign(Ct):qe?x.Uu(vt.x,vt.y,vt.width,vt.height):vo(x,Ct.x,Ct.y,Ct.width,Ct.height),In.free(vt)},jm.prototype.arrange=function(a,y,b){var E=y.length,x=a.Pb(),z=x.measuredBounds,ne=z.width,ie=z.height,se=a.padding;z=se.left,se=se.top;var de=z-b.x,pe=se-b.y;for(x.arrange(de,pe,ne,ie),ne=In.allocAt(0,0,ne,ie),Tv(x,ne,!1),ie=0;ie<E;ie++){var Se=y[ie];if(Se!==x){de=Se.measuredBounds;var Le=de.width,Me=de.height;pe=Se.alignment,pe.Xb()&&(pe=a.defaultAlignment),pe.sb()||(pe=Ji);var ze=Se.alignmentFocus;if(ze.Xb()&&(ze=Ji),de=null,Se instanceof Tr&&Se.$e!==""&&(de=Se.fb(Se.$e),de===Se&&(de=null)),de!==null){var qe=de.actualBounds;for(ze=it.allocAt(qe.x+(ze.x*qe.width-ze.offsetX),qe.y+(ze.y*qe.height-ze.offsetY)),de=de.panel;de!==Se;)de.transform.Ga(ze),de=de.panel;de=pe.x*ne.width+pe.offsetX-ze.x,pe=pe.y*ne.height+pe.offsetY-ze.y,it.free(ze)}else de=pe.x*ne.width+pe.offsetX-(ze.x*Le+ze.offsetX),pe=pe.y*ne.height+pe.offsetY-(ze.y*Me+ze.offsetY);de+=ne.x-b.x,pe+=ne.y-b.y,Se.visible&&Se.arrange(z+de,se+pe,Le,Me)}}In.free(ne)};function Tv(a,y,b){var E=null;if(a instanceof Tr&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(b&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function Vm(){this.xa="Base"}Sn(Vm,As),Vm.prototype.measure=function(a,y,b,E,x,z,ne){var ie=E.length,se=a.Pb(),de=se.margin,pe=y,Se=b,Le=de.right+de.left,Me=de.top+de.bottom;se.measure(y,b,z,ne),de=se.measuredBounds;var ze=0,qe=null;se instanceof oo&&(qe=se,ze=qe.strokeWidth*qe.scale);var Ct=Math.max(de.width+Le,0);de=Math.max(de.height+Me,0);var vt=kv(se),Dt=vt.x*Ct+vt.offsetX;vt=vt.y*de+vt.offsetY;var Bt=Iv(se),Gt=Bt.x*Ct+Bt.offsetX;for(Bt=Bt.y*de+Bt.offsetY,isFinite(y)&&(pe=Math.max(Math.abs(Dt-Gt)-ze,0)),isFinite(b)&&(Se=Math.max(Math.abs(vt-Bt)-ze,0)),ze=an.alloc(),ze.h(0,0),a=th(a),Bt=0;Bt<ie;Bt++)vt=E[Bt],vt===se||!vt.visible&&vt!==a||(de=vt.margin,Ct=de.right+de.left,Dt=de.top+de.bottom,vt.measure(pe,Se,0,0),de=vt.measuredBounds,Ct=Math.max(de.width+Ct,0),de=Math.max(de.height+Dt,0),ze.h(Math.max(Ct,ze.width),Math.max(de,ze.height)));if(ie===1)x.width=Ct,x.height=de,an.free(ze);else{switch(vt=kv(se),Bt=Iv(se),ie=E=0,Bt.x!==vt.x&&Bt.y!==vt.y&&(E=ze.width/Math.abs(Bt.x-vt.x),ie=ze.height/Math.abs(Bt.y-vt.y)),an.free(ze),ze=0,qe!==null&&(ze=qe.strokeWidth*qe.scale,Bv(qe)===yi&&(E=ie=Math.max(E,ie))),E+=Math.abs(vt.offsetX)+Math.abs(Bt.offsetX)+ze,ie+=Math.abs(vt.offsetY)+Math.abs(Bt.offsetY)+ze,qe=se.stretch,qe===$i&&(qe=jl(se,!1)),qe){case yr:ne=z=0;break;case Cr:isFinite(y)&&(E=y),isFinite(b)&&(ie=b);break;case xi:isFinite(y)&&(E=y),ne=0;break;case Di:z=0,isFinite(b)&&(ie=b)}se.Uj(),se.measure(E,ie,z,ne),x.width=se.measuredBounds.width+Le,x.height=se.measuredBounds.height+Me}},Vm.prototype.arrange=function(a,y){var b=y.length,E=a.Pb(),x=E.measuredBounds,z=In.alloc();z.h(0,0,1,1);var ne=E.margin,ie=ne.left;ne=ne.top;var se=a.padding,de=se.left;se=se.top,E.arrange(de+ie,se+ne,x.width,x.height);var pe=kv(E),Se=Iv(E),Le=pe.y*x.height+pe.offsetY,Me=Se.x*x.width+Se.offsetX;for(Se=Se.y*x.height+Se.offsetY,z.x=pe.x*x.width+pe.offsetX,z.y=Le,vo(z,Me,Se,0,0),z.x+=ie+de,z.y+=ne+se,x=0;x<b;x++)ie=y[x],ie!==E&&(de=ie.measuredBounds,ne=ie.margin,se=Math.max(de.width+ne.right+ne.left,0),pe=Math.max(de.height+ne.top+ne.bottom,0),Le=ie.alignment,Le.Xb()&&(Le=a.defaultAlignment),Le.sb()||(Le=Ji),se=z.width*Le.x+Le.offsetX-se*Le.x+ne.left+z.x,ne=z.height*Le.y+Le.offsetY-pe*Le.y+ne.top+z.y,ie.visible&&(ia(z.x,z.y,z.width,z.height,se,ne,de.width,de.height)?ie.arrange(se,ne,de.width,de.height):ie.arrange(se,ne,de.width,de.height,new In(z.x,z.y,z.width,z.height))));In.free(z)};function Wm(){this.xa="Base",this.name="Table"}Sn(Wm,As),Wm.prototype.measure=function(a,y,b,E,x){for(var z=E.length,ne=Mr(),ie=Mr(),se=0;se<z;se++){var de=E[se],pe=de instanceof Tr?de:null;if(pe!==null&&Ph(pe)&&de.visible){ie.push(pe);for(var Se=pe.O.s,Le=Se.length,Me=0;Me<Le;Me++){var ze=Se[Me];pe.type===Tr.TableRow?ze.row=de.row:pe.type===Tr.TableColumn&&(ze.column=de.column),ne.push(ze)}}else ne.push(de)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var qe=[],Ct=0;Ct<z;Ct++){var vt=ne[Ct];vt.visible&&(Ut(vt,!0),Un(vt,!0),qe[vt.row]||(qe[vt.row]=[]),qe[vt.row][vt.column]||(qe[vt.row][vt.column]=[]),qe[vt.row][vt.column].push(vt))}Ur(ne);var Dt=Mr(),Bt=Mr(),Gt=Mr(),$t={count:0},Rn={count:0},Jr=y,gi=b,di=a.rowDefs,Br=a.colDefs,gr=null;z=di.length;for(var to=0;to<z;to++)gr=di[to],gr!==void 0&&(gr.actual=0);z=Br.length;for(var Ui=0;Ui<z;Ui++)gr=Br[Ui],gr!==void 0&&(gr.actual=0);for(var Uo=qe.length,fa=0,_s=0;_s<Uo;_s++)qe[_s]&&(fa=Math.max(fa,qe[_s].length));var Ys=Math.min(a.topIndex,Uo-1),Vl=Math.min(a.leftIndex,fa-1),Us=0;Uo=qe.length;for(var Oh=th(a),ls=0;ls<Uo;ls++)if(qe[ls]){fa=qe[ls].length;var id=a.Fb(ls);id.actual=0;for(var Wl=id.oc=0;Wl<fa;Wl++)if(qe[ls][Wl]){var Fh=a.Eb(Wl);Dt[Wl]===void 0&&(Fh.actual=0,Fh.oc=0,Dt[Wl]=!0);for(var tc=qe[ls][Wl],Lc=tc.length,Zu=0;Zu<Lc;Zu++){var ku=tc[Zu];if(ku.visible||ku===Oh){var vf=1<ku.rowSpan||1<ku.columnSpan;vf&&(ls<Ys||Wl<Vl||Bt.push(ku));var od=ku.margin,Rg=od.right+od.left,Ku=od.top+od.bottom,Zl=xc(ku,id,Fh,!1),Im=ku.desiredSize,_p=!isNaN(Im.height),md=!isNaN(Im.width)&&_p;if(vf||Zl===yr||md||ls<Ys||Wl<Vl||($t[Wl]!==void 0||Zl!==Cr&&Zl!==xi||($t[Wl]=-1,$t.count++),Rn[ls]!==void 0||Zl!==Cr&&Zl!==Di||(Rn[ls]=-1,Rn.count++),Gt.push(ku)),ku.measure(1/0,1/0,0,0),!(ls<Ys||Wl<Vl)){var Iu=ku.measuredBounds,Yf=Math.max(Iu.width+Rg,0),Yu=Math.max(Iu.height+Ku,0);if(ku.rowSpan===1&&(Zl===yr||Zl===xi)){gr=a.Fb(ls);var yf=gr.Wc();Us=Math.max(Yu-gr.actual,0),Us+yf>gi&&(Us=Math.max(gi-yf,0));var pv=gr.oa===0;gr.oc=gr.oc+Us,gr.actual=gr.oa+Us,gi=Math.max(gi-(Us+(pv?yf:0)),0)}if(ku.columnSpan===1&&(Zl===yr||Zl===Di)){gr=a.Eb(Wl);var Dm=gr.Wc();Us=Math.max(Yf-gr.actual,0),Us+Dm>Jr&&(Us=Math.max(Jr-Dm,0));var $y=gr.oa===0;gr.oc=gr.oc+Us,gr.actual=gr.oa+Us,Jr=Math.max(Jr-(Us+($y?Dm:0)),0)}vf&&ku.Uj()}}}}}Ur(Dt);var Bd=0,ih=0;z=a.columnCount;for(var Up=0;Up<z;Up++){var Sf=Br[Up];Sf!==void 0&&(Bd+=isNaN(Sf.Hc)?Sf.oc:Sf.Hc,Sf.oc!==0&&(Bd+=Sf.Wc()))}z=a.rowCount;for(var Mg=0;Mg<z;Mg++){var bf=di[Mg];bf!==void 0&&(ih+=isNaN(bf.Hc)?bf.oc:bf.Hc,bf.oc!==0&&(ih+=bf.Wc()))}Jr=Math.max(y-Bd,0);var _d=gi=Math.max(b-ih,0),Bh=Jr;z=Gt.length;for(var Du=0;Du<z;Du++){var vd=Gt[Du],gv=a.Fb(vd.row),oh=a.Eb(vd.column),Og=vd.measuredBounds,ad=vd.margin,Xf=ad.right+ad.left,yd=ad.top+ad.bottom;$t[vd.column]=oh.oc===0&&$t[vd.column]!==void 0?Math.max(Og.width+Xf,$t[vd.column]):null,Rn[vd.row]=gv.oc===0&&Rn[vd.row]!==void 0?Math.max(Og.height+yd,Rn[vd.row]):null}var Hp=0,Fg=0,Kc;for(Kc in Rn)Kc!=="count"&&(Hp+=Rn[Kc]);for(Kc in $t)Kc!=="count"&&(Fg+=$t[Kc]);for(var rl=an.alloc(),Rm=0;Rm<z;Rm++){var uu=Gt[Rm];if(uu.visible||uu===Oh){var us=a.Fb(uu.row),cu=a.Eb(uu.column),ah=0;isFinite(cu.width)?ah=cu.width:(isFinite(Jr)&&$t[uu.column]!==null?Fg===0?ah=cu.actual+Jr:ah=$t[uu.column]/Fg*Bh:$t[uu.column]!==null?ah=Jr:ah=cu.actual||Jr,ah=Math.max(0,ah-cu.Wc()));var _h=0;switch(isFinite(us.height)?_h=us.height:(isFinite(gi)&&Rn[uu.row]!==null?Hp===0?_h=us.actual+gi:_h=Rn[uu.row]/Hp*_d:Rn[uu.row]!==null?_h=gi:_h=us.actual||gi,_h=Math.max(0,_h-us.Wc())),rl.h(Math.max(cu.minimum,Math.min(ah,cu.maximum)),Math.max(us.minimum,Math.min(_h,us.maximum))),Zl=xc(uu,us,cu,!1),Zl){case xi:rl.height=Math.max(rl.height,us.actual+gi);break;case Di:rl.width=Math.max(rl.width,cu.actual+Jr)}var Qf=uu.margin,eS=Qf.right+Qf.left,mv=Qf.top+Qf.bottom;uu.Uj(),uu.measure(rl.width,rl.height,cu.minimum,us.minimum);var Bg=uu.measuredBounds,Jf=Math.max(Bg.width+eS,0),zp=Math.max(Bg.height+mv,0);isFinite(Jr)&&(Jf=Math.min(Jf,rl.width)),isFinite(gi)&&(zp=Math.min(zp,rl.height));var Ru=0;Ru=us.actual,us.actual=Math.max(us.actual,zp),us.oc=Math.max(us.oc,zp),Us=us.actual-Ru,gi=Math.max(gi-Us,0),Rn[uu.row]===null&&(_d=Math.max(_d-Us,0)),Ru=cu.actual,cu.actual=Math.max(cu.actual,Jf),cu.oc=Math.max(cu.oc,Jf),Us=cu.actual-Ru,Jr=Math.max(Jr-Us,0),$t[uu.column]===null&&(Bh=Math.max(Bh-Us,0))}}Ur(Gt);var sh=an.alloc(),sd=Mr(),vc=Mr();if(z=Bt.length,z!==0){for(var Ef=0;Ef<Uo;Ef++)if(qe[Ef]){fa=qe[Ef].length;var _g=a.Fb(Ef);sd[Ef]=_g.actual;for(var xf=0;xf<fa;xf++)if(qe[Ef][xf]){var vv=a.Eb(xf);vc[xf]=vv.actual}}}for(var Ug=0;Ug<z;Ug++){var qa=Bt[Ug];if(qa.visible||qa===Oh){var Yc=a.Fb(qa.row),kc=a.Eb(qa.column);switch(rl.h(Math.max(kc.minimum,Math.min(y,kc.maximum)),Math.max(Yc.minimum,Math.min(b,Yc.maximum))),Zl=xc(qa,Yc,kc,!1),Zl){case Cr:vc[kc.index]!==0&&(rl.width=Math.min(rl.width,vc[kc.index])),sd[Yc.index]!==0&&(rl.height=Math.min(rl.height,sd[Yc.index]));break;case xi:vc[kc.index]!==0&&(rl.width=Math.min(rl.width,vc[kc.index]));break;case Di:sd[Yc.index]!==0&&(rl.height=Math.min(rl.height,sd[Yc.index]))}isFinite(kc.width)&&(rl.width=kc.width),isFinite(Yc.height)&&(rl.height=Yc.height),sh.h(0,0);for(var yv=kc.minimum,Xu=Yc.minimum,Uh=1;Uh<qa.rowSpan&&!(qa.row+Uh>=a.rowCount);Uh++)gr=a.Fb(qa.row+Uh),Us=0,Us=Zl===Cr||Zl===Di?Math.max(gr.minimum,sd[qa.row+Uh]===0?gr.maximum:Math.min(sd[qa.row+Uh],gr.maximum)):Math.max(gr.minimum,isNaN(gr.Hc)?gr.maximum:Math.min(gr.Hc,gr.maximum)),sh.height+=Us,Xu+=gr.minimum;for(var Ic=1;Ic<qa.columnSpan&&!(qa.column+Ic>=a.columnCount);Ic++)gr=a.Eb(qa.column+Ic),Us=0,Us=Zl===Cr||Zl===xi?Math.max(gr.minimum,vc[qa.column+Ic]===0?gr.maximum:Math.min(vc[qa.column+Ic],gr.maximum)):Math.max(gr.minimum,isNaN(gr.Hc)?gr.maximum:Math.min(gr.Hc,gr.maximum)),sh.width+=Us,yv+=gr.minimum;rl.width+=sh.width,rl.height+=sh.height;var Hg=qa.margin,wf=Hg.right+Hg.left,Mm=Hg.top+Hg.bottom;qa.measure(rl.width,rl.height,yv,Xu);for(var zg=qa.measuredBounds,Sd=Math.max(zg.width+wf,0),qf=Math.max(zg.height+Mm,0),Cf=0,Gg=0;Gg<qa.rowSpan&&!(qa.row+Gg>=a.rowCount);Gg++)gr=a.Fb(qa.row+Gg),Cf+=gr.total||0;if(Cf<qf){var Hh=qf-Cf,Ud=qf-Cf;if(qa.spanAllocation!==null)for(var zh=qa.spanAllocation,lh=0;lh<qa.rowSpan&&!(0>=Hh)&&!(qa.row+lh>=a.rowCount);lh++){gr=a.Fb(qa.row+lh);var Gh=gr.oa||0,$f=zh(qa,gr,Ud);gr.actual=Math.min(gr.maximum,Gh+$f),gr.oa!==Gh&&(Hh-=gr.oa-Gh)}for(;0<Hh;){var ld=gr.oa||0;if(isNaN(gr.height)&&gr.maximum>ld&&(gr.actual=Math.min(gr.maximum,ld+Hh),gr.oa!==ld&&(Hh-=gr.oa-ld)),gr.index===0)break;gr=a.Fb(gr.index-1)}}for(var Gp=0,jh=0;jh<qa.columnSpan&&!(qa.column+jh>=a.columnCount);jh++)gr=a.Eb(qa.column+jh),Gp+=gr.total||0;if(Gp<Sd){var jp=Sd-Gp,tS=Sd-Gp;if(qa.spanAllocation!==null)for(var uh=qa.spanAllocation,ep=0;ep<qa.columnSpan&&!(0>=jp)&&!(qa.column+ep>=a.columnCount);ep++){gr=a.Eb(qa.column+ep);var Om=gr.oa||0,nS=uh(qa,gr,tS);gr.actual=Math.min(gr.maximum,Om+nS),gr.oa!==Om&&(jp-=gr.oa-Om)}for(;0<jp;){var Sv=gr.oa||0;if(isNaN(gr.width)&&gr.maximum>Sv&&(gr.actual=Math.min(gr.maximum,Sv+jp),gr.oa!==Sv&&(jp-=gr.oa-Sv)),gr.index===0)break;gr=a.Eb(gr.index-1)}}}}Ur(Bt),an.free(sh),an.free(rl),sd!==void 0&&Ur(sd),vc!==void 0&&Ur(vc);var Vp=0,Wp=0,bv=a.desiredSize,eE=a.maxSize;Zl=jl(a,!0);var Fm=ih=Bd=0,Bm=0;z=a.columnCount;for(var Ev=0;Ev<z;Ev++)Br[Ev]!==void 0&&(gr=a.Eb(Ev),isFinite(gr.width)?(Fm+=gr.width,Fm+=gr.Wc()):t0(gr)===Yg?(Fm+=gr.oa,Fm+=gr.Wc()):gr.oa!==0&&(Bd+=gr.oa,Bd+=gr.Wc()));isFinite(bv.width)?Vp=Math.min(bv.width,eE.width):Vp=Zl!==yr&&isFinite(y)?y:Bd,Vp=Math.max(Vp,a.minSize.width),Vp=Math.max(Vp-Fm,0);for(var HE=Bd===0?1:Math.max(Vp/Bd,1),xv=0;xv<z;xv++)Br[xv]!==void 0&&(gr=a.Eb(xv),isFinite(gr.width)||t0(gr)===Yg||(gr.actual=gr.oa*HE),gr.position=x.width,gr.oa!==0&&(x.width+=gr.oa,x.width+=gr.Wc()));z=a.rowCount;for(var wv=0;wv<z;wv++)di[wv]!==void 0&&(gr=a.Fb(wv),isFinite(gr.height)?(Bm+=gr.height,Bm+=gr.Wc()):t0(gr)===Yg?(Bm+=gr.oa,Bm+=gr.Wc()):gr.oa!==0&&(ih+=gr.oa,ih+=gr.Wc()));isFinite(bv.height)?Wp=Math.min(bv.height,eE.height):Wp=Zl!==yr&&isFinite(b)?b:ih,Wp=Math.max(Wp,a.minSize.height),Wp=Math.max(Wp-Bm,0);for(var zE=ih===0?1:Math.max(Wp/ih,1),Cv=0;Cv<z;Cv++)di[Cv]!==void 0&&(gr=a.Fb(Cv),isFinite(gr.height)||t0(gr)===Yg||(gr.actual=gr.oa*zE),gr.position=x.height,gr.oa!==0&&(x.height+=gr.oa,x.height+=gr.Wc()));z=ie.length;for(var rS=0;rS<z;rS++){var _m=ie[rS],iS=0,oS=0;_m.type===Tr.TableRow?(iS=x.width,gr=a.Fb(_m.row),oS=gr.actual):(gr=a.Eb(_m.column),iS=gr.actual,oS=x.height),_m.measuredBounds.h(0,0,iS,oS),Ut(_m,!1)}Ur(ie),a.inRowsCols=qe},Wm.prototype.arrange=function(a,y,b){var E=y.length,x=a.padding,z=x.left;x=x.top;var ne=a.inRowsCols;if(ne!==null){for(var ie,se,de=ne.length,pe=0,Se=0;Se<de;Se++)ne[Se]&&(pe=Math.max(pe,ne[Se].length));se=a.rowDefs,ie=a.colDefs;var Le=Se=0,Me=Math.min(a.topIndex,de-1);if(0<se.length){for(;Me!==de&&(se[Me]===void 0||se[Me].oa===0);)Me++;Me=Math.max(Math.min(Me,de-1),0),Se=-se[Me].position}var ze=Math.min(a.leftIndex,pe-1);if(0<ie.length){for(;ze!==pe&&(ie[ze]===void 0||ie[ze].oa===0);)ze++;ze=Math.max(Math.min(ze,pe-1),0),Le=-ie[ze].position}for(var qe=0,Ct=0;qe!==de&&se[qe]===void 0;)qe++;for(;Ct!==de&&ie[Ct]===void 0;)Ct++;pe=a.part,a.Fb(qe),a.Eb(Ct);for(var vt=0;vt<y.length;vt++){var Dt=y[vt];if(Dt instanceof Tr&&Dt.visible&&Ph(Dt)){if(Dt.type===Tr.TableRow){ie=a.Fb(Dt.row);var Bt=a.Eb(Ct)}else ie=a.Fb(qe),Bt=a.Eb(Dt.column);se=ie.position+Se+x,ie.oa!==0&&(se+=ie.Io(Math.max(qe,Me))),ie=Bt.position+Le+z,Bt.oa!==0&&(ie+=Bt.Io(Math.max(Ct,ze))),Bt=Dt.measuredBounds,Dt.Uk(),Dt.actualBounds.ka();var Gt=Dt.actualBounds,$t=In.allocAt(Gt.x,Gt.y,Gt.width,Gt.height);Gt.x=Dt.type===Tr.TableRow?z:ie,Gt.y=Dt.type===Tr.TableColumn?x:se,Gt.width=Bt.width,Gt.height=Bt.height,Dt.actualBounds.freeze(),Un(Dt,!1),Oi($t,Gt)||pe===null||(pe.oh(),Dt.Pn(pe)),In.free($t)}}for(vt=an.alloc(),Dt=0;Dt<de;Dt++)if(ne[Dt]){for(pe=ne[Dt].length,Bt=a.Fb(Dt),se=Bt.position+Se+x,Bt.oa!==0&&(se+=Bt.Io(Math.max(qe,Me))),Gt=0;Gt<pe;Gt++)if(ne[Dt][Gt]){$t=a.Eb(Gt),ie=$t.position+Le+z,$t.oa!==0&&(ie+=$t.Io(Math.max(Ct,ze)));for(var Rn=ne[Dt][Gt],Jr=Rn.length,gi=0;gi<Jr;gi++){var di=Rn[gi],Br=di.measuredBounds;vt.h(0,0);for(var gr=1;gr<di.rowSpan&&!(Dt+gr>=a.rowCount);gr++){var to=a.Fb(Dt+gr);to.oa!==0&&(vt.height+=to.total)}for(gr=1;gr<di.columnSpan&&!(Gt+gr>=a.columnCount);gr++)to=a.Eb(Gt+gr),to.oa!==0&&(vt.width+=to.total);var Ui=$t.oa+vt.width,Uo=Bt.oa+vt.height;gr=ie,to=se;var fa=Ui,_s=Uo,Ys=ie,Vl=se,Us=Ui,Oh=Uo;ie+Ui>b.width&&(Us=Math.max(b.width-ie,0)),se+Uo>b.height&&(Oh=Math.max(b.height-se,0));var ls=di.alignment;if(ls.Xb()){ls=a.defaultAlignment,ls.sb()||(ls=Ji);var id=ls.x,Wl=ls.y,Fh=ls.offsetX;ls=ls.offsetY;var tc=$t.alignment,Lc=Bt.alignment;tc.sb()&&(id=tc.x,Fh=tc.offsetX),Lc.sb()&&(Wl=Lc.y,ls=Lc.offsetY)}else id=ls.x,Wl=ls.y,Fh=ls.offsetX,ls=ls.offsetY;(isNaN(id)||isNaN(Wl))&&(Wl=id=.5,ls=Fh=0),tc=Br.width,Lc=Br.height;var Zu=di.margin,ku=Zu.left+Zu.right,vf=Zu.top+Zu.bottom,od=xc(di,Bt,$t,!1);!isNaN(di.desiredSize.width)||od!==Cr&&od!==xi||(tc=Math.max(Ui-ku,0)),!isNaN(di.desiredSize.height)||od!==Cr&&od!==Di||(Lc=Math.max(Uo-vf,0)),Ui=di.maxSize,Uo=di.minSize,tc=Math.min(Ui.width,tc),Lc=Math.min(Ui.height,Lc),tc=Math.max(Uo.width,tc),Lc=Math.max(Uo.height,Lc),Ui=Lc+vf,gr+=fa*id-(tc+ku)*id+Fh+Zu.left,to+=_s*Wl-Ui*Wl+ls+Zu.top,di.visible&&(ia(Ys,Vl,Us,Oh,gr,to,Br.width,Br.height)?di.arrange(gr,to,tc,Lc):di.arrange(gr,to,tc,Lc,new In(Ys,Vl,Us,Oh)))}}}for(an.free(vt),a=0;a<E;a++)b=y[a],z=b instanceof Tr?b:null,z!==null&&Ph(z)&&(z=b.actualBounds,b.naturalBounds.ka(),b.naturalBounds.h(0,0,z.width,z.height),b.naturalBounds.freeze())}};function Zm(){this.xa="Base"}Sn(Zm,As),Zm.prototype.measure=function(){},Zm.prototype.arrange=function(){};function Km(){this.xa="Base"}Sn(Km,As),Km.prototype.measure=function(){},Km.prototype.arrange=function(){};function Ym(){this.xa="Base"}Sn(Ym,As),Ym.prototype.measure=function(a,y,b,E,x,z,ne){1<E.length&&Lt("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ne);var ie=E.measuredBounds,se=E.margin,de=se.right+se.left;if(se=se.top+se.bottom,isFinite(y)||isFinite(b)){var pe=E.scale,Se=ie.width;ie=ie.height;var Le=Math.max(y-de,0),Me=Math.max(b-se,0),ze=1;a.viewboxStretch===yi?Se!==0&&ie!==0&&(ze=Math.min(Le/Se,Me/ie)):Se!==0&&ie!==0&&(ze=Math.max(Le/Se,Me/ie)),ze===0&&(ze=1e-4),E.Ca*=ze,pe!==E.scale&&(Ut(E,!0),E.measure(1/0,1/0,z,ne))}ie=E.measuredBounds,x.width=isFinite(y)?y:Math.max(ie.width+de,0),x.height=isFinite(b)?b:Math.max(ie.height+se,0)},Ym.prototype.arrange=function(a,y,b){y=y[0];var E=y.measuredBounds,x=y.margin,z=Math.max(E.width+(x.right+x.left),0);x=Math.max(E.height+(x.top+x.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=Ji),y.arrange(b.width*ne.x-z*ne.x+ne.offsetX,b.height*ne.y-x*ne.y+ne.offsetY,E.width,E.height)};function Wg(){this.xa="Base"}Sn(Wg,As),Wg.prototype.measure=function(){},Wg.prototype.arrange=function(){},Wg.prototype.gc=function(a,y,b){b=a.Df()*b.scale,0>=b&&(b=1);var E=a.gridCellSize,x=E.width;E=E.height;var z=a.naturalBounds,ne=a.actualBounds,ie=z.width,se=z.height,de=Math.ceil(ie/x),pe=Math.ceil(se/E),Se=a.gridOrigin,Le=Se.x;Se=Se.y,y.save(),y.beginPath(),y.rect(0,0,ie,se),y.clip(),y.Se();for(var Me=[],ze=a.O.s,qe=ze.length,Ct=0;Ct<qe;Ct++){var vt=ze[Ct],Dt=[];if(Me.push(Dt),vt.visible){var Bt=vt.interval;if(!(0>Bt)){vt=Nv(vt.figure);for(var Gt=0;Gt<qe;Gt++)if(Gt!==Ct){var $t=ze[Gt];$t.visible&&Nv($t.figure)===vt&&($t=$t.interval,$t>Bt&&Dt.push($t))}}}}for(ze=a.O.s,qe=ze.length,Ct=0;Ct<qe;Ct++){var Rn=ze[Ct];if(Rn.visible&&(Dt=Rn.interval||1,vt=Math.abs(Dt),!(2>x*vt*b))){if(Bt=Rn.segmentIndex,(!isFinite(Bt)||isNaN(Bt))&&(Bt=0),0>Bt&&(Bt=vt-Math.min(-Bt,vt)),Bt=Math.round(Bt%vt),vt=Rn.opacity,Gt=1,vt!==1){if(vt===0)continue;Gt=y.globalAlpha,y.globalAlpha=Gt*vt}$t=Me[Ct];var Jr=!1,gi=Rn.strokeDashArray;if(gi!==null&&(Jr=!0,y.js(gi,Rn.strokeDashOffset)),Rn.figure==="LineV"&&Rn.stroke!==null&&0<Rn.strokeWidth){for(y.lineWidth=Rn.strokeWidth,Ba(a,y,Rn.stroke,!1,!1,z,ne),y.beginPath(),gi=Rn=Math.floor((Le-x)/x);gi<=Rn+de;gi++){var di=gi*x+Le;0<=di&&di<=ie&&Xm(gi,Dt,Bt,$t)&&(y.moveTo(di,0),y.lineTo(di,se))}y.stroke(),y.Se()}else if(Rn.figure==="LineH"&&Rn.stroke!==null&&0<Rn.strokeWidth){for(y.lineWidth=Rn.strokeWidth,Ba(a,y,Rn.stroke,!1,!1,z,ne),y.beginPath(),gi=Rn=Math.floor((Se-E)/E);gi<=Rn+pe;gi++)di=gi*E+Se,0<=di&&di<=se&&Xm(gi,Dt,Bt,$t)&&(y.moveTo(0,di),y.lineTo(ie,di));y.stroke(),y.Se()}else if(Rn.figure==="BarV"&&Rn.fill!==null)for(Ba(a,y,Rn.fill,!0,!1,z,ne),Rn=Rn.width,isNaN(Rn)&&(Rn=x),di=gi=Math.floor((Le-x)/x);di<=gi+de;di++){var Br=di*x+Le;0<=Br+Rn&&Br<=ie&&Xm(di,Dt,Bt,$t)&&y.fillRect(Br,0,Rn,se)}else if(Rn.figure==="BarH"&&Rn.fill!==null)for(Ba(a,y,Rn.fill,!0,!1,z,ne),Rn=Rn.height,isNaN(Rn)&&(Rn=E),di=gi=Math.floor((Se-E)/E);di<=gi+pe;di++)Br=di*E+Se,0<=Br+Rn&&Br<=se&&Xm(di,Dt,Bt,$t)&&y.fillRect(0,Br,ie,Rn);Jr&&y.fs(),vt!==1&&(y.globalAlpha=Gt)}}y.restore(),y.Vc(!1)};function Xm(a,y,b,E){if(0>y)return a%y===b;if(a%y!==b)return!1;y=E.length;for(var x=0;x<y;x++)if(a%E[x]===b)return!1;return!0}function Qm(){this.xa="Base"}Sn(Qm,As),Qm.prototype.measure=function(a,y,b,E,x){var z=E.length;if(a instanceof Mo||a instanceof _r){var ne=null,ie=null;if(a instanceof _r&&(ne=a),a instanceof Mo&&(ie=a,ne=ie.adornedPart,a.j===null&&(a.j=[])),ne instanceof _r){var se=ne;if(z===0)ko(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var de=a instanceof Mo?null:ne.path;y=ne.routeBounds,b=a.jg,b.h(0,0,y.width,y.height);var pe=se.points,Se=ne.pointsCount;ie!==null?ie.Ul(!1):ne!==null&&ne.Ul(!1),ie=y.width;var Le=y.height,Me=a.j;if(Me.length=0,de!==null){uS(a,ie,Le,de);var ze=de.measuredBounds;b.ed(ze),Me.push(ze)}ze=Mi.alloc();for(var qe=it.alloc(),Ct=it.alloc(),vt=0;vt<z;vt++){var Dt=E[vt];if(Dt!==de)if(Dt.isPanelMain&&Dt instanceof oo){uS(a,ie,Le,Dt);var Bt=Dt.measuredBounds;b.ed(Bt),Me.push(Bt)}else if(2>Se)Dt.measure(1/0,1/0,0,0),Bt=Dt.measuredBounds,b.ed(Bt),Me.push(Bt);else{var Gt=Dt.segmentIndex,$t=Dt.segmentFraction,Rn=Dt.alignmentFocus;Rn.Mc()&&(Rn=Ji);var Jr=Dt.segmentOrientation,gi=Dt.segmentOffset;if(isNaN(Gt)){var di=se.ua;Bt=Mr(),di.Qu($t,Bt);var Br=it.allocAt(Bt[0],Bt[1]);if(Br.add(se.i(0)),di.type===Nr.j?Br.offset(-di.startX,-di.startY):(di=di.figures.first(),di!==null&&Br.offset(-di.startX,-di.startY)),di=Bt[2],Jr!==iu){var gr=se.computeAngle(Dt,Jr,di);Dt.Kb=gr}gr=Br.x-y.x;var to=Br.y-y.y;it.free(Br),Ur(Bt)}else if(Gt<-Se||Gt>=Se)Bt=it.alloc(),se.vg(),se.computeMidPoint(Bt),di=se.midAngle,Jr!==iu&&(gr=se.computeAngle(Dt,Jr,di),Dt.Kb=gr),gr=Bt.x-y.x,to=Bt.y-y.y,it.free(Bt);else{if(gr=0,0<=Gt?(to=pe.M(Gt),Bt=Gt<Se-1?pe.M(Gt+1):to):(gr=Se+Gt,to=pe.M(gr),Bt=0<gr?pe.M(gr-1):to),to.Xa(Bt)){0<=Gt?(di=0<Gt?pe.M(Gt-1):to,gr=Gt<Se-2?pe.M(Gt+2):Bt):(di=gr<Se-1?pe.M(gr+1):to,gr=1<gr?pe.M(gr-2):Bt),Br=di.Bf(to);var Ui=Bt.Bf(gr);di=Br>Ui+10?0<=Gt?di.ab(to):to.ab(di):Ui>Br+10?0<=Gt?Bt.ab(gr):gr.ab(Bt):0<=Gt?di.ab(gr):gr.ab(di)}else di=0<=Gt?to.ab(Bt):Bt.ab(to);Jr!==iu&&(gr=se.computeAngle(Dt,Jr,di),Dt.Kb=gr),gr=to.x+(Bt.x-to.x)*$t-y.x,to=to.y+(Bt.y-to.y)*$t-y.y}Dt.measure(1/0,1/0,0,0),Bt=Dt.measuredBounds,Br=Dt.naturalBounds;var Uo=0;Dt instanceof oo&&(Uo=Dt.strokeWidth),Ui=Br.width+Uo;var fa=Br.height+Uo;ze.reset(),ze.translate(-Bt.x,-Bt.y),ze.scale(Dt.scale,Dt.scale),ze.rotate(Jr===iu?Dt.angle:di,Ui/2,fa/2),Jr!==im&&Jr!==am||ze.rotate(90,Ui/2,fa/2),Jr!==om&&Jr!==sm||ze.rotate(-90,Ui/2,fa/2),Jr===T0&&(45<di&&135>di||225<di&&315>di)&&ze.rotate(-di,Ui/2,fa/2),Br=new In(0,0,Ui,fa),qe.xi(Br,Rn),ze.Ga(qe),Rn=-qe.x+Uo/2*Dt.scale,Dt=-qe.y+Uo/2*Dt.scale,Ct.assign(gi),Uo=isNaN(gi.x);var _s=isNaN(gi.y);if(Uo||_s){Ui=Ui/2+3,fa=fa/2+3;var Ys=45<=di&&135>=di,Vl=225<=di&&315>=di;Jr===iu&&(Ys||Vl)?(Ct.x=_s?Ui:gi.y,Ct.y=Uo?fa:gi.x,Ys?0<=Gt||isNaN(Gt)&&.5>$t||!Uo||(Ct.y=-fa):Vl&&((0<=Gt||isNaN(Gt)&&.5>$t)&&Uo&&(Ct.y=-fa),_s&&(Ct.x=-Ui))):(Uo&&(Ct.x=0<=Gt||isNaN(Gt)&&.5>$t?Ui:-Ui),_s&&(Ct.y=-fa),Ct.rotate(di))}else Ct.rotate(di);gr+=Ct.x,to+=Ct.y,Br.set(Bt),Br.h(gr+Rn,to+Dt,Bt.width,Bt.height),Me.push(Br),b.ed(Br)}}if(ne!==null)for(E=ne.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=b,a.position.h(y.x+b.x,y.y+b.y),ko(x,b.width||0,b.height||0),Mi.free(ze),it.free(qe),it.free(Ct)}}}},Qm.prototype.arrange=function(a,y){var b=y.length;if(a instanceof Mo||a instanceof _r){var E=a,x=null;a instanceof Mo&&(x=a,E=x.adornedPart);var z=a instanceof Mo?null:E.path,ne=a.j;if(ne.length!==0){var ie=0;if(z!==null&&ie<ne.length){var se=ne[ie];ie++,z.arrange(se.x-a.jg.x,se.y-a.jg.y,se.width,se.height)}for(se=0;se<b;se++){var de=y[se];if(de!==z&&ie<ne.length){var pe=ne[ie];ie++,de.arrange(pe.x-a.jg.x,pe.y-a.jg.y,pe.width,pe.height)}}}if(y=E.points,b=y.count,2<=b&&a instanceof _r)for(z=a.labelNodes;z.next();){var Se=a;ne=z.value,ie=ne.segmentIndex,se=ne.segmentFraction;var Le=ne.alignmentFocus;if(de=ne.segmentOrientation,pe=ne.segmentOffset,isNaN(ie)){var Me=Se.ua,ze=Mr();Me.Qu(se,ze);var qe=it.allocAt(ze[0],ze[1]);qe.add(Se.i(0)),Me.type===Nr.j||(Me=Me.figures.first()),qe.offset(-Me.startX,-Me.startY),Me=ze[2],de!==iu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=qe.x;var Ct=qe.y;it.free(qe),Ur(ze)}else if(ie<-b||ie>=b)ze=it.alloc(),Me=Se,Ct=ze,Me.vg(),Me.computeMidPoint(Ct),Me=Se.midAngle,de!==iu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=ze.x,Ct=ze.y,it.free(ze);else{if(qe=0,0<=ie?(ze=y.s[ie],Ct=ie<b-1?y.s[ie+1]:ze):(qe=b+ie,ze=y.s[qe],Ct=0<qe?y.s[qe-1]:ze),ze.Xa(Ct)){0<=ie?(Me=0<ie?y.s[ie-1]:ze,qe=ie<b-2?y.s[ie+2]:Ct):(Me=qe<b-1?y.s[qe+1]:ze,qe=1<qe?y.s[qe-2]:Ct);var vt=Me.Bf(ze),Dt=Ct.Bf(qe);Me=vt>Dt+10?0<=ie?Me.ab(ze):ze.ab(Me):Dt>vt+10?0<=ie?Ct.ab(qe):qe.ab(Ct):0<=ie?Me.ab(qe):qe.ab(Me)}else Me=0<=ie?ze.ab(Ct):Ct.ab(ze);de!==iu&&(Se=Se.computeAngle(ne,de,Me),ne.angle=Se),Se=ze.x+(Ct.x-ze.x)*se,Ct=ze.y+(Ct.y-ze.y)*se}if(Le.ys())ne.location=new it(Se,Ct);else{Le.Mc()&&(Le=Ji),ze=Mi.alloc(),ze.reset(),ze.scale(ne.scale,ne.scale),ze.rotate(ne.angle,0,0);var Bt=ne.naturalBounds;qe=In.allocAt(0,0,Bt.width,Bt.height),vt=it.alloc(),vt.xi(qe,Le),ze.Ga(vt),Le=-vt.x,Dt=-vt.y;var Gt=Bt.width,$t=Bt.height;Bt=it.alloc(),Bt.assign(pe);var Rn=isNaN(pe.x),Jr=isNaN(pe.y);if(Rn||Jr){Gt=Gt/2+3,$t=$t/2+3;var gi=45<=Me&&135>=Me,di=225<=Me&&315>=Me;de===iu&&(gi||di)?(Bt.x=Jr?Gt:pe.y,Bt.y=Rn?$t:pe.x,gi?0<=ie||isNaN(ie)&&.5>se||!Rn||(Bt.y=-$t):di&&((0<=ie||isNaN(ie)&&.5>se)&&Rn&&(Bt.y=-$t),Jr&&(Bt.x=-Gt))):(Rn&&(Bt.x=0<=ie||isNaN(ie)&&.5>se?Gt:-Gt),Jr&&(Bt.y=-$t),Bt.rotate(Me))}else Bt.rotate(Me);Se+=Bt.x,Ct+=Bt.y,ze.pp(qe),Le+=qe.x,Dt+=qe.y,ie=it.allocAt(Se+Le,Ct+Dt),ne.move(ie),it.free(ie),it.free(Bt),it.free(vt),In.free(qe),Mi.free(ze)}}x!==null?x.Ul(!1):E.Ul(!1),E=US(a),a.location.h(a.position.x+E.x,a.position.y+E.y),it.free(E)}};function uS(a,y,b,E){if(Nt(E)!==!1){var x=E.strokeWidth;x===0&&a instanceof Mo&&a.type===Tr.Link&&a.adornedObject instanceof oo&&(x=a.adornedObject.strokeWidth),x*=E.Ca,a instanceof _r&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):a instanceof Mo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-x/2,a.y-x/2,a.width+x,a.height+x)):E.Ge(-(x/2),-(x/2),y+x,b+x),x=E.desiredSize,x.w()||E.ua===null?E.dc.h(0,0,x.width,x.height):E.dc.assign(E.ua.bounds),Ut(E,!1)}}function Zg(){this.xa="Base"}Sn(Zg,As),Zg.prototype.measure=function(a,y,b,E,x,z,ne){var ie=a.Pb();a.graduatedBounds=[];var se=ie.margin,de=se.right+se.left,pe=se.top+se.bottom;ie.measure(y,b,z,ne);var Se=ie.measuredBounds,Le=new In(-se.left,-se.top,Math.max(Se.width+de,0),Math.max(Se.height+pe,0));a.graduatedBounds.push(Le),x.assign(Le);for(var Me=ie.geometry,ze=ie.strokeWidth,qe=Me.flattenedSegments,Ct=Me.flattenedLengths,vt=Me.flattenedTotalLength,Dt=qe.length,Bt=0,Gt=0,$t=Mr(),Rn=0;Rn<Dt;Rn++){var Jr=qe[Rn],gi=[];Gt=Bt=0;for(var di=Jr.length,Br=0;Br<di;Br+=2){var gr=Jr[Br],to=Jr[Br+1];if(Br!==0){var Ui=180*Math.atan2(to-Gt,gr-Bt)/Math.PI;0>Ui&&(Ui+=360),gi.push(Ui)}Bt=gr,Gt=to}$t.push(gi)}if(a.graduatedIntervals===null){for(var Uo=[],fa=a.O.s,_s=fa.length,Ys=0;Ys<_s;Ys++){var Vl=fa[Ys],Us=[];if(Uo.push(Us),Vl.visible){var Oh=Vl.interval;if(!(0>Oh)){for(var ls=0;ls<_s;ls++)if(ls!==Ys){var id=fa[ls];if(id.visible&&Vl.constructor===id.constructor){var Wl=id.interval;Wl>Oh&&Us.push(Wl)}}}}}a.graduatedIntervals=Uo}var Fh=a.graduatedIntervals,tc=a.O.s,Lc=tc.length,Zu=0,ku=0,vf=vt;a.graduatedMarks=[];for(var od,Rg=0;Rg<Lc;Rg++){var Ku=tc[Rg];if(od=[],Ku.visible&&Ku!==ie){var Zl=Math.abs(Ku.interval),Im=a.graduatedTickUnit;if(!(2>Im*Zl*vt/a.graduatedRange&&Ku.graduatedSkip===null)){var _p=Ct[0][0],md=0,Iu=0;ku=vt*Ku.graduatedStart-1e-4,vf=vt*Ku.graduatedEnd+1e-4;var Yf=Im*Zl,Yu=a.graduatedTickBase;if(Yu<a.graduatedMin){var yf=(a.graduatedMin-Yu)/Yf;yf=yf%1===0?yf:Math.floor(yf+1),Yu+=yf*Yf}else Yu>a.graduatedMin+Yf&&(Yu-=Math.floor((Yu-a.graduatedMin)/Yf)*Yf);for(var pv=Fh[Rg],Dm=Yu,$y=1e-6*a.graduatedMax,Bd=1;Yu<=a.graduatedMax+$y;Bd++){e:{for(var ih=pv.length,Up=0;Up<ih;Up++){var Sf=(Yu-a.graduatedTickBase)%(pv[Up]*a.graduatedTickUnit),Mg=1e-6*a.graduatedTickUnit;if(Sf<Mg&&Sf>-Mg){var bf=!1;break e}}bf=!0}if(bf&&(Yu>a.graduatedMax&&(Yu=a.graduatedMax),Ku.graduatedSkip===null||Ku instanceof Sa&&!Ku.graduatedSkip(Yu,Ku)||Ku instanceof oo&&!Ku.graduatedSkip(Yu,Ku))&&(Zu=(Yu-a.graduatedMin)*vt/a.graduatedRange,Zu>vt&&(Zu=vt),ku<=Zu&&Zu<=vf)){for(var _d=$t[md][Iu],Bh=Ct[md][Iu];md<Ct.length;){for(;Zu>_p&&Iu<Ct[md].length-1;)Iu++,_d=$t[md][Iu],Bh=Ct[md][Iu],_p+=Bh;if(Zu<=_p)break;md++,Iu=0,_d=$t[md][Iu],Bh=Ct[md][Iu],_p+=Bh}var Du=qe[md],vd=Du[2*Iu],gv=Du[2*Iu+1],oh=(Zu-(_p-Bh))/Bh,Og=new it(vd+(Du[2*Iu+2]-vd)*oh+ze/2-Me.bounds.x,gv+(Du[2*Iu+3]-gv)*oh+ze/2-Me.bounds.y);Og.scale(ie.scale,ie.scale);e:{var ad=_d,Xf=$t[md];if(!(.5005>oh&&.4995<oh)){var yd=ad;if(.5>oh?0<Iu?yd=Xf[Iu-1]:tn.$(Du[0],Du[Du.length-2])&&tn.$(Du[1],Du[Du.length-1])&&(yd=Xf[Xf.length-1]):.5<oh&&(Iu+1<Xf.length?yd=Xf[Iu+1]:tn.$(Du[0],Du[Du.length-2])&&tn.$(Du[1],Du[Du.length-1])&&(yd=Xf[0])),ad!==yd){var Hp=Math.abs(ad-yd);if(180<Hp&&(ad<yd?ad+=360:yd+=360,Hp=Math.abs(ad-yd)),5e-4>oh||.9995<oh){_d=(ad+yd)/2%360;break e}if(10>Hp){var Fg=1-Math.abs(.5-oh);_d=(ad*Fg+yd*(1-Fg))%360;break e}}}_d=ad}if(Ku instanceof Sa){var Kc="";Ku.graduatedFunction!==null?(Kc=Ku.graduatedFunction(Yu,Ku),Kc=Kc!=null?Kc.toString():""):Kc=(+Yu.toFixed(2)).toString(),Kc!==""&&od.push({$l:Og,angle:_d,text:Kc})}else od.push({$l:Og,angle:_d})}Yu=Dm+Bd*Yf}}}a.graduatedMarks.push(od)}Ur($t);var rl=a.graduatedMarks;if(rl!==null)for(var Rm=E.length,uu=0;uu<Rm;uu++){var us=E[uu],cu=rl[uu];if(us.visible&&us!==ie&&cu.length!==0){if(us instanceof oo){var ah=a,_h=x,Qf=us.alignmentFocus;Qf.Mc()&&(Qf=Io);var eS=us.angle;us.Kb=0,us.measure(1/0,1/0,0,0),us.Kb=eS;var mv=us.measuredBounds,Bg=mv.width,Jf=mv.height,zp=In.allocAt(0,0,Bg,Jf),Ru=it.alloc();Ru.xi(zp,Qf),In.free(zp);for(var sh=-Ru.x,sd=-Ru.y,vc=new In,Ef=cu.length,_g=0;_g<Ef;_g++)for(var xf=cu[_g],vv=xf.$l.x,Ug=xf.$l.y,qa=xf.angle,Yc=0;4>Yc;Yc++){switch(Yc){case 0:Ru.h(sh,sd);break;case 1:Ru.h(sh+Bg,sd);break;case 2:Ru.h(sh,sd+Jf);break;case 3:Ru.h(sh+Bg,sd+Jf)}Ru.rotate(qa+us.angle),Ru.offset(vv,Ug),_g===0&&Yc===0?vc.h(Ru.x,Ru.y,0,0):vc.Ye(Ru),Ru.offset(-vv,-Ug),Ru.rotate(-qa-us.angle)}it.free(Ru),ah.graduatedBounds!==null&&ah.graduatedBounds.push(vc),vo(_h,vc.x,vc.y,vc.width,vc.height)}else if(us instanceof Sa){var kc=a,yv=x;kc.temporaryTextBlock===null&&(kc.temporaryTextBlock=new Sa);var Xu=kc.temporaryTextBlock;CS(Xu,us);var Uh=us.alignmentFocus;Uh.Mc()&&(Uh=Io);for(var Ic=us.segmentOrientation,Hg=us.segmentOffset,wf=new In,Mm=0,zg=0,Sd=0,qf=0,Cf=0,Gg=cu.length,Hh=0;Hh<Gg;Hh++){var Ud=cu[Hh];Mm=Ud.$l.x,zg=Ud.$l.y,Sd=Ud.angle,Cf=qf=us.angle,Ic!==iu&&(Cf=Ic===rm||Ic===P0?Sd+us.angle:Sd,qf=_r.computeAngle(Ic,Cf)),Xu.Kb=qf,Xu.text=Ud.text||"",Xu.measure(1/0,1/0,0,0);var zh=Xu.measuredBounds,lh=Xu.naturalBounds,Gh=lh.width,$f=lh.height,ld=Mi.alloc();ld.reset(),ld.translate(-zh.x,-zh.y),ld.scale(Xu.scale,Xu.scale),ld.rotate(Cf,Gh/2,$f/2),Ic!==im&&Ic!==am||ld.rotate(90,Gh/2,$f/2),Ic!==om&&Ic!==sm||ld.rotate(-90,Gh/2,$f/2),Ic===T0&&(45<Sd&&135>Sd||225<Sd&&315>Sd)&&ld.rotate(-Sd,Gh/2,$f/2);var Gp=In.allocAt(0,0,Gh,$f),jh=it.alloc();jh.xi(Gp,Uh),ld.Ga(jh);var jp=-jh.x,tS=-jh.y,uh=it.alloc();uh.assign(Hg),isNaN(uh.x)&&(uh.x=Gh/2+3),isNaN(uh.y)&&(uh.y=-($f/2+3)),uh.rotate(Sd),Mm+=uh.x+jp,zg+=uh.y+tS;var ep=new In(Mm,zg,zh.width,zh.height),Om=new In(zh.x,zh.y,zh.width,zh.height),nS=new In(lh.x,lh.y,lh.width,lh.height);Ud.Sz=qf,Ud.lineCount=Xu.lineCount,Ud.lines=[Xu.Cb,Xu.Ih,Xu.df,Xu.Le,Xu.Qc,Xu.Qb,Xu.ze],Ud.actualBounds=ep,Ud.measuredBounds=Om,Ud.naturalBounds=nS,Hh===0?wf.assign(ep):wf.ed(ep),it.free(uh),it.free(jh),In.free(Gp),Mi.free(ld)}kc.graduatedBounds!==null&&kc.graduatedBounds.push(wf),vo(yv,wf.x,wf.y,wf.width,wf.height)}Ut(us,!1)}}},Zg.prototype.arrange=function(a,y,b){if(a.graduatedBounds!==null){var E=a.Pb(),x=a.graduatedMarks;if(x!==null){var z=a.graduatedBounds,ne=0,ie=z[ne];ne++,E!==null&&E.arrange(ie.x-b.x,ie.y-b.y,ie.width,ie.height);for(var se=y.length,de=0;de<se;de++){var pe=y[de];ie=x[de],pe.visible&&pe!==E&&ie.length!==0&&(ie=z[ne],ne++,pe.arrange(ie.x-b.x,ie.y-b.y,ie.width,ie.height))}a.graduatedBounds=null}}},Zg.prototype.gc=function(a,y,b){var E=b.$i;b.$i=!0;var x=a.naturalBounds,z=x.width,ne=x.height;x=y instanceof Go,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ne+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,b),ne=a.Df()*b.scale,0>=ne&&(ne=1);for(var ie=z.actualBounds,se=a.O.s,de=a.graduatedMarks,pe=se.length,Se=0;Se<pe;Se++){var Le=se[Se],Me=de[Se],ze=Me.length;if(Le.visible&&Le!==z&&Me.length!==0){if(Le instanceof oo){if(!(2>a.graduatedTickUnit*Le.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Le.graduatedSkip===null)){var qe=Le.measuredBounds,Ct=Le.strokeWidth*Le.scale,vt=Le.alignmentFocus;vt.Mc()&&(vt=Io);for(var Dt=0;Dt<ze;Dt++){var Bt=Me[Dt].$l,Gt=Me[Dt].angle,$t=vt,Rn=Le.Ab;Rn.reset(),Rn.translate(Bt.x+ie.x,Bt.y+ie.y),Rn.rotate(Gt+Le.angle,0,0),Rn.translate(-qe.width*$t.x+$t.offsetX+Ct/2,-qe.height*$t.y+$t.offsetY+Ct/2),Rn.scale(Le.scale,Le.scale),ut(Le,!1),Le.wh.set(Le.Ab),Le.Kk=Le.scale,At(Le,!1),Le.gc(y,b),x&&(a.svg.appendChild(Le.svg),Le.svg=null),Le.Ab.reset()}}}else if(Le instanceof Sa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Sa),qe=a.temporaryTextBlock,CS(qe,Le),Ct=0;Ct<ze;Ct++)vt=Me[Ct],vt.actualBounds&&vt.measuredBounds&&vt.naturalBounds&&(qe.ec=vt.text||"",qe.Kb=vt.Sz||0,qe.Gc=vt.lineCount||0,Dt=vt.lines,Dt!==void 0&&(qe.Cb=Dt[0],qe.Ih=Dt[1],qe.df=Dt[2],qe.Le=Dt[3],qe.Qc=Dt[4],qe.Qb=Dt[5],qe.ze=Dt[6]),vt.naturalBounds&&(qe.dc=vt.naturalBounds),vt.actualBounds&&(Dt=vt.actualBounds,qe.arrange(Dt.x,Dt.y,Dt.width,Dt.height)),Dt=vt.actualBounds,qe.arrange(Dt.x,Dt.y,Dt.width,Dt.height),Bt=vt.measuredBounds,vt=vt.naturalBounds,Gt=qe.Ab,Gt.reset(),Gt.translate(Dt.x+ie.x,Dt.y+ie.y),Gt.translate(-Bt.x,-Bt.y),qe.no(Gt,vt.x,vt.y,vt.width,vt.height),ut(qe,!1),qe.wh.set(qe.Ab),qe.Kk=qe.scale,At(qe,!1),qe.Ng=Le.part,qe.Me=Le.panel,qe.gc(y,b),qe.Me=null,qe.Ng=null,x&&(a.svg.appendChild(qe.svg),qe.svg=null))}}b.$i=E,y.restore(),y.Vc(!0)};function Tr(a,y){if(rn.call(this),this.na=null,a===void 0)this.na=Tr.Position;else if(typeof a=="string"){var b=zc.I(a);b!==null&&(this.na=b)}else a instanceof As?this.na=a:a&&(this.na=Tr.Position,y=a);this.na===null&&Lt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Tr.Grid?1048576:0),this.O=new Qn,this.yb=ts,this.Tm=ns,this.Uf=$i,this.$g=null,this.$e="",this.jg=new In(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yi,this.jn=Si,this.kn=Dr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Sn(Tr,rn),Tr.prototype.cloneProtected=function(a){rn.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},Tr.prototype.Af=function(a){rn.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,b=y.length,E=0;E<b;E++)y[E].Me=a;a.$g=null},Tr.prototype.copy=function(){var a=rn.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E].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 $r&&(z.Te=!0);var ie=a.diagram;ie!==null&&ie.undoManager.isUndoingRedoing||z.cb(Ta,"elements",a,null,x,null,ne)}}return a}return null},Oe=Tr.prototype,Oe.toString=function(){return"Panel("+this.type.name+")#"+Fi(this)},Oe.Pn=function(a){rn.prototype.Pn.call(this,a);for(var y=this.O.s,b=y.length,E=0;E<b;E++)y[E].Pn(a)},Oe.hh=function(a,y){if(this.na===Tr.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Tr.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Tr.Table)if(a.yc(),a instanceof Go){var b=a.yd;a.yd=Uc(a,"gojs-ts"),Av(this,a),a.nh.pop(),a.yd=b}else Av(this,a);(b=this.isClipping&&this.na===Tr.Spot)&&a.save();for(var E=this.Pb(),x=this.O.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];b&&ie===E&&(a.clipInsteadOfFill=!0),ie.gc(a,y),b&&ie===E&&(a.clipInsteadOfFill=!1)}b&&(a.restore(),a.Vc(!0))}};function Av(a,y){y.lineCap="butt";var b=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;b!==null&&Jm(a,y,!0,b,!0),E!==null&&Jm(a,y,!1,E,!0),b!==null&&cS(a,y,!0,b),E!==null&&cS(a,y,!1,E),b!==null&&Jm(a,y,!0,b,!1),E!==null&&Jm(a,y,!1,E,!1)}function cS(a,y,b,E){for(var x=E.length,z=a.actualBounds,ne=a.naturalBounds,ie=!0,se=0;se<x;se++){var de=E[se];if(de!==void 0&&de.actual!==0)if(ie)ie=!1;else{if(b){if(de.position>ne.height)continue}else if(de.position>ne.width)continue;var pe=de.separatorStrokeWidth;isNaN(pe)&&(pe=b?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Se=de.separatorStroke;if(Se===null&&(Se=b?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),pe!==0&&Se!==null){Ba(a,y,Se,!1,!1,ne,z),Se=!1;var Le=de.separatorDashArray;Le===null&&(Le=b?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Le!==null&&(Se=!0,y.js(Le,0)),y.beginPath(),Le=de.position+pe,b?Le>ne.height&&(pe-=Le-ne.height):Le>ne.width&&(pe-=Le-ne.width),de=de.position+pe/2,y.lineWidth=pe,pe=a.yb,b?(de+=pe.top,Le=ne.width-pe.right,y.moveTo(pe.left,de),y.lineTo(Le,de)):(de+=pe.left,Le=ne.height-pe.bottom,y.moveTo(de,pe.top),y.lineTo(de,Le)),y.stroke(),y.Se(),Se&&y.fs()}}}}function Jm(a,y,b,E,x){for(var z=E.length,ne=a.actualBounds,ie=a.naturalBounds,se=dS(a,!0),de=dS(a,!1),pe=0;pe<z;pe++){var Se=E[pe];if(Se!==void 0&&Se.background!==null&&Se.coversSeparators!==x&&Se.actual!==0){var Le=b?ne.height:ne.width;if(!(Se.position>Le)){var Me=Se.Wc(),ze=Se.separatorStrokeWidth;isNaN(ze)&&(ze=b?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var qe=Se.separatorStroke;qe===null&&(qe=b?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(qe===null||Se.index===(b?se:de))&&(ze=0),Me-=ze,ze=Se.position+ze,Me+=Se.actual,ze+Me>Le&&(Me=Le-ze),0>=Me||(Le=a.yb,Ba(a,y,Se.background,!0,!1,ie,ne),b?y.fillRect(Le.left,ze+Le.top,ne.width-(Le.left+Le.right),Me):y.fillRect(ze+Le.left,Le.top,Me,ne.height-(Le.top+Le.bottom)))}}}}function dS(a,y){for(var b=y?a.rowCount:a.columnCount,E=0;E<b;E++){var x=y?a.rowDefs[E]:a.colDefs[E];if(x!==void 0)return x.index}return 0}function Nv(a){return a==="LineV"||a==="BarV"}Oe.lv=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].lv();this.Uc=!0},Oe.kk=function(a,y,b){if(!rn.prototype.kk.call(this,a,y,b))return!1;if(this.type===Tr.Table)b=this.svg.getElementsByClassName("gojs-ts"),b=b.length!==0?b[0]:null,b!==null&&(b.innerHTML=""),a.yd=b,Av(this,a),a.yd=null;else if(this.na===Tr.Grid||this.na===Tr.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;b=this.O.s;for(var E=b.length,x=0;x<E;x++)b[x].gc(a,y);return!0},Oe.nk=function(){return!0},Oe.$o=function(a,y,b,E){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 ie=y[ne].actualBounds;x=ne===0?ie.x:Math.min(ie.x,x),z=ne===0?ie.y:Math.min(ie.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-b.x-x)+","+(a.y-b.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else rn.prototype.$o.call(this,a,y,b,E)},Oe.Sj=function(a,y,b,E,x){var z=this.se(),ne=this.transform,ie=1/(ne.m11*ne.m22-ne.m12*ne.m21),se=ne.m22*ie,de=-ne.m12*ie,pe=-ne.m21*ie,Se=ne.m11*ie,Le=ie*(ne.m21*ne.dy-ne.m22*ne.dx),Me=ie*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,tn.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,b,E,x);if(this.background!==null)return z=a*se+y*pe+Le,ie=a*de+y*Se+Me,a=b*se+E*pe+Le,se=b*de+E*Se+Me,x.h(0,0),b=this.naturalBounds,z=tn.Ff(0,0,b.width,b.height,z,ie,a,se,x),x.transform(ne),z;z||(se=1,pe=de=0,Se=1,Me=Le=0),ie=a*se+y*pe+Le,a=a*de+y*Se+Me,se=b*se+E*pe+Le,b=b*de+E*Se+Me,x.h(se,b),E=(se-ie)*(se-ie)+(b-a)*(b-a),de=!1,Se=this.O.s,Me=Se.length,pe=it.alloc(),Le=null,y=1/0;var ze=null,qe=this.isClipping&&this.na===Tr.Spot;qe&&(ze=it.alloc(),Le=this.Pb(),(de=Le.Sj(ie,a,se,b,ze))&&(y=(ie-ze.x)*(ie-ze.x)+(a-ze.y)*(a-ze.y)));for(var Ct=0;Ct<Me;Ct++){var vt=Se[Ct];vt.visible&&vt!==Le&&vt.Sj(ie,a,se,b,pe)&&(de=!0,vt=(ie-pe.x)*(ie-pe.x)+(a-pe.y)*(a-pe.y),vt<E&&(E=vt,x.set(pe)))}return qe&&(y>E&&x.set(ze),it.free(ze)),it.free(pe),z&&x.transform(ne),de},Oe.Gj=function(){for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Gj();rn.prototype.Gj.call(this)},Oe.v=function(a){if(!Nt(this)){rn.prototype.v.call(this,a),a=null,(this.na===Tr.Auto||this.na===Tr.Link)&&(a=this.Pb());for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E];if((x===a||x.isPanelMain)&&x.v(!0),!x.desiredSize.w()){var z=jl(x,!1);(x instanceof ru||x instanceof Tr||x instanceof Sa||z!==yr)&&x.v(!0)}}}},Oe.Uj=function(){if(!Nt(this)){Ut(this,!0),Un(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Uj()}},Oe.Uk=function(){if(!(this.l&2048)){ut(this,!0),At(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()}},Oe.Wu=function(){At(this,!0);for(var a=this.O.s,y=a.length,b=0;b<y;b++)a[b].Wu()},Oe.Wl=function(a,y,b,E){var x=this.jg;x.h(0,0,0,0);var z=this.desiredSize,ne=this.minSize;b===void 0&&(b=ne.width,E=ne.height),b=Math.max(b,ne.width),E=Math.max(E,ne.height);var ie=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ie.width)),isNaN(z.height)||(y=Math.min(z.height,ie.height)),a=Math.max(b,a),y=Math.max(E,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,b,E),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(ie.width,a),se=Math.min(ie.height,se),a=Math.max(ne.width,a),se=Math.max(ne.height,se),a=Math.max(b,a),se=Math.max(E,se),ko(x,a,se),ko(this.naturalBounds,a,se),this.Ge(0,0,a,se)},Oe.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var b=0;b<y;b++){var E=a[b];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function th(a){return a.part!==null?a.part.locationObject:null}Oe.eh=function(a,y,b,E){var x=this.O.s;if(this.actualBounds.h(a,y,b,E),x.length!==0){if(!this.desiredSize.w()){a=jl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ne=this.Kg,ie=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===b&&z===E&&(a=yr),a){case yr:(y>b||z>E)&&(this.v(),this.measure(y>b?b:y,z>E?E:z,0,0));break;case Cr:this.v(!0),this.measure(b+ie,E+ne,0,0);break;case xi:this.v(!0),this.measure(b+ie,z+ne,0,0);break;case Di:this.v(!0),this.measure(y+ie,E+ne,0,0)}}this.na.arrange(this,x,this.jg)}},Oe.gh=function(a){var y=this.naturalBounds,b=th(this);if(ia(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,x=it.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===b)&&(Pn(x.set(a),z.transform),z.ca(x)))return it.free(x),!0}return it.free(x),!(this.Ma===null&&this.areaBackground===null)}return!1},Oe.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E].ks(a);if(x!==null)return x}return null},Oe.qm=function(a,y){if(y(this,a),a instanceof Tr){a=a.O.s;for(var b=a.length,E=0;E<b;E++)this.qm(a[E],y)}};function Hf(a,y){hS(a,a,y)}function hS(a,y,b){b(y),y=y.O.s;for(var E=y.length,x=0;x<E;x++){var z=y[x];z instanceof Tr&&hS(a,z,b)}}function aE(a,y){fS(a,a,y)}function fS(a,y,b){if(b(y),y instanceof Tr){y=y.O.s;for(var E=y.length,x=0;x<E;x++)fS(a,y[x],b)}}Oe.Nl=function(a){return pS(this,this,a)};function pS(a,y,b){if(b(y))return y;if(y instanceof Tr){y=y.O.s;for(var E=y.length,x=0;x<E;x++){var z=pS(a,y[x],b);if(z!==null)return z}}return null}Oe.fb=function(a){if(this.name===a)return this;var y=this.O.s,b=y.length;this.Hh===null&&this.itemTemplateMap===null||(b=Kg(this));for(var E=0;E<b;E++){var x=y[E];if(x instanceof Tr){var z=x.fb(a);if(z!==null)return z}if(x.name===a)return x}return null};function gS(a){a=a.O.s;for(var y=a.length,b=0,E=0;E<y;E++){var x=a[E];x instanceof Tr?b=Math.max(b,gS(x)):x instanceof oo&&(b=Math.max(b,x.ig/2*x.strokeMiterLimit*x.Df()))}return b}Oe.se=function(){return!(this.type===Tr.TableRow||this.type===Tr.TableColumn)};function Ph(a){return a.type===Tr.TableRow||a.type===Tr.TableColumn}Oe.ic=function(a,y,b){if(this.pickable===!1||(y===void 0&&(y=null),b===void 0&&(b=null),Zt(this)))return null;var E=this.naturalBounds,x=1/this.Df(),z=this.se(),ne=z?a:Pn(it.allocAt(a.x,a.y),this.transform),ie=this.diagram,se=10,de=5;if(ie!==null&&(se=ie.Ql("extraTouchArea"),de=se/2),ia(-(de*x),-(de*x),E.width+se*x,E.height+se*x,ne.x,ne.y)){if(!this.isAtomic){x=this.O.s;var pe=x.length;if(ie=it.alloc(),de=(se=this.isClipping&&this.na===Tr.Spot)?this.Pb():null,se&&(de.se()?Pn(ie.set(a),de.transform):ie.set(a),!de.ca(ie)))return it.free(ie),z||it.free(ne),null;for(var Se=th(this);pe--;){var Le=x[pe];if((Le.visible||Le===Se)&&(Le.se()?Pn(ie.set(a),Le.transform):ie.set(a),!se||Le!==de)){var Me=null;if(Le instanceof Tr?Me=Le.ic(ie,y,b):Le.pickable===!0&&Le.ca(ie)&&(Me=Le),Me!==null&&(y!==null&&(Me=y(Me)),Me!==null&&(b===null||b(Me))))return it.free(ie),z||it.free(ne),Me}}it.free(ie)}return this.background===null&&this.areaBackground===null?(z||it.free(ne),null):(a=ia(0,0,E.width,E.height,ne.x,ne.y)?this:null,z||it.free(ne),a)}return z||it.free(ne),null},Oe.ji=function(a,y,b,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),b===void 0&&(b=null);var x=this.naturalBounds,z=this.se(),ne=z?a:Pn(it.allocAt(a.x,a.y),this.transform);if(x=ia(0,0,x.width,x.height,ne.x,ne.y),Ph(this)||x){if(!this.isAtomic){for(var ie=this.O.s,se=ie.length,de=it.alloc(),pe=th(this);se--;){var Se=ie[se];if(Se.visible||Se===pe){Se.se()?Pn(de.set(a),Se.transform):de.set(a);var Le=Se;Se=Se instanceof Tr?Se:null,(Se!==null?Se.ji(de,y,b,E):Le.ca(de))&&Le.pickable!==!1&&(y!==null&&(Le=y(Le)),Le===null||b!==null&&!b(Le)||E.add(Le))}}it.free(de)}return z||it.free(ne),x&&(this.background!==null||this.areaBackground!==null)}return z||it.free(ne),!1},Oe.Cf=function(a,y,b,E,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),b===void 0&&(b=null);var ne=z;if(z===void 0&&(ne=Mi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Mi.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var ie=th(this),se=this.O.s,de=se.length;de--;){var pe=se[de];if(pe.visible||pe===ie){var Se=pe.actualBounds,Le=this.naturalBounds;Se.x>Le.width||Se.y>Le.height||0>Se.x+Se.width||0>Se.y+Se.height||(Se=pe,pe=pe instanceof Tr?pe:null,Le=Mi.alloc(),Le.set(ne),(pe!==null?pe.Cf(a,y,b,E,x,Le):Ts(Se,a,E,Le))&&(y!==null&&(Se=y(Se)),Se===null||b!==null&&!b(Se)||x.add(Se)),Mi.free(Le))}}return z===void 0&&Mi.free(ne),E}return z===void 0&&Mi.free(ne),!1};function Lv(a,y,b,E){for(var x=a.O.s,z=x.length;z--;){var ne=x[z];if(ne.visible){var ie=ne.actualBounds,se=a.naturalBounds;ie.x>se.width||ie.y>se.height||0>ie.x+ie.width||0>ie.y+ie.height||(ne instanceof Tr&&Lv(ne,y,b,E),y!==null&&(ne=y(ne)),ne===null||b!==null&&!b(ne)||E.add(ne))}}}Oe.og=function(a,y,b,E,x,z){if(this.pickable===!1)return!1;b===void 0&&(b=null),E===void 0&&(E=null);var ne=this.naturalBounds,ie=this.se(),se=ie?a:Pn(it.allocAt(a.x,a.y),this.transform),de=ie?y:Pn(it.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||Gn(se.x,se.y,0,0,0,ne.height)<=pe||Gn(se.x,se.y,0,ne.height,ne.width,ne.height)<=pe||Gn(se.x,se.y,ne.width,ne.height,ne.width,0)<=pe||Gn(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,ie||(it.free(se),it.free(de)),Se){if(!this.isAtomic){se=it.alloc(),de=it.alloc(),pe=th(this);for(var Le=this.O.s,Me=Le.length;Me--;){var ze=Le[Me];if(ze.visible||ze===pe){var qe=ze.actualBounds,Ct=this.naturalBounds;(!ie||!(qe.x>Ct.width||qe.y>Ct.height||0>qe.x+qe.width||0>qe.y+qe.height))&&(ze.se()?(qe=ze.transform,Pn(se.set(a),qe),Pn(de.set(y),qe)):(se.set(a),de.set(y)),qe=ze,ze=ze instanceof Tr?ze:null,(ze!==null?ze.og(se,de,b,E,x,z):qe.tx(se,de,x))&&(b!==null&&(qe=b(qe)),qe===null||E!==null&&!E(qe)||z.add(qe)))}}it.free(se),it.free(de)}return x?Se:ne}return!1};function kv(a){var y=null;return a instanceof oo&&(y=a.spot1,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ho),y}function Iv(a){var y=null;return a instanceof oo&&(y=a.spot2,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Fo),y}Oe.add=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];for(b=0;b<y.length;b++)this.Gb(this.O.count,y[b]);return this},Oe.M=function(a){return this.O.M(a)},Oe.Gb=function(a,y){y instanceof Ai&&Lt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Lt("Cannot make a Panel contain itself: "+this.toString()),Lt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var b=y.panel;if(b!==null&&b!==this&&Lt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+b.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==Tr.Grid||y instanceof oo||Lt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Tr.Graduated||y instanceof oo||y instanceof Sa||Lt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new An),this.ge.add(E,y))}var x=this.O;if(E=-1,b===this){for(var z=-1,ne=this.O.s,ie=ne.length,se=0;se<ie;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),E=z}else Lt("element "+y.toString()+" has panel "+b.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),Nt(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Tr&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||$m(this,y,!1),b=this.part,b!==null&&(b.Rh=null,b.ag=NaN,this.Te&&b instanceof $r&&(b.Te=!0),b.Te&&b instanceof $r&&(b.wc=null),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||(E!==-1&&b.cb(La,"elements",this,y,null,E,null),b.cb(Ta,"elements",this,null,y,null,a)))};function Dv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Oe.remove=function(a){for(var y=this.O.s,b=y.length,E=-1,x=0;x<b;x++)if(y[x]===a){E=x;break}E!==-1&&this.pc(E,!0)},Oe.mb=function(a){0<=a&&this.pc(a,!0)},Oe.pc=function(a,y){var b=this.O,E=b.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var x=E.data;typeof x=="object"&&this.ge.remove(x)}b.mb(a),Ut(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof $r&&(E instanceof Tr?E.qm(E,function(ne,ie){ty(z,ie,y)}):ty(z,E,y)),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||z.cb(La,"elements",this,E,null,a,null))},Oe.Fb=function(a){0>a&&kr(a,">= 0",Tr,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var b=new vs;b.wi(this),b.isRow=!0,b.index=a,y[a]=b,this.cb(Ta,"rowdefs",this,null,b,null,a)}return y[a]},Oe.oA=function(a){if(0>a&&kr(a,">= 0",Tr,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,b=y[a];if(b){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(La,"rowdefs",this,b,null,a,null),this.v()}}};function mS(a,y,b){var E=a.rowDefs;if(!(0>y)){if(E[y]=b instanceof vs?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Oe.Eb=function(a){0>a&&kr(a,">= 0",Tr,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var b=new vs;b.wi(this),b.isRow=!1,b.index=a,y[a]=b,this.cb(Ta,"coldefs",this,null,b,null,a)}return y[a]},Oe.jA=function(a){if(0>a&&kr(a,">= 0",Tr,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,b=y[a];if(b){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(La,"coldefs",this,b,null,a,null),this.v()}}};function vS(a,y,b){var E=a.colDefs;if(!(0>y)){if(E[y]=b instanceof vs?b:void 0,!b)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Oe.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&e0(y,a),this},Oe.Hy=function(a,y){return(a=this.Fb(a))&&e0(a,new vs(y)),this},Oe.By=function(a,y){return(a=this.Eb(a))&&e0(a,new vs(y)),this},Oe.nz=function(a){if(0>a||this.type!==Tr.Table||this.rowCount===0)return-1;for(var y=0,b=this.rowDefs,E=b.length,x=this.topIndex;x<E;x++){var z=b[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},Oe.fz=function(a){if(0>a||this.type!==Tr.Table||this.columnCount===0)return-1;for(var y=0,b=this.colDefs,E=b.length,x=this.leftIndex;x<E;x++){var z=b[x];if(z!==void 0&&(y+=z.total,a<y))break}return x},Oe.Fz=function(a,y){if(y===void 0&&(y=new it(NaN,NaN)),this.type!==Tr.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var b=this.Pb();return b.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),b.transform.Ga(y)},Oe.Gz=function(a){if(this.type!==Tr.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function yS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Tc(a){var y=a.allBindings;if(y===null)a.data!==null&&Lt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Qn;else if(y._isFrozen)return;var b=new Qn;Dv(a,!1),a.qm(a,function(de,pe){pe.th();var Se=pe.localBindings;if(Se!==null)for(Ve(pe,!1),Se=Se.iterator;Se.next();){var Le=Se.value;Le.mode===gm&&Ve(pe,!0);var Me=Le.sourceName;Me!==null&&(Me==="/"&&Dv(de,!0),Me=R1(Le,de,pe),Me!==null&&(b.add(Me),Me.srcBindings===null&&(Me.srcBindings=new Qn),Me.srcBindings.add(Le))),y.add(Le)}if(pe instanceof Tr&&pe.type===Tr.Table){if(0<pe.rowCount){for(de=pe.rowDefs,Se=de.length,Le=0;Le<Se;Le++)if(Me=de[Le],Me!==void 0&&Me.be!==null)for(var ze=Me.be.iterator;ze.next();){var qe=ze.value;qe.xd=Me,qe.to=2,qe.wl=Me.index,y.add(qe)}}if(0<pe.columnCount){for(pe=pe.colDefs,de=pe.length,Se=0;Se<de;Se++)if(Le=pe[Se],Le!==void 0&&Le.be!==null)for(Me=Le.be.iterator;Me.next();)ze=Me.value,ze.xd=Le,ze.to=1,ze.wl=Le.index,y.add(ze)}}});for(var E=b.iterator;E.next();){var x=E.value;if(x.srcBindings!==null){Ve(x,!0);for(var z=x.srcBindings.iterator;z.next();){var ne=z.value;x.localBindings===null&&(x.localBindings=new Qn),x.localBindings.add(ne)}}x.srcBindings=null}for(E=y.iterator;E.next();)if(x=E.value,z=x.xd,z!==null){x.xd=null;var ie=x.targetProperty,se=ie.indexOf(".");0<se&&z instanceof Tr&&(ne=ie.substring(0,se),ie=ie.substr(se+1),se=z.fb(ne),se!==null?(z=se,x.targetProperty=ie):Ir('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+x.toString())),z instanceof vs?(ne=Fi(z.panel),x.Ai=ne===void 0?-1:ne,z.panel.bindingId=x.Ai):z instanceof rn?(ne=Fi(z),x.Ai=ne===void 0?-1:ne,z.bindingId=x.Ai):Lt("Unknown type of binding target: "+z)}y.freeze(),a instanceof Ai&&a.Zc()&&a.Va()}Oe.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return aE(y,function(b){b instanceof Tr&&(b.allBindings=null,b.ub=null);var E=b.localBindings;E!==null&&(b.localBindings=null,E.each(function(x){b.bind(x.copy())})),E=b.animationTriggers,E!==null&&(b.animationTriggers=null,E.each(function(x){b.Jv(x.value.copy())}))}),a&&Tc(y),y},Oe.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var b=y.value,E=b.sourceProperty;if((a===""||E===""||E===a)&&(E=b.targetProperty,b.converter!==null||E!=="")){E=this.data;var x=b.sourceName;if(x!==null){if(x==="")E=this;else if(x==="/")E=this;else if(x===".")E=this;else if(x==="..")E=this;else if(E=this.fb(x),E===null)continue}else if(b.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ne=b.Ai;if(ne!==-1){if(z=this.ks(ne),z===null)continue}else b.xd!==null&&(z=b.xd);if(x==="/"?E=z.part:x==="."?E=z:x===".."&&(E=z.panel),x=b.to,x!==0){if(!(z instanceof Tr))continue;x===1?z=z.Eb(b.wl):x===2&&(z=z.Fb(b.wl))}z!==void 0&&b.Mv(z,E)}}},Oe.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function sE(a,y){a=a.O.s;for(var b=a.length,E=y.length,x=0,z=null;x<b&&(z=a[x],!(z instanceof Tr&&z.data!==null));)x++,z=a[x];if(b-x!==E)return!0;if(z===null)return 0<E;for(var ne=0;x<b&&ne<E;){if(z=a[x],!(z instanceof Tr)||z.data!==y[ne])return!0;x++,ne++}return!1}function Kg(a){if(a.type===Tr.Spot||a.type===Tr.Auto)return Math.min(a.O.length,1);if(a.type===Tr.Link){a=a.O;for(var y=a.length,b=0;b<y;b++){var E=a.M(b);if(!(E instanceof oo&&E.isPanelMain))break}return b}return a.type===Tr.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Tr&&Ph(a))?1:0}Oe.mv=function(){for(var a=Kg(this);this.O.length>a;)this.pc(this.O.length-1,!1);SS(this,this.itemArray)};function SS(a,y){var b=Kg(a);if(y===null||y.length===0)for(;a.O.length>b;)a.pc(a.O.length-1,!1);else if(a.O.length<=b){b=y.length;for(var E=0;E<b;E++)qm(a,y[E],E,!0)}else{E=b;for(var x=0;x<y.length;x++,E++){var z=y[x],ne=E<a.O.length?a.O.M(E):null;if(ne instanceof Tr){if(ne.data!==z){var ie=Mv(a,ne.data),se=Mv(a,z),de=se!==ie;de||(ie=Ov(a,ie),de=Ov(a,se)!==ie),de?(a.pc(E,!1),qm(a,z,x,!1)):ne.data=z}}else qm(a,z,x,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,Rv(a,b,0),Nt(a)||a.v(),a.graduatedIntervals=null,a.If()||$m(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof $r&&(y.Te=!0),y.Te&&y instanceof $r&&(y.wc=null))}}function qm(a,y,b,E){if(!(y==null||0>b)){var x=Mv(a,y);if(x=Ov(a,x),x!==null){if(Tc(x),x=x.copy(),x.l&16777216){var z=a.ih();z!==null&&Dv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new An),a.ge.add(y,x)),z=b+Kg(a),a.Gb(z,x),E&&(x.ub=y,Rv(a,z,b),x.ub=null),x.data=y}}}function Rv(a,y,b){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof Tr){var x=y,z=b;E.type===Tr.TableRow?E.row=x:E.type===Tr.TableColumn&&(E.column=x),E.itemIndex=z}y++,b++}}function Mv(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=as(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Lt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Ov(a,y){var b=a.itemTemplateMap,E=null;return b!==null&&(E=b.I(y)),E===null&&(b!==null&&(E=b.I("")),E===null&&(bS||(bS=!0,Ir('No item template Panel found for category "'+y+'" on '+a),Ir(" Using default item template."),a=new Tr,y=new Sa,y.bind(new ss("text","",mi)),a.add(y),ES=a),E=ES)),E}function $m(a,y,b){var E=y.enabledChanged;if(E!==null&&E(y,b),y instanceof Tr){y=y.O.s,E=y.length;for(var x=0;x<E;x++){var z=y[x];b&&z instanceof Tr&&!z.isEnabled||$m(a,z,b)}}}function pd(a,y){y.name=a,zc.add(a,y)}Jn.Object.defineProperties(Tr.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Tr.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&&kr(a,">= 0",Tr,"padding"),a=new no(a)):(0>a.left&&kr(a.left,">= 0",Tr,"padding:value.left"),0>a.right&&kr(a.right,">= 0",Tr,"padding:value.right"),0>a.top&&kr(a.top,">= 0",Tr,"padding:value.top"),0>a.bottom&&kr(a.bottom,">= 0",Tr,"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:ts},set:function(a){typeof a=="number"&&(a=new no(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new fc),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 _o)&&(a instanceof _o&&a.freeze(),this.T===null&&(this.T=new fc),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 fc),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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Lt("defaultRowSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new fc),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 _o)&&(a instanceof _o&&a.freeze(),this.T===null&&(this.T=new fc),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 fc),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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Lt("defaultColumnSeparatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new fc),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 fc),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||Lt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Ec(b),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()||Lt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var b=this.diagram;b!==null&&this===b.grid&&Ec(b),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 nh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ne(this)&&(a=this.part,a!==null&&ya(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 nh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ne(this)&&(a=this.part,a!==null&&ya(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 nh),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 nh),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 nh,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 nh,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 nh,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 nh,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 fc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new fc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:n0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new fc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:n0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new fc),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)&&Lt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new fc),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)&&Lt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new fc),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 b=this instanceof Ai&&!(this instanceof Mo);Tc(this),this.ub=a;var E=this.diagram;E!==null&&(b?(b=E.partManager,this instanceof _r?(y!==null&&b.bf.remove(y),a!==null&&b.bf.add(a,this)):this instanceof Ai&&(y!==null&&b.cf.remove(y),a!==null&&b.cf.add(a,this))):(b=this.panel,b!==null&&b.ge!==null&&(y!==null&&b.ge.remove(y),a!==null&&b.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Xi),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&sE(this,a)){var b=this.diagram;y!==a&&(b!==null&&y!==null&&Ey(b.partManager,this,b),this.Hh=a,b!==null&&a!==null&&by(b.partManager,this)),this.g("itemArray",y,a),b!==null&&b.undoManager.isUndoingRedoing||SS(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 An}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Ai||a.isPanelMain)&&Lt("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 b=a.iterator;b.next(););uo(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&&(uo(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 ro&&(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 b=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||b&&$m(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))}}}),Jn.Object.defineProperties(Tr,{Position:{get:function(){return zc.I("Position")}},Horizontal:{get:function(){return zc.I("Horizontal")}},Vertical:{get:function(){return zc.I("Vertical")}},Spot:{get:function(){return zc.I("Spot")}},Auto:{get:function(){return zc.I("Auto")}},Table:{get:function(){return zc.I("Table")}},Viewbox:{get:function(){return zc.I("Viewbox")}},TableRow:{get:function(){return zc.I("TableRow")}},TableColumn:{get:function(){return zc.I("TableColumn")}},Link:{get:function(){return zc.I("Link")}},Grid:{get:function(){return zc.I("Grid")}},Graduated:{get:function(){return zc.I("Graduated")}}}),Tr.prototype.rebuildItemElements=Tr.prototype.mv,Tr.prototype.findItemPanelForData=Tr.prototype.sx,Tr.prototype.updateTargetBindings=Tr.prototype.La,Tr.prototype.copyTemplate=Tr.prototype.Uy,Tr.prototype.graduatedValueForPoint=Tr.prototype.Gz,Tr.prototype.graduatedPointForValue=Tr.prototype.Fz,Tr.prototype.findColumnForLocalX=Tr.prototype.fz,Tr.prototype.findRowForLocalY=Tr.prototype.nz,Tr.prototype.addColumnDefinition=Tr.prototype.By,Tr.prototype.addRowDefinition=Tr.prototype.Hy,Tr.prototype.addRowColumnDefinition=Tr.prototype.Gy,Tr.prototype.removeColumnDefinition=Tr.prototype.jA,Tr.prototype.getColumnDefinition=Tr.prototype.Eb,Tr.prototype.removeRowDefinition=Tr.prototype.oA,Tr.prototype.getRowDefinition=Tr.prototype.Fb,Tr.prototype.removeAt=Tr.prototype.mb,Tr.prototype.remove=Tr.prototype.remove,Tr.prototype.insertAt=Tr.prototype.Gb,Tr.prototype.elt=Tr.prototype.M,Tr.prototype.add=Tr.prototype.add,Tr.prototype.findObject=Tr.prototype.fb,Tr.prototype.findInVisualTree=Tr.prototype.Nl,Tr.prototype.walkVisualTreeFrom=Tr.prototype.qm,Tr.prototype.findMainElement=Tr.prototype.Pb;var bS=!1,ES=null,zc=new An;Tr.className="Panel",Tr.definePanelLayout=pd,pd("Position",new Hm),pd("Vertical",new Gm),pd("Auto",new Vm),pd("Link",new Qm);function nh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}nh.prototype.copy=function(){var a=new nh;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},nh.className="GradPanelSettings";function fc(){this.Pc=[],this.Oc=[],this.j=this.ob=n0,this.hb=this.Hb=0,this.Qp=ts,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}fc.prototype.copy=function(a){for(var y=new fc,b=this.Pc,E=b.length,x=y.Pc,z=0;z<E;z++)if(b[z]!==void 0){var ne=b[z].copy();ne.wi(a),x[z]=ne}for(b=this.Oc,E=b.length,x=y.Oc,z=0;z<E;z++)b[z]!==void 0&&(ne=b[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},fc.className="TablePanelSettings";function vs(a){vi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ns,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Fv,this.hg=$i,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))}vs.prototype.copy=function(){var a=new vs;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=fr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function e0(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=fr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Oe=vs.prototype,Oe.qb=function(a){a.classType===vs&&(this.sizing=a)},Oe.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Fi(this)},Oe.wi=function(a){this.Me=a},Oe.Io=function(a){var y=0,b=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&b!==null&&(a=this.isRow?b.defaultRowSeparatorStroke:b.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(b!==null?y=this.isRow?b.defaultRowSeparatorStrokeWidth:b.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(b!==null)a=b.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Oe.Wc=function(){var a=0,y=this.Me,b=0,E=this.isRow;if(y!==null&&y.type===Tr.Table)for(var x=E?y.rowDefs.length:y.colDefs.length,z=0;z<x;z++){var ne=E?y.rowDefs[z]:y.colDefs[z];if(ne!==void 0&&ne.oa!==0){b=ne.index;break}}if(this.index!==b&&(b=this.separatorStroke,b===null&&y!==null&&(b=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),b!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Oe.Ob=function(a,y,b){var E=this.Me;if(E!==null&&(E.cb(oa,a,this,y,b,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(b=this.be.iterator;b.next();)b.value.sp(this,y,a,E)};function t0(a){if(a.sizing===Fv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Oe.bind=function(a,y,b,E){var x=null;return typeof a=="string"?x=new ss(a,y,b,E):x=a,x.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&yS(y)&&Lt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+x+" on "+a)),this.be===null&&(this.be=new Qn),this.be.add(x),this},Jn.Object.defineProperties(vs.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&&kr(a,">= 0",vs,"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&&kr(a,">= 0",vs,"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))&&kr(a,">= 0",vs,"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&&kr(a,">= 0",vs,"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 no(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&&xh(a,"RowColumnDefinition.separatorStroke"),a instanceof _o&&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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];typeof z=="number"&&0<=z&&isFinite(z)||Lt("separatorDashArray value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&xh(a,"RowColumnDefinition.background"),a instanceof _o&&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}}}),vs.prototype.computeEffectiveSpacing=vs.prototype.Wc,vs.prototype.computeEffectiveSpacingTop=vs.prototype.Io;var Fv=new mn(vs,"Default",0),Yg=new mn(vs,"None",1),n0=new mn(vs,"ProportionalExtra",2);vs.className="RowColumnDefinition",vs.Default=Fv,vs.None=Yg,vs.ProportionalExtra=n0;function oo(a,y){rn.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)}Sn(oo,rn),oo.prototype.cloneProtected=function(a){rn.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=fr(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 zf(a){a.Na===null?a.Na=new Uv:a.Na.nc&&(a.Na=a.Na.copy())}Oe=oo.prototype,Oe.th=function(){rn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Oe.qb=function(a){a===yr||a===yi||a===yo||a===$i?this.geometryStretch=a:rn.prototype.qb.call(this,a)},Oe.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Fi(this)};function dg(a,y,b,E){var x=b.length;if(!(4>x)){var z=E.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var ie=b[0],se=b[1],de,pe,Se,Le,Me,ze,qe=0,Ct=Mr(),vt=2;vt<x;vt+=2)de=b[vt],pe=b[vt+1],Se=de-ie,ie=pe-se,Se===0&&(Se=.001),Le=ie/Se,Me=Math.atan2(ie,Se),ze=Math.sqrt(Se*Se+ie*ie),Ct.push([Se,Me,Le,ze]),qe+=ze,ie=de,se=pe;ie=b[0],se=b[1],Se=E.measuredBounds.width,E instanceof oo&&(Se-=E.strokeWidth),1>Se&&(Se=1),x=b=Se,de=ne/2,pe=de!==0,vt=0,ze=Ct[vt],Se=ze[0],Me=ze[1],Le=ze[2],ze=ze[3];for(var Dt=0;.1<=qe;){if(Dt===0&&(pe?(x=b,x-=de,qe-=de,pe=!1):x=b,x===0&&(x=1)),x>qe){Ur(Ct);return}x>ze?(Dt=x-ze,x=ze):Dt=0;var Bt=Math.sqrt(x*x/(1+Le*Le));if(0>Se&&(Bt=-Bt),ie+=Bt,se+=Le*Bt,a.translate(ie,se),a.rotate(Me),a.translate(-(ne/2),-(z/2)),Dt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Me),a.translate(-ie,-se),qe-=x,ze-=x,Dt!==0){if(vt++,vt===Ct.length){Ur(Ct);return}ze=Ct[vt],Se=ze[0],Me=ze[1],Le=ze[2],ze=ze[3],x=Dt}}Ur(Ct)}}Oe.hh=function(a,y){var b=this.xc,E=this.Ui;if(b!==null||E!==null){var x=this.ua;if(x!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;E!==null&&Ba(this,a,E,!0,!1,ne,z);var ie=this.part,se=this.ig;if(b===null||se!==0||ie===null||!this.isPanelMain&&ie.Pb()!==this||(se=ie.type===Tr.Link&&ie instanceof Mo&&ie.category==="Selection"&&ie.adornedObject instanceof oo&&ie.adornedPart.Pb()===ie.adornedObject?ie.adornedObject.strokeWidth:0),se===0&&(b=null),b!==null&&se!==0&&(Ba(this,a,b,!1,!1,ne,z),a.lineWidth=se,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ie&&y.Gf("drawShadows")&&(z=ie.isShadowed),a.Il===!1&&(z=!1),ie=!0,b===null||E!==null&&E!=="transparent"||(ie=!1),ne=!1,se=this.strokeDashArray,se!==null&&(ne=!0,a.js(se,this.strokeDashOffset)),x.type===Nr.j)a.beginPath(),a.moveTo(x.startX,x.startY),a.lineTo(x.endX,x.endY),b!==null&&a.jk(),a.Se();else if(x.type===Nr.u){var de=x.startX;se=x.startY;var pe=x.endX,Se=x.endY;x=Math.min(de,pe);var Le=Math.min(se,Se);de=Math.abs(pe-de),se=Math.abs(Se-se),a.beginPath(),a.rect(x,Le,de,se),E!==null&&a.ng(E),b!==null&&(ie&&z&&Zs(a),a.jk(),ie&&z&&Nu(a)),a.Se()}else if(x.type===Nr.F)de=x.startX,se=x.startY,pe=x.endX,Se=x.endY,x=Math.abs(pe-de)/2,Le=Math.abs(Se-se)/2,de=Math.min(de,pe)+x,se=Math.min(se,Se)+Le,a.beginPath(),a.moveTo(de,se-Le),a.bezierCurveTo(de+tn.wg*x,se-Le,de+x,se-tn.wg*Le,de+x,se),a.bezierCurveTo(de+x,se+tn.wg*Le,de+tn.wg*x,se+Le,de,se+Le),a.bezierCurveTo(de-tn.wg*x,se+Le,de-x,se+tn.wg*Le,de-x,se),a.bezierCurveTo(de-x,se-tn.wg*Le,de-tn.wg*x,se-Le,de,se-Le),a.closePath(),E!==null&&a.ng(E),b!==null&&(ie&&z&&Zs(a),a.jk(),ie&&z&&Nu(a)),a.Se();else if(x.type===Nr.o)for(x=x.figures,se=x.length,Le=0;Le<se;Le++){de=x.s[Le],a.beginPath(),a.moveTo(de.startX,de.startY),pe=de.segments.s,Se=pe.length;for(var Me=null,ze=0;ze<Se;ze++){var qe=pe[ze];switch(qe.type){case ua:a.moveTo(qe.endX,qe.endY);break;case Zo:a.lineTo(qe.endX,qe.endY);break;case Ya:a.bezierCurveTo(qe.point1X,qe.point1Y,qe.point2X,qe.point2Y,qe.endX,qe.endY);break;case cl:a.quadraticCurveTo(qe.point1X,qe.point1Y,qe.endX,qe.endY);break;case Ia:if(qe.radiusX===qe.radiusY){var Ct=Math.PI/180;a.arc(qe.point1X,qe.point1Y,qe.radiusX,qe.startAngle*Ct,(qe.startAngle+qe.sweepAngle)*Ct,0>qe.sweepAngle,Me!==null?Me.endX:de.startX,Me!==null?Me.endY:de.startY)}else if(Me=bs(qe,de),Ct=Me.length,Ct===0)a.lineTo(qe.centerX,qe.centerY);else for(var vt=0;vt<Ct;vt++){var Dt=Me[vt];vt===0&&a.lineTo(Dt[0],Dt[1]),a.bezierCurveTo(Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7])}break;case Sl:if(vt=Ct=0,Me!==null&&Me.type===Ia){if(Me=bs(Me,de),Dt=Me.length,Dt===0){a.lineTo(qe.endX,qe.endY);break}Me=Me[Dt-1]||null,Me!==null&&(Ct=Me[6],vt=Me[7])}else Ct=Me!==null?Me.endX:de.startX,vt=Me!==null?Me.endY:de.startY;if(Me=Js(qe,de,Ct,vt),Ct=Me.length,Ct===0){a.lineTo(qe.endX,qe.endY);break}for(vt=0;vt<Ct;vt++)Dt=Me[vt],a.bezierCurveTo(Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7]);break;default:Lt("Segment not of valid type: "+qe.type)}qe.isClosed&&a.closePath(),Me=qe}pe=de.isFilled,z?de.isShadowed?(pe===!0&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&(pe&&ie&&Zs(a),a.jk(),pe&&ie&&Nu(a))):(Zs(a),pe&&E!=="transparent"&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk(),Nu(a)):(pe&&E!==null&&a.ng(E,de.isEvenOdd),b!==null&&a.jk()),a.Se(Le)}if(ne&&a.fs(),this.pathPattern!==null){if(b=this.pathPattern,b.measure(1/0,1/0),E=b.measuredBounds,b.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=Mr(),z.type===Nr.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),dg(a,y,E,b);else if(z.type===Nr.o)for(z=z.figures.iterator;z.next();){for(ie=z.value,E.length=0,E.push(ie.startX),E.push(ie.startY),ne=ie.startX,x=ie.startY,se=ne,Le=x,de=ie.segments.s,pe=de.length,Se=0;Se<pe;Se++){switch(ze=de[Se],ze.type){case ua:dg(a,y,E,b),E.length=0,E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY,se=ne,Le=x;break;case Zo:E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY;break;case Ya:tn.Qe(ne,x,ze.point1X,ze.point1Y,ze.point2X,ze.point2Y,ze.endX,ze.endY,.5,E),ne=ze.endX,x=ze.endY;break;case cl:tn.ep(ne,x,ze.point1X,ze.point1Y,ze.endX,ze.endY,.5,E),ne=ze.endX,x=ze.endY;break;case Ia:if(qe=bs(ze,ie),Me=qe.length,Me===0){E.push(ze.centerX),E.push(ze.centerY),ne=ze.centerX,x=ze.centerY;break}for(Ct=0;Ct<Me;Ct++)vt=qe[Ct],tn.Qe(ne,x,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,E),ne=vt[6],x=vt[7];break;case Sl:if(qe=Js(ze,ie,ne,x),Me=qe.length,Me===0){E.push(ze.endX),E.push(ze.endY),ne=ze.endX,x=ze.endY;break}for(Ct=0;Ct<Me;Ct++)vt=qe[Ct],tn.Qe(ne,x,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,E),ne=vt[6],x=vt[7];break;default:Lt("Segment not of valid type: "+ze.type)}ze.isClosed&&(E.push(se),E.push(Le),dg(a,y,E,b))}dg(a,y,E,b)}else if(z.type===Nr.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),dg(a,y,E,b);else if(z.type===Nr.F){if(x=new Wa,x.startX=z.endX,x.startY=(z.startY+z.endY)/2,ne=new Eo(Ia),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=bs(ne,x),ie=z.length,ie===0)E.push(ne.centerX),E.push(ne.centerY);else for(ne=x.startX,x=x.startY,se=0;se<ie;se++)Le=z[se],tn.Qe(ne,x,Le[2],Le[3],Le[4],Le[5],Le[6],Le[7],.5,E),ne=Le[6],x=Le[7];dg(a,y,E,b)}Ur(E),a.restore(),a.Vc(!1)}}}},Oe.kk=function(a,y,b){return!rn.prototype.kk.call(this,a,y,b)||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)},Oe.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:rn.prototype.nk.call(this,a)},Oe.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var b=0;b<a.length;b++)a[b].setAttributeNS(null,"filter",y)}},Oe.ga=function(a,y){if(y===void 0&&(y=new it),a instanceof fi){a.Mc()&&Lt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var b=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(b.width+E)-E/2+b.x+a.offsetX,a.y*(b.height+E)-E/2+b.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Oe.mi=function(a){a===void 0&&(a=new In);var y=this.naturalBounds,b=this.oe;y=In.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=it.allocAt(y.x,y.y).transform(b),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(b),vo(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(b),vo(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(b),vo(a,E.x,E.y,0,0),In.free(y),it.free(E),a},Oe.gh=function(a,y){var b=this.geometry;if(b===null||this.fill===null&&this.stroke===null)return!1;var E=b.bounds,x=this.strokeWidth/2;b.type!==Nr.j||y||(x+=2);var z=In.alloc();if(z.assign(E),z.Bc(x+2,x+2),!z.ca(a))return In.free(z),!1;if(E=x+1e-4,b.type===Nr.j)return this.stroke===null||(E=(b.endX-b.startX)*(a.x-b.startX)+(b.endY-b.startY)*(a.y-b.startY),0>(b.startX-b.endX)*(a.x-b.endX)+(b.startY-b.endY)*(a.y-b.endY)||0>E)?!1:(In.free(z),tn.Yb(b.startX,b.startY,b.endX,b.endY,x,a.x,a.y));if(b.type===Nr.u){y=b.startX;var ne=b.startY,ie=b.endX;if(b=b.endY,z.x=Math.min(y,ie),z.y=Math.min(ne,b),z.width=Math.abs(ie-y),z.height=Math.abs(b-ne),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return In.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(x,x),a=z.ca(a),In.free(z),a}if(b.type===Nr.F){ne=b.startX,x=b.startY,ie=b.endX;var se=b.endY;if(b=Math.min(ne,ie),y=Math.min(x,se),ne=Math.abs(ie-ne)/2,x=Math.abs(se-x)/2,b=a.x-(b+ne),y=a.y-(y+x),this.fill===null){if(ne-=E,x-=E,0>=ne||0>=x||1>=b*b/(ne*ne)+y*y/(x*x))return In.free(z),!1;ne+=E,x+=E}return this.stroke!==null&&(ne+=E,x+=E),In.free(z),0>=ne||0>=x?!1:1>=b*b/(ne*ne)+y*y/(x*x)}if(b.type===Nr.o)return In.free(z),this.fill===null?Al(b,a.x,a.y,x):ja(b,a,x,1<this.strokeWidth,y);Lt("Unknown Geometry type: "+b.type)},Oe.Wl=function(a,y,b,E){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 ie=this.figure,se=_v[ie];if(se===void 0){var de=tn.Ze[ie];typeof de=="string"&&(de=tn.Ze[de]),typeof de=="function"?(se=de(null,100,100),_v[ie]=se):Lt("Unsupported Figure: "+ie)}ne=se.bounds}ie=ne.width,se=ne.height,de=ne.width;var pe=ne.height;switch(jl(this,!0)){case yr:E=b=0;break;case Cr:de=Math.max(a-z,0),pe=Math.max(y-z,0);break;case xi:de=Math.max(a-z,0),E=0;break;case Di:b=0,pe=Math.max(y-z,0)}isFinite(x.width)&&(de=x.width),isFinite(x.height)&&(pe=x.height);var Se=this.maxSize,Le=this.minSize;switch(b=Math.max(b-z,Le.width),E=Math.max(E-z,Le.height),de=Math.min(Se.width,de),pe=Math.min(Se.height,pe),de=isFinite(de)?Math.max(b,de):Math.max(ie,b),pe=isFinite(pe)?Math.max(E,pe):Math.max(se,E),b=Bv(this),b){case yr:break;case Cr:ie=de,se=pe;break;case yi:b=Math.min(de/ie,pe/se),isFinite(b)||(b=1),ie*=b,se*=b;break;default:Lt(b+" is not a valid geometryStretch.")}this.Rd!==null?(ie===0&&(ie=.001),se===0&&(se=.001),b=this.Rd!==null?this.Rd:this.ua,ne=b.bounds,E=ie/ne.width,ne=se/ne.height,isFinite(E)||(E=1),isFinite(ne)||(ne=1),this.ua=E===1&&ne===1?b:b.copy().scale(E,ne)):this.ua!==null&&tn.$(this.ua.Sk,a-z)&&tn.$(this.ua.Rk,y-z)||(this.ua=oo.makeGeometry(this,ie,se)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-z/2,ne.y-z/2,a===0&&ie===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(Le.width,de),pe=Math.max(Le.height,pe),this.dc.h(0,0,de,pe)):this.dc.assign(ne)};function Bv(a){var y=a.geometryStretch;return a.Rd!==null?y===$i?Cr:y:y===$i?_v[a.figure].defaultStretch:y}Oe.eh=function(a,y,b,E){Cl(this,a,y,b,E)},Oe.rs=function(a,y,b){return this.Sj(a.x,a.y,y.x,y.y,b)},Oe.Sj=function(a,y,b,E,x){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),ie=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),Le=ne*(z.m12*z.dx-z.m11*z.dy);z=a*ie+y*de+Se,ne=a*se+y*pe+Le,ie=b*ie+E*de+Se,se=b*se+E*pe+Le,Se=this.ig/2,de=this.ua,de===null&&(this.measure(1/0,1/0),de=this.ua);var Me=de.bounds;if(pe=!1,de.type===Nr.j)if(1.5>=this.strokeWidth)pe=tn.Ve(de.startX,de.startY,de.endX,de.endY,z,ne,ie,se,x);else{if(de.startX===de.endX?(E=Se,pe=0):(y=(de.endY-de.startY)/(de.endX-de.startX),pe=Se/Math.sqrt(1+y*y),E=pe*y),y=Mr(),a=new it,tn.Ve(de.startX+E,de.startY+pe,de.endX+E,de.endY+pe,z,ne,ie,se,a)&&y.push(a),a=new it,tn.Ve(de.startX-E,de.startY-pe,de.endX-E,de.endY-pe,z,ne,ie,se,a)&&y.push(a),a=new it,tn.Ve(de.startX+E,de.startY+pe,de.startX-E,de.startY-pe,z,ne,ie,se,a)&&y.push(a),a=new it,tn.Ve(de.endX+E,de.endY+pe,de.endX-E,de.endY-pe,z,ne,ie,se,a)&&y.push(a),ie=y.length,ie===0)return Ur(y),!1;for(pe=!0,se=1/0,E=0;E<ie;E++)a=y[E],b=(a.x-z)*(a.x-z)+(a.y-ne)*(a.y-ne),b<se&&(se=b,x.x=a.x,x.y=a.y);Ur(y)}else if(de.type===Nr.u)pe=tn.Ff(Me.x-Se,Me.y-Se,Me.x+Me.width+Se,Me.y+Me.height+Se,z,ne,ie,se,x);else if(de.type===Nr.F){y=In.allocAt(Me.x,Me.y,Me.width,Me.height).Bc(Se,Se);e:if(y.width===0)pe=tn.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,ie,se,x);else if(y.height===0)pe=tn.Ve(y.x,y.y,y.x+y.width,y.y,z,ne,ie,se,x);else{if(a=y.width/2,de=y.height/2,E=y.x+a,pe=y.y+de,b=9999,z!==ie&&(b=(ne-se)/(z-ie)),9999>Math.abs(b)){if(se=ne-pe-b*(z-E),0>a*a*b*b+de*de-se*se){x.x=NaN,x.y=NaN,pe=!1;break e}Se=Math.sqrt(a*a*b*b+de*de-se*se),ie=(-(a*a*b*se)+a*de*Se)/(de*de+a*a*b*b)+E,a=(-(a*a*b*se)-a*de*Se)/(de*de+a*a*b*b)+E,de=b*(ie-E)+se+pe,se=b*(a-E)+se+pe,Math.abs((z-ie)*(z-ie))+Math.abs((ne-de)*(ne-de))<Math.abs((z-a)*(z-a))+Math.abs((ne-se)*(ne-se))?(x.x=ie,x.y=de):(x.x=a,x.y=se)}else{if(ie=de*de,se=z-E,ie-=ie/(a*a)*se*se,0>ie){x.x=NaN,x.y=NaN,pe=!1;break e}se=Math.sqrt(ie),ie=pe+se,se=pe-se,Math.abs(ie-ne)<Math.abs(se-ne)?(x.x=z,x.y=ie):(x.x=z,x.y=se)}pe=!0}In.free(y)}else if(de.type===Nr.o){Le=it.alloc();var ze=ie-z,qe=se-ne,Ct=ze*ze+qe*qe,vt=z,Dt=ne;if(0<Ct&&Me.contains(vt,Dt)&&(Le.x=vt,Le.y=Dt,this.ca(Le)))for(ze!==0&&.5>Math.abs(ze)?(qe*=.5/ze,ze=.5):qe!==0&&.5>Math.abs(qe)&&(ze*=.5/qe,qe=.5),vt-=ze,Dt-=qe;Me.contains(vt,Dt);)vt-=ze,Dt-=qe;for(x.x=ie,x.y=se,qe=0;qe<de.figures.count;qe++){var Bt=de.figures.s[qe],Gt=Bt.isFilled?vt:z,$t=Bt.isFilled?Dt:ne,Rn=Bt.segments;Me=Bt.startX,ze=Bt.startY;for(var Jr=Me,gi=ze,di=0;di<Rn.count;di++){var Br=Rn.s[di],gr=Br.type,to=Br.endX,Ui=Br.endY,Uo=!1;switch(gr){case ua:Jr=to,gi=Ui;break;case Zo:Uo=i0(Me,ze,to,Ui,Gt,$t,ie,se,Le);break;case Ya:Uo=tn.Eo(Me,ze,Br.point1X,Br.point1Y,Br.point2X,Br.point2Y,to,Ui,Gt,$t,ie,se,.6,Le);break;case cl:Uo=tn.Eo(Me,ze,Me+2/3*(Br.point1X-Me),ze+2/3*(Br.point1Y-ze),to+2/3*(Br.point1X-to),Ui+2/3*(Br.point1Y-Ui),to,Ui,Gt,$t,ie,se,.6,Le);break;case Ia:case Sl:gr=Br.type===Ia?bs(Br,Bt):Js(Br,Bt,Me,ze);var fa=gr.length;if(fa===0){Uo=i0(Me,ze,Br.type===Ia?Br.centerX:Br.endX,Br.type===Ia?Br.centerY:Br.endY,Gt,$t,ie,se,Le);break}for(Ui=null,to=0;to<fa;to++){if(Ui=gr[to],to===0&&i0(Me,ze,Ui[0],Ui[1],Gt,$t,ie,se,Le)){var _s=r0(Gt,$t,Le,Ct,x);_s<Ct&&(Ct=_s,pe=!0)}tn.Eo(Ui[0],Ui[1],Ui[2],Ui[3],Ui[4],Ui[5],Ui[6],Ui[7],Gt,$t,ie,se,.6,Le)&&(_s=r0(Gt,$t,Le,Ct,x),_s<Ct&&(Ct=_s,pe=!0))}to=Ui[6],Ui=Ui[7];break;default:Lt("Unknown Segment type: "+gr)}Me=to,ze=Ui,Uo&&(Uo=r0(Gt,$t,Le,Ct,x),Uo<Ct&&(Ct=Uo,pe=!0)),Br.isClosed&&(to=Jr,Ui=gi,i0(Me,ze,to,Ui,Gt,$t,ie,se,Le)&&(Br=r0(Gt,$t,Le,Ct,x),Br<Ct&&(Ct=Br,pe=!0)))}}z=b-a,ne=E-y,ie=Math.sqrt(z*z+ne*ne),ie!==0&&(z/=ie,ne/=ie),x.x-=z*Se,x.y-=ne*Se,it.free(Le)}else Lt("Unknown Geometry type: "+de.type);return pe?(this.transform.Ga(x),!0):!1};function r0(a,y,b,E,x){return a=b.x-a,y=b.y-y,y=a*a+y*y,y<E?(x.x=b.x,x.y=b.y,y):E}function i0(a,y,b,E,x,z,ne,ie,se){if(tn.$(a,b)&&tn.$(y,E)||tn.$(x,ne)&&tn.$(z,ie))return!1;var de=!1,pe=(x-ne)*(y-E)-(z-ie)*(a-b);return pe===0?!1:(se.x=((x*ie-z*ne)*(a-b)-(x-ne)*(a*E-y*b))/pe,se.y=((x*ie-z*ne)*(y-E)-(z-ie)*(a*E-y*b))/pe,(a>b?a-b:b-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(se.y>a||tn.$(se.y,a))&&(se.y<y||tn.$(se.y,y))&&(de=!0)):(y=a<b?a:b,a=a<b?b:a,(se.x>y||tn.$(se.x,y))&&(se.x<a||tn.$(se.x,a))&&(de=!0)),de)}Oe.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var b=this.ua;b===null&&(this.measure(1/0,1/0),b=this.ua),b=b.bounds;var E=this.strokeWidth/2,x=!1,z=it.alloc();return z.h(b.x-E,b.y-E),a.ca(y.Ga(z))&&(z.h(b.x-E,b.bottom+E),a.ca(y.Ga(z))&&(z.h(b.right+E,b.bottom+E),a.ca(y.Ga(z))&&(z.h(b.right+E,b.y-E),a.ca(y.Ga(z))&&(x=!0)))),it.free(z),x},Oe.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var b=Mi.alloc();b.set(y),b.Vj();var E=a.left,x=a.right,z=a.top;a=a.bottom;var ne=it.alloc();if(ne.h(E,z),b.Ga(ne),this.gh(ne,!0)||(ne.h(x,z),b.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),b.Ga(ne),this.gh(ne,!0))||(ne.h(x,a),b.Ga(ne),this.gh(ne,!0)))return it.free(ne),!0;var ie=it.alloc(),se=it.alloc();return b.set(y),b.bv(this.transform),b.Vj(),ie.x=x,ie.y=z,ie.transform(b),ne.x=E,ne.y=z,ne.transform(b),y=!1,Gf(this,ne,ie,se)?y=!0:(ne.x=x,ne.y=a,ne.transform(b),Gf(this,ne,ie,se)?y=!0:(ie.x=E,ie.y=a,ie.transform(b),Gf(this,ne,ie,se)?y=!0:(ne.x=E,ne.y=z,ne.transform(b),Gf(this,ne,ie,se)&&(y=!0)))),it.free(ne),Mi.free(b),it.free(ie),it.free(se),y};function Gf(a,y,b,E){if(!a.rs(y,b,E))return!1;a=y.x,y=y.y;var x=b.x,z=b.y;return b=E.x,E=E.y,a===x?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<x?(E=a,a=x):E=x,b>=E&&b<=a)}Oe.tx=function(a,y,b){function E(Ct,vt){for(var Dt=Ct.length,Bt=0;Bt<Dt;Bt+=2)if(vt.zd(Ct[Bt],Ct[Bt+1])>x)return!0;return!1}if(b&&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(!b){var ne=y.bounds,ie=ne.x,se=ne.y,de=ne.x+ne.width;if(ne=ne.y+ne.height,gn(a.x,a.y,ie,se)<=x&&gn(a.x,a.y,de,se)<=x&&gn(a.x,a.y,ie,ne)<=x&&gn(a.x,a.y,de,ne)<=x)return!0}if(ie=y.startX,se=y.startY,de=y.endX,ne=y.endY,y.type===Nr.j){if(b=(ie-de)*(a.x-de)+(se-ne)*(a.y-ne),Gn(a.x,a.y,ie,se,de,ne)<=(0<=(de-ie)*(a.x-ie)+(ne-se)*(a.y-se)&&0<=b?x:z))return!0}else{if(y.type===Nr.u)return y=!1,b&&(y=Gn(a.x,a.y,ie,se,ie,ne)<=x||Gn(a.x,a.y,ie,se,de,se)<=x||Gn(a.x,a.y,de,se,de,ne)<=x||Gn(a.x,a.y,ie,ne,de,ne)<=x),y;if(y.type===Nr.F){y=a.x-(ie+de)/2,z=a.y-(se+ne)/2;var pe=Math.abs(de-ie)/2,Se=Math.abs(ne-se)/2;if(pe===0||Se===0)return Gn(a.x,a.y,ie,se,de,ne)<=x;if(b){if(a=tn.$y(pe,Se,y,z),a*a<=x)return!0}else return!(gn(y,z,-pe,0)>=x||gn(y,z,0,-Se)>=x||gn(y,z,0,Se)>=x||gn(y,z,pe,0)>=x)}else if(y.type===Nr.o){if(de=y.bounds,z=de.x,ie=de.y,se=de.x+de.width,de=de.y+de.height,a.x>se&&a.x<z&&a.y>de&&a.y<ie&&Gn(a.x,a.y,z,ie,z,de)>x&&Gn(a.x,a.y,z,ie,se,ie)>x&&Gn(a.x,a.y,se,de,z,de)>x&&Gn(a.x,a.y,se,de,se,ie)>x)return!1;if(z=Math.sqrt(x),b){if(this.fill===null?Al(y,a.x,a.y,z):ja(y,a,z,!0,!1))return!0}else{for(b=y.figures,y=0;y<b.count;y++){if(z=b.s[y],ne=z.startX,pe=z.startY,a.zd(ne,pe)>x)return!1;for(ie=z.segments.s,se=ie.length,de=0;de<se;de++)switch(Se=ie[de],Se.type){case ua:case Zo:if(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x)return!1;break;case Ya:var Le=Mr();if(tn.Qe(ne,pe,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.8,Le),ne=E(Le,a),Ur(Le),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case cl:if(Le=Mr(),tn.ep(ne,pe,Se.point1X,Se.point1Y,Se.endX,Se.endY,.8,Le),ne=E(Le,a),Ur(Le),ne||(ne=Se.endX,pe=Se.endY,a.zd(ne,pe)>x))return!1;break;case Ia:case Sl:Le=Se.type===Ia?bs(Se,z):Js(Se,z,ne,pe);var Me=Le.length;if(Me===0){if(ne=Se.type===Ia?Se.centerX:Se.endX,pe=Se.type===Ia?Se.centerY:Se.endY,a.zd(ne,pe)>x)return!1;break}Se=null;for(var ze=Mr(),qe=0;qe<Me;qe++)if(Se=Le[qe],ze.length=0,tn.Qe(Se[0],Se[1],Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.8,ze),E(ze,a))return Ur(ze),!1;Ur(ze),Se!==null&&(ne=Se[6],pe=Se[7]);break;default:Lt("Unknown Segment type: "+Se.type)}}return!0}}}return!1},Oe.qc=function(){this.ua=null},Oe.kq=function(){return this.ig};function xS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=rm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=fs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fi(1-fs.x,fs.y)))}oo.makeGeometry=function(a,y,b){if(a.toArrow!=="None")var E=Ld[a.toArrow];else a.fromArrow!=="None"?E=Ld[a.fromArrow]:(E=tn.Ze[a.figure],typeof E=="string"&&(E=tn.Ze[E]),E===void 0&&Lt("Unknown Shape.figure: "+a.figure),E=E(a,y,b),E.Sk=y,E.Rk=b);if(E===null){var x=tn.Ze.Rectangle;typeof x=="function"&&(E=x(a,y,b))}return E};function wS(a){var y=Ld[a];if(y===void 0){var b=a.toLowerCase();if(b==="none")return"None";if(y=Ld[b],y===void 0){var E=null,x;for(x in tn.um)if(x.toLowerCase()===b){E=x;break}if(E!==null)return a=Nr.parse(tn.um[E],!1),Ld[E]=a,b!==E&&(Ld[b]=E),E}}return typeof y=="string"?y:y instanceof Nr?a:null}Jn.Object.defineProperties(oo.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,b=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||b,a),Ne(this)&&(a=this.part,a!==null&&ya(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Nr.parse(a);var y=a.normalize();this.geometry=a,this.position=a=it.allocAt(-y.x,-y.y),it.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&&xh(a,"Shape.fill"),a instanceof _o&&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&&xh(a,"Shape.stroke"),a instanceof _o&&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 b=this.part;b!==null&&(b.ag=NaN),this.g("strokeWidth",y,a)}else kr(a,"value >= 0",oo,"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"?kr(a,'"butt", "round", or "square"',oo,"strokeCap"):(zf(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"?kr(a,'"miter", "bevel", or "round"',oo,"strokeJoin"):(zf(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){zf(this),this.Na.Jr=a,this.N();var b=this.part;b!==null&&(b.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 b=a.length,E=0,x=0;x<b;x++){var z=a[x];0<=z&&isFinite(z)||Lt("strokeDashArray:value "+z+" at index "+x+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(zf(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 b=tn.Ze[a];typeof b=="function"?b=a:(b=tn.Ze[a.toLowerCase()])||Lt("Unknown Shape.figure: "+a),y!==b&&(a=this.part,a!==null&&(a.ag=NaN),this.an=b,this.Rd=null,this.qc(),this.v(),this.g("figure",y,b))}}},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 b=wS(a);b===null?Lt("Unknown Shape.toArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new eo),this.Ua.V=b,this.Rd=null,this.qc(),this.v(),xS(this),this.g("toArrow",y,b))}}},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 b=wS(a);b===null?Lt("Unknown Shape.fromArrow: "+a):y!==b&&(this.Ua===null&&(this.Ua=new eo),this.Ua.j=b,this.Rd=null,this.qc(),this.v(),xS(this),this.g("fromArrow",y,b))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ns},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),zf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ns},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),zf(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&&(zf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:$i},set:function(a){var y=this.geometryStretch;y!==a&&(zf(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 kd),this.fa.Tk=a;var b=this.diagram;b!==null&&this.panel===b.grid&&Ec(b),this.v(),b=this.panel,b!==null&&(b.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 kd),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 kd),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 kd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),oo.prototype.intersectsRect=oo.prototype.Yc,oo.prototype.containedInRect=oo.prototype.fh,oo.prototype.getNearestIntersectionPoint=oo.prototype.rs,oo.prototype.getDocumentBounds=oo.prototype.mi,oo.prototype.getDocumentPoint=oo.prototype.ga;var Ld=new qr,_v=new qr;oo.className="Shape",oo.getFigureGenerators=function(){var a=new An,y;for(y in tn.Ze)y!==y.toLowerCase()&&a.add(y,tn.Ze[y]);return a.freeze(),a},oo.defineFigureGenerator=function(a,y){var b=a.toLowerCase(),E=tn.Ze;E[a]=y,E[b]=a},oo.getArrowheadGeometries=function(){var a=new An;for(E in tn.um)if(Ld[E]===void 0){var y=Nr.parse(tn.um[E],!1);Ld[E]=y,y=E.toLowerCase(),y!==E&&(Ld[y]=E)}for(var b in Ld)if(b!==b.toLowerCase()){var E=Ld[b];E instanceof Nr&&a.add(b,E)}return a.freeze(),a},oo.defineArrowheadGeometry=function(a,y){var b=null;typeof y=="string"?b=Nr.parse(y,!1):b=y,y=a.toLowerCase(),y!=="none"&&a!==y||Lt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Ld;E[a]=b,E[y]=a};function Uv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=$i,this.gg=this.fg=ns}Uv.prototype.copy=function(){var a=new Uv;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 Sa(a,y){return rn.call(this),u0||(pu=Fa?new nu(null).context:null,u0=!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}Sn(Sa,rn),Sa.prototype.cloneProtected=function(a){rn.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 gd(a){a.da===null?a.da=new Zv:a.da.nc&&(a.da=a.da.copy())}Oe=Sa.prototype,Oe.th=function(){rn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function CS(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}Oe.qb=function(a){a.classType===Sa?this.wrap=a:rn.prototype.qb.call(this,a)},Oe.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Oe.v=function(){rn.prototype.v.call(this)},Oe.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var b=this.naturalBounds,E=this.actualBounds,x=b.width,z=b.height,ne=Qg(this),ie=a.textAlign=this.textAlign,se=y.tn;ie==="start"?ie=se?"right":"left":ie==="end"&&(ie=se?"left":"right"),se=this.isUnderline;var de=this.isStrikethrough;Ba(this,a,this.xc,!0,!1,b,E),(se||de)&&Ba(this,a,this.xc,!1,!1,b,E),E=0,b=!1;var pe=this.oe,Se=pe.dx-(ne*pe.m21+pe.dx);pe=pe.dy-(ne*pe.m22+pe.dy);var Le=y.scale;switch(8>(Se*Se+pe*pe)*Le*Le&&(b=!0),y.ib!==a&&(b=!1),y.ib instanceof Go&&(b=!1),y.Gf("textGreeking")===!1&&(b=!1),y=this.spacingAbove,Se=this.spacingBelow,this.flip){case Ao:a.translate(x,0),a.scale(-1,1);break;case lo:a.translate(0,z),a.scale(1,-1);break;case Qo:a.translate(x,z),a.scale(-1,-1)}if(a.yc(),pe=this.Gc,Le=(y+ne+Se)*pe,z>Le&&(E=this.verticalAlignment,E=E.y*z-E.y*Le+E.offsetY),pe===1&&this.ze!==null)Se=this.Cb,Se>x&&(Se=x),this.Oj(this.ze,a,0,E+y,x,ne,Se,b,ie,se,de);else if(this.Qc!==null&&this.Qb!==null)for(Le=0;Le<pe;Le++){var Me=this.Qc[Le];Me>x&&(Me=x),E+=y,this.Oj(this.Qb[Le],a,0,E,x,ne,Me,b,ie,se,de),E+=ne+Se}switch(this.flip){case Ao:a.scale(-1,1),a.translate(-x,0);break;case lo:a.scale(1,-1),a.translate(0,-z);break;case Qo:a.scale(-1,-1),a.translate(-x,-z)}}},Oe.Oj=function(a,y,b,E,x,z,ne,ie,se,de,pe){var Se=0;if(ie)se==="left"?Se=0:se==="right"?Se=x-ne:se==="center"&&(Se=(x-ne)/2),y.fillRect(b+Se,E+.25*z,ne,1);else{if(se==="left"?Se=0:se==="right"?Se=x:se==="center"&&(Se=x/2),x=o0!==null?o0(this,z):.75*z,y.fillText(a,b+Se,E+x),a=z/20|0,a===0&&(a=1),se==="right"?Se-=ne:se==="center"&&(Se-=ne/2),de){ie=a0!==null?a0(this,z):.8*z,se=b+Se,de=E+ie,x=b+Se+ne,ie=E+ie;var Le=a;y.beginPath(),y.lineWidth=Le,y.moveTo(se,de),y.lineTo(x,ie),y.stroke(),y.Se(),y instanceof Go&&y.ad.classList.add("gojs-td")}pe&&(pe=E+z-z/2.2|0,a%2!==0&&(pe+=.5),E=b+Se,z=pe,b=b+Se+ne,ne=pe,Se=a,y.beginPath(),y.lineWidth=Se,y.moveTo(E,z),y.lineTo(b,ne),y.stroke(),y.Se(),y instanceof Go&&y.ad.classList.add("gojs-td"))}},Oe.kk=function(a,y,b){if(!rn.prototype.kk.call(this,a,y,b))return!1;if(Ba(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),b){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),b=0;b<y.length;b++)Au(a,y[b],!1)}else y=this.svg,y.innerHTML=this.text,Au(a,y,!0);return!0},Oe.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:rn.prototype.nk.call(this,a)},Oe.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var b=0;b<a.length;b++)a[b].setAttributeNS(null,"filter",y)}},Oe.Wl=function(a,y,b,E){var x=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;pu!==null&&DS!==z&&(DS=pu.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 ie=ne=0,se=!1;!se;){var de=z.indexOf(`
|
|
|
`,ie);de===-1&&(de=z.length,se=!0),ie=z.substr(ie,de-ie),this.formatting===Jg&&(ie=ie.trim()),ne=Math.max(ne,Gc(ie)),ie=de+1}z=ne}else ne=z.indexOf(`
|
|
|
`,0),0<=ne&&(z=z.substr(0,ne)),z=Gc(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===s0&&(y=this.Ae,y=this.overflow===s0?PS(y):0,de=this.spacingAbove+this.spacingBelow,de=Math.max(0,Qg(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);Gc(de)>y&&1<de.length;)de=de.substr(0,de.length-1);de+=qg,y=Gc(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===AS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(b,z),ne=Math.max(E,ne),ko(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&x!==this.Gc&&(this.Uc=!0)},Oe.eh=function(a,y,b,E){Cl(this,a,y,b,E)};function Xg(a,y,b){a.ze===null?(a.ze=y,a.Cb=b):((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(b),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Hv(a,y,b,E){var x=a.formatting===Jg;x&&(y=y.trim());var z=0,ne=a.Ae,ie=a.spacingAbove+a.spacingBelow;ie=Math.max(0,Qg(a)+ie);var se=a.overflow===s0?PS(ne):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ie);else if(ne=y,a.wrap===zv){a.Le=1;var de=Gc(y);if(se===0||de<=b)a.Cb=Math.max(a.Cb,de),Xg(a,y,a.Cb),E!==null&&E.h(de,ie);else{for(z=hg(a,ne),ne=ne.substr(z.length),y=hg(a,ne),de=Gc(z+y);0<y.length&&de<=b;)z+=y,ne=ne.substr(y.length),y=hg(a,ne),de=z+y,x&&(de=de.trim()),de=Gc(de);for(x&&(y=y.trim()),z+=y,b=Math.max(1,b-se);Gc(z)>b&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=qg;var pe=Gc(z);a.Cb=pe,Xg(a,z,pe),E!==null&&E.h(pe,ie)}}else{for(se=0,ne.length===0&&(se=1,Xg(a,ne,0));0<ne.length;){for(y=hg(a,ne),ne=ne.substr(y.length);Gc(y)>b;){var Se=1;for(de=Gc(y.substr(0,Se)),pe=0;de<=b;)Se++,pe=de,de=Gc(y.substr(0,Se));if(Se===1){var Le=de;z=Math.max(z,de)}else Le=pe,z=Math.max(z,pe);if(Se--,1>Se&&(Se=1),Xg(a,y.substr(0,Se),Le),se++,y=y.substr(Se),a.Gc+se>a.maxLines)break}for(pe=hg(a,ne),de=Gc(y+pe);0<pe.length&&de<=b;)y+=pe,ne=ne.substr(pe.length),pe=hg(a,ne),de=y+pe,x&&(de=de.trim()),de=Gc(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=Gc(y),z=Math.max(z,pe)),Xg(a,y,Se),se++,a.Gc+se>a.maxLines))break}a.Le=Math.min(a.maxLines,se),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ie*a.Le)}}function hg(a,y){if(a.wrap===LS)return y.substr(0,1);for(var b=y.length,E=0,x=lE;E<b&&!x.test(y.charAt(E));)E++;for(a.formatting===kS&&(b=Math.min(b,E+1));E<b&&x.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Gc(a){return pu===null?8*a.length:pu.measureText(a).width}function Qg(a){if(a.df!==null)return a.df;var y=a.Ae;if(pu===null){var b=16;return a.df=b}return Vv[y]!==void 0&&5e3>IS?b=Vv[y]:(b=1.3*pu.measureText("M").width,Vv[y]=b,IS++),a.df=b}function PS(a){if(pu===null)return 6;if(l0[a]!==void 0&&5e3>Wv)var y=l0[a];else y=pu.measureText(qg).width,l0[a]=y,Wv++;return y}function TS(a,y){var b=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Qg(a)+E),b.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var x=b.indexOf(`
|
|
|
`,0);0<=x&&(b=b.substr(0,x))}x=0;for(var z=a.Gc=0,ne,ie=!1;!ie;){if(ne=b.indexOf(`
|
|
|
`,z),ne===-1&&(ne=b.length,ie=!0),z<=ne){if(z=b.substr(z,ne-z),a.wrap!==zv){a.Le=0;var se=an.alloc();Hv(a,z,y,se),x+=se.height,an.free(se),a.Gc+=a.Le}else Hv(a,z,y,null),x+=E,a.Gc++;a.Gc===a.maxLines&&(ie=!0)}z=ne+1}return a.Lq=x}Jn.Object.defineProperties(Sa.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"||(gd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:yr},set:function(a){var y=this.flip;y!==a&&(gd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Mu},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),gd(this),this.da.Yr=a,Rl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=an.alloc();Hv(this,this.ec,999999,a);var y=a.width;an.free(a),a=TS(this,y);var b=this.desiredSize;isNaN(b.width)||(y=b.width),isNaN(b.height)||(a=b.height),ko(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:Gv},set:function(a){var y=this.wrap;y!==a&&(gd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:jv},set:function(a){var y=this.overflow;y!==a&&(gd(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&&xh(a,"TextBlock.stroke"),a instanceof _o&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Qg(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&&(gd(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&&(gd(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 kd),this.fa.Tk=a,this.v();var b=this.panel;b!==null&&(b.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 kd),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 kd),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 kd),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 kd),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&&(gd(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&&(gd(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&&(gd(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&&(gd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Jg},set:function(a){var y=this.formatting;y!==a&&(gd(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&&kr(a,"> 0",Sa,"maxLines"),gd(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 o0=null,a0=null,zv=new mn(Sa,"None",0),AS=new mn(Sa,"WrapFit",1),Gv=new mn(Sa,"WrapDesiredSize",2),LS=new mn(Sa,"WrapBreakAll",3),jv=new mn(Sa,"OverflowClip",0),s0=new mn(Sa,"OverflowEllipsis",1),Jg=new mn(Sa,"FormatTrim",0),kS=new mn(Sa,"FormatNone",0),lE=/[ \u200b\u00ad]/,Vv=new qr,IS=0,l0=new qr,Wv=0,qg="...",DS="",pu=null,u0=!1;Sa.className="TextBlock";function Zv(){this.nc=!1,this.Hd=null,this.Xf=yr,this.gq=Jg,this.Jq=1/0,this.$q=jv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Mu,this.$r=Gv}Zv.prototype.copy=function(){var a=new Zv;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},Sa.getEllipsis=function(){return qg},Sa.setEllipsis=function(a){qg=a,l0=new qr,Wv=0},Sa.getBaseline=function(){return o0},Sa.setBaseline=function(a){o0=a},Sa.getUnderline=function(){return a0},Sa.setUnderline=function(a){a0=a},Sa.isValidFont=function(a){if(u0||(pu=Fa?new nu(null).context:null,u0=!0),pu===null)return!0;var y=pu.font;if(a===y||a==="10px sans-serif")return!0;pu.font="10px sans-serif",pu.font=a;var b=pu.font;if(b!=="10px sans-serif")return pu.font=y,!0;pu.font="19px serif";var E=pu.font;return pu.font=a,b=pu.font,pu.font=y,b!==E},Sa.FormatNone=kS,Sa.FormatTrim=Jg,Sa.None=zv,Sa.OverflowClip=jv,Sa.OverflowEllipsis=s0,Sa.WrapBreakAll=LS,Sa.WrapDesiredSize=Gv,Sa.WrapFit=AS;function kd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}kd.prototype.copy=function(){var a=new kd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},kd.className="GradElementSettings";function gu(a,y){rn.call(this),this.Eg=null,this.qo="",this.Xg=il,this.Nk=Cr,this.Zg=this.Hd=null,this.Mk=Ji,this.Xf=yr,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 fg;Sn(gu,rn),gu.prototype.cloneProtected=function(a){rn.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},gu.prototype.qb=function(a){a===yr||a===yi||a===yo?this.imageStretch=a:rn.prototype.qb.call(this,a)},gu.prototype.toString=function(){return"Picture("+this.source+")#"+Fi(this)};function pg(a){a===void 0&&(a=""),a!==""?fg[a]&&(delete fg[a],c0--):(fg=new qr,c0=0)}function RS(a,y){y.qy||(y.Fq=function(b){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var x=E.value;x.N();var z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null)for(var ie=ne.length,se=0;se<ie;se++)z=ne[se],x.Xn.add(z),z.Uc=!0,x.$b(),y.hn&&(y.eu===void 0&&(y.eu=b),z.Zg!==null&&z.Zg(z,b))}y.Bg.clear()}a.desiredSize.w()||(Ut(a,!1),a.v())},y.Yp=function(b){y.ln=b;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var x=E.value,z=y.getAttribute("src")||"",ne=x.Og.I(z);if(ne!==null){x=ne.length,z=Mr();for(var ie=0;ie<x;ie++)z.push(ne[ie]);if(y.hn)for(ie=0;ie<x;ie++)ne=z[ie],ne.Hd!==null&&ne.Hd(ne,b);Ur(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}gu.prototype.hA=function(){if(this.source!==""){pg(this.source);var a=this.source;this.source="",this.source=a}},gu.prototype.redraw=function(){this.N(),this.Uc=!0},gu.prototype.hh=function(a,y){var b=this.Eg;if(b!==null){var E=b.getAttribute("src");if(!(b instanceof HTMLImageElement&&(E===null||E==="")||b.ln instanceof Event&&a instanceof wc)){var x=a instanceof Go;E=this.naturalBounds;var z=0,ne=0,ie=this.qn,se=ie?+b.width:b.naturalWidth;if(ie=ie?+b.height:b.naturalHeight,se===void 0&&b.videoWidth&&(se=b.videoWidth),ie===void 0&&b.videoHeight&&(ie=b.videoHeight),se=se||E.width,ie=ie||E.height,se!==0&&ie!==0){var de=se,pe=ie;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,se=this.Xg.width,ie=this.Xg.height);var Se=se,Le=ie,Me=this.Nk,ze=this.Mk;switch(Me){case yr:if(this.sourceRect.w())break;Se>=E.width&&(z=z+ze.offsetX+(Se*ze.x-E.width*ze.x)),Le>=E.height&&(ne=ne+ze.offsetY+(Le*ze.y-E.height*ze.y)),se=Math.min(E.width,Se),ie=Math.min(E.height,Le);break;case Cr:Se=E.width,Le=E.height;break;case yi:case yo:Me===yi?(Me=Math.min(E.height/Le,E.width/Se),Se*=Me,Le*=Me):Me===yo&&(Me=Math.max(E.height/Le,E.width/Se),Se*=Me,Le*=Me,Se>=E.width&&(z=(z+ze.offsetX+(Se*ze.x-E.width*ze.x)/Se)*se),Le>=E.height&&(ne=(ne+ze.offsetY+(Le*ze.y-E.height*ze.y)/Le)*ie),se*=1/(Se/E.width),ie*=1/(Le/E.height),Se=E.width,Le=E.height)}Me=this.Df()*y.scale;var qe=Se*Me*Le*Me,Ct=se*ie/qe,vt=b.__goCache;Me=null;var Dt=uE;if(!x){if(b.sq&&vt!==void 0&&4<qe&&Ct>Dt*Dt)for(vt.gi===null&&(OS(vt,4,de,pe,b),OS(vt,16,de,pe,b)),x=vt.gi,de=x.length,pe=0;pe<de&&x[pe].ratio*x[pe].ratio<Ct;pe++)Me=x[pe];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{x=new nu(null).context;try{x.drawImage(this.Eg,0,0)}catch(Bt){this.en=!1}try{x.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Bt){this.vl=!0}}if(this.vl)return}}switch(x=Se<E.width?ze.offsetX+(E.width*ze.x-Se*ze.x):0,ze=Le<E.height?ze.offsetY+(E.height*ze.y-Le*ze.y):0,this.flip){case Ao:a.translate(Math.min(E.width,Se),0),a.scale(-1,1);break;case lo:a.translate(0,Math.min(E.height,Le)),a.scale(1,-1);break;case Qo:a.translate(Math.min(E.width,Se),Math.min(E.height,Le)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&vt!==void 0&&Me!==null&&Me.ratio!==1){a.save(),y=Me.ratio;try{a.drawImage(Me.source,z/y,ne/y,Math.min(Me.source.width,se/y),Math.min(Me.source.height,ie/y),x,ze,Math.min(E.width,Se),Math.min(E.height,Le)),a instanceof Go&&(this.bt=[z/y,ne/y,Math.min(Me.source.width,se/y),Math.min(Me.source.height,ie/y),x,ze,Math.min(E.width,Se),Math.min(E.height,Le)])}catch(Bt){this.en=!1}a.restore()}else try{a.drawImage(b,z,ne,se,ie,x,ze,Math.min(E.width,Se),Math.min(E.height,Le)),a instanceof Go&&(this.bt=[z,ne,se,ie,x,ze,Math.min(E.width,Se),Math.min(E.height,Le)])}catch(Bt){this.en=!1}switch(this.flip){case Ao:a.scale(-1,1),a.translate(-Math.min(E.width,Se),0);break;case lo:a.scale(1,-1),a.translate(0,-Math.min(E.height,Le));break;case Qo:a.scale(-1,-1),a.translate(-Math.min(E.width,Se),-Math.min(E.height,Le))}}}}},gu.prototype.Wl=function(a,y,b,E){var x=this.desiredSize,z=jl(this,!0),ne=this.Eg,ie=this.qn,se=0,de=0;(ie||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(x.width)||(a=0),isFinite(x.height)||(y=0)):(se=ie?+ne.width:ne.naturalWidth,de=ie?+ne.height:ne.naturalHeight),isFinite(x.width)||z===Cr||z===xi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=se)),b=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:se),isFinite(x.height)||z===Cr||z===Di?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=de)),E=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,b=Math.max(b||0,z.width),E=Math.max(E||0,z.height),a=Math.min(x.width,a),y=Math.min(x.height,y),a=Math.max(b,a),y=Math.max(E,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),ko(this.dc,a,y),this.Ge(0,0,a,y)},gu.prototype.eh=function(a,y,b,E){Cl(this,a,y,b,E)},Jn.Object.defineProperties(gu.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 b=a instanceof HTMLImageElement;a===null||b||a instanceof HTMLVideoElement||this.qn||Lt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&fp(E,this),this.Eg=a,a!==null&&b&&a.Bg===void 0&&(a.Bg=new ar),E!==null&&b&&Kd(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Ut(this,!1),this.v())):b&&RS(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 b=fg;if(Fa){var E=null;if(b[a]!==void 0)E=b[a];else if(a!==""){30<c0&&(pg(),b=fg),E=Fr("img"),E.hn=!0,RS(this,E);var x=this.rl;x!==null&&(E.crossOrigin=x(this)),E.src=a,b[a]=E,c0++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new MS),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}}}),gu.prototype.redraw=gu.prototype.redraw,gu.prototype.reloadSource=gu.prototype.hA;var c0=0,uE=4;gu.className="Picture",fg=new qr,gu.clearCache=pg;function MS(){this.gi=null}function OS(a,y,b,E,x){a.gi===null&&(a.gi=[]);var z=new nu(null),ne=z.context,ie=1/y;z.width=b/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new FS(z.Oa,y),b=1,0<a.gi.length&&(b=a.gi[a.gi.length-1],x=b.source,b=b.ratio),ne.setTransform(ie*b,0,0,ie*b,0,0),ne.yc(),ne.drawImage(x,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function FS(a,y){this.source=a,this.ratio=y}FS.className="PictureCacheInstance";function gg(){this.os=new Nr,this.mc=null}gg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Nr,this.mc=null};function mg(a,y,b,E,x,z){a.mc=new Wa,a.mc.startX=y,a.mc.startY=b,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),x!==void 0&&(a.mc.isShadowed=x)}function cE(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}gg.prototype.moveTo=function(a,y,b){b===void 0&&(b=!1);var E=new Eo(ua);E.endX=a,E.endY=y,b&&E.close(),this.mc.segments.add(E)},gg.prototype.lineTo=function(a,y,b){b===void 0&&(b=!1);var E=new Eo(Zo);E.endX=a,E.endY=y,b&&E.close(),this.mc.segments.add(E)};function Th(a,y,b,E,x,z,ne){var ie;ie===void 0&&(ie=!1);var se=new Eo(Ya);se.point1X=y,se.point1Y=b,se.point2X=E,se.point2Y=x,se.endX=z,se.endY=ne,ie&&se.close(),a.mc.segments.add(se)}function d0(a,y,b,E,x){var z;z===void 0&&(z=!1);var ne=new Eo(cl);ne.point1X=y,ne.point1Y=b,ne.endX=E,ne.endY=x,z&&ne.close(),a.mc.segments.add(ne)}gg.prototype.arcTo=function(a,y,b,E,x,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var ie=new Eo(Ia);ie.startAngle=a,ie.sweepAngle=y,ie.centerX=b,ie.centerY=E,ie.radiusX=x,ie.radiusY=z!==0?z:x,ne&&ie.close(),this.mc.segments.add(ie)};function dE(a,y,b,E,x,z,ne,ie){var se;se===void 0&&(se=!1),y=new Eo(Sl,ne,ie,y,b,E,x,z),se&&y.close(),a.mc.segments.add(y)}function BS(a){var y=h0;return y!==null?(h0=null,y.reset(a),y):(y=new gg,y.reset(a),y)}var h0=null;gg.className="StreamGeometryContext";function Ol(a,y){var b=a.toLowerCase(),E=tn.Ze;E[a]=y,E[b]=a}Ol("Rectangle",function(a,y,b){a="r"+y+","+b;var E=tn.Mf[a];return E!==void 0||(E=new Nr(Nr.u),E.endX=y,E.endY=b,tn.Nf<tn.vm&&(tn.Mf[a]=E,tn.Nf++)),E}),Ol("Square",function(a,y,b){a="s"+y+","+b;var E=tn.Mf[a];return E!==void 0||(E=new Nr(Nr.u),E.endX=y,E.endY=b,E.defaultStretch=yi,tn.Nf<tn.vm&&(tn.Mf[a]=E,tn.Nf++)),E}),Ol("RoundedRectangle",function(a,y,b){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,b/3);var E="rr"+y+","+b+","+a,x=tn.Mf[E];if(x!==void 0)return x;var z=a*tn.wg;return x=new Nr().add(new Wa(a,0,!0).add(new Eo(Zo,y-a,0)).add(new Eo(Ya,y,a,y-z,0,y,z)).add(new Eo(Zo,y,b-a)).add(new Eo(Ya,y-a,b,y,b-z,y-z,b)).add(new Eo(Zo,a,b)).add(new Eo(Ya,0,b-a,z,b,0,b-z)).add(new Eo(Zo,0,a)).add(new Eo(Ya,a,0,0,z,z,0).close())),1<z&&(x.spot1=new fi(0,0,z,z),x.spot2=new fi(1,1,-z,-z)),tn.Nf<tn.vm&&(tn.Mf[E]=x,tn.Nf++),x}),Ol("Border","RoundedRectangle"),Ol("Ellipse",function(a,y,b){a="e"+y+","+b;var E=tn.Mf[a];return E!==void 0||(E=new Nr(Nr.F),E.endX=y,E.endY=b,E.spot1=yu,E.spot2=zs,tn.Nf<tn.vm&&(tn.Mf[a]=E,tn.Nf++)),E}),Ol("Circle",function(a,y,b){a="c"+y+","+b;var E=tn.Mf[a];return E!==void 0||(E=new Nr(Nr.F),E.endX=y,E.endY=b,E.spot1=yu,E.spot2=zs,E.defaultStretch=yi,tn.Nf<tn.vm&&(tn.Mf[a]=E,tn.Nf++)),E}),Ol("TriangleRight",function(a,y,b){return new Nr().add(new Wa(0,0).add(new Eo(Zo,y,.5*b)).add(new Eo(Zo,0,b).close())).pm(0,.25,.5,.75)}),Ol("TriangleDown",function(a,y,b){return new Nr().add(new Wa(0,0).add(new Eo(Zo,y,0)).add(new Eo(Zo,.5*y,b).close())).pm(.25,0,.75,.5)}),Ol("TriangleLeft",function(a,y,b){return new Nr().add(new Wa(y,b).add(new Eo(Zo,0,.5*b)).add(new Eo(Zo,y,0).close())).pm(.5,.25,1,.75)}),Ol("TriangleUp",function(a,y,b){return new Nr().add(new Wa(y,b).add(new Eo(Zo,0,b)).add(new Eo(Zo,.5*y,0).close())).pm(.25,.5,.75,1)}),Ol("Triangle","TriangleUp"),Ol("Diamond",function(a,y,b){return new Nr().add(new Wa(.5*y,0).add(new Eo(Zo,0,.5*b)).add(new Eo(Zo,.5*y,b)).add(new Eo(Zo,y,.5*b).close())).pm(.25,.25,.75,.75)}),Ol("LineH",function(a,y,b){return a=new Nr(Nr.j),a.startX=0,a.startY=b/2,a.endX=y,a.endY=b/2,a}),Ol("LineV",function(a,y,b){return a=new Nr(Nr.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=b,a}),Ol("None","Rectangle"),Ol("BarH","Rectangle"),Ol("BarV","Rectangle"),Ol("MinusLine","LineH"),Ol("PlusLine",function(a,y,b){return new Nr().add(new Wa(0,b/2,!1).add(new Eo(Zo,y,b/2)).add(new Eo(ua,y/2,0)).add(new Eo(Zo,y/2,b)))}),Ol("XLine",function(a,y,b){return new Nr().add(new Wa(0,b,!1).add(new Eo(Zo,y,0)).add(new Eo(ua,0,0)).add(new Eo(Zo,y,b)))}),Ol("LineRight",function(a,y,b){return new Nr().add(new Wa(.25*y,0,!1).add(new Eo(Zo,.75*y,.5*b)).add(new Eo(Zo,.25*y,b)))}),Ol("LineDown",function(a,y,b){return new Nr().add(new Wa(0,.25*b,!1).add(new Eo(Zo,.5*y,.75*b)).add(new Eo(Zo,y,.25*b)))}),Ol("LineLeft",function(a,y,b){return new Nr().add(new Wa(.75*y,0,!1).add(new Eo(Zo,.25*y,.5*b)).add(new Eo(Zo,.75*y,b)))}),Ol("LineUp",function(a,y,b){return new Nr().add(new Wa(0,.75*b,!1).add(new Eo(Zo,.5*y,.25*b)).add(new Eo(Zo,y,.75*b)))}),tn.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 Kv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=_i,this.ir=null,this.jr="",this.lr=ns,this.Gq="",this.Hq=ho,this.Pq=Wr,this.Kq=pi,this.Up=null,this.Cq=127,this.zr=hi,this.yr="gray",this.Vg=4}Kv.prototype.copy=function(){var a=new Kv;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 Ai(a,y){a===void 0||a instanceof As||typeof a=="string"?Tr.call(this,a):(Tr.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 it(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new In,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Sn(Ai,Tr),Ai.prototype.cloneProtected=function(a){Tr.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},Oe=Ai.prototype,Oe.Af=function(a){Tr.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Oe.toString=function(){var a=Wn(this.constructor)+"#"+Fi(this);return this.data!==null&&(a+="("+mi(this.data)+")"),a};function mu(a){a.P===null?a.P=new Kv:a.P.nc&&(a.P=a.P.copy())}Oe.th=function(){Tr.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Oe.gk=function(a,y,b,E,x,z,ne){var ie=this.diagram;ie!==null&&(a===Ta&&y==="elements"?x instanceof Tr?Hf(x,function(se){by(ie.partManager,se),mh(ie,se)}):Kd(ie,x):a===La&&y==="elements"&&(x instanceof Tr?Hf(x,function(se){Ey(ie.partManager,se,ie)}):fp(ie,x)),ie.cb(a,y,b,E,x,z,ne))},Oe.La=function(a){if(Tr.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E];x instanceof Tr&&Hf(x,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Ai.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Ai.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Ai.prototype.bh=function(a,y){if(y!==null){var b=null,E=this.Qf;if(E!==null&&(b=E.I(a)),b!==y){if(b!==null){var x=b.diagram;x!==null&&x.remove(b)}E===null&&(this.Qf=E=new An),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Ai.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var b=y.I(a);if(b!==null){var E=b.diagram;E!==null&&E.remove(b)}y.remove(a),y.count===0&&(this.Qf=null)}},Ai.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Mr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var b=0;b<a;b++)this.Jf(y[b]);Ur(y)}},Ai.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var b=y.value;b.v(),b.placeholder&&b.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(b=this.Pj("Selection"),b===null){if(b=this.selectionAdornmentTemplate,b===null&&(b=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof ro?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(b instanceof Mo))break e;Tc(b),b=b.copy(),b!==null&&(this.ph()&&this.selectionObject===this.path&&(b.type=Tr.Link),b.adornedObject=y)}if(b!==null){b.type===Tr.Link&&b.v(),this.bh("Selection",b);break e}}this.Jf("Selection")}for(hE(this,a),y=this.adornments;y.next();)y.value.La()}},Ai.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Yv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function hE(a,y){y.toolManager.mouseDownTools.each(function(b){b.isEnabled&&b.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function f0(a){if(rf(a)===!1){Qv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function _S(a){if(a.G|=2097152,rf(a)!==!1){var y=a.position,b=a.location;b.w()&&y.w()||zS(a,y,b),b=a.Ib;var E=In.alloc().assign(b);b.ka(),b.x=y.x,b.y=y.y,b.freeze(),a.Xl(E,b),In.free(E),Qv(a,!1)}}Ai.prototype.Ge=function(a,y,b,E){var x=this.uc;x.h(a,y,b,E),this.Lb===null&&(this.Lb=new Mi);var z=this.Lb;z.reset(),this.no(z,a,y,b,E),this.Lb=z,z.ws()||z.pp(x)},Ai.prototype.no=function(a,y,b,E,x){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ji;this.locationSpot.sb()&&(z=this.locationSpot);var ne=it.alloc();if(this.locationObject!==this)for(y=this.locationObject,b=y.naturalBounds,ne.yi(b.x,b.y,b.width,b.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,b,E,x,z);a.rotate(this.Kb,ne.x,ne.y),it.free(ne)}},Ai.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Ai.prototype.moveTo=function(a,y,b){a=it.allocAt(a,y),this.move(a,b),it.free(a)},Ai.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())},Ai.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())},Ai.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new An),y.I(a)!==null)return y.I(a);var b=Tr.prototype.fb.call(this,a);return b!==null?(y.set(a,b),b):(y.set(a,null),null)};function Ah(a,y,b,E){E===void 0&&(E=new it),b=b.Mc()?Ji:b;var x=y.naturalBounds;if(E.h(x.width*b.x+b.offsetX,x.height*b.y+b.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}Ai.prototype.mi=function(a){return a===void 0&&(a=new In),a.assign(this.actualBounds)},Ai.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function US(a){var y=it.alloc(),b=a.locationObject,E=b.naturalBounds,x=b instanceof oo?b.strokeWidth:0;if(y.yi(0,0,E.width+x,E.height+x,a.locationSpot),b!==a)for(y.offset(-x/2,-x/2),b.transform.Ga(y),b=b.panel;b!==null&&b!==a;)b.transform.Ga(y),b=b.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function jf(a,y){var b=a.py;isNaN(a.ag)&&(a.ag=gS(a));var E=a.ag,x=2*E;if(!a.isShadowed)return b.h(y.x-1-E,y.y-1-E,y.width+2+x,y.height+2+x),b;E=y.x,x=y.y;var z=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,z+=ne,y+=ne,E-=ne/2,x-=ne/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(x+=a.y,y-=a.y),b.h(E-1,x-1,z+2,y+2),b}Ai.prototype.arrange=function(){if(Zt(this)===!1)_S(this);else{Un(this,!1);var a=this.Ib,y=In.alloc();y.assign(a);var b=of(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;zS(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(b):!this.Zc()||tn.B(y.width,a.width)&&tn.B(y.height,a.height)||0<=this.vw&&this.C(16),In.free(y),Qv(this,!1)}},Oe=Ai.prototype,Oe.Xl=function(a,y){var b=this.diagram;if(b!==null){var E=!1;if(b.Zi===!1&&a.w()){var x=In.alloc();x.assign(b.documentBounds),x.Fv(b.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&&(E=!0),In.free(x)}!(this.G&65536)&&a.D(y)||VS(this,E,b),b.N(),!a.w()&&!y.w()||Oi(a,y)||(this instanceof $r&&!b.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Oe.zv=function(a,y,b){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&HS(this,E,a,y,b),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new it(E.x+(a.x-y),E.y+(a.y-b)),this.g("location",E,this.ke.copy())),rf(this)===!1&&Zt(this)===!1&&(f0(this),_S(this)),!0};function HS(a,y,b,E,x){y===null||a instanceof Mo||(y=y.animationManager,y.zb&&Qu(y,a,new it(E,x),b))}Oe.mm=function(a,y,b){var E=this.ke,x=this.pa;if(b){if(E.x===a&&E.y===y)return;rf(this)||Zt(this)?x.h(NaN,NaN):x.h(x.x+a-E.x,x.y+y-E.y),E.h(a,y)}else{if(x.x===a&&x.y===y)return;E.h(E.x+a-x.x,E.y+y-x.y),x.h(a,y)}f0(this)},Oe.Av=function(){this.G&=-2097153,f0(this)};function zS(a,y,b){var E=US(a),x=a.diagram,z=b.w(),ne=y.w();z&&ne?a.G&2097152?GS(a,y,b,x,E):jS(a,y,b,x,E):z?GS(a,y,b,x,E):ne&&jS(a,y,b,x,E),a.G|=2097152,it.free(E),a.Uk()}function GS(a,y,b,E,x){var z=y.x,ne=y.y;y.h(b.x-x.x,b.y-x.y),E!==null&&(b=E.animationManager,(E=b.defaultAnimation.isAnimating)||!b.zb||a instanceof Mo||Qu(b,a,new it(z,ne),y),E||y.x===z&&y.y===ne||a.g("position",new it(z,ne),y.copy()))}function jS(a,y,b,E,x){var z=b.copy();b.h(y.x+x.x,y.y+x.y),b.D(z)||E===null||a.g("location",z,b.copy())}function VS(a,y,b){Jv(a,!1),a instanceof $r&&Td(b,a),a.layer.isTemporary||y||b.Ya(),y=a.Ib;var E=b.viewportBounds;E.w()?of(a)?(jn(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():b.vd=!0}Oe.si=function(){return!0},Oe.Zc=function(){return!0},Oe.ph=function(){return!1},Oe.Dd=function(){return!0};function Xv(a,y,b,E){y.constructor===a.constructor||KS||(KS=!0,Ir('Should not change the class of the Part when changing category from "'+b+'" to "'+E+'"'),Ir(" Old class: "+Wn(a.constructor)+", new class: "+Wn(y.constructor)+", part: "+a.toString())),a.Ej();var x=a.data;b=a.layerName;var z=a.isSelected,ne=a.isHighlighted,ie=!0,se=!0,de=!1;a instanceof $r&&(ie=a.isTreeLeaf,se=a.isTreeExpanded,de=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=x,a.G=z?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof $r&&(a.U=ie?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!==b&&(a.Jg=b,a.layerName=x),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}Ai.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},Ai.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},Ai.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},Ai.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},Ai.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},Ai.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},Ai.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},Ai.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},Ai.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 rf(a){return(a.G&32768)!==0}function Qv(a,y){a.G=y?a.G|32768:a.G&-32769}function Jv(a,y){a.G=y?a.G|65536:a.G&-65537}function of(a){return(a.G&131072)!==0}Oe=Ai.prototype,Oe.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function p0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Oe.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Oe.N=function(){var a=this.diagram;a!==null&&!Zt(this)&&!rf(this)&&this.isVisible()&&this.Ib.w()&&a.N(jf(this,this.Ib))},Oe.v=function(){Tr.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof $r&&this.labeledLink!==null&&Rl(this.labeledLink),a.$b(!0))},Oe.Vo=function(a){a||(a=this.Ah,a!==null&&ry(a,this))},Oe.Wo=function(a){a||(a=this.Ah,a!==null&&iy(a,this))},Oe.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Oe.oz=function(){return qv(this,this)};function qv(a,y){var b=y.containingGroup;return b!==null?1+qv(a,b):y instanceof $r&&(y=y.labeledLink,y!==null)?qv(a,y):0}Oe.sz=function(){return WS(this,this)};function WS(a,y){var b=y.containingGroup;return b!==null||y instanceof $r&&(b=y.labeledLink,b!==null)?WS(a,b):y}Oe.Td=function(a){return a instanceof ro?$v(this,this,a):!1};function $v(a,y,b){if(y===b||b===null)return!1;var E=y.containingGroup;return E===null||E!==b&&!$v(a,E,b)?y instanceof $r&&(y=y.labeledLink,y!==null)?$v(a,y,b):!1:!0}Oe.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof ro&&p0(y,!0),y instanceof $r){var b=y.labeledLink;b!==null&&(y=b)}y=y.containingGroup}for(b=null,y=a;y!==null;){if(y.G&1048576){b=y;break}y instanceof $r&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof ro&&p0(y,!1),y instanceof $r&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return b},Ai.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof $r&&this.isLinkLabel)},Ai.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 $r&&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 b=y.layout;b!==null?b.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function ZS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function af(a,y,b,E,x,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Mo)){if(a.add(y),y instanceof $r){if(b&&y instanceof ro)for(var ne=y.memberParts;ne.next();)af(a,ne.value,b,E,x,z);if(x!==!1)for(ne=y.linksConnected;ne.next();){var ie=ne.value;if(!a.contains(ie)){var se=ie.fromNode,de=ie.toNode;se=se===null||a.contains(se),de=de===null||a.contains(de),(x?se&&de:se||de)&&af(a,ie,b,E,x,z)}}if(1<E)for(y=y.Ou();y.next();)af(a,y.value,b,E-1,x,z)}else if(y instanceof _r)for(y=y.labelNodes;y.next();)af(a,y.value,b,E,x,z)}}Jn.Object.defineProperties(Ai.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Hi: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 b=this.diagram;if((b===null||b.Qj(a)!==null&&!b.partManager.addsToTemporaryLayer)&&(this.Jg=a,b!==null&&b.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(b=y.diagram,b!==null&&(a=b.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&b.cb(La,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&b.cb(Ta,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var x=b.aa;b.aa=!0,E(this,y,a),b.aa=x}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(mu(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 b=this.layer;b!==null&&Gd(b,-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 Mo?this.type!==Tr.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:Wr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),mu(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:pi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),mu(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&&(mu(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:ho},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),mu(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,b=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===b||isNaN(E.y)&&isNaN(b))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Zt(this)===!1&&(f0(this),b=this.pa,b.w())){var x=this.diagram;if(x===null||x.animationManager.isTicking||!x.undoManager.isUndoingRedoing){var z=b.copy();b.h(b.x+(y.x-E.x),b.y+(y.y-E.y)),HS(this,x,b,z.x,z.y),this.g("position",z,b.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var b=this.diagram,E=this.data,x=null;if(b!==null&&E!==null&&!(this instanceof Mo)){var z=b.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(x=this.clone(),x.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),b===null||E===null||this instanceof Mo?this instanceof Mo&&(x=this.adornedPart,x!==null&&(a=x.Qf,a!==null&&a.remove(y),x.bh(this.category,this))):(z=b.model,z.undoManager.isUndoingRedoing||(this.ph()?(b.partManager.setLinkCategoryForData(E,a),b=b.partManager.findLinkTemplateForCategory(a),b!==null&&(Tc(b),b=b.copy(),b!==null&&Xv(this,b,y,a))):(z!==null&&z.jm(E,a),b=y1(b.partManager,E,a),b!==null&&(Tc(b),b=b.copy(),b===null||b instanceof _r||(E=this.location.copy(),Xv(this,b,y,a),this.location.w()||(this.location=E)))),x!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",x,y))))}}},self:{get:function(){return this},set:function(a){Xv(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 b=this.diagram;b!==null&&b.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 b=this.diagram;if(!a||this.canSelect()&&!(b!==null&&b.selection.count>=b.maxSelectionCount)){this.G^=4096;var E=!1;if(b!==null){E=b.skipsUndoManager,b.skipsUndoManager=!0;var x=b.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),b!==null&&(b.$b(),b.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var b=this.diagram;b!==null&&(b=b.highlighteds,b.ka(),a?b.add(this):b.remove(this),b.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&&(mu(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&&(mu(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&&(mu(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 _r?(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&&(mu(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&&(mu(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&&(mu(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:_i},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),mu(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&&(mu(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&&(mu(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:ns},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),mu(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&&Lt("Cannot make a Group a member of itself: "+this.toString()),Lt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var b=this.diagram;if(y!==null?iy(y,this):this instanceof ro&&b!==null&&b.ai.remove(this),this.Ah=a,a!==null?ry(a,this):this instanceof ro&&b!==null&&b.ai.add(this),this.C(1),b!==null&&b.aa){var E=this.data,x=b.model;if(E!==null&&x.Xj()){var z=x.wa(a!==null?a.data:null);x.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(x=!0,b!==null&&(x=b.aa,b.aa=!0),E(this,y,a),b!==null&&(b.aa=x)),this instanceof ro){for(b=new ar,af(b,this,!0,0,!0),b=b.iterator;b.next();)if(E=b.value,E instanceof $r)for(E=E.linksConnected;E.next();)vg(E.value)}if(this instanceof $r){for(b=this.linksConnected;b.next();)vg(b.value);b=this.labeledLink,b!==null&&vg(b)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Gd(y,-1,a))}}else Lt("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&&(mu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof $r&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(mu(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&&(mu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:hi},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),mu(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&&(mu(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&&(mu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Ai.prototype.invalidateLayout=Ai.prototype.C,Ai.prototype.findCommonContainingGroup=Ai.prototype.px,Ai.prototype.isMemberOf=Ai.prototype.Td,Ai.prototype.findTopLevelPart=Ai.prototype.sz,Ai.prototype.findSubGraphLevel=Ai.prototype.oz,Ai.prototype.ensureBounds=Ai.prototype.Va,Ai.prototype.getDocumentBounds=Ai.prototype.mi,Ai.prototype.findObject=Ai.prototype.fb,Ai.prototype.moveTo=Ai.prototype.moveTo,Ai.prototype.invalidateAdornments=Ai.prototype.Wb,Ai.prototype.clearAdornments=Ai.prototype.Ej,Ai.prototype.removeAdornment=Ai.prototype.Jf,Ai.prototype.addAdornment=Ai.prototype.bh,Ai.prototype.findAdornment=Ai.prototype.Pj,Ai.prototype.updateTargetBindings=Ai.prototype.La;var KS=!1;Ai.className="Part",Ai.LayoutNone=0,Ai.LayoutAdded=1,Ai.LayoutRemoved=2,Ai.LayoutShown=4,Ai.LayoutHidden=8,Ai.LayoutNodeSized=16,Ai.LayoutGroupLayout=32,Ai.LayoutNodeReplaced=64,Ai.LayoutStandard=127,Ai.LayoutAll=16777215;function Mo(a,y){a===void 0||a instanceof As||typeof a=="string"?Ai.call(this,a):(Ai.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)}Sn(Mo,Ai),Mo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Mo.prototype.updateRelationshipsFromData=function(){},Mo.prototype.Ul=function(a){var y=this.adornedObject,b=y==null?void 0:y.part;if(b instanceof _r&&y instanceof oo){y=b.path,b.Ul(a),a=y.geometry,b=this.O.s,y=b.length;for(var E=0;E<y;E++){var x=b[E];x.isPanelMain&&x instanceof oo&&(x.ua=a)}}},Mo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Zt(a))},Mo.prototype.Zc=function(){return!1},Mo.prototype.gk=function(a,y,b,E,x,z,ne){if(a===Ta&&y==="elements"){if(x instanceof ru)this.$a===null&&(this.$a=x);else if(x instanceof Tr){var ie=x.Nl(function(se){return se instanceof ru});ie instanceof ru&&this.$a===null&&(this.$a=ie)}}else a===La&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Tr&&this.$a.rg(E)&&(this.$a=null));Ai.prototype.gk.call(this,a,y,b,E,x,z,ne)},Mo.prototype.updateAdornments=function(){},Mo.prototype.Lj=function(){},Jn.Object.defineProperties(Mo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,b=null;a!==null&&(b=a.part),y===null||a!==null&&y===b||y.Jf(this.category),this.ue=a,b!==null&&b.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Mo.className="Adornment";function ey(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Oa,this.er=v0,this.Kr=this.ij=this.Nq=this.Mq=null}ey.prototype.copy=function(){var a=new ey;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 $r(a,y){a===void 0||a instanceof As||typeof a=="string"?Ai.call(this,a):(Ai.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Qn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Sn($r,Ai),$r.prototype.cloneProtected=function(a){Ai.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Oe=$r.prototype,Oe.Af=function(a){Ai.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Nh(a){a.Ba===null?a.Ba=new ey:a.Ba.nc&&(a.Ba=a.Ba.copy())}Oe.th=function(){Ai.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function YS(a,y){y!==null&&(a.af===null&&(a.af=new ar),a.af.add(y))}function XS(a,y,b,E){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===b&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===b)return z}return null}Oe.Lz=function(a,y,b){y==null&&(y=""),b==null&&(b=""),a=XS(this,a,y,b),a!==null&&a.Sl()},Oe.gk=function(a,y,b,E,x,z,ne){a===Ta&&y==="elements"?this.wc=null:a===La&&y==="elements"&&(this.wc=null),Ai.prototype.gk.call(this,a,y,b,E,x,z,ne)},Oe.Bd=function(a){for(var y=this.linksConnected;y.next();){var b=y.value;a!==void 0&&a.contains(b)||(Vu(b.fromPort),Vu(b.toPort),b.bb())}};function QS(a,y){for(a=a.linksConnected;a.next();){var b=a.value;(b.fromPort===y||b.toPort===y)&&(Vu(b.fromPort),Vu(b.toPort),b.bb())}}function Vu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Vu(y.port)}}Oe.si=function(){return!0},$r.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},$r.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},$r.prototype.isVisible=function(){if(!Ai.prototype.isVisible.call(this))return!1;var a=!0,y=Fc,b=this.diagram;if(b!==null&&(a=b.isTreePathToChildren,y=b.treeCollapsePolicy),y===Fc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ja){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Of&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},$r.prototype.Zb=function(a){Ai.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var b=y.value;if(a&&this.containingGroup!==null){var E=b.To(this);E===null||E.Td(this.containingGroup)||b.bb()}b.Zb(a)}},$r.prototype.qx=function(){var a=new ar,y=new ar;return JS(this,this,a,y),y.iterator};function JS(a,y,b,E){if(y!==null&&!b.has(y)){b.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)&&JS(a,x?ne.toNode:ne.fromNode,b,E):E.add(ne)})}}$r.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Bi(this.jb),b=this;return y.predicate=function(E){return E.fromNode===b&&E.fromPortId===a||E.toNode===b&&E.toPortId===a},y},Oe=$r.prototype,Oe.Mo=function(a){a===void 0&&(a=null);var y=new Bi(this.jb),b=this;return y.predicate=function(E){return E.fromNode!==b?!1:a===null?!0:E.fromPortId===a},y},Oe.Sd=function(a){a===void 0&&(a=null);var y=new Bi(this.jb),b=this;return y.predicate=function(E){return E.toNode!==b?!1:a===null?!0:E.toPortId===a},y},Oe.Mu=function(a){a===void 0&&(a=null);for(var y=null,b=null,E=this.jb.iterator;E.next();){var x=E.value;x.fromNode===this?(a===null||x.fromPortId===a)&&(x=x.toNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ar,y.add(b),y.add(x)):b=x):x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ar,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new ji(b):Hi},Oe.Po=function(a){a===void 0&&(a=null);for(var y=null,b=null,E=this.jb.iterator;E.next();){var x=E.value;x.fromNode!==this||a!==null&&x.fromPortId!==a||(x=x.toNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ar,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new ji(b):Hi},Oe.Oo=function(a){a===void 0&&(a=null);for(var y=null,b=null,E=this.jb.iterator;E.next();){var x=E.value;x.toNode!==this||a!==null&&x.toPortId!==a||(x=x.fromNode,y!==null?y.add(x):b!==null&&b!==x?(y=new ar,y.add(b),y.add(x)):b=x)}return y!==null?y.iterator:b!==null?new ji(b):Hi},Oe.jz=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null);var E=new Bi(this.jb),x=this;return E.predicate=function(z){return!((z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||b!==null&&z.toPortId!==b)&&(z.fromNode!==a||z.toNode!==x||b!==null&&z.fromPortId!==b||y!==null&&z.toPortId!==y))},E},Oe.kz=function(a,y,b){y===void 0&&(y=null),b===void 0&&(b=null);var E=new Bi(this.jb),x=this;return E.predicate=function(z){return!(z.fromNode!==x||z.toNode!==a||y!==null&&z.fromPortId!==y||b!==null&&z.toPortId!==b)},E};function g0(a,y,b){Vu(b);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||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,b),ne!==null&&(ne.aa=z)}}!E&&y.isTreeLink&&(b=y.fromNode,y=y.toNode,b!==null&&y!==null&&b!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),x=E?y:b,z=E?b:y,x.ci||(x.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?b===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function m0(a,y,b){Vu(b);var E=a.jb.remove(y),x=null;if(E||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,b),x!==null&&(x.aa=ne)}}E&&y.isTreeLink&&(b=!0,x!==null&&(b=x.isTreePathToChildren),a=b?y.toNode:y.fromNode,y=b?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)):$g(y)))}function $g(a){if(a.ci=!1,a.jb.count!==0){var y=!0,b=a.diagram;if(b===null||!b.undoManager.isUndoingRedoing){for(b!==null&&(y=b.isTreePathToChildren),b=a.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}$r.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Oe=$r.prototype,Oe.Vo=function(a){Ai.prototype.Vo.call(this,a),a||($g(this),a=this.Yk,a!==null&&a1(a,this))},Oe.Wo=function(a){Ai.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Oe.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,b=this.jb.copy().iterator;b.next();){var E=b.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,Ai.prototype.Lj.call(this)},Oe.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;qS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function qS(a){a.wc===null?a.wc=new An:a.wc.clear(),a.qm(a,function(y,b){$S(y,b)}),a.wc.count===0&&a.wc.add("",a)}function $S(a,y){var b=y.portId;b!==null&&a.wc!==null&&a.wc.add(b,y)}function ty(a,y,b){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&b)){for(b=null,a=a.findLinksConnected(E);a.next();)E=a.value,b===null&&(b=Mr()),b.push(E);if(b!==null){for(a=0;a<b.length;a++)y.remove(b[a]);Ur(b)}}}Oe.Nz=function(a){if(a===null||a===this)return!1;var y=!0,b=this.diagram;if(b!==null&&(y=b.isTreePathToChildren),b=this,y)for(;b!==a;){y=null;for(var E=b.jb.iterator;E.next();){var x=E.value;if(x.isTreeLink&&(y=x.fromNode,y!==b&&y!==this))break}if(y===this||y===null||y===b)return!1;b=y}else for(;b!==a;){for(y=null,E=b.jb.iterator;E.next()&&(x=E.value,!x.isTreeLink||(y=x.toNode,y===b||y===this)););if(y===this||y===null||y===b)return!1;b=y}return!0},Oe.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var b=y.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,b=y.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Oe.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)p0(y,!0),y=y.pg();var b=null;for(y=a;y!==null;){if(y.G&1048576){b=y;break}y=y.pg()}for(y=this;y!==null;)p0(y,!1),y=y.pg();return b},Oe.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},Oe.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof $r)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var b=y.value;if(b.isTreeLink&&(b=a?b.fromNode:b.toNode,b!==this))return this.ci=b}return this.ci=null},Oe.vz=function(){function a(b,E){E.add(b);var x=b.kh();x!==null&&(E.add(x),b=b.pg(),b!==null&&a(b,E))}var y=new ar;return a(this,y),y},Oe.uz=function(){return e1(this,this)};function e1(a,y){return y=y.pg(),y===null?0:1+e1(a,y)}Oe.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Bi(this.jb);var b=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===b)}:function(E){return!!(E.isTreeLink&&E.toNode===b)},y},Oe.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var b=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):b!==null&&b!==a?(y=new Qn,y.add(b),y.add(a)):b=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):b!==null&&b!==a?(y=new Qn,y.add(b),y.add(a)):b=a);return y!==null?y.iterator:b!==null?new ji(b):Hi},Oe.wz=function(a){a===void 0&&(a=1/0);var y=new ar;return af(y,this,!1,a,!0),y},$r.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 b=new ar;b.add(this),t1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Fc),y.Ue=!1}};function t1(a,y,b,E,x,z,ne){if(1<E)for(var ie=b?a.Mo():a.Sd();ie.next();){var se=ie.value;se.isTreeLink&&(se=se.To(a),se===null||se===a||y.contains(se)||(y.add(se),t1(se,y,b,E-1,x,z,ne)))}else n1(a,y,b,x,z,ne)}function n1(a,y,b,E,x,z){for(var ne=x===a?!0:a.isTreeExpanded,ie=b?a.Mo():a.Sd(),se={};ie.next();){var de=ie.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=b?de.Oo():de.Po();se.uv=a,Se.all(function(Le){return function(Me){return Me===Le.uv||!Me.isTreeExpanded}}(se))&&E.Aj(de,x),de.oh(),de.Zb(!1)}de.isTreeExpanded&&(de.wasTreeExpanded=de.isTreeExpanded,pe||n1(de,y,b,E,x,z))}se={uv:se.uv}}a.isTreeExpanded=!1}$r.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 b=new ar;b.add(this),r1(this,b,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Fc),y.Ue=!1}};function r1(a,y,b,E,x,z,ne){for(var ie=z===a?!1:a.isTreeExpanded,se=b?a.Mo():a.Sd(),de={};se.next();){var pe=se.value;if(pe.isTreeLink&&(ie||pe.fd||pe.bb(),pe=pe.To(a),pe!==null&&pe!==a&&!y.contains(pe))){if(y.add(pe),!ie){pe.Zb(!0),pe.oh();var Se=b?pe.Oo():pe.Po();de.vv=a,Se.all(function(Le){return function(Me){return Me===Le.vv||!Me.isTreeExpanded}}(de))&&x.Cj(pe,z)}(2<E||pe.wasTreeExpanded)&&(pe.wasTreeExpanded=!1,r1(pe,y,b,E-1,x,z,ne))}de={vv:de.vv}}a.isTreeExpanded=!0}Jn.Object.defineProperties($r.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:v0},set:function(a){var y=this.portSpreading;y!==a&&(Nh(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 b=this.diagram;b!==null&&Td(b,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Oa},set:function(a){typeof a=="number"&&(a=new no(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Nh(this),this.Ba.yp=a;var b=this.diagram;b!==null&&Td(b,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&&(Nh(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&&(Nh(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&&(Nh(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 b=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),b!==null&&E!==null&&!b.undoManager.isUndoingRedoing){var x=y.data,z=b.model;if(x!==null&&z.ri()){var ne=z.wa(E);ne!==void 0&&z.Qx(x,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(a1(a,this),b===null||E===null||b.undoManager.isUndoingRedoing||(x=a.data,b=b.model,x!==null&&b.ri()&&(E=b.wa(E),E!==void 0&&b.Bu(x,E))),this.containingGroup=a.containingGroup),Rl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&qS(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 b=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;b!==null&&(E=b.aa,b.aa=!0),y(this),b!==null&&(b.aa=E)}b!==null&&b.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&&(Nh(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))}}}),$r.prototype.expandTree=$r.prototype.expandTree,$r.prototype.collapseTree=$r.prototype.collapseTree,$r.prototype.findTreeParts=$r.prototype.wz,$r.prototype.findTreeChildrenNodes=$r.prototype.Ou,$r.prototype.findTreeChildrenLinks=$r.prototype.Qo,$r.prototype.findTreeLevel=$r.prototype.uz,$r.prototype.findTreeParentChain=$r.prototype.vz,$r.prototype.findTreeParentNode=$r.prototype.pg,$r.prototype.findTreeParentLink=$r.prototype.kh,$r.prototype.findCommonTreeParent=$r.prototype.gz,$r.prototype.findTreeRoot=$r.prototype.xz,$r.prototype.isInTreeOf=$r.prototype.Nz,$r.prototype.findPort=$r.prototype.ns,$r.prototype.findLinksTo=$r.prototype.kz,$r.prototype.findLinksBetween=$r.prototype.jz,$r.prototype.findNodesInto=$r.prototype.Oo,$r.prototype.findNodesOutOf=$r.prototype.Po,$r.prototype.findNodesConnected=$r.prototype.Mu,$r.prototype.findLinksInto=$r.prototype.Sd,$r.prototype.findLinksOutOf=$r.prototype.Mo,$r.prototype.findExternalTreeLinksConnected=$r.prototype.qx,$r.prototype.invalidateConnectedLinks=$r.prototype.Bd,$r.prototype.invalidateLinkBundle=$r.prototype.Lz;var fE=new mn($r,"SpreadingNone",10),v0=new mn($r,"SpreadingEvenly",11),ny=new mn($r,"SpreadingPacked",12);$r.className="Node",$r.SpreadingNone=fE,$r.SpreadingEvenly=v0,$r.SpreadingPacked=ny;function ro(a,y){a===void 0||a instanceof As||typeof a=="string"?$r.call(this,a):($r.call(this),a&&(y=a)),this.U|=4608,this.Gn=new ar,this.$a=null,this.Sc=new Pa,this.Sc.group=this,this.gl=new ar,this.tb=this.$p=null,y&&Object.assign(this,y)}Sn(ro,$r),ro.prototype.cloneProtected=function(a){$r.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(b){return b instanceof ru});y instanceof ru?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())},Oe=ro.prototype,Oe.Af=function(a){$r.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var b=a.value;if(b.v(),b.C(8),b.Ej(),b instanceof $r)b.Bd(y);else if(b instanceof _r)for(b=b.labelNodes;b.next();)b.value.Bd(y)}},Oe.gk=function(a,y,b,E,x,z,ne){if(a===Ta&&y==="elements"){if(x instanceof ru)this.$a===null?this.$a=x:this.$a!==x&&Lt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(x instanceof Tr){var ie=x.Nl(function(se){return se instanceof ru});ie instanceof ru&&(this.$a===null?this.$a=ie:this.$a!==ie&&Lt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===La&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Tr&&this.$a.rg(E)&&(this.$a=null));$r.prototype.gk.call(this,a,y,b,E,x,z,ne)},Oe.Xl=function(a,y){$r.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Tr.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Tr&&(a=a.Pb()),this.tb===null&&(this.tb=new In),a.mi(this.tb),a instanceof oo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Oe.eh=function(a,y,b,E){this.nf=this.$a,$r.prototype.eh.call(this,a,y,b,E)},Oe.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof _r||y.Va()}),$r.prototype.Va.call(this)},Oe.si=function(){if(!$r.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof $r){if(y.isVisible()&&Zt(y))return!1}else if(y instanceof _r&&y.isVisible()&&Zt(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ry(a,y){if(a.Gn.add(y)){y instanceof ro&&a.gl.add(y);var b=a.memberAdded;if(b!==null){var E=!0,x=a.diagram;x!==null&&(E=x.aa,x.aa=!0),b(a,y),x!==null&&(x.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof _r&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function iy(a,y){if(a.Gn.remove(y)){y instanceof ro&&a.gl.remove(y);var b=a.memberRemoved;if(b!==null){var E=!0,x=a.diagram;x!==null&&(E=x.aa,x.aa=!0),b(a,y),x!==null&&(x.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof _r&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Oe.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)}$r.prototype.Lj.call(this)},ro.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},ro.prototype.addMembers=function(a,y){var b=this.diagram;if(b===null)return!1;b=b.commandHandler;var E=!0;for(a=Zn(a).iterator;a.next();){var x=a.value;!y||b.isValidMember(this,x)?x.containingGroup=this:E=!1}return E},ro.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))},Oe=ro.prototype,Oe.Bd=function(a){var y=(this.U&65536)!==0;if($r.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var b=y.value;if(a===void 0||!a.contains(b)){var E=b.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Vu(b.fromPort),Vu(b.toPort),b.bb()):(E=b.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Vu(b.fromPort),Vu(b.toPort),b.bb()))}}},Oe.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 b=new ar,E=y.iterator;E.next();){var x=E.value;if(x instanceof $r)for(x=x.linksConnected;x.next();){var z=x.value;y.contains(z)||b.add(z)}}return a&&(this.$p=b),b.iterator},Oe.iz=function(){var a=this.Rj();a.add(this);for(var y=new ar,b=a.iterator;b.next();){var E=b.value;if(E instanceof $r)for(E=E.linksConnected;E.next();){var x=E.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},Oe.hz=function(){function a(b,E){b!==null&&(E.add(b),a(b.containingGroup,E))}var y=new ar;return a(this,y),y},Oe.Rj=function(){var a=new ar;return af(a,this,!0,0,!0),a.remove(this),a},Oe.Zb=function(a){$r.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},ro.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,b,E){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!1),z instanceof ro&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,i1(z,y,b,E)),z instanceof $r)z.Bd(y),b.Aj(z,E);else if(z instanceof _r)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}ro.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();o1(this,y,a,this),a.Ue=!1}};function o1(a,y,b,E){for(var x=a.memberParts;x.next();){var z=x.value;if(z.Zb(!0),z instanceof ro&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,b,E)),z instanceof $r)z.Bd(y),b.Cj(z,E);else if(z instanceof _r)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}ro.prototype.move=function(a,y){y===void 0&&(y=!1);var b=y?this.location:this.position,E=b.x;b=b.y;var x=a.x,z=a.y;if(!(E===x||isNaN(E)&&isNaN(x))||!(b===z||isNaN(b)&&isNaN(z))){for(E=x-(isNaN(E)?0:E),b=z-(isNaN(b)?0:b),z=it.alloc(),$r.prototype.move.call(this,a,y),a=new ar,y=this.Rj().iterator;y.next();)x=y.value,x instanceof _r&&(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 $r&&x.isLinkLabel)){var ne=x.position,ie=x.location;ne.w()?(z.x=ne.x+E,z.y=ne.y+b,x.position=z):ie.w()&&(z.x=ie.x+E,z.y=ie.y+b,x.location=z)}for(y.reset();y.next();)x=y.value,x instanceof _r&&(x.suspendsRouting=a.contains(x),x.fd||x.fromNode!==this&&x.toNode!==this)&&(ne=x.position,z.x=ne.x+E,z.y=ne.y+b,z.w()?x.move(z):x.bb(),ay(x)&&x.bb());it.free(z)}},Jn.Object.defineProperties(ro.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&&Lt("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 b=this.diagram;a!==null&&(a.diagram=b,a.group=this),b!==null&&(b.xh=!0),this.g("layout",y,a),b!==null&&b.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Nh(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&&(Nh(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&&(Nh(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 b=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;b!==null&&(E=b.aa,b.aa=!0),y(this),b!==null&&(b.aa=E)}b!==null&&b.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&&(Nh(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)}}}),ro.prototype.expandSubGraph=ro.prototype.expandSubGraph,ro.prototype.collapseSubGraph=ro.prototype.collapseSubGraph,ro.prototype.findSubGraphParts=ro.prototype.Rj,ro.prototype.findContainingGroupChain=ro.prototype.hz,ro.prototype.findExternalNodesConnected=ro.prototype.iz,ro.prototype.findExternalLinksConnected=ro.prototype.Lu,ro.prototype.ensureBounds=ro.prototype.Va,ro.className="Group";function ru(a){rn.call(this),this.yb=ts,this.ko=new In(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Sn(ru,rn),ru.prototype.cloneProtected=function(a){rn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ru.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},ru.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof ro||a instanceof Mo)||Lt("Placeholder is not inside a Group or Adornment."),a instanceof ro){var y=this.computeBorder(this.ko),b=this.minSize,E=this.dc;for(ko(E,(isFinite(b.width)?Math.max(b.width,y.width):y.width)||0,(isFinite(b.height)?Math.max(b.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,b=!1;E.next();)if(E.value.isVisible()){b=!0;break}E=a.diagram,!b||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(b=it.alloc(),b.xi(y,a.locationSpot),b.D(a.location)||(a.location=b),it.free(b))}else{y=this.dc,b=this.yb,E=b.left+b.right;var x=b.top+b.bottom,z=a.adornedObject;a.angle=z.li();var ne=0;z instanceof oo&&(ne=z.strokeWidth);var ie=z.Df(),se=z.naturalBounds,de=(se.width+ne)*ie;ne=(se.height+ne)*ie,a.type!==Tr.Link&&(ie=z.ga(a.category==="Selection"?ho:a.locationSpot,it.alloc()),a.location=ie,it.free(ie)),isNaN(de)||isNaN(ne)?(a=z.ga(ho,it.alloc()),de=In.allocAt(a.x,a.y,0,0),de.Ye(z.ga(Fo,a)),de.Ye(z.ga(Do,a)),de.Ye(z.ga(pa,a)),ko(y,de.width+E||0,de.height+x||0),this.Ge(-b.left,-b.top,y.width,y.height),it.free(a),In.free(de)):(ko(y,de+E||0,ne+x||0),this.Ge(-b.left,-b.top,y.width,y.height))}},ru.prototype.eh=function(a,y,b,E){this.actualBounds.h(a,y,b,E)},ru.prototype.computeBorder=function(a){var y=this.part,b=y.diagram,E=b===null||!b.animationManager.isAnimating;if(b!==null&&y instanceof ro&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var x=b.toolManager.findTool("Dragging");if(x===b.currentTool&&(b=x.computeBorder(y,this.ko,a),b!==null))return b}b=In.alloc(),x=this.computeMemberBounds(b);var z=this.yb;return y instanceof ro&&!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)),In.free(b),E&&y instanceof ro&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ru.prototype.computeMemberBounds=function(a){if(!(this.part instanceof ro))return a.h(0,0,0,0),a;for(var y=this.part,b=1/0,E=1/0,x=-1/0,z=-1/0,ne=y.memberParts;ne.next();){var ie=ne.value;if(ie.isVisible()){if(ie instanceof _r&&(!y.computesBoundsIncludingLinks||Nt(ie)||ie.fromNode===y||ie.toNode===y))continue;ie=ie.actualBounds,ie.left<b&&(b=ie.left),ie.top<E&&(E=ie.top),ie.right>x&&(x=ie.right),ie.bottom>z&&(z=ie.bottom)}}return isFinite(b)&&isFinite(E)?a.h(b,E,x-b,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Jn.Object.defineProperties(ru.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new no(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ru.className="Placeholder";function _r(a){Ai.call(this,Tr.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=iu,this.Om=0,this.Qm=iu,this.Rm=NaN,this.qj=uy,this.po=.5,this.wd=null,this.Nb=new Qn().freeze(),this.Tg=this.Mg=null,this.ml=new In,this.ua=new Nr,this.u=this.o=this.Sf=this.Wf=null,this.su=new it,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Sn(_r,Ai),_r.prototype.cloneProtected=function(a){Ai.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())},Oe=_r.prototype,Oe.Af=function(a){Ai.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&&Vu(y),a=a.toPort,a!==null&&Vu(a)},Oe.qb=function(a){a.classType===_r?(a.value&2)===2?this.routing=a:a===$u||a===kh||a===Sg?this.curve=a:a===nm||a===w0||a===C0?this.adjusting=a:a!==uy&&a!==iu&&Lt("Unknown Link enum value for a Link property: "+a):Ai.prototype.qb.call(this,a)},Oe.Xc=function(){this.ba===null&&(this.ba=new So)},Oe.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Zt(a)||rf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Zt(a)||rf(a)))},Oe.zv=function(){return!1},Oe.Av=function(){},Oe.Zc=function(){return!1},_r.prototype.computeAngle=function(a,y,b){return _r.computeAngle(y,b)},_r.computeAngle=function(a,y){switch(a){default:case iu:a=0;break;case rm:a=y;break;case im:a=y+90;break;case om:a=y-90;break;case cy:a=y+180;break;case P0:a=tn.bp(y),90<a&&270>a&&(a-=180);break;case am:a=tn.bp(y+90),90<a&&270>a&&(a-=180);break;case sm:a=tn.bp(y-90),90<a&&270>a&&(a-=180);break;case T0:if(a=tn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return tn.bp(a)};function vg(a){var y=a.fromNode,b=a.toNode,E=null;if(y!==null?E=b!==null?y.px(b):y.containingGroup:b!==null?E=b.containingGroup:E=null,y=E,b=a.Ah,b!==y){b!==null&&iy(b,a),a.Ah=y,y!==null&&ry(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,b,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==b&&a.Mw!==b||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Oe=_r.prototype,Oe.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Ai.prototype.oh.call(this)},Oe.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Oe.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function a1(a,y){a.wd===null&&(a.wd=new ar),a.wd.add(y),a.v()}Oe.Vo=function(a){if(Ai.prototype.Vo.call(this,a),Vf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,g0(a,this,y));var b=this.uf;if(b!==null){var E=this.toPort;b===a&&E===y||g0(b,this,E)}em(this)}},Oe.Wo=function(a){if(Ai.prototype.Wo.call(this,a),Vf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,m0(a,this,y));var b=this.uf;if(b!==null){var E=this.toPort;b===a&&E===y||m0(b,this,E)}tm(this)}},Oe.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))},_r.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},_r.prototype.move=function(a,y){var b=y?this.location:this.position,E=b.x;isNaN(E)&&(E=0);var x=b.y;for(isNaN(x)&&(x=0),E=a.x-E,x=a.y-x,y===!0?Ai.prototype.move.call(this,a,!1):(a=it.allocAt(b.x+E,b.y+x),Ai.prototype.move.call(this,a,!1),it.free(a)),Lh(this,E,x),a=this.labelNodes;a.next();)y=a.value,b=y.position,y.moveTo(b.x+E,b.y+x)},_r.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},_r.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},_r.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ai),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var b=this.i(0),E=this.i(1);return a.h((b.x+E.x)/2,(b.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===$u))return this.ua.Pu(.5,a),a.add(this.i(0)),b=this.ua.figures.first(),a.offset(-b.startX,-b.startY),a;if(this.computeCurve()===$u){if(y===3){b=this.i(0),E=this.i(1);var x=this.i(2);return tn.ax(b.x,b.y,E.x,E.y,E.x,E.y,x.x,x.y,a),a}if(E=(y-1)/3|0,b=3*(E/2|0),E%2===1){E=this.i(b),x=this.i(b+1);var z=this.i(b+2);b=this.i(b+3),tn.ax(E.x,E.y,x.x,x.y,z.x,z.y,b.x,b.y,a)}else a.assign(this.i(b));return a}var ne=this.flattenedLengths;for(b=this.flattenedTotalLength,x=z=E=0;E<b/2&&z<y&&(x=ne[z],!(E+x>b/2));)E+=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-(b/2-E)):a.h(y.x,y.y+(b/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(b/2-E),y.y):a.h(y.x+(b/2-E),y.y):(b=(b/2-E)/x,a.h(y.x+b*(z.x-y.x),y.y+b*(z.y-y.y))),a},_r.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()===$u))return this.ua.wx(.5);if(this.computeCurve()===$u&&4<=a){var y=(a-1)/3|0,b=3*(y/2|0);if(y%2===1){b=Math.floor(b),a=this.i(b),y=this.i(b+1);var E=this.i(b+2);return b=this.i(b+3),tn.My(a.x,a.y,y.x,y.y,E.x,E.y,b.x,b.y)}if(0<b&&b+1<a)return this.i(b-1).ab(this.i(b+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var x=0;b=0;for(var z;x<E/2&&b<a&&(z=y[b],!(x+z>E/2));)x+=z,b++;if(y=this.i(b),E=this.i(b+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<b&&b+2<a)return this.i(b-1).ab(this.i(b+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Oe=_r.prototype,Oe.i=function(a){return this.Nb.s[a]},Oe.dd=function(a,y){this.Nb.cd(a,y)},Oe.L=function(a,y,b){this.Nb.cd(a,new it(y,b))},Oe.Kz=function(a,y){this.Nb.Gb(a,y)},Oe.m=function(a,y,b){this.Nb.Gb(a,new it(y,b))},Oe.ne=function(a){this.Nb.add(a)},Oe.yf=function(a,y){this.Nb.add(new it(a,y))},Oe.pv=function(a){this.Nb.mb(a)},Oe.Fj=function(){this.Nb.clear()};function Lh(a,y,b){if(y!==0||b!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,b),a.defaultToPoint&&a.defaultToPoint.offset(y,b);else{for(var E=a.fd,x=new Qn,z=a.Nb.iterator;z.next();){var ne=z.value;x.add(new it(ne.x+y,ne.y+b).freeze())}x.freeze(),z=a.Nb,a.Nb=x,ne=a.diagram,isNaN(y)||isNaN(b)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+b),a.pa.h(a.pa.x+y,a.pa.y+b),Rl(a)),E?y0(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)}}Oe.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Oe.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,b=1/0,E=1/0,x=a.s,z=x.length,ne=0;ne<z;ne++){var ie=x[ne];b=Math.min(ie.x,b),E=Math.min(ie.y,E)}ie=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),ie=Math.min(Se.y,ie),Se.freeze()}if(y.freeze(),de===z){for(z=0;z<de;z++)if(pe=x[z],Se=se[z],pe.x-b!==Se.x-ne||pe.y-E!==Se.y-ie){this.qc();break}}else this.qc();this.Mg=null,b=this.diagram,b!==null&&b.animationManager.zb&&ce(b.animationManager,this,y),y0(this),this.g("points",a,y)}},Oe.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function y0(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),x0(a,!1))}Oe.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())}},Oe.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()}}},_r.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Lp||(Lp=new $r,Lp.desiredSize=cr,Lp.Va()),this.defaultFromPoint&&(Lp.location=this.defaultFromPoint,Lp.Va(),y=a=Lp)):y=this.fromPort,y!==null&&!a.isVisible()){var b=a.findVisibleNode();b!==null&&b!==a?(a=b,y=b.port):a=b}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,x=null;if(E===null?(kp||(kp=new $r,kp.desiredSize=cr,kp.Va()),this.defaultToPoint&&(kp.location=this.defaultToPoint,kp.Va(),x=E=kp)):x=this.toPort,x===null||E.isVisible()||(b=E.findVisibleNode(),b!==null&&b!==E?(E=b,x=b.port):E=b),this.Mw=E,E===null||!E.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);b=this.computeSpot(!1,x);var ie=yg(ne),se=yg(b),de=y===x&&y!==null,pe=this.isOrthogonal,Se=this.curve===$u;this.Wf=de&&!pe?Se=!0:!1;var Le=this.computeAdjusting()===iu||de;if(!pe&&!de&&ie&&se){if(ie=!1,!Le&&3<=z&&(Le=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=this.adjustPoints(0,Le,z-1,se))&&(Le=this.getLinkPoint(a,y,ne,!0,!1,E,x),se=this.getLinkPoint(E,x,b,!1,!1,a,y),this.adjustPoints(0,Le,z-1,se)),!ie)if(this.Fj(),Se){z=this.getLinkPoint(a,y,ne,!0,!1,E,x),Le=this.getLinkPoint(E,x,b,!1,!1,a,y),ie=Le.x-z.x,se=Le.y-z.y,de=this.computeCurviness(),Se=pe=0;var Me=z.x+ie/3,ze=z.y+se/3,qe=Me,Ct=ze;tn.B(se,0)?Ct=0<ie?Ct-de:Ct+de:(pe=-ie/se,Se=Math.sqrt(de*de/(pe*pe+1)),0>de&&(Se=-Se),qe=(0>se?-1:1)*Se+Me,Ct=pe*(qe-Me)+ze),Me=z.x+2*ie/3,ze=z.y+2*se/3;var vt=Me,Dt=ze;tn.B(se,0)?Dt=0<ie?Dt-de:Dt+de:(vt=(0>se?-1:1)*Se+Me,Dt=pe*(vt-Me)+ze),this.Fj(),this.ne(z),this.yf(qe,Ct),this.yf(vt,Dt),this.ne(Le),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,E,x)),this.dd(3,this.getLinkPoint(E,x,b,!1,!1,a,y))}else z=E,Le=x,E=this.getLinkPoint(a,y,ne,!0,!1,z,Le),x=this.getLinkPoint(z,Le,b,!1,!1,a,y),this.hasCurviness()?(Le=x.x-E.x,b=x.y-E.y,ne=this.computeCurviness(),a=E.x+Le/2,y=E.y+b/2,z=a,ie=y,tn.B(b,0)?ie=0<Le?ie-ne:ie+ne:(Le=-Le/b,z=Math.sqrt(ne*ne/(Le*Le+1)),0>ne&&(z=-z),z=(0>b?-1:1)*z+a,ie=Le*(z-a)+y),this.ne(E),this.yf(z,ie),this.ne(x)):(this.ne(E),this.ne(x),ie=In.alloc(),y.mi(ie),se=ie.ca(x),Le.mi(ie),de=ie.ca(E),(se||de)&&(ne=y.ga(b0(ne),new it),this.dd(0,this.getLinkPointFromPoint(a,y,ne,x,!0,ne)),b=Le.ga(b0(b),new it),this.dd(1,this.getLinkPointFromPoint(z,Le,b,E,!1,b))),In.free(ie))}else{Se=this.isAvoiding,Le&&(pe&&Se||de)&&this.Fj();var Bt=de?this.computeCurviness():0;Se=this.getLinkPoint(a,y,ne,!0,pe,E,x),Me=qe=ze=0,(pe||!ie||de)&&(Ct=this.computeEndSegmentLength(a,y,ne,!0),Me=this.getLinkDirection(a,y,Se,ne,!0,pe,E,x),de&&(ie||ne.D(b)||!pe&&ne.x+b.x===1&&ne.y+b.y===1)&&(Me-=pe?90:30,0>Bt&&(Me-=180)),0>Me?Me+=360:360<=Me&&(Me-=360),de&&(Ct+=Math.abs(Bt)*(pe?1:2)),Me===0?ze=Ct:Me===90?qe=Ct:Me===180?ze=-Ct:Me===270?qe=-Ct:(ze=Ct*Math.cos(Me*Math.PI/180),qe=Ct*Math.sin(Me*Math.PI/180)),ne.Mc()&&de&&(Ct=y.ga(Ji,it.alloc()),vt=it.allocAt(Ct.x+1e3*ze,Ct.y+1e3*qe),this.getLinkPointFromPoint(a,y,Ct,vt,!0,Se),it.free(Ct),it.free(vt))),Ct=this.getLinkPoint(E,x,b,!1,pe,a,y);var Gt=Dt=vt=0;if(pe||!se||de){var $t=this.computeEndSegmentLength(E,x,b,!1);Gt=this.getLinkDirection(E,x,Ct,b,!1,pe,a,y),de&&(se||ne.D(b)||!pe&&ne.x+b.x===1&&ne.y+b.y===1)&&(Gt+=pe?0:30,0>Bt&&(Gt+=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),de&&($t+=Math.abs(Bt)*(pe?1:2)),Gt===0?vt=$t:Gt===90?Dt=$t:Gt===180?vt=-$t:Gt===270?Dt=-$t:(vt=$t*Math.cos(Gt*Math.PI/180),Dt=$t*Math.sin(Gt*Math.PI/180)),b.Mc()&&de&&(b=x.ga(Ji,it.alloc()),ne=it.allocAt(b.x+1e3*vt,b.y+1e3*Dt),this.getLinkPointFromPoint(E,x,b,ne,!1,Ct),it.free(b),it.free(ne))}b=Se,(pe||!ie||de)&&(b=new it(Se.x+ze,Se.y+qe)),ne=Ct,(pe||!se||de)&&(ne=new it(Ct.x+vt,Ct.y+Dt)),!Le&&!pe&&ie&&3<z&&this.adjustPoints(0,Se,z-2,ne)?this.dd(z-1,Ct):!Le&&!pe&&se&&3<z&&this.adjustPoints(1,b,z-1,Ct)?this.dd(0,Se):!Le&&(pe?6<=z:4<z)&&this.adjustPoints(1,b,z-2,ne)?(this.dd(0,Se),this.dd(z-1,Ct)):(this.Fj(),this.ne(Se),(pe||!ie||de)&&this.ne(b),pe&&this.addOrthoPoints(b,Me,ne,Gt,a,E),(pe||!se||de)&&this.ne(ne),this.ne(Ct))}return!0};function oy(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}_r.prototype.getLinkPointFromPoint=function(a,y,b,E,x,z){if(z===void 0&&(z=new it),a===null||y===null)return z.assign(b),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=E.x,E=E.y;var ne=b.x;b=b.y}else{a=x.oe,x=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*x;var ie=-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=E.x*ne+E.y*se+pe,E=E.x*ie+E.y*de+Se,ne=b.x*ne+b.y*se+pe,b=b.x*ie+b.y*de+Se}return y.Sj(x,E,ne,b,z),a!==null&&z.transform(a),z};function S0(a,y){var b=y.Zn;return b===null&&(b=new Ip,b.port=y,b.node=y.part,y.Zn=b),p1(b,a)}_r.prototype.getLinkPoint=function(a,y,b,E,x,z,ne,ie){if(ie===void 0&&(ie=new it),b.sb()&&!yg(b))return y.ga(b,ie),ie;if(b.$c()){var se=S0(this,y);if(se!==null){if(ie.assign(se.Zo),x&&this.routing===l1){var de=S0(this,ne);if(de!==null&&se.Gl<de.Gl){se=it.alloc(),de=it.alloc();var pe=new In(y.ga(ho,se),y.ga(Fo,de)),Se=this.computeSpot(!E,ne);a=this.getLinkPoint(z,ne,Se,!E,x,a,y,de),(b.Hf(Hs)||b.Hf(da))&&a.y>=pe.y&&a.y<=pe.y+pe.height?ie.y=a.y:(b.Hf(ga)||b.Hf(Rs))&&a.x>=pe.x&&a.x<=pe.x+pe.width&&(ie.x=a.x),it.free(se),it.free(de)}}return ie}}return b=y.ga(b0(b),it.alloc()),this.pointsCount>(x?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),x&&(ne=oy(b,ne.copy()))):(se=this.computeSpot(!E,ne),z=it.alloc(),ne=ne.ga(b0(se),z),x&&(ne=oy(b,ne)),it.free(z)),this.getLinkPointFromPoint(a,y,b,ne,E,ie),it.free(b),ie},_r.prototype.getLinkDirection=function(a,y,b,E,x,z,ne,ie){e:if(E.sb())var se=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(se=S0(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(Ji,it.alloc()),this.pointsCount>(z?6:2)?(ie=x?this.i(1):this.i(this.pointsCount-2),ie=z?oy(se,ie.copy()):b):(b=it.alloc(),ie=ie.ga(Ji,b),it.free(b)),b=Math.abs(ie.x-se.x)>Math.abs(ie.y-se.y)?ie.x>=se.x?0:180:ie.y>=se.y?90:270,it.free(se),se=b}return E.Mc()&&ne.Td(a)&&(se+=180,360<=se&&(se-=360)),yg(E)||(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},_r.prototype.computeEndSegmentLength=function(a,y,b,E){return y!==null&&b.$c()&&(a=S0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},_r.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Ji:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ns?Qi:y)):(a=y||this.toPort,a===null?a=Ji:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ns?Qi:y)),a};function yg(a){return a===Qi||a.x===.5&&a.y===.5}function b0(a){return a.x===.5&&a.y===.5?a:Ji}_r.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==iu&&4<this.pointsCount?this.computeMidPoint(new it):(a=y.Zn,a=a!==null?p1(a,this):null,a!==null?a.Zo:y.ga(Ji))},_r.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},_r.prototype.Cf=function(a,y,b,E,x,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),b===void 0&&(b=null);var ne=z;if(z===void 0&&(ne=Mi.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return Lv(this,y,b,x),z===void 0&&Mi.free(ne),!0;if(this.Yc(a,ne)){var ie=!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,Le=this.naturalBounds;if(!(Se.x>Le.width||Se.y>Le.height||0>Se.x+Se.width||0>Se.y+Se.height)){if(Se=Mi.alloc(),Se.set(ne),pe instanceof Tr)ie=pe.Cf(a,y,b,E,x,Se);else if(this.path===pe){if(pe instanceof oo)if(ie=a,Le=E,pe.pickable===!1)ie=!1;else if(Se.multiply(pe.transform),Le)e:{var Me=ie,ze=Se;if(pe.fh(Me,ze))ie=!0;else{if(ze===void 0&&(ze=pe.transform,Me.Re(pe.actualBounds))){ie=!0;break e}ie=Me.left,Le=Me.right;var qe=Me.top;Me=Me.bottom;var Ct=it.alloc(),vt=it.alloc(),Dt=it.alloc(),Bt=Mi.alloc();Bt.set(ze),Bt.bv(pe.transform),Bt.Vj(),vt.x=Le,vt.y=qe,vt.transform(Bt),Ct.x=ie,Ct.y=qe,Ct.transform(Bt),ze=!1,Gf(pe,Ct,vt,Dt)?ze=!0:(Ct.x=Le,Ct.y=Me,Ct.transform(Bt),Gf(pe,Ct,vt,Dt)?ze=!0:(vt.x=ie,vt.y=Me,vt.transform(Bt),Gf(pe,Ct,vt,Dt)?ze=!0:(Ct.x=ie,Ct.y=qe,Ct.transform(Bt),Gf(pe,Ct,vt,Dt)&&(ze=!0)))),Mi.free(Bt),it.free(Ct),it.free(vt),it.free(Dt),ie=ze}}else ie=pe.fh(ie,Se)}else ie=Ts(pe,a,E,Se);ie&&(Le=pe,y!==null&&(Le=y(pe)),Le&&(b===null||b(Le))&&x.add(Le)),Mi.free(Se)}}}return z===void 0&&Mi.free(ne),ie||this.background!==null||this.areaBackground!==null}return z===void 0&&Mi.free(ne),!1},_r.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?$u:this.curve},_r.prototype.computeCorner=function(){if(this.curve===$u)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},_r.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,b=y.length,E=0;E<b;E++){var x=y[E];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},_r.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=c1;a=Math.max(a,this.computeThickness());var y=this.fromPort,b=this.toPort;if(y!==null&&b!==null){var E=this.findMidLabel();if(E!==null){var x=E.naturalBounds,z=E.margin,ne=isNaN(x.width)?30:x.width*E.scale+z.left+z.right;x=isNaN(x.height)?14:x.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===rm||E===P0||E===cy?a=Math.max(a,x):E===om||E===sm||E===im||E===am?a=Math.max(a,ne):(y=y.ga(Ji).ab(b.ga(Ji))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*x)+1)),this.curve===$u&&(a*=1.333)}}return a},_r.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var b=a[y];b.computeAdjusting()===iu&&b.bb()}},_r.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var b=Mr(),E=0,x=y.links,z=0;z<x.length;z++){var ne=x[z].computeSpacing();b.push(ne),E+=ne}for(E=-E/2,z=0;z<x.length;z++){if(x[z]===this){a=E+b[z]/2;break}E+=b[z]}y.Ds===this.fromNode&&(a=-a),Ur(b)}}return a},_r.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},_r.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},_r.prototype.adjustPoints=function(a,y,b,E){var x=this.computeAdjusting();if(this.isOrthogonal){if(x===w0)return!1;x===C0&&(x=nm)}switch(x){case w0:var z=this.i(a),ne=this.i(b);if(!z.Xa(y)||!ne.Xa(E)){x=z.x,z=z.y;var ie=ne.x-x,se=ne.y-z,de=Math.sqrt(ie*ie+se*se);if(!tn.$(de,0)){if(tn.$(ie,0))var pe=0>se?-Math.PI/2:Math.PI/2;else pe=Math.atan(se/Math.abs(ie)),0>ie&&(pe=Math.PI-pe);ne=y.x;var Se=y.y;ie=E.x-ne;var Le=E.y-Se;for(se=Math.sqrt(ie*ie+Le*Le),tn.$(ie,0)?Le=0>Le?-Math.PI/2:Math.PI/2:(Le=Math.atan(Le/Math.abs(ie)),0>ie&&(Le=Math.PI-Le)),de=se/de,pe=Le-pe,this.dd(a,y),a+=1;a<b;a++)y=this.i(a),ie=y.x-x,se=y.y-z,y=Math.sqrt(ie*ie+se*se),tn.$(y,0)||(tn.$(ie,0)?se=0>se?-Math.PI/2:Math.PI/2:(se=Math.atan(se/Math.abs(ie)),0>ie&&(se=Math.PI-se)),ie=se+pe,y*=de,this.L(a,ne+y*Math.cos(ie),Se+y*Math.sin(ie)));this.dd(b,E)}}return!0;case C0:if(z=this.i(a),Se=this.i(b),!z.Xa(y)||!Se.Xa(E)){x=z.x,z=z.y,ne=Se.x,Se=Se.y,de=(ne-x)*(ne-x)+(Se-z)*(Se-z),ie=y.x,pe=y.y,se=E.x,Le=E.y;var Me=1;if(se-ie!==0){var ze=(Le-pe)/(se-ie);Me=Math.sqrt(1+1/(ze*ze))}else ze=9e9;for(this.dd(a,y),a+=1;a<b;a++){y=this.i(a);var qe=y.x,Ct=y.y,vt=.5;de!==0&&(vt=((x-qe)*(x-ne)+(z-Ct)*(z-Se))/de);var Dt=x+vt*(ne-x),Bt=z+vt*(Se-z);y=Math.sqrt((qe-Dt)*(qe-Dt)+(Ct-Bt)*(Ct-Bt)),Ct<ze*(qe-Dt)+Bt&&(y=-y),0<ze&&(y=-y),qe=ie+vt*(se-ie),vt=pe+vt*(Le-pe),ze!==0?(y=qe+y/Me,this.L(a,y,vt-(y-qe)/ze)):this.L(a,qe,vt+y)}this.dd(b,E)}return!0;case nm:e:{if(this.isOrthogonal&&(x=this.i(a),z=this.i(a+1),ne=this.i(a+2),ie=z.x,pe=z.y,Se=ie,de=pe,tn.B(x.y,z.y)?tn.B(z.x,ne.x)?pe=y.y:tn.B(z.y,ne.y)&&(ie=y.x):tn.B(x.x,z.x)&&(tn.B(z.y,ne.y)?ie=y.x:tn.B(z.x,ne.x)&&(pe=y.y)),this.L(a+1,ie,pe),x=this.i(b),z=this.i(b-1),ne=this.i(b-2),ie=z.x,pe=z.y,se=ie,Le=pe,tn.B(x.y,z.y)?tn.B(z.x,ne.x)?pe=E.y:tn.B(z.y,ne.y)&&(ie=E.x):tn.B(x.x,z.x)&&(tn.B(z.y,ne.y)?ie=E.x:tn.B(z.x,ne.x)&&(pe=E.y)),this.L(b-1,ie,pe),ay(this))){this.L(a+1,Se,de),this.L(b-1,se,Le),b=!1;break e}this.dd(a,y),this.dd(b,E),b=!0}return b;default:return!1}},_r.prototype.addOrthoPoints=function(a,y,b,E,x,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ne=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ie=x.actualBounds.copy(),se=z.actualBounds.copy();if(ie.w()&&se.w()){ie.Bc(lm,lm),se.Bc(lm,lm),ie.Ye(a),se.Ye(b);var de=it.alloc(),pe=it.alloc();y===0?b.x>a.x||E===270&&b.y<a.y&&se.right>a.x||E===90&&b.y>a.y&&se.right>a.x?(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),E===180?(de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1),pe.x=de.x,pe.y=b.y):E===270&&b.y<a.y||E===90&&b.y>a.y?(de.x=a.x<se.left?this.computeMidOrthoPosition(a.x,a.y,se.left,b.y,!1):a.x<se.right&&(E===270&&a.y<se.top||E===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):se.right,pe.x=de.x,pe.y=b.y):E===0&&a.x<se.left&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<b.y?Math.min(b.y,se.top):Math.max(b.y,se.bottom),pe.y=de.y)):(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),(E===180||E===90&&b.y<ie.top||E===270&&b.y>ie.bottom)&&(E===180&&(se.ca(a)||ie.ca(b))?de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):b.y<a.y&&(E===180||E===90)?de.y=this.computeMidOrthoPosition(a.x,ie.top,b.x,Math.max(b.y,se.bottom),!0):b.y>a.y&&(E===180||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,ie.bottom,b.x,Math.min(b.y,se.top),!0)),pe.x=b.x,pe.y=de.y),de.y>ie.top&&de.y<ie.bottom&&(b.x>=ie.left&&b.x<=a.x||a.x<=se.right&&a.x>=b.x?(E===90||E===270)&&(de.h(Math.max((a.x+b.x)/2,a.x),a.y),pe.h(de.x,b.y)):(de.y=E===270||(E===0||E===180)&&b.y<a.y?Math.min(b.y,E===0?ie.top:Math.min(ie.top,se.top)):Math.max(b.y,E===0?ie.bottom:Math.max(ie.bottom,se.bottom)),pe.x=b.x,pe.y=de.y))):y===180?b.x<a.x||E===270&&b.y<a.y&&se.left<a.x||E===90&&b.y>a.y&&se.left<a.x?(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),E===0?(de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1),pe.x=de.x,pe.y=b.y):E===270&&b.y<a.y||E===90&&b.y>a.y?(de.x=a.x>se.right?this.computeMidOrthoPosition(a.x,a.y,se.right,b.y,!1):a.x>se.left&&(E===270&&a.y<se.top||E===90&&a.y>se.bottom)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):se.left,pe.x=de.x,pe.y=b.y):E===180&&a.x>se.right&&a.y>se.top&&a.y<se.bottom&&(de.x=a.x,de.y=a.y<b.y?Math.min(b.y,se.top):Math.max(b.y,se.bottom),pe.y=de.y)):(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),(E===0||E===90&&b.y<ie.top||E===270&&b.y>ie.bottom)&&(E===0&&(se.ca(a)||ie.ca(b))?de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):b.y<a.y&&(E===0||E===90)?de.y=this.computeMidOrthoPosition(a.x,ie.top,b.x,Math.max(b.y,se.bottom),!0):b.y>a.y&&(E===0||E===270)&&(de.y=this.computeMidOrthoPosition(a.x,ie.bottom,b.x,Math.min(b.y,se.top),!0)),pe.x=b.x,pe.y=de.y),de.y>ie.top&&de.y<ie.bottom&&(b.x<=ie.right&&b.x>=a.x||a.x>=se.left&&a.x<=b.x?(E===90||E===270)&&(de.h(Math.min((a.x+b.x)/2,a.x),a.y),pe.h(de.x,b.y)):(de.y=E===270||(E===0||E===180)&&b.y<a.y?Math.min(b.y,E===180?ie.top:Math.min(ie.top,se.top)):Math.max(b.y,E===180?ie.bottom:Math.max(ie.bottom,se.bottom)),pe.x=b.x,pe.y=de.y))):y===90?b.y>a.y||E===180&&b.x<a.x&&se.bottom>a.y||E===0&&b.x>a.x&&se.bottom>a.y?(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),E===270?(de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0),pe.x=b.x,pe.y=de.y):E===180&&b.x<a.x||E===0&&b.x>a.x?(de.y=a.y<se.top?this.computeMidOrthoPosition(a.x,a.y,b.x,se.top,!0):a.y<se.bottom&&(E===180&&a.x<se.left||E===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):se.bottom,pe.x=b.x,pe.y=de.y):E===90&&a.y<se.top&&a.x>se.left&&a.x<se.right&&(de.x=a.x<b.x?Math.min(b.x,se.left):Math.max(b.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),(E===270||E===0&&b.x<ie.left||E===180&&b.x>ie.right)&&(E===270&&(se.ca(a)||ie.ca(b))?de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):b.x<a.x&&(E===270||E===0)?de.x=this.computeMidOrthoPosition(ie.left,a.y,Math.max(b.x,se.right),b.y,!1):b.x>a.x&&(E===270||E===180)&&(de.x=this.computeMidOrthoPosition(ie.right,a.y,Math.min(b.x,se.left),b.y,!1)),pe.x=de.x,pe.y=b.y),de.x>ie.left&&de.x<ie.right&&(b.y>=ie.top&&b.y<=a.y||a.y<=se.bottom&&a.y>=b.y?(E===0||E===180)&&(de.h(a.x,Math.max((a.y+b.y)/2,a.y)),pe.h(b.x,de.y)):(de.x=E===180||(E===90||E===270)&&b.x<a.x?Math.min(b.x,E===90?ie.left:Math.min(ie.left,se.left)):Math.max(b.x,E===90?ie.right:Math.max(ie.right,se.right)),pe.x=de.x,pe.y=b.y))):b.y<a.y||E===180&&b.x<a.x&&se.top<a.y||E===0&&b.x>a.x&&se.top<a.y?(de.h(a.x,b.y),pe.h((a.x+b.x)/2,b.y),E===90?(de.y=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0),pe.x=b.x,pe.y=de.y):E===180&&b.x<a.x||E===0&&b.x>=a.x?(de.y=a.y>se.bottom?this.computeMidOrthoPosition(a.x,a.y,b.x,se.bottom,!0):a.y>se.top&&(E===180&&a.x<se.left||E===0&&a.x>se.right)?this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!0):se.top,pe.x=b.x,pe.y=de.y):E===270&&a.y>se.bottom&&a.x>se.left&&a.x<se.right&&(de.x=a.x<b.x?Math.min(b.x,se.left):Math.max(b.x,se.right),de.y=a.y,pe.x=de.x)):(de.h(b.x,a.y),pe.h(b.x,(a.y+b.y)/2),(E===90||E===0&&b.x<ie.left||E===180&&b.x>ie.right)&&(E===90&&(se.ca(a)||ie.ca(b))?de.x=this.computeMidOrthoPosition(a.x,a.y,b.x,b.y,!1):b.x<a.x&&(E===90||E===0)?de.x=this.computeMidOrthoPosition(ie.left,a.y,Math.max(b.x,se.right),b.y,!1):b.x>a.x&&(E===90||E===180)&&(de.x=this.computeMidOrthoPosition(ie.right,a.y,Math.min(b.x,se.left),b.y,!1)),pe.x=de.x,pe.y=b.y),de.x>ie.left&&de.x<ie.right&&(b.y<=ie.bottom&&b.y>=a.y||a.y>=se.top&&a.y<=b.y?(E===0||E===180)&&(de.h(a.x,Math.min((a.y+b.y)/2,a.y)),pe.h(b.x,de.y)):(de.x=E===180||(E===90||E===270)&&b.x<a.x?Math.min(b.x,E===270?ie.left:Math.min(ie.left,se.left)):Math.max(b.x,E===270?ie.right:Math.max(ie.right,se.right)),pe.x=de.x,pe.y=b.y)));var Se=b;if(this.isAvoiding){var Le=this.diagram;if(Le===null||x===z||this.layer.isTemporary||!Qh(Le)||ie.ca(Se)&&!z.Td(x)||se.ca(a)&&!x.Td(z))y=!1;else{var Me=Rf(Le,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Me.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))&&Me.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))&&Me.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 ze=b=null;if(Le.isVirtualized){Le=Me.bounds.copy(),Le.Bc(-Me.Ho,-Me.Go);var qe=it.alloc();bg(Me,a.x,a.y)||(tn.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,a.x,a.y,de.x,de.y,qe)?(b=a=qe.copy(),y=qe.ab(de)):tn.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,de.x,de.y,pe.x,pe.y,qe)?(b=a=qe.copy(),y=qe.ab(pe)):tn.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,pe.x,pe.y,Se.x,Se.y,qe)&&(b=a=qe.copy(),y=qe.ab(Se))),bg(Me,Se.x,Se.y)||(tn.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,Se.x,Se.y,pe.x,pe.y,qe)?(ze=Se=qe.copy(),E=pe.ab(qe)):tn.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,pe.x,pe.y,de.x,de.y,qe)?(ze=Se=qe.copy(),E=de.ab(qe)):tn.Ff(Le.x,Le.y,Le.x+Le.width,Le.y+Le.height,de.x,de.y,a.x,a.y,qe)&&(ze=Se=qe.copy(),E=a.ab(qe))),it.free(qe)}ie=ie.copy().ed(se),ie.Bc(Me.Ho*Me.Os,Me.Go*Me.Os),h1(Me,a,y,Se,E,ie,!0),se=Id(Me,Se.x,Se.y),!Me.abort&&se>=Eg&&(d1(Me),ie.Bc(Me.Ho*Me.Hx,Me.Go*Me.Ix),h1(Me,a,y,Se,E,ie,!1),se=Id(Me,Se.x,Se.y)),!Me.abort&&se<Eg&&Id(Me,Se.x,Se.y)!==Ih?(sy(this,Me,Se.x,Se.y,E,!0,ne),ie=this.i(2),4>this.pointsCount?(y===0||y===180?(ie.x=a.x,ie.y=Se.y):(ie.x=Se.x,ie.y=a.y),this.L(2,ie.x,ie.y),this.m(3,ie.x,ie.y)):(ne=this.i(3),y===0||y===180?tn.B(ie.x,ne.x)?(ie=y===0?Math.max(ie.x,a.x):Math.min(ie.x,a.x),this.L(2,ie,a.y),this.L(3,ie,ne.y)):tn.B(ie.y,ne.y)?(Math.abs(a.y-ie.y)<=Me.Go/2&&(this.L(2,ie.x,a.y),this.L(3,ne.x,a.y)),this.m(2,ie.x,a.y)):this.L(2,a.x,ie.y):(y===90||y===270)&&(tn.B(ie.y,ne.y)?(ie=y===90?Math.max(ie.y,a.y):Math.min(ie.y,a.y),this.L(2,a.x,ie),this.L(3,ne.x,ie)):tn.B(ie.x,ne.x)?(Math.abs(a.x-ie.x)<=Me.Ho/2&&(this.L(2,a.x,ie.y),this.L(3,a.x,ne.y)),this.m(2,a.x,ie.y)):this.L(2,ie.x,a.y))),b!==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,b.y):this.m(2,b.x,x.y)),ze!==null&&(E===0||E===180?this.yf(z.x,ze.y):this.yf(ze.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(de.copy()),this.ne(pe.copy())),it.free(de),it.free(pe)}},_r.prototype.computeMidOrthoPosition=function(a,y,b,E,x){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),x?(y+E)/2+z:(a+b)/2+z};function ay(a){if(a.diagram===null||!a.isAvoiding||!Qh(a.diagram))return!1;var y=a.points.s,b=y.length;if(4>b)return!1;a=Rf(a.diagram,!0,a.containingGroup,null);for(var E=1;E<b-2;E++){var x=y[E],z=y[E+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 sy(a,y,b,E,x,z,ne){var ie=y.Ho,se=y.Go,de=Id(y,b,E),pe=b,Se=E;for(x===0?pe+=ie:x===90?Se+=se:x===180?pe-=ie:Se-=se,x!==ne&&de>Wf&&Id(y,pe,Se)!==de-1&&(Id(y,b-ie,E)===de-1?(x=180,pe=b-ie,Se=E):Id(y,b+ie,E)===de-1?(x=0,pe=b+ie,Se=E):Id(y,b,E-se)===de-1?(x=270,pe=b,Se=E-se):Id(y,b,E+se)===de-1&&(x=90,pe=b,Se=E+se));de>Wf&&Id(y,pe,Se)===de-1;)b=pe,E=Se,x===0?pe+=ie:x===90?Se+=se:x===180?pe-=ie:Se-=se,--de;z?de>Wf&&(x===180||x===0?b=Math.floor(b/ie)*ie+ie/2:(x===90||x===270)&&(E=Math.floor(E/se)*se+se/2)):(b=Math.floor(b/ie)*ie+ie/2,E=Math.floor(E/se)*se+se/2),de>Wf&&(z=x,ne=b,pe=E,x===0?(z=90,pe+=se):x===90?(z=180,ne-=ie):x===180?(z=270,pe-=se):x===270&&(z=0,ne+=ie),Id(y,ne,pe)===de-1?sy(a,y,ne,pe,z,!1,z):(ne=b,pe=E,x===0?(z=270,pe-=se):x===90?(z=0,ne+=ie):x===180?(z=90,pe+=se):x===270&&(z=180,ne-=ie),Id(y,ne,pe)===de-1&&sy(a,y,ne,pe,z,!1,z))),a.yf(b,E)}_r.prototype.ez=function(a){var y=a.x;a=a.y;for(var b=this.i(0),E=this.i(1),x=Gn(y,a,b.x,b.y,E.x,E.y),z=0,ne=1;ne<this.pointsCount-1;ne++){b=this.i(ne+1);var ie=Gn(y,a,E.x,E.y,b.x,b.y);E=b,ie<x&&(z=ne,x=ie)}return z},_r.prototype.qc=function(){this.lk=!1,this.v()},_r.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,b=y.length,E=0;E<b;E++){var x=y[E];x!==a&&x.isPanelMain&&x instanceof oo&&(x.ua=this.ua)}}},_r.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,b=!1,E=this.diagram;E!==null&&Vf(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(b=!0);var x=this.i(0).copy(),z=x.copy();E=this.Nb.s;var ne=this.computeCurve();if(ne===$u&&3<=y&&!tn.$(this.smoothness,0))if(y===3){var ie=this.i(1);E=Math.min(x.x,ie.x);var se=Math.min(x.y,ie.y);ie=this.i(2),E=Math.min(E,ie.x),se=Math.min(se,ie.y)}else{if(this.isOrthogonal)for(se=0;se<y;se++)ie=E[se],z.x=Math.min(ie.x,z.x),z.y=Math.min(ie.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),se=this.i(E),z.x=Math.min(se.x,z.x),z.y=Math.min(se.y,z.y);E=z.x,se=z.y}else{for(se=0;se<y;se++)ie=E[se],z.x=Math.min(ie.x,z.x),z.y=Math.min(ie.y,z.y);E=z.x,se=z.y}if(E-=this.su.x,se-=this.su.y,x.x-=E,x.y-=se,y!==2||Vf(this)){if(a.type=Nr.o,ie=BS(a),this.computeShortLength(!0)!==0&&(x=Ap(this,x,!0,z)),mg(ie,x.x,x.y,!1),ne===$u&&3<=y&&!tn.$(this.smoothness,0))if(y===3)b=this.i(1),y=b.x-E,b=b.y-se,x=this.i(2).copy(),x.x-=E,x.y-=se,this.computeShortLength(!1)!==0&&(x=Ap(this,x,!1,z)),Th(ie,y,b,y,b,x.x,x.y);else if(this.isOrthogonal){y=it.allocAt(E,se),b=it.alloc(),b.assign(this.i(1)),z=it.allocAt(E,se),x=it.allocAt(E,se),ne=this.i(0);for(var de,pe=this.smoothness/3,Se=1;Se<this.pointsCount-1;Se++){de=this.i(Se);var Le=ne,Me=de,ze=this.i(ly(this,de,Se,!1));if((!tn.$(Le.x,Me.x)||!tn.$(Me.x,ze.x))&&(!tn.$(Le.y,Me.y)||!tn.$(Me.y,ze.y))){var qe=pe;isNaN(qe)&&(qe=this.smoothness/3);var Ct=Le.x;Le=Le.y;var vt=Me.x;Me=Me.y;var Dt=ze.x;ze=ze.y;var Bt=qe*E0(Ct,Le,vt,Me);qe*=E0(vt,Me,Dt,ze),tn.$(Le,Me)&&tn.$(vt,Dt)&&(vt>Ct?ze>Me?(z.x=vt-Bt,z.y=Me-Bt,x.x=vt+qe,x.y=Me+qe):(z.x=vt-Bt,z.y=Me+Bt,x.x=vt+qe,x.y=Me-qe):ze>Me?(z.x=vt+Bt,z.y=Me-Bt,x.x=vt-qe,x.y=Me+qe):(z.x=vt+Bt,z.y=Me+Bt,x.x=vt-qe,x.y=Me-qe)),tn.$(Ct,vt)&&tn.$(Me,ze)&&(Me>Le?(Dt>vt?(z.x=vt-Bt,z.y=Me-Bt,x.x=vt+qe):(z.x=vt+Bt,z.y=Me-Bt,x.x=vt-qe),x.y=Me+qe):(Dt>vt?(z.x=vt-Bt,z.y=Me+Bt,x.x=vt+qe):(z.x=vt+Bt,z.y=Me+Bt,x.x=vt-qe),x.y=Me-qe)),(tn.$(Ct,vt)&&tn.$(vt,Dt)||tn.$(Le,Me)&&tn.$(Me,ze))&&(Ct=.5*(Ct+Dt),Le=.5*(Le+ze),z.x=Ct,z.y=Le,x.x=Ct,x.y=Le),(Se===1||Se===2&&tn.$(ne.x,this.i(0).x)&&tn.$(ne.y,this.i(0).y))&&(b.x=.5*(ne.x+de.x),b.y=.5*(ne.y+de.y)),Th(ie,b.x-E,b.y-se,z.x-E,z.y-se,de.x-E,de.y-se),y.set(z),b.set(x),ne=de}}de=ne.x,ne=ne.y,pe=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(pe=Ap(this,pe.copy(),!1,Dr)),de=.5*(de+pe.x),ne=.5*(ne+pe.y),Th(ie,x.x-E,x.y-se,de-E,ne-se,pe.x-E,pe.y-se),it.free(y),it.free(b),it.free(z),it.free(x)}else for(b=3;b<y;b+=3)z=this.i(b-2),b+3>=y&&(b=y-1),x=this.i(b-1),ne=this.i(b),b===y-1&&this.computeShortLength(!1)!==0&&(ne=Ap(this,ne.copy(),!1,Dr)),Th(ie,z.x-E,z.y-se,x.x-E,x.y-se,ne.x-E,ne.y-se);else{for(z=it.alloc(),z.assign(this.i(0)),x=it.alloc(),x.assign(z),ne=this.computeCorner(),Se=1,de=0;Se<y;){if(Se=ly(this,z,Se,1<Se),pe=this.i(Se),Se>=y-1){if(!z.D(pe))this.computeShortLength(!1)!==0&&(pe=Ap(this,pe.copy(),!1,Dr)),Np(this,ie,-E,-se,z,pe,b);else if(de===0)for(Se=1;Se<y;)x.assign(z),pe=this.i(Se++),Np(this,ie,-E,-se,z,pe,b),z.assign(pe);break}if(de=ly(this,pe,Se+1,Se<y-3),Se=-E,Ct=-se,Le=pe,vt=this.i(de),qe=b,tn.B(z.y,Le.y)&&tn.B(Le.x,vt.x))if(ze=Math.min(ne,Math.abs(Le.x-x.x)/2),ze=Bt=Math.min(ze,Math.abs(vt.y-Le.y)/2),tn.B(ze,0))Np(this,ie,Se,Ct,z,Le,qe),z.assign(Le);else{var Gt=Le.x,$t=Le.y;Me=Gt,Dt=$t,Le.x>z.x?Gt=Le.x-ze:Gt=Le.x+ze,vt.y>Le.y?Dt=Le.y+Bt:Dt=Le.y-Bt,vt=it.allocAt(Gt,$t),Np(this,ie,Se,Ct,z,vt,qe),it.free(vt),d0(ie,Le.x+Se,Le.y+Ct,Me+Se,Dt+Ct),z.h(Me,Dt)}else tn.B(z.x,Le.x)&&tn.B(Le.y,vt.y)?(ze=Math.min(ne,Math.abs(Le.y-x.y)/2),ze=Bt=Math.min(ze,Math.abs(vt.x-Le.x)/2),tn.B(Bt,0)?(Np(this,ie,Se,Ct,z,Le,qe),z.assign(Le)):(Gt=Le.x,$t=Le.y,Me=Gt,Dt=$t,Le.y>z.y?$t=Le.y-ze:$t=Le.y+ze,vt.x>Le.x?Me=Le.x+Bt:Me=Le.x-Bt,vt=it.allocAt(Gt,$t),Np(this,ie,Se,Ct,z,vt,qe),it.free(vt),d0(ie,Le.x+Se,Le.y+Ct,Me+Se,Dt+Ct),z.h(Me,Dt))):(Np(this,ie,Se,Ct,z,Le,qe),z.assign(Le));x.assign(pe),Se=de}it.free(z)}h0=ie}else ie=this.i(1).copy(),ie.x-=E,ie.y-=se,this.computeShortLength(!0)!==0&&(x=Ap(this,x,!0,z)),this.computeShortLength(!1)!==0&&(ie=Ap(this,ie,!1,z)),a.type=Nr.j,a.startX=x.x,a.startY=x.y,a.endX=ie.x,a.endY=ie.y;return this.lk=!0,a};function E0(a,y,b,E){return a=b-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),tn.$(a,0)?y:tn.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ap(a,y,b,E){var x=a.pointsCount;if(2>x)return y;if(b){var z=a.i(1);if(b=z.x-E.x,z=z.y-E.y,E=E0(y.x,y.y,b,z),E===0)return y;x=x===2?.5*E:E,a=a.computeShortLength(!0),a>x&&(a=x),x=a*(z-y.y)/E,y.x+=a*(b-y.x)/E,y.y+=x}else{if(z=a.i(x-2),b=z.x-E.x,z=z.y-E.y,E=E0(y.x,y.y,b,z),E===0)return y;x=x===2?.5*E:E,a=a.computeShortLength(!1),a>x&&(a=x),x=a*(y.y-z)/E,y.x-=a*(y.x-b)/E,y.y-=x}return y}function ly(a,y,b,E){for(var x=a.pointsCount,z=y;tn.$(y.x,z.x)&&tn.$(y.y,z.y);){if(b>=x)return x-1;z=a.i(b++)}if(!tn.$(y.x,z.x)&&!tn.$(y.y,z.y))return b-1;for(var ne=z;tn.$(y.x,z.x)&&tn.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||tn.$(y.y,z.y)&&tn.$(z.y,ne.y)&&(!E||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(b>=x)return x-1;ne=a.i(b++)}return b-2}_r.prototype.computeJumpLength=function(){return 10};function Np(a,y,b,E,x,z,ne){if(!ne&&Vf(a)){ne=a.computeJumpLength();var ie=ne/2,se=[],de=0;if(a.isVisible()&&(de=pE(a,x,z,se)),0<de){if(tn.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++]-ie,z.x-ne));y.lineTo(Se+b,z.y+E);for(var Le=Se+b,Me=Math.min(Se+ne,z.x);pe<de&&(Se=se[pe],Se<Me+ne);)pe++,Me=Math.min(Se+ie,z.x);Se=z.y-ne+E,Me+=b;var ze=z.y+E;a.curve===kh?mg(y,Me,ze,!1):Th(y,Le,Se,Me,Se,Me,ze)}else for(--de;0<=de;){for(pe=Math.min(x.x,Math.max(se[de--]+ie,z.x+ne)),y.lineTo(pe+b,z.y+E),Le=pe+b,Se=Math.max(pe-ne,z.x);0<=de&&(pe=se[de],pe>Se-ne);)de--,Se=Math.max(pe-ie,z.x);pe=z.y-ne+E,Se+=b,Me=z.y+E,a.curve===kh?mg(y,Se,Me,!1):Th(y,Le,pe,Se,pe,Se,Me)}else if(tn.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++]-ie,z.y-ne)),y.lineTo(z.x+b,Se+E),Le=Se+E,Se=Math.min(Se+ne,z.y);pe<de&&(Me=se[pe],Me<Se+ne);)pe++,Se=Math.min(Me+ie,z.y);Me=z.x-ne+b,ze=z.x+b,Se+=E,a.curve===kh?mg(y,ze,Se,!1):Th(y,Me,Le,Me,Se,ze,Se)}else for(--de;0<=de;){for(pe=Math.min(x.y,Math.max(se[de--]+ie,z.y+ne)),y.lineTo(z.x+b,pe+E),Le=pe+E,pe=Math.max(pe-ne,z.y);0<=de&&(Se=se[de],Se>pe-ne);)de--,pe=Math.max(Se-ie,z.y);Se=z.x-ne+b,Me=z.x+b,pe+=E,a.curve===kh?mg(y,Me,pe,!1):Th(y,Se,Le,Se,pe,Me,pe)}}}y.lineTo(z.x+b,z.y+E)}function pE(a,y,b,E){var x=a.diagram;if(x===null||y.D(b))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,ie=0;ie<ne;ie++){var se=z[ie];if(se instanceof _r){if(se===a)return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length;if(se.isVisible()&&Vf(se)){var de=se.routeBounds;de.w()&&a.routeBounds.Yc(de)&&!a.usesSamePort(se)&&(de=se.path,de!==null&&de.Ed()&&gE(y,b,E,se))}}}}}return 0<E.length&&E.sort(function(pe,Se){return pe-Se}),E.length}function gE(a,y,b,E){for(var x=tn.B(a.y,y.y),z=E.pointsCount,ne=E.i(0),ie=it.alloc(),se=1;se<z;se++){var de=E.i(se);if(se<z-1){var pe=E.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,Le=y.x,Me=y.y,ze=ne.x;ne=ne.y;var qe=de.x,Ct=de.y;if(tn.B(pe,Le)){if(!tn.B(Se,Me)&&tn.B(ne,Ct)&&Math.min(Se,Me)<ne&&Math.max(Se,Me)>ne&&Math.min(ze,qe)<pe&&Math.max(ze,qe)>pe&&!tn.B(ze,qe)){ie.x=pe,ie.y=ne,pe=!0;break e}}else if(tn.B(Se,Me)&&tn.B(ze,qe)&&Math.min(pe,Le)<ze&&Math.max(pe,Le)>ze&&Math.min(ne,Ct)<Se&&Math.max(ne,Ct)>Se&&!tn.B(ne,Ct)){ie.x=ze,ie.y=Se,pe=!0;break e}ie.x=0,ie.y=0,pe=!1}pe&&(x?b.push(ie.x):b.push(ie.y)),ne=de}it.free(ie)}function Vf(a){return a=a.curve,a===Sg||a===kh}function x0(a,y){(y||Vf(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()))}_r.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var b=y.diagram;if(b!==null&&!b.animationManager.isTicking){var E=!1;for(b=b.layers;b.next();){var x=b.value;if(x.visible){if(x===y){E=!0;var z=!1;x=x.Pa.s;for(var ne=x.length,ie=0;ie<ne;ie++){var se=x[ie];se instanceof _r&&(se===this?z=!0:z&&s1(this,se,a))}}else if(E)for(z=x.Pa.s,x=z.length,ne=0;ne<x;ne++)ie=z[ne],ie instanceof _r&&s1(this,ie,a)}}}}};function s1(a,y,b){if(y!==null&&y.lk&&y.fd&&Vf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||b.Yc(E))&&(a.usesSamePort(y)||y.qc())}}_r.prototype.usesSamePort=function(a){var y=this.pointsCount,b=a.pointsCount;if(0<y&&0<b){var E=this.i(0),x=a.i(0);if(E.Xa(x)||(y=this.i(y-1),a=a.i(b-1),y.Xa(a)||E.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},_r.prototype.isVisible=function(){if(!Ai.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,b=this.diagram;if(b!==null&&(y=b.isTreePathToChildren),b=this.fromNode,b!==null){if(this.isTreeLink&&y&&!b.isTreeExpanded)return!1;if(b===a)return!0;for(var E=b;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(b=b.findVisibleNode(),b===null||b===a)return!1}if(b=this.toNode,b!==null){if(this.isTreeLink&&!y&&!b.isTreeExpanded)return!1;if(b===a)return!0;for(y=b;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=b.findVisibleNode(),y===null||y===a)return!1}return!0},_r.prototype.Zb=function(a){if(Ai.prototype.Zb.call(this,a),a&&x0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},_r.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?nm:this.qk};function em(a){var y=a.ef;if(y!==null){var b=a.uf;if(b!==null&&isNaN(a.curviness)){for(var E=a.ff,x=a.vf,z=a=null,ne=y.jb.s,ie=ne.length,se=0;se<ie;se++){var de=ne[se];(de.ef===y&&de.ff===E&&de.uf===b&&de.vf===x||de.ef===b&&de.ff===x&&de.uf===y&&de.vf===E)&&(z===null?z=de:(a===null&&(a=[],a.push(z)),a.push(de)))}if(a!==null){for(z=XS(y,b,E,x),z===null&&(z=new A0(y,E,b,x),YS(y,z),YS(b,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function tm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Ue(y.links,a),y.Sl()))}_r.prototype.ph=function(){return!0},Jn.Object.defineProperties(_r.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var b=this.fromPort;y!==null&&(this.uf!==y&&m0(y,this,b),tm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var x=this.fromPort,z=this.fromPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,b,x),E!==null&&(E.aa=ne)}a!==null&&(this.uf!==a&&g0(a,this,x),em(this),this.C(1)),this.g("fromNode",y,a),vg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var b=this.fromPort;b!==null&&Vu(b),tm(this),this.ff=a;var E=this.fromPort;E!==null&&Vu(E);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.xv(z,a)}b!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,b,E),x!==null&&(x.aa=ne))),em(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 b=this.toPort;y!==null&&(this.ef!==y&&m0(y,this,b),tm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var x=this.toPort,z=this.toPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,b,x),E!==null&&(E.aa=ne)}a!==null&&(this.ef!==a&&g0(a,this,x),em(this),this.C(1)),this.g("toNode",y,a),vg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var b=this.toPort;b!==null&&Vu(b),tm(this),this.vf=a;var E=this.toPort;E!==null&&Vu(E);var x=this.diagram;if(x!==null){var z=this.data,ne=x.model;z!==null&&ne.ri()&&ne.Cv(z,a)}b!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ne=!0,x!==null&&(ne=x.aa,x.aa=!0),z(this,b,E),x!==null&&(x.aa=ne))),em(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:ns},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&&Vu(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&&kr(a,">= 0",_r,"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:ns},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&&Vu(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&&kr(a,">= 0",_r,"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?Hi: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&&$g(this.fromNode),this.toNode!==null&&$g(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof oo?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,b=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),b=Math.min(E.y,b),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var x=this.i(1);y=Math.min(E.x,x.x),b=Math.min(E.y,x.y),a.h(E.x,E.y,0,0),a.Ye(x)}else if(this.computeCurve()===$u&&3<=E&&!this.isOrthogonal)if(x=this.i(0),y=x.x,b=x.y,a.h(y,b,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),b=Math.min(E.y,b);var z=this.i(2);y=Math.min(z.x,y),b=Math.min(z.y,b),tn.Dl(x.x,x.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ne=this.i(z-2);z+3>=E&&(z=E-1);var ie=this.i(z-1),se=this.i(z);tn.Dl(x.x,x.y,ne.x,ne.y,ie.x,ie.y,se.x,se.y,.5,a),y=Math.min(se.x,y),b=Math.min(se.y,b),x=se}else for(x=this.i(0),z=this.i(1),y=Math.min(x.x,z.x),b=Math.min(x.y,z.y),a.h(x.x,x.y,0,0),a.Ye(z),x=2;x<E;x++)z=this.i(x),y=Math.min(z.x,y),b=Math.min(z.y,b),a.Ye(z);this.su.h(y-a.x,b-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new it)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||y0(this);for(var a=this.cq=[],y=this.pointsCount,b=0;b<y-1;b++){var E=this.i(b),x=this.i(b+1);tn.$(E.x,x.x)?(E=x.y-E.y,0>E&&(E=-E)):tn.$(E.y,x.y)?(E=x.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(x)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,b=y.length,E=a=0;E<b;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var b=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var x=0;x<a.length;x++)if(typeof a[x]!="number"||isNaN(a[x])){E=!1;break}}if(E)for(b=new Qn,E=0;E<a.length/2;E++)x=new it(a[2*E],a[2*E+1]).freeze(),b.add(x);else{for(E=!0,x=0;x<a.length;x++){var z=a[x];if(!Xt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(b=new Qn,E=0;E<a.length;E++)x=a[E],b.add(new it(x.x,x.y).freeze())}}else if(a instanceof Qn)for(b=a.copy(),a=b.iterator;a.next();)a.value.freeze();else Lt("Link.points value is not an instance of List or Array: "+a);b.freeze(),this.Nb=b,this.qc(),y0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ce(a.animationManager,this,b)),this.g("points",y,b)}}},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||!yg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!yg(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(),x0(this,y===kh||y===Sg||a===kh||a===Sg),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(),x0(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)}}}),_r.prototype.invalidateOtherJumpOvers=_r.prototype.Xo,_r.prototype.findClosestSegment=_r.prototype.ez,_r.prototype.updateRoute=_r.prototype.vg,_r.prototype.invalidateRoute=_r.prototype.bb,_r.prototype.rollbackRoute=_r.prototype.rv,_r.prototype.commitRoute=_r.prototype.zf,_r.prototype.startRoute=_r.prototype.uh,_r.prototype.clearPoints=_r.prototype.Fj,_r.prototype.removePoint=_r.prototype.pv,_r.prototype.addPointAt=_r.prototype.yf,_r.prototype.addPoint=_r.prototype.ne,_r.prototype.insertPointAt=_r.prototype.m,_r.prototype.insertPoint=_r.prototype.Kz,_r.prototype.setPointAt=_r.prototype.L,_r.prototype.setPoint=_r.prototype.dd,_r.prototype.getPoint=_r.prototype.i,_r.prototype.getOtherPort=_r.prototype.Cz,_r.prototype.getOtherNode=_r.prototype.To;var Lp=null,kp=null,uy=new mn(_r,"Normal",1),mE=new mn(_r,"Orthogonal",2),vE=new mn(_r,"AvoidsNodes",6),l1=new mn(_r,"AvoidsNodesStraight",7),iu=new mn(_r,"None",0),$u=new mn(_r,"Bezier",9),kh=new mn(_r,"JumpGap",10),Sg=new mn(_r,"JumpOver",11),nm=new mn(_r,"End",17),w0=new mn(_r,"Scale",18),C0=new mn(_r,"Stretch",19),rm=new mn(_r,"OrientAlong",21),im=new mn(_r,"OrientPlus90",22),om=new mn(_r,"OrientMinus90",23),cy=new mn(_r,"OrientOpposite",24),P0=new mn(_r,"OrientUpright",25),am=new mn(_r,"OrientPlus90Upright",26),sm=new mn(_r,"OrientMinus90Upright",27),T0=new mn(_r,"OrientUpright45",28),u1=16,c1=14,lm=8;_r.className="Link",_r.Normal=uy,_r.Orthogonal=mE,_r.AvoidsNodes=vE,_r.AvoidsNodesStraight=l1,_r.None=iu,_r.Bezier=$u,_r.JumpGap=kh,_r.JumpOver=Sg,_r.End=nm,_r.Scale=w0,_r.Stretch=C0,_r.OrientAlong=rm,_r.OrientPlus90=im,_r.OrientMinus90=om,_r.OrientOpposite=cy,_r.OrientUpright=P0,_r.OrientPlus90Upright=am,_r.OrientMinus90Upright=sm,_r.OrientUpright45=T0,_r.EndSegmentStep=8,_r.CurvinessStart=u1,_r.SpacingMin=c1,_r.OrthoShortCut=lm;function A0(a,y,b,E){vi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=b,this.Px=E,this.links=[]}A0.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},A0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],b=y.diagram;b=b===null||b.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,b),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))}},A0.className="LinkBundle";function um(a){vi(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}um.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,b=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((b+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(b=[],E=0;E<=a;E++)b[E]=new Uint32Array(y);this.ac=b,this.di=a-1,this.ei=y-1}if(a=dy,this.ac!==null)for(y=0;y<=this.di;y++)if(b=this.ac[y],b.fill)b.fill(a);else for(E=0;E<=this.ei;E++)b[E]=a}};function bg(a,y,b){return a.Nd<=y&&y<=a.En&&a.Od<=b&&b<=a.Fn}function Id(a,y,b){return bg(a,y,b)?(y-=a.Nd,y/=a.rc,b-=a.Od,b/=a.sc,a.ac[y|0][b|0]):dy}function d1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var b=a.ac[y],E=0;E<=a.ei;E++)b[E]>=Wf&&(b[E]=dy)}um.prototype.Yj=function(a,y,b,E){if(a>this.En||a+b<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,b=Math.max(0,b)/this.rc+1|0;var x=Math.max(0,E)/this.sc+1|0;if(0>a&&(b+=a,a=0),0>y&&(x+=y,y=0),0>b||0>x)return!0;for(E=Math.min(a+b-1,this.di)|0,b=Math.min(y+x-1,this.ei)|0;a<=E;a++){x=this.ac[a];for(var z=y;z<=b;z++)if(x[z]===Ih)return!1}return!0};function Dd(a,y,b,E,x,z,ne,ie,se){if(!(y<z||y>ne||b<ie||b>se)){var de=y|0,pe=b|0,Se=a.ac[de][pe];if(Se>=Wf&&Se<Eg)for(x?pe+=E:de+=E,Se+=1;z<=de&&de<=ne&&ie<=pe&&pe<=se&&!(Se>=a.ac[de][pe]);)a.ac[de][pe]=Se,Se+=1,x?pe+=E:de+=E;if(de=x?pe:de,x)if(0<E)for(b+=E;b<de;b+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se);else for(b+=E;b>de;b+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se);else if(0<E)for(y+=E;y<de;y+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se);else for(y+=E;y>de;y+=E)Dd(a,y,b,1,!x,z,ne,ie,se),Dd(a,y,b,-1,!x,z,ne,ie,se)}}function N0(a,y,b,E,x,z,ne,ie,se){y|=0,b|=0;var de=Ih,pe=Wf;for(a.ac[y][b]=pe;de===Ih&&y>z&&y<ne&&b>ie&&b<se;)pe+=1,a.ac[y][b]=pe,x?b+=E:y+=E,de=a.ac[y][b]}function L0(a,y,b,E,x,z,ne,ie,se){y|=0,b|=0;var de=Ih,pe=Eg;for(a.ac[y][b]=pe;de===Ih&&y>z&&y<ne&&b>ie&&b<se;)a.ac[y][b]=pe,x?b+=E:y+=E,de=a.ac[y][b]}function h1(a,y,b,E,x,z,ne){if(a.ac!==null){a.abort=!1;var ie=y.x,se=y.y;if(bg(a,ie,se)){ie-=a.Nd,ie/=a.rc,se-=a.Od,se/=a.sc;var de=E.x,pe=E.y;if(bg(a,de,pe))if(de-=a.Nd,de/=a.rc,pe-=a.Od,pe/=a.sc,1>=Math.abs(ie-de)&&1>=Math.abs(se-pe))a.abort=!0;else{var Se=z.x;E=z.y,y=z.x+z.width;var Le=z.y+z.height;Se-=a.Nd,Se/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Le-=a.Od,Le/=a.sc,z=Math.max(0,Math.min(a.di,Se|0)),y=Math.min(a.di,Math.max(0,y|0)),Se=Math.max(0,Math.min(a.ei,E|0)),Le=Math.min(a.ei,Math.max(0,Le|0)),E=a.ac,ie|=0,se|=0,de|=0,pe|=0;var Me=b===0||b===90?1:-1;if(b=b===90||b===270,E[ie][se]===Ih?(N0(a,ie,se,Me,b,z,y,Se,Le),N0(a,ie,se,1,!b,z,y,Se,Le),N0(a,ie,se,-1,!b,z,y,Se,Le)):N0(a,ie,se,Me,b,ie,se,ie,se),E[de][pe]===Ih?(L0(a,de,pe,x===0||x===90?1:-1,x===90||x===270,z,y,Se,Le),L0(a,de,pe,1,!(x===90||x===270),z,y,Se,Le),L0(a,de,pe,-1,!(x===90||x===270),z,y,Se,Le)):L0(a,de,pe,Me,b,de,pe,de,pe),b=Mr(),ne&&f1(a,de,pe,x,ie,se,b))for((b[0]!==de||b[1]!==pe)&&(b.unshift(pe),b.unshift(de)),(b[b.length-2]!==ie||b[b.length-1]!==se)&&(b.push(ie),b.push(se)),a=Wf,x=b[b.length-2],ne=b[b.length-1],E[x][ne]=a++,z=b.length-4;0<=z;z-=2)for(x=b[z+2],ne=b[z+3],y=b[z],de=b[z+1];y>x?x++:y<x?x--:de>ne?ne++:de<ne&&ne--,E[x][ne]=a++,x!==y||ne!==de;);else Dd(a,ie,se,1,!1,z,y,Se,Le),Dd(a,ie,se,-1,!1,z,y,Se,Le),Dd(a,ie,se,1,!0,z,y,Se,Le),Dd(a,ie,se,-1,!0,z,y,Se,Le);Ur(b)}}}}function f1(a,y,b,E,x,z,ne){for(var ie=a.ac,se=y,de=b;;){if(se===x&&de===z)return!0;var pe=se,Se=de;if(E===0)if(pe<x)pe++;else break;else if(E===90)if(Se<z)Se++;else break;else if(E===180)if(pe>x)pe--;else break;else if(Se>z)Se--;else break;var Le=ie[pe][Se];if(Le===0||Le===hy)break;se=pe,de=Se}for(;;){if(pe=E,Se=se,Le=de,E===0?Le<z?(pe=90,Le++):Le>z&&(pe=270,Le--):E===90?Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--):E===180?Le<z?(pe=90,Le++):Le>z&&(pe=270,Le--):Se<x?(pe=0,Se++):Se>x&&(pe=180,Se--),Se=ie[Se][Le],pe!==E&&Se!==0&&Se!==hy){if(ne.push(se),ne.push(de),f1(a,se,de,pe,x,z,ne))return!0;ne.pop(),ne.pop()}if(ie[se][de]=hy,E===0){if(se===y)return!1;se--}else if(E===90){if(de===b)return!1;de--}else if(E===180){if(se===y)return!1;se++}else{if(de===b)return!1;de++}}}Jn.Object.defineProperties(um.prototype,{bounds:{get:function(){return new In(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 Ih=0,Wf=1,Eg=999999,dy=Eg+1,hy=Eg+2;um.className="PositionArray";function Ip(){vi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Ip.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",b=0;b<a.length;b++){var E=a[b];E!==null&&(y+=`
|
|
|
`+E.toString())}return y};function yE(a,y,b,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<b?270:90;case 6:return 90<b&&270>=b?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return b>a&&b<=180+a?180:270;case 5:return b>180-a&&b<=360-a?270:0;case 12:return b>a&&b<=180+a?90:0;case 10:return b>180-a&&b<=360-a?180:90;case 7:return 90<b&&b<=180+a?180:b>180+a&&b<=360-a?270:0;case 13:return 180<b&&b<=360-a?270:b>a&&180>=b?90:0;case 14:return b>a&&b<=180-a?90:b>180-a&&270>=b?180:0;case 11:return b>180-a&&b<=180+a?180:b>180+a?270:90}return E&&y!==15&&(b-=15,0>b&&(b+=360)),b>a&&b<180-a?90:b>=180-a&&b<=180+a?180:b>180+a&&b<360-a?270:0}Ip.prototype.Sl=function(){this.pe.length=0};function p1(a,y){var b=a.pe;if(b.length===0){e:if(!a.ap){b=a.ap,a.ap=!0;var E=null,x=a.node,z=x instanceof ro?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=b;break e}E=z,ne=E.Lu()}z=a.pe.length=0;var ie=a.port.ga(ho,it.alloc()),se=a.port.ga(Fo,it.alloc());for(x=In.allocAt(ie.x,ie.y,0,0),x.Ye(se),it.free(ie),it.free(se),ie=it.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(E),Se=de.computeSpot(pe,a.port);if(Se.$c()&&(pe=pe?de.toPort:de.fromPort,pe!==null)){var Le=pe.part;if(Le!==null){var Me=Le.findVisibleNode();Me!==null&&Me!==Le&&(Le=Me,pe=Le.port),pe=de.computeOtherPoint(Le,pe),Le=ie.ab(pe),Le-=se,0>Le?Le+=360:360<=Le&&(Le-=360),Se=yE(x,Se,Le,de.isOrthogonal),Se===0?(Se=4,180<Le&&(Le-=360)):Se===90?(Se=8,270<Le&&(Le-=360)):Se===180?Se=2:(Se=1,90>Le&&(Le+=360)),Me=a.pe[z],Me===void 0?(Me=new fy(de,Le,Se),a.pe[z]=Me):(Me.link=de,Me.angle=Le,Me.Nc=Se),Me.hv.set(pe),z++}}}}for(it.free(ie),a.pe.sort(Ip.prototype.j),se=a.pe.length,E=-1,z=ie=0;z<se;z++)ne=a.pe[z],ne!==void 0&&(ne.Nc!==E&&(E=ne.Nc,ie=0),ne.Uo=ie,ie++);for(E=-1,ie=0,z=se-1;0<=z;z--)se=a.pe[z],se!==void 0&&(se.Nc!==E&&(E=se.Nc,ie=se.Uo+1),se.Gl=ie);if(z=a.pe,Se=a.port,E=a.node.portSpreading,ie=it.alloc(),se=it.alloc(),ne=it.alloc(),de=it.alloc(),Se.ga(ho,ie),Se.ga(Do,se),Se.ga(Fo,ne),Se.ga(pa,de),Me=Le=pe=Se=0,E===ny)for(var ze=0;ze<z.length;ze++){var qe=z[ze];if(qe!==null){var Ct=qe.link.computeThickness();switch(qe.Nc){case 8:Le+=Ct;break;case 2:Me+=Ct;break;case 1:Se+=Ct;break;default:case 4:pe+=Ct}}}var vt=ze=0,Dt=1,Bt=qe=0;for(Ct=0;Ct<z.length;Ct++){var Gt=z[Ct];if(Gt!==null){if(ze!==Gt.Nc){switch(ze=Gt.Nc,ze){case 8:var $t=ne;vt=de;break;case 2:$t=de,vt=ie;break;case 1:$t=ie,vt=se;break;default:case 4:$t=se,vt=ne}switch(qe=vt.x-$t.x,Bt=vt.y-$t.y,ze){case 8:Le>Math.abs(qe)?(Dt=Math.abs(qe)/Le,Le=Math.abs(qe)):Dt=1;break;case 2:Me>Math.abs(Bt)?(Dt=Math.abs(Bt)/Me,Me=Math.abs(Bt)):Dt=1;break;case 1:Se>Math.abs(qe)?(Dt=Math.abs(qe)/Se,Se=Math.abs(qe)):Dt=1;break;default:case 4:pe>Math.abs(Bt)?(Dt=Math.abs(Bt)/pe,pe=Math.abs(Bt)):Dt=1}vt=0}var Rn=Gt.Zo;if(E===ny){switch(Gt=Gt.link.computeThickness(),Gt*=Dt,Rn.set($t),ze){case 8:Rn.x=$t.x+qe/2+Le/2-vt-Gt/2;break;case 2:Rn.y=$t.y+Bt/2+Me/2-vt-Gt/2;break;case 1:Rn.x=$t.x+qe/2-Se/2+vt+Gt/2;break;default:case 4:Rn.y=$t.y+Bt/2-pe/2+vt+Gt/2}vt+=Gt}else{var Jr=.5;E===v0&&(Jr=(Gt.Uo+1)/(Gt.Gl+1)),Rn.x=$t.x+qe*Jr,Rn.y=$t.y+Bt*Jr}}}for(it.free(ie),it.free(se),it.free(ne),it.free(de),$t=a.pe,z=0;z<$t.length;z++)E=$t[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=b,In.free(x)}b=a.pe}for(a=0;a<b.length;a++)if(x=b[a],x!==null&&x.link===y)return x;return null}Ip.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},Ip.prototype.computeEndSegmentLength=function(a){var y=a.link,b=y.computeEndSegmentLength(this.node,this.port,Qi,y.fromPort===this.port),E=a.Uo;if(0>E)return b;var x=a.Gl;if(1>=x||!y.isOrthogonal)return b;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=x-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?b+8*E:(a?y.y===z.y:y.x===z.x)?b:b+8*(x-1-E)},Ip.className="Knot";function fy(a,y,b){this.link=a,this.angle=y,this.Nc=b,this.hv=new it,this.Gl=this.Uo=0,this.Zo=new it,this.Ju=0}fy.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()},fy.className="LinkInfo";function Pa(a){vi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new it(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Pa.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},Pa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Pa.prototype.qb=function(){},Pa.prototype.toString=function(){var a=Wn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Pa.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())}}},Pa.prototype.createNetwork=function(){return new ba(this)},Pa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Dn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof ro?y.lg(a.memberParts):y.lg(a.iterator),y},Pa.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 b=y.value.node;if(b!==null&&(a=b.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Pa.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()}},Pa.prototype.doLayout=function(a){var y=new ar;a instanceof Dn?(sf(this,y,a.nodes,!0,this.rh,!0,!1,!0),sf(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof ro?sf(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},Pa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var b=this.arrangementOrigin.x,E=b,x=this.arrangementOrigin.y,z=0,ne=0;for(a=a.iterator;a.next();){var ie=a.value;cm(ie);var se=ie.measuredBounds,de=se.width;se=se.height,ie.moveTo(E,x),ie instanceof ro&&(ie.rh=!1),E+=Math.max(de,50)+20,ne=Math.max(ne,Math.max(se,50)),z>=y-1?(z=0,E=b,x+=ne+20,ne=0):z++}},Pa.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,b=y,E=this.arrangementOrigin.y,x=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var ie=ne.value.node;if(!(ie===null||ie instanceof _r)&&(cm(ie),this.rh(ie))){var se=ie.measuredBounds,de=se.width;se=se.height,ie.moveTo(b,E),ie instanceof ro&&(ie.rh=!1),b+=Math.max(de,50)+20,z=Math.max(z,Math.max(se,50)),x>=a-1?(x=0,b=y,E+=z+20,z=0):x++}}},Pa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof ro&&a.rh)};function sf(a,y,b,E,x,z,ne,ie){for(b=b.iterator;b.next();){var se=b.value;E&&!se.isTopLevel||x!==null&&!x(se)||!se.canLayout()||(z&&se instanceof $r?se.isLinkLabel||(se instanceof ro&&se.layout===null?sf(a,y,se.memberParts,!1,x,z,ne,ie):(cm(se),y.add(se))):ne&&se instanceof _r?y.add(se):!ie||!se.Zc()||se instanceof $r||(cm(se),y.add(se)))}}function cm(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Pa.prototype.ni=function(a,y){var b=this.boundsComputation;return b!==null?(y||(y=new In),b(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Pa.prototype.ex=function(a){var y=new ar;return a instanceof Dn?(sf(this,y,a.nodes,!0,null,!0,!0,!0),sf(this,y,a.links,!0,null,!0,!0,!0),sf(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof ro?sf(this,y,a.memberParts,!1,null,!0,!0,!0):sf(this,y,a.iterator,!1,null,!0,!0,!0),y},Pa.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var b=y.position.copy();return(isNaN(b.x)||isNaN(b.y))&&b.set(a),y=y.placeholder,y!==null&&(b=y.ga(ho),(isNaN(b.x)||isNaN(b.y))&&b.set(a),a=y.padding,b.x+=a.left,b.y+=a.top),b}return a},Jn.Object.defineProperties(Pa.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())}}}),Pa.prototype.collectParts=Pa.prototype.ex,Pa.prototype.getLayoutBounds=Pa.prototype.ni,Pa.prototype.invalidateLayout=Pa.prototype.C,Pa.className="Layout";function ba(a){vi(this),this.Sc=a,this.wf=new ar,this.ye=new ar,this.Es=new An,this.zs=new An}ba.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 ar,this.ye=new ar,this.Es=new An,this.zs=new An},ba.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 b=this.wf.iterator;b.next();)y+=`
|
|
|
`+b.value.toString(a-1);for(b=this.ye.iterator;b.next();)y+=`
|
|
|
`+b.value.toString(a-1)}return y},ba.prototype.createVertex=function(){return new Ns(this)},ba.prototype.createEdge=function(){return new Wu(this)},ba.prototype.lg=function(a,y,b){if(a!==null){for(y===void 0&&(y=!1),b===void 0&&(b=null),b===null&&(b=function(ne){if(ne instanceof $r)return!ne.isLinkLabel;if(ne instanceof _r){var ie=ne.fromNode;return ie===null||ie.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof $r&&(!y||E.isTopLevel)&&E.canLayout()&&b(E)){if(E instanceof ro&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var x=this.createVertex();x.node=E,this.dh(x)}}}for(a.reset();a.next();)if(E=a.value,E instanceof _r&&(!y||E.isTopLevel)&&E.canLayout()&&b(E)&&this.Lo(E)===null){var z=E.fromNode;x=E.toNode,z!==null&&x!==null&&z!==x&&(z=this.findGroupVertex(z),x=this.findGroupVertex(x),z!==null&&x!==null&&this.Zj(z,x,E))}}},ba.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},Oe=ba.prototype,Oe.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Oe.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},Oe.Iu=function(a){if(a!==null&&g1(this,a)){for(var y=a.tg,b=y.count-1;0<=b;b--){var E=y.M(b);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)b=y.M(a),this.Mj(b)}};function g1(a,y){if(y===null)return!1;var b=a.wf.remove(y);return b&&(y=y.node,y!==null&&a.Es.remove(y)),b}Oe.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Oe.ki=function(a){return a===null?null:this.Es.I(a)},Oe.Bo=function(a){if(a!==null){py(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function py(a,y){if(y!==null){a.ye.add(y);var b=y.link;b!==null&&a.Lo(b)===null&&a.zs.add(b,y),y.network=a}}Oe.Dy=function(a){if(a===null)return null;var y=a.fromNode,b=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),b!==null&&(E.toVertex=this.Bl(b)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,b!==null?E.toVertex=this.Bl(b):E.toVertex=null),E},Oe.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),gy(this,a)}};function gy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Oe.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Oe.Lo=function(a){return a===null?null:this.zs.I(a)},Oe.Zj=function(a,y,b){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=b,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Oe.gm=function(a){if(a!==null){var y=a.fromVertex,b=a.toVertex;y!==null&&b!==null&&(y.Jl(a),b.Kl(a),a.gm(),y.Cl(a),b.zl(a))}},Oe.Ko=function(){for(var a=Mr(),y=this.ye.iterator;y.next();){var b=y.value;b.fromVertex===b.toVertex&&a.push(b)}for(y=a.length,b=0;b<y;b++)this.Mj(a[b]);Ur(a)},ba.prototype.deleteArtificialVertexes=function(){for(var a=Mr(),y=this.wf.iterator;y.next();){var b=y.value;b.node===null&&b.data===null&&a.push(b)}for(b=a.length,y=0;y<b;y++)this.Iu(a[y]);for(y=Mr(),b=this.ye.iterator;b.next();){var E=b.value;E.link===null&&E.data===null&&y.push(E)}for(b=y.length,E=0;E<b;E++)this.Mj(y[E]);Ur(a),Ur(y)};function SE(a){for(var y=Mr(),b=a.ye.iterator;b.next();){var E=b.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(b=y.length,E=0;E<b;E++)a.Mj(y[E]);Ur(y)}ba.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),SE(this),this.Ko()),a=new Qn;for(var y=!0;y;){y=!1;for(var b=this.wf.iterator;b.next();){var E=b.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),my(this,y,E),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 my(a,y,b){if(b!==null&&b.network!==y){g1(a,b),y.dh(b);for(var E=b.sourceEdges;E.next();){var x=E.value;x.network!==y&&(gy(a,x),py(y,x),my(a,y,x.fromVertex))}for(E=b.destinationEdges;E.next();)b=E.value,b.network!==y&&(gy(a,b),py(y,b),my(a,y,b.toVertex))}}ba.prototype.dz=function(){for(var a=new ar,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},Jn.Object.defineProperties(ba.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}}}),ba.prototype.findAllParts=ba.prototype.dz,ba.prototype.splitIntoSubNetworks=ba.prototype.Zx,ba.prototype.deleteSelfEdges=ba.prototype.Ko,ba.prototype.reverseEdge=ba.prototype.gm,ba.prototype.linkVertexes=ba.prototype.Zj,ba.prototype.findEdge=ba.prototype.Lo,ba.prototype.deleteLink=ba.prototype.Yy,ba.prototype.deleteEdge=ba.prototype.Mj,ba.prototype.addLink=ba.prototype.Dy,ba.prototype.addEdge=ba.prototype.Bo,ba.prototype.findVertex=ba.prototype.ki,ba.prototype.deleteNode=ba.prototype.Zy,ba.prototype.deleteVertex=ba.prototype.Iu,ba.prototype.addNode=ba.prototype.Bl,ba.prototype.addVertex=ba.prototype.dh,ba.prototype.addParts=ba.prototype.lg,ba.className="LayoutNetwork";function Ns(a){vi(this),this.ob=a,this.j=new In(0,0,10,10).freeze(),this.o=new it(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Qn,this.mg=new Qn}Ns.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Qn,this.mg=new Qn},Ns.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Fi(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var b=!0,E=this.tg.iterator;E.next();){var x=E.value;b?b=!1:a+=",",a+=x.toString(0)}for(x="",b=!0,E=this.mg.iterator;E.next();){var z=E.value;b?b=!1:x+=",",x+=z.toString(0)}y+=" sources: "+a+" destinations: "+x}return y},Ns.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,b=a.bounds;Xt(b)?(b.x=y.x,b.y=y.y,b.width=y.width,b.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof ro)){b=In.alloc(),a.Va();var E=this.network.layout.ni(a,b),x=a.locationObject.ga(Ji);if(E.w()&&x.w()){a.moveTo(y.x+this.focusX-(x.x-E.x),y.y+this.focusY-(x.y-E.y)),In.free(b);return}In.free(b)}a.moveTo(y.x,y.y)}},Ns.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ns.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ns.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ns.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function vy(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}Jn.Object.defineProperties(Ns.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 b=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,b,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,b=In.alloc(),E=y.ni(a,b);y=E.x;var x=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(x)&&(x=0),this.j.h(y,x,z,E),In.free(b),!(a instanceof ro)&&(a=a.locationObject.ga(Ji),a.w())){this.o.h(a.x-y,a.y-x);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new ar,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ar,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ar,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 Qn,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}}}),Ns.prototype.deleteDestinationEdge=Ns.prototype.Jl,Ns.prototype.addDestinationEdge=Ns.prototype.zl,Ns.prototype.deleteSourceEdge=Ns.prototype.Kl,Ns.prototype.addSourceEdge=Ns.prototype.Cl,Ns.className="LayoutVertex",Ns.standardComparer=vy,Ns.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var b=y.Sh;if(a!==null){if(b!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=b.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),b=0;b<y.length;b++)if(a[b]!==""&&a[b]!==void 0){var E=parseFloat(y[b]),x=parseFloat(a[b]);if(isNaN(E))if(isNaN(x)){if(y[b].localeCompare(a[b])!==0)return y[b].localeCompare(a[b])}else return 1;else{if(isNaN(x))return-1;if(E-x!==0)return E-x}}else if(y[b]!=="")return 1;return a[b]!==""&&a[b]!==void 0?-1:0}return 1}return b!==null?-1:0}return 1}return y!==null?-1:0};function Wu(a){vi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Wu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Wu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Fi(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},Wu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Wu.prototype.commit=function(){},Wu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Jn.Object.defineProperties(Wu.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)}}}),Wu.prototype.getOtherVertex=Wu.prototype.Ax,Wu.className="LayoutEdge";function nl(a){Pa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new an(NaN,NaN).freeze(),this.tf=new an(10,10).freeze(),this.Jb=dm,this.Rb=I0,this.nd=hm,this.hd=m1,a&&Object.assign(this,a)}Sn(nl,Pa),nl.prototype.cloneProtected=function(a){Pa.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},nl.prototype.qb=function(a){a.classType===nl?a===hm||a===R0||a===yy||a===D0?this.sorting=a:a===I0||a===ed?this.arrangement=a:a===dm||a===k0?this.alignment=a:Lt("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},nl.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var b=y.copy().iterator;b.next();){var E=b.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof ro)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var x=y.Fa();if(x.length!==0){switch(this.sorting){case D0:x.reverse();break;case hm:x.sort(this.comparer);break;case R0: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),b=this.spacing.height,isFinite(b)||(b=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case k0:var ie=y,se=b,de=In.alloc(),pe=Math.max(this.cellSize.width,1);if(!isFinite(pe))for(var Se=pe=0;Se<x.length;Se++){var Le=this.ni(x[Se],de);pe=Math.max(pe,Le.width)}if(pe=Math.max(pe+ie,1),Se=Math.max(this.cellSize.height,1),!isFinite(Se))for(Le=Se=0;Le<x.length;Le++){var Me=this.ni(x[Le],de);Se=Math.max(Se,Me.height)}Se=Math.max(Se+se,1),Le=this.arrangement;for(var ze=Me=this.arrangementOrigin.x,qe=this.arrangementOrigin.y,Ct=0,vt=0,Dt=0;Dt<x.length;Dt++){var Bt=x[Dt],Gt=this.ni(Bt,de),$t=Math.ceil((Gt.width+ie)/pe)*pe,Rn=Math.ceil((Gt.height+se)/Se)*Se;switch(Le){case ed:var Jr=Math.abs(ze-Gt.width);break;default:Jr=ze+Gt.width}switch((0<z&&Ct>z-1||0<ne&&0<Ct&&Jr-Me>ne)&&(E.push(new In(0,qe,ne+ie,vt)),Ct=0,ze=Me,qe+=vt,vt=0),vt=Math.max(vt,Rn),Le){case ed:Gt=-Gt.width;break;default:Gt=0}switch(Bt.moveTo(ze+Gt,qe),Le){case ed:ze-=$t;break;default:ze+=$t}Ct++}E.push(new In(0,qe,ne+ie,vt)),In.free(de);break;case dm:for(se=ne,pe=z,Se=y,Le=b,ne=In.alloc(),Me=Math.max(this.cellSize.width,1),z=qe=de=0,ie=it.alloc(),ze=0;ze<x.length;ze++)vt=x[ze],Ct=this.ni(vt,ne),vt=Ah(vt,vt.locationObject,vt.locationSpot,ie),de=Math.max(de,vt.x),qe=Math.max(qe,Ct.width-vt.x),z=Math.max(z,vt.y);switch(ze=this.arrangement,ze){case ed:de+=Se;break;default:qe+=Se}Me=isFinite(Me)?Math.max(Me+Se,1):Math.max(de+qe,1);var gi=vt=this.arrangementOrigin.x;for(Dt=this.arrangementOrigin.y,qe=0,se>=de&&(se-=de),de=Bt=0,$t=Math.max(this.cellSize.height,1),Gt=z=0,Rn=!0,Ct=it.alloc(),Jr=0;Jr<x.length;Jr++){var di=x[Jr],Br=this.ni(di,ne),gr=Ah(di,di.locationObject,di.locationSpot,ie);if(0<qe)switch(ze){case ed:gi=(gi-vt-(Br.width-gr.x))/Me,gi=tn.$(Math.round(gi),gi)?Math.round(gi):Math.floor(gi),gi=gi*Me+vt;break;default:gi=(gi-vt+gr.x)/Me,gi=tn.$(Math.round(gi),gi)?Math.round(gi):Math.ceil(gi),gi=gi*Me+vt}else switch(ze){case ed:Bt=gi+gr.x+Br.width;break;default:Bt=gi-gr.x}switch(ze){case ed:var to=-(gi+gr.x)+Bt;break;default:to=gi+Br.width-gr.x-Bt}if(0<pe&&qe>pe-1||0<se&&0<qe&&to>se){for(E.push(new In(0,Rn?Dt-z:Dt,se+Se,Gt+z+Le)),gi=0;gi<qe&&Jr!==qe;gi++){to=x[Jr-qe+gi];var Ui=Ah(to,to.locationObject,to.locationSpot,Ct);to.moveTo(to.position.x,to.position.y+z-Ui.y)}Gt+=Le,Dt=Rn?Dt+Gt:Dt+(Gt+z),qe=Gt=z=0,gi=vt,Rn=!1}switch(gi===vt&&(de=ze===ed?Math.max(de,Br.width-gr.x):Math.min(de,-gr.x)),z=Math.max(z,gr.y),Gt=Math.max(Gt,Br.height-gr.y),isFinite($t)&&(Gt=Math.max(Gt,Math.max(Br.height,$t)-gr.y)),Rn?di.moveTo(gi-gr.x,Dt-gr.y):di.moveTo(gi-gr.x,Dt),ze){case ed:gi-=gr.x+Se;break;default:gi+=Br.width-gr.x+Se}qe++}if(E.push(new In(0,Dt,se+Se,(Rn?Gt:Gt+z)+Le)),x.length!==qe)for(se=0;se<qe;se++)pe=x[x.length-qe+se],Se=Ah(pe,pe.locationObject,pe.locationSpot,ie),pe.moveTo(pe.position.x,pe.position.y+z-Se.y);if(it.free(ie),it.free(Ct),ze===ed)for(x=0;x<E.length;x++)z=E[x],z.width+=de,z.x-=de;else for(x=0;x<E.length;x++)z=E[x],z.x>de&&(z.width+=z.x-de,z.x=de);In.free(ne)}for(ie=z=ne=x=0;ie<E.length;ie++)se=E[ie],x=Math.min(x,se.x),ne=Math.min(ne,se.y),z=Math.max(z,se.x+se.width);this.arrangement===ed?this.commitLayers(E,new it(x+y/2-(z+x),ne-b/2)):this.commitLayers(E,new it(x-y/2,ne-b/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},nl.prototype.commitLayers=function(){};function m1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Jn.Object.defineProperties(nl.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!==dm&&a!==k0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==I0&&a!==ed||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==yy&&a!==D0&&a!==hm&&a!==R0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var k0=new mn(nl,"Position",0),dm=new mn(nl,"Location",1),I0=new mn(nl,"LeftToRight",2),ed=new mn(nl,"RightToLeft",3),yy=new mn(nl,"Forward",4),D0=new mn(nl,"Reverse",5),hm=new mn(nl,"Ascending",6),R0=new mn(nl,"Descending",7);nl.className="GridLayout",nl.standardComparer=m1,nl.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 b=0;b<a.length;b++)if(y[b]!==""&&y[b]!==void 0){var E=parseFloat(a[b]),x=parseFloat(y[b]);if(isNaN(E))if(isNaN(x)){if(a[b].localeCompare(y[b])!==0)return a[b].localeCompare(y[b])}else return 1;else{if(isNaN(x))return-1;if(E-x!==0)return E-x}}else if(a[b]!=="")return 1;return y[b]!==""&&y[b]!==void 0?-1:0}return 1}return y!==null?-1:0},nl.Position=k0,nl.Location=dm,nl.LeftToRight=I0,nl.RightToLeft=ed,nl.Forward=yy,nl.Reverse=D0,nl.Ascending=hm,nl.Descending=R0;function Jo(){this.On=new ar,this.Dn=new ar,this.Pa=new ar,this.cf=new An,this.bf=new An,this.aj=new An,this.H=null,this.tp=!1}Oe=Jo.prototype,Oe.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Oe.Xe=function(a){this.H=a},Oe.oi=function(a){if(a instanceof $r){if(this.On.add(a),a instanceof ro){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 _r?this.Dn.add(a):a instanceof Mo||this.Pa.add(a);y=a.data,y===null||a instanceof Mo||(a instanceof _r?this.bf.add(y,a):this.cf.add(y,a))},Oe.pc=function(a){if(a.Ej(),a instanceof $r){if(this.On.remove(a),a instanceof ro){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 _r?this.Dn.remove(a):a instanceof Mo||this.Pa.remove(a);y=a.data,y===null||a instanceof Mo||(a instanceof _r?this.bf.remove(y):this.cf.remove(y))},Oe.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var b=y.value,E=y.key;(!b.Zc()||b instanceof ro)&&Lt('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+b)}for(y=a.groupTemplateMap.iterator;y.next();)b=y.value,E=y.key,b instanceof ro||Lt('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+b);for(y=a.linkTemplateMap.iterator;y.next();)b=y.value,E=y.key,b instanceof _r||Lt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+b);for(y=Mr(),b=a.selection.iterator;b.next();)(E=b.value.data)&&y.push(E);for(b=Mr(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&b.push(E);for(a=Mr(),E=this.nodes.iterator;E.next();){var x=E.value;x.data!==null&&(a.push(x.data),a.push(x.location))}for(E=this.links.iterator;E.next();)x=E.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(E=this.parts.iterator;E.next();)x=E.value,x.data!==null&&(a.push(x.data),a.push(x.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)x=this.Lc(y[E]),x!==null&&(x.isSelected=!0);for(E=0;E<b.length;E++)x=this.Lc(b[E]),x!==null&&(x.isHighlighted=!0);for(E=0;E<a.length;E+=2)x=this.Lc(a[E]),x!==null&&(x.location=a[E+1]);Ur(y),Ur(b),Ur(a)}},Jo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Jo.prototype.addModeledParts=function(a,y){var b=this,E=this.diagram.model;a.forEach(function(x){E.lb(x)&&v1(b,x,!1)}),a.forEach(function(x){E.lb(x)&&b.resolveReferencesForData(x)}),y!==!1&&Xh(this.diagram,!1)};function v1(a,y,b){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){b===void 0&&(b=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),x=y1(a,y,E);if(x!==null&&(Tc(x),x=x.copy(),x!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,x.Tf=E,x.ub=y,a.tp&&(x.Jg="Tool"),a.diagram.add(x),x.ub=null,x.data=y,a.diagram.skipsModelSourceBindings=z,E=x;break e}}E=null}E!==null&&b&&a.resolveReferencesForData(y)}}Jo.prototype.insertLink=function(){return null},Jo.prototype.resolveReferencesForData=function(){},Jo.prototype.Ro=function(a){return this.H.model.Ro(a)};function y1(a,y,b){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(b),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(E1||(E1=!0,Ir('No Group template found for category "'+b+'"'),Ir(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(b),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(b1||(b1=!0,Ir('No Node template found for category "'+b+'"'),Ir(" Using default node template")),y=a.ny))),y}Jo.prototype.getLinkCategoryForData=function(){return""},Jo.prototype.setLinkCategoryForData=function(){},Jo.prototype.setFromNodeForLink=function(){},Jo.prototype.setToNodeForLink=function(){},Jo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,b=y.linkTemplateMap.I(a);return b===null&&(b=y.linkTemplateMap.I(""),b===null&&(x1||(x1=!0,Ir('No Link template found for category "'+a+'"'),Ir(" Using default link template")),b=y.my)),b},Jo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Jo.prototype.Gs=function(a){var y=this;a.forEach(function(b){y.ip(b)})},Jo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(lp(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Jo.prototype.unresolveReferencesForPart=function(){},Jo.prototype.removeDataForLink=function(){},Jo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Jo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof $r?a:null)},Jo.prototype.findLinkForKey=function(){return null},Oe=Jo.prototype,Oe.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Oe.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof $r?a:null)},Oe.Kc=function(a){return a===null?null:this.bf.I(a)},Oe.ms=function(a){for(var y=0;y<arguments.length;++y);y=new ar;for(var b=this.On.iterator;b.next();){var E=b.value,x=E.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(Xt(ne)&&Sy(this,x,ne)){y.add(E);break}}}return y.iterator},Oe.ls=function(a){for(var y=0;y<arguments.length;++y);y=new ar;for(var b=this.Dn.iterator;b.next();){var E=b.value,x=E.data;if(x!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(Xt(ne)&&Sy(this,x,ne)){y.add(E);break}}}return y.iterator};function Sy(a,y,b){for(var E in b){var x=y[E],z=b[E];if(Fn(z)){if(!Fn(x)||x.length<z.length)return!1;for(var ne=0;ne<x.length;ne++){var ie=z[ne];if(ie!==void 0&&!S1(a,x[ne],ie))return!1}}else if(!S1(a,x,z))return!1}return!0}function S1(a,y,b){if(typeof b=="function"){if(!b(y))return!1}else if(b instanceof RegExp){if(!y||!b.test(y.toString()))return!1}else if(Xt(y)&&Xt(b)){if(!Sy(a,y,b))return!1}else if(y!==b)return!1;return!0}Jo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var b=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(b===oa){if(E==="nodeCategory"){var x=this.Lc(a.object),z=a.newValue;x!==null&&typeof z=="string"&&(x.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(b===Ta){var ne=a.newValue;E==="nodeDataArray"&&Xt(ne)&&v1(this,ne),y.isModified=!0}else if(b===La){var ie=a.oldValue;E==="nodeDataArray"&&Xt(ie)&&this.ip(ie),y.isModified=!0}else b===Os&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(b===oa){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(b===Ta||b===La){var pe=a.change===Ta,Se=pe?a.newParam:a.oldParam,Le=pe?a.newValue:a.oldValue,Me=this.aj.I(a.object);if(Array.isArray(Me))for(a=0;a<Me.length;a++){var ze=Me[a];if(pe)qm(ze,Le,Se,!0);else if(!(0>Se)){var qe=Se+Kg(ze);ze.pc(qe,!0),Rv(ze,qe,Se)}}y.isModified=!0}}finally{y.aa=!0}}}}},Jo.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)},Jo.prototype.rp=function(){for(var a=this.H.model,y=new ar,b=a.nodeDataArray,E=0;E<b.length;E++)y.add(b[E]);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){I1(a,ne,!1)}),E=0;E<b.length;E++){var z=b[E];this.Lc(z)===null&&k1(a,z,!1)}for(this.refreshDataBoundLinks(),b=this.parts.iterator;b.next();)b.value.updateRelationshipsFromData();for(b=this.nodes.iterator;b.next();)b.value.updateRelationshipsFromData();for(b=this.links.iterator;b.next();)b.value.updateRelationshipsFromData()},Jo.prototype.refreshDataBoundLinks=function(){},Jo.prototype.updateRelationshipsFromData=function(){},Jo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var b=this.Lc(a);if(b!==null)b.La(y);else{b=null;for(var E=this.aj.iterator;E.next();){for(var x=E.value,z=0;z<x.length;z++){var ne=x[z].sx(a);ne!==null&&(b===null&&(b=Mr()),b.push(ne))}if(b!==null)break}if(b!==null){for(E=0;E<b.length;E++)b[E].La(y);Ur(b)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function by(a,y){var b=y.Hh;if(Fn(b)){var E=a.aj.I(b);if(E===null)E=[],E.push(y),a.aj.add(b,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function Ey(a,y,b){Hf(y,function(ne){ne=ne.O.s;for(var ie=ne.length,se=0;se<ie;se++)fp(b,ne[se])});var E=y.Hh;if(Fn(E)){var x=a.aj.I(E);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(E);break}}}}Jo.prototype.Kj=function(a,y,b){b===void 0&&(b=!1);var E=new An;if(Fn(a))for(var x=0;x<a.length;x++)M0(this,a[x],y,E,b);else for(a=a.iterator;a.next();)M0(this,a.value,y,E,b);if(y!==null){b=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,x=new ar;for(var z=new An,ne=E.iterator;ne.next();){var ie=ne.value;if(ie instanceof _r)a||ie.fromNode!==null&&ie.toNode!==null||x.add(ie);else if(ie instanceof $r&&ie.data!==null&&b.Tl()){var se=ie;ie=ne.key;var de=ie.pg();de!==null&&(de=E.I(de),de!==null?(b.qe(se.data,b.wa(de.data)),se=y.Kc(se.data),ie=ie.kh(),ie!==null&&se!==null&&z.add(ie,se)):b.qe(se.data,void 0))}}if(0<x.count&&y.Is(x,!1),0<z.count)for(b=z.iterator;b.next();)E.add(b.key,b.value)}if(y!==null&&this.H!==null&&(y=y.model,b=y.afterCopyFunction,b!==null)){var pe=new An;E.each(function(Se){Se.key.data!==null&&pe.add(Se.key.data,Se.value.data)}),b(pe,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function M0(a,y,b,E,x){if(y===null||x&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,b);if(!(z instanceof Ai))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof $r){for(var ne=y.linksConnected;ne.next();){var ie=ne.value;if(ie.fromNode===y){var se=E.I(ie);se!==null&&(se.fromNode=z)}ie.toNode===y&&(ie=E.I(ie),ie!==null&&(ie.toNode=z))}if(y instanceof ro&&z instanceof ro)for(y=y.memberParts;y.next();)ne=M0(a,y.value,b,E,x),ne instanceof _r||ne===null||(ne.containingGroup=z)}else if(y instanceof _r&&z instanceof _r)for(ne=y.fromNode,ne!==null&&(ne=E.I(ne),ne!==null&&(z.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=E.I(ne),ne!==null&&(z.toNode=ne)),y=y.labelNodes;y.next();)ne=M0(a,y.value,b,E,x),ne!==null&&ne instanceof $r&&(ne.labeledLink=z);return z}Jo.prototype.copyPartData=function(a,y){var b=null,E=a.data;if(E!==null&&y!==null){var x=y.model;a instanceof _r||(E=x.copyNodeData(E),Xt(E)&&(x.xf(E),b=y.Lc(E)))}else Tc(a),b=a.copy(),b!==null&&(x=this.H,y!==null?y.add(b):E!==null&&x!==null&&x.commandHandler!==null&&x.commandHandler.copiesClipboardData&&(y=x.model,x=null,b instanceof _r||(x=y.copyNodeData(E)),Xt(x)&&(b.data=x)));return b},Jn.Object.defineProperties(Jo.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}}}),Jo.prototype.updateAllRelationshipsFromData=Jo.prototype.rp,Jo.prototype.findLinksByExample=Jo.prototype.ls,Jo.prototype.findNodesByExample=Jo.prototype.ms,Jo.prototype.findLinkForData=Jo.prototype.Kc,Jo.prototype.findNodeForData=Jo.prototype.ii,Jo.prototype.findPartForData=Jo.prototype.Lc,Jo.prototype.findNodeForKey=Jo.prototype.Vb,Jo.prototype.removeModeledPart=Jo.prototype.ip,Jo.prototype.removeModeledParts=Jo.prototype.Gs,Jo.prototype.rebuildParts=Jo.prototype.Wd;var b1=!1,E1=!1,x1=!1;Jo.className="PartManager";function Ks(a){Jo.apply(this,arguments)}Sn(Ks,Jo),Ks.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),w1(this,a.linkDataArray)},Ks.prototype.addModeledParts=function(a){for(Jo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)vg(a.value);Xh(this.diagram,!1)};function w1(a,y){y.forEach(function(b){C1(a,b)}),Xh(a.diagram,!1)}function C1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var b=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(b);if(E!==null){Tc(E);var x=E.copy();if(x!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,x.Tf=b,x.ub=y,b=a.diagram.model;var z=_0(b,y,!0);z!==""&&(x.fromPortId=z),z=ec(b,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof $r&&(x.fromNode=z)),z=_0(b,y,!1),z!==""&&(x.toPortId=z),z=ec(b,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof $r&&(x.toNode=z)),b=b.Ef(y),Array.isArray(b)&&b.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=E}}}}Ks.prototype.removeAllModeledParts=function(){var a=this.diagram.model;P1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function P1(a,y){y.forEach(function(b){a.ip(b)})}Ks.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ks.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ks.prototype.setFromNodeForLink=function(a,y){var b=this.diagram.model;b.wv(a.data,b.wa(y!==null?y.data:null))},Ks.prototype.setToNodeForLink=function(a,y){var b=this.diagram.model;b.Bv(a.data,b.wa(y!==null?y.data:null))},Ks.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ks.prototype.findPartForKey=function(a){var y=Jo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Ks.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ks.prototype.doModelChanged=function(a){var y=this;if(Jo.prototype.doModelChanged.call(this,a),this.diagram){var b=this.diagram;if(a.model===b.model){var E=a.change;if(b.aa){b.aa=!1;try{var x=a.modelChange;if(x!==""){if(E===oa){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 ie=this.Kc(a.object);if(ie!==null){var se=this.Vb(a.newValue);ie.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 Le=a.newValue;typeof Le=="string"&&(Se.toPortId=Le)}}else if(x==="nodeGroupKey"){var Me=this.Lc(a.object);if(Me!==null){var ze=a.newValue;if(ze!==void 0){var qe=this.Vb(ze);qe instanceof ro?Me.containingGroup=qe:Me.containingGroup=null}else Me.containingGroup=null}}else if(x==="linkLabelKeys"){var Ct=this.Kc(a.object);if(Ct!==null){var vt=a.oldValue,Dt=a.newValue;Array.isArray(vt)&&vt.forEach(function(gr){0<=Dt.indexOf(gr)||(gr=y.Vb(gr),gr!==null&&(gr.labeledLink=null))}),Array.isArray(Dt)&&Dt.forEach(function(gr){gr=y.Vb(gr),gr!==null&&(gr.labeledLink=Ct)})}}else if(x==="linkCategory"){var Bt=this.Kc(a.object),Gt=a.newValue;Bt!==null&&typeof Gt=="string"&&(Bt.category=Gt)}else x==="linkDataArray"&&(P1(this,a.oldValue),w1(this,a.newValue));b.isModified=!0}else if(E===Ta){var $t=a.newValue;if(x==="linkDataArray"&&typeof $t=="object"&&$t!==null)C1(this,$t);else if(x==="linkLabelKeys"&&uf($t)){var Rn=this.Kc(a.object),Jr=this.Vb($t);Rn!==null&&Jr!==null&&(Jr.labeledLink=Rn)}b.isModified=!0}else if(E===La){var gi=a.oldValue;if(x==="linkDataArray"&&typeof gi=="object"&&gi!==null)this.ip(gi);else if(x==="linkLabelKeys"&&uf(gi)){var di=this.Vb(gi);di!==null&&(di.labeledLink=null)}b.isModified=!0}}else if(E===oa){var Br=a.propertyName;a.object!==b.model||Br!=="linkFromKeyProperty"&&Br!=="linkToKeyProperty"&&Br!=="linkFromPortIdProperty"&&Br!=="linkToPortIdProperty"&&Br!=="linkLabelKeysProperty"&&Br!=="nodeIsGroupProperty"&&Br!=="nodeGroupKeyProperty"&&Br!=="linkCategoryProperty"||b.undoManager.isUndoingRedoing||this.Wd(),b.isModified=!0}}finally{b.aa=!0}}}}},Ks.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,b=new ar,E=y.linkDataArray;E.forEach(function(z){b.add(z)});var x=[];this.links.each(function(z){z.data===null||b.contains(z.data)||x.push(z.data)}),x.forEach(function(z){B1(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&F1(y,z,!1)})},Ks.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var b=a.diagram;if(b!==null){var E=b.model;if(a instanceof _r){var x=ec(E,y,!0);if(x=b.Vb(x),a.fromNode=x,x=ec(E,y,!1),x=b.Vb(x),a.toNode=x,y=E.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(E.wa(z.data)===x)return}x=new ar().addAll(y);var ne=new ar;a.labelNodes.each(function(ie){ie.data!==null&&(ie=E.wa(ie.data),ie!==void 0&&ne.add(ie))}),y=ne.copy(),y.hp(x),x=x.copy(),x.hp(ne),(0<y.count||0<x.count)&&(y.each(function(ie){ie=b.Vb(ie),ie!==null&&ie.labeledLink===a&&(ie.labeledLink=null)}),x.each(function(ie){ie=b.Vb(ie),ie!==null&&ie.labeledLink!==a&&(ie.labeledLink=a)}))}}else!(a instanceof Mo)&&(y=E.lh(y),y=b.findPartForKey(y),y===null||y instanceof ro)&&(a.containingGroup=y)}}},Ks.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,b=y.wa(a);if(b!==void 0){var E=fm(y,b),x=this.Lc(a);if(E!==null&&x!==null){E=E.iterator;for(var z={};E.next();){var ne=E.value;y.lb(ne)?x instanceof ro&&y.lh(ne)===b&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=x)):(z.link=this.Kc(ne),z.link!==null&&x instanceof $r&&(ec(y,ne,!0)===b&&(z.link.fromNode=x),ec(y,ne,!1)===b&&(z.link.toNode=x),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(ie){return function(se){return se===b?(x.labeledLink=ie.link,!0):!1}}(z)))),z={link:z.link}}nd(y,b)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof ro&&(x.containingGroup=a))}},Ks.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof $r){var b=y.wa(a.data);if(b!==void 0){for(var E=a.linksConnected;E.next();)td(y,b,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&td(y,b,E.data)),a instanceof ro)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&td(y,b,E)}}},Ks.prototype.copyPartData=function(a,y){var b=Jo.prototype.copyPartData.call(this,a,y);if(a instanceof _r)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),b=y.Kc(a))}else b!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(b.data=y)));return b},Ks.prototype.insertLink=function(a,y,b,E){var x=this.diagram,z=x.model,ne=x.toolManager.findTool("Linking"),ie="";if(a!==null&&(y===null&&(y=a),ie=y.portId,ie===null&&(ie="")),y="",b!==null&&(E===null&&(E=b),y=E.portId,y===null&&(y="")),E=ne.archetypeLinkData,E instanceof _r){if(Tc(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=ie,z.toNode=b,z.toPortId=y,x.add(z),a=ne.archetypeLabelNodeData,a instanceof $r&&(Tc(a),a=a.copy(),a!==null&&(a.labeledLink=z,x.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&wg(z,E,z.wa(a.data),!0),Cg(z,E,ie,!0),b!==null&&wg(z,E,z.wa(b.data),!1),Cg(z,E,y,!1),z.fi(E),a=ne.archetypeLabelNodeData,a===null||a instanceof $r||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),x.Kc(E);return null},Ks.prototype.findLinkForKey=Ks.prototype.findLinkForKey,Ks.prototype.findPartForKey=Ks.prototype.findPartForKey,Ks.prototype.removeAllModeledParts=Ks.prototype.removeAllModeledParts,Ks.prototype.addModeledParts=Ks.prototype.addModeledParts,Ks.prototype.addAllModeledParts=Ks.prototype.addAllModeledParts,Ks.className="GraphLinksPartManager";function pc(){Jo.apply(this,arguments),this.Sg=null}Sn(pc,Jo);function O0(a,y,b){if(y!==null&&b!==null&&b.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),x=y,z=b;if(a.diagram.isTreePathToChildren||(x=b,z=y),(E===null||!$s(E,x,z,null,!0))&&(y=a.getLinkCategoryForData(b.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Tc(E),E=E.copy(),E!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=b.data,E.fromNode=x,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=b.data,a.diagram.skipsModelSourceBindings=ne}}}pc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},pc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},pc.prototype.setFromNodeForLink=function(a,y,b){var E=this.diagram.model;if(b===void 0&&(b=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var x=this.Sg;this.Sg=a,b!==null&&E.qe(b.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=x}},pc.prototype.setToNodeForLink=function(a,y,b){var E=this.diagram.model;if(b===void 0&&(b=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var x=this.Sg;this.Sg=a,b!==null&&E.qe(b.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=x}else E.qe(a.data,E.wa(y))},pc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},pc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},pc.prototype.doModelChanged=function(a){if(Jo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var b=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===oa){if(E==="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 ie=ne.kh();ie!==null?z===null?y.remove(ie):y.isTreePathToChildren?ie.fromNode=z:ie.toNode=z:O0(this,z,ne)}}else if(E==="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(b===oa){var Se=a.propertyName;a.object===y.model&&Se==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},pc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var b=a.diagram;if(b!==null){var E=b.model;a instanceof $r&&(y=E.mh(y),y=b.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?b.isTreePathToChildren?E.fromNode=y:E.toNode=y:O0(this,y,a):E!==null&&lp(b,E,!1)))}}},pc.prototype.updateDataBindings=function(a,y){Jo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},pc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,b=y.wa(a);if(b!==void 0){var E=fm(y,b),x=this.Lc(a);if(E!==null&&x!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&x instanceof $r&&y.mh(z)===b&&O0(this,x,this.ii(z))}nd(y,b)}a=y.mh(a),a!==void 0&&x instanceof $r&&(a=this.Vb(a),O0(this,a,x))}},pc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof $r){var b=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var x=E.layer;if(x!==null){var z=x.pc(-1,E,!1);0<=z&&this.diagram.cb(La,"parts",x,E,null,z,null),z=E.layerChanged,z!==null&&z(E,x,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)x=a.value,x=(E?x.toNode:x.fromNode).data,y.lb(x)&&td(y,b,x)}},pc.prototype.insertLink=function(a,y,b){y=this.diagram.model;var E=a,x=b;return this.diagram.isTreePathToChildren||(E=b,x=a),E!==null&&x!==null?(y.qe(x.data,y.wa(E.data)),x.kh()):null},pc.prototype.findLinkForKey=pc.prototype.findLinkForKey,pc.className="TreePartManager";function Ei(a,y){this.kl=new ar,this.il=new ar,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,vi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new An,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 An,this.Lt=new Qn,this.Wg=!1,this.o=null,this.undoManager=new na,a!==void 0&&(Fn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ei.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},Ei.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ei.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ei.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 b=a.length,E=0;E<b;E++){var x=a[E];y+=" "+this.wa(x)+":"+mi(x)}}return y},Ei.prototype.xA=function(a){a.change!==Os&&Lt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Za?(A1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ei.prototype.Qv=function(a,y){var b=this,E=!1,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(Se){Se.model===b&&(Se.modelChange==="nodeDataArray"?Se.change===Ta?x.add(Se.newValue):Se.change===La&&ne.add(Se.oldValue):b.lb(Se.object)?z.add(Se.object):Se.change!==oa||b.modelData!==Se.object&&Se.propertyName!=="modelData"?Se.object!==null&&(ie&&ie.contains(Se.object)?ie.get(Se.object).each(function(Le){b.lb(Le)&&z.add(Le)}):Se.object instanceof Ei||b.ri()&&b.Jc(Se.object)||N1(b,Se.object).each(function(Le){z.add(Le)})):E=!0)});var se=this.il;se.clear(),x.each(function(Se){se.add(b.wa(Se)),y||z.add(Se)});var de=this.kl;de.clear(),ne.each(function(Se){de.add(b.wa(Se)),y&&z.add(Se)}),a=b.cloneDeep(z.Fa());var pe=null;return E&&(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},Ei.prototype.cloneDeep=function(a){return xg(this,a,!0)};function xg(a,y,b,E,x,z){function ne(Se,Le){ie?(Se.__gohashid===void 0&&z.push(Se),E.set(Se,Le)):(Se=fo++,E.set(Se,Le),x.set(Se,y))}if(!Xt(y))return y;z||(z=[]);var ie=Object.isExtensible(y);if(E||(E=new An),ie){var se=E.get(y);if(se)return se}else for(x||(x=new An),se=x.iterator;se.next();){var de=se.key;if(se.value===y&&(de=E.get(de)))return de}if(Array.isArray(y)){se=[],ne(y,se);for(var pe=0;pe<y.length;pe++)se.push(xg(a,y[pe],!1,E,x,z))}else if(y instanceof it||y instanceof an||y instanceof In||y instanceof no||y instanceof fi)se=y.copy(),ne(y,se);else{if(y instanceof _o||y instanceof Nr||y instanceof mn)return y;if(y instanceof Qn)se=new Qn().addAll(xg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof ar)se=new ar().addAll(xg(a,y.Fa(),!1,E,x,z)),ne(y,se);else if(y instanceof An)se=new An().addAll(xg(a,y.Fa(),!1,E,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]=xg(a,y[pe],!1,E,x,z))}return b&&z.forEach(function(Se){delete Se.__gohashid}),se}Oe=Ei.prototype,Oe.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Oe.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},Oe.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,Xt(y)&&(a.dm(y),a.modelData=y)}Oe.Rv=function(){var a=this.modelData,y=!1,b;for(b in a)if(!L1(b,a[b])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+xy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+lf(this,this.nodeDataArray,!0)},Oe.kv=function(a){T1(this,a),a=a.nodeDataArray,Fn(a)&&(this.dm(a),this.nodeDataArray=a)};function A1(a,y){function b(x,z){if((z=z.part)&&(z=z.data,x!==z)){var ne=E.get(x);ne===null?(ne=new ar,ne.add(z),E.add(x,ne)):ne.add(z)}}var E=a.vh;E===null&&(E=new An,y.changes.each(function(x){if(x.diagram!==null){var z=x.change;z===oa?(x=x.object.panel)&&(z=x.data)&&b(z,x):(z===Ta||z===La)&&(x=x.object,(z=x.itemArray)&&b(z,x))}}),a.vh=E)}function N1(a,y){for(var b=new ar,E=0;E<a.nodeDataArray.length;E++){var x=a.nodeDataArray[E];F0(a,y,x,x,b)}return b}function F0(a,y,b,E,x){if(Array.isArray(b))for(var z=0;z<b.length;z++){var ne=b[z];if(ne===y)return x.add(E),!0;if(F0(a,y,ne,E,x))return!0}else if(Xt(b)&&Object.getPrototypeOf(b)===Object.prototype)for(z in b){if(ne=b[z],ne===y)return x.add(E),!0;if(F0(a,y,ne,E,x))return!0}return!1}Oe.Pv=function(a,y){var b=this,E=!1,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(pe){pe.model===b&&(pe.modelChange==="nodeDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===La&&ne.add(pe.oldValue):b.lb(pe.object)?z.add(pe.object):pe.change!==oa||b.modelData!==pe.object&&pe.propertyName!=="modelData"?pe.object!==null&&(ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){b.lb(Se)&&z.add(Se)}):pe.object instanceof Ei||b.ri()&&b.Jc(pe.object)||N1(b,pe.object).each(function(Se){z.add(Se)})):E=!0)});var se=this.il;se.clear(),x.each(function(pe){se.add(b.wa(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(b.wa(pe)),y&&z.add(pe)}),a="",E&&(a+=`,
|
|
|
"modelData": `+xy(this,this.modelData)),0<se.count&&(a+=(y?this.Yv:this.Wv)+lf(this,se.Fa(),!0)),0<z.count&&(a+=this.jy+lf(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Wv:this.Yv)+lf(this,de.Fa(),!0)),de.clear(),se.clear(),a},Oe.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)&&Lt("applyIncrementalJson cannot change Model properties"),T1(this,a);var y=a.insertedNodeKeys,b=a.modifiedNodeData,E=new An;if(Array.isArray(b))for(var x=0;x<b.length;x++){var z=b[x],ne=this.wa(z);ne!=null&&E.set(ne,z)}if(Array.isArray(y))for(x=y.length,z=0;z<x;z++){ne=y[z];var ie=this.hc(ne);ie===null&&(ie=(ie=E.get(ne))?ie:this.copyNodeData({}),this.km(ie,ne),this.xf(ie))}if(Array.isArray(b)){for(y=b.length,E=0;E<y;E++)if(x=b[E],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(b=a.length,se=0;se<b;se++)y=this.hc(a[se]),y!==null&&this.cm(y)},Oe.$x=function(a,y){a.change!==Os&&Lt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var b=a.object;return a.isTransactionFinished&&b instanceof Za?(y===void 0&&(y=pm(this,this)),A1(this,b),a=this.Pv(b,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Oe.yA=function(a,y){return this.$x(a,y)},Oe.np=function(a){return a===void 0&&(a=pm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Oe.toJSON=function(a){return this.np(a)},Oe.Zw=function(a){var y=null;if(typeof a=="string")try{y=ur.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Lt("Unable to modify a Model from: "+a);var b=y.incremental;typeof b!="number"&&Lt("Unable to apply non-incremental changes to Model: "+a),b!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Oe.Ky=function(a){return this.Zw(a)},Ei.constructGraphLinksModel=function(){return new Ei},Oe=Ei.prototype,Oe.dm=function(a){if(Fn(a))for(var y=a.length,b=0;b<y;b++){var E=a[b];if(Xt(E)){var x=b;E=this.dm(E),Array.isArray(a)?a[x]=E:Lt("Cannot replace an object in an HTMLCollection or NodeList at "+x)}}else if(Xt(a)){for(y in a)if(b=a[y],Xt(b)&&(b=this.dm(b),a[y]=b,y==="points"&&Array.isArray(b))){for(x=b.length%2===0,E=0;E<b.length;E++)if(typeof b[E]!="number"){x=!1;break}if(x){for(x=new Qn,E=0;E<b.length/2;E++)x.add(new it(b[2*E],b[2*E+1]));x.freeze(),a[y]=x}}return bE(a)}return a},Oe.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()):Fn(a)?lf(this,a):Xt(a)?xy(this,a):typeof a=="function"?"null":a.toString()};function lf(a,y,b){b===void 0&&(b=!1);var E=y.length;if(0>=E)return"[]";var x=new bi;x.add("["),b&&1<E&&x.add(`
|
|
|
`);for(var z=0;z<E;z++){var ne=y[z];ne!==void 0&&(0<z&&(x.add(","),b&&x.add(`
|
|
|
`)),x.add(a.sm(ne)))}return b&&1<E&&x.add(`
|
|
|
`),x.add("]"),x.toString()}function L1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ou(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var b=y;if(b instanceof it)y={class:"go.Point",x:ou(b.x),y:ou(b.y)};else if(b instanceof an)y={class:"go.Size",width:ou(b.width),height:ou(b.height)};else if(b instanceof In)y={class:"go.Rect",x:ou(b.x),y:ou(b.y),width:ou(b.width),height:ou(b.height)};else if(b instanceof no)y={class:"go.Margin",top:ou(b.top),right:ou(b.right),bottom:ou(b.bottom),left:ou(b.left)};else if(b instanceof fi)b.sb()?y={class:"go.Spot",x:ou(b.x),y:ou(b.y),offsetX:ou(b.offsetX),offsetY:ou(b.offsetY)}:y={class:"go.Spot",enum:b.toString()};else if(b instanceof _o){if(y={class:"go.Brush",type:b.type.name},b.type===Ch?y.color=b.color:(b.type===eh||b.type===hc)&&(y.start=b.start,y.end=b.end,b.type===hc&&(b.startRadius!==0&&(y.startRadius=ou(b.startRadius)),isNaN(b.endRadius)||(y.endRadius=ou(b.endRadius)))),b.colorStops!==null){var E={};for(b=b.colorStops.iterator;b.next();)E[b.key]=b.value;y.colorStops=E}}else b instanceof Nr?(y={class:"go.Geometry",type:b.type.name},b.startX!==0&&(y.startX=ou(b.startX)),b.startY!==0&&(y.startY=ou(b.startY)),b.endX!==0&&(y.endX=ou(b.endX)),b.endY!==0&&(y.endY=ou(b.endY)),b.spot1.D(ho)||(y.spot1=b.spot1),b.spot2.D(Fo)||(y.spot2=b.spot2),b.type===Nr.o&&(y.path=Nr.ia(b))):b instanceof mn&&(y={class:"go.EnumValue",classType:pm(a,b.classType),name:b.name});E="{",b=!0;for(var x in y){var z=as(y,x);if(!L1(x,z))if(b?b=!1:E+=",",E+=a.quote(x)+":",x==="points"&&z instanceof Qn){var ne="[";for(z=z.iterator;z.next();){var ie=z.value;1<ne.length&&(ne+=","),ne+=a.sm(ie.x),ne+=",",ne+=a.sm(ie.y)}ne+="]",E+=ne}else E+=a.sm(z)}return E+"}"}function au(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function bE(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 b=a;if(y==="Point")b=new it(au(a.x),au(a.y));else if(y==="Size")b=new an(au(a.width),au(a.height));else if(y==="Rect")b=new In(au(a.x),au(a.y),au(a.width),au(a.height));else if(y==="Margin")b=new no(au(a.top),au(a.right),au(a.bottom),au(a.left));else if(y==="Spot")typeof a.enum=="string"?b=ma(a.enum):b=new fi(au(a.x),au(a.y),au(a.offsetX),au(a.offsetY));else if(y==="Brush"){if(b=new _o,b.type=li(_o,a.type),typeof a.color=="string"&&(b.color=a.color),a.start instanceof fi&&(b.start=a.start),a.end instanceof fi&&(b.end=a.end),typeof a.startRadius=="number"&&(b.startRadius=au(a.startRadius)),typeof a.endRadius=="number"&&(b.endRadius=au(a.endRadius)),a=a.colorStops,Xt(a))for(var E in a)b.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(b=null,typeof a.path=="string"?b=Nr.parse(a.path):b=new Nr,b.type=li(Nr,a.type),typeof a.startX=="number"&&(b.startX=au(a.startX)),typeof a.startY=="number"&&(b.startY=au(a.startY)),typeof a.endX=="number"&&(b.endX=au(a.endX)),typeof a.endY=="number"&&(b.endY=au(a.endY)),a.spot1 instanceof fi&&(b.spot1=a.spot1),a.spot2 instanceof fi&&(b.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=Cy(E),typeof E=="function"&&(b=li(E,a.name)));return b}Oe.Pe=function(a){return this.Lt.add(a),this},Oe.ik=function(a){this.Lt.remove(a)},Oe.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,b=y.length,E=0;E<b;E++)y.M(E)(a)},Oe.cb=function(a,y,b,E,x,z,ne){ys(this,"",a,y,b,E,x,z,ne)},Oe.g=function(a,y,b,E,x){ys(this,"",oa,a,this,y,b,E,x)},Oe.Fs=function(a,y,b,E,x,z){ys(this,"",oa,y,a,b,E,x,z)};function ys(a,y,b,E,x,z,ne,ie,se){ie===void 0&&(ie=null),se===void 0&&(se=null);var de=new va;de.model=a,de.change=b,de.modelChange=y,de.propertyName=E,de.object=x,de.oldValue=z,de.oldParam=ie,de.newValue=ne,de.newParam=se,a.ds(de)}Ei.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===oa){var b=a.object,E=a.propertyName,x=a.I(y);E===this.nodeKeyProperty&&this.lb(b)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),x!==void 0&&this.kb.add(x,b)),Ca(b,E,x)}else a.change===Ta?(b=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Xt(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]===a&&Ue(this.Tc,b),E!==void 0&&this.kb.remove(E)):(this.Tc[b]!==a&&dn(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Fn(E)&&a.propertyName&&(E=as(a.object,a.propertyName)),Fn(E)&&typeof b=="number"&&(a=a.newValue,y?Ue(E,b):dn(E,b,a))):Lt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===La?(b=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Xt(a)&&typeof b=="number"&&(E=this.wa(a),y?(this.Tc[b]!==a&&dn(this.Tc,b,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[b]===a&&Ue(this.Tc,b),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Fn(E)&&a.propertyName&&(E=as(a.object,a.propertyName)),Fn(E)&&typeof b=="number"&&(a=a.oldValue,y?dn(E,b,a):Ue(E,b))):Lt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Os&&Lt("unknown ChangedEvent: "+a.toString())},Ei.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ei.prototype.eb=function(a){return this.undoManager.eb(a)},Ei.prototype.Kf=function(){return this.undoManager.Kf()},Ei.prototype.commit=function(a,y){y===void 0&&(y="");var b=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=b}},Oe=Ei.prototype,Oe.La=function(a,y){y===void 0&&(y=""),ys(this,"SourceChanged",Os,y,a,null,null)},Oe.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("Key value for node data "+a+" is not a number or a string: "+y)}}},Oe.km=function(a,y){if(a!==null){var b=this.Th;if(b!=="")if(this.lb(a)){var E=as(a,b);E!==y&&this.hc(y)===null&&(Ca(a,b,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ys(this,"nodeKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b),this.jp(E,y))}else Ca(a,b,y)}};function uf(a){return typeof a=="number"||typeof a=="string"}Oe.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Oe.hc=function(a){return a===null&&Lt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&uf(a)?this.kb.I(a):null},Oe.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var b=this.wa(a);if(b===void 0||this.kb.contains(b)){var E=this.bl;if(E!==null&&(b=E(this,a),b!=null&&!this.kb.contains(b))){Ca(a,y,b);return}if(typeof b=="string"){for(E=2;this.kb.contains(b+E);)E++;Ca(a,y,b+E)}else if(b===void 0||typeof b=="number"){for(b=-this.kb.count-1;this.kb.contains(b);)b--;Ca(a,y,b)}}}}},Oe.xf=function(a){a!==null&&(Zi(a),this.lb(a)||k1(this,a,!0))};function k1(a,y,b){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&Lt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,b&&(E=a.Tc.length,dn(a.Tc,E,y)),ys(a,"nodeDataArray",Ta,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Oe.Fy=function(a){if(Fn(a))for(var y=a.length,b=0;b<y;b++)this.xf(a[b]);else for(a=a.iterator;a.next();)this.xf(a.value)},Oe.cm=function(a){a!==null&&I1(this,a,!0)};function I1(a,y,b){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,b){e:if(b=a.Tc,Array.isArray(b))E=b.indexOf(y);else{E=b.length;for(var x=0;x<E;x++)if(b[x]===y){E=x;break e}E=-1}if(0>E)return;Ue(a.Tc,E)}ys(a,"nodeDataArray",La,"nodeDataArray",a,y,null,E,null),a.qp(y)}Oe.nA=function(a){if(Fn(a))for(var y=a.length,b=0;b<y;b++)this.cm(a[b]);else for(a=a.iterator;a.next();)this.cm(a.value)},Oe.$z=function(a){if(a!==this.nodeDataArray&&Fn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var b=this.il;b.clear();for(var E=a.length,x=0;x<E;x++){var z=a[x],ne=this.wa(z);if(ne!==void 0){b.add(ne);var ie=this.hc(ne);ie!==z&&(ie!==null?(this.Do(ie,z),this.lm(z,ie)):(z=this.cloneDeep(z),this.km(z,ne),this.xf(z)))}else ne=this.cloneDeep(z),this.xf(ne),b.add(this.wa(ne))}for(a=y.iterator;a.next();)E=a.value,b.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),b.clear()}},Oe.jp=function(a,y){y!==void 0&&(a=fm(this,a),a instanceof ar&&this.Vf.add(y,a))},Oe.Lv=function(){},Oe.fm=function(){},Oe.em=function(){},Oe.qp=function(){};function td(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new ar,a.Vf.add(y,E)),E.add(b)}}function nd(a,y,b){if(y!==void 0){var E=a.Vf.I(y);E instanceof ar&&(b==null?a.Vf.remove(y):(E.remove(b),E.count===0&&a.Vf.remove(y)))}}function fm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof ar?a:null)}Oe.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ei.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):B0(this,a,!0),Xt(a)&&vi(a),a};function B0(a,y,b){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(b=0;b<y.length;b++){var x=B0(a,y[b],a.copiesArrayObjects);E.push(x)}return vi(E),E}if(b&&Xt(y)){b=(b=y.constructor)?new b:{},x=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")b.__gohashid=void 0;else if(E===x)b[x]=void 0;else{var z=as(y,E),ne=pm(a,z);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||z instanceof Ei||z instanceof na||z instanceof Za||z instanceof va||(z=B0(a,z,!1)),Ca(b,E,z)}return vi(b),b}return y instanceof it||y instanceof an||y instanceof In||y instanceof fi||y instanceof no?y.copy():y}Ei.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}}else!D1&&a instanceof rn&&(D1=!0,Ir('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Ir(" Is that really your intent?"));var E=as(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},Oe=Ei.prototype,Oe.set=function(a,y,b){this.setDataProperty(a,y,b)},Oe.Do=function(a,y){if(y){var b=this.lb(a),E;for(E in y)E==="__gohashid"||b&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Oe.Ay=function(a,y){this.ts(a,-1,y)},Oe.ts=function(a,y,b){0>y&&(y=a.length),dn(a,y,b),ys(this,"",Ta,"",a,null,b,null,y)},Oe.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Lt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var b=a[y];Ue(a,y),ys(this,"",La,"",a,b,null,y,null)},Oe.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=as(a,y),y===void 0))return"";if(typeof y=="string")return y;Lt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Oe.jm=function(a,y){if(a!==null){var b=this.lj;if(b!=="")if(this.lb(a)){var E=as(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),ys(this,"nodeCategory",oa,b,a,E,y))}else Ca(a,b,y)}},Oe.lm=function(a,y){this.jm(y,this.Ro(a))},Oe.Tl=function(){return!1},Oe.Wj=function(){return!1},Oe.ri=function(){return!1},Oe.xs=function(){return!1},Oe.Xj=function(){return!1};function wy(){return new Ei}function pm(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 pm(a,y.constructor);return typeof y}function Cy(a){return jc[a]?jc[a]:ur.go!==void 0&&ur.go[a]?ur.go[a]:null}function as(a,y){if(!a||!y)return null;try{if(typeof y=="function")var b=y(a);else typeof a.getAttribute=="function"?(b=a.getAttribute(y),b===null&&(b=void 0)):b=a[y]}catch(E){}return b}function Ca(a,y,b){if(a&&y)try{typeof y=="function"?y(a,b):typeof a.setAttribute=="function"?a.setAttribute(y,b):a[y]=b}catch(E){}}Jn.Object.defineProperties(Ei.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===""&&Lt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Lt("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 b=a.length,E=0;E<b;E++){var x=a[E];Xt(x)||Lt("Model.nodeDataArray must only contain Objects, not: "+x),Zi(x)}for(this.Tc=a,E=new Qn,x=0;x<b;x++){var z=a[x],ne=this.wa(z);ne===void 0||this.kb.I(ne)!==null?E.add(z):this.kb.add(ne,z)}for(E=E.iterator;E.next();)x=E.value,this.$u(x),z=this.wa(x),z!==void 0&&this.kb.add(z,x);for(ys(this,"nodeDataArray",oa,"nodeDataArray",this,y,a),y=0;y<b;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Ei.prototype.setCategoryForNodeData=Ei.prototype.jm,Ei.prototype.getCategoryForNodeData=Ei.prototype.Ro,Ei.prototype.removeArrayItem=Ei.prototype.ov,Ei.prototype.insertArrayItem=Ei.prototype.ts,Ei.prototype.addArrayItem=Ei.prototype.Ay,Ei.prototype.assignAllDataProperties=Ei.prototype.Do,Ei.prototype.set=Ei.prototype.set,Ei.prototype.clearUnresolvedReferences=Ei.prototype.Qy,Ei.prototype.mergeNodeDataArray=Ei.prototype.$z,Ei.prototype.removeNodeDataCollection=Ei.prototype.nA,Ei.prototype.removeNodeData=Ei.prototype.cm,Ei.prototype.addNodeDataCollection=Ei.prototype.Fy,Ei.prototype.addNodeData=Ei.prototype.xf,Ei.prototype.makeNodeDataKeyUnique=Ei.prototype.$u,Ei.prototype.findNodeDataForKey=Ei.prototype.hc,Ei.prototype.containsNodeData=Ei.prototype.lb,Ei.prototype.setKeyForNodeData=Ei.prototype.km,Ei.prototype.getKeyForNodeData=Ei.prototype.wa,Ei.prototype.updateTargetBindings=Ei.prototype.La,Ei.prototype.commit=Ei.prototype.commit,Ei.prototype.rollbackTransaction=Ei.prototype.Kf,Ei.prototype.commitTransaction=Ei.prototype.eb,Ei.prototype.startTransaction=Ei.prototype.Ea,Ei.prototype.raiseDataChanged=Ei.prototype.Fs,Ei.prototype.raiseChanged=Ei.prototype.g,Ei.prototype.raiseChangedEvent=Ei.prototype.cb,Ei.prototype.removeChangedListener=Ei.prototype.ik,Ei.prototype.addChangedListener=Ei.prototype.Pe,Ei.prototype.writeJsonValue=Ei.prototype.sm,Ei.prototype.replaceJsonObjects=Ei.prototype.dm,Ei.prototype.applyIncrementalJSON=Ei.prototype.Ky,Ei.prototype.applyIncrementalJson=Ei.prototype.Zw,Ei.prototype.toJSON=Ei.prototype.toJSON,Ei.prototype.toJson=Ei.prototype.np,Ei.prototype.toIncrementalJSON=Ei.prototype.yA,Ei.prototype.toIncrementalJson=Ei.prototype.$x,Ei.prototype.toIncrementalData=Ei.prototype.xA,Ei.prototype.clear=Ei.prototype.clear;var D1=!1,jc={};Ei.className="Model",Ei.fromJSON=Ei.fromJson=function(a,y){y===void 0&&(y=null);var b=null;if(typeof a=="string")try{b=ur.JSON.parse(a)}catch(z){}else typeof a=="object"?b=a:Lt("Unable to construct a Model from: "+a);if(y===null){a=null;var E=b.class;if(typeof E=="string")try{var x=null;E.indexOf("go.")===0?(E=E.substr(3),x=Cy(E)):(x=Cy(E),x===null&&(x=ur[E])),typeof x=="function"&&(a=new x)}catch(z){}a===null||a instanceof Ei?y=a:Lt("Unable to construct a Model of declared class: "+b.class)}return y===null&&(y=Ei.constructGraphLinksModel()),y.gp(b),y.kv(b),y},Ei.safePropertyValue=as,Ei.safePropertySet=Ca,jc.Brush=_o,jc.ChangedEvent=va,jc.Geometry=Nr,jc.Margin=no,jc.Panel=Tr,jc.Point=it,jc.Rect=In,jc.Size=an,jc.Spot=fi,jc.Transaction=Za,jc.UndoManager=na;function ss(a,y,b,E){vi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),b===void 0&&(b=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=b,E===void 0?(this.el=M1,this.wk=null):(this.el=gm,this.wk=E),this.st=new ar}ss.prototype.copy=function(){var a=new ss;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},Oe=ss.prototype,Oe.qb=function(a){a.classType===ss&&(this.mode=a)},Oe.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Oe.freeze=function(){return this._isFrozen=!0,this},Oe.ka=function(){return this._isFrozen=!1,this},Oe.Kx=function(a){return a===void 0&&(a=null),this.mode=gm,this.backConverter=a,this},Oe.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Oe.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function R1(a,y,b){return a=a.sourceName,a===null||a===""?y:a==="/"?b.part:a==="."?b:a===".."?b.panel:y.fb(a)}Oe.Mv=function(a,y,b){var E=this.sl;if(b===void 0||E===""||E===b){b=this.xl;var x=this.Im;if(x===null&&b==="")Ir("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=as(y,E)),z!==void 0)if(x===null)b!==""&&Ca(a,b,z);else try{if(b!==""){var ne=x(z,a);Ca(a,b,ne)}else x(z,a)}catch(ie){}}}},Oe.sp=function(a,y,b,E){if(this.el===gm){var x=this.xl;if(b===void 0||x===b){b=this.sl;var z=this.wk,ne=a;if(x!==""&&(ne=as(a,x)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var ie=E!==null?E.diagram:null,se=ie!==null?ie.model:null;if(z===null){if(b!=="")se!==null?se.setDataProperty(y,b,ne):Ca(y,b,ne);else if(se!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var de=E.itemIndex,pe=E.panel.itemArray;se.ov(pe,de),se.ts(pe,de,ne)}}else try{if(b!==""){var Se=z(ne,y,se);se!==null?se.setDataProperty(y,b,Se):Ca(y,b,Se)}else{var Le=z(ne,y,se);if(Le!==void 0&&se!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Me=E.itemIndex,ze=E.panel.itemArray;se.ov(ze,Me),se.ts(ze,Me,Le)}}}catch(qe){}}finally{this.st.remove(a)}}}},Jn.Object.defineProperties(ss.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&cn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&cn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&cn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&cn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&cn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&cn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&cn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&cn(this),this.el=a}}}),ss.prototype.updateSource=ss.prototype.sp,ss.prototype.updateTarget=ss.prototype.Mv,ss.prototype.ofModel=ss.prototype.dA,ss.prototype.ofObject=ss.prototype.cp,ss.prototype.makeTwoWay=ss.prototype.Kx;var EE="Binding",M1=new mn(ss,"OneWay",1),gm=new mn(ss,"TwoWay",2);ss.className="Binding",ss.parseEnum=function(a,y){return function(b){return b=li(a,b),b===null?y:b}},ss.toString=mi,ss.OneWay=M1,ss.TwoWay=gm;function No(a,y,b){Ei.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new ar,this.wb=new An,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&&(Fn(a)?this.nodeDataArray=a:b=a),b&&(Object.assign(this,b),a=b.Changed)&&(delete this.Changed,this.Pe(a))}Sn(No,Ei),No.constructGraphLinksModel=Ei.constructGraphLinksModel,No.prototype.cloneProtected=function(a){Ei.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},Oe=No.prototype,Oe.clear=function(){Ei.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Oe.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 b=a.length,E;for(E=0;E<b;E++){var x=a[E];y+=" "+this.wa(x)+":"+mi(x)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,b=a.length,E=0;E<b;E++)x=a[E],y+=" "+ec(this,x,!0)+"-->"+ec(this,x,!1)}return y},Oe.Qv=function(a,y){this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var b=Ei.prototype.Qv.call(this,a,y),E=this,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===La&&ne.add(pe.oldValue):E.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):pe.object instanceof Ei||E.lb(pe.object)||O1(E,pe.object).each(function(Se){z.add(Se)})))});var se=this.il;se.clear(),x.each(function(pe){se.add(E.Ac(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(E.Ac(pe)),y&&z.add(pe)}),a=E.cloneDeep(z.Fa()),0<se.count&&(b===null&&(b={}),y?b.removedLinkKeys=se.Fa():b.insertedLinkKeys=se.Fa()),0<a.length&&(b===null&&(b={}),b.modifiedLinkData=a),0<de.count&&(b===null&&(b={}),y?b.insertedLinkKeys=de.Fa():b.removedLinkKeys=de.Fa()),de.clear(),se.clear(),b},Oe.rm=function(){var a=Ei.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},Oe.gp=function(a){Ei.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)},Oe.Rv=function(){var a=Ei.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+lf(this,this.linkDataArray,!0);return a+y},Oe.kv=function(a){Ei.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var b=new ar,E=0;E<a.linkDataArray.length;E++){var x=a.linkDataArray[E];F0(a,y,x,x,b)}return b}Oe.Pv=function(a,y){this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var b=Ei.prototype.Pv.call(this,a,y),E=this,x=new ar,z=new ar,ne=new ar,ie=this.vh;a.changes.each(function(pe){pe.model===E&&(pe.modelChange==="linkDataArray"?pe.change===Ta?x.add(pe.newValue):pe.change===La&&ne.add(pe.oldValue):E.Jc(pe.object)?z.add(pe.object):pe.object!==null&&(pe.object!==null&&ie&&ie.contains(pe.object)?ie.get(pe.object).each(function(Se){E.Jc(Se)&&z.add(Se)}):pe.object instanceof Ei||E.lb(pe.object)||O1(E,pe.object).each(function(Se){z.add(Se)})))});var se=this.il;se.clear(),x.each(function(pe){se.add(E.Ac(pe)),y||z.add(pe)});var de=this.kl;return de.clear(),ne.each(function(pe){de.add(E.Ac(pe)),y&&z.add(pe)}),a=b,0<se.count&&(a+=(y?this.Xv:this.Vv)+lf(this,se.Fa(),!0)),0<z.count&&(a+=this.iy+lf(this,z.Fa(),!0)),0<de.count&&(a+=(y?this.Vv:this.Xv)+lf(this,de.Fa(),!0)),de.clear(),se.clear(),a},Oe.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)&&Lt("applyIncrementalJson cannot change Model properties"),Ei.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var b=y.length,E=0;E<b;E++){var x=y[E],z=this.jh(x);z===null&&(z=this.Jo({}),this.Ks(z,x),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(b=y.length,E=0;E<b;E++)if(x=y[E],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]);_1(this,x,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)b=this.jh(a[y]),b!==null&&this.bm(b)},No.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===oa){var b=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(b)){var x=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),x!==void 0&&this.wb.add(x,b),Ca(b,E,x);return}}else if(a.change===Ta){if(b=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Xt(a)&&typeof b=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[b]===a&&this.md.splice(b,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[b]!==a&&this.md.splice(b,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof b=="number"&&(y?(b=E.indexOf(a.newValue),0<=b&&E.splice(b,1)):0>E.indexOf(a.newValue)&&E.splice(b,0,a.newValue));return}}else if(a.change===La){if(b=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Xt(a)&&typeof b=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[b]!==a&&this.md.splice(b,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[b]===a&&this.md.splice(b,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof b=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(b,0,a.newValue):(b=E.indexOf(a.newValue),0<=b&&E.splice(b,1)));return}}Ei.prototype.changeState.call(this,a,y)}},Oe=No.prototype,Oe.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var b=this.hc(a);b===null&&(b=this.copyNodeData(y),Ca(b,this.nodeKeyProperty,a),this.xf(b))}return a}},Oe.yx=function(a){return ec(this,a,!0)},Oe.wv=function(a,y){wg(this,a,y,!0)},Oe.Bx=function(a){return ec(this,a,!1)},Oe.Bv=function(a,y){wg(this,a,y,!1)};function ec(a,y,b){if(y!==null&&(a=b?a.lf:a.mf,a!==""&&(a=as(y,a),a!==void 0))){if(uf(a))return a;Lt((b?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function wg(a,y,b,E){if(b===null&&(b=void 0),y!==null){var x=E?a.lf:a.mf;if(x!=="")if(b=a.Vl(b),a.Jc(y)){var z=as(y,x);z!==b&&(nd(a,z,y),Ca(y,x,b),a.hc(b)===null&&td(a,b,y),ys(a,E?"linkFromKey":"linkToKey",oa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Ca(y,x,b)}}Oe.zx=function(a){return _0(this,a,!0)},Oe.xv=function(a,y){Cg(this,a,y,!0)},Oe.Cx=function(a){return _0(this,a,!1)},Oe.Cv=function(a,y){Cg(this,a,y,!1)};function _0(a,y,b){return y===null||(a=b?a.ej:a.fj,a==="")?"":(y=as(y,a),y===void 0?"":y)}function Cg(a,y,b,E){if(y!==null){var x=E?a.ej:a.fj;if(x!=="")if(a.Jc(y)){var z=as(y,x);z===void 0&&(z=""),z!==b&&(Ca(y,x,b),ys(a,E?"linkFromPortId":"linkToPortId",oa,x,y,z,b),typeof x=="string"&&a.La(y,x))}else Ca(y,x,b)}}Oe.Ef=function(a){if(a===null)return U0;var y=this.je;return y===""?U0:(a=as(a,y),a===void 0?U0:a)},Oe.Ls=function(a,y){if(a!==null){var b=this.je;if(b!=="")if(this.Jc(a)){var E=as(a,b);if(E===void 0&&(E=U0),E!==y){if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)nd(this,E[z],a);for(Ca(a,b,y),x=y.length,z=0;z<x;z++){var ne=y[z];this.hc(ne)===null&&td(this,ne,a)}ys(this,"linkLabelKeys",oa,b,a,E,y),typeof b=="string"&&this.La(a,b)}}else Ca(a,b,y)}},Oe.Bu=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=as(a,b);if(E===void 0)b=[],b.push(y),this.Ls(a,b);else if(Array.isArray(E)){var x=E.indexOf(y);0<=x||(x=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&td(this,y,a),ys(this,"linkLabelKeys",Ta,b,a,null,y,null,x)))}else Lt(b+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Oe.Qx=function(a,y){if(y!=null&&a!==null){var b=this.je;if(b!==""){var E=as(a,b);if(Array.isArray(E)){var x=E.indexOf(y);0>x||(E.splice(x,1),this.Jc(a)&&(nd(this,y,a),ys(this,"linkLabelKeys",La,b,a,y,null,x,null)))}else E!==void 0&&Lt(b+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Oe.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("Key value for link data "+a+" is not a number or a string: "+y)}}},Oe.Ks=function(a,y){if(a!==null){var b=this.Jh;if(b!=="")if(this.Jc(a)){var E=as(a,b);E!==y&&this.jh(y)===null&&(Ca(a,b,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ys(this,"linkKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},Oe.jh=function(a){return a===null&&Lt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&uf(a)?this.wb.I(a):null},Oe.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var b=this.Ac(a);if(b===void 0||this.wb.contains(b)){var E=this.cl;if(E!==null&&(b=E(this,a),b!=null&&!this.wb.contains(b))){Ca(a,y,b);return}if(typeof b=="string"){for(E=2;this.wb.contains(b+E);)E++;Ca(a,y,b+E)}else if(b===void 0||typeof b=="number"){for(b=-this.wb.count-1;this.wb.contains(b);)b--;Ca(a,y,b)}}}}},Oe.Jc=function(a){return a===null?!1:this.$f.contains(a)},Oe.fi=function(a){a!==null&&(Zi(a),this.Jc(a)||F1(this,a,!0))};function F1(a,y,b){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&Lt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,b&&(E=a.md.length,a.md.splice(E,0,y)),ys(a,"linkDataArray",Ta,"linkDataArray",a,null,y,null,E),Py(a,y)}Oe.Ey=function(a){if(Array.isArray(a))for(var y=a.length,b=0;b<y;b++)this.fi(a[b]);else for(a=a.iterator;a.next();)this.fi(a.value)},Oe.bm=function(a){a!==null&&B1(this,a,!0)};function B1(a,y,b){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,b){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(ys(a,"linkDataArray",La,"linkDataArray",a,y,null,E,null),b=ec(a,y,!0),nd(a,b,y),b=ec(a,y,!1),nd(a,b,y),E=a.Ef(y),Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],nd(a,b,y)}Oe.lA=function(a){if(Array.isArray(a))for(var y=a.length,b=0;b<y;b++)this.bm(a[b]);else for(a=a.iterator;a.next();)this.bm(a.value)},Oe.Zz=function(a){if(this.linkKeyProperty===""&&Lt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Fn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var b=this.il;b.clear();for(var E=a.length,x=0;x<E;x++){var z=a[x],ne=this.Ac(z);if(ne!==void 0){b.add(ne);var ie=this.jh(ne);ie!==z&&(ie!==null?(this.Do(ie,z),_1(this,z,ie)):(z=this.cloneDeep(z),this.Ks(z,ne),this.fi(z)))}else ne=this.cloneDeep(z),this.fi(ne),b.add(this.Ac(ne))}for(a=y.iterator;a.next();)E=a.value,b.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),b.clear()}};function Py(a,y){var b=ec(a,y,!0);b=a.Vl(b),a.hc(b)===null&&td(a,b,y),b=ec(a,y,!1),b=a.Vl(b),a.hc(b)===null&&td(a,b,y);var E=a.Ef(y);if(Array.isArray(E))for(var x=E.length,z=0;z<x;z++)b=E[z],a.hc(b)===null&&td(a,b,y)}Oe.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):B0(this,a,!0),Xt(a)&&(vi(a),this.lf!==""&&Ca(a,this.lf,void 0),this.mf!==""&&Ca(a,this.mf,void 0),this.je!==""&&Ca(a,this.je,[])),a},Oe.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!as(a,y)},Oe.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Oe.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var b=this.Je;if(b!=="")if(this.lb(a)){var E=as(a,b);E!==y&&(nd(this,E,a),Ca(a,b,y),this.hc(y)===null&&td(this,y,a),ys(this,"nodeGroupKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},No.prototype.copyNodeData=function(a){return a===null?null:(a=Ei.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||as(a,this.Je)===void 0||Ca(a,this.Je,void 0),a)},No.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}if(y===this.nodeGroupKeyProperty){this.mp(a,b);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){wg(this,a,b,!0);return}if(y===this.linkToKeyProperty){wg(this,a,b,!1);return}if(y===this.linkFromPortIdProperty){Cg(this,a,b,!0);return}if(y===this.linkToPortIdProperty){Cg(this,a,b,!1);return}if(y===this.linkKeyProperty){this.Ks(a,b);return}if(y===this.linkCategoryProperty){this.lp(a,b);return}if(y===this.linkLabelKeysProperty){this.Ls(a,b);return}}var E=as(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},Oe=No.prototype,Oe.Do=function(a,y){if(y){var b=this.lb(a),E=this.Jc(a),x;for(x in y)x==="__gohashid"||b&&x===this.nodeKeyProperty||b&&x===this.nodeIsGroupProperty&&as(a,x)===y[x]||E&&x===this.linkKeyProperty||this.setDataProperty(a,x,y[x])}},Oe.jp=function(a,y){Ei.prototype.jp.call(this,a,y);for(var b=this.kb.iterator;b.next();)this.qv(b.value,a,y);for(b=this.$f.iterator;b.next();){var E=b.value,x=a,z=y;if(ec(this,E,!0)===x){var ne=this.lf;Ca(E,ne,z),ys(this,"linkFromKey",oa,ne,E,x,z),typeof ne=="string"&&this.La(E,ne)}if(ec(this,E,!1)===x&&(ne=this.mf,Ca(E,ne,z),ys(this,"linkToKey",oa,ne,E,x,z),typeof ne=="string"&&this.La(E,ne)),ne=this.Ef(E),Array.isArray(ne))for(var ie=ne.length,se=this.je,de=0;de<ie;de++)ne[de]===x&&(ne[de]=z,ys(this,"linkLabelKeys",Ta,se,E,x,z,de,de))}},Oe.qv=function(a,y,b){if(this.lh(a)===y){var E=this.Je;Ca(a,E,b),ys(this,"nodeGroupKey",oa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},Oe.Lv=function(){Ei.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,b=0;b<y;b++)Py(this,a[b])},Oe.fm=function(a){Ei.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Mr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var x=this.Je;ys(this,"nodeGroupKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}else if(ec(this,E,!0)===a&&(x=this.lf,ys(this,"linkFromKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)),ec(this,E,!1)===a&&(x=this.mf,ys(this,"linkToKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)),x=this.Ef(E),Array.isArray(x))for(var z=x.length,ne=this.je,ie=0;ie<z;ie++)x[ie]===a&&(ys(this,"linkLabelKeys",Ta,ne,E,a,a,ie,ie),b.push(E))}for(y=0;y<b.length;y++)nd(this,a,b[y]);Ur(b)}},Oe.em=function(a){Ei.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&td(this,y,a)},Oe.qp=function(a){Ei.prototype.qp.call(this,a);var y=this.lh(a);nd(this,y,a)},Oe.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=as(a,y),y===void 0))return"";if(typeof y=="string")return y;Lt("getCategoryForLinkData found a non-string category for "+a+": "+y)},No.prototype.getLinkCategoryForData=function(a){return this.ps(a)},No.prototype.lp=function(a,y){if(a!==null){var b=this.dj;if(b!=="")if(this.Jc(a)){var E=as(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),ys(this,"linkCategory",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},No.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Oe=No.prototype,Oe.lm=function(a,y){Ei.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function _1(a,y,b){a.lp(b,a.ps(y)),a.wv(b,a.yx(y)),a.Bv(b,a.Bx(y)),a.Ls(b,a.Ef(y)),a.xv(b,a.zx(y)),a.Cv(b,a.Cx(y))}Oe.Wj=function(){return!0},Oe.ri=function(){return!0},Oe.xs=function(){return!0},Oe.Xj=function(){return!0},Jn.Object.defineProperties(No.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 b=a.length,E=0;E<b;E++){var x=a[E];Xt(x)||Lt("GraphLinksModel.linkDataArray must only contain Objects, not: "+x),Zi(x)}if(this.md=a,this.linkKeyProperty!==""){for(E=new Qn,x=0;x<b;x++){var z=a[x],ne=this.Ac(z);ne===void 0||this.wb.I(ne)!==null?E.add(z):this.wb.add(ne,z)}for(E=E.iterator;E.next();)x=E.value,this.Bs(x),z=this.Ac(x),z!==void 0&&this.wb.add(z,x)}for(E=new ar,x=0;x<b;x++)E.add(a[x]);for(this.$f=E,ys(this,"linkDataArray",oa,"linkDataArray",this,y,a),y=0;y<b;y++)Py(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var b=this.linkDataArray.length,E=0;E<b;E++){var x=this.linkDataArray[E],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"}}}),No.prototype.setCategoryForLinkData=No.prototype.lp,No.prototype.getCategoryForLinkData=No.prototype.ps,No.prototype.assignAllDataProperties=No.prototype.Do,No.prototype.setGroupKeyForNodeData=No.prototype.mp,No.prototype.getGroupKeyForNodeData=No.prototype.lh,No.prototype.isGroupForNodeData=No.prototype.Yu,No.prototype.copyLinkData=No.prototype.Jo,No.prototype.mergeLinkDataArray=No.prototype.Zz,No.prototype.removeLinkDataCollection=No.prototype.lA,No.prototype.removeLinkData=No.prototype.bm,No.prototype.addLinkDataCollection=No.prototype.Ey,No.prototype.addLinkData=No.prototype.fi,No.prototype.containsLinkData=No.prototype.Jc,No.prototype.makeLinkDataKeyUnique=No.prototype.Bs,No.prototype.findLinkDataForKey=No.prototype.jh,No.prototype.setKeyForLinkData=No.prototype.Ks,No.prototype.getKeyForLinkData=No.prototype.Ac,No.prototype.removeLabelKeyForLinkData=No.prototype.Qx,No.prototype.addLabelKeyForLinkData=No.prototype.Bu,No.prototype.setLabelKeysForLinkData=No.prototype.Ls,No.prototype.getLabelKeysForLinkData=No.prototype.Ef,No.prototype.setToPortIdForLinkData=No.prototype.Cv,No.prototype.getToPortIdForLinkData=No.prototype.Cx,No.prototype.setFromPortIdForLinkData=No.prototype.xv,No.prototype.getFromPortIdForLinkData=No.prototype.zx,No.prototype.setToKeyForLinkData=No.prototype.Bv,No.prototype.getToKeyForLinkData=No.prototype.Bx,No.prototype.setFromKeyForLinkData=No.prototype.wv,No.prototype.getFromKeyForLinkData=No.prototype.yx,No.prototype.clear=No.prototype.clear;var U0=Object.freeze([]);No.className="GraphLinksModel",jc.GraphLinksModel=No,Ei.constructGraphLinksModel=Ei.constructGraphLinksModel=function(){return new No},Ei.initDiagramModel=wy=function(){return new No};function su(a,y){Ei.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Fn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Sn(su,Ei),su.constructGraphLinksModel=Ei.constructGraphLinksModel,su.prototype.cloneProtected=function(a){Ei.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Oe=su.prototype,Oe.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 b=a.length,E=0;E<b;E++){var x=a[E];y+=" "+this.wa(x)+":"+mi(x)}}return y},Oe.rm=function(){var a=Ei.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Oe.gp=function(a){Ei.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Oe.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Lt("applyIncrementalJson cannot change Model properties"),Ei.prototype.fp.call(this,a)},Oe.Vl=function(a){return a},Oe.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=as(a,y),y!==void 0)){if(uf(y))return y;Lt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Oe.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var b=this.Ke;if(b!=="")if(y=this.Vl(y),this.lb(a)){var E=as(a,b);E!==y&&(nd(this,E,a),Ca(a,b,y),this.hc(y)===null&&td(this,y,a),ys(this,"nodeParentKey",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},Oe.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=as(a,y),y===void 0)?"":typeof y=="string"?y:(Lt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},su.prototype.getLinkCategoryForData=function(a){return this.ss(a)},su.prototype.Ms=function(a,y){if(a!==null){var b=this.nj;if(b!=="")if(this.lb(a)){var E=as(a,b);E===void 0&&(E=""),E!==y&&(Ca(a,b,y),ys(this,"parentLinkCategory",oa,b,a,E,y),typeof b=="string"&&this.La(a,b))}else Ca(a,b,y)}},su.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},su.prototype.copyNodeData=function(a){return a===null?null:(a=Ei.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||as(a,this.Ke)===void 0||Ca(a,this.Ke,void 0),a)},su.prototype.setDataProperty=function(a,y,b){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,b);return}if(y===this.nodeCategoryProperty){this.jm(a,b);return}if(y===this.nodeParentKeyProperty){this.qe(a,b);return}}var E=as(a,y);E!==b&&(Ca(a,y,b),this.Fs(a,y,E,b))},Oe=su.prototype,Oe.jp=function(a,y){Ei.prototype.jp.call(this,a,y);for(var b=this.kb.iterator;b.next();)this.qv(b.value,a,y)},Oe.qv=function(a,y,b){if(this.mh(a)===y){var E=this.Ke;Ca(a,E,b),ys(this,"nodeParentKey",oa,E,a,y,b),typeof E=="string"&&this.La(a,E)}},Oe.fm=function(a){Ei.prototype.fm.call(this,a),a=this.wa(a);var y=fm(this,a);if(y!==null){var b=Mr();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var x=this.Ke;ys(this,"nodeParentKey",oa,x,E,a,a),typeof x=="string"&&this.La(E,x),b.push(E)}}for(y=0;y<b.length;y++)nd(this,a,b[y]);Ur(b)}},Oe.em=function(a){Ei.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&td(this,y,a)},Oe.qp=function(a){Ei.prototype.qp.call(this,a);var y=this.mh(a);nd(this,y,a)},Oe.lm=function(a,y){Ei.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Oe.Tl=function(){return!0},Oe.xs=function(){return!0},Jn.Object.defineProperties(su.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"}}}),su.prototype.setParentLinkCategoryForNodeData=su.prototype.Ms,su.prototype.getParentLinkCategoryForNodeData=su.prototype.ss,su.prototype.setParentKeyForNodeData=su.prototype.qe,su.prototype.getParentKeyForNodeData=su.prototype.mh,su.className="TreeModel",jc.TreeModel=su;function Da(a){Pa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Vc,this.Ti=0,this.Zv=new it,this.Jp=this.me=0,this.Xr=new Sm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Vc,this.K=lu,this.nd=Tg,this.hd=vy,this.tf=6,this.Nn=Z0,a&&Object.assign(this,a)}Sn(Da,Pa),Da.prototype.cloneProtected=function(a){Pa.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},Da.prototype.qb=function(a){a.classType===Da?a===V0||a===W0||a===G0||a===j0||a===Tg?this.sorting=a:a===Zf||a===Pg||a===lu||a===df?this.direction=a:a===Dh||a===cf||a===Vc||a===Wc?this.arrangement=a:(a===Dp||a===Z0)&&(this.nodeDiameterFormula=a):Pa.prototype.qb.call(this,a)},Da.prototype.createNetwork=function(){return new Ag(this)},Da.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 Qn;y.addAll(a.iterator),a=new Qn;var b=new Qn,E=this.sort(y),x,z,ne=this.Jp,ie=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 Le=this.sweepAngle;if((!isFinite(Le)||360<Le||1>Le)&&(Le=360),y=this.spacing,isFinite(y)||(y=NaN),ie===Wc&&se===Dp?ie=Vc:ie===Wc&&se!==Dp&&(ie=this.arrangement),(this.direction===Zf||this.direction===Pg)&&this.sorting!==Tg){for(se=0;!(se>=E.length)&&(a.add(E.M(se)),!(se+1>=E.length));se+=2)b.add(E.M(se+1));this.direction===Zf?(this.arrangement===Wc&&a.reverse(),E=new Qn,E.addAll(a),E.addAll(b)):(this.arrangement===Wc&&b.reverse(),E=new Qn,E.addAll(b),E.addAll(a))}se=E.length;for(var Me=z=x=0;Me<E.length;Me++){var ze=Se+Le*z*(this.direction===lu?1:-1)/se,qe=E.M(Me).diameter;isNaN(qe)&&(qe=hf(E.M(Me),ze)),360>Le&&(Me===0||Me===E.length-1)&&(qe/=2),x+=qe,z++}if(isNaN(de)||ie===Wc){if(isNaN(y)&&(y=6),ie!==Vc&&ie!==Wc){for(z=-1/0,ne=0;ne<se;ne++)Me=E.M(ne),x=E.M(ne===se-1?0:ne+1),isNaN(Me.diameter)&&hf(Me,0),isNaN(x.diameter)&&hf(x,0),z=Math.max(z,(Me.diameter+x.diameter)/2);ne=z+y,ie===Dh?de=(z+y)/(2*Math.PI/se):de=H0(this,ne*(360<=Le?se:se-1),pe,Se*Math.PI/180,Le*Math.PI/180)}else de=H0(this,x+(360<=Le?se:se-1)*(ie!==Wc?y:1.6*y),pe,Se*Math.PI/180,Le*Math.PI/180);z=de*pe}else if(z=de*pe,Me=Ty(this,de,z,Se*Math.PI/180,Le*Math.PI/180),isNaN(y))(ie===Vc||ie===Wc)&&(y=(Me-x)/(360<=Le?se:se-1));else if(ie===Vc||ie===Wc)Me=(Me-x)/(360<=Le?se:se-1),Me<y?(de=H0(this,x+y*(360<=Le?se:se-1),pe,Se*Math.PI/180,Le*Math.PI/180),z=de*pe):y=Me;else{for(ne=-1/0,x=0;x<se;x++)ze=E.M(x),qe=E.M(x===se-1?0:x+1),isNaN(ze.diameter)&&hf(ze,0),isNaN(qe.diameter)&&hf(qe,0),ne=Math.max(ne,(ze.diameter+qe.diameter)/2);ne+=y,x=H0(this,ne*(360<=Le?se:se-1),pe,Se*Math.PI/180,Le*Math.PI/180),x>de?(de=x,z=de*pe):ne=Me/(360<=Le?se:se-1)}if(this.kw=ie,this.lc=de,this.Zm=pe,this.lw=Se,this.Wp=Le,this.Ti=y,this.me=z,this.Jp=ne,y=E,E=this.kw,ie=this.lc,de=this.lw,pe=this.Wp,Se=this.Ti,Le=this.me,se=this.Jp,this.direction!==Zf&&this.direction!==Pg||E!==Wc)if(this.direction===Zf||this.direction===Pg){switch(ne=0,E){case cf:ne=180*z0(this,ie,Le,de,se)/Math.PI;break;case Vc:se=y=0,ne=a.first(),ne!==null&&(y=hf(ne,Math.PI/2)),ne=b.first(),ne!==null&&(se=hf(ne,Math.PI/2)),ne=180*z0(this,ie,Le,de,Se+(y+se)/2)/Math.PI;break;case Dh:ne=pe/y.length}if(this.direction===Zf){switch(E){case cf:ym(this,a,de,df);break;case Vc:vm(this,a,de,df);break;case Dh:mm(this,a,pe/2,de,df)}switch(E){case cf:ym(this,b,de+ne,lu);break;case Vc:vm(this,b,de+ne,lu);break;case Dh:mm(this,b,pe/2,de+ne,lu)}}else{switch(E){case cf:ym(this,b,de,df);break;case Vc:vm(this,b,de,df);break;case Dh:mm(this,b,pe/2,de,df)}switch(E){case cf:ym(this,a,de+ne,lu);break;case Vc:vm(this,a,de+ne,lu);break;case Dh:mm(this,a,pe/2,de+ne,lu)}}}else switch(E){case cf:ym(this,y,de,this.direction);break;case Vc:vm(this,y,de,this.direction);break;case Dh:mm(this,y,pe,de,this.direction);break;case Wc:U1(this,y,pe,de,this.direction)}else U1(this,y,pe,de-pe/2,lu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function mm(a,y,b,E,x){var z=a.Wp,ne=a.lc;a=a.me,E=E*Math.PI/180,b=b*Math.PI/180;for(var ie=y.length,se=0;se<ie;se++){var de=E+(x===lu?se*b/(360<=z?ie:ie-1):-(se*b)/ie),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 vm(a,y,b,E){var x=a.lc,z=a.me,ne=a.Ti;b=b*Math.PI/180;for(var ie=y.length,se=0;se<ie;se++){var de=y.M(se),pe=y.M(se===ie-1?0:se+1),Se=z*Math.sin(b);de.centerX=x*Math.cos(b),de.centerY=Se,de.actualAngle=180*b/Math.PI,isNaN(de.diameter)&&hf(de,0),isNaN(pe.diameter)&&hf(pe,0),de=z0(a,x,z,E===lu?b:-b,(de.diameter+pe.diameter)/2+ne),b+=E===lu?de:-de}}function ym(a,y,b,E){var x=a.lc,z=a.me,ne=a.Jp;b=b*Math.PI/180;for(var ie=y.length,se=0;se<ie;se++){var de=y.M(se);de.centerX=x*Math.cos(b),de.centerY=z*Math.sin(b),de.actualAngle=180*b/Math.PI,de=z0(a,x,z,E===lu?b:-b,ne),b+=E===lu?de:-de}}function U1(a,y,b,E,x){var z=a.Wp;if(a.mj=0,a.Xr=new Sm,360>b){for(z=E+(x===lu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,z1(a,y,b,E,x)}else H1(a,y,b,E,x);a.Xr.commit(y)}function H1(a,y,b,E,x){var z=a.lc,ne=a.Ti,ie=a.Zm,se=z*Math.cos(E*Math.PI/180),de=a.me*Math.sin(E*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=it.alloc();for(var Se=0;Se<pe.length&&(pe[Se].centerX=se,pe[Se].centerY=de,!(Se>=pe.length-1));Se++)G1(a,se,de,pe,Se,x,z)||j1(a,se,de,pe,Se,x,z),se=z.x,de=z.y;if(it.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 Le=Math.abs(se-z)-((pe[0].width+pe[pe.length-1].width)/2+ne),Me=Math.abs(de-Se)-((pe[0].height+pe[pe.length-1].height)/2+ne);ne=0,1>Math.abs(Me)?Math.abs(se-z)<(pe[0].width+pe[pe.length-1].width)/2&&(ne=0):ne=0<Me?Me:1>Math.abs(Le)?0:Le,se=Math.abs(z)>Math.abs(Se)?0<z!=de>Se:0<Se!=se<z,(se=x===lu?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*ie,H1(a,y,b,E,x))}}}function z1(a,y,b,E,x){for(var z=a.lc,ne=a.me,ie=a.Zm,se=z*Math.cos(E*Math.PI/180),de=ne*Math.sin(E*Math.PI/180),pe=it.alloc(),Se=y.Fa(),Le=0;Le<Se.length&&(Se[Le].centerX=se,Se[Le].centerY=de,!(Le>=Se.length-1));Le++)G1(a,se,de,Se,Le,x,pe)||j1(a,se,de,Se,Le,x,pe),se=pe.x,de=pe.y;if(it.free(pe),a.mj++,!(23<a.mj)){if(se=Math.atan2(de,se),se=x===lu?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*ie,z1(a,y,b,E,x))}}function G1(a,y,b,E,x,z,ne){var ie=a.lc,se=a.me,de=0;a=(E[x].width+E[x+1].width)/2+a.Ti;var pe=!1;if(0<=b!=(z===lu)){if(z=y+a,z>ie){if(z=y-a,z<-ie)return ne.x=z,ne.y=de,!1;pe=!0}}else if(z=y-a,z<-ie){if(z=y+a,z>ie)return ne.x=z,ne.y=de,!1;pe=!0}return de=Math.sqrt(1-Math.min(1,z*z/(ie*ie)))*se,0>b!==pe&&(de=-de),Math.abs(b-de)>(E[x].height+E[x+1].height)/2?(ne.x=z,ne.y=de,!1):(ne.x=z,ne.y=de,!0)}function j1(a,y,b,E,x,z,ne){var ie=a.lc,se=a.me,de=0;if(a=(E[x].height+E[x+1].height)/2+a.Ti,E=!1,0<=y!=(z===lu)){if(z=b-a,z<-se){if(z=b+a,z>se){ne.x=de,ne.y=z;return}E=!0}}else if(z=b+a,z>se){if(z=b-a,z<-se){ne.x=de,ne.y=z;return}E=!0}de=Math.sqrt(1-Math.min(1,z*z/(se*se)))*ie,0>y!==E&&(de=-de),ne.x=de,ne.y=z}Da.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Da.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,b=this.actualCenter;a?b=new it(0,0):(b.x=this.arrangementOrigin.x+this.lc,b.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var x=E.value;x.x+=b.x,x.y+=b.y,x.commit()}a&&(this.group.Va(),a=this.group.position.copy(),b=this.group.location.copy(),y=y.re(b.re(a)),this.group.move(y),this.Zv=y.re(a))},Da.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Ty(a,y,b,E,x){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&x!==void 0?x*y:2*Math.PI*y;a=y>b?Math.sqrt(y*y-b*b)/y:Math.sqrt(b*b-y*y)/b;for(var ne=0,ie=E!==void 0&&x!==void 0?x/(z+1):Math.PI/(2*(z+1)),se=0,de=0;de<=z;de++){E!==void 0&&x!==void 0?se=E+de*x/z:se=de*Math.PI/(2*z);var pe=Math.sin(se);ne+=Math.sqrt(1-a*a*pe*pe)*ie}return E!==void 0&&x!==void 0?(y>b?y:b)*ne:4*(y>b?y:b)*ne}function H0(a,y,b,E,x){return y/(E!==void 0&&x!==void 0?Ty(a,1,b,E,x):Ty(a,1,b))}function z0(a,y,b,E,x){if(.001>Math.abs(a.Zm-1))return x/y;var z=y>b?Math.sqrt(y*y-b*b)/y:Math.sqrt(b*b-y*y)/b,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>b&&(E+=Math.PI/2);for(var ie=0;;ie++){var se=Math.sin(E+ie*a);if(ne+=(y>b?y:b)*Math.sqrt(1-z*z*se*se)*a,ne>=x)return ie*a}}Da.prototype.sort=function(a){switch(this.sorting){case G0:break;case j0:a.reverse();break;case V0:a.sort(this.comparer);break;case W0:a.sort(this.comparer),a.reverse();break;case Tg:return this.ak(xE(a));default:Lt("Invalid sorting type.")}return a};function xE(a){for(var y=[],b=0;b<a.length;b++)y.push(0);b=new Qn;for(var E=0;E<a.length;E++){var x=-1,z=-1;if(E===0)for(var ne=0;ne<a.length;ne++){var ie=a.M(ne).edgesCount;ie>x&&(x=ie,z=ne)}else for(ne=0;ne<a.length;ne++)ie=y[ne],ie>x&&(x=ie,z=ne);for(b.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 b}Da.prototype.ak=function(a){for(var y=[],b=0;b<a.length;b++){var E=a.M(b);y[b]=[];for(var x,z=E.destinationEdges;z.next();)x=a.indexOf(z.value.toVertex),x!==b&&0>y[b].indexOf(x)&&y[b].push(x);for(E=E.sourceEdges;E.next();)x=a.indexOf(E.value.fromVertex),x!==b&&0>y[b].indexOf(x)&&y[b].push(x)}for(z=[],b=0;b<y.length;b++)z[b]=0;b=[];var ne=[],ie=[];E=[],x=new Qn;for(var se=0,de=0;de<y.length;de++){var pe=y[de].length;if(pe===1)E.push(de);else if(pe===0)x.add(a.M(de));else{if(se===0)b.push(de);else{for(var Se=pe=1/0,Le=-1,Me=[],ze=0;ze<b.length;ze++)0>y[b[ze]].indexOf(b[ze===b.length-1?0:ze+1])&&Me.push(ze===b.length-1?0:ze+1);if(Me.length===0)for(ze=0;ze<b.length;ze++)Me.push(ze);for(ze=0;ze<Me.length;ze++){for(var qe=Me[ze],Ct=y[de],vt=0,Dt=0;Dt<ne.length;Dt++){var Bt=z[ne[Dt]],Gt=z[ie[Dt]];if(Bt<Gt){var $t=Bt;Bt=Gt}else $t=Gt;if($t<qe&&qe<=Bt)for(Gt=0;Gt<Ct.length;Gt++){var Rn=Ct[Gt];0>b.indexOf(Rn)||$t<z[Rn]&&z[Rn]<Bt||$t===z[Rn]||Bt===z[Rn]||vt++}else for(Gt=0;Gt<Ct.length;Gt++)Rn=Ct[Gt],0>b.indexOf(Rn)||$t<z[Rn]&&z[Rn]<Bt&&$t!==z[Rn]&&Bt!==z[Rn]&&vt++}for(Ct=vt,Dt=vt=0;Dt<y[de].length;Dt++)$t=b.indexOf(y[de][Dt]),0<=$t&&($t=Math.abs(qe-($t>=qe?$t+1:$t)),vt+=$t<b.length+1-$t?$t:b.length+1-$t);for(Dt=0;Dt<ne.length;Dt++)$t=z[ne[Dt]],Bt=z[ie[Dt]],$t>=qe&&$t++,Bt>=qe&&Bt++,$t>Bt&&(Gt=Bt,Bt=$t,$t=Gt),Bt-$t<(b.length+2)/2==($t<qe&&qe<=Bt)&&vt++;(Ct<pe||Ct===pe&&vt<Se)&&(pe=Ct,Se=vt,Le=qe)}for(b.splice(Le,0,de),pe=0;pe<b.length;pe++)z[b[pe]]=pe;for(pe=0;pe<y[de].length;pe++)Se=y[de][pe],0<=b.indexOf(Se)&&(ne.push(de),ie.push(Se))}se++}}for(ne=b.length;;){for(z=!0,ie=0;ie<E.length;ie++)if(se=E[ie],de=y[se][0],pe=b.indexOf(de),0<=pe){for(Le=Se=0;Le<y[de].length;Le++)Me=b.indexOf(y[de][Le]),0>Me||Me===pe||(ze=Me>pe?Me-pe:pe-Me,Se+=Me<pe!=ze>ne-ze?1:-1);b.splice(0>Se?pe:pe+1,0,se),E.splice(ie,1),ie--}else z=!1;if(z)break;b.push(E[0]),E.splice(0,1)}for(y=0;y<b.length;y++)x.add(a.M(b[y]));return x},Jn.Object.defineProperties(Da.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!==Wc&&a!==Vc&&a!==cf&&a!==Dh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==lu&&a!==df&&a!==Zf&&a!==Pg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==G0&&a!==j0&&a!==V0&&!W0&&a!==Tg||(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!==Z0&&a!==Dp||(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 Vc=new mn(Da,"ConstantSpacing",0),cf=new mn(Da,"ConstantDistance",1),Dh=new mn(Da,"ConstantAngle",2),Wc=new mn(Da,"Packed",3),lu=new mn(Da,"Clockwise",4),df=new mn(Da,"Counterclockwise",5),Zf=new mn(Da,"BidirectionalLeft",6),Pg=new mn(Da,"BidirectionalRight",7),G0=new mn(Da,"Forwards",8),j0=new mn(Da,"Reverse",9),V0=new mn(Da,"Ascending",10),W0=new mn(Da,"Descending",11),Tg=new mn(Da,"Optimized",12),Z0=new mn(Da,"Pythagorean",13),Dp=new mn(Da,"Circular",14);Da.className="CircularLayout",Da.ConstantSpacing=Vc,Da.ConstantDistance=cf,Da.ConstantAngle=Dh,Da.Packed=Wc,Da.Clockwise=lu,Da.Counterclockwise=df,Da.BidirectionalLeft=Zf,Da.BidirectionalRight=Pg,Da.Forwards=G0,Da.Reverse=j0,Da.Ascending=V0,Da.Descending=W0,Da.Optimized=Tg,Da.Pythagorean=Z0,Da.Circular=Dp;function Sm(){this.Pl=-1/0,this.tm=this.mk=null}Sm.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},Sm.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var b=a.M(y);b.x=this.mk[y],b.y=this.tm[y]}},Sm.className="VertexArrangement";function Ag(a){ba.call(this,a)}Sn(Ag,ba),Ag.prototype.createVertex=function(){return new bm(this)},Ag.prototype.createEdge=function(){return new K0(this)},Ag.className="CircularNetwork";function bm(a){Ns.call(this,a),this.u=this.Si=NaN}Sn(bm,Ns);function hf(a,y){var b=a.network;if(b===null)return NaN;if(b=b.layout,b===null)return NaN;if(b.arrangement===Wc)if(b.nodeDiameterFormula===Dp)a.Si=Math.max(a.width,a.height);else{if(b=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),b===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/b,a.width/y)}else a.Si=b.nodeDiameterFormula===Dp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Jn.Object.defineProperties(bm.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)}}}),bm.className="CircularVertex";function K0(a){Wu.call(this,a)}Sn(K0,Wu),K0.className="CircularEdge";function yl(a){Pa.call(this),this.ah=null,this.An=0,this.$d=new an(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)}Sn(yl,Pa),yl.prototype.cloneProtected=function(a){Pa.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},yl.prototype.createNetwork=function(){return new Rp(this)},yl.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 b=y.value;b.charge=this.electricalCharge(b),b.mass=this.gravitationalMass(b)}for(y=this.network.edges.iterator;y.next();)b=y.value,b.stiffness=this.springStiffness(b),b.length=this.springLength(b);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,b=y.Zx();for(var E=b.iterator;E.next();){this.network=E.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}V1(this,0,a)}this.network=y;var ne=E=b.iterator;E=this.arrangementSpacing;var ie=ne.count,se=!0;z=x=0;for(var de=Mr(),pe=0;pe<ie+y.vertexes.count+2;pe++)de[pe]=null;ie=0,ne.reset();for(var Se=In.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 it(Se.x+Se.width+E.width,Se.y),de[1]=new it(Se.x,Se.y+Se.height+E.height),ie=2;else{var Le=W1(de,ie,x,z,Se.width,Se.height,E),Me=de[Le],ze=new it(Me.x+Se.width+E.width,Me.y),qe=new it(Me.x,Me.y+Se.height+E.height);for(Le+1<ie&&de.splice(Le+1,0,null),de[Le]=ze,de[Le+1]=qe,ie++,Le=Me.x-Se.x,Me=Me.y-Se.y,pe=pe.vertexes.iterator;pe.next();)ze=pe.value,ze.centerX+=Le,ze.centerY+=Me}for(In.free(Se),pe=y.vertexes.iterator;pe.next();)ne=pe.value,Le=ne.bounds,2>ie?(x=Le.x+Le.width/2,z=Le.y+Le.height/2,de[0]=new it(Le.x+Le.width+E.width,Le.y),de[1]=new it(Le.x,Le.y+Le.height+E.height),ie=2):(se=W1(de,ie,x,z,Le.width,Le.height,E),Se=de[se],Me=new it(Se.x+Le.width+E.width,Se.y),Le=new it(Se.x,Se.y+Le.height+E.height),se+1<ie&&de.splice(se+1,0,null),de[se]=Me,de[se+1]=Le,ie++,ne.centerX=Se.x+ne.width/2,ne.centerY=Se.y+ne.height/2);for(Ur(de),E=b.iterator;E.next();){for(b=E.value,x=b.vertexes.iterator;x.next();)y.dh(x.value);for(b=b.edges.iterator;b.next();)y.Bo(b.value)}}K1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},yl.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,b=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(b)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},yl.prototype.computeBounds=function(a,y){var b=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;b?(b=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function V1(a,y,b){if(wE(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var x=CE(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,b*(y+1)/11),10));for(a.maxIterations+=z,V1(a,y+1,b),K1(a,z),PE(a,x),y=x.vertexes.Fa(),y.sort(function(ne,ie){return ne===null||ie===null||ne===ie?0:ie.Vd-ne.Vd}),b=0;b<y.length;b++)TE(a,y[b]);a.Zf=E}}function wE(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(b,E){return b===null||E===null||b===E?0:E.Vd-b.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function CE(a,y){for(var b=a.network,E=new Rp(a),x=0;x<a.ah.length;x++){var z=a.ah[x];if(1<z.Vd){E.dh(z);var ne=new Y1;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 Qn),z.We.add(ne),z.sv=z.We.count-1}else break}for(z=b.edges.iterator;z.next();){var ie=z.value;x=ie.fromVertex,ne=ie.toVertex,x.network===E&&ne.network===E?E.Bo(ie):x.network===E?(ie=x.Hj,ie===null&&(ie=new Qn,x.Hj=ie),ie.add(ne),x.Vd--,x.sh+=ne.sh):ne.network===E&&(ie=ne.Hj,ie===null&&(ie=new Qn,ne.Hj=ie),ie.add(x),ne.Vd--,ne.sh+=x.sh)}for(x=E.edges.iterator;x.next();)z=x.value,z.length*=Math.max(1,tn.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.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=ie=0,pe=se.count-ne;pe<se.count;pe++){var Se=se.M(pe),Le=null;for(z=Se.edges.iterator;z.next();){var Me=z.value;if(Me.Ax(Se)===x){Le=Me;break}}Le!==null&&(de+=Le.length,ie+=Se.width*Se.height)}z=x.centerX,se=x.centerY,pe=x.width,Se=x.height,Le=x.focus,Me=pe*Se,1>Me&&(Me=1),ie=tn.sqrt((ie+Me+de*de*4/(ne*ne))/Me),ne=(ie-1)*pe/2,ie=(ie-1)*Se/2,x.bounds=new In(z-Le.x-ne,se-Le.y-ie,pe+2*ne,Se+2*ie),x.focus=new it(Le.x+ne,Le.y+ie)}}return a.network=E,b}function PE(a,y){for(var b=a.network.vertexes.iterator;b.next();){var E=b.value;if(E.network=y,E.We!==null){var x=E.We.M(E.sv);E.Vd=x.Rs;var z=x.Sv,ne=x.Tv;E.bounds=new In(E.centerX-z,E.centerY-ne,x.Ss,x.Qs),E.focus=new it(z,ne),E.sv--}}for(b=a.network.edges.iterator;b.next();)b.value.network=y;a.network=y}function TE(a,y){var b=y.Hj;if(b!==null&&b.count!==0){var E=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=tn.sqrt(z*z+ne*ne)/2;for(var ie=!1,se=ne=0,de=0,pe=y.vertexes.iterator;pe.next();){var Se=pe.value;1>=Se.Vd?se++:(ie=!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=ie?2*Math.PI/(se+1):2*Math.PI/se,se%2===0&&(de=y/2),1<b.count&&b.sort(function(Me,ze){return Me===null||ze===null||Me===ze?0:ze.width*ze.height-Me.width*Me.height}),ie=se%2===0?0:1,b=b.iterator;b.next();)if(se=b.value,!(1<se.Vd||a.isFixed(se))){for(pe=null,Se=se.edges.iterator;Se.next();){pe=Se.value;break}Se=se.width;var Le=se.height;Se=tn.sqrt(Se*Se+Le*Le)/2,pe=z+pe.length+Se,Se=ne+(y*(ie/2>>1)+de)*(ie%2===0?1:-1),se.centerX=E+pe*Math.cos(Se),se.centerY=x+pe*Math.sin(Se),ie++}}}}function W1(a,y,b,E,x,z,ne){var ie=9e19,se=-1,de=0;e:for(;de<y;de++){var pe=a[de],Se=pe.x-b,Le=pe.y-E;if(Se=Se*Se+Le*Le,Se<ie){for(Le=de-1;0<=Le;Le--)if(a[Le].y>pe.y&&a[Le].x-pe.x<x+ne.width)continue e;for(Le=de+1;Le<y;Le++)if(a[Le].x>pe.x&&a[Le].y-pe.y<z+ne.height)continue e;se=de,ie=Se}}return se}yl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},yl.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var b=y.value;if(b.category==="Comment"&&b.isVisible()){var E=this.network.ki(b);E===null&&(E=this.network.Bl(b)),E.charge=this.defaultCommentElectricalCharge,b=null;for(var x=E.destinationEdges;x.next();){var z=x.value;if(z.toVertex===a){b=z;break}}if(b===null){for(x=E.sourceEdges;x.next();)if(z=x.value,z.fromVertex===a){b=z;break}}b===null&&(b=this.network.Zj(a,E,null)),b.length=this.defaultCommentSpringLength}}};function Z1(a,y){var b=a.bounds,E=b.x;a=b.y;var x=b.width;b=b.height;var z=y.bounds,ne=z.x;y=z.y;var ie=z.width;return z=z.height,E+x<ne?a>y+z?(b=E+x-ne,a=a-y-z,tn.sqrt(b*b+a*a)):a+b<y?(E=E+x-ne,a=a+b-y,tn.sqrt(E*E+a*a)):ne-(E+x):E>ne+ie?a>y+z?(b=E-ne-ie,a=a-y-z,tn.sqrt(b*b+a*a)):a+b<y?(E=E-ne-ie,a=a+b-y,tn.sqrt(E*E+a*a)):E-(ne+ie):a>y+z?a-(y+z):a+b<y?y-(a+b):.1}function K1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,AE(a)););a.ah=null}function AE(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var b=y[0];b.forceX=0,b.forceY=0;for(var E=b.centerX,x=E,z=b=b.centerY,ne=1;ne<y.length;ne++){var ie=y[ne];ie.forceX=0,ie.forceY=0;var se=ie.centerX;ie=ie.centerY,E=Math.min(E,se),x=Math.max(x,se),b=Math.min(b,ie),z=Math.max(z,ie)}(x=x-E>z-b)?y.sort(function(qe,Ct){return qe===null||Ct===null||qe===Ct?0:qe.centerX-Ct.centerX}):y.sort(function(qe,Ct){return qe===null||Ct===null||qe===Ct?0:qe.centerY-Ct.centerY}),b=a.Zf;var de=E=ie=0;for(z=0;z<y.length;z++){ne=y[z],E=ne.bounds,ie=ne.focus,se=E.x+ie.x;var pe=E.y+ie.y;E=ne.charge*a.electricalFieldX(se,pe),de=ne.charge*a.electricalFieldY(se,pe),E+=ne.mass*a.gravitationalFieldX(se,pe),de+=ne.mass*a.gravitationalFieldY(se,pe),ne.forceX+=E,ne.forceY+=de;for(var Se=z+1;Se<y.length;Se++){var Le=y[Se];if(Le!==ne){E=Le.bounds,ie=Le.focus,de=E.x+ie.x;var Me=E.y+ie.y;if(se-de>b||de-se>b){if(x)break}else if(pe-Me>b||Me-pe>b){if(!x)break}else{var ze=Z1(ne,Le);1>ze?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Y0),ze=E.random(),ie=E.random(),se>de?(E=Math.abs(Le.bounds.right-ne.bounds.x),E=(1+E)*ze):se<de?(E=Math.abs(Le.bounds.x-ne.bounds.right),E=-(1+E)*ze):(E=Math.max(Le.width,ne.width),E=(1+E)*ze-E/2),pe>Me?(de=Math.abs(Le.bounds.bottom-ne.bounds.y),de=(1+de)*ie):se<de?(de=Math.abs(Le.bounds.y-ne.bounds.bottom),de=-(1+de)*ie):(de=Math.max(Le.height,ne.height),de=(1+de)*ie-de/2)):(ie=-(ne.charge*Le.charge)/(ze*ze),E=(de-se)/ze*ie,de=(Me-pe)/ze*ie),ne.forceX+=E,ne.forceY+=de,Le.forceX-=E,Le.forceY-=de}}}}for(x=a.network.edges.iterator;x.next();)ie=x.value,b=ie.fromVertex,z=ie.toVertex,ne=b.bounds,se=b.focus,E=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=Z1(b,z),1>Se?(Se=a.randomNumberGenerator,Se===null&&(a.randomNumberGenerator=Se=new Y0),ie=Se.random(),Se=Se.random(),E=(E>se?1:-1)*(1+(z.width>b.width?z.width:b.width))*ie,de=(ne>pe?1:-1)*(1+(z.height>b.height?z.height:b.height))*Se):(ie=ie.stiffness*(Se-ie.length),E=(se-E)/Se*ie,de=(pe-ne)/Se*ie),b.forceX+=E,b.forceY+=de,z.forceX-=E,z.forceY-=de;for(x=E=0;x<y.length;x++)b=y[x],a.isFixed(b)?a.moveFixedVertex(b):E=Math.max(E,a.moveVertex(b)||0);return E>a.epsilonDistance*a.epsilonDistance}yl.prototype.moveVertex=function(a){var y=a.forceX,b=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),b<-E?b=-E:b>E&&(b=E),a.centerX+=y,a.centerY+=b,y*y+b*b},yl.prototype.moveFixedVertex=function(){},yl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},yl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ns,y.toSpot=ns)}},yl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var b=In.alloc();this.computeBounds(this.network,b),y=this.arrangementOrigin,a=y.x-b.x,y=y.y-b.y,In.free(b)}b=In.alloc();for(var E=this.network.vertexes.iterator;E.next();){var x=E.value;(a!==0||y!==0)&&(b.assign(x.bounds),b.x+=a,b.y+=y,x.bounds=b),x.commit()}In.free(b)},yl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},yl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},yl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},yl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},yl.prototype.electricalFieldX=function(){return 0},yl.prototype.electricalFieldY=function(){return 0},yl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},yl.prototype.gravitationalFieldX=function(){return 0},yl.prototype.gravitationalFieldY=function(){return 0},yl.prototype.isFixed=function(a){return a.isFixed},Jn.Object.defineProperties(yl.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"&&Lt('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())}}}),yl.className="ForceDirectedLayout";function Y1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Y1.className="ForceDirectedSubnet";function Rp(a){ba.call(this,a)}Sn(Rp,ba),Rp.prototype.createVertex=function(){return new Em(this)},Rp.prototype.createEdge=function(){return new xm(this)},Rp.className="ForceDirectedNetwork";function Em(a){Ns.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}Sn(Em,Ns),Jn.Object.defineProperties(Em.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)}}}),Em.className="ForceDirectedVertex";function xm(a){Wu.call(this,a),this.j=this.o=NaN}Sn(xm,Wu),Jn.Object.defineProperties(xm.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)}}}),xm.className="ForceDirectedEdge";function Y0(){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()}Y0.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},Y0.className="RandomNumberGenerator";function qo(a){Pa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=$0,this.Zk=ev,this.Qk=tv,this.bj=4,this.rk=nv,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 it,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Sn(qo,Pa),qo.prototype.cloneProtected=function(a){Pa.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},qo.prototype.qb=function(a){a.classType===qo?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:Lt("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},qo.prototype.createNetwork=function(){return new Lg(this)},qo.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!==Cm&&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===Cm&&this.removeCycles(),a=this.network;for(var y=[],b=a.edges.iterator;b.next();){var E=b.value;E.valid=!1,y.push(E)}for(b=0;b<y.length;b++){E=y[b];var x=E.fromVertex,z=E.toVertex;if(!(E.valid||(x.node===null&&x.data===null||z.node===null&&z.data===null)&&x.layer===z.layer)){var ne=0,ie=0,se=0,de=0;if(E.link!==null){if(ie=E.link,ie===null)continue;var pe=x.node;if(ne=z.node,pe===null||ne===null)continue;var Se=ie.fromNode;se=ie.toNode;for(var Le=ie.fromPort;Le!==null&&!Le.Ed();)Le=Le.panel;for(ie=ie.toPort;ie!==null&&!ie.Ed();)ie=ie.panel;if(E.rev){de=Se;var Me=Le;Se=se,Le=ie,se=de,ie=Me}var ze=x.focus;de=z.focus;var qe=E.rev?z.bounds:x.bounds;Me=it.alloc(),pe!==Se?qe.w()&&Se.isVisible()?Se.actualBounds.w()?(Ah(Se,Le,Ji,Me),Me.x+=Se.actualBounds.x-qe.x,Me.y+=Se.actualBounds.y-qe.y):(Ah(Se,Le,Ji,Me),Me.w()||Me.assign(ze)):Me.assign(ze):qe.w()?(Ah(Se,Le,Ji,Me),Me.w()||Me.assign(ze)):Me.assign(ze),Se=E.rev?x.bounds:z.bounds,pe=it.alloc(),ne!==se?Se.w()&&se.isVisible()?se.actualBounds.w()?(Ah(se,ie,Ji,pe),pe.x+=se.actualBounds.x-Se.x,pe.y+=se.actualBounds.y-Se.y):(Ah(se,ie,Ji,pe),pe.w()||pe.assign(de)):pe.assign(de):Se.w()?(Ah(se,ie,Ji,pe),pe.w()||pe.assign(de)):pe.assign(de),this.K===90||this.K===270?(ne=Math.round((Me.x-ze.x)/this.kc),se=Me.x,ie=Math.round((pe.x-de.x)/this.kc),de=pe.x):(ne=Math.round((Me.y-ze.y)/this.kc),se=Me.y,ie=Math.round((pe.y-de.y)/this.kc),de=pe.y),it.free(Me),it.free(pe),E.portFromColOffset=ne,E.portFromPos=se,E.portToColOffset=ie,E.portToPos=de}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Me=x.layer,pe=z.layer,Se=0,qe=E.link,qe!==null){var Ct=qe.fromPort,vt=qe.toPort;if(Ct!==null&&vt!==null){var Dt=qe.fromNode;if(Le=qe.toNode,Dt!==null&&Le!==null){var Bt=q0(this,!0),Gt=q0(this,!1),$t=this.setsPortSpots?Bt:qe.computeSpot(!0,Ct);ze=this.setsPortSpots?Gt:qe.computeSpot(!1,vt);var Rn=qe.isOrthogonal;$t.$c()&&$t.Hf(Gt)&&ze.$c()&&ze.Hf(Bt)?Se=0:(Bt=qe.getLinkPoint(Dt,Ct,$t,!0,Rn,Le,vt,it.alloc()),Gt=qe.getLinkDirection(Dt,Ct,Bt,$t,!0,Rn,Le,vt),it.free(Bt),$t.ys()||Gt!==Nb(this,E,!0)?this.setsPortSpots&&Dt!==null&&Dt.ports.count===1&&E.rev&&(Se+=1):Se+=1,$t=qe.getLinkPoint(Le,vt,ze,!1,Rn,Dt,Ct,it.alloc()),qe=qe.getLinkDirection(Le,vt,$t,ze,!1,Rn,Dt,Ct),it.free($t),ze.ys()||qe!==Nb(this,E,!1)?this.setsPortSpots&&Le!==null&&Le.ports.count===1&&E.rev&&(Se+=2):Se+=2)}}}if(Le=Se,Se=Le===1||Le===3,(Le=Le===2||Le===3)&&(ze=a.createVertex(),ze.node=null,ze.Dj=1,ze.layer=Me,ze.near=x,a.dh(ze),x=a.Zj(x,ze,E.link),x.valid=!1,x.rev=E.rev,x.portFromColOffset=ne,x.portToColOffset=0,x.portFromPos=se,x.portToPos=0,x=ze),qe=1,Se&&qe--,Me-pe>qe&&0<Me){for(E.valid=!1,ze=a.createVertex(),ze.node=null,ze.Dj=2,ze.layer=Me-1,a.dh(ze),x=a.Zj(x,ze,E.link),x.valid=!0,x.rev=E.rev,x.portFromColOffset=Le?0:ne,x.portToColOffset=0,x.portFromPos=Le?0:se,x.portToPos=0,x=ze,Me--;Me-pe>qe&&0<Me;)ze=a.createVertex(),ze.node=null,ze.Dj=3,ze.layer=Me-1,a.dh(ze),x=a.Zj(x,ze,E.link),x.valid=!0,x.rev=E.rev,x.portFromColOffset=0,x.portToColOffset=0,x.portFromPos=0,x.portToPos=0,x=ze,Me--;x=a.Zj(ze,z,E.link),x.valid=!Se,Se&&(ze.near=z),x.rev=E.rev,x.portFromColOffset=0,x.portToColOffset=ie,x.portFromPos=0,x.portToPos=de}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,b=this.Md=this.Hn=0;b<=this.Ia;b++)a[b]>a[this.Md]&&(this.Iq=a[b]-1,this.Md=b),a[b]<a[this.Hn]&&(this.Hn=b);for(this.fl=[],b=0;b<a.length;b++)this.fl[b]=[];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=ff(this,a),b=0,E=this.tc[a],z=0;z<E;z++)x=y[z],b+=this.nodeMinColumnSpace(x,!0),x.column=b,b+=1,b+=this.nodeMinColumnSpace(x,!1);this.Ra=Math.max(this.Ra,b-1),pf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},qo.prototype.linkMinLength=function(){return 1};function Ay(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}qo.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},qo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var b=y?a.ev:a.dv;return b!==null?b:(b=this.K,b===90||b===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 vu(a){a.kj===null&&(a.kj=[]);for(var y=0,b=a.network.vertexes.iterator;b.next();){var E=b.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function gc(a,y){var b=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[b],b++,E.column=y[b],b++,E.index=y[b],b++}}function X1(a,y,b){var E=ff(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 ie=0,se=E[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=E[pe];Se.near===de&&Se.Dj===de.Dj||ie++}else for(pe=ne-1;pe>se;pe--)Se=E[pe],Se.near===de&&Se.Dj===de.Dj||ie++;var Le;if(0<=b)for(se=E[ne].sourceEdgesArrayAccess,de=0;de<se.length;de++){var Me=se[de];if(Me.valid&&Me.fromVertex.layer!==y)for(Se=Me.fromVertex.index,pe=Me.portToPos,Me=Me.portFromPos,Le=de+1;Le<se.length;Le++){var ze=se[Le];if(ze.valid&&ze.fromVertex.layer!==y){var qe=ze.fromVertex.index,Ct=ze.portToPos;ze=ze.portFromPos,pe<Ct&&(Se>qe||Se===qe&&Me>ze)&&ie++,Ct<pe&&(qe>Se||qe===Se&&ze>Me)&&ie++}}}if(0>=b){for(se=E[ne].destinationEdgesArrayAccess,de=0;de<se.length;de++)if(Me=se[de],Me.valid&&Me.toVertex.layer!==y)for(Se=Me.toVertex.index,pe=Me.portToPos,Me=Me.portFromPos,Le=de+1;Le<se.length;Le++)ze=se[Le],ze.valid&&ze.toVertex.layer!==y&&(qe=ze.toVertex.index,Ct=ze.portToPos,ze=ze.portFromPos,Me<ze&&(Se>qe||Se===qe&&pe>Ct)&&ie++,ze<Me&&(qe>Se||qe===Se&&Ct>pe)&&ie++)}for(z[ne*x+ne]=ie,se=ne+1;se<x;se++){var vt=0,Dt=0;if(0<=b){ie=E[ne].sourceEdgesArrayAccess;var Bt=E[se].sourceEdgesArrayAccess;for(de=0;de<ie.length;de++)if(Me=ie[de],Me.valid&&Me.fromVertex.layer!==y)for(Se=Me.fromVertex.index,Me=Me.portFromPos,Le=0;Le<Bt.length;Le++)ze=Bt[Le],ze.valid&&ze.fromVertex.layer!==y&&(qe=ze.fromVertex.index,ze=ze.portFromPos,(Se<qe||Se===qe&&Me<ze)&&Dt++,(qe<Se||qe===Se&&ze<Me)&&vt++)}if(0>=b){for(ie=E[ne].destinationEdgesArrayAccess,Bt=E[se].destinationEdgesArrayAccess,de=0;de<ie.length;de++)if(Me=ie[de],Me.valid&&Me.toVertex.layer!==y)for(Se=Me.toVertex.index,pe=Me.portToPos,Le=0;Le<Bt.length;Le++)ze=Bt[Le],ze.valid&&ze.toVertex.layer!==y&&(qe=ze.toVertex.index,Ct=ze.portToPos,(Se<qe||Se===qe&&pe<Ct)&&Dt++,(qe<Se||qe===Se&&Ct<pe)&&vt++)}z[ne*x+se]=vt,z[se*x+ne]=Dt}}return pf(a,y,E),z}qo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var b=X1(this,y,1),E=this.tc[y],x=0;x<E;x++)for(var z=x;z<E;z++)a+=b[x*E+z];return a};function X0(a){for(var y=0,b=0;b<=a.Ia;b++){for(var E=a,x=b,z=ff(E,x),ne=E.tc[x],ie=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 Le=Se.fromVertex.column+Se.portFromColOffset,Me=Se.toVertex.column+Se.portToColOffset;ie+=(Math.abs(Le-Me)+1)*Ay(Se)}}}pf(E,x,z),y+=ie}return y}qo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var b=y.value;a=Math.min(a,b.column-this.nodeMinColumnSpace(b,!0)),this.Ra=Math.max(this.Ra,b.column+this.nodeMinColumnSpace(b,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Ny(a,y,b){for(var E=ff(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var ie=E[ne],se=null;0>=b&&(se=ie.sourceEdgesArrayAccess);var de=null;0<=b&&(de=ie.destinationEdgesArrayAccess);var pe=0,Se=0,Le=ie.near;if(Le!==null&&Le.layer===ie.layer&&(pe+=Le.column-1,Se++),se!==null)for(Le=0;Le<se.length;Le++){ie=se[Le];var Me=ie.fromVertex;ie.valid&&!ie.rev&&Me.layer!==y&&(pe+=Me.column,Se++)}if(de!==null)for(se=0;se<de.length;se++)ie=de[se],Le=ie.toVertex,ie.valid&&!ie.rev&&Le.layer!==y&&(pe+=Le.column,Se++);z[ne]=Se===0?-1:pe/Se}return pf(a,y,E),z}function Q1(a,y,b){for(var E=ff(a,y),x=a.tc[y],z=[],ne=0;ne<x;ne++){var ie=E[ne],se=null;0>=b&&(se=ie.sourceEdgesArrayAccess);var de=null;0<=b&&(de=ie.destinationEdgesArrayAccess);var pe=0,Se=[],Le=ie.near;if(Le!==null&&Le.layer===ie.layer&&(Se[pe]=Le.column-1,pe++),ie=void 0,se!==null)for(Le=0;Le<se.length;Le++){ie=se[Le];var Me=ie.fromVertex;ie.valid&&!ie.rev&&Me.layer!==y&&(Se[pe]=Me.column+ie.portFromColOffset,pe++)}if(de!==null)for(se=0;se<de.length;se++)ie=de[se],Le=ie.toVertex,ie.valid&&!ie.rev&&Le.layer!==y&&(Se[pe]=Le.column+ie.portToColOffset,pe++);pe===0?z[ne]=-1:(Se.sort(function(ze,qe){return ze-qe}),de=pe>>1,z[ne]=pe&1?Se[de]:Se[de-1]+Se[de]>>1)}return pf(a,y,E),z}function wm(a,y,b,E,x,z){if(y.component===E){if(y.component=b,x)for(var ne=y.destinationEdges;ne.next();){var ie=ne.value,se=ie.toVertex,de=y.layer-se.layer;ie=a.linkMinLength(ie),de===ie&&wm(a,se,b,E,x,z)}if(z)for(ne=y.sourceEdges;ne.next();)ie=ne.value,se=ie.fromVertex,de=se.layer-y.layer,ie=a.linkMinLength(ie),de===ie&&wm(a,se,b,E,x,z)}}function Ly(a,y,b,E,x,z){if(y.component===E){if(y.component=b,x)for(var ne=y.destinationEdges;ne.next();)Ly(a,ne.value.toVertex,b,E,x,z);if(z)for(y=y.sourceEdges;y.next();)Ly(a,y.value.fromVertex,b,E,x,z)}}qo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Dy:a=this.network;var y=0,b=a.vertexes.count-1,E=[];E.length=b+1;for(var x=a.vertexes.iterator;x.next();)x.value.valid=!0;for(;NE(a)!==null;){for(x=J1(a);x!==null;)E[b]=x,b--,x.valid=!1,x=J1(a);for(x=q1(a);x!==null;)E[y]=x,y++,x.valid=!1,x=q1(a);x=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var ie=ne.value;if(ie.valid){for(var se=0,de=ie.destinationEdges;de.next();)de.value.toVertex.valid&&se++;de=0;for(var pe=ie.sourceEdges;pe.next();)pe.value.fromVertex.valid&&de++;(x===null||z<se-de)&&(x=ie,z=se-de)}}x!==null&&(E[y]=x,y++,x.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case $0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&ky(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&ky(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,b=y.finish,x=E.toVertex,z=x.finish,x.Ll<y.Ll&&b<z&&(this.network.gm(E),E.rev=!0));break;case Cm:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)b=y.value,x=E[b.layer],x===void 0?E[b.layer]=[b]:x.push(b);for(b=y=0;b<E.length;b++)if(x=E[b],!x||x.length===0)y++;else if(0<b)for(z=0;z<x.length;z++)x[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function NE(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var b=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){b=!1;break}if(b)return y}}return null}function q1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var b=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){b=!1;break}if(b)return y}}return null}function ky(a,y){y.Ll=a.Kn,a.Kn++;for(var b=y.destinationEdges;b.next();){var E=b.value,x=E.toVertex;x.Ll===-1&&(E.forest=!0,ky(a,x))}y.finish=a.Kn,a.Kn++}qo.prototype.assignLayers=function(){switch(this.Zk){case Ry:$1(this);break;case My:for(var a,y=this.network.vertexes.iterator;y.next();)a=Pb(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 ev:for($1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&Tb(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 b=y.value;b.layer-=a,this.Ia=Math.max(this.Ia,b.layer)}}};function $1(a){for(var y=a.network.vertexes.iterator;y.next();){var b=Sb(a,y.value);a.Ia=Math.max(b,a.Ia)}}function Sb(a,y){var b=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var x=E.value,z=x.toVertex;x=a.linkMinLength(x),b=Math.max(b,Sb(a,z)+x)}y.layer=b}else b=y.layer;return b}function Pb(a,y){var b=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var x=E.value,z=x.fromVertex;x=a.linkMinLength(x),b=Math.max(b,Pb(a,z)+x)}y.layer=b}else b=y.layer;return b}function Tb(a,y){if(!y.valid){y.valid=!0;for(var b=y.destinationEdges;b.next();)Tb(a,b.value.toVertex);for(b=a.network.vertexes.iterator;b.next();)b.value.component=-1;for(var E=y.sourceEdgesArrayAccess,x=E.length,z=0;z<x;z++){var ne=E[z],ie=ne.fromVertex,se=ne.toVertex;ne=a.linkMinLength(ne),ie.layer-se.layer>ne&&wm(a,ie,0,-1,!0,!1)}for(wm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ie=0,se=null,ne=a.network.vertexes.iterator;ne.next();){var de=ne.value;if(de.component===1){var pe=0,Se=!1,Le=de.sourceEdgesArrayAccess;x=Le.length;for(var Me=0;Me<x;Me++){var ze=Le[Me],qe=ze.fromVertex;pe+=1,qe.component!==1&&(z+=1,qe=qe.layer-de.layer,ze=a.linkMinLength(ze),E=Math.min(E,qe-ze))}for(Le=de.destinationEdgesArrayAccess,x=Le.length,Me=0;Me<x;Me++)ze=Le[Me].toVertex,--pe,ze.component!==1?--z:Se=!0;(se===null||pe<ie)&&!Se&&(se=de,ie=pe)}}if(0<z){for(b.reset();b.next();)x=b.value,x.component===1&&(x.layer+=E);y.component=0}else se.component=0}for(b=a.network.vertexes.iterator;b.next();)b.value.component=-1;for(wm(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,x=1/0,z=0,ie=null,se=a.network.vertexes.iterator;se.next();)if(ne=se.value,ne.component===1){for(de=0,pe=!1,Le=ne.sourceEdgesArrayAccess,Se=Le.length,Me=0;Me<Se;Me++)ze=Le[Me].fromVertex,de+=1,ze.component!==1?E+=1:pe=!0;for(Le=ne.destinationEdgesArrayAccess,Se=Le.length,Me=0;Me<Se;Me++)ze=Le[Me],qe=ze.toVertex,--de,qe.component!==1&&(--E,qe=ne.layer-qe.layer,ze=a.linkMinLength(ze),x=Math.min(x,qe-ze));(ie===null||de>z)&&!pe&&(ie=ne,z=de)}if(0>E){for(b.reset();b.next();)E=b.value,E.component===1&&(E.layer-=x);y.component=0}else ie.component=0}}}function Nb(a,y,b){return a.K===90?b&&!y.rev||!b&&y.rev?270:90:a.K===180?b&&!y.rev||!b&&y.rev?0:180:a.K===270?b&&!y.rev||!b&&y.rev?90:270:b&&!y.rev||!b&&y.rev?180:0}qo.prototype.initializeIndices=function(){switch(this.Qk){default:case Fy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,b=y.layer;y.index=this.tc[b],this.tc[b]++}break;case tv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)b=a.value,b.layer===y&&b.index===-1&&Lb(this,b);break;case Oy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)b=a.value,b.layer===y&&b.index===-1&&Ib(this,b)}};function Lb(a,y){var b=y.layer;for(y.index=a.tc[b],a.tc[b]++,y=y.destinationEdgesArrayAccess,b=!0;b;){b=!1;for(var E=0;E<y.length-1;E++){var x=y[E],z=y[E+1];x.portFromColOffset>z.portFromColOffset&&(b=!0,y[E]=z,y[E+1]=x)}}for(b=0;b<y.length;b++)E=y[b],E.valid&&(E=E.toVertex,E.index===-1&&Lb(a,E))}function Ib(a,y){var b=y.layer;y.index=a.tc[b],a.tc[b]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,b=0;b<y.length-1;b++){var x=y[b],z=y[b+1];x.portToColOffset>z.portToColOffset&&(E=!0,y[b]=z,y[b+1]=x)}for(b=0;b<y.length;b++)E=y[b],E.valid&&(E=E.fromVertex,E.index===-1&&Ib(a,E))}qo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=vu(this),b,E;for(b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,1),Ac(this,E,1);var x=this.countCrossings();for(x<a&&(a=x,y=vu(this)),E=this.Ia;0<=E;E--)Q0(this,E,-1),Ac(this,E,-1);x=this.countCrossings(),x<a&&(a=x,y=vu(this))}for(gc(this,y),b=0;b<this.bj;b++){for(E=0;E<=this.Ia;E++)Q0(this,E,0),Ac(this,E,0);for(x=this.countCrossings(),x<a&&(a=x,y=vu(this)),E=this.Ia;0<=E;E--)Q0(this,E,0),Ac(this,E,0);x=this.countCrossings(),x<a&&(a=x,y=vu(this))}gc(this,y);var z,ne,ie;switch(this.rk){case By:break;case _y:for(ie=a+1;(E=this.countCrossings())<ie;)for(ie=E,b=this.Ia;0<=b;b--)for(ne=0;ne<=b;ne++){for(z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,-1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,-1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,0)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,0)||z;x>=a?gc(this,y):(a=x,y=vu(this))}break;default:case nv:for(b=this.Ia,ne=0,ie=a+1;(E=this.countCrossings())<ie;){for(ie=E,z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,-1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,1)||z;for(x=this.countCrossings(),x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,-1)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=b;E>=ne;E--)z=Ac(this,E,0)||z;for(x>=a?gc(this,y):(a=x,y=vu(this)),z=!0;z;)for(z=!1,E=ne;E<=b;E++)z=Ac(this,E,0)||z;x>=a?gc(this,y):(a=x,y=vu(this))}}gc(this,y)};function Q0(a,y,b){var E=ff(a,y),x=a.tc[y],z=Q1(a,y,b),ne=Ny(a,y,b);for(b=0;b<x;b++)ne[b]===-1&&(ne[b]=E[b].column),z[b]===-1&&(z[b]=E[b].column);for(var ie=!0,se;ie;)for(ie=!1,b=0;b<x-1;b++)(z[b+1]<z[b]||z[b+1]===z[b]&&ne[b+1]<ne[b])&&(ie=!0,se=z[b],z[b]=z[b+1],z[b+1]=se,se=ne[b],ne[b]=ne[b+1],ne[b+1]=se,se=E[b],E[b]=E[b+1],E[b+1]=se);for(b=z=0;b<x;b++)se=E[b],se.index=b,z+=a.nodeMinColumnSpace(se,!0),se.column=z,z+=1,z+=a.nodeMinColumnSpace(se,!1);pf(a,y,E)}function Ac(a,y,b){var E=ff(a,y),x=a.tc[y];b=X1(a,y,b);var z,ne=[];for(z=0;z<x;z++)ne[z]=-1;var ie=[];for(z=0;z<x;z++)ie[z]=-1;for(var se=!1,de=!0;de;)for(de=!1,z=0;z<x-1;z++){var pe=b[E[z].index*x+E[z+1].index],Se=b[E[z+1].index*x+E[z].index],Le=0,Me=0,ze=E[z].column,qe=E[z+1].column,Ct=a.nodeMinColumnSpace(E[z],!0),vt=a.nodeMinColumnSpace(E[z],!1),Dt=a.nodeMinColumnSpace(E[z+1],!0),Bt=a.nodeMinColumnSpace(E[z+1],!1);Ct=ze-Ct+Dt,vt=qe-vt+Bt;var Gt=E[z].sourceEdges.iterator;for(Gt.reset();Gt.next();)if(Dt=Gt.value,Bt=Dt.fromVertex,Dt.valid&&Bt.layer===y){for(Dt=0;E[Dt]!==Bt;)Dt++;Dt<z&&(Le+=2*(z-Dt),Me+=2*(z+1-Dt)),Dt===z+1&&(Le+=1),Dt>z+1&&(Le+=4*(Dt-z),Me+=4*(Dt-(z+1)))}for(Gt=E[z].destinationEdges.iterator,Gt.reset();Gt.next();)if(Dt=Gt.value,Bt=Dt.toVertex,Dt.valid&&Bt.layer===y){for(Dt=0;E[Dt]!==Bt;)Dt++;Dt===z+1&&(Me+=1)}for(Gt=E[z+1].sourceEdges.iterator,Gt.reset();Gt.next();)if(Dt=Gt.value,Bt=Dt.fromVertex,Dt.valid&&Bt.layer===y){for(Dt=0;E[Dt]!==Bt;)Dt++;Dt<z&&(Le+=2*(z+1-Dt),Me+=2*(z-Dt)),Dt===z&&(Me+=1),Dt>z+1&&(Le+=4*(Dt-(z+1)),Me+=4*(Dt-z))}for(Gt=E[z+1].destinationEdges.iterator,Gt.reset();Gt.next();)if(Dt=Gt.value,Bt=Dt.toVertex,Dt.valid&&Bt.layer===y){for(Dt=0;E[Dt]!==Bt;)Dt++;Dt===z&&(Le+=1)}Dt=Bt=0,Gt=ne[E[z].index];var $t=ie[E[z].index],Rn=ne[E[z+1].index],Jr=ie[E[z+1].index];Gt!==-1&&(Bt+=Math.abs(Gt-ze),Dt+=Math.abs(Gt-vt)),$t!==-1&&(Bt+=Math.abs($t-ze),Dt+=Math.abs($t-vt)),Rn!==-1&&(Bt+=Math.abs(Rn-qe),Dt+=Math.abs(Rn-Ct)),Jr!==-1&&(Bt+=Math.abs(Jr-qe),Dt+=Math.abs(Jr-Ct)),(Me<Le-.5||Me===Le&&Se<pe-.5||Me===Le&&Se===pe&&Dt<Bt-.5)&&(de=se=!0,E[z].column=vt,E[z+1].column=Ct,pe=E[z],E[z]=E[z+1],E[z+1]=pe)}for(z=0;z<x;z++)E[z].index=z;return pf(a,y,E),se}qo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&FE)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var b=[];for(y=0;y<=this.Ia;y++)b[y]=0;for(var E,x=this.network.vertexes.iterator;x.next();){var z=x.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),b[y]=Math.max(b[y],E+z)}for(x.reset();x.next();)z=x.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-b[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(b=!0;b;){for(b=!1,y=this.Md+1;y<=this.Ia;y++)b=Ng(this,y,1)||b;for(y=this.Md-1;0<=y;y--)b=Ng(this,y,-1)||b;b=Ng(this,this.Md,0)||b}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Iy(this,y,1);for(y=this.Md-1;0<=y;y--)Iy(this,y,-1);Iy(this,this.Md,0)}if(a&&(Rb(this,-1),Rb(this,1)),this.bg&2)for(b=!0;b;){for(b=!1,b=Ng(this,this.Md,0)||b,y=this.Md+1;y<=this.Ia;y++)b=Ng(this,y,0)||b;for(y=this.Md-1;0<=y;y--)b=Ng(this,y,0)||b}}else DE(this)};function Ng(a,y,b){for(var E=!1;LE(a,y,b);)E=!0;return E}function LE(a,y,b){var E,x=ff(a,y),z=a.tc[y],ne=Ny(a,y,-1);if(0<b)for(E=0;E<z;E++)ne[E]=-1;var ie=Ny(a,y,1);if(0>b)for(E=0;E<z;E++)ie[E]=-1;for(var se=!1,de=!0;de;)for(de=!1,E=0;E<z;E++){var pe=x[E].column,Se=a.nodeMinColumnSpace(x[E],!0),Le=a.nodeMinColumnSpace(x[E],!1),Me=0;0>E-1||pe-x[E-1].column-1>Se+a.nodeMinColumnSpace(x[E-1],!1)?Me=pe-1:Me=pe,Se=E+1>=z||x[E+1].column-pe-1>Le+a.nodeMinColumnSpace(x[E+1],!0)?pe+1:pe;var ze=Le=0,qe=0;if(0>=b)for(var Ct=x[E].sourceEdges.iterator;Ct.next();){var vt=Ct.value,Dt=vt.fromVertex;if(vt.valid&&Dt.layer!==y){var Bt=Ay(vt),Gt=vt.portFromColOffset;vt=vt.portToColOffset,Dt=Dt.column,Le+=(Math.abs(pe+vt-(Dt+Gt))+1)*Bt,ze+=(Math.abs(Me+vt-(Dt+Gt))+1)*Bt,qe+=(Math.abs(Se+vt-(Dt+Gt))+1)*Bt}}if(0<=b)for(Ct=x[E].destinationEdges.iterator;Ct.next();)vt=Ct.value,Dt=vt.toVertex,vt.valid&&Dt.layer!==y&&(Bt=Ay(vt),Gt=vt.portFromColOffset,vt=vt.portToColOffset,Dt=Dt.column,Le+=(Math.abs(pe+Gt-(Dt+vt))+1)*Bt,ze+=(Math.abs(Me+Gt-(Dt+vt))+1)*Bt,qe+=(Math.abs(Se+Gt-(Dt+vt))+1)*Bt);vt=Gt=Bt=0,Ct=ne[x[E].index],Dt=ie[x[E].index],Ct!==-1&&(Bt+=Math.abs(Ct-pe),Gt+=Math.abs(Ct-Me),vt+=Math.abs(Ct-Se)),Dt!==-1&&(Bt+=Math.abs(Dt-pe),Gt+=Math.abs(Dt-Me),vt+=Math.abs(Dt-Se)),ze<Le||ze===Le&&Gt<Bt?(de=se=!0,x[E].column=Me):(qe<Le||qe===Le&&vt<Bt)&&(de=se=!0,x[E].column=Se)}return pf(a,y,x),a.normalize(),se}function Iy(a,y,b){var E=ff(a,y),x=a.tc[y],z=Q1(a,y,b),ne=[];for(b=0;b<x;b++)ne[b]=z[b];for(z=!0;z;)for(z=!1,b=0;b<x;b++){var ie=E[b].column,se=a.nodeMinColumnSpace(E[b],!0),de=a.nodeMinColumnSpace(E[b],!1),pe=0;if(ne[b]===-1)if(b===0&&b===x-1)pe=ie;else if(b===0){var Se=E[b+1].column;Se-ie===de+a.nodeMinColumnSpace(E[b+1],!0)?pe=ie-1:pe=ie}else b===x-1?(Se=E[b-1].column,pe=ie-Se===se+a.nodeMinColumnSpace(E[b-1],!1)?ie+1:ie):(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,pe=(se+de)/2|0);else b===0&&b===x-1?pe=ne[b]:b===0?(Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,pe=Math.min(ne[b],de)):b===x-1?(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,pe=Math.max(ne[b],se)):(Se=E[b-1].column,se=Se+a.nodeMinColumnSpace(E[b-1],!1)+se+1,Se=E[b+1].column,de=Se-a.nodeMinColumnSpace(E[b+1],!0)-de-1,se<ne[b]&&ne[b]<de?pe=ne[b]:se>=ne[b]?pe=se:de<=ne[b]&&(pe=de));pe!==ie&&(z=!0,E[b].column=pe)}pf(a,y,E),a.normalize()}function kE(a,y){for(var b=!0,E=a.network.vertexes.iterator;E.next();){var x=E.value,z=a.nodeMinColumnSpace(x,!0),ne=a.nodeMinColumnSpace(x,!1);if(x.column-z<=y&&x.column+ne>=y){b=!1;break}}if(a=!1,b)for(E.reset();E.next();)b=E.value,b.column>y&&(--b.column,a=!0);return a}function IE(a,y){var b=y+1,E,x=[],z=[];for(E=0;E<=a.Ia;E++)x[E]=!1,z[E]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){E=ne.value;var ie=E.column-a.nodeMinColumnSpace(E,!0),se=E.column+a.nodeMinColumnSpace(E,!1);ie<=y&&se>=y&&(x[E.layer]=!0),ie<=b&&se>=b&&(z[E.layer]=!0)}for(ie=!0,b=!1,E=0;E<=a.Ia;E++)ie=ie&&!(x[E]&&z[E]);if(ie)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,b=!0);return b}function Rb(a,y){for(var b=0;b<=a.Ra;b++)for(;kE(a,b););for(a.normalize(),b=0;b<a.Ra;b++)for(;IE(a,b););a.normalize();var E;if(0<y)for(b=0;b<=a.Ra;b++){var x=vu(a),z=X0(a);for(E=z+1;z<E;){E=z,Mb(a,b,1);var ne=X0(a);ne>z?gc(a,x):ne<z&&(z=ne,x=vu(a))}}if(0>y)for(b=a.Ra;0<=b;b--)for(x=vu(a),z=X0(a),E=z+1;z<E;)E=z,Mb(a,b,-1),ne=X0(a),ne>z?gc(a,x):ne<z&&(z=ne,x=vu(a));a.normalize()}function Mb(a,y,b){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<b)for(E.reset();E.next();){var x=E.value;x.column-a.nodeMinColumnSpace(x,!0)<=y&&(x.component=a.le)}if(0>b)for(E.reset();E.next();)x=E.value,x.column+a.nodeMinColumnSpace(x,!1)>=y&&(x.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(Ly(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(E.reset();E.next();){z=E.value;for(var ne=z.layer,ie=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),se=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ie<=se;ie++)x[ne*(a.Ra+1)+ie]=z.component}for(z=0;z<=a.Ia;z++){if(0<b)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>b)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<b)for(E.reset();E.next();)a=E.value,x[a.component]&&--a.column;if(0>b)for(E.reset();E.next();)b=E.value,x[b.component]&&(b.column+=1)}function DE(a){for(var y=Mr(),b=a.fl.length,E=0;E<=b;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var x=E.value;y[b-x.layer][x.index]=x}b=new ar,RE(y,b);var z=null,ne=null,ie=null,se=null,de=(a.ve&1)!==0,pe=(a.ve&2)!==0,Se=(a.ve&4)!==0,Le=(a.ve&8)!==0;for(de&&(a.verticalAlignment(y,b,!0),z=J0(a,y,!0,!1)),y.reverse(),Se&&(a.verticalAlignment(y,b,!1),ie=J0(a,y,!1,!1)),E=Pr(y),x=E.next();!x.done;x=E.next())x.value.reverse();Le&&(a.verticalAlignment(y,b,!1),se=J0(a,y,!1,!0)),y.reverse(),pe&&(a.verticalAlignment(y,b,!0),ne=J0(a,y,!0,!0)),Ur(y),a.u(z,ne,ie,se),a.network.vertexes.each(function(Me){var ze=Mr();de&&ze.push(z.get(Me)),pe&&ze.push(ne.get(Me)),Se&&ze.push(ie.get(Me)),Le&&ze.push(se.get(Me)),ze.sort(function(Ct,vt){return Ct-vt});var qe=ze.length;qe=(ze[Math.floor((qe-1)/2)]+ze[Math.ceil((qe-1)/2)])/2,Ur(ze),Me.zc=qe})}function RE(a,y){for(var b=a.length,E=1;E<b-1;E++)for(var x=0,z=0,ne=a[E],ie=a[E+1],se=0;z<ie.length;se++){var de=ie[se];e:{if(de.node===null){var pe=Uy(de);if(0<pe.length){pe=pe[0].node===null;break e}}pe=!1}var Se=pe;if(se===ie.length-1||Se){for(pe=ne.length-1,Se&&(pe=Uy(de)[0].index);z<=se;){if(de=ie[z],!de.bo){Se=[];for(var Le=Pr(de.sourceEdgesArrayAccess),Me=Le.next();!Me.done;Me=Le.next())Me=Me.value,Me.valid&&Se.push(Me);de.bo=Se}for(de=Pr(de.bo),Se=de.next();!Se.done;Se=de.next())Se=Se.value,Le=Se.fromVertex.index,(Le<x||Le>pe)&&y.add(Se);z++}x=pe}}}qo.prototype.verticalAlignment=function(a,y,b){ME(a),a=Pr(a);for(var E=a.next();!E.done;E=a.next()){var x=-1;E=Pr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=b?Uy(z):BE(z),ie=ne.length;if(0<ie){ne.sort(function(Se,Le){return Se.vi-Le.vi});var se=(ie-1)/2;for(ie=Math.floor(se),se=Math.ceil(se);ie<=se;ie++)if(z.align===z){var de=ne[ie],pe=void 0;pe=b?rv(de,z):rv(z,de),!y.contains(pe)&&x<de.vi&&(de.align=z,z.root=de.root,z.align=de.root,x=de.vi)}}}}};function ME(a){for(var y=0;y<a.length;y++)for(var b=a[y],E=0;E<b.length;E++){var x=b[E];x.root=x,x.align=x,x.Tz=y,x.vi=E}}function J0(a,y,b,E){for(var x=a.K===90||a.K===270,z=Pr(y),ne=z.next();!ne.done;ne=z.next()){var ie=Pr(ne.value);for(ne=ie.next();!ne.done;ne=ie.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=Pr(y),ie=z.next();!ie.done;ie=z.next()){ie=Pr(ie.value);for(var se=ie.next();!se.done;se=ie.next())if(se=se.value,se.root===se){for(var de=0,pe=se;pe.align!==se;){var Se=pe.align,Le=ne?pe.width:pe.height,Me=ne?Se.width:Se.height;if(b){var ze=rv(pe,Se),qe=ze.portFromPos,Ct=ze.portToPos;ze.link!==null&&(pe.node&&pe.node!==ze.link.fromNode&&(qe=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==ze.link.toNode&&(Ct=ne?Se.focusX:Se.focusY))}else ze=rv(Se,pe),qe=ze.portToPos,Ct=ze.portFromPos,ze.link!==null&&(pe.node&&pe.node!==ze.link.toNode&&(qe=ne?pe.focusX:pe.focusY),Se.node&&Se.node!==ze.link.fromNode&&(Ct=ne?Se.focusX:Se.focusY));Le=E?pe.qg+(Le-qe)-(Me-Ct):pe.qg+qe-Ct,Se.qg=Le,de=Math.min(de,Le),pe=pe.align}pe=se;do pe.qg=pe.qg-de,pe=pe.align;while(pe!==se)}}for(b=Pr(y),ne=b.next();!ne.done;ne=b.next())for(z=Pr(ne.value),ne=z.next();!ne.done;ne=z.next())ne=ne.value,ne.root===ne&&Ob(a,ne,y);for(b=0;b<y.length;b++)if(!(0>=y[b].length)&&(ne=y[b][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=b,ie=0;do{for(z=y[ne][ie];z.align!==z.root;)z=z.align,ne++,0<z.vi&&(ie=_b(z,y),ie.sd.shift=Math.min(ie.sd.shift,z.sd.shift+z.zc+z.qg-(ie.zc+ie.qg+(x?ie.width:ie.height)+a.columnSpacing)));ie=z.vi+1}while(ne<y.length&&ie<y[ne].length&&z.sd===y[ne][ie].sd)}for(a=new An,y=Pr(y),ne=y.next();!ne.done;ne=y.next())for(b=Pr(ne.value),ne=b.next();!ne.done;ne=b.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,z=x?ne.width:ne.height,a.add(ne,E?-ne.zc-z:ne.zc);return a}function Ob(a,y,b){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var x=_b(E,b),z=x.root;Ob(a,z,b),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-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function _b(a,y){var b=a.Tz;return a=a.vi,1>a&&Lt("Could not determine previous vertex in layer"),y[b][a-1]}qo.prototype.u=function(a){for(var y=[],b=0;b<arguments.length;++b)y[b]=arguments[b];b=-1;for(var E=Mr(),x=Mr(),z=1/0,ne=0;4>ne;ne++)if(y[ne]){var ie=OE(this,y[ne],E,x,ne);ie<z&&(b=ne,z=ie)}for(z={},ne=0;4>ne;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?E[b]-E[ne]:x[b]-x[ne],z.delta!==0&&y[ne].each(function(se){return function(de){de.value+=se.delta}}(z)));Ur(E),Ur(x)};function OE(a,y,b,E,x){if(!y||y.count===0)return b[x]=0,E[x]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(ie){var se=ie.key;ie=ie.value,se=a.K===90||a.K===270?se.width:se.height,ie<z&&(z=ie),ie+se>ne&&(ne=ie+se)}),b[x]=z,E[x]=ne,ne-z}qo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=q0(this,!0),y=q0(this,!1),b=this.network.edges.iterator;b.next();){var E=b.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function q0(a,y){return a.K===270?y?Ms:ks:a.K===90?y?ks:Ms:a.K===180?y?Qs:fs:y?fs:Qs}qo.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,b=y.layer;this.he[b]=Math.max(this.he[b],this.nodeMinLayerSpace(y,!0)),this.Ld[b]=Math.max(this.Ld[b],this.nodeMinLayerSpace(y,!1))}y=0,b=this.ie;for(var E=0;E<=this.Ia;E++){var x=b;0>=this.he[E]+this.Ld[E]&&(x=0),0<E&&(y+=x/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=x/2),this.Ta[E]=y}for(b=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+b-this.Kd[E],this.Ta[E]=b-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+b-this.Kd[E],this.Ta[E]=b-this.Ta[E]);b=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ne=x=1/0,ie=-1/0;a.next();){var se=a.value,de=se.layer,pe=se.column|0;E?(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,b&&isFinite(se.zc)&&(E?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),E?(ne=z,ie=Math.max(ie,se.bounds.right)):(ne=x,ie=Math.max(ie,se.bounds.bottom))}for(this.xw=ie-ne,z=y.x-z,y=y.y-x,this.Rf=new it(b&&E?0:z,b&&!E?0:y),a.reset();a.next();)b=a.value,b.x+=z,b.y+=y,b.commit()},qo.prototype.Gu=function(){for(var a=0,y=this.ie,b=0;b<=this.Ia;b++)a+=this.he[b],a+=this.Ld[b];a+=this.Ia*y,y=[],b=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new In(0,0,b,Math.abs(this.Ta[0]))):y.push(new In(0,this.Ta[E-1],b,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new In(0,this.Ta[0],b,Math.abs(this.Ta[0]-a))):y.push(new In(0,this.Ta[E],b,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new In(0,0,Math.abs(this.Ta[0]),b)):y.push(new In(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),b)):E===0?y.push(new In(this.Ta[0],0,Math.abs(this.Ta[0]-a),b)):y.push(new In(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),b));this.commitLayers(y,this.Rf)},qo.prototype.commitLayers=function(){},qo.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 b=a.value;if(y=b.link,y!==null){y.uh();var E=y,x=E.fromNode,z=E.toNode,ne=E.fromPort,ie=E.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,ie=se.port));var de=y.computeSpot(!0,ne);se=y.computeSpot(!1,ie);var pe=b.fromVertex,Se=b.toVertex;if(b.valid)y.curve===$u&&y.pointsCount===4&&(pe.column===Se.column&&this.alignOption===0?(b=y.getLinkPoint(x,ne,de,!0,!1,z,ie),ie=y.getLinkPoint(z,ie,se,!1,!1,x,ne),b.w()||b.set(x.actualBounds.center),ie.w()||ie.set(z.actualBounds.center),y.Fj(),y.yf(b.x,b.y),y.yf((2*b.x+ie.x)/3,(2*b.y+ie.y)/3),y.yf((b.x+2*ie.x)/3,(b.y+2*ie.y)/3),y.yf(ie.x,ie.y)):(b=E=!1,ne!==null&&de===Qi&&(E=!0),ie!==null&&se===Qi&&(b=!0),(E||b)&&(se=null,E&&(se=y.getLinkPointFromPoint(x,ne,ne.ga(Ji),y.i(3),!0),se.w()||se.set(x.actualBounds.center),y.L(0,se.x,se.y)),x=null,b&&(x=y.getLinkPointFromPoint(z,ie,ie.ga(Ji),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 Le=!1,Me=!1,ze=this.ie,qe=y.firstPickIndex+1;if(y.isOrthogonal){Me=!0;var Ct=y.pointsCount;4<Ct&&y.points.removeRange(2,Ct-3)}else if(y.curve===$u)Le=!0,Ct=y.pointsCount,4<Ct&&y.points.removeRange(2,Ct-3),Ct===4&&(qe=2);else{Ct=y.pointsCount;var vt=de===Qi,Dt=se===Qi;2<Ct&&vt&&Dt?y.points.removeRange(1,Ct-2):3<Ct&&vt&&!Dt?y.points.removeRange(1,Ct-3):3<Ct&&!vt&&Dt?y.points.removeRange(2,Ct-2):4<Ct&&!vt&&!Dt&&y.points.removeRange(2,Ct-3)}if(b.rev){for(;Se!==null&&pe!==Se;){var Bt=Ct=null;for(vt=Se.sourceEdges.iterator;vt.next()&&(Dt=vt.value,Dt.link!==b.link||(Ct=Dt.fromVertex,Bt=Dt.toVertex,Ct.node!==null)););if(Ct===null)break;if(Ct!==pe){vt=y.i(qe-1).x,Dt=y.i(qe-1).y;var Gt=Ct.centerX,$t=Ct.centerY;if(Me)this.K===180||this.K===0?qe===y.firstPickIndex+1?(y.m(qe++,vt,Dt),y.m(qe++,vt,$t)):(Bt!==null?Bt.centerY:Dt)!==$t&&(Bt=this.Ta[Ct.layer-1]+this.Rf.x,y.m(qe++,Bt,Dt),y.m(qe++,Bt,$t)):qe===y.firstPickIndex+1?(y.m(qe++,vt,Dt),y.m(qe++,Gt,Dt)):(Bt!==null?Bt.centerX:vt)!==Gt&&(Bt=this.Ta[Ct.layer-1]+this.Rf.y,y.m(qe++,vt,Bt),y.m(qe++,Gt,Bt));else if(qe===y.firstPickIndex+1){Bt=Math.max(10,this.he[Se.layer]);var Rn=Math.max(10,this.Ld[Se.layer]);if(Le)this.K===180?Gt<=Se.bounds.x?(Se=Se.bounds.x,y.m(qe++,Se-Bt,$t),y.m(qe++,Se,$t),y.m(qe++,Se+Rn,$t)):(y.m(qe++,Gt-Bt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt+Rn,$t)):this.K===90?$t>=Se.bounds.bottom?(Se=Se.bounds.y+Se.bounds.height,y.m(qe++,Gt,Se+Rn),y.m(qe++,Gt,Se),y.m(qe++,Gt,Se-Bt)):(y.m(qe++,Gt,$t+Rn),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t-Bt)):this.K===270?$t<=Se.bounds.y?(Se=Se.bounds.y,y.m(qe++,Gt,Se-Bt),y.m(qe++,Gt,Se),y.m(qe++,Gt,Se+Rn)):(y.m(qe++,Gt,$t-Bt),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t+Rn)):this.K===0&&(Gt>=Se.bounds.right?(Se=Se.bounds.x+Se.bounds.width,y.m(qe++,Se+Rn,$t),y.m(qe++,Se,$t),y.m(qe++,Se-Bt,$t)):(y.m(qe++,Gt+Rn,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt-Bt,$t)));else{y.m(qe++,vt,Dt);var Jr=0;this.K===180||this.K===0?((this.K===180?Gt>=Se.bounds.right:Gt<=Se.bounds.x)&&(Jr=(this.K===0?-Bt:Rn)/2),y.m(qe++,vt+Jr,$t)):((this.K===270?$t>=Se.bounds.bottom:$t<=Se.bounds.y)&&(Jr=(this.K===90?-Bt:Rn)/2),y.m(qe++,Gt,Dt+Jr)),y.m(qe++,Gt,$t)}}else Bt=Math.max(10,this.he[Ct.layer]),Rn=Math.max(10,this.Ld[Ct.layer]),Le?this.K===180?(y.m(qe++,Gt-Bt-ze,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.max(Gt+Rn-ze/2,Gt),$t),y.m(qe++,Gt+Rn+ze,$t)):this.K===90?(y.m(qe++,Gt,$t+Rn+ze),y.m(qe++,Gt,Math.max($t+Rn-ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t-Bt-ze)):this.K===270?(y.m(qe++,Gt,$t-Bt-ze),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.max($t+Rn-ze/2,$t)),y.m(qe++,Gt,$t+Rn+ze)):(y.m(qe++,Gt+Rn+ze,$t),y.m(qe++,Math.max(Gt+Rn-ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt-Bt-ze,$t)):y.m(qe++,Gt,$t)}Se=Ct}(ie===null||de!==Qi||Me)&&(vt=y.i(qe-1).x,Dt=y.i(qe-1).y,Gt=y.i(qe).x,$t=y.i(qe).y,Me?(ze=this.Ld[pe.layer],this.K===180||this.K===0?(Me=Dt,Me>=pe.bounds.y&&Me<=pe.bounds.bottom&&(this.K===180?Gt>=pe.bounds.x:Gt<=pe.bounds.right)&&(Se=pe.centerX+(this.K===180?-ze:ze),Me<pe.bounds.y+pe.bounds.height/2?Me=pe.bounds.y-this.kc/2:Me=pe.bounds.bottom+this.kc/2,y.m(qe++,Se,Dt),y.m(qe++,Se,Me)),y.m(qe++,Gt,Me)):(Me=vt,Me>=pe.bounds.x&&Me<=pe.bounds.right&&(this.K===270?$t>=pe.bounds.y:$t<=pe.bounds.bottom)&&(Se=pe.centerY+(this.K===270?-ze:ze),Me<pe.bounds.x+pe.bounds.width/2?Me=pe.bounds.x-this.kc/2:Me=pe.bounds.right+this.kc/2,y.m(qe++,vt,Se),y.m(qe++,Me,Se)),y.m(qe++,Me,$t)),y.m(qe++,Gt,$t)):Le?(Bt=Math.max(10,this.he[pe.layer]),Rn=Math.max(10,this.Ld[pe.layer]),this.K===180&&Gt>=pe.bounds.x?(Se=pe.bounds.x+pe.bounds.width,y.L(qe-2,Se,Dt),y.L(qe-1,Se+Rn,Dt)):this.K===90&&$t<=pe.bounds.bottom?(Se=pe.bounds.y,y.L(qe-2,vt,Se),y.L(qe-1,vt,Se-Bt)):this.K===270&&$t>=pe.bounds.y?(Se=pe.bounds.y+pe.bounds.height,y.L(qe-2,vt,Se),y.L(qe-1,vt,Se+Rn)):this.K===0&&Gt<=pe.bounds.right&&(Se=pe.bounds.x,y.L(qe-2,Se,Dt),y.L(qe-1,Se-Bt,Dt))):(Bt=Math.max(10,this.he[pe.layer]),Rn=Math.max(10,this.Ld[pe.layer]),Me=0,this.K===180||this.K===0?((this.K===180?Gt<=pe.bounds.x:Gt>=pe.bounds.right)&&(Me=(this.K===0?Rn:-Bt)/2),y.m(qe++,Gt+Me,Dt)):((this.K===270?$t<=pe.bounds.y:$t>=pe.bounds.bottom)&&(Me=(this.K===90?Rn:-Bt)/2),y.m(qe++,vt,$t+Me)),y.m(qe++,Gt,$t)))}else{for(;pe!==null&&pe!==Se;){for(Bt=Ct=null,pe=pe.destinationEdges.iterator;pe.next()&&(vt=pe.value,vt.link!==b.link||(Ct=vt.toVertex,Bt=vt.fromVertex,Bt.node!==null&&(Bt=null),Ct.node!==null)););if(Ct===null)break;Ct!==Se&&(vt=y.i(qe-1).x,Dt=y.i(qe-1).y,Gt=Ct.centerX,$t=Ct.centerY,Me?this.K===180||this.K===0?(Bt!==null?Bt.centerY:Dt)!==$t&&(Bt=this.Ta[Ct.layer]+this.Rf.x,qe===y.firstPickIndex+1&&(Bt=this.K===0?Math.max(Bt,vt):Math.min(Bt,vt)),y.m(qe++,Bt,Dt),y.m(qe++,Bt,$t)):(Bt!==null?Bt.centerX:vt)!==Gt&&(Bt=this.Ta[Ct.layer]+this.Rf.y,qe===y.firstPickIndex+1&&(Bt=this.K===90?Math.max(Bt,Dt):Math.min(Bt,Dt)),y.m(qe++,vt,Bt),y.m(qe++,Gt,Bt)):(Bt=Math.max(10,this.he[Ct.layer]),Rn=Math.max(10,this.Ld[Ct.layer]),Le?this.K===180?(y.m(qe++,Gt+Rn+ze,$t),y.m(qe++,Math.max(Gt+Rn-ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt-Bt-ze,$t)):this.K===90?(y.m(qe++,Gt,$t-Bt-ze),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.max($t+Rn-ze/2,$t)),y.m(qe++,Gt,$t+Rn+ze)):this.K===270?(y.m(qe++,Gt,$t+Rn+ze),y.m(qe++,Gt,Math.max($t+Rn-ze/2,$t)),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,Math.min($t-Bt+ze/2,$t)),y.m(qe++,Gt,$t-Bt-ze)):(y.m(qe++,Gt-Bt-ze,$t),y.m(qe++,Math.min(Gt-Bt+ze/2,Gt),$t),y.m(qe++,Gt,$t),y.m(qe++,Gt,$t),y.m(qe++,Math.max(Gt+Rn-ze/2,Gt),$t),y.m(qe++,Gt+Rn+ze,$t)):this.K===180?(y.m(qe++,Gt+Rn,$t),y.m(qe++,Gt-Bt,$t)):this.K===90?(y.m(qe++,Gt,$t-Bt),y.m(qe++,Gt,$t+Rn)):this.K===270?(y.m(qe++,Gt,$t+Rn),y.m(qe++,Gt,$t-Bt)):(y.m(qe++,Gt-Bt,$t),y.m(qe++,Gt+Rn,$t)))),pe=Ct}Me&&(vt=y.i(qe-1).x,Dt=y.i(qe-1).y,Gt=y.i(qe).x,$t=y.i(qe).y,this.K===180||this.K===0?Dt!==$t&&(Bt=this.K===0?Math.min(Math.max((Gt+vt)/2,this.Ta[Se.layer]+this.Rf.x),Gt):Math.max(Math.min((Gt+vt)/2,this.Ta[Se.layer]+this.Rf.x),Gt),y.m(qe++,Bt,Dt),y.m(qe++,Bt,$t)):vt!==Gt&&(Bt=this.K===90?Math.min(Math.max(($t+Dt)/2,this.Ta[Se.layer]+this.Rf.y),$t):Math.max(Math.min(($t+Dt)/2,this.Ta[Se.layer]+this.Rf.y),$t),y.m(qe++,vt,Bt),y.m(qe++,Gt,Bt)))}E!==null&&Le&&4<=y.pointsCount&&(ne!==null&&(ne=de===Qi?y.getLinkPointFromPoint(x,ne,ne.ga(Ji),y.i(3),!0):y.i(0),de===Qi&&(de=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+de.x)/2,de.y),y.L(2,E.x,(de.y+E.y)/2)):(y.L(1,de.x,(ne.y+de.y)/2),y.L(2,(de.x+E.x)/2,E.y))),ne.w()||ne.set(x.actualBounds.center),y.L(0,ne.x,ne.y)),ie!==null&&(x=se===Qi?y.getLinkPointFromPoint(z,ie,ie.ga(Ji),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),se===Qi&&(ie=y.i(y.pointsCount-3),se=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(x.x+ie.x)/2,ie.y),y.L(y.pointsCount-2,se.x,(ie.y+se.y)/2)):(y.L(y.pointsCount-2,ie.x,(x.y+ie.y)/2),y.L(y.pointsCount-3,(ie.x+se.x)/2,se.y))),x.w()||x.set(z.actualBounds.center),y.L(y.pointsCount-1,x.x,x.y))),y.zf(),b.commit()}}}this.avoidOrthogonalOverlaps()},qo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Qn,y=this.network.edges.iterator;y.next();){var b=y.value.link;b!==null&&b.isOrthogonal&&!a.contains(b)&&a.add(b)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,b=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var x=2;x<E.pointsCount-3;x++){var z=E.i(x),ne=E.i(x+1);if(this.B(z.y,ne.y)&&!this.B(z.x,ne.x)){var ie=new gf;ie.layer=Math.floor(z.y/2);var se=E.i(0),de=E.i(E.pointsCount-1);if(ie.first=se.x*se.x+se.y,ie.jc=de.x*de.x+de.y,ie.rd=Math.min(z.x,ne.x),ie.Ic=Math.max(z.x,ne.x),ie.index=x,ie.link=E,x+2<E.pointsCount){se=E.i(x-1),de=E.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),ie.j=pe}b.push(ie)}}}if(1<b.length)for(b.sort(this.Vx),a=0;a<b.length;){for(z=b[a].layer,E=a+1;E<b.length&&b[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=b[z].Ic,x=a+1;x<E&&b[x].rd<ne;)ne=Math.max(ne,b[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(b,this.Js,z,z+ne),pe=1,ie=b[z].jc,se=z;se<x;se++)de=b[se],de.jc!==ie&&(pe++,ie=de.jc);this.zi(b,this.Ux,z,z+ne);var Se=1;for(ie=b[z].first,se=z;se<x;se++)de=b[se],de.first!==ie&&(Se++,ie=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,ie=b[z].jc,this.zi(b,this.Js,z,z+ne)):ie=b[z].first,pe=0,Se=z;Se<x;Se++){var Le=b[Se];(se?Le.first:Le.jc)!==ie&&(pe++,ie=se?Le.first:Le.jc);var Me=Le.link;z=Me.i(Le.index),ne=Me.i(Le.index+1);var ze=this.linkSpacing*(pe-(de-1)/2);y++,Me.uh(),Me.L(Le.index,z.x,z.y+ze),Me.L(Le.index+1,ne.x,ne.y+ze),Me.zf()}}z=x}a=E}}else{for(y=0,b=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(x=2;x<E.pointsCount-3;x++)z=E.i(x),ne=E.i(x+1),this.B(z.x,ne.x)&&!this.B(z.y,ne.y)&&(ie=new gf,ie.layer=Math.floor(z.x/2),se=E.i(0),de=E.i(E.pointsCount-1),ie.first=se.x+se.y*se.y,ie.jc=de.x+de.y*de.y,ie.rd=Math.min(z.y,ne.y),ie.Ic=Math.max(z.y,ne.y),ie.index=x,ie.link=E,x+2<E.pointsCount&&(se=E.i(x-1),de=E.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),ie.j=pe),b.push(ie));if(1<b.length)for(b.sort(this.Vx),a=0;a<b.length;){for(z=b[a].layer,E=a+1;E<b.length&&b[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=b[z].Ic,x=a+1;x<E&&b[x].rd<ne;)ne=Math.max(ne,b[x].Ic),x++;if(ne=x-z,1<ne){for(this.zi(b,this.Js,z,z+ne),pe=1,ie=b[z].jc,se=z;se<x;se++)de=b[se],de.jc!==ie&&(pe++,ie=de.jc);for(this.zi(b,this.Ux,z,z+ne),Se=1,ie=b[z].first,se=z;se<x;se++)de=b[se],de.first!==ie&&(Se++,ie=de.first);for(se=!0,de=Se,pe<Se?(se=!1,de=pe,ie=b[z].jc,this.zi(b,this.Js,z,z+ne)):ie=b[z].first,pe=0,Se=z;Se<x;Se++)Le=b[Se],(se?Le.first:Le.jc)!==ie&&(pe++,ie=se?Le.first:Le.jc),Me=Le.link,z=Me.i(Le.index),ne=Me.i(Le.index+1),ze=this.linkSpacing*(pe-(de-1)/2),y++,Me.uh(),Me.L(Le.index,z.x+ze,z.y),Me.L(Le.index+1,ne.x+ze,ne.y),Me.zf()}z=x}a=E}}}},Oe=qo.prototype,Oe.Vx=function(a,y){return a instanceof gf&&y instanceof gf&&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},Oe.Ux=function(a,y){return a instanceof gf&&y instanceof gf&&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},Oe.Js=function(a,y){return a instanceof gf&&y instanceof gf&&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},Oe.B=function(a,y){return a-=y,-1<a&&1>a},Oe.zi=function(a,y,b,E){var x=a.length,z=E-b;if(!(1>=z))if((0>b||b>=x-1)&&Lt("not in range 0 <= from < length: "+b),z===2)E=a[b],x=a[b+1],0<y(E,x)&&(a[b]=x,a[b+1]=E);else if(b===0)if(E>=x)a.sort(y);else for(b=a.slice(0,E),b.sort(y),y=0;y<E;y++)a[y]=b[y];else if(E>=x)for(E=a.slice(b),E.sort(y),y=b;y<x;y++)a[y]=E[y-b];else for(x=a.slice(b,E),x.sort(y),y=b;y<E;y++)a[y]=x[y-b]};function ff(a,y){var b=a.tc[y];if(b>=a.He.length){for(var E=[],x=0;x<a.He.length;x++)E[x]=a.He[x];a.He=E}for(a.He[b]===void 0||a.He[b]===null?E=[]:(E=a.He[b],a.He[b]=null),a=a.fl[y],y=0;y<a.length;y++)b=a[y],E[b.index]=b;return E}function pf(a,y,b){a.He[a.tc[y]]=b}Jn.Object.defineProperties(qo.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()):Lt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Dy&&a!==$0&&a!==Cm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==ev&&a!==Ry&&a!==My||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==tv&&a!==Oy&&a!==Fy||(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!==By&&a!==nv&&a!==_y||(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 $0=new mn(qo,"CycleDepthFirst",0),Dy=new mn(qo,"CycleGreedy",1),Cm=new mn(qo,"CycleFromLayers",2),ev=new mn(qo,"LayerOptimalLinkLength",0),Ry=new mn(qo,"LayerLongestPathSink",1),My=new mn(qo,"LayerLongestPathSource",2),tv=new mn(qo,"InitDepthFirstOut",0),Oy=new mn(qo,"InitDepthFirstIn",1),Fy=new mn(qo,"InitNaive",2),By=new mn(qo,"AggressiveNone",0),nv=new mn(qo,"AggressiveLess",1),_y=new mn(qo,"AggressiveMore",2),FE=8;qo.className="LayeredDigraphLayout",qo.CycleDepthFirst=$0,qo.CycleGreedy=Dy,qo.CycleFromLayers=Cm,qo.LayerOptimalLinkLength=ev,qo.LayerLongestPathSink=Ry,qo.LayerLongestPathSource=My,qo.InitDepthFirstOut=tv,qo.InitDepthFirstIn=Oy,qo.InitNaive=Fy,qo.AggressiveNone=By,qo.AggressiveLess=nv,qo.AggressiveMore=_y,qo.PackNone=0,qo.PackExpand=1,qo.PackStraighten=2,qo.PackMedian=4,qo.PackAll=15,qo.AlignNone=0,qo.AlignUpperLeft=1,qo.AlignUpperRight=2,qo.AlignLowerLeft=4,qo.AlignLowerRight=8,qo.AlignAll=15;function gf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}gf.className="SegInfo";function Lg(a){ba.call(this,a)}Sn(Lg,ba),Lg.prototype.createVertex=function(){return new mc(this)},Lg.prototype.createEdge=function(){return new Pm(this)},Lg.className="LayeredDigraphNetwork";function mc(a){Ns.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}Sn(mc,Ns);function Ub(a,y){return a.index-y.index}function rv(a,y){if(!a.$n){for(var b=[],E=Pr(a.destinationEdgesArrayAccess),x=E.next();!x.done;x=E.next())x=x.value,x.valid&&b.push(x);a.$n=b}for(a=Pr(a.$n),b=a.next();!b.done;b=a.next())if(b=b.value,b.toVertex===y)return b;Lt("Unable to find destination edge to given vertex")}function Uy(a){if(!a.co){for(var y=[],b=Pr(a.sourceEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(Ub),a.co=y}return a.co}function BE(a){if(!a.ao){for(var y=[],b=Pr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(Ub),a.ao=y}return a.ao}mc.prototype.Cl=function(a){Ns.prototype.Cl.call(this,a),this.bo=this.co=null},mc.prototype.Kl=function(a){Ns.prototype.Kl.call(this,a),this.bo=this.co=null},mc.prototype.zl=function(a){Ns.prototype.zl.call(this,a),this.$n=this.ao=null},mc.prototype.Jl=function(a){Ns.prototype.Jl.call(this,a),this.$n=this.ao=null},Jn.Object.defineProperties(mc.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)}}}),mc.prototype.deleteDestinationEdge=mc.prototype.Jl,mc.prototype.addDestinationEdge=mc.prototype.zl,mc.prototype.deleteSourceEdge=mc.prototype.Kl,mc.prototype.addSourceEdge=mc.prototype.Cl,mc.className="LayeredDigraphVertex";function Pm(a){Wu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Sn(Pm,Wu),Jn.Object.defineProperties(Pm.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)}}}),Pm.className="LayeredDigraphEdge";function mo(a){Pa.call(this),this.Ub=new ar,this.Wn=sv,this.ud=Rd,this.vo=uv,this.Bq=Qy,this.$v=[],this.td=!0,this.Rb=cv,this.$d=new an(10,10).freeze();var y=new Bp(this);this.W=new Nc(y),this.Y=new Nc(y),this.ru=[],a&&Object.assign(this,a)}Sn(mo,Pa),mo.prototype.cloneProtected=function(a){Pa.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)},mo.prototype.qb=function(a){a.classType===mo?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:Lt("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},mo.prototype.createNetwork=function(){return new Bp(this)},mo.prototype.makeNetwork=function(a){function y(E){if(E instanceof $r)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof _r){var x=E.fromNode;return x===null||x.isLinkLabel||x.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var b=this.createNetwork();return a instanceof Dn?(b.lg(a.nodes,!0,y),b.lg(a.links,!0,y)):a instanceof ro?b.lg(a.memberParts,!1,y):b.lg(a.iterator,!1,y),b},mo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==dv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Dn&&(y=a),this.path===sv&&y!==null?this.ud=y.isTreePathToChildren?Rd:Op:this.ud=this.path===sv?Rd: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 ar,y=this.Ub.iterator;y.next();){var b=y.value;b instanceof $r?(b=this.network.ki(b),b!==null&&a.add(b)):b instanceof Nc&&a.add(b)}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,Hy(this,y));for(y=this.network.vertexes,a=null;a=_E(y),0<a.count;)y=Hb(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Hy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Nc&&Wb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Nc&&Zb(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Nc&&Kb(this,y);if(this.Cu(),this.layerStyle===hv){for(a=[],y=this.network.vertexes.iterator;y.next();){b=y.value;var E=b.parent;E===null&&(E=b),E=E.angle===0||E.angle===180;var x=a[b.level];x===void 0&&(x=0),a[b.level]=Math.max(x,E?b.width:b.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();)b=y.value,E=b.parent,E===null&&(E=b),E.angle===0||E.angle===180?(E.angle===180&&(b.focusX+=a[b.level]-b.width),b.width=a[b.level]):(E.angle===270&&(b.focusY+=a[b.level]-b.height),b.height=a[b.level])}else if(this.layerStyle===Jy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,b=y.angle===0||y.angle===180,E=-1,x=0;x<y.children.length;x++){var z=y.children[x];E=Math.max(E,b?z.width:z.height)}if(0<=E)for(x=0;x<y.children.length;x++)z=y.children[x],b?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Nc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new ar,this.isValidLayout=!0};function _E(a){var y=new ar;for(a=a.iterator;a.next();){var b=a.value;b.initialized||y.add(b)}return y}mo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var b=y.value;switch(this.ud){case Rd:b.sourceEdges.count===0&&this.Ub.add(b);break;case Op:b.destinationEdges.count===0&&this.Ub.add(b);break;default:Lt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=Hb(this,a),a!==null&&this.Ub.add(a))};function Hb(a,y){var b=999999,E=null;for(y=y.iterator;y.next();){var x=y.value;switch(a.ud){case Rd:x.sourceEdges.count<b&&(b=x.sourceEdges.count,E=x);break;case Op:x.destinationEdges.count<b&&(b=x.destinationEdges.count,E=x);break;default:Lt("Unhandled path value "+a.ud.toString())}}return E}function Hy(a,y){if(y!==null){switch(a.ud){case Rd:if(0<y.destinationEdges.count){for(var b=new Qn,E=y.destinationVertexes;E.next();){var x=E.value;Vb(a,y,x)&&b.add(x)}0<b.count&&(y.children=b.Fa())}break;case Op:if(0<y.sourceEdges.count){for(b=new Qn,E=y.sourceVertexes;E.next();)x=E.value,Vb(a,y,x)&&b.add(x);0<b.count&&(y.children=b.Fa())}break;default:Lt("Unhandled path value"+a.ud.toString())}for(b=y.children,E=b.length,x=0;x<E;x++){var z=b[x];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Hy(a,b[y])}}function Vb(a,y,b){if(b.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==b;)E=E.parent;E=E===b}if(E||b.level>y.level)return!1;a.removeChild(b.parent,b)}return!0}mo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var b=a.children,E=0,x=0;x<b.length;x++)b[x]===y&&E++;if(0<E){E=Array(b.length-E);for(var z=x=0;z<b.length;z++)b[z]!==y&&(E[x++]=b[z]);a.children=E}}};function Wb(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Fd&&a.sortTreeVertexChildren(y);for(var b=0,E=y.childrenCount,x=0,z=y.children,ne=z.length,ie=0;ie<ne;ie++){var se=z[ie];Wb(a,se),b+=se.descendantCount+1,E=Math.max(E,se.maxChildrenCount),x=Math.max(x,se.maxGenerationCount)}y.descendantCount=b,y.maxChildrenCount=E,y.maxGenerationCount=0<E?x+1:0}}function UE(a,y){switch(a.vo){default:case uv:return y.parent!==null?y.parent:a.W;case Yy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Ky:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Zy:var b=!0;if(y.childrenCount===0)b=!1;else for(var E=y.children,x=E.length,z=0;z<x;z++)if(0<E[z].childrenCount){b=!1;break}return b&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}mo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(UE(this,a)),a.parent!==null&&a.parent.alignment===Fd){for(var y=a.angle,b=a.parent.children,E=0;E<b.length&&a!==b[E];)E++;E%2===0?E!==b.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 Zb(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Zb(a,y[E])}}mo.prototype.assignTreeVertexValues=function(){};function Kb(a,y){if(y!==null){y.alignment!==Fd&&a.sortTreeVertexChildren(y),y=y.children;for(var b=y.length,E=0;E<b;E++)Kb(a,y[E])}}mo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case kg:break;case Am:a.children.reverse();break;case Nm:a.children.sort(a.comparer);break;case Lm:a.children.sort(a.comparer),a.children.reverse();break;default:Lt("Unhandled sorting value "+a.sorting.toString())}},mo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},mo.prototype.addComments=function(a){var y=a.angle,b=a.parent,E=0,x=!1;b!==null&&(E=b.angle,x=b.alignment,x=mf(x)),y=y===90||y===270,E=E===90||E===270,b=a.childrenCount===0;var z=0,ne=0,ie=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&&!b||!x&&!E&&b||x&&E&&b?(z=Math.max(z,pe.width),ne+=pe.height+Math.abs(ie)):(z+=pe.width+Math.abs(ie),ne=Math.max(ne,pe.height)),ie=se)}a.comments!==null&&(y&&!b||!x&&!E&&b||x&&E&&b?(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=In.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=x,In.free(x))};function mf(a){return a===Rh||a===Fd||a===Mh||a===rh}function Tm(a){return a===Rh||a===Fd}function zy(a){var y=a.parent;if(y!==null){var b=y.alignment;if(mf(b)){if(Tm(b)){for(y=y.children,b=0;b<y.length&&a!==y[b];)b++;return b%2===0}if(b===Mh)return!0}}return!1}mo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,b=a.parent,E=a.angle,x=0,z=!1;b!==null&&(x=b.angle,z=b.alignment,z=mf(z)),E=E===90||E===270,b=x===90||x===270;for(var ne=a.childrenCount===0,ie=zy(a),se=0,de=a.comments,pe=de.length,Se=it.alloc(),Le=0;Le<pe;Le++){var Me=de[Le],ze=Me.measuredBounds;if(E&&!ne||!z&&!b&&ne||z&&b&&ne){if(135<x&&!z||b&&ie)if(0<=a.commentMargin)for(Se.h(a.bounds.x-a.commentMargin-ze.width,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();){var qe=Me.value;qe.fromSpot=Qs,qe.toSpot=fs}else for(Se.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=fs,qe.toSpot=Qs;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=fs,qe.toSpot=Qs;else for(Se.h(a.bounds.x+a.commentMargin-ze.width,a.bounds.y+se),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=Qs,qe.toSpot=fs;se=0<=a.commentSpacing?se+(ze.height+a.commentSpacing):se+(a.commentSpacing-ze.height)}else{if(135<x&&!z||!b&&ie)if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y-a.commentMargin-ze.height),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=Ms,qe.toSpot=ks;else for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y-a.commentMargin),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=ks,qe.toSpot=Ms;else if(0<=a.commentMargin)for(Se.h(a.bounds.x+se,a.bounds.y+2*a.focus.y+a.commentMargin),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=ks,qe.toSpot=Ms;else for(Se.h(a.bounds.x+se,a.bounds.y+a.commentMargin-ze.height),Me.move(Se),Me=Me.Sd();Me.next();)qe=Me.value,qe.fromSpot=Ms,qe.toSpot=ks;se=0<=a.commentSpacing?se+(ze.width+a.commentSpacing):se+(a.commentSpacing-ze.width)}}if(it.free(Se),y=se-a.commentSpacing-(E?y.height:y.width),this.ud===Rd)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)}},mo.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,b=y.length,E=0;E<b;E++)this.layoutTree(y[E]);switch(a.compaction){case lv:Yb(this,a);break;case km:if(a.alignment===Fd)Yb(this,a);else if(a.childrenCount===0)E=a.parent,b=!1,y=0,E!==null&&(y=E.angle,b=E.alignment,b=mf(b)),E=zy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||b)&&!E?a.la.h(0,0):y===180&&!b||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var x=Zc(a);y=x===90||x===270;var z=0,ne=a.children,ie=ne.length;for(b=0;b<ie;b++)E=ne[b],z=Math.max(z,y?E.Da.width:E.Da.height);var se=a.alignment;E=se===Md;var de=se===Od,pe=mf(se),Se=Math.max(0,a.breadthLimit);b=this.computeLayerSpacing(a);var Le=a.nodeSpacing,Me=this.computeNodeIndent(a),ze=a.rowSpacing,qe=0;(E||de||a.hm||a.im&&a.maxGenerationCount===1)&&(qe=Math.max(0,a.rowIndent)),E=a.width;var Ct=a.height,vt=0,Dt=0,Bt=0,Gt=null,$t=null,Rn=0,Jr=0,gi=0,di=0,Br=0,gr=0,to=0,Ui=0;if(pe&&!Tm(se)&&135<x&&ne.reverse(),Tm(se))if(1<ie)for(var Uo=0;Uo<ie;Uo++)Uo%2===0&&Uo!==ie-1&&(Ui=Math.max(Ui,y?ne[Uo].Da.width:ne[Uo].Da.height));else ie===1&&(Ui=y?ne[0].Da.width:ne[0].Da.height);if(pe){switch(se){case Rh:Dt=135>x?Xb(this,a,ne,Ui,vt,Dt):Qb(this,a,ne,Ui,vt,Dt),Ui=Dt.x,vt=Dt.width,Dt=Dt.height;break;case Mh:for(Gt=0;Gt<ie;Gt++)$t=ne[Gt],Se=$t.Da,Bt=gr===0?0:ze,y?($t.S.h(z-Se.width,di+Bt),vt=Math.max(vt,Se.width),Dt=Math.max(Dt,di+Bt+Se.height),di+=Bt+Se.height):($t.S.h(gi+Bt,z-Se.height),vt=Math.max(vt,gi+Bt+Se.width),Dt=Math.max(Dt,Se.height),gi+=Bt+Se.width),gr++;break;case rh:for(Gt=0;Gt<ie;Gt++)$t=ne[Gt],z=$t.Da,Se=gr===0?0:ze,y?($t.S.h(Le/2+a.focus.x,di+Se),vt=Math.max(vt,z.width),Dt=Math.max(Dt,di+Se+z.height),di+=Se+z.height):($t.S.h(gi+Se,Le/2+a.focus.y),vt=Math.max(vt,gi+Se+z.width),Dt=Math.max(Dt,z.height),gi+=Se+z.width),gr++}Gt=Lu(this,2),$t=Lu(this,2),y?(Gt[0].h(0,0),Gt[1].h(0,Dt),$t[0].h(vt,0)):(Gt[0].h(0,0),Gt[1].h(vt,0),$t[0].h(0,Dt)),$t[1].h(vt,Dt)}else for(Uo=0;Uo<ie;Uo++){var fa=ne[Uo],_s=fa.Da;if(y){0<Se&&0<gr&&gi+Le+_s.width>Se&&(gi<z&&Kf(a,se,z-gi,0,to,Uo-1),Br++,gr=0,to=Uo,Bt=Dt,gi=0,di=135<x?-Dt-ze:Dt+ze),ov(this,fa,0,di);var Ys=0;if(gr===0)Gt=fa.Yo,$t=fa.kp,Rn=_s.width,Jr=_s.height,(Gt===null||$t===null||x!==Zc(fa))&&(Gt=Lu(this,2),$t=Lu(this,2),Gt[0].h(0,0),Gt[1].h(0,Jr),$t[0].h(Rn,0),$t[1].h(Rn,Jr));else{var Vl=Mr();Jr=Jb(this,a,fa,Gt,$t,Rn,Jr,Vl),Ys=Jr.x,Gt=Vl[0],$t=Vl[1],Rn=Jr.width,Jr=Jr.height,Ur(Vl),gi<_s.width&&0>Ys&&(Mp(a,-Ys,0,to,Uo-1),av(Gt,-Ys,0),av($t,-Ys,0),Ys=0)}fa.S.h(Ys,di),vt=Math.max(vt,Rn),Dt=Math.max(Dt,Bt+(Br===0?0:ze)+_s.height),gi=Rn}else 0<Se&&0<gr&&di+Le+_s.height>Se&&(di<z&&Kf(a,se,0,z-di,to,Uo-1),Br++,gr=0,to=Uo,Bt=vt,di=0,gi=135<x?-vt-ze:vt+ze),ov(this,fa,gi,0),Ys=0,gr===0?(Gt=fa.Yo,$t=fa.kp,Rn=_s.width,Jr=_s.height,(Gt===null||$t===null||x!==Zc(fa))&&(Gt=Lu(this,2),$t=Lu(this,2),Gt[0].h(0,0),Gt[1].h(Rn,0),$t[0].h(0,Jr),$t[1].h(Rn,Jr))):(Vl=Mr(),Jr=Jb(this,a,fa,Gt,$t,Rn,Jr,Vl),Ys=Jr.x,Gt=Vl[0],$t=Vl[1],Rn=Jr.width,Jr=Jr.height,Ur(Vl),di<_s.height&&0>Ys&&(Mp(a,0,-Ys,to,Uo-1),av(Gt,0,-Ys),av($t,0,-Ys),Ys=0)),fa.S.h(gi,Ys),Dt=Math.max(Dt,Jr),vt=Math.max(vt,Bt+(Br===0?0:ze)+_s.width),di=Jr;gr++}switch(0<Br&&(y?(Dt+=Math.max(0,b),gi<vt&&Kf(a,se,vt-gi,0,to,ie-1),0<qe&&(de||Mp(a,qe,0,0,ie-1),vt+=qe)):(vt+=Math.max(0,b),di<Dt&&Kf(a,se,0,Dt-di,to,ie-1),0<qe&&(de||Mp(a,0,qe,0,ie-1),Dt+=qe))),qe=de=0,se){case Ig:y?de+=vt/2-a.focus.x-Me/2:qe+=Dt/2-a.focus.y-Me/2;break;case Fp:0<Br?y?de+=vt/2-a.focus.x-Me/2:qe+=Dt/2-a.focus.y-Me/2:y?(Ui=ne[0].S.x+ne[0].la.x,de+=Ui+(ne[ie-1].S.x+ne[ie-1].la.x+2*ne[ie-1].focus.x-Ui)/2-a.focus.x-Me/2):(Ui=ne[0].S.y+ne[0].la.y,qe+=Ui+(ne[ie-1].S.y+ne[ie-1].la.y+2*ne[ie-1].focus.y-Ui)/2-a.focus.y-Me/2);break;case Md:y?(de-=Me,vt+=Me):(qe-=Me,Dt+=Me);break;case Od:y?(de+=vt-a.width+Me,vt+=Me):(qe+=Dt-a.height+Me,Dt+=Me);break;case Rh:y?1<ie?de+=Ui+Le/2-a.focus.x:de+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<ie?qe+=Ui+Le/2-a.focus.y:qe+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Mh:y?de+=vt+Le/2-a.focus.x:qe+=Dt+Le/2-a.focus.y;break;case rh:break;default:Dt=this.customAlignment(a,de,qe,vt,Dt),de=Dt[0],qe=Dt[1],vt=Dt[2],Dt=Dt[3]}for(Me=0;Me<ie;Me++)Ui=ne[Me],y?Ui.S.h(Ui.S.x+Ui.la.x-de,Ui.S.y+(135<x?(pe?-Dt:-Ui.Da.height)+Ui.la.y-b:Ct+b+Ui.la.y)):Ui.S.h(Ui.S.x+(135<x?(pe?-vt:-Ui.Da.width)+Ui.la.x-b:E+b+Ui.la.x),Ui.S.y+Ui.la.y-qe);if(ie=ne=0,pe?y?(vt=Gy(a,vt,de),0>de&&(de=0),135<x&&(qe+=Dt+b),Dt+=Ct+b,se===rh&&(ne+=Le/2+a.focus.x),ie+=Ct+b):(135<x&&(de+=vt+b),vt+=E+b,Dt=jy(a,Dt,qe),0>qe&&(qe=0),se===rh&&(ie+=Le/2+a.focus.y),ne+=E+b):y?(a.comments===null?E>vt&&(vt=Vy(se,E-vt,0),ne=vt.x,ie=vt.y,vt=E,de=0):vt=Gy(a,vt,de),0>de&&(ne-=de,de=0),135<x&&(qe+=Dt+b),Dt=Math.max(Math.max(Dt,Ct),Dt+Ct+b),ie+=Ct+b):(135<x&&(de+=vt+b),vt=Math.max(Math.max(vt,E),vt+E+b),a.comments===null?Ct>Dt&&(Dt=Vy(se,0,Ct-Dt),ne=Dt.x,ie=Dt.y,Dt=Ct,qe=0):Dt=jy(a,Dt,qe),0>qe&&(ie-=qe,qe=0),ne+=E+b),0<Br)x=Lu(this,4),Br=Lu(this,4),y?(x[2].h(0,Ct+b),x[3].h(x[2].x,Dt),Br[2].h(vt,x[2].y),Br[3].h(Br[2].x,x[3].y)):(x[2].h(E+b,0),x[3].h(vt,x[2].y),Br[2].h(x[2].x,Dt),Br[3].h(x[3].x,Br[2].y));else{for(x=Lu(this,Gt.length+2),Br=Lu(this,$t.length+2),se=0;se<Gt.length;se++)pe=Gt[se],x[se+2].h(pe.x+ne,pe.y+ie);for(se=0;se<$t.length;se++)pe=$t[se],Br[se+2].h(pe.x+ne,pe.y+ie)}y?(x[0].h(de,0),x[1].h(x[0].x,Ct),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])),Br[0].h(de+E,0),Br[1].h(Br[0].x,Ct),Br[2].y<Br[1].y&&(Br[2].x<Br[0].x?Br[2].assign(Br[1]):Br[1].assign(Br[2])),Br[3].y<Br[2].y&&(Br[3].x<Br[0].x?Br[3].assign(Br[2]):Br[2].assign(Br[3])),x[2].y-=b/2,Br[2].y-=b/2):(x[0].h(0,qe),x[1].h(E,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])),Br[0].h(0,qe+Ct),Br[1].h(E,Br[0].y),Br[2].x<Br[1].x&&(Br[2].y<Br[0].y?Br[2].assign(Br[1]):Br[1].assign(Br[2])),Br[3].x<Br[2].x&&(Br[3].y<Br[0].y?Br[3].assign(Br[2]):Br[2].assign(Br[3])),x[2].x-=b/2,Br[2].x-=b/2),rd(this,Gt),rd(this,$t),a.Yo=x,a.kp=Br,a.la.h(de,qe),a.Da.h(vt,Dt)}break;default:Lt("Unhandled compaction value "+a.compaction.toString())}}};function Yb(a,y){if(y.childrenCount===0){var b=!1,E=0;y.parent!==null&&(E=y.parent.angle,b=y.parent.alignment,b=mf(b));var x=zy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||b)&&!x?y.la.h(0,0):E===180&&!b||(E===90||E===270)&&x?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=Zc(y),b=E===90||E===270;var z=0;x=y.children;for(var ne=x.length,ie=0;ie<ne;ie++){var se=x[ie];z=Math.max(z,b?se.Da.width:se.Da.height)}var de=y.alignment,pe=de===Md,Se=de===Od;ie=mf(de);var Le=Math.max(0,y.breadthLimit);se=a.computeLayerSpacing(y);var Me=y.nodeSpacing,ze=a.computeNodeIndent(y),qe=pe||Se?0:ze/2,Ct=y.rowSpacing,vt=0;(pe||Se||y.hm||y.im&&y.maxGenerationCount===1)&&(vt=Math.max(0,y.rowIndent)),pe=y.width;var Dt=y.height,Bt=0,Gt=0,$t=0,Rn=0,Jr=0,gi=0,di=0,Br=0,gr=0,to=0;if(ie&&!Tm(de)&&135<E&&x.reverse(),Tm(de))if(1<ne)for(var Ui=0;Ui<ne;Ui++){var Uo=x[Ui],fa=Uo.Da;Ui%2===0&&Ui!==ne-1?gr=Math.max(gr,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Uo)-Me):Ui%2!==0&&(to=Math.max(to,(b?fa.width:fa.height)+a.computeBusNodeSpacing(Uo)-Me))}else ne===1&&(gr=b?x[0].Da.width:x[0].Da.height);if(ie)switch(de){case Rh:case Fd:Gt=135>E?Xb(a,y,x,gr,Bt,Gt):Qb(a,y,x,gr,Bt,Gt),gr=Gt.x,Bt=Gt.width,Gt=Gt.height;break;case Mh:for(Le=0;Le<ne;Le++)qe=x[Le],$t=qe.Da,to=di===0?0:Ct,b?(qe.S.h(z-$t.width,Jr+to),Bt=Math.max(Bt,$t.width),Gt=Math.max(Gt,Jr+to+$t.height),Jr+=to+$t.height):(qe.S.h(Rn+to,z-$t.height),Bt=Math.max(Bt,Rn+to+$t.width),Gt=Math.max(Gt,$t.height),Rn+=to+$t.width),di++;break;case rh:for(z=0;z<ne;z++)Le=x[z],qe=Le.Da,$t=di===0?0:Ct,b?(Le.S.h(Me/2+y.focus.x,Jr+$t),Bt=Math.max(Bt,qe.width),Gt=Math.max(Gt,Jr+$t+qe.height),Jr+=$t+qe.height):(Le.S.h(Rn+$t,Me/2+y.focus.y),Bt=Math.max(Bt,Rn+$t+qe.width),Gt=Math.max(Gt,qe.height),Rn+=$t+qe.width),di++}else for(to=0;to<ne;to++)Ui=x[to],Uo=Ui.Da,b?(0<Le&&0<di&&Rn+Me+Uo.width>Le&&(Rn<z&&Kf(y,de,z-Rn,0,Br,to-1),gi++,di=0,Br=to,$t=Gt,Rn=0,Jr=135<E?-Gt-Ct:Gt+Ct),fa=di===0?qe:Me,ov(a,Ui,0,Jr),Ui.S.h(Rn+fa,Jr),Bt=Math.max(Bt,Rn+fa+Uo.width),Gt=Math.max(Gt,$t+(gi===0?0:Ct)+Uo.height),Rn+=fa+Uo.width):(0<Le&&0<di&&Jr+Me+Uo.height>Le&&(Jr<z&&Kf(y,de,0,z-Jr,Br,to-1),gi++,di=0,Br=to,$t=Bt,Jr=0,Rn=135<E?-Bt-Ct:Bt+Ct),fa=di===0?qe:Me,ov(a,Ui,Rn,0),Ui.S.h(Rn,Jr+fa),Gt=Math.max(Gt,Jr+fa+Uo.height),Bt=Math.max(Bt,$t+(gi===0?0:Ct)+Uo.width),Jr+=fa+Uo.height),di++;switch(0<gi&&(b?(Gt+=Math.max(0,se),Rn<Bt&&Kf(y,de,Bt-Rn,0,Br,ne-1),0<vt&&(Se||Mp(y,vt,0,0,ne-1),Bt+=vt)):(Bt+=Math.max(0,se),Jr<Gt&&Kf(y,de,0,Gt-Jr,Br,ne-1),0<vt&&(Se||Mp(y,0,vt,0,ne-1),Gt+=vt))),vt=Se=0,de){case Ig:b?Se+=Bt/2-y.focus.x-ze/2:vt+=Gt/2-y.focus.y-ze/2;break;case Fp:0<gi?b?Se+=Bt/2-y.focus.x-ze/2:vt+=Gt/2-y.focus.y-ze/2:b?(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-ze/2):(a=x[0].S.y+x[0].la.y,vt+=a+(x[ne-1].S.y+x[ne-1].la.y+2*x[ne-1].focus.y-a)/2-y.focus.y-ze/2);break;case Md:b?(Se-=ze,Bt+=ze):(vt-=ze,Gt+=ze);break;case Od:b?(Se+=Bt-y.width+ze,Bt+=ze):(vt+=Gt-y.height+ze,Gt+=ze);break;case Rh:case Fd:b?1<ne?Se+=gr+Me/2-y.focus.x:Se+=x[0].focus.x-y.focus.x+x[0].la.x:1<ne?vt+=gr+Me/2-y.focus.y:vt+=x[0].focus.y-y.focus.y+x[0].la.y;break;case Mh:b?Se+=Bt+Me/2-y.focus.x:vt+=Gt+Me/2-y.focus.y;break;case rh:break;default:a=a.customAlignment(y,Se,vt,Bt,Gt),Se=a[0],vt=a[1],Bt=a[2],Gt=a[3]}for(a=0;a<ne;a++)ze=x[a],b?ze.S.h(ze.S.x+ze.la.x-Se,ze.S.y+(135<E?(ie?-Gt:-ze.Da.height)+ze.la.y-se:Dt+se+ze.la.y)):ze.S.h(ze.S.x+(135<E?(ie?-Bt:-ze.Da.width)+ze.la.x-se:pe+se+ze.la.x),ze.S.y+ze.la.y-vt);b?(Bt=Gy(y,Bt,Se),0>Se&&(Se=0),135<E&&(vt+=Gt+se),Gt=Math.max(Math.max(Gt,Dt),Gt+Dt+se)):(135<E&&(Se+=Bt+se),Bt=Math.max(Math.max(Bt,pe),Bt+pe+se),Gt=jy(y,Gt,vt),0>vt&&(vt=0)),y.la.h(Se,vt),y.Da.h(Bt,Gt)}}mo.prototype.customAlignment=function(a,y,b,E,x){return[y,b,E,x]};function Xb(a,y,b,E,x,z){var ne=b.length;if(ne===0)return new In(E,0,x,z);if(ne===1)return y=b[0],x=y.Da.width,z=y.Da.height,new In(E,0,x,z);for(var ie=y.nodeSpacing,se=y.rowSpacing,de=Zc(y)===90,pe=0,Se=0,Le=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var ze=b[Me],qe=ze.Da,Ct=pe===0?0:se;if(de){var vt=a.computeBusNodeSpacing(ze)-ie;ze.S.h(E-(qe.width+vt),Le+Ct),x=Math.max(x,qe.width+vt),z=Math.max(z,Le+Ct+qe.height),Le+=Ct+qe.height}else vt=a.computeBusNodeSpacing(ze)-ie,ze.S.h(Se+Ct,E-(qe.height+vt)),z=Math.max(z,qe.height+vt),x=Math.max(x,Se+Ct+qe.width),Se+=Ct+qe.width;pe++}for(pe=0,ze=Se,Me=Le,de?(Se=E+ie,Le=0):(Se=0,Le=E+ie),qe=0;qe<ne;qe++)if(qe%2!==0){Ct=b[qe],vt=Ct.Da;var Dt=pe===0?0:se;if(de){var Bt=a.computeBusNodeSpacing(Ct)-ie;Ct.S.h(Se+Bt,Le+Dt),x=Math.max(x,Se+vt.width+Bt),z=Math.max(z,Le+Dt+vt.height),Le+=Dt+vt.height}else Bt=a.computeBusNodeSpacing(Ct)-ie,Ct.S.h(Se+Dt,Le+Bt),x=Math.max(x,Se+Dt+vt.width),z=Math.max(z,Le+vt.height+Bt),Se+=Dt+vt.width;pe++}return 1<ne&&ne%2===1&&(b=b[ne-1],ne=b.Da,a=a.computeBusLastRowSpacing(b,de?Math.max(Math.abs(Me),Math.abs(Le)):Math.max(Math.abs(ze),Math.abs(Se))),de?(b.S.h(E+ie/2-b.focus.x-b.la.x,z+a),de=E+ie/2-b.focus.x-b.la.x,x=Math.max(x,de+ne.width),0>de&&(x-=de),z=Math.max(z,Math.max(Me,Le)+a+ne.height),0>b.S.x&&(E=iv(y,b.S.x,!1,E,ie))):(b.S.h(x+a,E+ie/2-b.focus.y-b.la.y),x=Math.max(x,Math.max(ze,Se)+a+ne.width),Le=E+ie/2-b.focus.y-b.la.y,z=Math.max(z,Le+ne.height),0>Le&&(z-=Le),0>b.S.y&&(E=iv(y,b.S.y,!0,E,ie)))),new In(E,0,x,z)}function Qb(a,y,b,E,x,z){var ne=b.length;if(ne===0)return new In(E,0,x,z);if(ne===1)return b=b[0],x=b.Da.width,z=b.Da.height,new In(E,0,x,z);for(var ie=y.nodeSpacing,se=y.rowSpacing,de=Zc(y)===270,pe=0,Se=0,Le=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var ze=b[Me],qe=ze.Da,Ct=pe===0?0:se;if(de){var vt=a.computeBusNodeSpacing(ze)-ie;Le-=Ct+qe.height,ze.S.h(E-(qe.width+vt),Le),x=Math.max(x,qe.width+vt),z=Math.max(z,Math.abs(Le))}else vt=a.computeBusNodeSpacing(ze)-ie,Se-=Ct+qe.width,ze.S.h(Se,E-(qe.height+vt)),z=Math.max(z,qe.height+vt),x=Math.max(x,Math.abs(Se));pe++}for(pe=0,ze=Se,Me=Le,de?(Se=E+ie,Le=0):(Se=0,Le=E+ie),qe=0;qe<ne;qe++)if(qe%2!==0){Ct=b[qe],vt=Ct.Da;var Dt=pe===0?0:se;if(de){var Bt=a.computeBusNodeSpacing(Ct)-ie;Le-=Dt+vt.height,Ct.S.h(Se+Bt,Le),x=Math.max(x,Se+vt.width+Bt),z=Math.max(z,Math.abs(Le))}else Bt=a.computeBusNodeSpacing(Ct)-ie,Se-=Dt+vt.width,Ct.S.h(Se,Le+Bt),z=Math.max(z,Le+vt.height+Bt),x=Math.max(x,Math.abs(Se));pe++}for(1<ne&&ne%2===1&&(se=b[ne-1],pe=se.Da,a=a.computeBusLastRowSpacing(se,de?Math.max(Math.abs(Me),Math.abs(Le)):Math.max(Math.abs(ze),Math.abs(Se))),de?(se.S.h(E+ie/2-se.focus.x-se.la.x,-z-pe.height-a),Se=E+ie/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(Me,Le))+a+pe.height),0>se.S.x&&(E=iv(y,se.S.x,!1,E,ie))):(se.S.h(-x-pe.width-a,E+ie/2-se.focus.y-se.la.y),x=Math.max(x,Math.abs(Math.min(ze,Se))+a+pe.width),Le=E+ie/2-se.focus.y-se.la.y,z=Math.max(z,Le+pe.height),0>Le&&(z-=Le),0>se.S.y&&(E=iv(y,se.S.y,!0,E,ie)))),y=0;y<ne;y++)ie=b[y],de?ie.S.h(ie.S.x,ie.S.y+z):ie.S.h(ie.S.x+x,ie.S.y);return new In(E,0,x,z)}mo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},mo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function iv(a,y,b,E,x){a=a.children;for(var z=a.length,ne=0;ne<z;ne++)b?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(E,b?y.la.y+y.focus.y-x/2:y.la.x+y.focus.x-x/2)}function Gy(a,y,b){switch(a.alignment){case Fp:case Ig:return b+a.width>y&&(y=b+a.width),0>b&&(y-=b),y;case Md:return a.width>y?a.width:y;case Od:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Rh:case Fd:return Math.max(a.width,Math.max(y,b+a.width)-Math.min(0,b));case Mh:return a.width-a.focus.x+a.nodeSpacing/2+y;case rh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function jy(a,y,b){switch(a.alignment){case Fp:case Ig:return b+a.height>y&&(y=b+a.height),0>b&&(y-=b),y;case Md:return a.height>y?a.height:y;case Od:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Rh:case Fd:return Math.max(a.height,Math.max(y,b+a.height)-Math.min(0,b));case Mh:return a.height-a.focus.y+a.nodeSpacing/2+y;case rh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Vy(a,y,b){switch(a){case Ig:y/=2,b/=2;break;case Fp:y/=2,b/=2;break;case Md:b=y=0;break;case Od:break;default:Lt("Unhandled alignment value "+a.toString())}return new it(y,b)}function Kf(a,y,b,E,x,z){y=Vy(y,b,E),Mp(a,y.x,y.y,x,z)}function Mp(a,y,b,E,x){if(y!==0||b!==0)for(a=a.children;E<=x;E++){var z=a[E].S;z.x+=y,z.y+=b}}function ov(a,y,b,E){var x=y.parent;switch(a.ud){case Rd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===x&&y.relativePoint.h(b,E);break;case Op:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===x&&y.relativePoint.h(b,E);break;default:Lt("Unhandled path value "+a.ud.toString())}}function av(a,y,b){for(var E=0;E<a.length;E++){var x=a[E];x.x+=y,x.y+=b}}function Jb(a,y,b,E,x,z,ne,ie){var se=Zc(y),de=se===90||se===270,pe=y.nodeSpacing;y=E;var Se=x;E=z;var Le=ne,Me=b.Yo,ze=b.kp;ne=b.Da;var qe=de?Math.max(Le,ne.height):Math.max(E,ne.width);if((Me===null||se!==Zc(b))&&(Me=Lu(a,2),ze=Lu(a,2),de?(Me[0].h(0,0),Me[1].h(0,ne.height),ze[0].h(ne.width,0),ze[1].h(ze[0].x,Me[1].y)):(Me[0].h(0,0),Me[1].h(ne.width,0),ze[0].h(0,ne.height),ze[1].h(Me[1].x,ze[0].y))),de){if(Le=9999999,!(Se===null||2>Se.length||Me===null||2>Me.length))for(x=b=0;b<Se.length&&x<Me.length;){z=Se[b];var Ct=Me[x];se=Ct.x,de=Ct.y,se+=E;var vt=z;b+1<Se.length&&(vt=Se[b+1]);var Dt=Ct;Ct=Dt.x,Dt=Dt.y,x+1<Me.length&&(Dt=Me[x+1],Ct=Dt.x,Dt=Dt.y,Ct+=E);var Bt=Le;z.y===de?Bt=se-z.x:z.y>de&&z.y<Dt?Bt=se+(z.y-de)/(Dt-de)*(Ct-se)-z.x:de>z.y&&de<vt.y&&(Bt=se-(z.x+(de-z.y)/(vt.y-z.y)*(vt.x-z.x))),Bt<Le&&(Le=Bt),vt.y<=z.y?b++:Dt<=de?x++:(vt.y<=Dt&&b++,Dt<=vt.y&&x++)}if(Le=E-Le,Le+=pe,b=Me,x=Le,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=Lu(a,y.length+b.length),E=z=se=0;z<b.length&&b[z].y<y[0].y;)de=b[z++],pe[E++].h(de.x+x,de.y);for(;se<y.length;)de=y[se++],pe[E++].h(de.x,de.y);for(se=y[y.length-1].y;z<b.length&&b[z].y<=se;)z++;for(;z<b.length&&b[z].y>se;)de=b[z++],pe[E++].h(de.x+x,de.y);for(b=Lu(a,E),se=0;se<E;se++)b[se].assign(pe[se]);rd(a,pe),E=b}if(z=ze,se=Le,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Lu(a,Se.length+z.length),x=de=b=0;b<Se.length&&Se[b].y<z[0].y;)vt=Se[b++],pe[x++].h(vt.x,vt.y);for(;de<z.length;)vt=z[de++],pe[x++].h(vt.x+se,vt.y);for(z=z[z.length-1].y;b<Se.length&&Se[b].y<=z;)b++;for(;b<Se.length&&Se[b].y>z;)se=Se[b++],pe[x++].h(se.x,se.y);for(z=Lu(a,x),b=0;b<x;b++)z[b].assign(pe[b]);rd(a,pe),x=z}return z=Math.max(0,Le)+ne.width,ne=qe,rd(a,y),rd(a,Me),rd(a,Se),rd(a,ze),ie[0]=E,ie[1]=x,new In(Le,0,z,ne)}if(E=9999999,!(Se===null||2>Se.length||Me===null||2>Me.length))for(x=b=0;b<Se.length&&x<Me.length;)z=Se[b],Ct=Me[x],se=Ct.x,de=Ct.y,de+=Le,vt=z,b+1<Se.length&&(vt=Se[b+1]),Dt=Ct,Ct=Dt.x,Dt=Dt.y,x+1<Me.length&&(Dt=Me[x+1],Ct=Dt.x,Dt=Dt.y,Dt+=Le),Bt=E,z.x===se?Bt=de-z.y:z.x>se&&z.x<Ct?Bt=de+(z.x-se)/(Ct-se)*(Dt-de)-z.y:se>z.x&&se<vt.x&&(Bt=de-(z.y+(se-z.x)/(vt.x-z.x)*(vt.y-z.y))),Bt<E&&(E=Bt),vt.x<=z.x?b++:Ct<=se?x++:(vt.x<=Ct&&b++,Ct<=vt.x&&x++);if(Le-=E,Le+=pe,b=Me,x=Le,y===null||2>y.length||b===null||2>b.length)E=null;else{for(pe=Lu(a,y.length+b.length),E=z=se=0;z<b.length&&b[z].x<y[0].x;)de=b[z++],pe[E++].h(de.x,de.y+x);for(;se<y.length;)de=y[se++],pe[E++].h(de.x,de.y);for(se=y[y.length-1].x;z<b.length&&b[z].x<=se;)z++;for(;z<b.length&&b[z].x>se;)de=b[z++],pe[E++].h(de.x,de.y+x);for(b=Lu(a,E),se=0;se<E;se++)b[se].assign(pe[se]);rd(a,pe),E=b}if(z=ze,se=Le,Se===null||2>Se.length||z===null||2>z.length)x=null;else{for(pe=Lu(a,Se.length+z.length),x=de=b=0;b<Se.length&&Se[b].x<z[0].x;)vt=Se[b++],pe[x++].h(vt.x,vt.y);for(;de<z.length;)vt=z[de++],pe[x++].h(vt.x,vt.y+se);for(z=z[z.length-1].x;b<Se.length&&Se[b].x<=z;)b++;for(;b<Se.length&&Se[b].x>z;)se=Se[b++],pe[x++].h(se.x,se.y);for(z=Lu(a,x),b=0;b<x;b++)z[b].assign(pe[b]);rd(a,pe),x=z}return z=qe,ne=Math.max(0,Le)+ne.height,rd(a,y),rd(a,Me),rd(a,Se),rd(a,ze),ie[0]=E,ie[1]=x,new In(Le,0,z,ne)}function Lu(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var b=0;b<y;b++)a[b]=new it;return a}function rd(a,y){var b=y.length,E=a.ru[b];E===void 0&&(E=[],a.ru[b]=E),E.push(y)}mo.prototype.arrangeTrees=function(){if(this.Rb===dv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Nc){var b=y.node;if(b!==null){var E=b.position;b=E.x,E=E.y,isFinite(b)||(b=0),isFinite(E)||(E=0),Wy(this,y,b,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)b=y.value,b instanceof Nc&&a.push(b);switch(this.sorting){case kg:break;case Am:a.reverse();break;case Nm:a.sort(this.comparer);break;case Lm:a.sort(this.comparer),a.reverse();break;default:Lt("Unhandled sorting value "+this.sorting.toString())}for(b=this.arrangementOrigin,y=b.x,b=b.y,E=0;E<a.length;E++){var x=a[E];switch(Wy(this,x,y+x.la.x,b+x.la.y),this.Rb){case cv:b+=x.Da.height+this.$d.height;break;case Xy:y+=x.Da.width+this.$d.width;break;default:Lt("Unhandled arrangement value "+this.Rb.toString())}}}};function Wy(a,y,b,E){if(y!==null){y.x=b,y.y=E,y=y.children;for(var x=y.length,z=0;z<x;z++){var ne=y[z];Wy(a,ne,b+ne.S.x,E+ne.S.y)}}}mo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},mo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},mo.prototype.Gu=function(){if(this.layerStyle===hv){for(var a=this.$v,y=[],b=null,E=this.network.vertexes.iterator;E.next();){var x=E.value;b===null?b=x.bounds.copy():b.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(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(b.Bc(this.nodeSpacing/2,this.layerSpacing),E=new it(-this.nodeSpacing/2,-this.layerSpacing/2)):(b.Bc(this.layerSpacing,this.nodeSpacing/2),E=new it(-this.layerSpacing/2,-this.nodeSpacing/2)),x=[],b=this.angle===90||this.angle===270?b.width:b.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 ie=a[ne]+y[ne];this.angle===270?(z-=ie,x.push(new In(0,z,b,ie))):this.angle===90?(x.push(new In(0,z,b,ie)),z+=ie):this.angle===180?(z-=ie,x.push(new In(z,0,ie,b))):(x.push(new In(z,0,ie,b)),z+=ie)}this.commitLayers(x,E)}},mo.prototype.commitLayers=function(){},mo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},mo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Nc&&$b(this,y)}};function $b(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var b=y.length,E=0;E<b;E++)$b(a,y[E])}}mo.prototype.setPortSpots=function(a){var y=a.alignment;if(mf(y)){var b=this.ud===Rd,E=Zc(a);switch(E){case 0:var x=fs;break;case 90:x=ks;break;case 180:x=Qs;break;default:x=Ms}var z=a.children,ne=z.length;switch(y){case Rh:case Fd:for(y=0;y<ne;y++){var ie=z[y];if(ie=(b?ie.sourceEdges:ie.destinationEdges).first(),ie!==null&&(ie=ie.link,ie!==null)){var se=E===90||E===270?Qs:Ms;if(ne===1||y===ne-1&&ne%2===1)switch(E){case 0:se=Qs;break;case 90:se=Ms;break;case 180:se=fs;break;default:se=ks}else y%2===0&&(se=E===90||E===270?fs:ks);b?(a.setsPortSpot&&(ie.fromSpot=x),a.setsChildPortSpot&&(ie.toSpot=se)):(a.setsPortSpot&&(ie.fromSpot=se),a.setsChildPortSpot&&(ie.toSpot=x))}}break;case Mh:for(E=E===90||E===270?fs:ks,z=b?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(b?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=x)));break;case rh:for(E=E===90||E===270?Qs:Ms,z=b?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(b?(a.setsPortSpot&&(ne.fromSpot=x),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=x)))}}else if(b=Zc(a),this.ud===Rd){for(x=a.destinationEdges;x.next();)if(E=x.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(b){case 0:E.fromSpot=fs;break;case 90:E.fromSpot=ks;break;case 180:E.fromSpot=Qs;break;default:E.fromSpot=Ms}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.toSpot=Qs;break;case 90:E.toSpot=Ms;break;case 180:E.toSpot=fs;break;default:E.toSpot=ks}else E.toSpot=a.childPortSpot}}else for(x=a.sourceEdges;x.next();)if(E=x.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(b){case 0:E.toSpot=fs;break;case 90:E.toSpot=ks;break;case 180:E.toSpot=Qs;break;default:E.toSpot=Ms}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(b){case 0:E.fromSpot=Qs;break;case 90:E.fromSpot=Ms;break;case 180:E.fromSpot=fs;break;default:E.fromSpot=ks}else E.fromSpot=a.childPortSpot}};function Zc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}mo.prototype.computeLayerSpacing=function(a){var y=Zc(a);y=y===90||y===270;var b=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);b-=y?a.height*E:a.width*E}return b<(y?-a.height:-a.width)&&(b=y?-a.height:-a.width),b},mo.prototype.computeNodeIndent=function(a){var y=Zc(a),b=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);b+=y===90||y===270?a.width*E:a.height*E}return b=Math.max(0,b)},Jn.Object.defineProperties(mo.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!==uv&&a!==Ky&&a!==Zy&&a!==Yy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Qy&&a!==Jy&&a!==hv||(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!==cv&&a!==Xy&&a!==dv||(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!==kg&&a!==Am&&a!==Nm&&!Lm||(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()):Lt("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!==lv&&a!==km||(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!==kg&&a!==Am&&a!==Nm&&!Lm||(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!==lv&&a!==km||(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 sv=new mn(mo,"PathDefault",-1),Rd=new mn(mo,"PathDestination",0),Op=new mn(mo,"PathSource",1),kg=new mn(mo,"SortingForwards",10),Am=new mn(mo,"SortingReverse",11),Nm=new mn(mo,"SortingAscending",12),Lm=new mn(mo,"SortingDescending",13),Ig=new mn(mo,"AlignmentCenterSubtrees",20),Fp=new mn(mo,"AlignmentCenterChildren",21),Md=new mn(mo,"AlignmentStart",22),Od=new mn(mo,"AlignmentEnd",23),Rh=new mn(mo,"AlignmentBus",24),Fd=new mn(mo,"AlignmentBusBranching",25),Mh=new mn(mo,"AlignmentTopLeftBus",26),rh=new mn(mo,"AlignmentBottomRightBus",27),lv=new mn(mo,"CompactionNone",30),km=new mn(mo,"CompactionBlock",31),uv=new mn(mo,"StyleLayered",40),Zy=new mn(mo,"StyleLastParents",41),Ky=new mn(mo,"StyleAlternating",42),Yy=new mn(mo,"StyleRootOnly",43),cv=new mn(mo,"ArrangementVertical",50),Xy=new mn(mo,"ArrangementHorizontal",51),dv=new mn(mo,"ArrangementFixedRoots",52),Qy=new mn(mo,"LayerIndividual",60),Jy=new mn(mo,"LayerSiblings",61),hv=new mn(mo,"LayerUniform",62);mo.className="TreeLayout",mo.PathDefault=sv,mo.PathDestination=Rd,mo.PathSource=Op,mo.SortingForwards=kg,mo.SortingReverse=Am,mo.SortingAscending=Nm,mo.SortingDescending=Lm,mo.AlignmentCenterSubtrees=Ig,mo.AlignmentCenterChildren=Fp,mo.AlignmentStart=Md,mo.AlignmentEnd=Od,mo.AlignmentBus=Rh,mo.AlignmentBusBranching=Fd,mo.AlignmentTopLeftBus=Mh,mo.AlignmentBottomRightBus=rh,mo.CompactionNone=lv,mo.CompactionBlock=km,mo.StyleLayered=uv,mo.StyleLastParents=Zy,mo.StyleAlternating=Ky,mo.StyleRootOnly=Yy,mo.ArrangementVertical=cv,mo.ArrangementHorizontal=Xy,mo.ArrangementFixedRoots=dv,mo.LayerIndividual=Qy,mo.LayerSiblings=Jy,mo.LayerUniform=hv;function Bp(a){ba.call(this,a)}Sn(Bp,ba),Bp.prototype.createVertex=function(){return new Nc(this)},Bp.prototype.createEdge=function(){return new Dg(this)},Bp.className="TreeNetwork";function Nc(a){Ns.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 it(0,0),this.Da=new an(0,0),this.la=new it(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=kg,this.hd=vy,this.Kb=0,this.Jb=Fp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=km,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ns,this.wr=!0,this.Dp=ns}Sn(Nc,Ns),Nc.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)},Jn.Object.defineProperties(Nc.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,b=0;b<y;b++);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,b=0;b<y;b++);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)}}}),Nc.className="TreeVertex";function Dg(a){Wu.call(this,a),this.$t=new it(0,0)}Sn(Dg,Wu),Dg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,b=null,E=null;switch(y.ud){case Rd:b=this.fromVertex,E=this.toVertex;break;case Op:b=this.toVertex,E=this.fromVertex;break;default:Lt("Unhandled path value "+y.ud.toString())}if(b!==null&&E!==null){var x=this.$t;if(x.x!==0||x.y!==0||b.qA){E=b.bounds;var z=Zc(b),ne=y.computeLayerSpacing(b),ie=b.rowSpacing;a.vg();var se=a.curve===$u,de=a.isOrthogonal,pe;if(a.uh(),de||se){for(pe=2;4<a.pointsCount;)a.pv(2);var Se=a.i(1),Le=a.i(2)}else{for(pe=1;3<a.pointsCount;)a.pv(1);Se=a.i(0),Le=a.i(a.pointsCount-1)}var Me=a.i(a.pointsCount-1);z===0?(b.alignment===Od?(z=E.bottom+x.y,x.y===0&&Se.y>Me.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.top+x.y,x.y===0&&Se.y<Me.y-b.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.top-b.la.y+x.y:E.y+E.height/2+x.y,se?(a.m(pe,Se.x,z),pe++,a.m(pe,E.right+ne,z),pe++,a.m(pe,E.right+ne+(x.x-ie)/3,z),pe++,a.m(pe,E.right+ne+2*(x.x-ie)/3,z),pe++,a.m(pe,E.right+ne+(x.x-ie),z),pe++,a.m(pe,Le.x,z)):(de&&(a.m(pe,E.right+ne/2,Se.y),pe++),a.m(pe,E.right+ne/2,z),pe++,a.m(pe,E.right+ne+x.x-(de?ie/2:ie),z),pe++,de&&a.m(pe,a.i(pe-1).x,Le.y))):z===90?(b.alignment===Od?(z=E.right+x.x,x.x===0&&Se.x>Me.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.left+x.x,x.x===0&&Se.x<Me.x-b.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.left-b.la.x+x.x:E.x+E.width/2+x.x,se?(a.m(pe,z,Se.y),pe++,a.m(pe,z,E.bottom+ne),pe++,a.m(pe,z,E.bottom+ne+(x.y-ie)/3),pe++,a.m(pe,z,E.bottom+ne+2*(x.y-ie)/3),pe++,a.m(pe,z,E.bottom+ne+(x.y-ie)),pe++,a.m(pe,z,Le.y)):(de&&(a.m(pe,Se.x,E.bottom+ne/2),pe++),a.m(pe,z,E.bottom+ne/2),pe++,a.m(pe,z,E.bottom+ne+x.y-(de?ie/2:ie)),pe++,de&&a.m(pe,Le.x,a.i(pe-1).y))):z===180?(b.alignment===Od?(z=E.bottom+x.y,x.y===0&&Se.y>Me.y+b.rowIndent&&(z=Math.min(z,Math.max(Se.y,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.top+x.y,x.y===0&&Se.y<Me.y-b.rowIndent&&(z=Math.max(z,Math.min(Se.y,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.top-b.la.y+x.y:E.y+E.height/2+x.y,se?(a.m(pe,Se.x,z),pe++,a.m(pe,E.left-ne,z),pe++,a.m(pe,E.left-ne+(x.x+ie)/3,z),pe++,a.m(pe,E.left-ne+2*(x.x+ie)/3,z),pe++,a.m(pe,E.left-ne+(x.x+ie),z),pe++,a.m(pe,Le.x,z)):(de&&(a.m(pe,E.left-ne/2,Se.y),pe++),a.m(pe,E.left-ne/2,z),pe++,a.m(pe,E.left-ne+x.x+(de?ie/2:ie),z),pe++,de&&a.m(pe,a.i(pe-1).x,Le.y))):z===270?(b.alignment===Od?(z=E.right+x.x,x.x===0&&Se.x>Me.x+b.rowIndent&&(z=Math.min(z,Math.max(Se.x,z-y.computeNodeIndent(b))))):b.alignment===Md?(z=E.left+x.x,x.x===0&&Se.x<Me.x-b.rowIndent&&(z=Math.max(z,Math.min(Se.x,z+y.computeNodeIndent(b))))):z=b.hm||b.im&&b.maxGenerationCount===1?E.left-b.la.x+x.x:E.x+E.width/2+x.x,se?(a.m(pe,z,Se.y),pe++,a.m(pe,z,E.top-ne),pe++,a.m(pe,z,E.top-ne+(x.y+ie)/3),pe++,a.m(pe,z,E.top-ne+2*(x.y+ie)/3),pe++,a.m(pe,z,E.top-ne+(x.y+ie)),pe++,a.m(pe,z,Le.y)):(de&&(a.m(pe,Se.x,E.top-ne/2),pe++),a.m(pe,z,E.top-ne/2),pe++,a.m(pe,z,E.top-ne+x.y+(de?ie/2:ie)),pe++,de&&a.m(pe,Le.x,a.i(pe-1).y))):Lt("Invalid angle "+z),a.zf()}else x=E,a=this.link,E=this.network.layout,y=Zc(b),y!==Zc(x)&&(ne=E.computeLayerSpacing(b),ie=b.bounds,b=x.bounds,y===0&&b.left-ie.right<ne+1||y===90&&b.top-ie.bottom<ne+1||y===180&&ie.left-b.right<ne+1||y===270&&ie.top-b.bottom<ne+1||(a.vg(),b=a.curve===$u,x=a.isOrthogonal,E=mf(this.fromVertex.alignment),a.uh(),y===0?(y=ie.right+ne/2,b?a.pointsCount===4&&(b=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,b),a.m(3,y,b),a.m(4,y+20,b),a.L(5,a.i(5).x,b)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ie.bottom+ne/2,b?a.pointsCount===4&&(b=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,b,y-20),a.m(3,b,y),a.m(4,b,y+20),a.L(5,b,a.i(5).y)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ie.left-ne/2,b?a.pointsCount===4&&(b=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,b),a.m(3,y,b),a.m(4,y-20,b),a.L(5,a.i(5).x,b)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ie.top-ne/2,b?a.pointsCount===4&&(b=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,b,y+20),a.m(3,b,y),a.m(4,b,y-20),a.L(5,b,a.i(5).y)):x?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Jn.Object.defineProperties(Dg.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)}}}),Dg.className="TreeEdge",aa.prototype.initializeStandardTools=function(){this.gb("Action",new er,this.mouseDownTools),this.gb("Relinking",new Il,this.mouseDownTools),this.gb("LinkReshaping",new Qe,this.mouseDownTools),this.gb("Rotating",new Sr,this.mouseDownTools),this.gb("Resizing",new Ln,this.mouseDownTools),this.gb("Linking",new Fs,this.mouseMoveTools),this.gb("Dragging",new la,this.mouseMoveTools),this.gb("DragSelecting",new Hr,this.mouseMoveTools),this.gb("Panning",new sr,this.mouseMoveTools),this.gb("ContextMenu",new ea,this.mouseUpTools),this.gb("TextEditing",new xo,this.mouseUpTools),this.gb("ClickCreating",new Zr,this.mouseUpTools),this.gb("ClickSelecting",new xr,this.mouseUpTools)},pd("Horizontal",new zm),pd("Spot",new jm),pd("Table",new Wm),pd("Viewbox",new Ym),pd("TableRow",new Zm),pd("TableColumn",new Km),pd("Graduated",new Zg),pd("Grid",new Wg),Mf.add("GraphLinksModel",Ks),Mf.add("TreeModel",pc);var fv=ur.go,qy={get licenseKey(){return Dn.licenseKey},set licenseKey(a){Dn.licenseKey=a},get version(){return Dn.version},Group:ro,EnumValue:mn,List:Qn,Set:ar,Map:An,Point:it,Size:an,Rect:In,Margin:no,Spot:fi,Geometry:Nr,PathFigure:Wa,PathSegment:Eo,InputEvent:Es,DiagramEvent:Fu,ChangedEvent:va,Model:Ei,GraphLinksModel:No,TreeModel:su,Binding:ss,Transaction:Za,UndoManager:na,CommandHandler:wt,Tool:bo,DraggingTool:la,DraggingInfo:Bc,DraggingOptions:le,LinkingBaseTool:Na,LinkingTool:Fs,RelinkingTool:Il,LinkReshapingTool:Qe,ResizingTool:Ln,RotatingTool:Sr,ClickSelectingTool:xr,ActionTool:er,ClickCreatingTool:Zr,HTMLInfo:Po,ContextMenuTool:ea,DragSelectingTool:Hr,PanningTool:sr,TextEditingTool:xo,ToolManager:aa,Animation:ii,AnimationManager:el,AnimationTrigger:Hl,Layer:Cs,Diagram:Dn,Palette:ye,Overview:xe,Brush:_o,GraphObject:rn,Panel:Tr,RowColumnDefinition:vs,Shape:oo,TextBlock:Sa,Picture:gu,Part:Ai,Adornment:Mo,Node:$r,Link:_r,Placeholder:ru,Layout:Pa,LayoutNetwork:ba,LayoutVertex:Ns,LayoutEdge:Wu,GridLayout:nl,PanelLayout:As,CircularLayout:Da,CircularNetwork:Ag,CircularVertex:bm,CircularEdge:K0,ForceDirectedLayout:yl,ForceDirectedNetwork:Rp,ForceDirectedVertex:Em,ForceDirectedEdge:xm,LayeredDigraphLayout:qo,LayeredDigraphNetwork:Lg,LayeredDigraphVertex:mc,LayeredDigraphEdge:Pm,TreeLayout:mo,TreeNetwork:Bp,TreeVertex:Nc,TreeEdge:Dg};typeof fv=="object"&&fv.version&&Ir("WARNING: a `go` object on the root object is already defined. "+("Debug"in fv?"debug ":"")+"version: "+fv.version+", replaced with version: "+qy.version),Dn.prototype.go=qy,ur.go=qy,typeof We.exports=="object"&&(We.exports=typeof ae.g!="undefined"?ae.g.go:self.go)}();var oe=typeof ae.g!="undefined"?ae.g.go:self.go;const Pe=typeof ae.g!="undefined"?ae.g.go:self.go,ke=Pe.Group,De=Pe.EnumValue,je=Pe.List,Te=Pe.Set,Ge=Pe.Map,lt=Pe.Point,Ke=Pe.Size,He=Pe.Rect,yt=Pe.Margin,$e=Pe.Spot,Mt=Pe.Geometry,Fe=Pe.PathFigure,te=Pe.PathSegment,ee=Pe.InputEvent,he=Pe.DiagramEvent,ue=Pe.ChangedEvent,fe=Pe.Model,me=Pe.GraphLinksModel,be=Pe.TreeModel,Ae=Pe.Binding,Ie=Pe.Transaction,Xe=Pe.UndoManager,nt=Pe.CommandHandler,Je=Pe.Tool,st=Pe.DraggingTool,gt=Pe.DraggingInfo,rt=Pe.LinkingBaseTool,mt=Pe.LinkingTool,xt=Pe.RelinkingTool,Tt=Pe.LinkReshapingTool,zt=Pe.ResizingTool,Qt=Pe.RotatingTool,Kt=Pe.ClickSelectingTool,Cn=Pe.ActionTool,St=Pe.ClickCreatingTool,pt=Pe.HTMLInfo,ct=Pe.ContextMenuTool,qt=Pe.DragSelectingTool,fn=Pe.PanningTool,kt=Pe.TextEditingTool,xn=Pe.ToolManager,kn=Pe.Animation,Vn=Pe.AnimationManager,Vt=Pe.AnimationTrigger,Ot=Pe.Layer,Nn=Pe.Diagram,tr=Pe.Palette,hr=Pe.Overview,ot=Pe.Brush,_e=Pe.GraphObject,Re=Pe.Panel,Ye=Pe.RowColumnDefinition,at=Pe.Shape,Be=Pe.TextBlock,bt=Pe.TextBlockMetrics,bn=Pe.Picture,sn=Pe.Part,Bn=Pe.Adornment,It=Pe.Node,_t=Pe.Link,jt=Pe.Placeholder,hn=Pe.Layout,En=Pe.LayoutNetwork,pn=Pe.LayoutVertex,Rt=Pe.LayoutEdge,Tn=Pe.GridLayout,Yt=Pe.PanelLayout,en=Pe.CircularLayout,vn=Pe.CircularNetwork,zn=Pe.CircularVertex,un=Pe.CircularEdge,Et=Pe.ForceDirectedLayout,Xn=Pe.ForceDirectedNetwork,ir=Pe.ForceDirectedVertex,Jt=Pe.ForceDirectedEdge,Er=Pe.LayeredDigraphLayout,ni=Pe.LayeredDigraphNetwork,Rr=Pe.LayeredDigraphVertex,Mn=Pe.LayeredDigraphEdge,ei=Pe.TreeLayout,Kr=Pe.TreeNetwork,lr=Pe.TreeVertex,jr=Pe.TreeEdge,oi=Pe.version},46963:function(We){"use strict";We.exports=ae;var Ee=/[#.]/g;function ae(oe,Pe){for(var ke=oe||"",De=Pe||"div",je={},Te=0,Ge,lt,Ke;Te<ke.length;)Ee.lastIndex=Te,Ke=Ee.exec(ke),Ge=ke.slice(Te,Ke?Ke.index:ke.length),Ge&&(lt?lt==="#"?je.id=Ge:je.className?je.className.push(Ge):je.className=[Ge]:De=Ge,Te+=Ge.length),Ke&&(lt=Ke[0],Te++);return{type:"element",tagName:De,properties:je,children:[]}}},5641:function(We,Ee,ae){"use strict";var oe=ae(88914),Pe=ae(47178),ke=ae(46963),De=ae(92848).Q,je=ae(58951).Q;We.exports=Ge;var Te={}.hasOwnProperty;function Ge(te,ee,he){var ue=he?Fe(he):null;return fe;function fe(be,Ae){var Ie=ke(be,ee),Xe=Array.prototype.slice.call(arguments,2),nt=Ie.tagName.toLowerCase(),Je;if(Ie.tagName=ue&&Te.call(ue,nt)?ue[nt]:nt,Ae&<(Ae,Ie)&&(Xe.unshift(Ae),Ae=null),Ae)for(Je in Ae)me(Ie.properties,Je,Ae[Je]);return He(Ie.children,Xe),Ie.tagName==="template"&&(Ie.content={type:"root",children:Ie.children},Ie.children=[]),Ie}function me(be,Ae,Ie){var Xe,nt,Je;Ie==null||Ie!==Ie||(Xe=oe(te,Ae),nt=Xe.property,Je=Ie,typeof Je=="string"&&(Xe.spaceSeparated?Je=De(Je):Xe.commaSeparated?Je=je(Je):Xe.commaOrSpaceSeparated&&(Je=De(je(Je).join(" ")))),nt==="style"&&typeof Ie!="string"&&(Je=Mt(Je)),nt==="className"&&be.className&&(Je=be.className.concat(Je)),be[nt]=yt(Xe,nt,Je))}}function lt(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 He(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;)He(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 yt(te,ee,he){var ue,fe,me;if(typeof he!="object"||!("length"in he))return $e(te,ee,he);for(fe=he.length,ue=-1,me=[];++ue<fe;)me[ue]=$e(te,ee,he[ue]);return me}function $e(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===""||Pe(he)===Pe(ee))&&(ue=!0),ue}function Mt(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(We,Ee,ae){"use strict";var oe=ae(18795),Pe=ae(5641),ke=Pe(oe,"div");ke.displayName="html",We.exports=ke},43621:function(We,Ee,ae){"use strict";We.exports=ae(82073)},93193:function(We){var Ee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ae=/\n/g,oe=/^\s*/,Pe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ke=/^:\s*/,De=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,je=/^[;\s]*/,Te=/^\s+|\s+$/g,Ge=`
|
|
|
`,lt="/",Ke="*",He="",yt="comment",$e="declaration";We.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(rt){var mt=rt.match(ae);mt&&(ee+=mt.length);var xt=rt.lastIndexOf(Ge);he=~xt?rt.length-xt:he+rt.length}function fe(){var rt={line:ee,column:he};return function(mt){return mt.position=new me(rt),Xe(),mt}}function me(rt){this.start=rt,this.end={line:ee,column:he},this.source=te.source}me.prototype.content=Fe;var be=[];function Ae(rt){var mt=new Error(te.source+":"+ee+":"+he+": "+rt);if(mt.reason=rt,mt.filename=te.source,mt.line=ee,mt.column=he,mt.source=Fe,te.silent)be.push(mt);else throw mt}function Ie(rt){var mt=rt.exec(Fe);if(mt){var xt=mt[0];return ue(xt),Fe=Fe.slice(xt.length),mt}}function Xe(){Ie(oe)}function nt(rt){var mt;for(rt=rt||[];mt=Je();)mt!==!1&&rt.push(mt);return rt}function Je(){var rt=fe();if(!(lt!=Fe.charAt(0)||Ke!=Fe.charAt(1))){for(var mt=2;He!=Fe.charAt(mt)&&(Ke!=Fe.charAt(mt)||lt!=Fe.charAt(mt+1));)++mt;if(mt+=2,He===Fe.charAt(mt-1))return Ae("End of comment missing");var xt=Fe.slice(2,mt-2);return he+=2,ue(xt),Fe=Fe.slice(mt),he+=2,rt({type:yt,comment:xt})}}function st(){var rt=fe(),mt=Ie(Pe);if(mt){if(Je(),!Ie(ke))return Ae("property missing ':'");var xt=Ie(De),Tt=rt({type:$e,property:Mt(mt[0].replace(Ee,He)),value:xt?Mt(xt[0].replace(Ee,He)):He});return Ie(je),Tt}}function gt(){var rt=[];nt(rt);for(var mt;mt=st();)mt!==!1&&(rt.push(mt),nt(rt));return rt}return Xe(),gt()};function Mt(Fe){return Fe?Fe.replace(Te,He):He}},91241:function(We){"use strict";We.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=97&&oe<=122||oe>=65&&oe<=90}},21127:function(We,Ee,ae){"use strict";var oe=ae(91241),Pe=ae(22347);We.exports=ke;function ke(De){return oe(De)||Pe(De)}},22347:function(We){"use strict";We.exports=Ee;function Ee(ae){var oe=typeof ae=="string"?ae.charCodeAt(0):ae;return oe>=48&&oe<=57}},65207:function(We){"use strict";We.exports=Ee;function Ee(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(We,Ee,ae){var oe,Pe;(function(ke,De){We.exports=De(ke)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(ke){"use strict";ke=ke||{};var De=ke.Base64,je="2.6.4",Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ge=function(xt){for(var Tt={},zt=0,Qt=xt.length;zt<Qt;zt++)Tt[xt.charAt(zt)]=zt;return Tt}(Te),lt=String.fromCharCode,Ke=function(xt){if(xt.length<2){var Tt=xt.charCodeAt(0);return Tt<128?xt:Tt<2048?lt(192|Tt>>>6)+lt(128|Tt&63):lt(224|Tt>>>12&15)+lt(128|Tt>>>6&63)+lt(128|Tt&63)}else{var Tt=65536+(xt.charCodeAt(0)-55296)*1024+(xt.charCodeAt(1)-56320);return lt(240|Tt>>>18&7)+lt(128|Tt>>>12&63)+lt(128|Tt>>>6&63)+lt(128|Tt&63)}},He=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,yt=function(xt){return xt.replace(He,Ke)},$e=function(xt){var Tt=[0,2,1][xt.length%3],zt=xt.charCodeAt(0)<<16|(xt.length>1?xt.charCodeAt(1):0)<<8|(xt.length>2?xt.charCodeAt(2):0),Qt=[Te.charAt(zt>>>18),Te.charAt(zt>>>12&63),Tt>=2?"=":Te.charAt(zt>>>6&63),Tt>=1?"=":Te.charAt(zt&63)];return Qt.join("")},Mt=ke.btoa&&typeof ke.btoa=="function"?function(xt){return ke.btoa(xt)}:function(xt){if(xt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return xt.replace(/[\s\S]{1,3}/g,$e)},Fe=function(xt){return Mt(yt(String(xt)))},te=function(xt){return xt.replace(/[+\/]/g,function(Tt){return Tt=="+"?"-":"_"}).replace(/=/g,"")},ee=function(xt,Tt){return Tt?te(Fe(xt)):Fe(xt)},he=function(xt){return ee(xt,!0)},ue;ke.Uint8Array&&(ue=function(xt,Tt){for(var zt="",Qt=0,Kt=xt.length;Qt<Kt;Qt+=3){var Cn=xt[Qt],St=xt[Qt+1],pt=xt[Qt+2],ct=Cn<<16|St<<8|pt;zt+=Te.charAt(ct>>>18)+Te.charAt(ct>>>12&63)+(typeof St!="undefined"?Te.charAt(ct>>>6&63):"=")+(typeof pt!="undefined"?Te.charAt(ct&63):"=")}return Tt?te(zt):zt});var fe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(xt){switch(xt.length){case 4:var Tt=(7&xt.charCodeAt(0))<<18|(63&xt.charCodeAt(1))<<12|(63&xt.charCodeAt(2))<<6|63&xt.charCodeAt(3),zt=Tt-65536;return lt((zt>>>10)+55296)+lt((zt&1023)+56320);case 3:return lt((15&xt.charCodeAt(0))<<12|(63&xt.charCodeAt(1))<<6|63&xt.charCodeAt(2));default:return lt((31&xt.charCodeAt(0))<<6|63&xt.charCodeAt(1))}},be=function(xt){return xt.replace(fe,me)},Ae=function(xt){var Tt=xt.length,zt=Tt%4,Qt=(Tt>0?Ge[xt.charAt(0)]<<18:0)|(Tt>1?Ge[xt.charAt(1)]<<12:0)|(Tt>2?Ge[xt.charAt(2)]<<6:0)|(Tt>3?Ge[xt.charAt(3)]:0),Kt=[lt(Qt>>>16),lt(Qt>>>8&255),lt(Qt&255)];return Kt.length-=[0,0,2,1][zt],Kt.join("")},Ie=ke.atob&&typeof ke.atob=="function"?function(xt){return ke.atob(xt)}:function(xt){return xt.replace(/\S{1,4}/g,Ae)},Xe=function(xt){return Ie(String(xt).replace(/[^A-Za-z0-9\+\/]/g,""))},nt=function(xt){return be(Ie(xt))},Je=function(xt){return String(xt).replace(/[-_]/g,function(Tt){return Tt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},st=function(xt){return nt(Je(xt))},gt;ke.Uint8Array&&(gt=function(xt){return Uint8Array.from(Xe(Je(xt)),function(Tt){return Tt.charCodeAt(0)})});var rt=function(){var xt=ke.Base64;return ke.Base64=De,xt};if(ke.Base64={VERSION:je,atob:Xe,btoa:Mt,fromBase64:st,toBase64:ee,utob:yt,encode:ee,encodeURI:he,btou:be,decode:st,noConflict:rt,fromUint8Array:ue,toUint8Array:gt},typeof Object.defineProperty=="function"){var mt=function(xt){return{value:xt,enumerable:!1,writable:!0,configurable:!0}};ke.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",mt(function(){return st(this)})),Object.defineProperty(String.prototype,"toBase64",mt(function(xt){return ee(this,xt)})),Object.defineProperty(String.prototype,"toBase64URI",mt(function(){return ee(this,!0)}))}}return ke.Meteor&&(Base64=ke.Base64),We.exports?We.exports.Base64=ke.Base64:(oe=[],Pe=function(){return ke.Base64}.apply(Ee,oe),Pe!==void 0&&(We.exports=Pe)),{Base64:ke.Base64}})},2859:function(We,Ee,ae){"use strict";ae.d(Ee,{hP:function(){return hr}});var oe=function(ot,_e){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Re,Ye){Re.__proto__=Ye}||function(Re,Ye){for(var at in Ye)Object.prototype.hasOwnProperty.call(Ye,at)&&(Re[at]=Ye[at])})(ot,_e)};function Pe(ot,_e){function Re(){this.constructor=ot}oe(ot,_e),ot.prototype=_e===null?Object.create(_e):(Re.prototype=_e.prototype,new Re)}function ke(ot,_e,Re,Ye){return new(Re||(Re=Promise))(function(at,Be){function bt(Bn){try{sn(Ye.next(Bn))}catch(It){Be(It)}}function bn(Bn){try{sn(Ye.throw(Bn))}catch(It){Be(It)}}function sn(Bn){var It;Bn.done?at(Bn.value):(It=Bn.value,It instanceof Re?It:new Re(function(_t){_t(It)})).then(bt,bn)}sn((Ye=Ye.apply(ot,_e||[])).next())})}function De(ot,_e){var Re,Ye,at,Be,bt={label:0,sent:function(){if(1&at[0])throw at[1];return at[1]},trys:[],ops:[]};return Be={next:bn(0),throw:bn(1),return:bn(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function bn(sn){return function(Bn){return function(It){if(Re)throw new TypeError("Generator is already executing.");for(;bt;)try{if(Re=1,Ye&&(at=2&It[0]?Ye.return:It[0]?Ye.throw||((at=Ye.return)&&at.call(Ye),0):Ye.next)&&!(at=at.call(Ye,It[1])).done)return at;switch(Ye=0,at&&(It=[2&It[0],at.value]),It[0]){case 0:case 1:at=It;break;case 4:return bt.label++,{value:It[1],done:!1};case 5:bt.label++,Ye=It[1],It=[0];continue;case 7:It=bt.ops.pop(),bt.trys.pop();continue;default:if(at=bt.trys,!((at=at.length>0&&at[at.length-1])||It[0]!==6&&It[0]!==2)){bt=0;continue}if(It[0]===3&&(!at||It[1]>at[0]&&It[1]<at[3])){bt.label=It[1];break}if(It[0]===6&&bt.label<at[1]){bt.label=at[1],at=It;break}if(at&&bt.label<at[2]){bt.label=at[2],bt.ops.push(It);break}at[2]&&bt.ops.pop(),bt.trys.pop();continue}It=_e.call(ot,bt)}catch(_t){It=[6,_t],Ye=0}finally{Re=at=0}if(5&It[0])throw It[1];return{value:It[0]?It[1]:void 0,done:!0}}([sn,Bn])}}}function je(){for(var ot=0,_e=0,Re=arguments.length;_e<Re;_e++)ot+=arguments[_e].length;var Ye=Array(ot),at=0;for(_e=0;_e<Re;_e++)for(var Be=arguments[_e],bt=0,bn=Be.length;bt<bn;bt++,at++)Ye[at]=Be[bt];return Ye}var Te=function(){function ot(){}return ot.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ot.setAttributes=function(_e,Re){for(var Ye=0,at=Re;Ye<at.length;Ye++){var Be=at[Ye],bt=Be[0],bn=Be[1];_e.setAttribute(bt,bn)}},ot.createRect=function(_e,Re,Ye){var at=document.createElementNS("http://www.w3.org/2000/svg","rect");return at.setAttribute("width",_e.toString()),at.setAttribute("height",Re.toString()),Ye&&ot.setAttributes(at,Ye),at},ot.createLine=function(_e,Re,Ye,at,Be){var bt=document.createElementNS("http://www.w3.org/2000/svg","line");return bt.setAttribute("x1",_e.toString()),bt.setAttribute("y1",Re.toString()),bt.setAttribute("x2",Ye.toString()),bt.setAttribute("y2",at.toString()),Be&&ot.setAttributes(bt,Be),bt},ot.createPolygon=function(_e,Re){var Ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ye.setAttribute("points",_e),Re&&ot.setAttributes(Ye,Re),Ye},ot.createCircle=function(_e,Re){var Ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ye.setAttribute("cx",(_e/2).toString()),Ye.setAttribute("cy",(_e/2).toString()),Ye.setAttribute("r",_e.toString()),Re&&ot.setAttributes(Ye,Re),Ye},ot.createEllipse=function(_e,Re,Ye){var at=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return at.setAttribute("cx",(_e/2).toString()),at.setAttribute("cy",(Re/2).toString()),at.setAttribute("rx",(_e/2).toString()),at.setAttribute("ry",(Re/2).toString()),Ye&&ot.setAttributes(at,Ye),at},ot.createGroup=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","g");return _e&&ot.setAttributes(Re,_e),Re},ot.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ot.createMarker=function(_e,Re,Ye,at,Be,bt,bn){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return ot.setAttributes(sn,[["id",_e],["orient",Re],["markerWidth",Ye.toString()],["markerHeight",at.toString()],["refX",Be.toString()],["refY",bt.toString()]]),sn.appendChild(bn),sn},ot.createText=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","text");return Re.setAttribute("x","0"),Re.setAttribute("y","0"),_e&&ot.setAttributes(Re,_e),Re},ot.createTSpan=function(_e,Re){var Ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ye.textContent=_e,Re&&ot.setAttributes(Ye,Re),Ye},ot.createImage=function(_e){var Re=document.createElementNS("http://www.w3.org/2000/svg","image");return _e&&ot.setAttributes(Re,_e),Re},ot.createPoint=function(_e,Re){var Ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ye.x=_e,Ye.y=Re,Ye},ot.createPath=function(_e,Re){var Ye=document.createElementNS("http://www.w3.org/2000/svg","path");return Ye.setAttribute("d",_e),Re&&ot.setAttributes(Ye,Re),Ye},ot}(),Ge=function(){function ot(){}return ot.addKey=function(_e){ot.key=_e},Object.defineProperty(ot,"isLicensed",{get:function(){return!!ot.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ot.key)},enumerable:!1,configurable:!0}),ot}(),lt=function(){function ot(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ot.prototype.rasterize=function(_e,Re,Ye){var at=this;return new Promise(function(Be){var bt=Ye!==void 0?Ye:document.createElement("canvas");_e===null&&(at.markersOnly=!0,at.naturalSize=!1);var bn=document.createElementNS("http://www.w3.org/2000/svg","svg");bn.setAttribute("xmlns","http://www.w3.org/2000/svg"),bn.setAttribute("width",Re.width.baseVal.valueAsString),bn.setAttribute("height",Re.height.baseVal.valueAsString),bn.setAttribute("viewBox","0 0 "+Re.viewBox.baseVal.width.toString()+" "+Re.viewBox.baseVal.height.toString()),bn.innerHTML=Re.innerHTML,at.naturalSize===!0?(bn.width.baseVal.value=_e.naturalWidth,bn.height.baseVal.value=_e.naturalHeight):at.width!==void 0&&at.height!==void 0&&(bn.width.baseVal.value=at.width,bn.height.baseVal.value=at.height),bt.width=bn.width.baseVal.value,bt.height=bn.height.baseVal.value;var sn=bn.outerHTML,Bn=bt.getContext("2d");at.markersOnly!==!0&&Bn.drawImage(_e,0,0,bt.width,bt.height);var It=window.URL,_t=new Image(bt.width,bt.height);_t.setAttribute("crossOrigin","anonymous");var jt=new Blob([sn],{type:"image/svg+xml"}),hn=It.createObjectURL(jt);_t.onload=function(){Bn.drawImage(_t,0,0),It.revokeObjectURL(hn);var En=bt.toDataURL(at.imageType,at.imageQuality);Be(En)},_t.src=hn})},ot}(),Ke=function(){},He=function(){function ot(_e){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+_e+"_"}return Object.defineProperty(ot.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ot.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(ot.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ot.prototype.addClass=function(_e){return this.styleSheet===void 0&&this.addStyleSheet(),_e.name=""+this.classNamePrefix+_e.localName,this.classes.push(_e),this.styleSheet.sheet.insertRule("."+_e.name+" {"+_e.style+"}",this.styleSheet.sheet.cssRules.length),_e},ot.prototype.addRule=function(_e){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(_e),this.styleSheet.sheet.insertRule(_e.selector+" {"+_e.style+"}",this.styleSheet.sheet.cssRules.length)},ot.prototype.addStyleSheet=function(){var _e;this.styleSheet=document.createElement("style"),((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e:document.head).appendChild(this.styleSheet),this.addRule(new yt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new yt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new yt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new $e("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new $e("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ot.prototype.removeStyleSheet=function(){var _e;this.styleSheet&&(((_e=this.styleSheetRoot)!==null&&_e!==void 0?_e:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ot}(),yt=function(ot,_e){this.selector=ot,this.style=_e},$e=function(ot,_e){this.localName=ot,this.style=_e},Mt=function(){function ot(_e,Re,Ye,at,Be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=_e,this.displayMode=Re,this.markerItems=Ye,this.uiStyleSettings=at,this.styles=Be,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ot.prototype.show=function(_e){var Re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ye=document.createElement("div");Ye.className=this.toolbarBlockStyleClass.name,Ye.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ye),this.addActionButton(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Ye,'<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(Be){var bt=document.createElement("div");bt.className=""+Re.toolbarButtonStyleClass.name,bt.setAttribute("data-type-name",Be.typeName),bt.innerHTML=Be.icon,bt.addEventListener("click",function(){Re.markerToolbarButtonClicked(bt,Be)}),Re.buttons.push(bt),Re.markerButtons.push(bt)}),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 at=document.createElement("div");at.className=this.toolbarBlockStyleClass.name,at.style.whiteSpace="nowrap",at.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(at),this.addActionButton(at,'<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(at,'<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()},ot.prototype.addButtonClickListener=function(_e){this.buttonClickListeners.push(_e)},ot.prototype.removeButtonClickListener=function(_e){this.buttonClickListeners.indexOf(_e)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(_e),1)},ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ot.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var _e=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Re=0;Re<this.markerButtons.length;Re++)Re<_e||Re===_e&&this.markerButtons.length-1===_e?this.markerButtonBlock.appendChild(this.markerButtons[Re]):(Re===_e&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Re]))}},ot.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")},ot.prototype.resetButtonStyles=function(){var _e=this;this.buttons.forEach(function(Re){Re.className=Re.className.replace(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name,"").trim(),Re.className=Re.className.replace(_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?_e.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:_e.toolbarActiveButtonStyleColorsClass.name,"").trim(),Re.className+=" "+(_e.uiStyleSettings.toolbarButtonStyleColorsClassName?_e.uiStyleSettings.toolbarButtonStyleColorsClassName:_e.toolbarButtonStyleColorsClass.name)})},ot.prototype.addActionButton=function(_e,Re,Ye){var at=this,Be=document.createElement("div");switch(Be.className=""+this.toolbarButtonStyleClass.name,Be.innerHTML=Re,Be.setAttribute("data-action",Ye),Be.addEventListener("click",function(){at.actionToolbarButtonClicked(Be,Ye)}),Ye){case"select":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Be.style.fill=this.uiStyleSettings.closeButtonColor}_e.appendChild(Be),this.buttons.push(Be)},ot.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new $e("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 $e("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new $e("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new $e("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 $e("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var _e=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new $e("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*_e)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*_e)+`px;
|
|
|
padding: `+_e+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new yt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new yt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ot.prototype.markerToolbarButtonClicked=function(_e,Re){this.setActiveButton(_e),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ye){return Ye("marker",Re)}),this.markerButtonOverflowBlock.style.display="none"},ot.prototype.actionToolbarButtonClicked=function(_e,Re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ye){return Ye("action",Re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ot.prototype.setActiveButton=function(_e){this.resetButtonStyles(),_e.className=_e.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),_e.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ot.prototype.setActiveMarkerButton=function(_e){var Re=this.markerButtons.find(function(Ye){return Ye.getAttribute("data-type-name")===_e});Re&&this.setActiveButton(Re)},ot.prototype.setCurrentMarker=function(_e){var Re=this;this.currentMarker=_e,this.buttons.filter(function(Ye){return/delete|notes/.test(Ye.getAttribute("data-action"))}).forEach(function(Ye){Re.currentMarker===void 0?(Ye.style.fillOpacity="0.4",Ye.style.pointerEvents="none"):(Ye.style.fillOpacity="1",Ye.style.pointerEvents="all")})},ot}(),Fe=function(){function ot(_e,Re,Ye,at){this.panels=[],this.panelButtons=[],this.markerjsContainer=_e,this.displayMode=Re,this.uiStyleSettings=Ye,this.styles=at,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ot.prototype.addStyles=function(){var _e;this.toolboxStyleClass=this.styles.addClass(new $e("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 $e("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new $e("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new $e("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new $e("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 $e("toolbox-panel-row_colors",`
|
|
|
background-color: `+((_e=this.uiStyleSettings.toolboxBackgroundColor)!==null&&_e!==void 0?_e:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new $e("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Re)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Re)+`px;
|
|
|
padding: `+Re+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new yt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new yt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ot.prototype.show=function(_e){var Re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=_e,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ot.prototype.setPanelButtons=function(_e){var Re,Ye,at=this;this.panels=_e,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ye!==void 0?Ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Be){var bt;Be.uiStyleSettings=at.uiStyleSettings;var bn=document.createElement("div");bn.className=at.toolboxButtonStyleClass.name+" "+((bt=at.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bt!==void 0?bt:at.toolboxButtonStyleColorsClass.name),bn.innerHTML=Be.icon,bn.title=Be.title,bn.addEventListener("click",function(){at.panelButtonClick(Be)}),at.panelButtons.push(bn),at.buttonRow.appendChild(bn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ot.prototype.panelButtonClick=function(_e){var Re=this,Ye=-1;if(_e!==this.activePanel){Ye=this.panels.indexOf(_e),this.panelRow.innerHTML="";var at=_e.getUi();at.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(at),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=_e}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Re.displayMode==="inline"?Re.panelRow.style.display="none":Re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Be,bt){var bn,sn;Be.className=Re.toolboxButtonStyleClass.name+" "+(bt===Ye?""+((bn=Re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&bn!==void 0?bn:Re.toolboxActiveButtonStyleColorsClass.name):""+((sn=Re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:Re.toolboxButtonStyleColorsClass.name))})},ot}(),te=function(ot,_e){this.title=ot,this.icon=_e},ee=function(ot){function _e(Re,Ye,at,Be){var bt=ot.call(this,Re,Be||'<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 bt.colors=[],bt.addTransparent=!1,bt.colorBoxes=[],bt.colors=Ye,bt.currentColor=at,bt.setCurrentColor=bt.setCurrentColor.bind(bt),bt.getColorBox=bt.getColorBox.bind(bt),bt}return Pe(_e,ot),_e.prototype.getUi=function(){var Re=this,Ye=document.createElement("div");return Ye.style.overflow="hidden",Ye.style.whiteSpace="nowrap",this.colors.forEach(function(at){var Be=Re.getColorBox(at);Ye.appendChild(Be),Re.colorBoxes.push(Be)}),Ye},_e.prototype.getColorBox=function(Re){var Ye=this,at=this.uiStyleSettings.toolbarHeight/4,Be=this.uiStyleSettings.toolbarHeight-at,bt=document.createElement("div");bt.style.display="inline-block",bt.style.boxSizing="content-box",bt.style.width=Be-2+"px",bt.style.height=Be-2+"px",bt.style.padding="1px",bt.style.marginRight="2px",bt.style.marginBottom="2px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.borderRadius=(Be+2)/2+"px",bt.style.borderColor=Re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){Ye.setCurrentColor(Re,bt)});var bn=document.createElement("div");return bn.style.display="inline-block",bn.style.width=Be-2+"px",bn.style.height=Be-2+"px",bn.style.backgroundColor=Re,bn.style.borderRadius=Be/2+"px",Re==="transparent"&&(bn.style.fill=this.uiStyleSettings.toolboxAccentColor,bn.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>`),bt.appendChild(bn),bt},_e.prototype.setCurrentColor=function(Re,Ye){var at=this;this.currentColor=Re,this.colorBoxes.forEach(function(Be){Be.style.borderColor=Be===Ye?at.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Re)},_e}(te),he=function(){function ot(_e,Re,Ye){this._state="new",this._isSelected=!1,this._container=_e,this._overlayContainer=Re,this.globalSettings=Ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ot.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ot.prototype.ownsTarget=function(_e){return!1},Object.defineProperty(ot.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ot.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ot.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ot.prototype.pointerDown=function(_e,Re){},ot.prototype.dblClick=function(_e,Re){},ot.prototype.manipulate=function(_e){},ot.prototype.pointerUp=function(_e){this.stateChanged()},ot.prototype.dispose=function(){},ot.prototype.addMarkerVisualToContainer=function(_e){this.container.childNodes.length>0?this.container.insertBefore(_e,this.container.childNodes[0]):this.container.appendChild(_e)},ot.prototype.getState=function(){return{typeName:ot.typeName,state:this.state,notes:this.notes}},ot.prototype.restoreState=function(_e){this._state=_e.state,this.notes=_e.notes},ot.prototype.scale=function(_e,Re){},ot.prototype.colorChanged=function(_e){this.onColorChanged&&this.onColorChanged(_e),this.stateChanged()},ot.prototype.fillColorChanged=function(_e){this.onFillColorChanged&&this.onFillColorChanged(_e),this.stateChanged()},ot.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var _e=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),_e.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(_e)&&this.onStateChanged(this)}},ot.typeName="MarkerBase",ot}(),ue=function(){function ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ot.prototype.findGripByVisual=function(_e){return this.topLeft.ownsTarget(_e)?this.topLeft:this.topCenter.ownsTarget(_e)?this.topCenter:this.topRight.ownsTarget(_e)?this.topRight:this.centerLeft.ownsTarget(_e)?this.centerLeft:this.centerRight.ownsTarget(_e)?this.centerRight:this.bottomLeft.ownsTarget(_e)?this.bottomLeft:this.bottomCenter.ownsTarget(_e)?this.bottomCenter:this.bottomRight.ownsTarget(_e)?this.bottomRight:void 0},ot}(),fe=function(){function ot(){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 ot.prototype.ownsTarget=function(_e){return _e===this.visual||_e===this.visual.childNodes[0]||_e===this.visual.childNodes[1]},ot}(),me=function(){function ot(){}return ot.toITransformMatrix=function(_e){return{a:_e.a,b:_e.b,c:_e.c,d:_e.d,e:_e.e,f:_e.f}},ot.toSVGMatrix=function(_e,Re){return _e.a=Re.a,_e.b=Re.b,_e.c=Re.c,_e.d=Re.d,_e.e=Re.e,_e.f=Re.f,_e},ot}(),be=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.left=0,Be.top=0,Be.width=0,Be.height=0,Be.defaultSize={x:50,y:20},Be.offsetX=0,Be.offsetY=0,Be.rotationAngle=0,Be.CB_DISTANCE=10,Be._suppressMarkerCreateEvent=!1,Be.container.transform.baseVal.appendItem(Te.createTransform()),Be.setupControlBox(),Be}return Pe(_e,ot),Object.defineProperty(_e.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"visual",{get:function(){return this._visual},set:function(Re){this._visual=Re;var Ye=Te.createTransform();this._visual.transform.baseVal.appendItem(Ye)},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Re){return!!ot.prototype.ownsTarget.call(this,Re)||!!(this.controlGrips.findGripByVisual(Re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Re))},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.state==="new"&&(this.left=Re.x,this.top=Re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var at=this.unrotatePoint(Re);if(this.manipulationStartX=at.x,this.manipulationStartY=at.y,this.offsetX=at.x-this.left,this.offsetY=at.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ye)){this.activeGrip=this.rotatorGrip;var Be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Be.x-this.width/2,this.top=Be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var bt=this.container.transform.baseVal.getItem(0);bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(bt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},_e.prototype.pointerUp=function(Re){var Ye=this.state;ot.prototype.pointerUp.call(this,Re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Re),this._state="select",Ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},_e.prototype.moveVisual=function(Re){this.visual.style.transform="translate("+Re.x+"px, "+Re.y+"px)"},_e.prototype.manipulate=function(Re){var Ye=this.unrotatePoint(Re);this.state==="creating"?this.resize(Re):this.state==="move"?(this.left=this.manipulationStartLeft+(Ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ye):this.state==="rotate"&&this.rotate(Re)},_e.prototype.resize=function(Re){var Ye=this.manipulationStartLeft,at=this.manipulationStartWidth,Be=this.manipulationStartTop,bt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ye=this.manipulationStartLeft+Re.x-this.manipulationStartX,at=this.manipulationStartWidth+this.manipulationStartLeft-Ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:at=this.manipulationStartWidth+Re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Be=this.manipulationStartTop+Re.y-this.manipulationStartY,bt=this.manipulationStartHeight+this.manipulationStartTop-Be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:bt=this.manipulationStartHeight+Re.y-this.manipulationStartY}at>=0?(this.left=Ye,this.width=at):(this.left=Ye+at,this.width=-at),bt>=0?(this.top=Be,this.height=bt):(this.top=Be+bt,this.height=-bt),this.setSize()},_e.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},_e.prototype.rotate=function(Re){if(Math.abs(Re.x-this.centerX)>.1){var Ye=Math.sign(Re.x-this.centerX);this.rotationAngle=180*Math.atan((Re.y-this.centerY)/(Re.x-this.centerX))/Math.PI+90*Ye,this.applyRotation()}},_e.prototype.applyRotation=function(){var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0)},_e.prototype.rotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Ye=this.container.getCTM(),at=Te.createPoint(Re.x,Re.y);return{x:(at=at.matrixTransform(Ye)).x,y:at.y}},_e.prototype.unrotatePoint=function(Re){if(this.rotationAngle===0)return Re;var Ye=this.container.getCTM();Ye=Ye.inverse();var at=Te.createPoint(Re.x,Re.y);return{x:(at=at.matrixTransform(Ye)).x,y:at.y}},_e.prototype.select=function(){ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){ot.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Te.createGroup();var Re=Te.createTransform();Re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Re),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"},_e.prototype.adjustControlBox=function(){var Re=this.controlBox.transform.baseVal.getItem(0);Re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Re,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()},_e.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()},_e.prototype.createGrip=function(){var Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},_e.prototype.positionGrips=function(){var Re=this.controlGrips.topLeft.GRIP_SIZE,Ye=-Re/2,at=Ye,Be=(this.width+this.CB_DISTANCE)/2-Re/2,bt=(this.height+this.CB_DISTANCE)/2-Re/2,bn=this.height+this.CB_DISTANCE-Re/2,sn=this.width+this.CB_DISTANCE-Re/2;this.positionGrip(this.controlGrips.topLeft.visual,Ye,at),this.positionGrip(this.controlGrips.topCenter.visual,Be,at),this.positionGrip(this.controlGrips.topRight.visual,sn,at),this.positionGrip(this.controlGrips.centerLeft.visual,Ye,bt),this.positionGrip(this.controlGrips.centerRight.visual,sn,bt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ye,bn),this.positionGrip(this.controlGrips.bottomCenter.visual,Be,bn),this.positionGrip(this.controlGrips.bottomRight.visual,sn,bn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Be,at-3*this.CB_DISTANCE)},_e.prototype.positionGrip=function(Re,Ye,at){var Be=Re.transform.baseVal.getItem(0);Be.setTranslate(Ye,at),Re.transform.baseVal.replaceItem(Be,0)},_e.prototype.hideControlBox=function(){this.controlBox.style.display="none"},_e.prototype.showControlBox=function(){this.controlBox.style.display=""},_e.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)},ot.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){ot.prototype.restoreState.call(this,Re);var Ye=Re;this.left=Ye.left,this.top=Ye.top,this.width=Ye.width,this.height=Ye.height,this.rotationAngle=Ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ye.containerTransformMatrix))},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye);var at=this.rotatePoint({x:this.left,y:this.top}),Be=this.unrotatePoint({x:at.x*Re,y:at.y*Ye});this.left=Be.x,this.top=Be.y,this.width=this.width*Re,this.height=this.height*Ye,this.adjustControlBox()},_e}(he),Ae=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},_e.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)},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){ot.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){ot.prototype.resize.call(this,Re),this.setSize()},_e.prototype.setSize=function(){ot.prototype.setSize.call(this),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(Re){ot.prototype.pointerUp.call(this,Re),this.setSize()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ot.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){var Ye=Re;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.opacity=Ye.opacity,this.createVisual(),ot.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.setSize()},_e.title="Rectangle marker",_e}(be),Ie=function(ot){function _e(Re,Ye,at,Be){var bt=ot.call(this,Re,Be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return bt.widths=[],bt.widthBoxes=[],bt.widths=Ye,bt.currentWidth=at,bt.setCurrentWidth=bt.setCurrentWidth.bind(bt),bt}return Pe(_e,ot),_e.prototype.getUi=function(){var Re=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.widths.forEach(function(at){var Be=document.createElement("div");Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=at===Re.currentWidth?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentWidth(at,Be)}),Ye.appendChild(Be);var bt=document.createElement("div");bt.innerText=at.toString(),bt.style.marginRight="5px",Be.appendChild(bt);var bn=document.createElement("div");bn.style.minHeight="20px",bn.style.flexGrow="2",bn.style.display="flex",bn.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=at+"px solid "+Re.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",bn.appendChild(sn),Be.appendChild(bn),Re.widthBoxes.push(Be)}),Ye},_e.prototype.setCurrentWidth=function(Re,Ye){var at=this;this.currentWidth=Re,this.widthBoxes.forEach(function(Be){Be.style.borderColor=Be===Ye?at.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},_e}(te),Xe=function(ot){function _e(Re,Ye,at,Be){var bt=ot.call(this,Re,Be||'<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 bt.styles=[],bt.styleBoxes=[],bt.styles=Ye,bt.currentStyle=at,bt.setCurrentStyle=bt.setCurrentStyle.bind(bt),bt}return Pe(_e,ot),_e.prototype.getUi=function(){var Re=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.styles.forEach(function(at){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Re.styles.length-5+"%",Be.style.borderColor=at===Re.currentStyle?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentStyle(at,Be)}),Ye.appendChild(Be);var bt=document.createElement("div");bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.overflow="hidden";var bn=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(at!==""?'stroke-dasharray="'+at+'"':"")+` />
|
|
|
</svg>`;bt.innerHTML=bn,Be.appendChild(bt),Re.styleBoxes.push(Be)}),Ye},_e.prototype.setCurrentStyle=function(Re,Ye){var at=this;this.currentStyle=Re,this.styleBoxes.forEach(function(Be){Be.style.borderColor=Be===Ye?at.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},_e}(te),nt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.strokeColor=at.defaultColor,Be.strokeWidth=at.defaultStrokeWidth,Be.strokeDasharray=at.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",at.defaultColorSet,at.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ie("Line width",at.defaultStrokeWidths,at.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Xe("Line style",at.defaultStrokeDasharrays,at.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,ot),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=ot.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="FrameMarker",_e.title="Frame marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',_e}(Ae),Je=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},st=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.x1=0,Be.y1=0,Be.x2=0,Be.y2=0,Be.defaultLength=50,Be.manipulationStartX=0,Be.manipulationStartY=0,Be.manipulationStartX1=0,Be.manipulationStartY1=0,Be.manipulationStartX2=0,Be.manipulationStartY2=0,Be.setupControlBox(),Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!!ot.prototype.ownsTarget.call(this,Re)||!(!this.grip1.ownsTarget(Re)&&!this.grip2.ownsTarget(Re))},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.manipulationStartX=Re.x,this.manipulationStartY=Re.y,this.state==="new"&&(this.x1=Re.x,this.y1=Re.y,this.x2=Re.x,this.y2=Re.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(Ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},_e.prototype.pointerUp=function(Re){var Ye=this.state;ot.prototype.pointerUp.call(this,Re),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(Re),this._state="select",Ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},_e.prototype.adjustVisual=function(){},_e.prototype.manipulate=function(Re){this.state==="creating"?this.resize(Re):this.state==="move"?(this.x1=this.manipulationStartX1+Re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Re)},_e.prototype.resize=function(Re){switch(this.activeGrip){case this.grip1:this.x1=Re.x,this.y1=Re.y;break;case this.grip2:case void 0:this.x2=Re.x,this.y2=Re.y}this.adjustVisual(),this.adjustControlBox()},_e.prototype.select=function(){ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},_e.prototype.deselect=function(){ot.prototype.deselect.call(this),this.controlBox.style.display="none"},_e.prototype.setupControlBox=function(){this.controlBox=Te.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},_e.prototype.adjustControlBox=function(){this.positionGrips()},_e.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},_e.prototype.createGrip=function(){var Re=new fe;return Re.visual.transform.baseVal.appendItem(Te.createTransform()),this.controlBox.appendChild(Re.visual),Re},_e.prototype.positionGrips=function(){var Re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Re/2,this.y1-Re/2),this.positionGrip(this.grip2.visual,this.x2-Re/2,this.y2-Re/2)},_e.prototype.positionGrip=function(Re,Ye,at){var Be=Re.transform.baseVal.getItem(0);Be.setTranslate(Ye,at),Re.transform.baseVal.replaceItem(Be,0)},_e.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ot.prototype.getState.call(this))},_e.prototype.restoreState=function(Re){ot.prototype.restoreState.call(this,Re);var Ye=Re;this.x1=Ye.x1,this.y1=Ye.y1,this.x2=Ye.x2,this.y2=Ye.y2},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.x1=this.x1*Re,this.y1=this.y1*Ye,this.x2=this.x2*Re,this.y2=this.y2*Ye,this.adjustVisual(),this.adjustControlBox()},_e}(he),gt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.strokeColor=at.defaultColor,Be.strokeWidth=at.defaultStrokeWidth,Be.strokeDasharray=at.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",at.defaultColorSet,at.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ie("Line width",at.defaultStrokeWidths,at.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Xe("Line style",at.defaultStrokeDasharrays,at.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorLine&&Re!==this.visibleLine)},_e.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)},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},_e.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()]]))},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){ot.prototype.restoreState.call(this,Re);var Ye=Re;this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.createVisual(),this.adjustVisual()},_e.typeName="LineMarker",_e.title="Line marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',_e}(st),rt=function(ot){function _e(Re,Ye,at,Be){var bt=ot.call(this,Re,Be||'<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 bt.fonts=[],bt.fontBoxes=[],bt.fonts=Ye,bt.currentFont=at,bt.setCurrentFont=bt.setCurrentFont.bind(bt),bt}return Pe(_e,ot),_e.prototype.getUi=function(){var Re=this,Ye=document.createElement("div");return Ye.style.overflow="hidden",Ye.style.flexGrow="2",this.fonts.forEach(function(at){var Be=document.createElement("div");Be.style.display="inline-block",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/Re.fonts.length-5+"%",Be.style.borderColor=at===Re.currentFont?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentFont(at,Be)}),Ye.appendChild(Be);var bt=document.createElement("div");bt.style.display="flex",bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.fontFamily=at,bt.style.overflow="hidden";var bn=document.createElement("div");bn.style.whiteSpace="nowrap",bn.style.overflow="hidden",bn.style.textOverflow="ellipsis",bn.innerHTML="The quick brown fox jumps over the lazy dog",bt.appendChild(bn),Be.appendChild(bt),Re.fontBoxes.push(Be)}),Ye},_e.prototype.setCurrentFont=function(Re,Ye){var at=this;this.currentFont=Re,this.fontBoxes.forEach(function(Be){Be.style.borderColor=Be===Ye?at.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},_e}(te),mt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.color="transparent",Be.padding=5,Be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Be.text=Be.DEFAULT_TEXT,Be.isMoved=!1,Be.color=at.defaultColor,Be.fontFamily=at.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setColor=Be.setColor.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.renderText=Be.renderText.bind(Be),Be.sizeText=Be.sizeText.bind(Be),Be.textEditDivClicked=Be.textEditDivClicked.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.setSize=Be.setSize.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.colorPanel=new ee("Color",at.defaultColorSet,at.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.fontFamilyPanel=new rt("Font",at.defaultFontFamilies,at.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){if(ot.prototype.ownsTarget.call(this,Re)||Re===this.visual||Re===this.textElement||Re===this.bgRectangle)return!0;var Ye=!1;return this.textElement.childNodes.forEach(function(at){at===Re&&(Ye=!0)}),Ye},_e.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()},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.renderText=function(){var Re=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(Ye){Re.textElement.appendChild(Te.createTSpan(Ye.trim()===""?" ":Ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},_e.prototype.getTextScale=function(){var Re=this.textElement.getBBox(),Ye=1;if(Re.width>0&&Re.height>0){var at=(1*this.width-this.width*this.padding*2/100)/Re.width,Be=(1*this.height-this.height*this.padding*2/100)/Re.height;Ye=Math.min(at,Be)}return Ye},_e.prototype.getTextPosition=function(Re){var Ye=this.textElement.getBBox(),at=0,Be=0;return Ye.width>0&&Ye.height>0&&(at=(this.width-Ye.width*Re)/2,Be=this.height/2-Ye.height*Re/2),{x:at,y:Be}},_e.prototype.sizeText=function(){var Re=this.textElement.getBBox(),Ye=this.getTextScale(),at=this.getTextPosition(Ye);at.y-=Re.y*Ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+at.x+"px, "+at.y+"px) scale("+Ye+", "+Ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(at.x,at.y),this.textElement.transform.baseVal.getItem(1).setScale(Ye,Ye))},_e.prototype.manipulate=function(Re){ot.prototype.manipulate.call(this,Re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Re.x-this.pointerDownPoint.x)>5||Math.abs(Re.y-this.pointerDownPoint.y)>5)},_e.prototype.resize=function(Re){ot.prototype.resize.call(this,Re),this.isMoved=!0,this.setSize(),this.sizeText()},_e.prototype.setSize=function(){ot.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()]]))},_e.prototype.pointerUp=function(Re){var Ye=this.state;Ye==="creating"&&(this._suppressMarkerCreateEvent=!0),ot.prototype.pointerUp.call(this,Re),this.setSize(),(Ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},_e.prototype.showTextEditor=function(){var Re=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(Ye){Ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ye=Number.parseFloat(Re.textEditor.style.fontSize);Re.textEditor.clientWidth>=Number.parseInt(Re.textEditor.style.maxWidth)&&Ye>.9;)Ye-=.1,Re.textEditor.style.fontSize=Math.max(Ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ye){Ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ye){if(Ye.clipboardData){var at=Ye.clipboardData.getData("text"),Be=window.getSelection();if(!Be.rangeCount)return!1;Be.deleteFromDocument(),Be.getRangeAt(0).insertNode(document.createTextNode(at)),Ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Re.textEditDivClicked(Re.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},_e.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Re=this.getTextScale(),Ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),at=this.textElement.getBBox(),Be={x:at.width*Re,y:at.height*Re};Ye.x-=Be.x/2,Ye.y-=Be.y/2,this.textEditor.style.top=Ye.y+"px",this.textEditor.style.left=Ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ye.x+"px",this.textEditor.style.fontSize=Math.max(16*Re,12)+"px",this.textElement.style.display="none"}},_e.prototype.textEditDivClicked=function(Re){this.text=Re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},_e.prototype.select=function(){ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},_e.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ot.prototype.deselect.call(this)},_e.prototype.dblClick=function(Re,Ye){ot.prototype.dblClick.call(this,Re,Ye),this.showTextEditor()},_e.prototype.setColor=function(Re){this.textElement&&Te.setAttributes(this.textElement,[["fill",Re]]),this.color=Re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Re)},_e.prototype.setFont=function(Re){this.textElement&&Te.setAttributes(this.textElement,[["font-family",Re]]),this.fontFamily=Re,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},_e.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},_e.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Ye=Re;this.color=Ye.color,this.fontFamily=Ye.fontFamily,this.padding=Ye.padding,this.text=Ye.text,this.createVisual(),ot.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.setSize(),this.sizeText(),this.positionTextEditor()},_e.typeName="TextMarker",_e.title="Text marker",_e.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>',_e}(be),xt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.color="transparent",Be.lineWidth=3,Be.drawing=!1,Be.pixelRatio=1,Be.color=at.defaultColor,Be.lineWidth=at.defaultStrokeWidth,Be.pixelRatio=at.freehandPixelRatio,Be.setColor=Be.setColor.bind(Be),Be.addCanvas=Be.addCanvas.bind(Be),Be.finishCreation=Be.finishCreation.bind(Be),Be.setLineWidth=Be.setLineWidth.bind(Be),Be.colorPanel=new ee("Color",at.defaultColorSet,at.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.lineWidthPanel=new Ie("Line width",at.defaultStrokeWidths,at.defaultStrokeWidth),Be.lineWidthPanel.onWidthChanged=Be.setLineWidth,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.drawingImage)},_e.prototype.createVisual=function(){this.visual=Te.createGroup(),this.drawingImage=Te.createImage(),this.visual.appendChild(this.drawingImage);var Re=Te.createTransform();this.visual.transform.baseVal.appendItem(Re),this.addMarkerVisualToContainer(this.visual)},_e.prototype.pointerDown=function(Re,Ye){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(Re.x,Re.y),this.drawing=!0):ot.prototype.pointerDown.call(this,Re,Ye)},_e.prototype.manipulate=function(Re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Re.x,Re.y),this.canvasContext.stroke()):ot.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){ot.prototype.resize.call(this,Re),Te.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Te.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},_e.prototype.pointerUp=function(Re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ot.prototype.pointerUp.call(this,Re)},_e.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)},_e.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ot.prototype.select.call(this)},_e.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ot.prototype.deselect.call(this)},_e.prototype.finishCreation=function(){for(var Re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],at=Ye[0],Be=Ye[1],bt=Ye[2],bn=Ye[3],sn=!1,Bn=0;Bn<this.canvasElement.height;Bn++)for(var It=0;It<this.canvasElement.width;It++)Re.data[Bn*this.canvasElement.width*4+4*It+3]>0&&(sn=!0,Bn<Be&&(Be=Bn),It<at&&(at=It),Bn>bn&&(bn=Bn),It>bt&&(bt=It));if(sn){this.left=at/this.pixelRatio,this.top=Be/this.pixelRatio,this.width=(bt-at)/this.pixelRatio,this.height=(bn-Be)/this.pixelRatio;var _t=document.createElement("canvas");_t.width=bt-at,_t.height=bn-Be,_t.getContext("2d").putImageData(this.canvasContext.getImageData(at,Be,bt-at,bn-Be),0,0),this.drawingImgUrl=_t.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},_e.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})},_e.prototype.setColor=function(Re){this.color=Re,this.colorChanged(Re)},_e.prototype.setLineWidth=function(Re){this.lineWidth=Re},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({drawingImgUrl:this.drawingImgUrl},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){this.createVisual(),ot.prototype.restoreState.call(this,Re),this.drawingImgUrl=Re.drawingImgUrl,this.setDrawingImage()},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.setDrawingImage()},_e.typeName="FreehandMarker",_e.title="Freehand marker",_e.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>',_e}(be),Tt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,at||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Be.typeBoxes=[],Be.currentType=Ye,Be.setCurrentType=Be.setCurrentType.bind(Be),Be}return Pe(_e,ot),_e.prototype.getUi=function(){var Re=this,Ye=document.createElement("div");Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2";for(var at=function(bn){var sn="both";switch(bn){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var Bn=document.createElement("div");if(Bn.style.display="flex",Bn.style.flexGrow="2",Bn.style.alignItems="center",Bn.style.justifyContent="space-between",Bn.style.padding="5px",Bn.style.borderWidth="2px",Bn.style.borderStyle="solid",Bn.style.borderColor=sn===Be.currentType?Be.uiStyleSettings.toolboxAccentColor:"transparent",Bn.addEventListener("click",function(){Re.setCurrentType(sn,Bn)}),Ye.appendChild(Bn),sn==="both"||sn==="start"){var It=document.createElement("div");It.style.display="flex",It.style.alignItems="center",It.style.minHeight="20px",It.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="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,It.style.marginLeft="5px",Bn.appendChild(It)}var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.minHeight="20px",_t.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",_t.appendChild(jt),Bn.appendChild(_t),sn==="both"||sn==="end"){var hn=document.createElement("div");hn.style.display="flex",hn.style.alignItems="center",hn.style.minHeight="20px",hn.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="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,hn.style.marginRight="5px",Bn.appendChild(hn)}Be.typeBoxes.push(Bn)},Be=this,bt=0;bt<4;bt++)at(bt);return Ye},_e.prototype.setCurrentType=function(Re,Ye){var at=this;this.currentType=Re,this.typeBoxes.forEach(function(Be){Be.style.borderColor=Be===Ye?at.uiStyleSettings!==void 0?at.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},_e}(te),zt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.arrowType="end",Be.arrowBaseHeight=10,Be.arrowBaseWidth=10,Be.getArrowPoints=Be.getArrowPoints.bind(Be),Be.setArrowType=Be.setArrowType.bind(Be),Be.arrowTypePanel=new Tt("Arrow type","end"),Be.arrowTypePanel.onArrowTypeChanged=Be.setArrowType,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.arrow1&&Re!==this.arrow2)},_e.prototype.getArrowPoints=function(Re,Ye){var at=this.arrowBaseWidth+2*this.strokeWidth,Be=this.arrowBaseHeight+2*this.strokeWidth;return Re-at/2+","+(Ye+Be/2)+" "+Re+","+(Ye-Be/2)+" "+(Re+at/2)+","+(Ye+Be/2)},_e.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)},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(ot.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 Re=0;Math.abs(this.x1-this.x2)>.1&&(Re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ye=this.arrow1.transform.baseVal.getItem(0);Ye.setRotate(Re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ye,0);var at=this.arrow2.transform.baseVal.getItem(0);at.setRotate(Re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(at,0)}},_e.prototype.setArrowType=function(Re){this.arrowType=Re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({arrowType:this.arrowType},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){ot.prototype.restoreState.call(this,Re);var Ye=Re;this.arrowType=Ye.arrowType,this.createTips(),this.adjustVisual()},_e.typeName="ArrowMarker",_e.title="Arrow marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',_e}(gt),Qt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.fillColor=at.defaultFillColor,Be.strokeWidth=0,Be.fillPanel=new ee("Color",at.defaultColorSet,at.defaultFillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be}return Pe(_e,ot),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=ot.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="CoverMarker",_e.title="Cover marker",_e.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',_e}(Ae),Kt=function(ot){function _e(Re,Ye,at,Be){var bt=ot.call(this,Re,Be||'<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 bt.opacities=[],bt.opacityBoxes=[],bt.opacities=Ye,bt.currentOpacity=at,bt.setCurrentOpacity=bt.setCurrentOpacity.bind(bt),bt}return Pe(_e,ot),_e.prototype.getUi=function(){var Re=this,Ye=document.createElement("div");return Ye.style.display="flex",Ye.style.overflow="hidden",Ye.style.flexGrow="2",Ye.style.justifyContent="space-between",this.opacities.forEach(function(at){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="center",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=at===Re.currentOpacity?Re.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){Re.setCurrentOpacity(at,Be)}),Ye.appendChild(Be);var bt=document.createElement("div");bt.innerText=100*at+"%",Be.appendChild(bt),Re.opacityBoxes.push(Be)}),Ye},_e.prototype.setCurrentOpacity=function(Re,Ye){var at=this;this.currentOpacity=Re,this.opacityBoxes.forEach(function(Be){Be.style.borderColor=Be===Ye?at.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},_e}(te),Cn=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.setOpacity=Be.setOpacity.bind(Be),Be.fillColor=at.defaultHighlightColor,Be.strokeWidth=0,Be.opacity=at.defaultHighlightOpacity,Be.fillPanel=new ee("Color",at.defaultColorSet,Be.fillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be.opacityPanel=new Kt("Opacity",at.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return Pe(_e,ot),_e.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=ot.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="HighlightMarker",_e.title="Highlight marker",_e.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>',_e}(Qt),St='<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>',pt='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ct=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.bgColor="transparent",Be.tipPosition={x:0,y:0},Be.tipBase1Position={x:0,y:0},Be.tipBase2Position={x:0,y:0},Be.tipMoving=!1,Be.color=at.defaultStrokeColor,Be.bgColor=at.defaultFillColor,Be.fontFamily=at.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setBgColor=Be.setBgColor.bind(Be),Be.getTipPoints=Be.getTipPoints.bind(Be),Be.positionTip=Be.positionTip.bind(Be),Be.setTipPoints=Be.setTipPoints.bind(Be),Be.colorPanel=new ee("Text color",at.defaultColorSet,Be.color,St),Be.colorPanel.onColorChanged=Be.setColor,Be.bgColorPanel=new ee("Fill color",at.defaultColorSet,Be.bgColor,pt),Be.bgColorPanel.onColorChanged=Be.setBgColor,Be.fontFamilyPanel=new rt("Font",at.defaultFontFamilies,at.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.tipGrip=new fe,Be.tipGrip.visual.transform.baseVal.appendItem(Te.createTransform()),Be.controlBox.appendChild(Be.tipGrip.visual),Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return ot.prototype.ownsTarget.call(this,Re)||this.tipGrip.ownsTarget(Re)||this.tip===Re},_e.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)},_e.prototype.pointerDown=function(Re,Ye){this.state==="new"&&ot.prototype.pointerDown.call(this,Re,Ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ot.prototype.pointerDown.call(this,Re,Ye)},_e.prototype.pointerUp=function(Re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ot.prototype.pointerUp.call(this,Re);else{var Ye=this.state==="creating";ot.prototype.pointerUp.call(this,Re),this.setTipPoints(Ye),this.positionTip()}},_e.prototype.manipulate=function(Re){if(this.tipMoving){var Ye=this.unrotatePoint(Re);this.tipPosition={x:Ye.x-this.manipulationStartLeft,y:Ye.y-this.manipulationStartTop},this.positionTip()}else ot.prototype.manipulate.call(this,Re)},_e.prototype.setBgColor=function(Re){this.bgRectangle&&this.tip&&(Te.setAttributes(this.bgRectangle,[["fill",Re]]),Te.setAttributes(this.tip,[["fill",Re]])),this.bgColor=Re,this.fillColorChanged(Re)},_e.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},_e.prototype.setTipPoints=function(Re){Re===void 0&&(Re=!1);var Ye=Math.min(this.height/2,15),at=this.height/5;Re&&(this.tipPosition={x:Ye+at/2,y:this.height+20});var Be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(at=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:Ye,y:0},this.tipBase2Position={x:Ye+at,y:0}):(this.tipBase1Position={x:0,y:Ye},this.tipBase2Position={x:0,y:Ye+at}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(at=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ye-at,y:0},this.tipBase2Position={x:this.width-Ye,y:0}):(this.tipBase1Position={x:this.width,y:Ye},this.tipBase2Position={x:this.width,y:Ye+at}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(at=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ye-at,y:this.height},this.tipBase2Position={x:this.width-Ye,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ye-at},this.tipBase2Position={x:this.width,y:this.height-Ye}):Be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(at=this.width/5,Ye=Math.min(this.width/2,15),this.tipBase1Position={x:Ye,y:this.height},this.tipBase2Position={x:Ye+at,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ye},this.tipBase2Position={x:0,y:this.height-Ye-at})},_e.prototype.resize=function(Re){ot.prototype.resize.call(this,Re),this.positionTip()},_e.prototype.positionTip=function(){Te.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Re=this.tipGrip.visual.transform.baseVal.getItem(0);Re.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Re,0)},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),_e.prototype.select=function(){this.positionTip(),ot.prototype.select.call(this)},_e.prototype.getState=function(){var Re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Ye=Re;this.bgColor=Ye.bgColor,this.tipPosition=Ye.tipPosition,ot.prototype.restoreState.call(this,Re),this.createTip(),this.setTipPoints()},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.tipPosition={x:this.tipPosition.x*Re,y:this.tipPosition.y*Ye},this.positionTip()},_e.typeName="CalloutMarker",_e.title="Callout marker",_e.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>',_e}(mt),qt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.strokeColor=at.defaultColor,Be.strokeWidth=at.defaultStrokeWidth,Be.strokeDasharray=at.defaultStrokeDasharray,Be.fillColor=at.defaultFillColor,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.setOpacity=Be.setOpacity.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.strokePanel=new ee("Line color",je(at.defaultColorSet,["transparent"]),at.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new ee("Fill color",je(at.defaultColorSet,["transparent"]),Be.fillColor,pt),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new Ie("Line width",at.defaultStrokeWidths,at.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Xe("Line style",at.defaultStrokeDasharrays,at.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.opacityPanel=new Kt("Opacity",at.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.visual)},_e.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)},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){ot.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){ot.prototype.resize.call(this,Re),this.setSize()},_e.prototype.setSize=function(){ot.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()]])},_e.prototype.pointerUp=function(Re){ot.prototype.pointerUp.call(this,Re),this.setSize()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.visual&&Te.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.visual&&Te.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.visual&&Te.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},_e.prototype.setOpacity=function(Re){this.opacity=Re,this.visual&&Te.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){var Ye=Re;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.opacity=Ye.opacity,this.createVisual(),ot.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.setSize()},_e.typeName="EllipseMarker",_e.title="Ellipse marker",_e.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>',_e}(be),fn=function(ot){function _e(Re,Ye,at){return ot.call(this,Re,Ye,at)||this}return Pe(_e,ot),Object.defineProperty(_e.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.tip1&&Re!==this.tip2)},_e.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)},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.state==="creating"&&this.createTips()},_e.prototype.adjustVisual=function(){if(ot.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 Re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ye=this.tip1.transform.baseVal.getItem(0);Ye.setRotate(Re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ye,0);var at=this.tip2.transform.baseVal.getItem(0);at.setRotate(Re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(at,0)}},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=ot.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){ot.prototype.restoreState.call(this,Re),this.createTips(),this.adjustVisual()},_e.typeName="MeasurementMarker",_e.title="Measurement marker",_e.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>',_e}(gt),kt=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.strokePanel.colors=at.defaultColorSet,Be.fillColor="transparent",Be}return Pe(_e,ot),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=ot.prototype.getState.call(this);return Re.typeName=_e.typeName,Re},_e.typeName="EllipseFrameMarker",_e.title="Ellipse frame marker",_e.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>',_e}(qt),xn=function(){function ot(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ot.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ot.prototype.addUndoStep=function(_e){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(_e)||(this.undoStack.push(_e),JSON.stringify(this.lastRedoStep)!==JSON.stringify(_e)&&this.redoStack.splice(0,this.redoStack.length))},ot.prototype.replaceLastUndoStep=function(_e){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=_e)},ot.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ot.prototype.undo=function(){if(this.undoStack.length>1){var _e=this.undoStack.pop();return _e!==void 0&&this.redoStack.push(_e),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ot.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ot}(),kn=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.curveX=0,Be.curveY=0,Be.manipulationStartCurveX=0,Be.manipulationStartCurveY=0,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.positionGrips=Be.positionGrips.bind(Be),Be.addControlGrips=Be.addControlGrips.bind(Be),Be.adjustVisual=Be.adjustVisual.bind(Be),Be.setupControlBox=Be.setupControlBox.bind(Be),Be.resize=Be.resize.bind(Be),Be.strokeColor=at.defaultColor,Be.strokeWidth=at.defaultStrokeWidth,Be.strokeDasharray=at.defaultStrokeDasharray,Be.strokePanel=new ee("Line color",at.defaultColorSet,at.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ie("Line width",at.defaultStrokeWidths,at.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Xe("Line style",at.defaultStrokeDasharrays,at.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.selectorCurve&&Re!==this.visibleCurve&&!this.curveGrip.ownsTarget(Re))},_e.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},_e.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)},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Re.x,this.curveY=Re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},_e.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()]]))},_e.prototype.setupControlBox=function(){ot.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)},_e.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ot.prototype.addControlGrips.call(this)},_e.prototype.positionGrips=function(){ot.prototype.positionGrips.call(this);var Re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Re/2,this.curveY-Re/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()))},_e.prototype.manipulate=function(Re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Re.y-this.manipulationStartY),ot.prototype.manipulate.call(this,Re)},_e.prototype.resize=function(Re){this.activeGrip===this.curveGrip&&(this.curveX=Re.x,this.curveY=Re.y),ot.prototype.resize.call(this,Re),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.adjustVisual(),this.colorChanged(Re)},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.adjustVisual()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.adjustVisual()},_e.prototype.scale=function(Re,Ye){this.curveX=this.curveX*Re,this.curveY=this.curveY*Ye,ot.prototype.scale.call(this,Re,Ye)},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ot.prototype.getState.call(this));return Re.typeName=_e.typeName,Re},_e.prototype.restoreState=function(Re){ot.prototype.restoreState.call(this,Re);var Ye=Re;this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.curveX=Ye.curveX,this.curveY=Ye.curveY,this.createVisual(),this.adjustVisual()},_e.typeName="CurveMarker",_e.title="Curve marker",_e.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>',_e}(st),Vn=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,Ye,at)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.textColor="transparent",Be.fontSize="1rem",Be.isMoved=!1,Be.captionText="Caption",Be.PADDING=5,Be.captionBoxWidth=0,Be.captionBoxHeight=0,Be.strokeColor=at.defaultColor,Be.strokeWidth=at.defaultStrokeWidth,Be.strokeDasharray=at.defaultStrokeDasharray,Be.fillColor=at.defaultFillColor,Be.textColor=at.defaultStrokeColor,Be.fontFamily=at.defaultFontFamily,Be.fontSize=at.defaultCaptionFontSize,Be.captionText=at.defaultCaptionText,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.sizeCaption=Be.sizeCaption.bind(Be),Be.setCaptionText=Be.setCaptionText.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.finishTextEditing=Be.finishTextEditing.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.setTextColor=Be.setTextColor.bind(Be),Be.strokePanel=new ee("Line color",je(at.defaultColorSet,["transparent"]),Be.strokeColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new ee("Fill color",je(at.defaultColorSet,["transparent"]),Be.fillColor,pt),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new Ie("Line width",at.defaultStrokeWidths,at.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new Xe("Line style",at.defaultStrokeDasharrays,at.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.fontFamilyPanel=new rt("Font",at.defaultFontFamilies,at.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.textColorPanel=new ee("Text color",at.defaultColorSet,Be.textColor,St),Be.textColorPanel.onColorChanged=Be.setTextColor,Be}return Pe(_e,ot),_e.prototype.ownsTarget=function(Re){return!(!ot.prototype.ownsTarget.call(this,Re)&&Re!==this.visual&&Re!==this.frame&&Re!==this.captionBg&&Re!==this.captionElement)},_e.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()},_e.prototype.setCaptionText=function(Re){this.captionText=Re,this.captionElement.textContent=this.captionText,this.sizeCaption()},_e.prototype.pointerDown=function(Re,Ye){ot.prototype.pointerDown.call(this,Re,Ye),this.isMoved=!1,this.pointerDownPoint=Re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Re),this._state="creating")},_e.prototype.manipulate=function(Re){ot.prototype.manipulate.call(this,Re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Re.x-this.pointerDownPoint.x)>5||Math.abs(Re.y-this.pointerDownPoint.y)>5)},_e.prototype.resize=function(Re){ot.prototype.resize.call(this,Re),this.setSize()},_e.prototype.sizeCaption=function(){var Re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Re.width+2*this.PADDING,this.captionBoxHeight=Re.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')"]])},_e.prototype.showTextEditor=function(){var Re=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(Ye){Ye.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ye){Ye.key==="Enter"&&Re.finishTextEditing(Re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ye){Ye.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Re.finishTextEditing(Re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Re.finishTextEditing(Re.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},_e.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"))},_e.prototype.finishTextEditing=function(Re){this.setCaptionText(Re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},_e.prototype.setFont=function(Re){this.captionElement&&Te.setAttributes(this.captionElement,[["font-family",Re]]),this.fontFamily=Re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},_e.prototype.setTextColor=function(Re){this.captionElement&&Te.setAttributes(this.captionElement,[["fill",Re]]),this.textColor=Re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},_e.prototype.setSize=function(){ot.prototype.setSize.call(this),Te.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},_e.prototype.pointerUp=function(Re){ot.prototype.pointerUp.call(this,Re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},_e.prototype.dblClick=function(Re,Ye){ot.prototype.dblClick.call(this,Re,Ye),this.showTextEditor()},_e.prototype.setStrokeColor=function(Re){this.strokeColor=Re,this.frame&&Te.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Re),this.stateChanged()},_e.prototype.setFillColor=function(Re){this.fillColor=Re,this.captionBg&&Te.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Re),this.stateChanged()},_e.prototype.setStrokeWidth=function(Re){this.strokeWidth=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},_e.prototype.setStrokeDasharray=function(Re){this.strokeDasharray=Re,this.frame&&Te.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),_e.prototype.getState=function(){var Re=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},ot.prototype.getState.call(this));return Re.typeName=this.typeName,Re},_e.prototype.restoreState=function(Re){var Ye=Re;this.fillColor=Ye.fillColor,this.strokeColor=Ye.strokeColor,this.strokeWidth=Ye.strokeWidth,this.strokeDasharray=Ye.strokeDasharray,this.textColor=Ye.textColor,this.fontFamily=Ye.fontFamily,this.captionText=Ye.captionText,this.fontSize=Ye.fontSize,this.createVisual(),ot.prototype.restoreState.call(this,Re),this.setSize()},_e.prototype.scale=function(Re,Ye){ot.prototype.scale.call(this,Re,Ye),this.setSize()},_e.typeName="CaptionFrameMarker",_e.title="Caption frame marker",_e.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>',_e}(be),Vt=function(){function ot(_e,Re){Re===void 0&&(Re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=_e,this.cancelable=Re}return Object.defineProperty(ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ot.prototype.preventDefault=function(){this._defaultPrevented=!0},ot}(),Ot=function(ot){function _e(Re,Ye,at){var Be=ot.call(this,Re,!1)||this;return Be.dataUrl=Ye,Be.state=at,Be}return Pe(_e,ot),_e}(Vt),Nn=function(ot){function _e(Re,Ye,at){at===void 0&&(at=!1);var Be=ot.call(this,Re,at)||this;return Be.marker=Ye,Be}return Pe(_e,ot),_e}(Vt),tr=function(){function ot(){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 ot.prototype.addEventListener=function(_e,Re){this[_e].push(Re)},ot.prototype.removeEventListener=function(_e,Re){var Ye=this[_e].indexOf(Re);Ye>-1&&this[_e].splice(Ye,1)},ot}(),hr=function(){function ot(_e){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Je,this._isOpen=!1,this.undoRedoManager=new xn,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 tr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ot.instanceCounter++,this.styles=new He(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=_e,this.targetRoot=document.body,this.width=_e.clientWidth,this.height=_e.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(ot.prototype,"ALL_MARKER_TYPES",{get:function(){return[nt,xt,zt,mt,kt,qt,Cn,ct,fn,Qt,gt,kn,Vn]},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[nt,xt,zt,mt,qt,Cn,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[nt,xt,zt,mt,Cn]},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(_e){var Re=this;this._availableMarkerTypes.splice(0),_e.forEach(function(Ye){if(typeof Ye=="string"){var at=Re.ALL_MARKER_TYPES.find(function(Be){return Be.typeName===Ye});at!==void 0&&Re._availableMarkerTypes.push(at)}else Re._availableMarkerTypes.push(Ye)})},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ot.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(_e){this._zoomLevel=_e,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(ot.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ot.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ge.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ot.prototype.show=function(){var _e=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(Re){return Re(new Vt(_e))})},ot.prototype.render=function(){return ke(this,void 0,void 0,function(){var _e;return De(this,function(Re){switch(Re.label){case 0:return this.setCurrentMarker(),(_e=new lt).naturalSize=this.renderAtNaturalSize,_e.imageType=this.renderImageType,_e.imageQuality=this.renderImageQuality,_e.markersOnly=this.renderMarkersOnly,_e.width=this.renderWidth,_e.height=this.renderHeight,[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Re.sent(),[4,_e.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Re.sent()]}})})},ot.prototype.close=function(_e){var Re=this;if(_e===void 0&&(_e=!1),this.isOpen){var Ye=!1;_e||this.eventListeners.beforeclose.forEach(function(at){var Be=new Vt(Re,!0);at(Be),Be.defaultPrevented&&(Ye=!0)}),Ye||(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(at){return at(new Vt(Re))}),this.detachEvents(),this._isOpen=!1)}},ot.prototype.addMarkersToToolbar=function(){for(var _e,Re=[],Ye=0;Ye<arguments.length;Ye++)Re[Ye]=arguments[Ye];(_e=this._availableMarkerTypes).push.apply(_e,Re)},ot.prototype.addRenderEventListener=function(_e){this.addEventListener("render",function(Re){_e(Re.dataUrl,Re.state)})},ot.prototype.removeRenderEventListener=function(_e){},ot.prototype.addCloseEventListener=function(_e){this.addEventListener("close",function(){_e()})},ot.prototype.removeCloseEventListener=function(_e){},ot.prototype.setupResizeObserver=function(){var _e=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){_e.resize(_e.target.clientWidth,_e.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return _e.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ot.prototype.onPopupTargetResize=function(){var _e=1*this.target.clientWidth/this.target.clientHeight,Re=this.editorCanvas.clientWidth/_e>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*_e:this.editorCanvas.clientWidth,Ye=Re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/_e;this.resize(Re,Ye)},ot.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ot.prototype.resize=function(_e,Re){this._isResizing=!0;var Ye=_e/this.imageWidth,at=Re/this.imageHeight;this.imageWidth=Math.round(_e),this.imageHeight=Math.round(Re),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(Ye,at),this._isResizing=!1},ot.prototype.scaleMarkers=function(_e,Re){var Ye,at=this;this._currentMarker&&this._currentMarker instanceof mt?this._currentMarker.scale(_e,Re):(Ye=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Be){Be!==at._currentMarker&&Be.scale(_e,Re)}),Ye!==void 0&&this.setCurrentMarker(Ye)},ot.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"},ot.prototype.setTopLeft=function(){var _e=this.editingTarget.getBoundingClientRect(),Re=this.editorCanvas.getBoundingClientRect();this.left=_e.left-Re.left,this.top=_e.top-Re.top},ot.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)},ot.prototype.addDefs=function(){for(var _e,Re=[],Ye=0;Ye<arguments.length;Ye++)Re[Ye]=arguments[Ye];this.defs=Te.createDefs(),this.addDefsToImage(),(_e=this.defs).append.apply(_e,Re)},ot.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ot.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)},ot.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ot.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ot.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)},ot.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ot.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)},ot.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 _e=document.createElement("a");_e.href="https://markerjs.com/",_e.target="_blank",_e.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>',_e.title="Powered by marker.js",_e.style.display="grid",_e.style.alignItems="center",_e.style.justifyItems="center",_e.style.padding="3px",_e.style.width="20px",_e.style.height="20px",this.logoUI.appendChild(_e),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ot.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")},ot.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"},ot.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ot.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 _e=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=_e+"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 Mt(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")},ot.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ot.prototype.removeMarker=function(_e){this.markerImage.removeChild(_e.container),this.markers.indexOf(_e)>-1&&this.markers.splice(this.markers.indexOf(_e),1),_e.dispose()},ot.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())},ot.prototype.toolbarButtonClicked=function(_e,Re){if(_e==="marker"&&Re!==void 0)this.createNewMarker(Re);else if(_e==="action")switch(Re){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()}},ot.prototype.deleteSelectedMarker=function(){var _e=this;if(this._currentMarker!==void 0){var Re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(at){var Be=new Nn(_e,_e._currentMarker,!0);at(Be),Be.defaultPrevented&&(Re=!0)}),!Re){var Ye=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(at){return at(new Nn(_e,Ye))})}}},ot.prototype.clear=function(){var _e=this,Re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(bt){var bn=new Nn(_e,void 0,!0);bt(bn),bn.defaultPrevented&&(Re=!0)}),!Re)){this.setCurrentMarker();for(var Ye=function(bt){var bn=at.markers[bt];at.setCurrentMarker(at.markers[bt]),at._currentMarker.dispose(),at.markerImage.removeChild(at._currentMarker.container),at.markers.splice(at.markers.indexOf(at._currentMarker),1),at.eventListeners.markerdelete.forEach(function(sn){return sn(new Nn(_e,bn))})},at=this,Be=this.markers.length-1;Be>=0;Be--)Ye(Be);this.addUndoStep()}},Object.defineProperty(ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ot.prototype.showNotesEditor=function(){var _e;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=(_e=this._currentMarker.notes)!==null&&_e!==void 0?_e:"",this.overlayContainer.appendChild(this.notesArea))},ot.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)},ot.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ot.prototype.addUndoStep=function(){var _e=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Re=this.getState(),Ye=this.undoRedoManager.getLastUndoStep();if(!Ye||Ye.width===Re.width&&Ye.height===Re.height){var at=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Re),at<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Be){return Be(new Vt(_e))})}else this.undoRedoManager.replaceLastUndoStep(Re),this.eventListeners.statechange.forEach(function(Be){return Be(new Vt(_e))})}},ot.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ot.prototype.undoStep=function(){var _e=this,Re=this.undoRedoManager.undo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Vt(_e))}))},ot.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ot.prototype.redoStep=function(){var _e=this,Re=this.undoRedoManager.redo();Re!==void 0&&(this.restoreState(Re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ye){return Ye(new Vt(_e))}))},ot.prototype.stepZoom=function(){var _e=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=_e<this.zoomSteps.length-1?this.zoomSteps[_e+1]:this.zoomSteps[0]},ot.prototype.panTo=function(_e){this.contentDiv.scrollBy({left:this.prevPanPoint.x-_e.x,top:this.prevPanPoint.y-_e.y}),this.prevPanPoint=_e},ot.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var _e,Re,Ye=this;return De(this,function(at){switch(at.label){case 0:return[4,this.render()];case 1:return _e=at.sent(),Re=this.getState(),this.eventListeners.render.forEach(function(Be){return Be(new Ot(Ye,_e,Re))}),this.close(!0),[2]}})})},ot.prototype.getState=function(_e){_e===!0&&this.setCurrentMarker();var Re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ye){return Re.markers.push(Ye.getState())}),Re},ot.prototype.restoreState=function(_e){var Re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);_e.markers.forEach(function(Ye){var at=Re._availableMarkerTypes.find(function(bt){return bt.typeName===Ye.typeName});if(at!==void 0){var Be=Re.addNewMarker(at);Be.restoreState(Ye),Re.markers.push(Be)}}),_e.width&&_e.height&&(_e.width!==this.imageWidth||_e.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/_e.width,this.imageHeight/_e.height),this.eventListeners.restorestate.forEach(function(Ye){return Ye(new Vt(Re))})},ot.prototype.addNewMarker=function(_e){var Re=Te.createGroup();return this.markerImage.appendChild(Re),new _e(Re,this.overlayContainer,this.settings)},ot.prototype.createNewMarker=function(_e){var Re,Ye=this;(Re=typeof _e=="string"?this._availableMarkerTypes.find(function(at){return at.typeName===_e}):_e)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Re),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(Re.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(at){return at(new Nn(Ye,Ye._currentMarker))}))},ot.prototype.markerCreated=function(_e){var Re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(_e),this.setCurrentMarker(_e),_e instanceof xt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(xt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ye){return Ye(new Nn(Re,Re._currentMarker))})},ot.prototype.colorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=_e,this.settings.defaultStrokeColor=_e)},ot.prototype.fillColorChanged=function(_e){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=_e)},ot.prototype.markerStateChanged=function(_e){var Re=this;this.eventListeners.markerchange.forEach(function(Ye){return Ye(new Nn(Re,_e))})},ot.prototype.setCurrentMarker=function(_e){var Re=this;this._currentMarker!==_e&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ye){return Ye(new Nn(Re,Re._currentMarker))})),this._currentMarker=_e,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(Ye){return Ye(new Nn(Re,Re._currentMarker))}))},ot.prototype.onPointerDown=function(_e){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||_e.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Re=this.markers.find(function(Ye){return Ye.ownsTarget(_e.target)});Re!==void 0?(this.setCurrentMarker(Re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:_e.clientX,y:_e.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(_e.clientX,_e.clientY))},ot.prototype.onDblClick=function(_e){if(this._isFocused||this.focus(),this.mode==="select"){var Re=this.markers.find(function(Ye){return Ye.ownsTarget(_e.target)});Re!==void 0&&Re!==this._currentMarker&&this.setCurrentMarker(Re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(_e.clientX,_e.clientY),_e.target):this.setCurrentMarker()}},ot.prototype.onPointerMove=function(_e){this.touchPoints!==1&&_e.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||_e.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(_e.clientX,_e.clientY)):this.zoomLevel>1&&this.panTo({x:_e.clientX,y:_e.clientY}))},ot.prototype.onPointerUp=function(_e){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(_e.clientX,_e.clientY)),this.isDragging=!1,this.addUndoStep()},ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ot.prototype.onKeyUp=function(_e){this._currentMarker===void 0||this.notesArea!==void 0||_e.key!=="Delete"&&_e.key!=="Backspace"||this.deleteSelectedMarker()},ot.prototype.clientToLocalCoordinates=function(_e,Re){var Ye=this.markerImage.getBoundingClientRect();return{x:(_e-Ye.left)/this.zoomLevel,y:(Re-Ye.top)/this.zoomLevel}},ot.prototype.onWindowResize=function(){this.positionUI()},ot.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var _e=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=_e+"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()},ot.prototype.addLicenseKey=function(_e){Ge.addKey(_e)},ot.prototype.addEventListener=function(_e,Re){this.eventListeners.addEventListener(_e,Re)},ot.prototype.removeEventListener=function(_e,Re){this.eventListeners.removeEventListener(_e,Re)},ot.prototype.renderState=function(_e){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(_e),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ot.prototype.focus=function(){var _e=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Re){return Re(new Vt(_e))}))},ot.prototype.blur=function(){var _e=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Re){return Re(new Vt(_e))}))},ot.instanceCounter=0,ot}()},67842:function(We){"use strict";var Ee,ae=59;We.exports=oe;function oe(Pe){var ke="&"+Pe+";",De;return Ee=Ee||document.createElement("i"),Ee.innerHTML=ke,De=Ee.textContent,De.charCodeAt(De.length-1)===ae&&Pe!=="semi"||De===ke?!1:De}},12256:function(We,Ee,ae){"use strict";var oe=ae(47854),Pe=ae(80501),ke=ae(22347),De=ae(65207),je=ae(21127),Te=ae(67842);We.exports=Cn;var Ge={}.hasOwnProperty,lt=String.fromCharCode,Ke=Function.prototype,He={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},yt=9,$e=10,Mt=12,Fe=32,te=38,ee=59,he=60,ue=61,fe=35,me=88,be=120,Ae=65533,Ie="named",Xe="hexadecimal",nt="decimal",Je={};Je[Xe]=16,Je[nt]=10;var st={};st[Ie]=je,st[nt]=ke,st[Xe]=De;var gt=1,rt=2,mt=3,xt=4,Tt=5,zt=6,Qt=7,Kt={};Kt[gt]="Named character references must be terminated by a semicolon",Kt[rt]="Numeric character references must be terminated by a semicolon",Kt[mt]="Named character references cannot be empty",Kt[xt]="Numeric character references cannot be empty",Kt[Tt]="Named character references must be known",Kt[zt]="Numeric character references cannot be disallowed",Kt[Qt]="Numeric character references cannot be outside the permissible Unicode range";function Cn(qt,fn){var kt={},xn,kn;fn||(fn={});for(kn in He)xn=fn[kn],kt[kn]=xn==null?He[kn]:xn;return(kt.position.indent||kt.position.start)&&(kt.indent=kt.position.indent||[],kt.position=kt.position.start),St(qt,kt)}function St(qt,fn){var kt=fn.additional,xn=fn.nonTerminated,kn=fn.text,Vn=fn.reference,Vt=fn.warning,Ot=fn.textContext,Nn=fn.referenceContext,tr=fn.warningContext,hr=fn.position,ot=fn.indent||[],_e=qt.length,Re=0,Ye=-1,at=hr.column||1,Be=hr.line||1,bt="",bn=[],sn,Bn,It,_t,jt,hn,En,pn,Rt,Tn,Yt,en,vn,zn,un,Et,Xn,ir,Jt;for(typeof kt=="string"&&(kt=kt.charCodeAt(0)),Et=Er(),pn=Vt?ni:Ke,Re--,_e++;++Re<_e;)if(jt===$e&&(at=ot[Ye]||1),jt=qt.charCodeAt(Re),jt===te){if(En=qt.charCodeAt(Re+1),En===yt||En===$e||En===Mt||En===Fe||En===te||En===he||En!==En||kt&&En===kt){bt+=lt(jt),at++;continue}for(vn=Re+1,en=vn,Jt=vn,En===fe?(Jt=++en,En=qt.charCodeAt(Jt),En===me||En===be?(zn=Xe,Jt=++en):zn=nt):zn=Ie,sn="",Yt="",_t="",un=st[zn],Jt--;++Jt<_e&&(En=qt.charCodeAt(Jt),!!un(En));)_t+=lt(En),zn===Ie&&Ge.call(oe,_t)&&(sn=_t,Yt=oe[_t]);It=qt.charCodeAt(Jt)===ee,It&&(Jt++,Bn=zn===Ie?Te(_t):!1,Bn&&(sn=_t,Yt=Bn)),ir=1+Jt-vn,!It&&!xn||(_t?zn===Ie?(It&&!Yt?pn(Tt,1):(sn!==_t&&(Jt=en+sn.length,ir=1+Jt-en,It=!1),It||(Rt=sn?gt:mt,fn.attribute?(En=qt.charCodeAt(Jt),En===ue?(pn(Rt,ir),Yt=null):je(En)?Yt=null:pn(Rt,ir)):pn(Rt,ir))),hn=Yt):(It||pn(rt,ir),hn=parseInt(_t,Je[zn]),pt(hn)?(pn(Qt,ir),hn=lt(Ae)):hn in Pe?(pn(zt,ir),hn=Pe[hn]):(Tn="",ct(hn)&&pn(zt,ir),hn>65535&&(hn-=65536,Tn+=lt(hn>>>10|55296),hn=56320|hn&1023),hn=Tn+lt(hn))):zn!==Ie&&pn(xt,ir)),hn?(Rr(),Et=Er(),Re=Jt-1,at+=Jt-vn+1,bn.push(hn),Xn=Er(),Xn.offset++,Vn&&Vn.call(Nn,hn,{start:Et,end:Xn},qt.slice(vn-1,Jt)),Et=Xn):(_t=qt.slice(vn-1,Jt),bt+=_t,at+=_t.length,Re=Jt-1)}else jt===10&&(Be++,Ye++,at=0),jt===jt?(bt+=lt(jt),at++):Rr();return bn.join("");function Er(){return{line:Be,column:at,offset:Re+(hr.offset||0)}}function ni(Mn,ei){var Kr=Er();Kr.column+=ei,Kr.offset+=ei,Vt.call(tr,Kt[Mn],Kr,Mn)}function Rr(){bt&&(bn.push(bt),kn&&kn.call(Ot,bt,{start:Et,end:Er()}),bt="")}}function pt(qt){return qt>=55296&&qt<=57343||qt>1114111}function ct(qt){return qt>=1&&qt<=8||qt===11||qt>=13&&qt<=31||qt>=127&&qt<=159||qt>=64976&&qt<=65007||(qt&65535)===65535||(qt&65535)===65534}},68398:function(We,Ee,ae){var oe=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Pe=function(ke){var De=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,je=0,Te={},Ge={manual:ke.Prism&&ke.Prism.manual,disableWorkerMessageHandler:ke.Prism&&ke.Prism.disableWorkerMessageHandler,util:{encode:function ue(fe){return fe instanceof lt?new lt(fe.type,ue(fe.content),fe.alias):Array.isArray(fe)?fe.map(ue):fe.replace(/&/g,"&").replace(/</g,"<").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:++je}),ue.__id},clone:function ue(fe,me){me=me||{};var be,Ae;switch(Ge.util.type(fe)){case"Object":if(Ae=Ge.util.objId(fe),me[Ae])return me[Ae];be={},me[Ae]=be;for(var Ie in fe)fe.hasOwnProperty(Ie)&&(be[Ie]=ue(fe[Ie],me));return be;case"Array":return Ae=Ge.util.objId(fe),me[Ae]?me[Ae]:(be=[],me[Ae]=be,fe.forEach(function(Xe,nt){be[nt]=ue(Xe,me)}),be);default:return fe}},getLanguage:function(ue){for(;ue;){var fe=De.exec(ue.className);if(fe)return fe[1].toLowerCase();ue=ue.parentElement}return"none"},setLanguage:function(ue,fe){ue.className=ue.className.replace(RegExp(De,"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(be){var ue=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(be.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 be="no-"+fe;ue;){var Ae=ue.classList;if(Ae.contains(fe))return!0;if(Ae.contains(be))return!1;ue=ue.parentElement}return!!me}},languages:{plain:Te,plaintext:Te,text:Te,txt:Te,extend:function(ue,fe){var me=Ge.util.clone(Ge.languages[ue]);for(var be in fe)me[be]=fe[be];return me},insertBefore:function(ue,fe,me,be){be=be||Ge.languages;var Ae=be[ue],Ie={};for(var Xe in Ae)if(Ae.hasOwnProperty(Xe)){if(Xe==fe)for(var nt in me)me.hasOwnProperty(nt)&&(Ie[nt]=me[nt]);me.hasOwnProperty(Xe)||(Ie[Xe]=Ae[Xe])}var Je=be[ue];return be[ue]=Ie,Ge.languages.DFS(Ge.languages,function(st,gt){gt===Je&&st!=ue&&(this[st]=Ie)}),Ie},DFS:function ue(fe,me,be,Ae){Ae=Ae||{};var Ie=Ge.util.objId;for(var Xe in fe)if(fe.hasOwnProperty(Xe)){me.call(fe,Xe,fe[Xe],be||Xe);var nt=fe[Xe],Je=Ge.util.type(nt);Je==="Object"&&!Ae[Ie(nt)]?(Ae[Ie(nt)]=!0,ue(nt,me,null,Ae)):Je==="Array"&&!Ae[Ie(nt)]&&(Ae[Ie(nt)]=!0,ue(nt,me,Xe,Ae))}}},plugins:{},highlightAll:function(ue,fe){Ge.highlightAllUnder(document,ue,fe)},highlightAllUnder:function(ue,fe,me){var be={callback:me,container:ue,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ge.hooks.run("before-highlightall",be),be.elements=Array.prototype.slice.apply(be.container.querySelectorAll(be.selector)),Ge.hooks.run("before-all-elements-highlight",be);for(var Ae=0,Ie;Ie=be.elements[Ae++];)Ge.highlightElement(Ie,fe===!0,be.callback)},highlightElement:function(ue,fe,me){var be=Ge.util.getLanguage(ue),Ae=Ge.languages[be];Ge.util.setLanguage(ue,be);var Ie=ue.parentElement;Ie&&Ie.nodeName.toLowerCase()==="pre"&&Ge.util.setLanguage(Ie,be);var Xe=ue.textContent,nt={element:ue,language:be,grammar:Ae,code:Xe};function Je(gt){nt.highlightedCode=gt,Ge.hooks.run("before-insert",nt),nt.element.innerHTML=nt.highlightedCode,Ge.hooks.run("after-highlight",nt),Ge.hooks.run("complete",nt),me&&me.call(nt.element)}if(Ge.hooks.run("before-sanity-check",nt),Ie=nt.element.parentElement,Ie&&Ie.nodeName.toLowerCase()==="pre"&&!Ie.hasAttribute("tabindex")&&Ie.setAttribute("tabindex","0"),!nt.code){Ge.hooks.run("complete",nt),me&&me.call(nt.element);return}if(Ge.hooks.run("before-highlight",nt),!nt.grammar){Je(Ge.util.encode(nt.code));return}if(fe&&ke.Worker){var st=new Worker(Ge.filename);st.onmessage=function(gt){Je(gt.data)},st.postMessage(JSON.stringify({language:nt.language,code:nt.code,immediateClose:!0}))}else Je(Ge.highlight(nt.code,nt.grammar,nt.language))},highlight:function(ue,fe,me){var be={code:ue,grammar:fe,language:me};if(Ge.hooks.run("before-tokenize",be),!be.grammar)throw new Error('The language "'+be.language+'" has no grammar.');return be.tokens=Ge.tokenize(be.code,be.grammar),Ge.hooks.run("after-tokenize",be),lt.stringify(Ge.util.encode(be.tokens),be.language)},tokenize:function(ue,fe){var me=fe.rest;if(me){for(var be in me)fe[be]=me[be];delete fe.rest}var Ae=new yt;return $e(Ae,Ae.head,ue),He(ue,Ae,fe,Ae.head,0),Fe(Ae)},hooks:{all:{},add:function(ue,fe){var me=Ge.hooks.all;me[ue]=me[ue]||[],me[ue].push(fe)},run:function(ue,fe){var me=Ge.hooks.all[ue];if(!(!me||!me.length))for(var be=0,Ae;Ae=me[be++];)Ae(fe)}},Token:lt};ke.Prism=Ge;function lt(ue,fe,me,be){this.type=ue,this.content=fe,this.alias=me,this.length=(be||"").length|0}lt.stringify=function ue(fe,me){if(typeof fe=="string")return fe;if(Array.isArray(fe)){var be="";return fe.forEach(function(Je){be+=ue(Je,me)}),be}var Ae={type:fe.type,content:ue(fe.content,me),tag:"span",classes:["token",fe.type],attributes:{},language:me},Ie=fe.alias;Ie&&(Array.isArray(Ie)?Array.prototype.push.apply(Ae.classes,Ie):Ae.classes.push(Ie)),Ge.hooks.run("wrap",Ae);var Xe="";for(var nt in Ae.attributes)Xe+=" "+nt+'="'+(Ae.attributes[nt]||"").replace(/"/g,""")+'"';return"<"+Ae.tag+' class="'+Ae.classes.join(" ")+'"'+Xe+">"+Ae.content+"</"+Ae.tag+">"};function Ke(ue,fe,me,be){ue.lastIndex=fe;var Ae=ue.exec(me);if(Ae&&be&&Ae[1]){var Ie=Ae[1].length;Ae.index+=Ie,Ae[0]=Ae[0].slice(Ie)}return Ae}function He(ue,fe,me,be,Ae,Ie){for(var Xe in me)if(!(!me.hasOwnProperty(Xe)||!me[Xe])){var nt=me[Xe];nt=Array.isArray(nt)?nt:[nt];for(var Je=0;Je<nt.length;++Je){if(Ie&&Ie.cause==Xe+","+Je)return;var st=nt[Je],gt=st.inside,rt=!!st.lookbehind,mt=!!st.greedy,xt=st.alias;if(mt&&!st.pattern.global){var Tt=st.pattern.toString().match(/[imsuy]*$/)[0];st.pattern=RegExp(st.pattern.source,Tt+"g")}for(var zt=st.pattern||st,Qt=be.next,Kt=Ae;Qt!==fe.tail&&!(Ie&&Kt>=Ie.reach);Kt+=Qt.value.length,Qt=Qt.next){var Cn=Qt.value;if(fe.length>ue.length)return;if(!(Cn instanceof lt)){var St=1,pt;if(mt){if(pt=Ke(zt,Kt,ue,rt),!pt||pt.index>=ue.length)break;var kt=pt.index,ct=pt.index+pt[0].length,qt=Kt;for(qt+=Qt.value.length;kt>=qt;)Qt=Qt.next,qt+=Qt.value.length;if(qt-=Qt.value.length,Kt=qt,Qt.value instanceof lt)continue;for(var fn=Qt;fn!==fe.tail&&(qt<ct||typeof fn.value=="string");fn=fn.next)St++,qt+=fn.value.length;St--,Cn=ue.slice(Kt,qt),pt.index-=Kt}else if(pt=Ke(zt,0,Cn,rt),!pt)continue;var kt=pt.index,xn=pt[0],kn=Cn.slice(0,kt),Vn=Cn.slice(kt+xn.length),Vt=Kt+Cn.length;Ie&&Vt>Ie.reach&&(Ie.reach=Vt);var Ot=Qt.prev;kn&&(Ot=$e(fe,Ot,kn),Kt+=kn.length),Mt(fe,Ot,St);var Nn=new lt(Xe,gt?Ge.tokenize(xn,gt):xn,xt,xn);if(Qt=$e(fe,Ot,Nn),Vn&&$e(fe,Qt,Vn),St>1){var tr={cause:Xe+","+Je,reach:Vt};He(ue,fe,me,Qt.prev,Kt,tr),Ie&&tr.reach>Ie.reach&&(Ie.reach=tr.reach)}}}}}}function yt(){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 $e(ue,fe,me){var be=fe.next,Ae={value:me,prev:fe,next:be};return fe.next=Ae,be.prev=Ae,ue.length++,Ae}function Mt(ue,fe,me){for(var be=fe.next,Ae=0;Ae<me&&be!==ue.tail;Ae++)be=be.next;fe.next=be,be.prev=fe,ue.length-=Ae}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&&(Ge.disableWorkerMessageHandler||ke.addEventListener("message",function(ue){var fe=JSON.parse(ue.data),me=fe.language,be=fe.code,Ae=fe.immediateClose;ke.postMessage(Ge.highlight(be,Ge.languages[me],me)),Ae&&ke.close()},!1)),Ge;var te=Ge.util.currentScript();te&&(Ge.filename=te.src,te.hasAttribute("data-manual")&&(Ge.manual=!0));function ee(){Ge.manual||Ge.highlightAll()}if(!Ge.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 Ge}(oe);We.exports&&(We.exports=Pe),typeof ae.g!="undefined"&&(ae.g.Prism=Pe)},88914:function(We,Ee,ae){"use strict";var oe=ae(47178),Pe=ae(19095),ke=ae(1969),De="data";We.exports=lt;var je=/^data[-\w.:]+$/i,Te=/-[a-z]/g,Ge=/[A-Z]/g;function lt(Mt,Fe){var te=oe(Fe),ee=Fe,he=ke;return te in Mt.normal?Mt.property[Mt.normal[te]]:(te.length>4&&te.slice(0,4)===De&&je.test(Fe)&&(Fe.charAt(4)==="-"?ee=Ke(Fe):Fe=He(Fe),he=Pe),new he(ee,Fe))}function Ke(Mt){var Fe=Mt.slice(5).replace(Te,$e);return De+Fe.charAt(0).toUpperCase()+Fe.slice(1)}function He(Mt){var Fe=Mt.slice(4);return Te.test(Fe)?Mt:(Fe=Fe.replace(Ge,yt),Fe.charAt(0)!=="-"&&(Fe="-"+Fe),De+Fe)}function yt(Mt){return"-"+Mt.toLowerCase()}function $e(Mt){return Mt.charAt(1).toUpperCase()}},18795:function(We,Ee,ae){"use strict";var oe=ae(83576),Pe=ae(8179),ke=ae(59780),De=ae(68244),je=ae(20019),Te=ae(38567);We.exports=oe([ke,Pe,De,je,Te])},20019:function(We,Ee,ae){"use strict";var oe=ae(70167),Pe=ae(79318),ke=oe.booleanish,De=oe.number,je=oe.spaceSeparated;We.exports=Pe({transform:Te,properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:De,ariaColIndex:De,ariaColSpan:De,ariaControls:je,ariaCurrent:null,ariaDescribedBy:je,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:je,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:je,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:je,ariaLevel:De,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:je,ariaPlaceholder:null,ariaPosInSet:De,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:je,ariaRowCount:De,ariaRowIndex:De,ariaRowSpan:De,ariaSelected:ke,ariaSetSize:De,ariaSort:null,ariaValueMax:De,ariaValueMin:De,ariaValueNow:De,ariaValueText:null,role:null}});function Te(Ge,lt){return lt==="role"?lt:"aria-"+lt.slice(4).toLowerCase()}},38567:function(We,Ee,ae){"use strict";var oe=ae(70167),Pe=ae(79318),ke=ae(85804),De=oe.boolean,je=oe.overloadedBoolean,Te=oe.booleanish,Ge=oe.number,lt=oe.spaceSeparated,Ke=oe.commaSeparated;We.exports=Pe({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:lt,accessKey:lt,action:null,allow:null,allowFullScreen:De,allowPaymentRequest:De,allowUserMedia:De,alt:null,as:null,async:De,autoCapitalize:null,autoComplete:lt,autoFocus:De,autoPlay:De,capture:De,charSet:null,checked:De,cite:null,className:lt,cols:Ge,colSpan:null,content:null,contentEditable:Te,controls:De,controlsList:lt,coords:Ge|Ke,crossOrigin:null,data:null,dateTime:null,decoding:null,default:De,defer:De,dir:null,dirName:null,disabled:De,download:je,draggable:Te,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:De,formTarget:null,headers:lt,height:Ge,hidden:De,high:Ge,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:Ke,inputMode:null,integrity:null,is:null,isMap:De,itemId:null,itemProp:lt,itemRef:lt,itemScope:De,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:De,low:Ge,manifest:null,max:null,maxLength:Ge,media:null,method:null,min:null,minLength:Ge,multiple:De,muted:De,name:null,nonce:null,noModule:De,noValidate:De,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:De,optimum:Ge,pattern:null,ping:lt,placeholder:null,playsInline:De,poster:null,preload:null,readOnly:De,referrerPolicy:null,rel:lt,required:De,reversed:De,rows:Ge,rowSpan:Ge,sandbox:lt,scope:null,scoped:De,seamless:De,selected:De,shape:null,size:Ge,sizes:null,slot:null,span:Ge,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:Ke,start:Ge,step:null,style:null,tabIndex:Ge,target:null,title:null,translate:null,type:null,typeMustMatch:De,useMap:null,value:Te,width:Ge,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:Ge,borderColor:null,bottomMargin:Ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:De,declare:De,event:null,face:null,frame:null,frameBorder:null,hSpace:Ge,leftMargin:Ge,link:null,longDesc:null,lowSrc:null,marginHeight:Ge,marginWidth:Ge,noResize:De,noHref:De,noShade:De,noWrap:De,object:null,profile:null,prompt:null,rev:null,rightMargin:Ge,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:Ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:De,disableRemotePlayback:De,prefix:null,property:null,results:Ge,security:null,unselectable:null}})},85804:function(We,Ee,ae){"use strict";var oe=ae(56432);We.exports=Pe;function Pe(ke,De){return oe(ke,De.toLowerCase())}},56432:function(We){"use strict";We.exports=Ee;function Ee(ae,oe){return oe in ae?ae[oe]:oe}},79318:function(We,Ee,ae){"use strict";var oe=ae(47178),Pe=ae(44347),ke=ae(19095);We.exports=De;function De(je){var Te=je.space,Ge=je.mustUseProperty||[],lt=je.attributes||{},Ke=je.properties,He=je.transform,yt={},$e={},Mt,Fe;for(Mt in Ke)Fe=new ke(Mt,He(lt,Mt),Ke[Mt],Te),Ge.indexOf(Mt)!==-1&&(Fe.mustUseProperty=!0),yt[Mt]=Fe,$e[oe(Mt)]=Mt,$e[oe(Fe.attribute)]=Mt;return new Pe(yt,$e,Te)}},19095:function(We,Ee,ae){"use strict";var oe=ae(1969),Pe=ae(70167);We.exports=je,je.prototype=new oe,je.prototype.defined=!0;var ke=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],De=ke.length;function je(Ge,lt,Ke,He){var yt=-1,$e;for(Te(this,"space",He),oe.call(this,Ge,lt);++yt<De;)$e=ke[yt],Te(this,$e,(Ke&Pe[$e])===Pe[$e])}function Te(Ge,lt,Ke){Ke&&(Ge[lt]=Ke)}},1969:function(We){"use strict";We.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.attribute=null,Ee.property=null,Ee.boolean=!1,Ee.booleanish=!1,Ee.overloadedBoolean=!1,Ee.number=!1,Ee.commaSeparated=!1,Ee.spaceSeparated=!1,Ee.commaOrSpaceSeparated=!1,Ee.mustUseProperty=!1,Ee.defined=!1;function ae(oe,Pe){this.property=oe,this.attribute=Pe}},83576:function(We,Ee,ae){"use strict";var oe=ae(97270),Pe=ae(44347);We.exports=ke;function ke(De){for(var je=De.length,Te=[],Ge=[],lt=-1,Ke,He;++lt<je;)Ke=De[lt],Te.push(Ke.property),Ge.push(Ke.normal),He=Ke.space;return new Pe(oe.apply(null,Te),oe.apply(null,Ge),He)}},44347:function(We){"use strict";We.exports=ae;var Ee=ae.prototype;Ee.space=null,Ee.normal={},Ee.property={};function ae(oe,Pe,ke){this.property=oe,this.normal=Pe,ke&&(this.space=ke)}},70167:function(We,Ee){"use strict";var ae=0;Ee.boolean=oe(),Ee.booleanish=oe(),Ee.overloadedBoolean=oe(),Ee.number=oe(),Ee.spaceSeparated=oe(),Ee.commaSeparated=oe(),Ee.commaOrSpaceSeparated=oe();function oe(){return Math.pow(2,++ae)}},8179:function(We,Ee,ae){"use strict";var oe=ae(79318);We.exports=oe({space:"xlink",transform:Pe,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Pe(ke,De){return"xlink:"+De.slice(5).toLowerCase()}},59780:function(We,Ee,ae){"use strict";var oe=ae(79318);We.exports=oe({space:"xml",transform:Pe,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pe(ke,De){return"xml:"+De.slice(3).toLowerCase()}},68244:function(We,Ee,ae){"use strict";var oe=ae(79318),Pe=ae(85804);We.exports=oe({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pe,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(We){"use strict";We.exports=Ee;function Ee(ae){return ae.toLowerCase()}},63727:function(We,Ee,ae){"use strict";ae.d(Ee,{s:function(){return It},default:function(){return Tn}});var oe=ae(14809),Pe=ae(20439),ke=ae(95190),De=ae(50298),je=ae(62646),Te=ae(37463),Ge=ae(6551),lt=ae(6089),Ke=ae(18929),He=ae(59301),yt=He.createContext({}),$e=yt,Mt=ae(93664),Fe=ae(4635),te="__rc_cascader_search_mark__",ee=function(en,vn,zn){var un=zn.label,Et=un===void 0?"":un;return vn.some(function(Xn){return String(Xn[Et]).toLowerCase().includes(en.toLowerCase())})},he=function(en,vn,zn,un){return vn.map(function(Et){return Et[un.label]}).join(" / ")},ue=function(en,vn,zn,un,Et,Xn){var ir=Et.filter,Jt=ir===void 0?ee:ir,Er=Et.render,ni=Er===void 0?he:Er,Rr=Et.limit,Mn=Rr===void 0?50:Rr,ei=Et.sort;return He.useMemo(function(){var Kr=[];if(!en)return[];function lr(jr,oi){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;jr.forEach(function(dr){if(!(!ei&&Mn!==!1&&Mn>0&&Kr.length>=Mn)){var Pr=[].concat((0,ke.Z)(oi),[dr]),or=dr[zn.children],Lr=Oe||dr.disabled;if((!or||or.length===0||Xn)&&Jt(en,Pr,{label:zn.label})){var zr;Kr.push((0,Pe.Z)((0,Pe.Z)({},dr),{},(zr={disabled:Lr},(0,Fe.Z)(zr,zn.label,ni(en,Pr,un,zn)),(0,Fe.Z)(zr,te,Pr),(0,Fe.Z)(zr,zn.children,void 0),zr)))}or&&lr(dr[zn.children],Pr,Lr)}})}return lr(vn,[]),ei&&Kr.sort(function(jr,oi){return ei(jr[te],oi[te],en,zn)}),Mn!==!1&&Mn>0?Kr.slice(0,Mn):Kr},[en,vn,zn,un,ni,Xn,Jt,ei,Mn])},fe=ue,me="__RC_CASCADER_SPLIT__",be="SHOW_PARENT",Ae="SHOW_CHILD";function Ie(Yt){return Yt.join(me)}function Xe(Yt){return Yt.map(Ie)}function nt(Yt){return Yt.split(me)}function Je(Yt){var en=Yt||{},vn=en.label,zn=en.value,un=en.children,Et=zn||"value";return{label:vn||"label",value:Et,key:Et,children:un||"children"}}function st(Yt,en){var vn,zn;return(vn=Yt.isLeaf)!==null&&vn!==void 0?vn:!((zn=Yt[en.children])!==null&&zn!==void 0&&zn.length)}function gt(Yt){var en=Yt.parentElement;if(en){var vn=Yt.offsetTop-en.offsetTop;vn-en.scrollTop<0?en.scrollTo({top:vn}):vn+Yt.offsetHeight-en.scrollTop>en.offsetHeight&&en.scrollTo({top:vn+Yt.offsetHeight-en.offsetHeight})}}function rt(Yt,en){return Yt.map(function(vn){var zn;return(zn=vn[te])===null||zn===void 0?void 0:zn.map(function(un){return un[en.value]})})}function mt(Yt){return Array.isArray(Yt)&&Array.isArray(Yt[0])}function xt(Yt){return Yt?mt(Yt)?Yt:(Yt.length===0?[]:[Yt]).map(function(en){return Array.isArray(en)?en:[en]}):[]}function Tt(Yt,en,vn){var zn=new Set(Yt),un=en();return Yt.filter(function(Et){var Xn=un[Et],ir=Xn?Xn.parent:null,Jt=Xn?Xn.children:null;return Xn&&Xn.node.disabled?!0:vn===Ae?!(Jt&&Jt.some(function(Er){return Er.key&&zn.has(Er.key)})):!(ir&&!ir.node.disabled&&zn.has(ir.key))})}function zt(Yt,en,vn){for(var zn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,un=en,Et=[],Xn=function(){var Er,ni,Rr,Mn=Yt[ir],ei=(Er=un)===null||Er===void 0?void 0:Er.findIndex(function(lr){var jr=lr[vn.value];return zn?String(jr)===String(Mn):jr===Mn}),Kr=ei!==-1?(ni=un)===null||ni===void 0?void 0:ni[ei]:null;Et.push({value:(Rr=Kr==null?void 0:Kr[vn.value])!==null&&Rr!==void 0?Rr:Mn,index:ei,option:Kr}),un=Kr==null?void 0:Kr[vn.children]},ir=0;ir<Yt.length;ir+=1)Xn();return Et}var Qt=function(Yt,en,vn,zn,un){return He.useMemo(function(){var Et=un||function(Xn){var ir=zn?Xn.slice(-1):Xn,Jt=" / ";return ir.every(function(Er){return["string","number"].includes((0,Mt.Z)(Er))})?ir.join(Jt):ir.reduce(function(Er,ni,Rr){var Mn=He.isValidElement(ni)?He.cloneElement(ni,{key:Rr}):ni;return Rr===0?[Mn]:[].concat((0,ke.Z)(Er),[Jt,Mn])},[])};return Yt.map(function(Xn){var ir,Jt=zt(Xn,en,vn),Er=Et(Jt.map(function(Rr){var Mn,ei=Rr.option,Kr=Rr.value;return(Mn=ei==null?void 0:ei[vn.label])!==null&&Mn!==void 0?Mn:Kr}),Jt.map(function(Rr){var Mn=Rr.option;return Mn})),ni=Ie(Xn);return{label:Er,value:ni,key:ni,valueCells:Xn,disabled:(ir=Jt[Jt.length-1])===null||ir===void 0||(ir=ir.option)===null||ir===void 0?void 0:ir.disabled}})},[Yt,en,vn,un,zn])};function Kt(Yt,en){return He.useCallback(function(vn){var zn=[],un=[];return vn.forEach(function(Et){var Xn=zt(Et,Yt,en);Xn.every(function(ir){return ir.option})?un.push(Et):zn.push(Et)}),[un,zn]},[Yt,en])}var Cn=ae(34061),St=function(Yt,en){var vn=He.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),zn=He.useCallback(function(){return vn.current.options!==Yt&&(vn.current.options=Yt,vn.current.info=(0,Cn.I8)(Yt,{fieldNames:en,initWrapper:function(Et){return(0,Pe.Z)((0,Pe.Z)({},Et),{},{pathKeyEntities:{}})},processEntity:function(Et,Xn){var ir=Et.nodes.map(function(Jt){return Jt[en.value]}).join(me);Xn.pathKeyEntities[ir]=Et,Et.key=ir}})),vn.current.info.pathKeyEntities},[en,Yt]);return zn};function pt(Yt,en){var vn=He.useMemo(function(){return en||[]},[en]),zn=St(vn,Yt),un=He.useCallback(function(Et){var Xn=zn();return Et.map(function(ir){var Jt=Xn[ir].nodes;return Jt.map(function(Er){return Er[Yt.value]})})},[zn,Yt]);return[vn,zn,un]}var ct=ae(48736);function qt(Yt){return He.useMemo(function(){if(!Yt)return[!1,{}];var en={matchInputWidth:!0,limit:50};return Yt&&(0,Mt.Z)(Yt)==="object"&&(en=(0,Pe.Z)((0,Pe.Z)({},en),Yt)),en.limit<=0&&(en.limit=!1),[!0,en]},[Yt])}var fn=ae(34643);function kt(Yt,en,vn,zn,un,Et,Xn,ir){return function(Jt){if(!Yt)en(Jt);else{var Er=Ie(Jt),ni=Xe(vn),Rr=Xe(zn),Mn=ni.includes(Er),ei=un.some(function(Lr){return Ie(Lr)===Er}),Kr=vn,lr=un;if(ei&&!Mn)lr=un.filter(function(Lr){return Ie(Lr)!==Er});else{var jr=Mn?ni.filter(function(Lr){return Lr!==Er}):[].concat((0,ke.Z)(ni),[Er]),oi=Et(),Oe;if(Mn){var dr=(0,fn.S)(jr,{checked:!1,halfCheckedKeys:Rr},oi);Oe=dr.checkedKeys}else{var Pr=(0,fn.S)(jr,!0,oi);Oe=Pr.checkedKeys}var or=Tt(Oe,Et,ir);Kr=Xn(or)}en([].concat((0,ke.Z)(lr),(0,ke.Z)(Kr)))}}}function xn(Yt,en,vn,zn,un){return He.useMemo(function(){var Et=un(en),Xn=(0,De.Z)(Et,2),ir=Xn[0],Jt=Xn[1];if(!Yt||!en.length)return[ir,[],Jt];var Er=Xe(ir),ni=vn(),Rr=(0,fn.S)(Er,!0,ni),Mn=Rr.checkedKeys,ei=Rr.halfCheckedKeys;return[zn(Mn),zn(ei),Jt]},[Yt,en,vn,zn,un])}var kn=ae(92310),Vn=ae.n(kn),Vt=He.memo(function(Yt){var en=Yt.children;return en},function(Yt,en){return!en.open}),Ot=Vt;function Nn(Yt){var en,vn=Yt.prefixCls,zn=Yt.checked,un=Yt.halfChecked,Et=Yt.disabled,Xn=Yt.onClick,ir=Yt.disableCheckbox,Jt=He.useContext($e),Er=Jt.checkable,ni=typeof Er!="boolean"?Er:null;return He.createElement("span",{className:Vn()("".concat(vn),(en={},(0,Fe.Z)(en,"".concat(vn,"-checked"),zn),(0,Fe.Z)(en,"".concat(vn,"-indeterminate"),!zn&&un),(0,Fe.Z)(en,"".concat(vn,"-disabled"),Et||ir),en)),onClick:Xn},ni)}var tr="__cascader_fix_label__";function hr(Yt){var en=Yt.prefixCls,vn=Yt.multiple,zn=Yt.options,un=Yt.activeValue,Et=Yt.prevValuePath,Xn=Yt.onToggleOpen,ir=Yt.onSelect,Jt=Yt.onActive,Er=Yt.checkedSet,ni=Yt.halfCheckedSet,Rr=Yt.loadingKeys,Mn=Yt.isSelectable,ei=Yt.disabled,Kr="".concat(en,"-menu"),lr="".concat(en,"-menu-item"),jr=He.useContext($e),oi=jr.fieldNames,Oe=jr.changeOnSelect,dr=jr.expandTrigger,Pr=jr.expandIcon,or=jr.loadingIcon,Lr=jr.dropdownMenuColumnStyle,zr=jr.optionRender,wr=dr==="hover",Ti=function(Sn){return ei||Sn},On=He.useMemo(function(){return zn.map(function(yn){var Sn,Jn=yn.disabled,ui=yn.disableCheckbox,Yr=yn[te],ci=(Sn=yn[tr])!==null&&Sn!==void 0?Sn:yn[oi.label],ur=yn[oi.value],Xr=st(yn,oi),wi=Yr?Yr.map(function(kr){return kr[oi.value]}):[].concat((0,ke.Z)(Et),[ur]),ki=Ie(wi),Fr=Rr.includes(ki),Lt=Er.has(ki),cn=ni.has(ki);return{disabled:Jn,label:ci,value:ur,isLeaf:Xr,isLoading:Fr,checked:Lt,halfChecked:cn,option:yn,disableCheckbox:ui,fullPath:wi,fullPathKey:ki}})},[zn,Er,oi,ni,Rr,Et]);return He.createElement("ul",{className:Kr,role:"menu"},On.map(function(yn){var Sn,Jn=yn.disabled,ui=yn.label,Yr=yn.value,ci=yn.isLeaf,ur=yn.isLoading,Xr=yn.checked,wi=yn.halfChecked,ki=yn.option,Fr=yn.fullPath,Lt=yn.fullPathKey,cn=yn.disableCheckbox,kr=function(){if(!Ti(Jn)){var fr=(0,ke.Z)(Fr);wr&&ci&&fr.pop(),Jt(fr)}},Ir=function(){Mn(ki)&&!Ti(Jn)&&ir(Fr,ci)},Xt;return typeof ki.title=="string"?Xt=ki.title:typeof ui=="string"&&(Xt=ui),He.createElement("li",{key:Lt,className:Vn()(lr,(Sn={},(0,Fe.Z)(Sn,"".concat(lr,"-expand"),!ci),(0,Fe.Z)(Sn,"".concat(lr,"-active"),un===Yr||un===Lt),(0,Fe.Z)(Sn,"".concat(lr,"-disabled"),Ti(Jn)),(0,Fe.Z)(Sn,"".concat(lr,"-loading"),ur),Sn)),style:Lr,role:"menuitemcheckbox",title:Xt,"aria-checked":Xr,"data-path-key":Lt,onClick:function(){kr(),!cn&&(!vn||ci)&&Ir()},onDoubleClick:function(){Oe&&Xn(!1)},onMouseEnter:function(){wr&&kr()},onMouseDown:function(fr){fr.preventDefault()}},vn&&He.createElement(Nn,{prefixCls:"".concat(en,"-checkbox"),checked:Xr,halfChecked:wi,disabled:Ti(Jn)||cn,disableCheckbox:cn,onClick:function(fr){cn||(fr.stopPropagation(),Ir())}}),He.createElement("div",{className:"".concat(lr,"-content")},zr?zr(ki):ui),!ur&&Pr&&!ci&&He.createElement("div",{className:"".concat(lr,"-expand-icon")},Pr),ur&&or&&He.createElement("div",{className:"".concat(lr,"-loading-icon")},or))}))}var ot=function(en,vn){var zn=He.useContext($e),un=zn.values,Et=un[0],Xn=He.useState([]),ir=(0,De.Z)(Xn,2),Jt=ir[0],Er=ir[1];return He.useEffect(function(){en||Er(Et||[])},[vn,Et]),[Jt,Er]},_e=ot,Re=ae(10228),Ye=function(Yt,en,vn,zn,un,Et,Xn){var ir=Xn.direction,Jt=Xn.searchValue,Er=Xn.toggleOpen,ni=Xn.open,Rr=ir==="rtl",Mn=He.useMemo(function(){for(var Lr=-1,zr=en,wr=[],Ti=[],On=zn.length,yn=rt(en,vn),Sn=function(ur){var Xr=zr.findIndex(function(wi,ki){return(yn[ki]?Ie(yn[ki]):wi[vn.value])===zn[ur]});if(Xr===-1)return 1;Lr=Xr,wr.push(Lr),Ti.push(zn[ur]),zr=zr[Lr][vn.children]},Jn=0;Jn<On&&zr&&!Sn(Jn);Jn+=1);for(var ui=en,Yr=0;Yr<wr.length-1;Yr+=1)ui=ui[wr[Yr]][vn.children];return[Ti,Lr,ui,yn]},[zn,vn,en]),ei=(0,De.Z)(Mn,4),Kr=ei[0],lr=ei[1],jr=ei[2],oi=ei[3],Oe=function(zr){un(zr)},dr=function(zr){var wr=jr.length,Ti=lr;Ti===-1&&zr<0&&(Ti=wr);for(var On=0;On<wr;On+=1){Ti=(Ti+zr+wr)%wr;var yn=jr[Ti];if(yn&&!yn.disabled){var Sn=Kr.slice(0,-1).concat(oi[Ti]?Ie(oi[Ti]):yn[vn.value]);Oe(Sn);return}}},Pr=function(){if(Kr.length>1){var zr=Kr.slice(0,-1);Oe(zr)}else Er(!1)},or=function(){var zr,wr=((zr=jr[lr])===null||zr===void 0?void 0:zr[vn.children])||[],Ti=wr.find(function(yn){return!yn.disabled});if(Ti){var On=[].concat((0,ke.Z)(Kr),[Ti[vn.value]]);Oe(On)}};He.useImperativeHandle(Yt,function(){return{onKeyDown:function(zr){var wr=zr.which;switch(wr){case Re.Z.UP:case Re.Z.DOWN:{var Ti=0;wr===Re.Z.UP?Ti=-1:wr===Re.Z.DOWN&&(Ti=1),Ti!==0&&dr(Ti);break}case Re.Z.LEFT:{if(Jt)break;Rr?or():Pr();break}case Re.Z.RIGHT:{if(Jt)break;Rr?Pr():or();break}case Re.Z.BACKSPACE:{Jt||Pr();break}case Re.Z.ENTER:{if(Kr.length){var On=jr[lr],yn=(On==null?void 0:On[te])||[];yn.length?Et(yn.map(function(Sn){return Sn[vn.value]}),yn[yn.length-1]):Et(Kr,jr[lr])}break}case Re.Z.ESC:Er(!1),ni&&zr.stopPropagation()}},onKeyUp:function(){}}})},at=He.forwardRef(function(Yt,en){var vn,zn,un,Et=Yt.prefixCls,Xn=Yt.multiple,ir=Yt.searchValue,Jt=Yt.toggleOpen,Er=Yt.notFoundContent,ni=Yt.direction,Rr=Yt.open,Mn=Yt.disabled,ei=He.useRef(null),Kr=ni==="rtl",lr=He.useContext($e),jr=lr.options,oi=lr.values,Oe=lr.halfValues,dr=lr.fieldNames,Pr=lr.changeOnSelect,or=lr.onSelect,Lr=lr.searchOptions,zr=lr.dropdownPrefixCls,wr=lr.loadData,Ti=lr.expandTrigger,On=zr||Et,yn=He.useState([]),Sn=(0,De.Z)(yn,2),Jn=Sn[0],ui=Sn[1],Yr=function(mi){if(!(!wr||ir)){var Qr=zt(mi,jr,dr),rr=Qr.map(function(Ci){var Vi=Ci.option;return Vi}),Gr=rr[rr.length-1];if(Gr&&!st(Gr,dr)){var on=Ie(mi);ui(function(Ci){return[].concat((0,ke.Z)(Ci),[on])}),wr(rr)}}};He.useEffect(function(){Jn.length&&Jn.forEach(function(Wn){var mi=nt(Wn),Qr=zt(mi,jr,dr,!0).map(function(Gr){var on=Gr.option;return on}),rr=Qr[Qr.length-1];(!rr||rr[dr.children]||st(rr,dr))&&ui(function(Gr){return Gr.filter(function(on){return on!==Wn})})})},[jr,Jn,dr]);var ci=He.useMemo(function(){return new Set(Xe(oi))},[oi]),ur=He.useMemo(function(){return new Set(Xe(Oe))},[Oe]),Xr=_e(Xn,Rr),wi=(0,De.Z)(Xr,2),ki=wi[0],Fr=wi[1],Lt=function(mi){Fr(mi),Yr(mi)},cn=function(mi){if(Mn)return!1;var Qr=mi.disabled,rr=st(mi,dr);return!Qr&&(rr||Pr||Xn)},kr=function(mi,Qr){var rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;or(mi),!Xn&&(Qr||Pr&&(Ti==="hover"||rr))&&Jt(!1)},Ir=He.useMemo(function(){return ir?Lr:jr},[ir,Lr,jr]),Xt=He.useMemo(function(){for(var Wn=[{options:Ir}],mi=Ir,Qr=rt(mi,dr),rr=function(){var Ci=ki[Gr],Vi=mi.find(function(li,bi){return(Qr[bi]?Ie(Qr[bi]):li[dr.value])===Ci}),mn=Vi==null?void 0:Vi[dr.children];if(!(mn!=null&&mn.length))return 1;mi=mn,Wn.push({options:mn})},Gr=0;Gr<ki.length&&!rr();Gr+=1);return Wn},[Ir,ki,dr]),Fn=function(mi,Qr){cn(Qr)&&kr(mi,st(Qr,dr),!0)};Ye(en,Ir,dr,ki,Lt,Fn,{direction:ni,searchValue:ir,toggleOpen:Jt,open:Rr}),He.useEffect(function(){if(!ir)for(var Wn=0;Wn<ki.length;Wn+=1){var mi,Qr=ki.slice(0,Wn+1),rr=Ie(Qr),Gr=(mi=ei.current)===null||mi===void 0?void 0:mi.querySelector('li[data-path-key="'.concat(rr.replace(/\\{0,2}"/g,'\\"'),'"]'));Gr&>(Gr)}},[ki,ir]);var fr=!((vn=Xt[0])!==null&&vn!==void 0&&(vn=vn.options)!==null&&vn!==void 0&&vn.length),dn=[(zn={},(0,Fe.Z)(zn,dr.value,"__EMPTY__"),(0,Fe.Z)(zn,tr,Er),(0,Fe.Z)(zn,"disabled",!0),zn)],Ue=(0,Pe.Z)((0,Pe.Z)({},Yt),{},{multiple:!fr&&Xn,onSelect:kr,onActive:Lt,onToggleOpen:Jt,checkedSet:ci,halfCheckedSet:ur,loadingKeys:Jn,isSelectable:cn}),Mr=fr?[{options:dn}]:Xt,Ur=Mr.map(function(Wn,mi){var Qr=ki.slice(0,mi),rr=ki[mi];return He.createElement(hr,(0,oe.Z)({key:mi},Ue,{prefixCls:On,options:Wn.options,prevValuePath:Qr,activeValue:rr}))});return He.createElement(Ot,{open:Rr},He.createElement("div",{className:Vn()("".concat(On,"-menus"),(un={},(0,Fe.Z)(un,"".concat(On,"-menu-empty"),fr),(0,Fe.Z)(un,"".concat(On,"-rtl"),Kr),un)),ref:ei},Ur))}),Be=at,bt=He.forwardRef(function(Yt,en){var vn=(0,Te.lk)();return He.createElement(Be,(0,oe.Z)({},Yt,vn,{ref:en}))}),bn=bt,sn=ae(70425);function Bn(){}function It(Yt){var en,vn=Yt,zn=vn.prefixCls,un=zn===void 0?"rc-cascader":zn,Et=vn.style,Xn=vn.className,ir=vn.options,Jt=vn.checkable,Er=vn.defaultValue,ni=vn.value,Rr=vn.fieldNames,Mn=vn.changeOnSelect,ei=vn.onChange,Kr=vn.showCheckedStrategy,lr=vn.loadData,jr=vn.expandTrigger,oi=vn.expandIcon,Oe=oi===void 0?">":oi,dr=vn.loadingIcon,Pr=vn.direction,or=vn.notFoundContent,Lr=or===void 0?"Not Found":or,zr=vn.disabled,wr=!!Jt,Ti=(0,sn.C8)(Er,{value:ni,postState:xt}),On=(0,De.Z)(Ti,2),yn=On[0],Sn=On[1],Jn=He.useMemo(function(){return Je(Rr)},[JSON.stringify(Rr)]),ui=pt(Jn,ir),Yr=(0,De.Z)(ui,3),ci=Yr[0],ur=Yr[1],Xr=Yr[2],wi=Kt(ci,Jn),ki=xn(wr,yn,ur,Xr,wi),Fr=(0,De.Z)(ki,3),Lt=Fr[0],cn=Fr[1],kr=Fr[2],Ir=(0,sn.zX)(function(Mr){if(Sn(Mr),ei){var Ur=xt(Mr),Wn=Ur.map(function(rr){return zt(rr,ci,Jn).map(function(Gr){return Gr.option})}),mi=wr?Ur:Ur[0],Qr=wr?Wn:Wn[0];ei(mi,Qr)}}),Xt=kt(wr,Ir,Lt,cn,kr,ur,Xr,Kr),Fn=(0,sn.zX)(function(Mr){Xt(Mr)}),fr=He.useMemo(function(){return{options:ci,fieldNames:Jn,values:Lt,halfValues:cn,changeOnSelect:Mn,onSelect:Fn,checkable:Jt,searchOptions:[],dropdownPrefixCls:void 0,loadData:lr,expandTrigger:jr,expandIcon:Oe,loadingIcon:dr,dropdownMenuColumnStyle:void 0}},[ci,Jn,Lt,cn,Mn,Fn,Jt,lr,jr,Oe,dr]),dn="".concat(un,"-panel"),Ue=!ci.length;return He.createElement($e.Provider,{value:fr},He.createElement("div",{className:Vn()(dn,(en={},(0,Fe.Z)(en,"".concat(dn,"-rtl"),Pr==="rtl"),(0,Fe.Z)(en,"".concat(dn,"-empty"),Ue),en),Xn),style:Et},Ue?Lr:He.createElement(Be,{prefixCls:un,searchValue:"",multiple:wr,toggleOpen:Bn,open:!0,direction:Pr,disabled:zr})))}function _t(Yt){var en=Yt.onPopupVisibleChange,vn=Yt.popupVisible,zn=Yt.popupClassName,un=Yt.popupPlacement;warning(!en,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(vn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(zn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(un===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function jt(Yt,en){if(Yt){var vn=function zn(un){for(var Et=0;Et<un.length;Et++){var Xn=un[Et];if(Xn[en==null?void 0:en.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Xn[en==null?void 0:en.children])&&zn(Xn[en==null?void 0:en.children]))return!0}};vn(Yt)}}var hn=null,En=["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"],pn=He.forwardRef(function(Yt,en){var vn=Yt.id,zn=Yt.prefixCls,un=zn===void 0?"rc-cascader":zn,Et=Yt.fieldNames,Xn=Yt.defaultValue,ir=Yt.value,Jt=Yt.changeOnSelect,Er=Yt.onChange,ni=Yt.displayRender,Rr=Yt.checkable,Mn=Yt.autoClearSearchValue,ei=Mn===void 0?!0:Mn,Kr=Yt.searchValue,lr=Yt.onSearch,jr=Yt.showSearch,oi=Yt.expandTrigger,Oe=Yt.options,dr=Yt.dropdownPrefixCls,Pr=Yt.loadData,or=Yt.popupVisible,Lr=Yt.open,zr=Yt.popupClassName,wr=Yt.dropdownClassName,Ti=Yt.dropdownMenuColumnStyle,On=Yt.dropdownStyle,yn=Yt.popupPlacement,Sn=Yt.placement,Jn=Yt.onDropdownVisibleChange,ui=Yt.onPopupVisibleChange,Yr=Yt.expandIcon,ci=Yr===void 0?">":Yr,ur=Yt.loadingIcon,Xr=Yt.children,wi=Yt.dropdownMatchSelectWidth,ki=wi===void 0?!1:wi,Fr=Yt.showCheckedStrategy,Lt=Fr===void 0?be:Fr,cn=Yt.optionRender,kr=(0,je.Z)(Yt,En),Ir=(0,Ge.ZP)(vn),Xt=!!Rr,Fn=(0,Ke.Z)(Xn,{value:ir,postState:xt}),fr=(0,De.Z)(Fn,2),dn=fr[0],Ue=fr[1],Mr=He.useMemo(function(){return Je(Et)},[JSON.stringify(Et)]),Ur=pt(Mr,Oe),Wn=(0,De.Z)(Ur,3),mi=Wn[0],Qr=Wn[1],rr=Wn[2],Gr=(0,Ke.Z)("",{value:Kr,postState:function(pi){return pi||""}}),on=(0,De.Z)(Gr,2),Ci=on[0],Vi=on[1],mn=function(pi,hi){Vi(pi),hi.source!=="blur"&&lr&&lr(pi)},li=qt(jr),bi=(0,De.Z)(li,2),qr=bi[0],Pi=bi[1],Ii=fe(Ci,mi,Mr,dr||un,Pi,Jt||Xt),Hi=Kt(mi,Mr),ji=xn(Xt,dn,Qr,rr,Hi),Bi=(0,De.Z)(ji,3),io=Bi[0],Qn=Bi[1],zi=Bi[2],ar=He.useMemo(function(){var Wr=Xe(io),pi=Tt(Wr,Qr,Lt);return[].concat((0,ke.Z)(zi),(0,ke.Z)(rr(pi)))},[io,Qr,rr,zi,Lt]),vi=Qt(ar,mi,Mr,Xt,ni),Zi=(0,lt.Z)(function(Wr){if(Ue(Wr),Er){var pi=xt(Wr),hi=pi.map(function(ht){return zt(ht,mi,Mr).map(function(wn){return wn.option})}),ai=Xt?pi:pi[0],mr=Xt?hi:hi[0];Er(ai,mr)}}),Fi=kt(Xt,Zi,io,Qn,zi,Qr,rr,Lt),fo=(0,lt.Z)(function(Wr){(!Xt||ei)&&Vi(""),Fi(Wr)}),co=function(pi,hi){if(hi.type==="clear"){Zi([]);return}var ai=hi.values[0],mr=ai.valueCells;fo(mr)},Wi=Lr!==void 0?Lr:or,zo=wr||zr,_n=Sn||yn,vr=function(pi){Jn==null||Jn(pi),ui==null||ui(pi)},An=He.useMemo(function(){return{options:mi,fieldNames:Mr,values:io,halfValues:Qn,changeOnSelect:Jt,onSelect:fo,checkable:Rr,searchOptions:Ii,dropdownPrefixCls:dr,loadData:Pr,expandTrigger:oi,expandIcon:ci,loadingIcon:ur,dropdownMenuColumnStyle:Ti,optionRender:cn}},[mi,Mr,io,Qn,Jt,fo,Rr,Ii,dr,Pr,oi,ci,ur,Ti,cn]),it=!(Ci?Ii:mi).length,Dr=Ci&&Pi.matchInputWidth||it?{}:{minWidth:"auto"};return He.createElement($e.Provider,{value:An},He.createElement(Te.Ac,(0,oe.Z)({},kr,{ref:en,id:Ir,prefixCls:un,autoClearSearchValue:ei,dropdownMatchSelectWidth:ki,dropdownStyle:(0,Pe.Z)((0,Pe.Z)({},Dr),On),displayValues:vi,onDisplayValuesChange:co,mode:Xt?"multiple":void 0,searchValue:Ci,onSearch:mn,showSearch:qr,OptionList:bn,emptyOptions:it,open:Wi,dropdownClassName:zo,placement:_n,onDropdownVisibleChange:vr,getRawInputElement:function(){return Xr}})))});pn.SHOW_PARENT=be,pn.SHOW_CHILD=Ae,pn.Panel=It;var Rt=pn,Tn=Rt},98535:function(We,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{Panel:function(){return xt},default:function(){return mt}});var oe=ae(14809),Pe=ae(95190),ke=ae(50298),De=ae(93664),je=ae(92310),Te=ae.n(je),Ge=ae(18929),lt=ae(48736),Ke=ae(59301),He=ae(62646),yt=ae(11592),$e=ae(20439),Mt=ae(4635),Fe=ae(77900),te=ae(10228),ee=Ke.forwardRef(function(Tt,zt){var Qt=Tt.prefixCls,Kt=Tt.forceRender,Cn=Tt.className,St=Tt.style,pt=Tt.children,ct=Tt.isActive,qt=Tt.role,fn=Tt.classNames,kt=Tt.styles,xn=Ke.useState(ct||Kt),kn=(0,ke.Z)(xn,2),Vn=kn[0],Vt=kn[1];return Ke.useEffect(function(){(Kt||ct)&&Vt(!0)},[Kt,ct]),Vn?Ke.createElement("div",{ref:zt,className:Te()("".concat(Qt,"-content"),(0,Mt.Z)((0,Mt.Z)({},"".concat(Qt,"-content-active"),ct),"".concat(Qt,"-content-inactive"),!ct),Cn),style:St,role:qt},Ke.createElement("div",{className:Te()("".concat(Qt,"-content-box"),fn==null?void 0:fn.body),style:kt==null?void 0:kt.body},pt)):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(Tt,zt){var Qt=Tt.showArrow,Kt=Qt===void 0?!0:Qt,Cn=Tt.headerClass,St=Tt.isActive,pt=Tt.onItemClick,ct=Tt.forceRender,qt=Tt.className,fn=Tt.classNames,kt=fn===void 0?{}:fn,xn=Tt.styles,kn=xn===void 0?{}:xn,Vn=Tt.prefixCls,Vt=Tt.collapsible,Ot=Tt.accordion,Nn=Tt.panelKey,tr=Tt.extra,hr=Tt.header,ot=Tt.expandIcon,_e=Tt.openMotion,Re=Tt.destroyInactivePanel,Ye=Tt.children,at=(0,He.Z)(Tt,ue),Be=Vt==="disabled",bt=tr!=null&&typeof tr!="boolean",bn=(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({onClick:function(){pt==null||pt(Nn)},onKeyDown:function(En){(En.key==="Enter"||En.keyCode===te.Z.ENTER||En.which===te.Z.ENTER)&&(pt==null||pt(Nn))},role:Ot?"tab":"button"},"aria-expanded",St),"aria-disabled",Be),"tabIndex",Be?-1:0),sn=typeof ot=="function"?ot(Tt):Ke.createElement("i",{className:"arrow"}),Bn=sn&&Ke.createElement("div",(0,oe.Z)({className:"".concat(Vn,"-expand-icon")},["header","icon"].includes(Vt)?bn:{}),sn),It=Te()("".concat(Vn,"-item"),(0,Mt.Z)((0,Mt.Z)({},"".concat(Vn,"-item-active"),St),"".concat(Vn,"-item-disabled"),Be),qt),_t=Te()(Cn,"".concat(Vn,"-header"),(0,Mt.Z)({},"".concat(Vn,"-collapsible-").concat(Vt),!!Vt),kt.header),jt=(0,$e.Z)({className:_t,style:kn.header},["header","icon"].includes(Vt)?{}:bn);return Ke.createElement("div",(0,oe.Z)({},at,{ref:zt,className:It}),Ke.createElement("div",jt,Kt&&Bn,Ke.createElement("span",(0,oe.Z)({className:"".concat(Vn,"-header-text")},Vt==="header"?bn:{}),hr),bt&&Ke.createElement("div",{className:"".concat(Vn,"-extra")},tr)),Ke.createElement(Fe.default,(0,oe.Z)({visible:St,leavedClassName:"".concat(Vn,"-content-hidden")},_e,{forceRender:ct,removeOnLeave:Re}),function(hn,En){var pn=hn.className,Rt=hn.style;return Ke.createElement(he,{ref:En,prefixCls:Vn,className:pn,classNames:kt,style:Rt,styles:kn,isActive:St,forceRender:ct,role:Ot?"tabpanel":void 0},Ye)}))}),me=fe,be=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ae=function(zt,Qt){var Kt=Qt.prefixCls,Cn=Qt.accordion,St=Qt.collapsible,pt=Qt.destroyInactivePanel,ct=Qt.onItemClick,qt=Qt.activeKey,fn=Qt.openMotion,kt=Qt.expandIcon;return zt.map(function(xn,kn){var Vn=xn.children,Vt=xn.label,Ot=xn.key,Nn=xn.collapsible,tr=xn.onItemClick,hr=xn.destroyInactivePanel,ot=(0,He.Z)(xn,be),_e=String(Ot!=null?Ot:kn),Re=Nn!=null?Nn:St,Ye=hr!=null?hr:pt,at=function(bn){Re!=="disabled"&&(ct(bn),tr==null||tr(bn))},Be=!1;return Cn?Be=qt[0]===_e:Be=qt.indexOf(_e)>-1,Ke.createElement(me,(0,oe.Z)({},ot,{prefixCls:Kt,key:_e,panelKey:_e,isActive:Be,accordion:Cn,openMotion:fn,expandIcon:kt,header:Vt,collapsible:Re,onItemClick:at,destroyInactivePanel:Ye}),Vn)})},Ie=function(zt,Qt,Kt){if(!zt)return null;var Cn=Kt.prefixCls,St=Kt.accordion,pt=Kt.collapsible,ct=Kt.destroyInactivePanel,qt=Kt.onItemClick,fn=Kt.activeKey,kt=Kt.openMotion,xn=Kt.expandIcon,kn=zt.key||String(Qt),Vn=zt.props,Vt=Vn.header,Ot=Vn.headerClass,Nn=Vn.destroyInactivePanel,tr=Vn.collapsible,hr=Vn.onItemClick,ot=!1;St?ot=fn[0]===kn:ot=fn.indexOf(kn)>-1;var _e=tr!=null?tr:pt,Re=function(Be){_e!=="disabled"&&(qt(Be),hr==null||hr(Be))},Ye={key:kn,panelKey:kn,header:Vt,headerClass:Ot,isActive:ot,prefixCls:Cn,destroyInactivePanel:Nn!=null?Nn:ct,openMotion:kt,accordion:St,children:zt.props.children,onItemClick:Re,expandIcon:xn,collapsible:_e};return typeof zt.type=="string"?zt:(Object.keys(Ye).forEach(function(at){typeof Ye[at]=="undefined"&&delete Ye[at]}),Ke.cloneElement(zt,Ye))};function Xe(Tt,zt,Qt){return Array.isArray(Tt)?Ae(Tt,Qt):(0,yt.Z)(zt).map(function(Kt,Cn){return Ie(Kt,Cn,Qt)})}var nt=Xe,Je=ae(26112);function st(Tt){var zt=Tt;if(!Array.isArray(zt)){var Qt=(0,De.Z)(zt);zt=Qt==="number"||Qt==="string"?[zt]:[]}return zt.map(function(Kt){return String(Kt)})}var gt=Ke.forwardRef(function(Tt,zt){var Qt=Tt.prefixCls,Kt=Qt===void 0?"rc-collapse":Qt,Cn=Tt.destroyInactivePanel,St=Cn===void 0?!1:Cn,pt=Tt.style,ct=Tt.accordion,qt=Tt.className,fn=Tt.children,kt=Tt.collapsible,xn=Tt.openMotion,kn=Tt.expandIcon,Vn=Tt.activeKey,Vt=Tt.defaultActiveKey,Ot=Tt.onChange,Nn=Tt.items,tr=Te()(Kt,qt),hr=(0,Ge.Z)([],{value:Vn,onChange:function(bt){return Ot==null?void 0:Ot(bt)},defaultValue:Vt,postState:st}),ot=(0,ke.Z)(hr,2),_e=ot[0],Re=ot[1],Ye=function(bt){return Re(function(){if(ct)return _e[0]===bt?[]:[bt];var bn=_e.indexOf(bt),sn=bn>-1;return sn?_e.filter(function(Bn){return Bn!==bt}):[].concat((0,Pe.Z)(_e),[bt])})};(0,lt.ZP)(!fn,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var at=nt(Nn,fn,{prefixCls:Kt,accordion:ct,openMotion:xn,expandIcon:kn,collapsible:kt,destroyInactivePanel:St,onItemClick:Ye,activeKey:_e});return Ke.createElement("div",(0,oe.Z)({ref:zt,className:tr,style:pt,role:ct?"tablist":void 0},(0,Je.Z)(Tt,{aria:!0,data:!0})),at)}),rt=Object.assign(gt,{Panel:me}),mt=rt,xt=rt.Panel},66042:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return mt}});var oe=ae(20439),Pe=ae(50298),ke=ae(43403),De=ae(34280),je=ae(59301),Te=je.createContext(null),Ge=je.createContext({}),lt=Te,Ke=ae(4635),He=ae(14809),yt=ae(92310),$e=ae.n(yt),Mt=ae(77900),Fe=ae(10228),te=ae(26112),ee=ae(62646),he=ae(8654),ue=["prefixCls","className","containerRef"],fe=function(Tt){var zt=Tt.prefixCls,Qt=Tt.className,Kt=Tt.containerRef,Cn=(0,ee.Z)(Tt,ue),St=je.useContext(Ge),pt=St.panel,ct=(0,he.x1)(pt,Kt);return je.createElement("div",(0,He.Z)({className:$e()("".concat(zt,"-content"),Qt),role:"dialog",ref:ct},(0,te.Z)(Tt,{aria:!0}),{"aria-modal":"true"},Cn))},me=fe,be=ae(48736);function Ae(xt){return typeof xt=="string"&&String(Number(xt))===xt?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(xt)):xt}function Ie(xt){warning(!("wrapperClassName"in xt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!xt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Xe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function nt(xt,Tt){var zt,Qt,Kt,Cn=xt.prefixCls,St=xt.open,pt=xt.placement,ct=xt.inline,qt=xt.push,fn=xt.forceRender,kt=xt.autoFocus,xn=xt.keyboard,kn=xt.classNames,Vn=xt.rootClassName,Vt=xt.rootStyle,Ot=xt.zIndex,Nn=xt.className,tr=xt.id,hr=xt.style,ot=xt.motion,_e=xt.width,Re=xt.height,Ye=xt.children,at=xt.mask,Be=xt.maskClosable,bt=xt.maskMotion,bn=xt.maskClassName,sn=xt.maskStyle,Bn=xt.afterOpenChange,It=xt.onClose,_t=xt.onMouseEnter,jt=xt.onMouseOver,hn=xt.onMouseLeave,En=xt.onClick,pn=xt.onKeyDown,Rt=xt.onKeyUp,Tn=xt.styles,Yt=xt.drawerRender,en=je.useRef(),vn=je.useRef(),zn=je.useRef();je.useImperativeHandle(Tt,function(){return en.current});var un=function(Pr){var or=Pr.keyCode,Lr=Pr.shiftKey;switch(or){case Fe.Z.TAB:{if(or===Fe.Z.TAB){if(!Lr&&document.activeElement===zn.current){var zr;(zr=vn.current)===null||zr===void 0||zr.focus({preventScroll:!0})}else if(Lr&&document.activeElement===vn.current){var wr;(wr=zn.current)===null||wr===void 0||wr.focus({preventScroll:!0})}}break}case Fe.Z.ESC:{It&&xn&&(Pr.stopPropagation(),It(Pr));break}}};je.useEffect(function(){if(St&&kt){var dr;(dr=en.current)===null||dr===void 0||dr.focus({preventScroll:!0})}},[St]);var Et=je.useState(!1),Xn=(0,Pe.Z)(Et,2),ir=Xn[0],Jt=Xn[1],Er=je.useContext(lt),ni;typeof qt=="boolean"?ni=qt?{}:{distance:0}:ni=qt||{};var Rr=(zt=(Qt=(Kt=ni)===null||Kt===void 0?void 0:Kt.distance)!==null&&Qt!==void 0?Qt:Er==null?void 0:Er.pushDistance)!==null&&zt!==void 0?zt:180,Mn=je.useMemo(function(){return{pushDistance:Rr,push:function(){Jt(!0)},pull:function(){Jt(!1)}}},[Rr]);je.useEffect(function(){if(St){var dr;Er==null||(dr=Er.push)===null||dr===void 0||dr.call(Er)}else{var Pr;Er==null||(Pr=Er.pull)===null||Pr===void 0||Pr.call(Er)}},[St]),je.useEffect(function(){return function(){var dr;Er==null||(dr=Er.pull)===null||dr===void 0||dr.call(Er)}},[]);var ei=at&&je.createElement(Mt.default,(0,He.Z)({key:"mask"},bt,{visible:St}),function(dr,Pr){var or=dr.className,Lr=dr.style;return je.createElement("div",{className:$e()("".concat(Cn,"-mask"),or,kn==null?void 0:kn.mask,bn),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},Lr),sn),Tn==null?void 0:Tn.mask),onClick:Be&&St?It:void 0,ref:Pr})}),Kr=typeof ot=="function"?ot(pt):ot,lr={};if(ir&&Rr)switch(pt){case"top":lr.transform="translateY(".concat(Rr,"px)");break;case"bottom":lr.transform="translateY(".concat(-Rr,"px)");break;case"left":lr.transform="translateX(".concat(Rr,"px)");break;default:lr.transform="translateX(".concat(-Rr,"px)");break}pt==="left"||pt==="right"?lr.width=Ae(_e):lr.height=Ae(Re);var jr={onMouseEnter:_t,onMouseOver:jt,onMouseLeave:hn,onClick:En,onKeyDown:pn,onKeyUp:Rt},oi=je.createElement(Mt.default,(0,He.Z)({key:"panel"},Kr,{visible:St,forceRender:fn,onVisibleChanged:function(Pr){Bn==null||Bn(Pr)},removeOnLeave:!1,leavedClassName:"".concat(Cn,"-content-wrapper-hidden")}),function(dr,Pr){var or=dr.className,Lr=dr.style,zr=je.createElement(me,(0,He.Z)({id:tr,containerRef:Pr,prefixCls:Cn,className:$e()(Nn,kn==null?void 0:kn.content),style:(0,oe.Z)((0,oe.Z)({},hr),Tn==null?void 0:Tn.content)},(0,te.Z)(xt,{aria:!0}),jr),Ye);return je.createElement("div",(0,He.Z)({className:$e()("".concat(Cn,"-content-wrapper"),kn==null?void 0:kn.wrapper,or),style:(0,oe.Z)((0,oe.Z)((0,oe.Z)({},lr),Lr),Tn==null?void 0:Tn.wrapper)},(0,te.Z)(xt,{data:!0})),Yt?Yt(zr):zr)}),Oe=(0,oe.Z)({},Vt);return Ot&&(Oe.zIndex=Ot),je.createElement(lt.Provider,{value:Mn},je.createElement("div",{className:$e()(Cn,"".concat(Cn,"-").concat(pt),Vn,(0,Ke.Z)((0,Ke.Z)({},"".concat(Cn,"-open"),St),"".concat(Cn,"-inline"),ct)),style:Oe,tabIndex:-1,ref:en,onKeyDown:un},ei,je.createElement("div",{tabIndex:0,ref:vn,style:Xe,"aria-hidden":"true","data-sentinel":"start"}),oi,je.createElement("div",{tabIndex:0,ref:zn,style:Xe,"aria-hidden":"true","data-sentinel":"end"})))}var Je=je.forwardRef(nt),st=Je,gt=function(Tt){var zt=Tt.open,Qt=zt===void 0?!1:zt,Kt=Tt.prefixCls,Cn=Kt===void 0?"rc-drawer":Kt,St=Tt.placement,pt=St===void 0?"right":St,ct=Tt.autoFocus,qt=ct===void 0?!0:ct,fn=Tt.keyboard,kt=fn===void 0?!0:fn,xn=Tt.width,kn=xn===void 0?378:xn,Vn=Tt.mask,Vt=Vn===void 0?!0:Vn,Ot=Tt.maskClosable,Nn=Ot===void 0?!0:Ot,tr=Tt.getContainer,hr=Tt.forceRender,ot=Tt.afterOpenChange,_e=Tt.destroyOnClose,Re=Tt.onMouseEnter,Ye=Tt.onMouseOver,at=Tt.onMouseLeave,Be=Tt.onClick,bt=Tt.onKeyDown,bn=Tt.onKeyUp,sn=Tt.panelRef,Bn=je.useState(!1),It=(0,Pe.Z)(Bn,2),_t=It[0],jt=It[1],hn=je.useState(!1),En=(0,Pe.Z)(hn,2),pn=En[0],Rt=En[1];(0,De.Z)(function(){Rt(!0)},[]);var Tn=pn?Qt:!1,Yt=je.useRef(),en=je.useRef();(0,De.Z)(function(){Tn&&(en.current=document.activeElement)},[Tn]);var vn=function(ir){var Jt;if(jt(ir),ot==null||ot(ir),!ir&&en.current&&!((Jt=Yt.current)!==null&&Jt!==void 0&&Jt.contains(en.current))){var Er;(Er=en.current)===null||Er===void 0||Er.focus({preventScroll:!0})}},zn=je.useMemo(function(){return{panel:sn}},[sn]);if(!hr&&!_t&&!Tn&&_e)return null;var un={onMouseEnter:Re,onMouseOver:Ye,onMouseLeave:at,onClick:Be,onKeyDown:bt,onKeyUp:bn},Et=(0,oe.Z)((0,oe.Z)({},Tt),{},{open:Tn,prefixCls:Cn,placement:pt,autoFocus:qt,keyboard:kt,width:kn,mask:Vt,maskClosable:Nn,inline:tr===!1,afterOpenChange:vn,ref:Yt},un);return je.createElement(Ge.Provider,{value:zn},je.createElement(ke.Z,{open:Tn||hr||_t,autoDestroy:!1,getContainer:tr,autoLock:Vt&&(Tn||_t)},je.createElement(st,Et)))},rt=gt,mt=rt},91574:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return En}});var oe=ae(14809),Pe=ae(20439),ke=ae(4635),De=ae(50298),je=ae(93664),Te=ae(62646),Ge=ae(92310),lt=ae.n(Ge),Ke=/margin|padding|width|height|max|min|offset/,He={left:!0,top:!0},yt={cssFloat:1,styleFloat:1,float:1};function $e(pn){return pn.nodeType===1?pn.ownerDocument.defaultView.getComputedStyle(pn,null):{}}function Mt(pn,Rt,Tn){if(Rt=Rt.toLowerCase(),Tn==="auto"){if(Rt==="height")return pn.offsetHeight;if(Rt==="width")return pn.offsetWidth}return Rt in He||(He[Rt]=Ke.test(Rt)),He[Rt]?parseFloat(Tn)||0:Tn}function Fe(pn,Rt){var Tn=arguments.length,Yt=$e(pn);return Rt=yt[Rt]?"cssFloat"in pn.style?"cssFloat":"styleFloat":Rt,Tn===1?Yt:Mt(pn,Rt,Yt[Rt]||pn.style[Rt])}function te(pn,Rt,Tn){var Yt=arguments.length;if(Rt=yt[Rt]?"cssFloat"in pn.style?"cssFloat":"styleFloat":Rt,Yt===3)return typeof Tn=="number"&&Ke.test(Rt)&&(Tn="".concat(Tn,"px")),pn.style[Rt]=Tn,Tn;for(var en in Rt)Rt.hasOwnProperty(en)&&te(pn,en,Rt[en]);return $e(pn)}function ee(pn){return pn===document.body?document.documentElement.clientWidth:pn.offsetWidth}function he(pn){return pn===document.body?window.innerHeight||document.documentElement.clientHeight:pn.offsetHeight}function ue(){var pn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Rt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:pn,height:Rt}}function fe(){var pn=document.documentElement.clientWidth,Rt=window.innerHeight||document.documentElement.clientHeight;return{width:pn,height:Rt}}function me(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(pn){var Rt=pn.getBoundingClientRect(),Tn=document.documentElement;return{left:Rt.left+(window.pageXOffset||Tn.scrollLeft)-(Tn.clientLeft||document.body.clientLeft||0),top:Rt.top+(window.pageYOffset||Tn.scrollTop)-(Tn.clientTop||document.body.clientTop||0)}}var Ae=ae(18929),Ie=ae(59301),Xe=ae(55311),nt=ae(8224),Je=ae(10228),st=ae(43403),gt=ae(77900),rt=Ie.createContext(null),mt=function(Rt){var Tn=Rt.visible,Yt=Rt.maskTransitionName,en=Rt.getContainer,vn=Rt.prefixCls,zn=Rt.rootClassName,un=Rt.icons,Et=Rt.countRender,Xn=Rt.showSwitch,ir=Rt.showProgress,Jt=Rt.current,Er=Rt.transform,ni=Rt.count,Rr=Rt.scale,Mn=Rt.minScale,ei=Rt.maxScale,Kr=Rt.closeIcon,lr=Rt.onActive,jr=Rt.onClose,oi=Rt.onZoomIn,Oe=Rt.onZoomOut,dr=Rt.onRotateRight,Pr=Rt.onRotateLeft,or=Rt.onFlipX,Lr=Rt.onFlipY,zr=Rt.onReset,wr=Rt.toolbarRender,Ti=Rt.zIndex,On=Rt.image,yn=(0,Ie.useContext)(rt),Sn=un.rotateLeft,Jn=un.rotateRight,ui=un.zoomIn,Yr=un.zoomOut,ci=un.close,ur=un.left,Xr=un.right,wi=un.flipX,ki=un.flipY,Fr="".concat(vn,"-operations-operation");Ie.useEffect(function(){var Wn=function(Qr){Qr.keyCode===Je.Z.ESC&&jr()};return Tn&&window.addEventListener("keydown",Wn),function(){window.removeEventListener("keydown",Wn)}},[Tn]);var Lt=function(mi,Qr){mi.preventDefault(),mi.stopPropagation(),lr(Qr)},cn=Ie.useCallback(function(Wn){var mi=Wn.type,Qr=Wn.disabled,rr=Wn.onClick,Gr=Wn.icon;return Ie.createElement("div",{key:mi,className:lt()(Fr,"".concat(vn,"-operations-operation-").concat(mi),(0,ke.Z)({},"".concat(vn,"-operations-operation-disabled"),!!Qr)),onClick:rr},Gr)},[Fr,vn]),kr=Xn?cn({icon:ur,onClick:function(mi){return Lt(mi,-1)},type:"prev",disabled:Jt===0}):void 0,Ir=Xn?cn({icon:Xr,onClick:function(mi){return Lt(mi,1)},type:"next",disabled:Jt===ni-1}):void 0,Xt=cn({icon:ki,onClick:Lr,type:"flipY"}),Fn=cn({icon:wi,onClick:or,type:"flipX"}),fr=cn({icon:Sn,onClick:Pr,type:"rotateLeft"}),dn=cn({icon:Jn,onClick:dr,type:"rotateRight"}),Ue=cn({icon:Yr,onClick:Oe,type:"zoomOut",disabled:Rr<=Mn}),Mr=cn({icon:ui,onClick:oi,type:"zoomIn",disabled:Rr===ei}),Ur=Ie.createElement("div",{className:"".concat(vn,"-operations")},Xt,Fn,fr,dn,Ue,Mr);return Ie.createElement(gt.default,{visible:Tn,motionName:Yt},function(Wn){var mi=Wn.className,Qr=Wn.style;return Ie.createElement(st.Z,{open:!0,getContainer:en!=null?en:document.body},Ie.createElement("div",{className:lt()("".concat(vn,"-operations-wrapper"),mi,zn),style:(0,Pe.Z)((0,Pe.Z)({},Qr),{},{zIndex:Ti})},Kr===null?null:Ie.createElement("button",{className:"".concat(vn,"-close"),onClick:jr},Kr||ci),Xn&&Ie.createElement(Ie.Fragment,null,Ie.createElement("div",{className:lt()("".concat(vn,"-switch-left"),(0,ke.Z)({},"".concat(vn,"-switch-left-disabled"),Jt===0)),onClick:function(Gr){return Lt(Gr,-1)}},ur),Ie.createElement("div",{className:lt()("".concat(vn,"-switch-right"),(0,ke.Z)({},"".concat(vn,"-switch-right-disabled"),Jt===ni-1)),onClick:function(Gr){return Lt(Gr,1)}},Xr)),Ie.createElement("div",{className:"".concat(vn,"-footer")},ir&&Ie.createElement("div",{className:"".concat(vn,"-progress")},Et?Et(Jt+1,ni):"".concat(Jt+1," / ").concat(ni)),wr?wr(Ur,(0,Pe.Z)((0,Pe.Z)({icons:{prevIcon:kr,nextIcon:Ir,flipYIcon:Xt,flipXIcon:Fn,rotateLeftIcon:fr,rotateRightIcon:dn,zoomOutIcon:Ue,zoomInIcon:Mr},actions:{onActive:lr,onFlipY:Lr,onFlipX:or,onRotateLeft:Pr,onRotateRight:dr,onZoomOut:Oe,onZoomIn:oi,onReset:zr,onClose:jr},transform:Er},yn?{current:Jt,total:ni}:{}),{},{image:On})):Ur)))})},xt=mt,Tt=ae(13697),zt=ae(16089),Qt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Kt(pn,Rt,Tn,Yt){var en=(0,Ie.useRef)(null),vn=(0,Ie.useRef)([]),zn=(0,Ie.useState)(Qt),un=(0,De.Z)(zn,2),Et=un[0],Xn=un[1],ir=function(Rr){Xn(Qt),(0,Tt.Z)(Qt,Et)||Yt==null||Yt({transform:Qt,action:Rr})},Jt=function(Rr,Mn){en.current===null&&(vn.current=[],en.current=(0,zt.Z)(function(){Xn(function(ei){var Kr=ei;return vn.current.forEach(function(lr){Kr=(0,Pe.Z)((0,Pe.Z)({},Kr),lr)}),en.current=null,Yt==null||Yt({transform:Kr,action:Mn}),Kr})})),vn.current.push((0,Pe.Z)((0,Pe.Z)({},Et),Rr))},Er=function(Rr,Mn,ei,Kr,lr){var jr=pn.current,oi=jr.width,Oe=jr.height,dr=jr.offsetWidth,Pr=jr.offsetHeight,or=jr.offsetLeft,Lr=jr.offsetTop,zr=Rr,wr=Et.scale*Rr;wr>Tn?(wr=Tn,zr=Tn/Et.scale):wr<Rt&&(wr=lr?wr:Rt,zr=wr/Et.scale);var Ti=ei!=null?ei:innerWidth/2,On=Kr!=null?Kr:innerHeight/2,yn=zr-1,Sn=yn*oi*.5,Jn=yn*Oe*.5,ui=yn*(Ti-Et.x-or),Yr=yn*(On-Et.y-Lr),ci=Et.x-(ui-Sn),ur=Et.y-(Yr-Jn);if(Rr<1&&wr===1){var Xr=dr*wr,wi=Pr*wr,ki=fe(),Fr=ki.width,Lt=ki.height;Xr<=Fr&&wi<=Lt&&(ci=0,ur=0)}Jt({x:ci,y:ur,scale:wr},Mn)};return{transform:Et,resetTransform:ir,updateTransform:Jt,dispatchZoomChange:Er}}var Cn=ae(48736);function St(pn,Rt,Tn,Yt){var en=Rt+Tn,vn=(Tn-Yt)/2;if(Tn>Yt){if(Rt>0)return(0,ke.Z)({},pn,vn);if(Rt<0&&en<Yt)return(0,ke.Z)({},pn,-vn)}else if(Rt<0||en>Yt)return(0,ke.Z)({},pn,Rt<0?vn:-vn);return{}}function pt(pn,Rt,Tn,Yt){var en=fe(),vn=en.width,zn=en.height,un=null;return pn<=vn&&Rt<=zn?un={x:0,y:0}:(pn>vn||Rt>zn)&&(un=(0,Pe.Z)((0,Pe.Z)({},St("x",Tn,pn,vn)),St("y",Yt,Rt,zn))),un}var ct=1,qt=1;function fn(pn,Rt,Tn,Yt,en,vn,zn){var un=en.rotate,Et=en.scale,Xn=en.x,ir=en.y,Jt=(0,Ie.useState)(!1),Er=(0,De.Z)(Jt,2),ni=Er[0],Rr=Er[1],Mn=(0,Ie.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),ei=function(Oe){!Rt||Oe.button!==0||(Oe.preventDefault(),Oe.stopPropagation(),Mn.current={diffX:Oe.pageX-Xn,diffY:Oe.pageY-ir,transformX:Xn,transformY:ir},Rr(!0))},Kr=function(Oe){Tn&&ni&&vn({x:Oe.pageX-Mn.current.diffX,y:Oe.pageY-Mn.current.diffY},"move")},lr=function(){if(Tn&&ni){Rr(!1);var Oe=Mn.current,dr=Oe.transformX,Pr=Oe.transformY,or=Xn!==dr&&ir!==Pr;if(!or)return;var Lr=pn.current.offsetWidth*Et,zr=pn.current.offsetHeight*Et,wr=pn.current.getBoundingClientRect(),Ti=wr.left,On=wr.top,yn=un%180!==0,Sn=pt(yn?zr:Lr,yn?Lr:zr,Ti,On);Sn&&vn((0,Pe.Z)({},Sn),"dragRebound")}},jr=function(Oe){if(!(!Tn||Oe.deltaY==0)){var dr=Math.abs(Oe.deltaY/100),Pr=Math.min(dr,qt),or=ct+Pr*Yt;Oe.deltaY>0&&(or=ct/or),zn(or,"wheel",Oe.clientX,Oe.clientY)}};return(0,Ie.useEffect)(function(){var oi,Oe,dr,Pr;if(Rt){dr=(0,nt.Z)(window,"mouseup",lr,!1),Pr=(0,nt.Z)(window,"mousemove",Kr,!1);try{window.top!==window.self&&(oi=(0,nt.Z)(window.top,"mouseup",lr,!1),Oe=(0,nt.Z)(window.top,"mousemove",Kr,!1))}catch(or){(0,Cn.Kp)(!1,"[rc-image] ".concat(or))}}return function(){var or,Lr,zr,wr;(or=dr)===null||or===void 0||or.remove(),(Lr=Pr)===null||Lr===void 0||Lr.remove(),(zr=oi)===null||zr===void 0||zr.remove(),(wr=Oe)===null||wr===void 0||wr.remove()}},[Tn,ni,Xn,ir,un,Rt]),{isMoving:ni,onMouseDown:ei,onMouseMove:Kr,onMouseUp:lr,onWheel:jr}}function kt(pn){return new Promise(function(Rt){if(!pn){Rt(!1);return}var Tn=document.createElement("img");Tn.onerror=function(){return Rt(!1)},Tn.onload=function(){return Rt(!0)},Tn.src=pn})}function xn(pn){var Rt=pn.src,Tn=pn.isCustomPlaceholder,Yt=pn.fallback,en=(0,Ie.useState)(Tn?"loading":"normal"),vn=(0,De.Z)(en,2),zn=vn[0],un=vn[1],Et=(0,Ie.useRef)(!1),Xn=zn==="error";(0,Ie.useEffect)(function(){var ni=!0;return kt(Rt).then(function(Rr){!Rr&&ni&&un("error")}),function(){ni=!1}},[Rt]),(0,Ie.useEffect)(function(){Tn&&!Et.current?un("loading"):Xn&&un("normal")},[Rt]);var ir=function(){un("normal")},Jt=function(Rr){Et.current=!1,zn==="loading"&&Rr!==null&&Rr!==void 0&&Rr.complete&&(Rr.naturalWidth||Rr.naturalHeight)&&(Et.current=!0,ir())},Er=Xn&&Yt?{src:Yt}:{onLoad:ir,src:Rt};return[Jt,Er,zn]}function kn(pn,Rt){var Tn=pn.x-Rt.x,Yt=pn.y-Rt.y;return Math.hypot(Tn,Yt)}function Vn(pn,Rt,Tn,Yt){var en=kn(pn,Tn),vn=kn(Rt,Yt);if(en===0&&vn===0)return[pn.x,pn.y];var zn=en/(en+vn),un=pn.x+zn*(Rt.x-pn.x),Et=pn.y+zn*(Rt.y-pn.y);return[un,Et]}function Vt(pn,Rt,Tn,Yt,en,vn,zn){var un=en.rotate,Et=en.scale,Xn=en.x,ir=en.y,Jt=(0,Ie.useState)(!1),Er=(0,De.Z)(Jt,2),ni=Er[0],Rr=Er[1],Mn=(0,Ie.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),ei=function(Oe){Mn.current=(0,Pe.Z)((0,Pe.Z)({},Mn.current),Oe)},Kr=function(Oe){if(Rt){Oe.stopPropagation(),Rr(!0);var dr=Oe.touches,Pr=dr===void 0?[]:dr;Pr.length>1?ei({point1:{x:Pr[0].clientX,y:Pr[0].clientY},point2:{x:Pr[1].clientX,y:Pr[1].clientY},eventType:"touchZoom"}):ei({point1:{x:Pr[0].clientX-Xn,y:Pr[0].clientY-ir},eventType:"move"})}},lr=function(Oe){var dr=Oe.touches,Pr=dr===void 0?[]:dr,or=Mn.current,Lr=or.point1,zr=or.point2,wr=or.eventType;if(Pr.length>1&&wr==="touchZoom"){var Ti={x:Pr[0].clientX,y:Pr[0].clientY},On={x:Pr[1].clientX,y:Pr[1].clientY},yn=Vn(Lr,zr,Ti,On),Sn=(0,De.Z)(yn,2),Jn=Sn[0],ui=Sn[1],Yr=kn(Ti,On)/kn(Lr,zr);zn(Yr,"touchZoom",Jn,ui,!0),ei({point1:Ti,point2:On,eventType:"touchZoom"})}else wr==="move"&&(vn({x:Pr[0].clientX-Lr.x,y:Pr[0].clientY-Lr.y},"move"),ei({eventType:"move"}))},jr=function(){if(Tn){if(ni&&Rr(!1),ei({eventType:"none"}),Yt>Et)return vn({x:0,y:0,scale:Yt},"touchZoom");var Oe=pn.current.offsetWidth*Et,dr=pn.current.offsetHeight*Et,Pr=pn.current.getBoundingClientRect(),or=Pr.left,Lr=Pr.top,zr=un%180!==0,wr=pt(zr?dr:Oe,zr?Oe:dr,or,Lr);wr&&vn((0,Pe.Z)({},wr),"dragRebound")}};return(0,Ie.useEffect)(function(){var oi;return Tn&&Rt&&(oi=(0,nt.Z)(window,"touchmove",function(Oe){return Oe.preventDefault()},{passive:!1})),function(){var Oe;(Oe=oi)===null||Oe===void 0||Oe.remove()}},[Tn,Rt]),{isTouching:ni,onTouchStart:Kr,onTouchMove:lr,onTouchEnd:jr}}var Ot=["fallback","src","imgRef"],Nn=["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"],tr=function(Rt){var Tn=Rt.fallback,Yt=Rt.src,en=Rt.imgRef,vn=(0,Te.Z)(Rt,Ot),zn=xn({src:Yt,fallback:Tn}),un=(0,De.Z)(zn,2),Et=un[0],Xn=un[1];return Ie.createElement("img",(0,oe.Z)({ref:function(Jt){en.current=Jt,Et(Jt)}},vn,Xn))},hr=function(Rt){var Tn=Rt.prefixCls,Yt=Rt.src,en=Rt.alt,vn=Rt.imageInfo,zn=Rt.fallback,un=Rt.movable,Et=un===void 0?!0:un,Xn=Rt.onClose,ir=Rt.visible,Jt=Rt.icons,Er=Jt===void 0?{}:Jt,ni=Rt.rootClassName,Rr=Rt.closeIcon,Mn=Rt.getContainer,ei=Rt.current,Kr=ei===void 0?0:ei,lr=Rt.count,jr=lr===void 0?1:lr,oi=Rt.countRender,Oe=Rt.scaleStep,dr=Oe===void 0?.5:Oe,Pr=Rt.minScale,or=Pr===void 0?1:Pr,Lr=Rt.maxScale,zr=Lr===void 0?50:Lr,wr=Rt.transitionName,Ti=wr===void 0?"zoom":wr,On=Rt.maskTransitionName,yn=On===void 0?"fade":On,Sn=Rt.imageRender,Jn=Rt.imgCommonProps,ui=Rt.toolbarRender,Yr=Rt.onTransform,ci=Rt.onChange,ur=(0,Te.Z)(Rt,Nn),Xr=(0,Ie.useRef)(),wi=(0,Ie.useContext)(rt),ki=wi&&jr>1,Fr=wi&&jr>=1,Lt=(0,Ie.useState)(!0),cn=(0,De.Z)(Lt,2),kr=cn[0],Ir=cn[1],Xt=Kt(Xr,or,zr,Yr),Fn=Xt.transform,fr=Xt.resetTransform,dn=Xt.updateTransform,Ue=Xt.dispatchZoomChange,Mr=fn(Xr,Et,ir,dr,Fn,dn,Ue),Ur=Mr.isMoving,Wn=Mr.onMouseDown,mi=Mr.onWheel,Qr=Vt(Xr,Et,ir,or,Fn,dn,Ue),rr=Qr.isTouching,Gr=Qr.onTouchStart,on=Qr.onTouchMove,Ci=Qr.onTouchEnd,Vi=Fn.rotate,mn=Fn.scale,li=lt()((0,ke.Z)({},"".concat(Tn,"-moving"),Ur));(0,Ie.useEffect)(function(){kr||Ir(!0)},[kr]);var bi=function(){fr("close")},qr=function(){Ue(ct+dr,"zoomIn")},Pi=function(){Ue(ct/(ct+dr),"zoomOut")},Ii=function(){dn({rotate:Vi+90},"rotateRight")},Hi=function(){dn({rotate:Vi-90},"rotateLeft")},ji=function(){dn({flipX:!Fn.flipX},"flipX")},Bi=function(){dn({flipY:!Fn.flipY},"flipY")},io=function(){fr("reset")},Qn=function(fo){var co=Kr+fo;!Number.isInteger(co)||co<0||co>jr-1||(Ir(!1),fr(fo<0?"prev":"next"),ci==null||ci(co,Kr))},zi=function(fo){!ir||!ki||(fo.keyCode===Je.Z.LEFT?Qn(-1):fo.keyCode===Je.Z.RIGHT&&Qn(1))},ar=function(fo){ir&&(mn!==1?dn({x:0,y:0,scale:1},"doubleClick"):Ue(ct+dr,"doubleClick",fo.clientX,fo.clientY))};(0,Ie.useEffect)(function(){var Fi=(0,nt.Z)(window,"keydown",zi,!1);return function(){Fi.remove()}},[ir,ki,Kr]);var vi=Ie.createElement(tr,(0,oe.Z)({},Jn,{width:Rt.width,height:Rt.height,imgRef:Xr,className:"".concat(Tn,"-img"),alt:en,style:{transform:"translate3d(".concat(Fn.x,"px, ").concat(Fn.y,"px, 0) scale3d(").concat(Fn.flipX?"-":"").concat(mn,", ").concat(Fn.flipY?"-":"").concat(mn,", 1) rotate(").concat(Vi,"deg)"),transitionDuration:(!kr||rr)&&"0s"},fallback:zn,src:Yt,onWheel:mi,onMouseDown:Wn,onDoubleClick:ar,onTouchStart:Gr,onTouchMove:on,onTouchEnd:Ci,onTouchCancel:Ci})),Zi=(0,Pe.Z)({url:Yt,alt:en},vn);return Ie.createElement(Ie.Fragment,null,Ie.createElement(Xe.Z,(0,oe.Z)({transitionName:Ti,maskTransitionName:yn,closable:!1,keyboard:!0,prefixCls:Tn,onClose:Xn,visible:ir,classNames:{wrapper:li},rootClassName:ni,getContainer:Mn},ur,{afterClose:bi}),Ie.createElement("div",{className:"".concat(Tn,"-img-wrapper")},Sn?Sn(vi,(0,Pe.Z)({transform:Fn,image:Zi},wi?{current:Kr}:{})):vi)),Ie.createElement(xt,{visible:ir,transform:Fn,maskTransitionName:yn,closeIcon:Rr,getContainer:Mn,prefixCls:Tn,rootClassName:ni,icons:Er,countRender:oi,showSwitch:ki,showProgress:Fr,current:Kr,count:jr,scale:mn,minScale:or,maxScale:zr,toolbarRender:ui,onActive:Qn,onZoomIn:qr,onZoomOut:Pi,onRotateRight:Ii,onRotateLeft:Hi,onFlipX:ji,onFlipY:Bi,onClose:Xn,onReset:io,zIndex:ur.zIndex!==void 0?ur.zIndex+1:void 0,image:Zi}))},ot=hr,_e=ae(95190),Re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Ye(pn){var Rt=Ie.useState({}),Tn=(0,De.Z)(Rt,2),Yt=Tn[0],en=Tn[1],vn=Ie.useCallback(function(un,Et){return en(function(Xn){return(0,Pe.Z)((0,Pe.Z)({},Xn),{},(0,ke.Z)({},un,Et))}),function(){en(function(Xn){var ir=(0,Pe.Z)({},Xn);return delete ir[un],ir})}},[]),zn=Ie.useMemo(function(){return pn?pn.map(function(un){if(typeof un=="string")return{data:{src:un}};var Et={};return Object.keys(un).forEach(function(Xn){["src"].concat((0,_e.Z)(Re)).includes(Xn)&&(Et[Xn]=un[Xn])}),{data:Et}}):Object.keys(Yt).reduce(function(un,Et){var Xn=Yt[Et],ir=Xn.canPreview,Jt=Xn.data;return ir&&un.push({data:Jt,id:Et}),un},[])},[pn,Yt]);return[zn,vn,!!pn]}var at=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],bt=function(Rt){var Tn,Yt=Rt.previewPrefixCls,en=Yt===void 0?"rc-image-preview":Yt,vn=Rt.children,zn=Rt.icons,un=zn===void 0?{}:zn,Et=Rt.items,Xn=Rt.preview,ir=Rt.fallback,Jt=(0,je.Z)(Xn)==="object"?Xn:{},Er=Jt.visible,ni=Jt.onVisibleChange,Rr=Jt.getContainer,Mn=Jt.current,ei=Jt.movable,Kr=Jt.minScale,lr=Jt.maxScale,jr=Jt.countRender,oi=Jt.closeIcon,Oe=Jt.onChange,dr=Jt.onTransform,Pr=Jt.toolbarRender,or=Jt.imageRender,Lr=(0,Te.Z)(Jt,at),zr=Ye(Et),wr=(0,De.Z)(zr,3),Ti=wr[0],On=wr[1],yn=wr[2],Sn=(0,Ae.Z)(0,{value:Mn}),Jn=(0,De.Z)(Sn,2),ui=Jn[0],Yr=Jn[1],ci=(0,Ie.useState)(!1),ur=(0,De.Z)(ci,2),Xr=ur[0],wi=ur[1],ki=((Tn=Ti[ui])===null||Tn===void 0?void 0:Tn.data)||{},Fr=ki.src,Lt=(0,Te.Z)(ki,Be),cn=(0,Ae.Z)(!!Er,{value:Er,onChange:function(rr,Gr){ni==null||ni(rr,Gr,ui)}}),kr=(0,De.Z)(cn,2),Ir=kr[0],Xt=kr[1],Fn=(0,Ie.useState)(null),fr=(0,De.Z)(Fn,2),dn=fr[0],Ue=fr[1],Mr=Ie.useCallback(function(Qr,rr,Gr,on){var Ci=yn?Ti.findIndex(function(Vi){return Vi.data.src===rr}):Ti.findIndex(function(Vi){return Vi.id===Qr});Yr(Ci<0?0:Ci),Xt(!0),Ue({x:Gr,y:on}),wi(!0)},[Ti,yn]);Ie.useEffect(function(){Ir?Xr||Yr(0):wi(!1)},[Ir]);var Ur=function(rr,Gr){Yr(rr),Oe==null||Oe(rr,Gr)},Wn=function(){Xt(!1),Ue(null)},mi=Ie.useMemo(function(){return{register:On,onPreview:Mr}},[On,Mr]);return Ie.createElement(rt.Provider,{value:mi},vn,Ie.createElement(ot,(0,oe.Z)({"aria-hidden":!Ir,movable:ei,visible:Ir,prefixCls:en,closeIcon:oi,onClose:Wn,mousePosition:dn,imgCommonProps:Lt,src:Fr,fallback:ir,icons:un,minScale:Kr,maxScale:lr,getContainer:Rr,current:ui,count:Ti.length,countRender:jr,onTransform:dr,toolbarRender:Pr,imageRender:or,onChange:Ur},Lr)))},bn=bt,sn=0;function Bn(pn,Rt){var Tn=Ie.useState(function(){return sn+=1,String(sn)}),Yt=(0,De.Z)(Tn,1),en=Yt[0],vn=Ie.useContext(rt),zn={data:Rt,canPreview:pn};return Ie.useEffect(function(){if(vn)return vn.register(en,zn)},[]),Ie.useEffect(function(){vn&&vn.register(en,zn)},[pn,Rt]),en}var It=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_t=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],jt=function(Rt){var Tn=Rt.src,Yt=Rt.alt,en=Rt.onPreviewClose,vn=Rt.prefixCls,zn=vn===void 0?"rc-image":vn,un=Rt.previewPrefixCls,Et=un===void 0?"".concat(zn,"-preview"):un,Xn=Rt.placeholder,ir=Rt.fallback,Jt=Rt.width,Er=Rt.height,ni=Rt.style,Rr=Rt.preview,Mn=Rr===void 0?!0:Rr,ei=Rt.className,Kr=Rt.onClick,lr=Rt.onError,jr=Rt.wrapperClassName,oi=Rt.wrapperStyle,Oe=Rt.rootClassName,dr=(0,Te.Z)(Rt,It),Pr=Xn&&Xn!==!0,or=(0,je.Z)(Mn)==="object"?Mn:{},Lr=or.src,zr=or.visible,wr=zr===void 0?void 0:zr,Ti=or.onVisibleChange,On=Ti===void 0?en:Ti,yn=or.getContainer,Sn=yn===void 0?void 0:yn,Jn=or.mask,ui=or.maskClassName,Yr=or.movable,ci=or.icons,ur=or.scaleStep,Xr=or.minScale,wi=or.maxScale,ki=or.imageRender,Fr=or.toolbarRender,Lt=(0,Te.Z)(or,_t),cn=Lr!=null?Lr:Tn,kr=(0,Ae.Z)(!!wr,{value:wr,onChange:On}),Ir=(0,De.Z)(kr,2),Xt=Ir[0],Fn=Ir[1],fr=xn({src:Tn,isCustomPlaceholder:Pr,fallback:ir}),dn=(0,De.Z)(fr,3),Ue=dn[0],Mr=dn[1],Ur=dn[2],Wn=(0,Ie.useState)(null),mi=(0,De.Z)(Wn,2),Qr=mi[0],rr=mi[1],Gr=(0,Ie.useContext)(rt),on=!!Mn,Ci=function(){Fn(!1),rr(null)},Vi=lt()(zn,jr,Oe,(0,ke.Z)({},"".concat(zn,"-error"),Ur==="error")),mn=(0,Ie.useMemo)(function(){var Pi={};return Re.forEach(function(Ii){Rt[Ii]!==void 0&&(Pi[Ii]=Rt[Ii])}),Pi},Re.map(function(Pi){return Rt[Pi]})),li=(0,Ie.useMemo)(function(){return(0,Pe.Z)((0,Pe.Z)({},mn),{},{src:cn})},[cn,mn]),bi=Bn(on,li),qr=function(Ii){var Hi=be(Ii.target),ji=Hi.left,Bi=Hi.top;Gr?Gr.onPreview(bi,cn,ji,Bi):(rr({x:ji,y:Bi}),Fn(!0)),Kr==null||Kr(Ii)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("div",(0,oe.Z)({},dr,{className:Vi,onClick:on?qr:Kr,style:(0,Pe.Z)({width:Jt,height:Er},oi)}),Ie.createElement("img",(0,oe.Z)({},mn,{className:lt()("".concat(zn,"-img"),(0,ke.Z)({},"".concat(zn,"-img-placeholder"),Xn===!0),ei),style:(0,Pe.Z)({height:Er},ni),ref:Ue},Mr,{width:Jt,height:Er,onError:lr})),Ur==="loading"&&Ie.createElement("div",{"aria-hidden":"true",className:"".concat(zn,"-placeholder")},Xn),Jn&&on&&Ie.createElement("div",{className:lt()("".concat(zn,"-mask"),ui),style:{display:(ni==null?void 0:ni.display)==="none"?"none":void 0}},Jn)),!Gr&&on&&Ie.createElement(ot,(0,oe.Z)({"aria-hidden":!Xt,visible:Xt,prefixCls:Et,onClose:Ci,mousePosition:Qr,src:cn,alt:Yt,imageInfo:{width:Jt,height:Er},fallback:ir,getContainer:Sn,icons:ci,movable:Yr,scaleStep:ur,minScale:Xr,maxScale:wi,rootClassName:Oe,imageRender:ki,imgCommonProps:mn,toolbarRender:Fr},Lt)))};jt.PreviewGroup=bn;var hn=jt,En=hn},23425:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Xe}});var oe=ae(4635),Pe=ae(14809),ke=ae(93664),De=ae(20439),je=ae(50298),Te=ae(92310),Ge=ae.n(Te),lt=ae(18929),Ke=ae(10228),He=ae(26112),yt=ae(48736),$e=ae(59301),Mt=ae(17119),Fe=[10,20,50,100],te=function(Je){var st=Je.pageSizeOptions,gt=st===void 0?Fe:st,rt=Je.locale,mt=Je.changeSize,xt=Je.pageSize,Tt=Je.goButton,zt=Je.quickGo,Qt=Je.rootPrefixCls,Kt=Je.disabled,Cn=Je.buildOptionText,St=Je.showSizeChanger,pt=Je.sizeChangerRender,ct=$e.useState(""),qt=(0,je.Z)(ct,2),fn=qt[0],kt=qt[1],xn=function(){return!fn||Number.isNaN(fn)?void 0:Number(fn)},kn=typeof Cn=="function"?Cn:function(Re){return"".concat(Re," ").concat(rt.items_per_page)},Vn=function(Ye){kt(Ye.target.value)},Vt=function(Ye){Tt||fn===""||(kt(""),!(Ye.relatedTarget&&(Ye.relatedTarget.className.indexOf("".concat(Qt,"-item-link"))>=0||Ye.relatedTarget.className.indexOf("".concat(Qt,"-item"))>=0))&&(zt==null||zt(xn())))},Ot=function(Ye){fn!==""&&(Ye.keyCode===Ke.Z.ENTER||Ye.type==="click")&&(kt(""),zt==null||zt(xn()))},Nn=function(){return gt.some(function(Ye){return Ye.toString()===xt.toString()})?gt:gt.concat([xt]).sort(function(Ye,at){var Be=Number.isNaN(Number(Ye))?0:Number(Ye),bt=Number.isNaN(Number(at))?0:Number(at);return Be-bt})},tr="".concat(Qt,"-options");if(!St&&!zt)return null;var hr=null,ot=null,_e=null;return St&&pt&&(hr=pt({disabled:Kt,size:xt,onSizeChange:function(Ye){mt==null||mt(Number(Ye))},"aria-label":rt.page_size,className:"".concat(tr,"-size-changer"),options:Nn().map(function(Re){return{label:kn(Re),value:Re}})})),zt&&(Tt&&(_e=typeof Tt=="boolean"?$e.createElement("button",{type:"button",onClick:Ot,onKeyUp:Ot,disabled:Kt,className:"".concat(tr,"-quick-jumper-button")},rt.jump_to_confirm):$e.createElement("span",{onClick:Ot,onKeyUp:Ot},Tt)),ot=$e.createElement("div",{className:"".concat(tr,"-quick-jumper")},rt.jump_to,$e.createElement("input",{disabled:Kt,type:"text",value:fn,onChange:Vn,onKeyUp:Ot,onBlur:Vt,"aria-label":rt.page}),rt.page,_e)),$e.createElement("li",{className:tr},hr,ot)},ee=te,he=function(Je){var st=Je.rootPrefixCls,gt=Je.page,rt=Je.active,mt=Je.className,xt=Je.showTitle,Tt=Je.onClick,zt=Je.onKeyPress,Qt=Je.itemRender,Kt="".concat(st,"-item"),Cn=Ge()(Kt,"".concat(Kt,"-").concat(gt),(0,oe.Z)((0,oe.Z)({},"".concat(Kt,"-active"),rt),"".concat(Kt,"-disabled"),!gt),mt),St=function(){Tt(gt)},pt=function(fn){zt(fn,Tt,gt)},ct=Qt(gt,"page",$e.createElement("a",{rel:"nofollow"},gt));return ct?$e.createElement("li",{title:xt?String(gt):null,className:Cn,onClick:St,onKeyDown:pt,tabIndex:0},ct):null},ue=he,fe=function(Je,st,gt){return gt};function me(){}function be(nt){var Je=Number(nt);return typeof Je=="number"&&!Number.isNaN(Je)&&isFinite(Je)&&Math.floor(Je)===Je}function Ae(nt,Je,st){var gt=typeof nt=="undefined"?Je:nt;return Math.floor((st-1)/gt)+1}var Ie=function(Je){var st=Je.prefixCls,gt=st===void 0?"rc-pagination":st,rt=Je.selectPrefixCls,mt=rt===void 0?"rc-select":rt,xt=Je.className,Tt=Je.current,zt=Je.defaultCurrent,Qt=zt===void 0?1:zt,Kt=Je.total,Cn=Kt===void 0?0:Kt,St=Je.pageSize,pt=Je.defaultPageSize,ct=pt===void 0?10:pt,qt=Je.onChange,fn=qt===void 0?me:qt,kt=Je.hideOnSinglePage,xn=Je.align,kn=Je.showPrevNextJumpers,Vn=kn===void 0?!0:kn,Vt=Je.showQuickJumper,Ot=Je.showLessItems,Nn=Je.showTitle,tr=Nn===void 0?!0:Nn,hr=Je.onShowSizeChange,ot=hr===void 0?me:hr,_e=Je.locale,Re=_e===void 0?Mt.Z:_e,Ye=Je.style,at=Je.totalBoundaryShowSizeChanger,Be=at===void 0?50:at,bt=Je.disabled,bn=Je.simple,sn=Je.showTotal,Bn=Je.showSizeChanger,It=Bn===void 0?Cn>Be:Bn,_t=Je.sizeChangerRender,jt=Je.pageSizeOptions,hn=Je.itemRender,En=hn===void 0?fe:hn,pn=Je.jumpPrevIcon,Rt=Je.jumpNextIcon,Tn=Je.prevIcon,Yt=Je.nextIcon,en=$e.useRef(null),vn=(0,lt.Z)(10,{value:St,defaultValue:ct}),zn=(0,je.Z)(vn,2),un=zn[0],Et=zn[1],Xn=(0,lt.Z)(1,{value:Tt,defaultValue:Qt,postState:function(Zi){return Math.max(1,Math.min(Zi,Ae(void 0,un,Cn)))}}),ir=(0,je.Z)(Xn,2),Jt=ir[0],Er=ir[1],ni=$e.useState(Jt),Rr=(0,je.Z)(ni,2),Mn=Rr[0],ei=Rr[1];(0,$e.useEffect)(function(){ei(Jt)},[Jt]);var Kr=fn!==me,lr="current"in Je,jr=Math.max(1,Jt-(Ot?3:5)),oi=Math.min(Ae(void 0,un,Cn),Jt+(Ot?3:5));function Oe(vi,Zi){var Fi=vi||$e.createElement("button",{type:"button","aria-label":Zi,className:"".concat(gt,"-item-link")});return typeof vi=="function"&&(Fi=$e.createElement(vi,(0,De.Z)({},Je))),Fi}function dr(vi){var Zi=vi.target.value,Fi=Ae(void 0,un,Cn),fo;return Zi===""?fo=Zi:Number.isNaN(Number(Zi))?fo=Mn:Zi>=Fi?fo=Fi:fo=Number(Zi),fo}function Pr(vi){return be(vi)&&vi!==Jt&&be(Cn)&&Cn>0}var or=Cn>un?Vt:!1;function Lr(vi){(vi.keyCode===Ke.Z.UP||vi.keyCode===Ke.Z.DOWN)&&vi.preventDefault()}function zr(vi){var Zi=dr(vi);switch(Zi!==Mn&&ei(Zi),vi.keyCode){case Ke.Z.ENTER:On(Zi);break;case Ke.Z.UP:On(Zi-1);break;case Ke.Z.DOWN:On(Zi+1);break;default:break}}function wr(vi){On(dr(vi))}function Ti(vi){var Zi=Ae(vi,un,Cn),Fi=Jt>Zi&&Zi!==0?Zi:Jt;Et(vi),ei(Fi),ot==null||ot(Jt,vi),Er(Fi),fn==null||fn(Fi,vi)}function On(vi){if(Pr(vi)&&!bt){var Zi=Ae(void 0,un,Cn),Fi=vi;return vi>Zi?Fi=Zi:vi<1&&(Fi=1),Fi!==Mn&&ei(Fi),Er(Fi),fn==null||fn(Fi,un),Fi}return Jt}var yn=Jt>1,Sn=Jt<Ae(void 0,un,Cn);function Jn(){yn&&On(Jt-1)}function ui(){Sn&&On(Jt+1)}function Yr(){On(jr)}function ci(){On(oi)}function ur(vi,Zi){if(vi.key==="Enter"||vi.charCode===Ke.Z.ENTER||vi.keyCode===Ke.Z.ENTER){for(var Fi=arguments.length,fo=new Array(Fi>2?Fi-2:0),co=2;co<Fi;co++)fo[co-2]=arguments[co];Zi.apply(void 0,fo)}}function Xr(vi){ur(vi,Jn)}function wi(vi){ur(vi,ui)}function ki(vi){ur(vi,Yr)}function Fr(vi){ur(vi,ci)}function Lt(vi){var Zi=En(vi,"prev",Oe(Tn,"prev page"));return $e.isValidElement(Zi)?$e.cloneElement(Zi,{disabled:!yn}):Zi}function cn(vi){var Zi=En(vi,"next",Oe(Yt,"next page"));return $e.isValidElement(Zi)?$e.cloneElement(Zi,{disabled:!Sn}):Zi}function kr(vi){(vi.type==="click"||vi.keyCode===Ke.Z.ENTER)&&On(Mn)}var Ir=null,Xt=(0,He.Z)(Je,{aria:!0,data:!0}),Fn=sn&&$e.createElement("li",{className:"".concat(gt,"-total-text")},sn(Cn,[Cn===0?0:(Jt-1)*un+1,Jt*un>Cn?Cn:Jt*un])),fr=null,dn=Ae(void 0,un,Cn);if(kt&&Cn<=un)return null;var Ue=[],Mr={rootPrefixCls:gt,onClick:On,onKeyPress:ur,showTitle:tr,itemRender:En,page:-1},Ur=Jt-1>0?Jt-1:0,Wn=Jt+1<dn?Jt+1:dn,mi=Vt&&Vt.goButton,Qr=(0,ke.Z)(bn)==="object"?bn.readOnly:!bn,rr=mi,Gr=null;bn&&(mi&&(typeof mi=="boolean"?rr=$e.createElement("button",{type:"button",onClick:kr,onKeyUp:kr},Re.jump_to_confirm):rr=$e.createElement("span",{onClick:kr,onKeyUp:kr},mi),rr=$e.createElement("li",{title:tr?"".concat(Re.jump_to).concat(Jt,"/").concat(dn):null,className:"".concat(gt,"-simple-pager")},rr)),Gr=$e.createElement("li",{title:tr?"".concat(Jt,"/").concat(dn):null,className:"".concat(gt,"-simple-pager")},Qr?Mn:$e.createElement("input",{type:"text","aria-label":Re.jump_to,value:Mn,disabled:bt,onKeyDown:Lr,onKeyUp:zr,onChange:zr,onBlur:wr,size:3}),$e.createElement("span",{className:"".concat(gt,"-slash")},"/"),dn));var on=Ot?1:2;if(dn<=3+on*2){dn||Ue.push($e.createElement(ue,(0,Pe.Z)({},Mr,{key:"noPager",page:1,className:"".concat(gt,"-item-disabled")})));for(var Ci=1;Ci<=dn;Ci+=1)Ue.push($e.createElement(ue,(0,Pe.Z)({},Mr,{key:Ci,page:Ci,active:Jt===Ci})))}else{var Vi=Ot?Re.prev_3:Re.prev_5,mn=Ot?Re.next_3:Re.next_5,li=En(jr,"jump-prev",Oe(pn,"prev page")),bi=En(oi,"jump-next",Oe(Rt,"next page"));Vn&&(Ir=li?$e.createElement("li",{title:tr?Vi:null,key:"prev",onClick:Yr,tabIndex:0,onKeyDown:ki,className:Ge()("".concat(gt,"-jump-prev"),(0,oe.Z)({},"".concat(gt,"-jump-prev-custom-icon"),!!pn))},li):null,fr=bi?$e.createElement("li",{title:tr?mn:null,key:"next",onClick:ci,tabIndex:0,onKeyDown:Fr,className:Ge()("".concat(gt,"-jump-next"),(0,oe.Z)({},"".concat(gt,"-jump-next-custom-icon"),!!Rt))},bi):null);var qr=Math.max(1,Jt-on),Pi=Math.min(Jt+on,dn);Jt-1<=on&&(Pi=1+on*2),dn-Jt<=on&&(qr=dn-on*2);for(var Ii=qr;Ii<=Pi;Ii+=1)Ue.push($e.createElement(ue,(0,Pe.Z)({},Mr,{key:Ii,page:Ii,active:Jt===Ii})));if(Jt-1>=on*2&&Jt!==3&&(Ue[0]=$e.cloneElement(Ue[0],{className:Ge()("".concat(gt,"-item-after-jump-prev"),Ue[0].props.className)}),Ue.unshift(Ir)),dn-Jt>=on*2&&Jt!==dn-2){var Hi=Ue[Ue.length-1];Ue[Ue.length-1]=$e.cloneElement(Hi,{className:Ge()("".concat(gt,"-item-before-jump-next"),Hi.props.className)}),Ue.push(fr)}qr!==1&&Ue.unshift($e.createElement(ue,(0,Pe.Z)({},Mr,{key:1,page:1}))),Pi!==dn&&Ue.push($e.createElement(ue,(0,Pe.Z)({},Mr,{key:dn,page:dn})))}var ji=Lt(Ur);if(ji){var Bi=!yn||!dn;ji=$e.createElement("li",{title:tr?Re.prev_page:null,onClick:Jn,tabIndex:Bi?null:0,onKeyDown:Xr,className:Ge()("".concat(gt,"-prev"),(0,oe.Z)({},"".concat(gt,"-disabled"),Bi)),"aria-disabled":Bi},ji)}var io=cn(Wn);if(io){var Qn,zi;bn?(Qn=!Sn,zi=yn?0:null):(Qn=!Sn||!dn,zi=Qn?null:0),io=$e.createElement("li",{title:tr?Re.next_page:null,onClick:ui,tabIndex:zi,onKeyDown:wi,className:Ge()("".concat(gt,"-next"),(0,oe.Z)({},"".concat(gt,"-disabled"),Qn)),"aria-disabled":Qn},io)}var ar=Ge()(gt,xt,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(gt,"-start"),xn==="start"),"".concat(gt,"-center"),xn==="center"),"".concat(gt,"-end"),xn==="end"),"".concat(gt,"-simple"),bn),"".concat(gt,"-disabled"),bt));return $e.createElement("ul",(0,Pe.Z)({className:ar,style:Ye,ref:en},Xt),Fn,ji,bn?Gr:Ue,io,$e.createElement(ee,{locale:Re,rootPrefixCls:gt,disabled:bt,selectPrefixCls:mt,changeSize:Ti,pageSize:un,pageSizeOptions:jt,quickGo:or?On:null,goButton:rr,showSizeChanger:It,sizeChangerRender:_t}))},Xe=Ie},25930:function(We,Ee,ae){"use strict";ae.d(Ee,{Cd:function(){return gt}});var oe=ae(14809),Pe=ae(20439),ke=ae(62646),De=ae(59301),je=ae(92310),Te=ae.n(je),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},lt=function(){var xt=(0,De.useRef)([]),Tt=(0,De.useRef)(null);return(0,De.useEffect)(function(){var zt=Date.now(),Qt=!1;xt.current.forEach(function(Kt){if(Kt){Qt=!0;var Cn=Kt.style;Cn.transitionDuration=".3s, .3s, .3s, .06s",Tt.current&&zt-Tt.current<100&&(Cn.transitionDuration="0s, 0s")}}),Qt&&(Tt.current=Date.now())}),xt.current},Ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],He=function(xt){var Tt=(0,Pe.Z)((0,Pe.Z)({},Ge),xt),zt=Tt.className,Qt=Tt.percent,Kt=Tt.prefixCls,Cn=Tt.strokeColor,St=Tt.strokeLinecap,pt=Tt.strokeWidth,ct=Tt.style,qt=Tt.trailColor,fn=Tt.trailWidth,kt=Tt.transition,xn=(0,ke.Z)(Tt,Ke);delete xn.gapPosition;var kn=Array.isArray(Qt)?Qt:[Qt],Vn=Array.isArray(Cn)?Cn:[Cn],Vt=lt(),Ot=pt/2,Nn=100-pt/2,tr="M ".concat(St==="round"?Ot:0,",").concat(Ot,`
|
|
|
L `).concat(St==="round"?Nn:100,",").concat(Ot),hr="0 0 100 ".concat(pt),ot=0;return De.createElement("svg",(0,oe.Z)({className:Te()("".concat(Kt,"-line"),zt),viewBox:hr,preserveAspectRatio:"none",style:ct},xn),De.createElement("path",{className:"".concat(Kt,"-line-trail"),d:tr,strokeLinecap:St,stroke:qt,strokeWidth:fn||pt,fillOpacity:"0"}),kn.map(function(_e,Re){var Ye=1;switch(St){case"round":Ye=1-pt/100;break;case"square":Ye=1-pt/2/100;break;default:Ye=1;break}var at={strokeDasharray:"".concat(_e*Ye,"px, 100px"),strokeDashoffset:"-".concat(ot,"px"),transition:kt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Be=Vn[Re]||Vn[Vn.length-1];return ot+=_e,De.createElement("path",{key:Re,className:"".concat(Kt,"-line-path"),d:tr,strokeLinecap:St,stroke:Be,strokeWidth:pt,fillOpacity:"0",ref:function(bn){Vt[Re]=bn},style:at})}))},yt=He,$e=ae(93664),Mt=ae(50298),Fe=ae(47273),te=0,ee=(0,Fe.Z)();function he(){var mt;return ee?(mt=te,te+=1):mt="TEST_OR_SSR",mt}var ue=function(mt){var xt=De.useState(),Tt=(0,Mt.Z)(xt,2),zt=Tt[0],Qt=Tt[1];return De.useEffect(function(){Qt("rc_progress_".concat(he()))},[]),mt||zt},fe=function(xt){var Tt=xt.bg,zt=xt.children;return De.createElement("div",{style:{width:"100%",height:"100%",background:Tt}},zt)};function me(mt,xt){return Object.keys(mt).map(function(Tt){var zt=parseFloat(Tt),Qt="".concat(Math.floor(zt*xt),"%");return"".concat(mt[Tt]," ").concat(Qt)})}var be=De.forwardRef(function(mt,xt){var Tt=mt.prefixCls,zt=mt.color,Qt=mt.gradientId,Kt=mt.radius,Cn=mt.style,St=mt.ptg,pt=mt.strokeLinecap,ct=mt.strokeWidth,qt=mt.size,fn=mt.gapDegree,kt=zt&&(0,$e.Z)(zt)==="object",xn=kt?"#FFF":void 0,kn=qt/2,Vn=De.createElement("circle",{className:"".concat(Tt,"-circle-path"),r:Kt,cx:kn,cy:kn,stroke:xn,strokeLinecap:pt,strokeWidth:ct,opacity:St===0?0:1,style:Cn,ref:xt});if(!kt)return Vn;var Vt="".concat(Qt,"-conic"),Ot=fn?"".concat(180+fn/2,"deg"):"0deg",Nn=me(zt,(360-fn)/360),tr=me(zt,1),hr="conic-gradient(from ".concat(Ot,", ").concat(Nn.join(", "),")"),ot="linear-gradient(to ".concat(fn?"bottom":"top",", ").concat(tr.join(", "),")");return De.createElement(De.Fragment,null,De.createElement("mask",{id:Vt},Vn),De.createElement("foreignObject",{x:0,y:0,width:qt,height:qt,mask:"url(#".concat(Vt,")")},De.createElement(fe,{bg:ot},De.createElement(fe,{bg:hr}))))}),Ae=be,Ie=100,Xe=function(xt,Tt,zt,Qt,Kt,Cn,St,pt,ct,qt){var fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,kt=zt/100*360*((360-Cn)/360),xn=Cn===0?0:{bottom:0,top:180,left:90,right:-90}[St],kn=(100-Qt)/100*Tt;ct==="round"&&Qt!==100&&(kn+=qt/2,kn>=Tt&&(kn=Tt-.01));var Vn=Ie/2;return{stroke:typeof pt=="string"?pt:void 0,strokeDasharray:"".concat(Tt,"px ").concat(xt),strokeDashoffset:kn+fn,transform:"rotate(".concat(Kt+kt+xn,"deg)"),transformOrigin:"".concat(Vn,"px ").concat(Vn,"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}},nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Je(mt){var xt=mt!=null?mt:[];return Array.isArray(xt)?xt:[xt]}var st=function(xt){var Tt=(0,Pe.Z)((0,Pe.Z)({},Ge),xt),zt=Tt.id,Qt=Tt.prefixCls,Kt=Tt.steps,Cn=Tt.strokeWidth,St=Tt.trailWidth,pt=Tt.gapDegree,ct=pt===void 0?0:pt,qt=Tt.gapPosition,fn=Tt.trailColor,kt=Tt.strokeLinecap,xn=Tt.style,kn=Tt.className,Vn=Tt.strokeColor,Vt=Tt.percent,Ot=(0,ke.Z)(Tt,nt),Nn=Ie/2,tr=ue(zt),hr="".concat(tr,"-gradient"),ot=Nn-Cn/2,_e=Math.PI*2*ot,Re=ct>0?90+ct/2:-90,Ye=_e*((360-ct)/360),at=(0,$e.Z)(Kt)==="object"?Kt:{count:Kt,gap:2},Be=at.count,bt=at.gap,bn=Je(Vt),sn=Je(Vn),Bn=sn.find(function(Rt){return Rt&&(0,$e.Z)(Rt)==="object"}),It=Bn&&(0,$e.Z)(Bn)==="object",_t=It?"butt":kt,jt=Xe(_e,Ye,0,100,Re,ct,qt,fn,_t,Cn),hn=lt(),En=function(){var Tn=0;return bn.map(function(Yt,en){var vn=sn[en]||sn[sn.length-1],zn=Xe(_e,Ye,Tn,Yt,Re,ct,qt,vn,_t,Cn);return Tn+=Yt,De.createElement(Ae,{key:en,color:vn,ptg:Yt,radius:ot,prefixCls:Qt,gradientId:hr,style:zn,strokeLinecap:_t,strokeWidth:Cn,gapDegree:ct,ref:function(Et){hn[en]=Et},size:Ie})}).reverse()},pn=function(){var Tn=Math.round(Be*(bn[0]/100)),Yt=100/Be,en=0;return new Array(Be).fill(null).map(function(vn,zn){var un=zn<=Tn-1?sn[0]:fn,Et=un&&(0,$e.Z)(un)==="object"?"url(#".concat(hr,")"):void 0,Xn=Xe(_e,Ye,en,Yt,Re,ct,qt,un,"butt",Cn,bt);return en+=(Ye-Xn.strokeDashoffset+bt)*100/Ye,De.createElement("circle",{key:zn,className:"".concat(Qt,"-circle-path"),r:ot,cx:Nn,cy:Nn,stroke:Et,strokeWidth:Cn,opacity:1,style:Xn,ref:function(Jt){hn[zn]=Jt}})})};return De.createElement("svg",(0,oe.Z)({className:Te()("".concat(Qt,"-circle"),kn),viewBox:"0 0 ".concat(Ie," ").concat(Ie),style:xn,id:zt,role:"presentation"},Ot),!Be&&De.createElement("circle",{className:"".concat(Qt,"-circle-trail"),r:ot,cx:Nn,cy:Nn,stroke:fn,strokeLinecap:_t,strokeWidth:St||Cn,style:jt}),Be?pn():En())},gt=st,rt={Line:yt,Circle:gt}},738:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(14809),Pe=ae(4635),ke=ae(50298),De=ae(62646),je=ae(92310),Te=ae.n(je),Ge=ae(18929),lt=ae(10228),Ke=ae(26112),He=ae(59301);function yt(be,Ae){var Ie=be.disabled,Xe=be.prefixCls,nt=be.character,Je=be.characterRender,st=be.index,gt=be.count,rt=be.value,mt=be.allowHalf,xt=be.focused,Tt=be.onHover,zt=be.onClick,Qt=function(kt){Tt(kt,st)},Kt=function(kt){zt(kt,st)},Cn=function(kt){kt.keyCode===lt.Z.ENTER&&zt(kt,st)},St=st+1,pt=new Set([Xe]);rt===0&&st===0&&xt?pt.add("".concat(Xe,"-focused")):mt&&rt+.5>=St&&rt<St?(pt.add("".concat(Xe,"-half")),pt.add("".concat(Xe,"-active")),xt&&pt.add("".concat(Xe,"-focused"))):(St<=rt?pt.add("".concat(Xe,"-full")):pt.add("".concat(Xe,"-zero")),St===rt&&xt&&pt.add("".concat(Xe,"-focused")));var ct=typeof nt=="function"?nt(be):nt,qt=He.createElement("li",{className:Te()(Array.from(pt)),ref:Ae},He.createElement("div",{onClick:Ie?null:Kt,onKeyDown:Ie?null:Cn,onMouseMove:Ie?null:Qt,role:"radio","aria-checked":rt>st?"true":"false","aria-posinset":st+1,"aria-setsize":gt,tabIndex:Ie?-1:0},He.createElement("div",{className:"".concat(Xe,"-first")},ct),He.createElement("div",{className:"".concat(Xe,"-second")},ct)));return Je&&(qt=Je(qt,be)),qt}var $e=He.forwardRef(yt);function Mt(){var be=He.useRef({});function Ae(Xe){return be.current[Xe]}function Ie(Xe){return function(nt){be.current[Xe]=nt}}return[Ae,Ie]}function Fe(be){var Ae=be.pageXOffset,Ie="scrollLeft";if(typeof Ae!="number"){var Xe=be.document;Ae=Xe.documentElement[Ie],typeof Ae!="number"&&(Ae=Xe.body[Ie])}return Ae}function te(be){var Ae,Ie,Xe=be.ownerDocument,nt=Xe.body,Je=Xe&&Xe.documentElement,st=be.getBoundingClientRect();return Ae=st.left,Ie=st.top,Ae-=Je.clientLeft||nt.clientLeft||0,Ie-=Je.clientTop||nt.clientTop||0,{left:Ae,top:Ie}}function ee(be){var Ae=te(be),Ie=be.ownerDocument,Xe=Ie.defaultView||Ie.parentWindow;return Ae.left+=Fe(Xe),Ae.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ue(be,Ae){var Ie=be.prefixCls,Xe=Ie===void 0?"rc-rate":Ie,nt=be.className,Je=be.defaultValue,st=be.value,gt=be.count,rt=gt===void 0?5:gt,mt=be.allowHalf,xt=mt===void 0?!1:mt,Tt=be.allowClear,zt=Tt===void 0?!0:Tt,Qt=be.keyboard,Kt=Qt===void 0?!0:Qt,Cn=be.character,St=Cn===void 0?"\u2605":Cn,pt=be.characterRender,ct=be.disabled,qt=be.direction,fn=qt===void 0?"ltr":qt,kt=be.tabIndex,xn=kt===void 0?0:kt,kn=be.autoFocus,Vn=be.onHoverChange,Vt=be.onChange,Ot=be.onFocus,Nn=be.onBlur,tr=be.onKeyDown,hr=be.onMouseLeave,ot=(0,De.Z)(be,he),_e=Mt(),Re=(0,ke.Z)(_e,2),Ye=Re[0],at=Re[1],Be=He.useRef(null),bt=function(){if(!ct){var jr;(jr=Be.current)===null||jr===void 0||jr.focus()}};He.useImperativeHandle(Ae,function(){return{focus:bt,blur:function(){if(!ct){var jr;(jr=Be.current)===null||jr===void 0||jr.blur()}}}});var bn=(0,Ge.Z)(Je||0,{value:st}),sn=(0,ke.Z)(bn,2),Bn=sn[0],It=sn[1],_t=(0,Ge.Z)(null),jt=(0,ke.Z)(_t,2),hn=jt[0],En=jt[1],pn=function(jr,oi){var Oe=fn==="rtl",dr=jr+1;if(xt){var Pr=Ye(jr),or=ee(Pr),Lr=Pr.clientWidth;(Oe&&oi-or>Lr/2||!Oe&&oi-or<Lr/2)&&(dr-=.5)}return dr},Rt=function(jr){It(jr),Vt==null||Vt(jr)},Tn=He.useState(!1),Yt=(0,ke.Z)(Tn,2),en=Yt[0],vn=Yt[1],zn=function(){vn(!0),Ot==null||Ot()},un=function(){vn(!1),Nn==null||Nn()},Et=He.useState(null),Xn=(0,ke.Z)(Et,2),ir=Xn[0],Jt=Xn[1],Er=function(jr,oi){var Oe=pn(oi,jr.pageX);Oe!==hn&&(Jt(Oe),En(null)),Vn==null||Vn(Oe)},ni=function(jr){ct||(Jt(null),En(null),Vn==null||Vn(void 0)),jr&&(hr==null||hr(jr))},Rr=function(jr,oi){var Oe=pn(oi,jr.pageX),dr=!1;zt&&(dr=Oe===Bn),ni(),Rt(dr?0:Oe),En(dr?Oe:null)},Mn=function(jr){var oi=jr.keyCode,Oe=fn==="rtl",dr=xt?.5:1;Kt&&(oi===lt.Z.RIGHT&&Bn<rt&&!Oe?(Rt(Bn+dr),jr.preventDefault()):oi===lt.Z.LEFT&&Bn>0&&!Oe||oi===lt.Z.RIGHT&&Bn>0&&Oe?(Rt(Bn-dr),jr.preventDefault()):oi===lt.Z.LEFT&&Bn<rt&&Oe&&(Rt(Bn+dr),jr.preventDefault())),tr==null||tr(jr)};He.useEffect(function(){kn&&!ct&&bt()},[]);var ei=new Array(rt).fill(0).map(function(lr,jr){return He.createElement($e,{ref:at(jr),index:jr,count:rt,disabled:ct,prefixCls:"".concat(Xe,"-star"),allowHalf:xt,value:ir===null?Bn:ir,onClick:Rr,onHover:Er,key:lr||jr,character:St,characterRender:pt,focused:en})}),Kr=Te()(Xe,nt,(0,Pe.Z)((0,Pe.Z)({},"".concat(Xe,"-disabled"),ct),"".concat(Xe,"-rtl"),fn==="rtl"));return He.createElement("ul",(0,oe.Z)({className:Kr,onMouseLeave:ni,tabIndex:ct?-1:xn,onFocus:ct?null:zn,onBlur:ct?null:un,onKeyDown:ct?null:Mn,ref:Be},(0,Ke.Z)(ot,{aria:!0,data:!0,attr:!0})),ei)}var fe=He.forwardRef(ue),me=fe},6551:function(We,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return Ge}});var oe=ae(50298),Pe=ae(59301),ke=ae(47273),De=0,je=(0,ke.Z)();function Te(){var lt;return je?(lt=De,De+=1):lt="TEST_OR_SSR",lt}function Ge(lt){var Ke=Pe.useState(),He=(0,oe.Z)(Ke,2),yt=He[0],$e=He[1];return Pe.useEffect(function(){$e("rc_select_".concat(Te()))},[]),lt||yt}},37463:function(We,Ee,ae){"use strict";ae.d(Ee,{Ac:function(){return vn},Xo:function(){return un},Wx:function(){return Xn},ZP:function(){return Fr},lk:function(){return me}});var oe=ae(14809),Pe=ae(95190),ke=ae(4635),De=ae(20439),je=ae(50298),Te=ae(62646),Ge=ae(93664),lt=ae(18929),Ke=ae(48736),He=ae(59301),yt=ae(92310),$e=ae.n(yt),Mt=ae(34280),Fe=ae(49658),te=ae(8654),ee=function(cn){var kr=cn.className,Ir=cn.customizeIcon,Xt=cn.customizeIconProps,Fn=cn.children,fr=cn.onMouseDown,dn=cn.onClick,Ue=typeof Ir=="function"?Ir(Xt):Ir;return He.createElement("span",{className:kr,onMouseDown:function(Ur){Ur.preventDefault(),fr==null||fr(Ur)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:dn,"aria-hidden":!0},Ue!==void 0?Ue:He.createElement("span",{className:$e()(kr.split(/\s+/).map(function(Mr){return"".concat(Mr,"-icon")}))},Fn))},he=ee,ue=function(cn,kr,Ir,Xt,Fn){var fr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,dn=arguments.length>6?arguments[6]:void 0,Ue=arguments.length>7?arguments[7]:void 0,Mr=He.useMemo(function(){if((0,Ge.Z)(Xt)==="object")return Xt.clearIcon;if(Fn)return Fn},[Xt,Fn]),Ur=He.useMemo(function(){return!!(!fr&&Xt&&(Ir.length||dn)&&!(Ue==="combobox"&&dn===""))},[Xt,fr,Ir.length,dn,Ue]);return{allowClear:Ur,clearIcon:He.createElement(he,{className:"".concat(cn,"-clear"),onMouseDown:kr,customizeIcon:Mr},"\xD7")}},fe=He.createContext(null);function me(){return He.useContext(fe)}function be(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,cn=He.useState(!1),kr=(0,je.Z)(cn,2),Ir=kr[0],Xt=kr[1],Fn=He.useRef(null),fr=function(){window.clearTimeout(Fn.current)};He.useEffect(function(){return fr},[]);var dn=function(Mr,Ur){fr(),Fn.current=window.setTimeout(function(){Xt(Mr),Ur&&Ur()},Lt)};return[Ir,dn,fr]}function Ae(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,cn=He.useRef(null),kr=He.useRef(null);He.useEffect(function(){return function(){window.clearTimeout(kr.current)}},[]);function Ir(Xt){(Xt||cn.current===null)&&(cn.current=Xt),window.clearTimeout(kr.current),kr.current=window.setTimeout(function(){cn.current=null},Lt)}return[function(){return cn.current},Ir]}function Ie(Lt,cn,kr,Ir){var Xt=He.useRef(null);Xt.current={open:cn,triggerOpen:kr,customizedTrigger:Ir},He.useEffect(function(){function Fn(fr){var dn;if(!((dn=Xt.current)!==null&&dn!==void 0&&dn.customizedTrigger)){var Ue=fr.target;Ue.shadowRoot&&fr.composed&&(Ue=fr.composedPath()[0]||Ue),Xt.current.open&&Lt().filter(function(Mr){return Mr}).every(function(Mr){return!Mr.contains(Ue)&&Mr!==Ue})&&Xt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fn),function(){return window.removeEventListener("mousedown",Fn)}},[])}var Xe=ae(10228);function nt(Lt){return Lt&&![Xe.Z.ESC,Xe.Z.SHIFT,Xe.Z.BACKSPACE,Xe.Z.TAB,Xe.Z.WIN_KEY,Xe.Z.ALT,Xe.Z.META,Xe.Z.WIN_KEY_RIGHT,Xe.Z.CTRL,Xe.Z.SEMICOLON,Xe.Z.EQUALS,Xe.Z.CAPS_LOCK,Xe.Z.CONTEXT_MENU,Xe.Z.F1,Xe.Z.F2,Xe.Z.F3,Xe.Z.F4,Xe.Z.F5,Xe.Z.F6,Xe.Z.F7,Xe.Z.F8,Xe.Z.F9,Xe.Z.F10,Xe.Z.F11,Xe.Z.F12].includes(Lt)}var Je=ae(26112),st=ae(11780);function gt(Lt,cn,kr){var Ir=(0,De.Z)((0,De.Z)({},Lt),kr?cn:{});return Object.keys(cn).forEach(function(Xt){var Fn=cn[Xt];typeof Fn=="function"&&(Ir[Xt]=function(){for(var fr,dn=arguments.length,Ue=new Array(dn),Mr=0;Mr<dn;Mr++)Ue[Mr]=arguments[Mr];return Fn.apply(void 0,Ue),(fr=Lt[Xt])===null||fr===void 0?void 0:fr.call.apply(fr,[Lt].concat(Ue))})}),Ir}var rt=gt,mt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],xt=function(cn,kr){var Ir=cn.prefixCls,Xt=cn.id,Fn=cn.inputElement,fr=cn.autoFocus,dn=cn.autoComplete,Ue=cn.editable,Mr=cn.activeDescendantId,Ur=cn.value,Wn=cn.open,mi=cn.attrs,Qr=(0,Te.Z)(cn,mt),rr=Fn||He.createElement("input",null),Gr=rr,on=Gr.ref,Ci=Gr.props;return(0,Ke.Kp)(!("maxLength"in rr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),rr=He.cloneElement(rr,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},rt(Qr,Ci,!0)),{},{id:Xt,ref:(0,te.sQ)(kr,on),autoComplete:dn||"off",autoFocus:fr,className:$e()("".concat(Ir,"-selection-search-input"),Ci==null?void 0:Ci.className),role:"combobox","aria-expanded":Wn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Xt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Xt,"_list"),"aria-activedescendant":Wn?Mr:void 0},mi),{},{value:Ue?Ur:"",readOnly:!Ue,unselectable:Ue?null:"on",style:(0,De.Z)((0,De.Z)({},Ci.style),{},{opacity:Ue?null:0})})),rr},Tt=He.forwardRef(xt),zt=Tt;function Qt(Lt){return Array.isArray(Lt)?Lt:Lt!==void 0?[Lt]:[]}var Kt=typeof window!="undefined"&&window.document&&window.document.documentElement,Cn=Kt;function St(Lt){return Lt!=null}function pt(Lt){return!Lt&&Lt!==0}function ct(Lt){return["string","number"].includes((0,Ge.Z)(Lt))}function qt(Lt){var cn=void 0;return Lt&&(ct(Lt.title)?cn=Lt.title.toString():ct(Lt.label)&&(cn=Lt.label.toString())),cn}function fn(Lt,cn){Cn?He.useLayoutEffect(Lt,cn):He.useEffect(Lt,cn)}function kt(Lt){var cn;return(cn=Lt.key)!==null&&cn!==void 0?cn:Lt.value}var xn=function(cn){cn.preventDefault(),cn.stopPropagation()},kn=function(cn){var kr=cn.id,Ir=cn.prefixCls,Xt=cn.values,Fn=cn.open,fr=cn.searchValue,dn=cn.autoClearSearchValue,Ue=cn.inputRef,Mr=cn.placeholder,Ur=cn.disabled,Wn=cn.mode,mi=cn.showSearch,Qr=cn.autoFocus,rr=cn.autoComplete,Gr=cn.activeDescendantId,on=cn.tabIndex,Ci=cn.removeIcon,Vi=cn.maxTagCount,mn=cn.maxTagTextLength,li=cn.maxTagPlaceholder,bi=li===void 0?function(wn){return"+ ".concat(wn.length," ...")}:li,qr=cn.tagRender,Pi=cn.onToggleOpen,Ii=cn.onRemove,Hi=cn.onInputChange,ji=cn.onInputPaste,Bi=cn.onInputKeyDown,io=cn.onInputMouseDown,Qn=cn.onInputCompositionStart,zi=cn.onInputCompositionEnd,ar=cn.onInputBlur,vi=He.useRef(null),Zi=(0,He.useState)(0),Fi=(0,je.Z)(Zi,2),fo=Fi[0],co=Fi[1],Wi=(0,He.useState)(!1),zo=(0,je.Z)(Wi,2),_n=zo[0],vr=zo[1],An="".concat(Ir,"-selection"),it=Fn||Wn==="multiple"&&dn===!1||Wn==="tags"?fr:"",Dr=Wn==="tags"||Wn==="multiple"&&dn===!1||mi&&(Fn||_n);fn(function(){co(vi.current.scrollWidth)},[it]);var Wr=function(Pn,Gn,gn,$n,Yn){return He.createElement("span",{title:qt(Pn),className:$e()("".concat(An,"-item"),(0,ke.Z)({},"".concat(An,"-item-disabled"),gn))},He.createElement("span",{className:"".concat(An,"-item-content")},Gn),$n&&He.createElement(he,{className:"".concat(An,"-item-remove"),onMouseDown:xn,onClick:Yn,customizeIcon:Ci},"\xD7"))},pi=function(Pn,Gn,gn,$n,Yn,an){var cr=function(Ni){xn(Ni),Pi(!Fn)};return He.createElement("span",{onMouseDown:cr},qr({label:Gn,value:Pn,disabled:gn,closable:$n,onClose:Yn,isMaxTag:!!an}))},hi=function(Pn){var Gn=Pn.disabled,gn=Pn.label,$n=Pn.value,Yn=!Ur&&!Gn,an=gn;if(typeof mn=="number"&&(typeof gn=="string"||typeof gn=="number")){var cr=String(an);cr.length>mn&&(an="".concat(cr.slice(0,mn),"..."))}var Vr=function(si){si&&si.stopPropagation(),Ii(Pn)};return typeof qr=="function"?pi($n,an,Gn,Yn,Vr):Wr(Pn,an,Gn,Yn,Vr)},ai=function(Pn){if(!Xt.length)return null;var Gn=typeof bi=="function"?bi(Pn):bi;return typeof qr=="function"?pi(void 0,Gn,!1,!1,void 0,!0):Wr({title:Gn},Gn,!1)},mr=He.createElement("div",{className:"".concat(An,"-search"),style:{width:fo},onFocus:function(){vr(!0)},onBlur:function(){vr(!1)}},He.createElement(zt,{ref:Ue,open:Fn,prefixCls:Ir,id:kr,inputElement:null,disabled:Ur,autoFocus:Qr,autoComplete:rr,editable:Dr,activeDescendantId:Gr,value:it,onKeyDown:Bi,onMouseDown:io,onChange:Hi,onPaste:ji,onCompositionStart:Qn,onCompositionEnd:zi,onBlur:ar,tabIndex:on,attrs:(0,Je.Z)(cn,!0)}),He.createElement("span",{ref:vi,className:"".concat(An,"-search-mirror"),"aria-hidden":!0},it,"\xA0")),ht=He.createElement(st.Z,{prefixCls:"".concat(An,"-overflow"),data:Xt,renderItem:hi,renderRest:ai,suffix:mr,itemKey:kt,maxCount:Vi});return He.createElement("span",{className:"".concat(An,"-wrap")},ht,!Xt.length&&!it&&He.createElement("span",{className:"".concat(An,"-placeholder")},Mr))},Vn=kn,Vt=function(cn){var kr=cn.inputElement,Ir=cn.prefixCls,Xt=cn.id,Fn=cn.inputRef,fr=cn.disabled,dn=cn.autoFocus,Ue=cn.autoComplete,Mr=cn.activeDescendantId,Ur=cn.mode,Wn=cn.open,mi=cn.values,Qr=cn.placeholder,rr=cn.tabIndex,Gr=cn.showSearch,on=cn.searchValue,Ci=cn.activeValue,Vi=cn.maxLength,mn=cn.onInputKeyDown,li=cn.onInputMouseDown,bi=cn.onInputChange,qr=cn.onInputPaste,Pi=cn.onInputCompositionStart,Ii=cn.onInputCompositionEnd,Hi=cn.onInputBlur,ji=cn.title,Bi=He.useState(!1),io=(0,je.Z)(Bi,2),Qn=io[0],zi=io[1],ar=Ur==="combobox",vi=ar||Gr,Zi=mi[0],Fi=on||"";ar&&Ci&&!Qn&&(Fi=Ci),He.useEffect(function(){ar&&zi(!1)},[ar,Ci]);var fo=Ur!=="combobox"&&!Wn&&!Gr?!1:!!Fi,co=ji===void 0?qt(Zi):ji,Wi=He.useMemo(function(){return Zi?null:He.createElement("span",{className:"".concat(Ir,"-selection-placeholder"),style:fo?{visibility:"hidden"}:void 0},Qr)},[Zi,fo,Qr,Ir]);return He.createElement("span",{className:"".concat(Ir,"-selection-wrap")},He.createElement("span",{className:"".concat(Ir,"-selection-search")},He.createElement(zt,{ref:Fn,prefixCls:Ir,id:Xt,open:Wn,inputElement:kr,disabled:fr,autoFocus:dn,autoComplete:Ue,editable:vi,activeDescendantId:Mr,value:Fi,onKeyDown:mn,onMouseDown:li,onChange:function(_n){zi(!0),bi(_n)},onPaste:qr,onCompositionStart:Pi,onCompositionEnd:Ii,onBlur:Hi,tabIndex:rr,attrs:(0,Je.Z)(cn,!0),maxLength:ar?Vi:void 0})),!ar&&Zi?He.createElement("span",{className:"".concat(Ir,"-selection-item"),title:co,style:fo?{visibility:"hidden"}:void 0},Zi.label):null,Wi)},Ot=Vt,Nn=function(cn,kr){var Ir=(0,He.useRef)(null),Xt=(0,He.useRef)(!1),Fn=cn.prefixCls,fr=cn.open,dn=cn.mode,Ue=cn.showSearch,Mr=cn.tokenWithEnter,Ur=cn.disabled,Wn=cn.prefix,mi=cn.autoClearSearchValue,Qr=cn.onSearch,rr=cn.onSearchSubmit,Gr=cn.onToggleOpen,on=cn.onInputKeyDown,Ci=cn.onInputBlur,Vi=cn.domRef;He.useImperativeHandle(kr,function(){return{focus:function(co){Ir.current.focus(co)},blur:function(){Ir.current.blur()}}});var mn=Ae(0),li=(0,je.Z)(mn,2),bi=li[0],qr=li[1],Pi=function(co){var Wi=co.which,zo=Ir.current instanceof HTMLTextAreaElement;!zo&&fr&&(Wi===Xe.Z.UP||Wi===Xe.Z.DOWN)&&co.preventDefault(),on&&on(co),Wi===Xe.Z.ENTER&&dn==="tags"&&!Xt.current&&!fr&&(rr==null||rr(co.target.value)),!(zo&&!fr&&~[Xe.Z.UP,Xe.Z.DOWN,Xe.Z.LEFT,Xe.Z.RIGHT].indexOf(Wi))&&nt(Wi)&&Gr(!0)},Ii=function(){qr(!0)},Hi=(0,He.useRef)(null),ji=function(co){Qr(co,!0,Xt.current)!==!1&&Gr(!0)},Bi=function(){Xt.current=!0},io=function(co){Xt.current=!1,dn!=="combobox"&&ji(co.target.value)},Qn=function(co){var Wi=co.target.value;if(Mr&&Hi.current&&/[\r\n]/.test(Hi.current)){var zo=Hi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Wi=Wi.replace(zo,Hi.current)}Hi.current=null,ji(Wi)},zi=function(co){var Wi=co.clipboardData,zo=Wi==null?void 0:Wi.getData("text");Hi.current=zo||""},ar=function(co){var Wi=co.target;if(Wi!==Ir.current){var zo=document.body.style.msTouchAction!==void 0;zo?setTimeout(function(){Ir.current.focus()}):Ir.current.focus()}},vi=function(co){var Wi=bi();co.target!==Ir.current&&!Wi&&!(dn==="combobox"&&Ur)&&co.preventDefault(),(dn!=="combobox"&&(!Ue||!Wi)||!fr)&&(fr&&mi!==!1&&Qr("",!0,!1),Gr())},Zi={inputRef:Ir,onInputKeyDown:Pi,onInputMouseDown:Ii,onInputChange:Qn,onInputPaste:zi,onInputCompositionStart:Bi,onInputCompositionEnd:io,onInputBlur:Ci},Fi=dn==="multiple"||dn==="tags"?He.createElement(Vn,(0,oe.Z)({},cn,Zi)):He.createElement(Ot,(0,oe.Z)({},cn,Zi));return He.createElement("div",{ref:Vi,className:"".concat(Fn,"-selector"),onClick:ar,onMouseDown:vi},Wn&&He.createElement("div",{className:"".concat(Fn,"-prefix")},Wn),Fi)},tr=He.forwardRef(Nn),hr=tr,ot=ae(65966),_e=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Re=function(cn){var kr=cn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:kr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:kr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:kr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:kr,adjustY:1},htmlRegion:"scroll"}}},Ye=function(cn,kr){var Ir=cn.prefixCls,Xt=cn.disabled,Fn=cn.visible,fr=cn.children,dn=cn.popupElement,Ue=cn.animation,Mr=cn.transitionName,Ur=cn.dropdownStyle,Wn=cn.dropdownClassName,mi=cn.direction,Qr=mi===void 0?"ltr":mi,rr=cn.placement,Gr=cn.builtinPlacements,on=cn.dropdownMatchSelectWidth,Ci=cn.dropdownRender,Vi=cn.dropdownAlign,mn=cn.getPopupContainer,li=cn.empty,bi=cn.getTriggerDOMNode,qr=cn.onPopupVisibleChange,Pi=cn.onPopupMouseEnter,Ii=(0,Te.Z)(cn,_e),Hi="".concat(Ir,"-dropdown"),ji=dn;Ci&&(ji=Ci(dn));var Bi=He.useMemo(function(){return Gr||Re(on)},[Gr,on]),io=Ue?"".concat(Hi,"-").concat(Ue):Mr,Qn=typeof on=="number",zi=He.useMemo(function(){return Qn?null:on===!1?"minWidth":"width"},[on,Qn]),ar=Ur;Qn&&(ar=(0,De.Z)((0,De.Z)({},ar),{},{width:on}));var vi=He.useRef(null);return He.useImperativeHandle(kr,function(){return{getPopupElement:function(){var Fi;return(Fi=vi.current)===null||Fi===void 0?void 0:Fi.popupElement}}}),He.createElement(ot.Z,(0,oe.Z)({},Ii,{showAction:qr?["click"]:[],hideAction:qr?["click"]:[],popupPlacement:rr||(Qr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Bi,prefixCls:Hi,popupTransitionName:io,popup:He.createElement("div",{onMouseEnter:Pi},ji),ref:vi,stretch:zi,popupAlign:Vi,popupVisible:Fn,getPopupContainer:mn,popupClassName:$e()(Wn,(0,ke.Z)({},"".concat(Hi,"-empty"),li)),popupStyle:ar,getTriggerDOMNode:bi,onPopupVisibleChange:qr}),fr)},at=He.forwardRef(Ye),Be=at,bt=ae(21696);function bn(Lt,cn){var kr=Lt.key,Ir;return"value"in Lt&&(Ir=Lt.value),kr!=null?kr:Ir!==void 0?Ir:"rc-index-key-".concat(cn)}function sn(Lt){return typeof Lt!="undefined"&&!Number.isNaN(Lt)}function Bn(Lt,cn){var kr=Lt||{},Ir=kr.label,Xt=kr.value,Fn=kr.options,fr=kr.groupLabel,dn=Ir||(cn?"children":"label");return{label:dn,value:Xt||"value",options:Fn||"options",groupLabel:fr||dn}}function It(Lt){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kr=cn.fieldNames,Ir=cn.childrenAsData,Xt=[],Fn=Bn(kr,!1),fr=Fn.label,dn=Fn.value,Ue=Fn.options,Mr=Fn.groupLabel;function Ur(Wn,mi){Array.isArray(Wn)&&Wn.forEach(function(Qr){if(mi||!(Ue in Qr)){var rr=Qr[dn];Xt.push({key:bn(Qr,Xt.length),groupOption:mi,data:Qr,label:Qr[fr],value:rr})}else{var Gr=Qr[Mr];Gr===void 0&&Ir&&(Gr=Qr.label),Xt.push({key:bn(Qr,Xt.length),group:!0,data:Qr,label:Gr}),Ur(Qr[Ue],!0)}})}return Ur(Lt,!1),Xt}function _t(Lt){var cn=(0,De.Z)({},Lt);return"props"in cn||Object.defineProperty(cn,"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`."),cn}}),cn}var jt=function(cn,kr,Ir){if(!kr||!kr.length)return null;var Xt=!1,Fn=function dn(Ue,Mr){var Ur=(0,bt.Z)(Mr),Wn=Ur[0],mi=Ur.slice(1);if(!Wn)return[Ue];var Qr=Ue.split(Wn);return Xt=Xt||Qr.length>1,Qr.reduce(function(rr,Gr){return[].concat((0,Pe.Z)(rr),(0,Pe.Z)(dn(Gr,mi)))},[]).filter(Boolean)},fr=Fn(cn,kr);return Xt?typeof Ir!="undefined"?fr.slice(0,Ir):fr:null},hn=He.createContext(null),En=hn;function pn(Lt){var cn=Lt.visible,kr=Lt.values;if(!cn)return null;var Ir=50;return He.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(kr.slice(0,Ir).map(function(Xt){var Fn=Xt.label,fr=Xt.value;return["number","string"].includes((0,Ge.Z)(Fn))?Fn:fr}).join(", ")),kr.length>Ir?", ...":null)}var Rt=["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"],Tn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Yt=function(cn){return cn==="tags"||cn==="multiple"},en=He.forwardRef(function(Lt,cn){var kr,Ir=Lt.id,Xt=Lt.prefixCls,Fn=Lt.className,fr=Lt.showSearch,dn=Lt.tagRender,Ue=Lt.direction,Mr=Lt.omitDomProps,Ur=Lt.displayValues,Wn=Lt.onDisplayValuesChange,mi=Lt.emptyOptions,Qr=Lt.notFoundContent,rr=Qr===void 0?"Not Found":Qr,Gr=Lt.onClear,on=Lt.mode,Ci=Lt.disabled,Vi=Lt.loading,mn=Lt.getInputElement,li=Lt.getRawInputElement,bi=Lt.open,qr=Lt.defaultOpen,Pi=Lt.onDropdownVisibleChange,Ii=Lt.activeValue,Hi=Lt.onActiveValueChange,ji=Lt.activeDescendantId,Bi=Lt.searchValue,io=Lt.autoClearSearchValue,Qn=Lt.onSearch,zi=Lt.onSearchSplit,ar=Lt.tokenSeparators,vi=Lt.allowClear,Zi=Lt.prefix,Fi=Lt.suffixIcon,fo=Lt.clearIcon,co=Lt.OptionList,Wi=Lt.animation,zo=Lt.transitionName,_n=Lt.dropdownStyle,vr=Lt.dropdownClassName,An=Lt.dropdownMatchSelectWidth,it=Lt.dropdownRender,Dr=Lt.dropdownAlign,Wr=Lt.placement,pi=Lt.builtinPlacements,hi=Lt.getPopupContainer,ai=Lt.showAction,mr=ai===void 0?[]:ai,ht=Lt.onFocus,wn=Lt.onBlur,Pn=Lt.onKeyUp,Gn=Lt.onKeyDown,gn=Lt.onMouseDown,$n=(0,Te.Z)(Lt,Rt),Yn=Yt(on),an=(fr!==void 0?fr:Yn)||on==="combobox",cr=(0,De.Z)({},$n);Tn.forEach(function(ma){delete cr[ma]}),Mr==null||Mr.forEach(function(ma){delete cr[ma]});var Vr=He.useState(!1),Ni=(0,je.Z)(Vr,2),si=Ni[0],Si=Ni[1];He.useEffect(function(){Si((0,Fe.Z)())},[]);var Ri=He.useRef(null),_i=He.useRef(null),ao=He.useRef(null),wo=He.useRef(null),Ho=He.useRef(null),In=He.useRef(!1),ko=be(),po=(0,je.Z)(ko,3),Yi=po[0],Oi=po[1],Oo=po[2];He.useImperativeHandle(cn,function(){var ma,Vo;return{focus:(ma=wo.current)===null||ma===void 0?void 0:ma.focus,blur:(Vo=wo.current)===null||Vo===void 0?void 0:Vo.blur,scrollTo:function(Mi){var ps;return(ps=Ho.current)===null||ps===void 0?void 0:ps.scrollTo(Mi)},nativeElement:Ri.current||_i.current}});var Wo=He.useMemo(function(){var ma;if(on!=="combobox")return Bi;var Vo=(ma=Ur[0])===null||ma===void 0?void 0:ma.value;return typeof Vo=="string"||typeof Vo=="number"?String(Vo):""},[Bi,on,Ur]),jn=on==="combobox"&&typeof mn=="function"&&mn()||null,vo=typeof li=="function"&&li(),ia=(0,te.x1)(_i,vo==null||(kr=vo.props)===null||kr===void 0?void 0:kr.ref),za=He.useState(!1),hs=(0,je.Z)(za,2),il=hs[0],Ls=hs[1];(0,Mt.Z)(function(){Ls(!0)},[]);var no=(0,lt.Z)(!1,{defaultValue:qr,value:bi}),Ra=(0,je.Z)(no,2),Ma=Ra[0],ts=Ra[1],Oa=il?Ma:!1,_a=!rr&&mi;(Ci||_a&&Oa&&on==="combobox")&&(Oa=!1);var fi=_a?!1:Oa,Qi=He.useCallback(function(ma){var Vo=ma!==void 0?ma:!Oa;Ci||(ts(Vo),Oa!==Vo&&(Pi==null||Pi(Vo)))},[Ci,Oa,ts,Pi]),ho=He.useMemo(function(){return(ar||[]).some(function(ma){return[`
|
|
|
`,`\r
|
|
|
`].includes(ma)})},[ar]),Io=He.useContext(En)||{},Do=Io.maxCount,sa=Io.rawValues,Ji=function(Vo,cs,Mi){if(!(Yn&&sn(Do)&&(sa==null?void 0:sa.size)>=Do)){var ps=!0,tn=Vo;Hi==null||Hi(null);var Nr=jt(Vo,ar,sn(Do)?Do-sa.size:void 0),Tl=Mi?null:Nr;return on!=="combobox"&&Tl&&(tn="",zi==null||zi(Tl),Qi(!1),ps=!1),Qn&&Wo!==tn&&Qn(tn,{source:cs?"typing":"effect"}),ps}},Ss=function(Vo){!Vo||!Vo.trim()||Qn(Vo,{source:"submit"})};He.useEffect(function(){!Oa&&!Yn&&on!=="combobox"&&Ji("",!1,!1)},[Oa]),He.useEffect(function(){Ma&&Ci&&ts(!1),Ci&&!In.current&&Oi(!1)},[Ci]);var pa=Ae(),Ga=(0,je.Z)(pa,2),Fo=Ga[0],ga=Ga[1],Hs=He.useRef(!1),da=function(Vo){var cs=Fo(),Mi=Vo.key,ps=Mi==="Enter";if(ps&&(on!=="combobox"&&Vo.preventDefault(),Oa||Qi(!0)),ga(!!Wo),Mi==="Backspace"&&!cs&&Yn&&!Wo&&Ur.length){for(var tn=(0,Pe.Z)(Ur),Nr=null,Tl=tn.length-1;Tl>=0;Tl-=1){var Su=tn[Tl];if(!Su.disabled){tn.splice(Tl,1),Nr=Su;break}}Nr&&Wn(tn,{type:"remove",values:[Nr]})}for(var ja=arguments.length,rs=new Array(ja>1?ja-1:0),Al=1;Al<ja;Al++)rs[Al-1]=arguments[Al];if(Oa&&(!ps||!Hs.current)){var Fl;ps&&(Hs.current=!0),(Fl=Ho.current)===null||Fl===void 0||Fl.onKeyDown.apply(Fl,[Vo].concat(rs))}Gn==null||Gn.apply(void 0,[Vo].concat(rs))},Rs=function(Vo){for(var cs=arguments.length,Mi=new Array(cs>1?cs-1:0),ps=1;ps<cs;ps++)Mi[ps-1]=arguments[ps];if(Oa){var tn;(tn=Ho.current)===null||tn===void 0||tn.onKeyUp.apply(tn,[Vo].concat(Mi))}Vo.key==="Enter"&&(Hs.current=!1),Pn==null||Pn.apply(void 0,[Vo].concat(Mi))},ol=function(Vo){var cs=Ur.filter(function(Mi){return Mi!==Vo});Wn(cs,{type:"remove",values:[Vo]})},Xs=function(){Hs.current=!1},$a=He.useRef(!1),Kl=function(){Oi(!0),Ci||(ht&&!$a.current&&ht.apply(void 0,arguments),mr.includes("focus")&&Qi(!0)),$a.current=!0},nc=function(){In.current=!0,Oi(!1,function(){$a.current=!1,In.current=!1,Qi(!1)}),!Ci&&(Wo&&(on==="tags"?Qn(Wo,{source:"submit"}):on==="multiple"&&Qn("",{source:"blur"})),wn&&wn.apply(void 0,arguments))},es=[];He.useEffect(function(){return function(){es.forEach(function(ma){return clearTimeout(ma)}),es.splice(0,es.length)}},[]);var Pl=function(Vo){var cs,Mi=Vo.target,ps=(cs=ao.current)===null||cs===void 0?void 0:cs.getPopupElement();if(ps&&ps.contains(Mi)){var tn=setTimeout(function(){var ja=es.indexOf(tn);if(ja!==-1&&es.splice(ja,1),Oo(),!si&&!ps.contains(document.activeElement)){var rs;(rs=wo.current)===null||rs===void 0||rs.focus()}});es.push(tn)}for(var Nr=arguments.length,Tl=new Array(Nr>1?Nr-1:0),Su=1;Su<Nr;Su++)Tl[Su-1]=arguments[Su];gn==null||gn.apply(void 0,[Vo].concat(Tl))},ll=He.useState({}),ul=(0,je.Z)(ll,2),rc=ul[1];function yc(){rc({})}var ns;vo&&(ns=function(Vo){Qi(Vo)}),Ie(function(){var ma;return[Ri.current,(ma=ao.current)===null||ma===void 0?void 0:ma.getPopupElement()]},fi,Qi,!!vo);var ic=He.useMemo(function(){return(0,De.Z)((0,De.Z)({},Lt),{},{notFoundContent:rr,open:Oa,triggerOpen:fi,id:Ir,showSearch:an,multiple:Yn,toggleOpen:Qi})},[Lt,rr,fi,Oa,Ir,an,Yn,Qi]),oc=!!Fi||Vi,Mu;oc&&(Mu=He.createElement(he,{className:$e()("".concat(Xt,"-arrow"),(0,ke.Z)({},"".concat(Xt,"-arrow-loading"),Vi)),customizeIcon:Fi,customizeIconProps:{loading:Vi,searchValue:Wo,open:Oa,focused:Yi,showSearch:an}}));var Ou=function(){var Vo;Gr==null||Gr(),(Vo=wo.current)===null||Vo===void 0||Vo.focus(),Wn([],{type:"clear",values:Ur}),Ji("",!1,!1)},Ms=ue(Xt,Ou,Ur,vi,fo,Ci,Wo,on),Qs=Ms.allowClear,fs=Ms.clearIcon,ks=He.createElement(co,{ref:Ho}),yu=$e()(Xt,Fn,(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(Xt,"-focused"),Yi),"".concat(Xt,"-multiple"),Yn),"".concat(Xt,"-single"),!Yn),"".concat(Xt,"-allow-clear"),vi),"".concat(Xt,"-show-arrow"),oc),"".concat(Xt,"-disabled"),Ci),"".concat(Xt,"-loading"),Vi),"".concat(Xt,"-open"),Oa),"".concat(Xt,"-customize-input"),jn),"".concat(Xt,"-show-search"),an)),zs=He.createElement(Be,{ref:ao,disabled:Ci,prefixCls:Xt,visible:fi,popupElement:ks,animation:Wi,transitionName:zo,dropdownStyle:_n,dropdownClassName:vr,direction:Ue,dropdownMatchSelectWidth:An,dropdownRender:it,dropdownAlign:Dr,placement:Wr,builtinPlacements:pi,getPopupContainer:hi,empty:mi,getTriggerDOMNode:function(Vo){return _i.current||Vo},onPopupVisibleChange:ns,onPopupMouseEnter:yc},vo?He.cloneElement(vo,{ref:ia}):He.createElement(hr,(0,oe.Z)({},Lt,{domRef:_i,prefixCls:Xt,inputElement:jn,ref:wo,id:Ir,prefix:Zi,showSearch:an,autoClearSearchValue:io,mode:on,activeDescendantId:ji,tagRender:dn,values:Ur,open:Oa,onToggleOpen:Qi,activeValue:Ii,searchValue:Wo,onSearch:Ji,onSearchSubmit:Ss,onRemove:ol,tokenWithEnter:ho,onInputBlur:Xs}))),wa;return vo?wa=zs:wa=He.createElement("div",(0,oe.Z)({className:yu},cr,{ref:Ri,onMouseDown:Pl,onKeyDown:da,onKeyUp:Rs,onFocus:Kl,onBlur:nc}),He.createElement(pn,{visible:Yi&&!Oa,values:Ur}),zs,Mu,Qs&&fs),He.createElement(fe.Provider,{value:ic},wa)}),vn=en,zn=function(){return null};zn.isSelectOptGroup=!0;var un=zn,Et=function(){return null};Et.isSelectOption=!0;var Xn=Et,ir=ae(80547),Jt=ae(2738),Er=ae(65283);function ni(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Rr=["disabled","title","children","style","className"];function Mn(Lt){return typeof Lt=="string"||typeof Lt=="number"}var ei=function(cn,kr){var Ir=me(),Xt=Ir.prefixCls,Fn=Ir.id,fr=Ir.open,dn=Ir.multiple,Ue=Ir.mode,Mr=Ir.searchValue,Ur=Ir.toggleOpen,Wn=Ir.notFoundContent,mi=Ir.onPopupScroll,Qr=He.useContext(En),rr=Qr.maxCount,Gr=Qr.flattenOptions,on=Qr.onActiveValue,Ci=Qr.defaultActiveFirstOption,Vi=Qr.onSelect,mn=Qr.menuItemSelectedIcon,li=Qr.rawValues,bi=Qr.fieldNames,qr=Qr.virtual,Pi=Qr.direction,Ii=Qr.listHeight,Hi=Qr.listItemHeight,ji=Qr.optionRender,Bi="".concat(Xt,"-item"),io=(0,ir.Z)(function(){return Gr},[fr,Gr],function(ai,mr){return mr[0]&&ai[1]!==mr[1]}),Qn=He.useRef(null),zi=He.useMemo(function(){return dn&&sn(rr)&&(li==null?void 0:li.size)>=rr},[dn,rr,li==null?void 0:li.size]),ar=function(mr){mr.preventDefault()},vi=function(mr){var ht;(ht=Qn.current)===null||ht===void 0||ht.scrollTo(typeof mr=="number"?{index:mr}:mr)},Zi=He.useCallback(function(ai){return Ue==="combobox"?!1:li.has(ai)},[Ue,(0,Pe.Z)(li).toString(),li.size]),Fi=function(mr){for(var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,wn=io.length,Pn=0;Pn<wn;Pn+=1){var Gn=(mr+Pn*ht+wn)%wn,gn=io[Gn]||{},$n=gn.group,Yn=gn.data;if(!$n&&!(Yn!=null&&Yn.disabled)&&(Zi(Yn.value)||!zi))return Gn}return-1},fo=He.useState(function(){return Fi(0)}),co=(0,je.Z)(fo,2),Wi=co[0],zo=co[1],_n=function(mr){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zo(mr);var wn={source:ht?"keyboard":"mouse"},Pn=io[mr];if(!Pn){on(null,-1,wn);return}on(Pn.value,mr,wn)};(0,He.useEffect)(function(){_n(Ci!==!1?Fi(0):-1)},[io.length,Mr]);var vr=He.useCallback(function(ai){return Ue==="combobox"?String(ai).toLowerCase()===Mr.toLowerCase():li.has(ai)},[Ue,Mr,(0,Pe.Z)(li).toString(),li.size]);(0,He.useEffect)(function(){var ai=setTimeout(function(){if(!dn&&fr&&li.size===1){var ht=Array.from(li)[0],wn=io.findIndex(function(Pn){var Gn=Pn.data;return Mr?String(Gn.value).startsWith(Mr):Gn.value===ht});wn!==-1&&(_n(wn),vi(wn))}});if(fr){var mr;(mr=Qn.current)===null||mr===void 0||mr.scrollTo(void 0)}return function(){return clearTimeout(ai)}},[fr,Mr]);var An=function(mr){mr!==void 0&&Vi(mr,{selected:!li.has(mr)}),dn||Ur(!1)};if(He.useImperativeHandle(kr,function(){return{onKeyDown:function(mr){var ht=mr.which,wn=mr.ctrlKey;switch(ht){case Xe.Z.N:case Xe.Z.P:case Xe.Z.UP:case Xe.Z.DOWN:{var Pn=0;if(ht===Xe.Z.UP?Pn=-1:ht===Xe.Z.DOWN?Pn=1:ni()&&wn&&(ht===Xe.Z.N?Pn=1:ht===Xe.Z.P&&(Pn=-1)),Pn!==0){var Gn=Fi(Wi+Pn,Pn);vi(Gn),_n(Gn,!0)}break}case Xe.Z.TAB:case Xe.Z.ENTER:{var gn,$n=io[Wi];$n&&!($n!=null&&(gn=$n.data)!==null&&gn!==void 0&&gn.disabled)&&!zi?An($n.value):An(void 0),fr&&mr.preventDefault();break}case Xe.Z.ESC:Ur(!1),fr&&mr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(mr){vi(mr)}}}),io.length===0)return He.createElement("div",{role:"listbox",id:"".concat(Fn,"_list"),className:"".concat(Bi,"-empty"),onMouseDown:ar},Wn);var it=Object.keys(bi).map(function(ai){return bi[ai]}),Dr=function(mr){return mr.label};function Wr(ai,mr){var ht=ai.group;return{role:ht?"presentation":"option",id:"".concat(Fn,"_list_").concat(mr)}}var pi=function(mr){var ht=io[mr];if(!ht)return null;var wn=ht.data||{},Pn=wn.value,Gn=ht.group,gn=(0,Je.Z)(wn,!0),$n=Dr(ht);return ht?He.createElement("div",(0,oe.Z)({"aria-label":typeof $n=="string"&&!Gn?$n:null},gn,{key:mr},Wr(ht,mr),{"aria-selected":vr(Pn)}),Pn):null},hi={role:"listbox",id:"".concat(Fn,"_list")};return He.createElement(He.Fragment,null,qr&&He.createElement("div",(0,oe.Z)({},hi,{style:{height:0,width:0,overflow:"hidden"}}),pi(Wi-1),pi(Wi),pi(Wi+1)),He.createElement(Er.Z,{itemKey:"key",ref:Qn,data:io,height:Ii,itemHeight:Hi,fullHeight:!1,onMouseDown:ar,onScroll:mi,virtual:qr,direction:Pi,innerProps:qr?null:hi},function(ai,mr){var ht=ai.group,wn=ai.groupOption,Pn=ai.data,Gn=ai.label,gn=ai.value,$n=Pn.key;if(ht){var Yn,an=(Yn=Pn.title)!==null&&Yn!==void 0?Yn:Mn(Gn)?Gn.toString():void 0;return He.createElement("div",{className:$e()(Bi,"".concat(Bi,"-group"),Pn.className),title:an},Gn!==void 0?Gn:$n)}var cr=Pn.disabled,Vr=Pn.title,Ni=Pn.children,si=Pn.style,Si=Pn.className,Ri=(0,Te.Z)(Pn,Rr),_i=(0,Jt.Z)(Ri,it),ao=Zi(gn),wo=cr||!ao&&zi,Ho="".concat(Bi,"-option"),In=$e()(Bi,Ho,Si,(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Ho,"-grouped"),wn),"".concat(Ho,"-active"),Wi===mr&&!wo),"".concat(Ho,"-disabled"),wo),"".concat(Ho,"-selected"),ao)),ko=Dr(ai),po=!mn||typeof mn=="function"||ao,Yi=typeof ko=="number"?ko:ko||gn,Oi=Mn(Yi)?Yi.toString():void 0;return Vr!==void 0&&(Oi=Vr),He.createElement("div",(0,oe.Z)({},(0,Je.Z)(_i),qr?{}:Wr(ai,mr),{"aria-selected":vr(gn),className:In,title:Oi,onMouseMove:function(){Wi===mr||wo||_n(mr)},onClick:function(){wo||An(gn)},style:si}),He.createElement("div",{className:"".concat(Ho,"-content")},typeof ji=="function"?ji(ai,{index:mr}):Yi),He.isValidElement(mn)||ao,po&&He.createElement(he,{className:"".concat(Bi,"-option-state"),customizeIcon:mn,customizeIconProps:{value:gn,disabled:wo,isSelected:ao}},ao?"\u2713":null))}))},Kr=He.forwardRef(ei),lr=Kr,jr=function(Lt,cn){var kr=He.useRef({values:new Map,options:new Map}),Ir=He.useMemo(function(){var Fn=kr.current,fr=Fn.values,dn=Fn.options,Ue=Lt.map(function(Wn){if(Wn.label===void 0){var mi;return(0,De.Z)((0,De.Z)({},Wn),{},{label:(mi=fr.get(Wn.value))===null||mi===void 0?void 0:mi.label})}return Wn}),Mr=new Map,Ur=new Map;return Ue.forEach(function(Wn){Mr.set(Wn.value,Wn),Ur.set(Wn.value,cn.get(Wn.value)||dn.get(Wn.value))}),kr.current.values=Mr,kr.current.options=Ur,Ue},[Lt,cn]),Xt=He.useCallback(function(Fn){return cn.get(Fn)||kr.current.options.get(Fn)},[cn]);return[Ir,Xt]};function oi(Lt,cn){return Qt(Lt).join("").toUpperCase().includes(cn)}var Oe=function(Lt,cn,kr,Ir,Xt){return He.useMemo(function(){if(!kr||Ir===!1)return Lt;var Fn=cn.options,fr=cn.label,dn=cn.value,Ue=[],Mr=typeof Ir=="function",Ur=kr.toUpperCase(),Wn=Mr?Ir:function(Qr,rr){return Xt?oi(rr[Xt],Ur):rr[Fn]?oi(rr[fr!=="children"?fr:"label"],Ur):oi(rr[dn],Ur)},mi=Mr?function(Qr){return _t(Qr)}:function(Qr){return Qr};return Lt.forEach(function(Qr){if(Qr[Fn]){var rr=Wn(kr,mi(Qr));if(rr)Ue.push(Qr);else{var Gr=Qr[Fn].filter(function(on){return Wn(kr,mi(on))});Gr.length&&Ue.push((0,De.Z)((0,De.Z)({},Qr),{},(0,ke.Z)({},Fn,Gr)))}return}Wn(kr,mi(Qr))&&Ue.push(Qr)}),Ue},[Lt,Ir,Xt,kr,cn])},dr=ae(6551),Pr=ae(11592),or=["children","value"],Lr=["children"];function zr(Lt){var cn=Lt,kr=cn.key,Ir=cn.props,Xt=Ir.children,Fn=Ir.value,fr=(0,Te.Z)(Ir,or);return(0,De.Z)({key:kr,value:Fn!==void 0?Fn:kr,children:Xt},fr)}function wr(Lt){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Pr.Z)(Lt).map(function(kr,Ir){if(!He.isValidElement(kr)||!kr.type)return null;var Xt=kr,Fn=Xt.type.isSelectOptGroup,fr=Xt.key,dn=Xt.props,Ue=dn.children,Mr=(0,Te.Z)(dn,Lr);return cn||!Fn?zr(kr):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(fr===null?Ir:fr,"__"),label:fr},Mr),{},{options:wr(Ue)})}).filter(function(kr){return kr})}var Ti=function(cn,kr,Ir,Xt,Fn){return He.useMemo(function(){var fr=cn,dn=!cn;dn&&(fr=wr(kr));var Ue=new Map,Mr=new Map,Ur=function(Qr,rr,Gr){Gr&&typeof Gr=="string"&&Qr.set(rr[Gr],rr)},Wn=function mi(Qr){for(var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gr=0;Gr<Qr.length;Gr+=1){var on=Qr[Gr];!on[Ir.options]||rr?(Ue.set(on[Ir.value],on),Ur(Mr,on,Ir.label),Ur(Mr,on,Xt),Ur(Mr,on,Fn)):mi(on[Ir.options],!0)}};return Wn(fr),{options:fr,valueOptions:Ue,labelOptions:Mr}},[cn,kr,Ir,Xt,Fn])},On=Ti;function yn(Lt){var cn=He.useRef();cn.current=Lt;var kr=He.useCallback(function(){return cn.current.apply(cn,arguments)},[]);return kr}function Sn(Lt){var cn=Lt.mode,kr=Lt.options,Ir=Lt.children,Xt=Lt.backfill,Fn=Lt.allowClear,fr=Lt.placeholder,dn=Lt.getInputElement,Ue=Lt.showSearch,Mr=Lt.onSearch,Ur=Lt.defaultOpen,Wn=Lt.autoFocus,mi=Lt.labelInValue,Qr=Lt.value,rr=Lt.inputValue,Gr=Lt.optionLabelProp,on=isMultiple(cn),Ci=Ue!==void 0?Ue:on||cn==="combobox",Vi=kr||convertChildrenToData(Ir);if(warning(cn!=="tags"||Vi.every(function(qr){return!qr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),cn==="tags"||cn==="combobox"){var mn=Vi.some(function(qr){return qr.options?qr.options.some(function(Pi){return typeof("value"in Pi?Pi.value:Pi.key)=="number"}):typeof("value"in qr?qr.value:qr.key)=="number"});warning(!mn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(cn!=="combobox"||!Gr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(cn==="combobox"||!Xt,"`backfill` only works with `combobox` mode."),warning(cn==="combobox"||!dn,"`getInputElement` only work with `combobox` mode."),noteOnce(cn!=="combobox"||!dn||!Fn||!fr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Mr&&!Ci&&cn!=="combobox"&&cn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ur||Wn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Qr!=null){var li=toArray(Qr);warning(!mi||li.every(function(qr){return _typeof(qr)==="object"&&("key"in qr||"value"in qr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!on||Array.isArray(Qr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ir){var bi=null;toNodeArray(Ir).some(function(qr){if(!React.isValidElement(qr)||!qr.type)return!1;var Pi=qr,Ii=Pi.type;if(Ii.isSelectOption)return!1;if(Ii.isSelectOptGroup){var Hi=toNodeArray(qr.props.children).every(function(ji){return!React.isValidElement(ji)||!qr.type||ji.type.isSelectOption?!0:(bi=ji.type,!1)});return!Hi}return bi=Ii,!0}),bi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(bi.displayName||bi.name||bi,"`.")),warning(rr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Jn(Lt,cn){if(Lt){var kr=function Ir(Xt){for(var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fr=0;fr<Xt.length;fr++){var dn=Xt[fr];if(dn[cn==null?void 0:cn.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Fn&&Array.isArray(dn[cn==null?void 0:cn.options])&&Ir(dn[cn==null?void 0:cn.options],!0))break}};kr(Lt)}}var ui=null,Yr=["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"],ci=["inputValue"];function ur(Lt){return!Lt||(0,Ge.Z)(Lt)!=="object"}var Xr=He.forwardRef(function(Lt,cn){var kr=Lt.id,Ir=Lt.mode,Xt=Lt.prefixCls,Fn=Xt===void 0?"rc-select":Xt,fr=Lt.backfill,dn=Lt.fieldNames,Ue=Lt.inputValue,Mr=Lt.searchValue,Ur=Lt.onSearch,Wn=Lt.autoClearSearchValue,mi=Wn===void 0?!0:Wn,Qr=Lt.onSelect,rr=Lt.onDeselect,Gr=Lt.dropdownMatchSelectWidth,on=Gr===void 0?!0:Gr,Ci=Lt.filterOption,Vi=Lt.filterSort,mn=Lt.optionFilterProp,li=Lt.optionLabelProp,bi=Lt.options,qr=Lt.optionRender,Pi=Lt.children,Ii=Lt.defaultActiveFirstOption,Hi=Lt.menuItemSelectedIcon,ji=Lt.virtual,Bi=Lt.direction,io=Lt.listHeight,Qn=io===void 0?200:io,zi=Lt.listItemHeight,ar=zi===void 0?20:zi,vi=Lt.labelRender,Zi=Lt.value,Fi=Lt.defaultValue,fo=Lt.labelInValue,co=Lt.onChange,Wi=Lt.maxCount,zo=(0,Te.Z)(Lt,Yr),_n=(0,dr.ZP)(kr),vr=Yt(Ir),An=!!(!bi&&Pi),it=He.useMemo(function(){return Ci===void 0&&Ir==="combobox"?!1:Ci},[Ci,Ir]),Dr=He.useMemo(function(){return Bn(dn,An)},[JSON.stringify(dn),An]),Wr=(0,lt.Z)("",{value:Mr!==void 0?Mr:Ue,postState:function(ho){return ho||""}}),pi=(0,je.Z)(Wr,2),hi=pi[0],ai=pi[1],mr=On(bi,Pi,Dr,mn,li),ht=mr.valueOptions,wn=mr.labelOptions,Pn=mr.options,Gn=He.useCallback(function(Qi){var ho=Qt(Qi);return ho.map(function(Io){var Do,sa,Ji,Ss,pa;if(ur(Io))Do=Io;else{var Ga;Ji=Io.key,sa=Io.label,Do=(Ga=Io.value)!==null&&Ga!==void 0?Ga:Ji}var Fo=ht.get(Do);if(Fo){var ga;if(sa===void 0&&(sa=Fo==null?void 0:Fo[li||Dr.label]),Ji===void 0&&(Ji=(ga=Fo==null?void 0:Fo.key)!==null&&ga!==void 0?ga:Do),Ss=Fo==null?void 0:Fo.disabled,pa=Fo==null?void 0:Fo.title,0)var Hs}return{label:sa,value:Do,key:Ji,disabled:Ss,title:pa}})},[Dr,li,ht]),gn=(0,lt.Z)(Fi,{value:Zi}),$n=(0,je.Z)(gn,2),Yn=$n[0],an=$n[1],cr=He.useMemo(function(){var Qi,ho=vr&&Yn===null?[]:Yn,Io=Gn(ho);return Ir==="combobox"&&pt((Qi=Io[0])===null||Qi===void 0?void 0:Qi.value)?[]:Io},[Yn,Gn,Ir,vr]),Vr=jr(cr,ht),Ni=(0,je.Z)(Vr,2),si=Ni[0],Si=Ni[1],Ri=He.useMemo(function(){if(!Ir&&si.length===1){var Qi=si[0];if(Qi.value===null&&(Qi.label===null||Qi.label===void 0))return[]}return si.map(function(ho){var Io;return(0,De.Z)((0,De.Z)({},ho),{},{label:(Io=typeof vi=="function"?vi(ho):ho.label)!==null&&Io!==void 0?Io:ho.value})})},[Ir,si,vi]),_i=He.useMemo(function(){return new Set(si.map(function(Qi){return Qi.value}))},[si]);He.useEffect(function(){if(Ir==="combobox"){var Qi,ho=(Qi=si[0])===null||Qi===void 0?void 0:Qi.value;ai(St(ho)?String(ho):"")}},[si]);var ao=yn(function(Qi,ho){var Io=ho!=null?ho:Qi;return(0,ke.Z)((0,ke.Z)({},Dr.value,Qi),Dr.label,Io)}),wo=He.useMemo(function(){if(Ir!=="tags")return Pn;var Qi=(0,Pe.Z)(Pn),ho=function(Do){return ht.has(Do)};return(0,Pe.Z)(si).sort(function(Io,Do){return Io.value<Do.value?-1:1}).forEach(function(Io){var Do=Io.value;ho(Do)||Qi.push(ao(Do,Io.label))}),Qi},[ao,Pn,ht,si,Ir]),Ho=Oe(wo,Dr,hi,it,mn),In=He.useMemo(function(){return Ir!=="tags"||!hi||Ho.some(function(Qi){return Qi[mn||"value"]===hi})||Ho.some(function(Qi){return Qi[Dr.value]===hi})?Ho:[ao(hi)].concat((0,Pe.Z)(Ho))},[ao,mn,Ir,Ho,hi,Dr]),ko=function Qi(ho){var Io=(0,Pe.Z)(ho).sort(function(Do,sa){return Vi(Do,sa,{searchValue:hi})});return Io.map(function(Do){return Array.isArray(Do.options)?(0,De.Z)((0,De.Z)({},Do),{},{options:Do.options.length>0?Qi(Do.options):Do.options}):Do})},po=He.useMemo(function(){return Vi?ko(In):In},[In,Vi,hi]),Yi=He.useMemo(function(){return It(po,{fieldNames:Dr,childrenAsData:An})},[po,Dr,An]),Oi=function(ho){var Io=Gn(ho);if(an(Io),co&&(Io.length!==si.length||Io.some(function(Ji,Ss){var pa;return((pa=si[Ss])===null||pa===void 0?void 0:pa.value)!==(Ji==null?void 0:Ji.value)}))){var Do=fo?Io:Io.map(function(Ji){return Ji.value}),sa=Io.map(function(Ji){return _t(Si(Ji.value))});co(vr?Do:Do[0],vr?sa:sa[0])}},Oo=He.useState(null),Wo=(0,je.Z)(Oo,2),jn=Wo[0],vo=Wo[1],ia=He.useState(0),za=(0,je.Z)(ia,2),hs=za[0],il=za[1],Ls=Ii!==void 0?Ii:Ir!=="combobox",no=He.useCallback(function(Qi,ho){var Io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Do=Io.source,sa=Do===void 0?"keyboard":Do;il(ho),fr&&Ir==="combobox"&&Qi!==null&&sa==="keyboard"&&vo(String(Qi))},[fr,Ir]),Ra=function(ho,Io,Do){var sa=function(){var ol,Xs=Si(ho);return[fo?{label:Xs==null?void 0:Xs[Dr.label],value:ho,key:(ol=Xs==null?void 0:Xs.key)!==null&&ol!==void 0?ol:ho}:ho,_t(Xs)]};if(Io&&Qr){var Ji=sa(),Ss=(0,je.Z)(Ji,2),pa=Ss[0],Ga=Ss[1];Qr(pa,Ga)}else if(!Io&&rr&&Do!=="clear"){var Fo=sa(),ga=(0,je.Z)(Fo,2),Hs=ga[0],da=ga[1];rr(Hs,da)}},Ma=yn(function(Qi,ho){var Io,Do=vr?ho.selected:!0;Do?Io=vr?[].concat((0,Pe.Z)(si),[Qi]):[Qi]:Io=si.filter(function(sa){return sa.value!==Qi}),Oi(Io),Ra(Qi,Do),Ir==="combobox"?vo(""):(!Yt||mi)&&(ai(""),vo(""))}),ts=function(ho,Io){Oi(ho);var Do=Io.type,sa=Io.values;(Do==="remove"||Do==="clear")&&sa.forEach(function(Ji){Ra(Ji.value,!1,Do)})},Oa=function(ho,Io){if(ai(ho),vo(null),Io.source==="submit"){var Do=(ho||"").trim();if(Do){var sa=Array.from(new Set([].concat((0,Pe.Z)(_i),[Do])));Oi(sa),Ra(Do,!0),ai("")}return}Io.source!=="blur"&&(Ir==="combobox"&&Oi(ho),Ur==null||Ur(ho))},_a=function(ho){var Io=ho;Ir!=="tags"&&(Io=ho.map(function(sa){var Ji=wn.get(sa);return Ji==null?void 0:Ji.value}).filter(function(sa){return sa!==void 0}));var Do=Array.from(new Set([].concat((0,Pe.Z)(_i),(0,Pe.Z)(Io))));Oi(Do),Do.forEach(function(sa){Ra(sa,!0)})},fi=He.useMemo(function(){var Qi=ji!==!1&&on!==!1;return(0,De.Z)((0,De.Z)({},mr),{},{flattenOptions:Yi,onActiveValue:no,defaultActiveFirstOption:Ls,onSelect:Ma,menuItemSelectedIcon:Hi,rawValues:_i,fieldNames:Dr,virtual:Qi,direction:Bi,listHeight:Qn,listItemHeight:ar,childrenAsData:An,maxCount:Wi,optionRender:qr})},[Wi,mr,Yi,no,Ls,Ma,Hi,_i,Dr,ji,on,Bi,Qn,ar,An,qr]);return He.createElement(En.Provider,{value:fi},He.createElement(vn,(0,oe.Z)({},zo,{id:_n,prefixCls:Fn,ref:cn,omitDomProps:ci,mode:Ir,displayValues:Ri,onDisplayValuesChange:ts,direction:Bi,searchValue:hi,onSearch:Oa,autoClearSearchValue:mi,onSearchSplit:_a,dropdownMatchSelectWidth:on,OptionList:lr,emptyOptions:!Yi.length,activeValue:jn,activeDescendantId:"".concat(_n,"_list_").concat(hs)})))}),wi=Xr;wi.Option=Xn,wi.OptGroup=un;var ki=wi,Fr=ki},63158:function(We,Ee,ae){"use strict";var oe=ae(14809),Pe=ae(4635),ke=ae(50298),De=ae(62646),je=ae(59301),Te=ae(92310),Ge=ae.n(Te),lt=ae(18929),Ke=ae(10228),He=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yt=je.forwardRef(function($e,Mt){var Fe,te=$e.prefixCls,ee=te===void 0?"rc-switch":te,he=$e.className,ue=$e.checked,fe=$e.defaultChecked,me=$e.disabled,be=$e.loadingIcon,Ae=$e.checkedChildren,Ie=$e.unCheckedChildren,Xe=$e.onClick,nt=$e.onChange,Je=$e.onKeyDown,st=(0,De.Z)($e,He),gt=(0,lt.Z)(!1,{value:ue,defaultValue:fe}),rt=(0,ke.Z)(gt,2),mt=rt[0],xt=rt[1];function Tt(Cn,St){var pt=mt;return me||(pt=Cn,xt(pt),nt==null||nt(pt,St)),pt}function zt(Cn){Cn.which===Ke.Z.LEFT?Tt(!1,Cn):Cn.which===Ke.Z.RIGHT&&Tt(!0,Cn),Je==null||Je(Cn)}function Qt(Cn){var St=Tt(!mt,Cn);Xe==null||Xe(St,Cn)}var Kt=Ge()(ee,he,(Fe={},(0,Pe.Z)(Fe,"".concat(ee,"-checked"),mt),(0,Pe.Z)(Fe,"".concat(ee,"-disabled"),me),Fe));return je.createElement("button",(0,oe.Z)({},st,{type:"button",role:"switch","aria-checked":mt,disabled:me,className:Kt,ref:Mt,onKeyDown:zt,onClick:Qt}),be,je.createElement("span",{className:"".concat(ee,"-inner")},je.createElement("span",{className:"".concat(ee,"-inner-checked")},Ae),je.createElement("span",{className:"".concat(ee,"-inner-unchecked")},Ie)))});yt.displayName="Switch",Ee.Z=yt},86351:function(We,Ee,ae){"use strict";ae.d(Ee,{R:function(){return Pe},w:function(){return oe}});var oe={},Pe="rc-table-internal-hook"},97347:function(We,Ee,ae){"use strict";ae.d(Ee,{L:function(){return ee},Z:function(){return be}});var oe=ae(50298),Pe=ae(4635),ke=ae(95190),De=ae(93664),je=ae(20439),Te=ae(62646),Ge=ae(11592),lt=ae(48736),Ke=ae(59301),He=ae(86351),yt=ae(54451);function $e(Ae){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ie=="number"?Ie:Ie.endsWith("%")?Ae*parseFloat(Ie)/100:null}function Mt(Ae,Ie,Xe){return Ke.useMemo(function(){if(Ie&&Ie>0){var nt=0,Je=0;Ae.forEach(function(Qt){var Kt=$e(Ie,Qt.width);Kt?nt+=Kt:Je+=1});var st=Math.max(Ie,Xe),gt=Math.max(st-nt,Je),rt=Je,mt=gt/Je,xt=0,Tt=Ae.map(function(Qt){var Kt=(0,je.Z)({},Qt),Cn=$e(Ie,Kt.width);if(Cn)Kt.width=Cn;else{var St=Math.floor(mt);Kt.width=rt===1?gt:St,gt-=St,rt-=1}return xt+=Kt.width,Kt});if(xt<st){var zt=st/xt;gt=st,Tt.forEach(function(Qt,Kt){var Cn=Math.floor(Qt.width*zt);Qt.width=Kt===Tt.length-1?gt:Cn,gt-=Cn})}return[Tt,Math.max(xt,st)]}return[Ae,Ie]},[Ae,Ie,Xe])}var Fe=["children"],te=["fixed"];function ee(Ae){return(0,Ge.Z)(Ae).filter(function(Ie){return Ke.isValidElement(Ie)}).map(function(Ie){var Xe=Ie.key,nt=Ie.props,Je=nt.children,st=(0,Te.Z)(nt,Fe),gt=(0,je.Z)({key:Xe},st);return Je&&(gt.children=ee(Je)),gt})}function he(Ae){return Ae.filter(function(Ie){return Ie&&(0,De.Z)(Ie)==="object"&&!Ie.hidden}).map(function(Ie){var Xe=Ie.children;return Xe&&Xe.length>0?(0,je.Z)((0,je.Z)({},Ie),{},{children:he(Xe)}):Ie})}function ue(Ae){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(Xe){return Xe&&(0,De.Z)(Xe)==="object"}).reduce(function(Xe,nt,Je){var st=nt.fixed,gt=st===!0?"left":st,rt="".concat(Ie,"-").concat(Je),mt=nt.children;return mt&&mt.length>0?[].concat((0,ke.Z)(Xe),(0,ke.Z)(ue(mt,rt).map(function(xt){return(0,je.Z)({fixed:gt},xt)}))):[].concat((0,ke.Z)(Xe),[(0,je.Z)((0,je.Z)({key:rt},nt),{},{fixed:gt})])},[])}function fe(Ae){return Ae.map(function(Ie){var Xe=Ie.fixed,nt=(0,Te.Z)(Ie,te),Je=Xe;return Xe==="left"?Je="right":Xe==="right"&&(Je="left"),(0,je.Z)({fixed:Je},nt)})}function me(Ae,Ie){var Xe=Ae.prefixCls,nt=Ae.columns,Je=Ae.children,st=Ae.expandable,gt=Ae.expandedKeys,rt=Ae.columnTitle,mt=Ae.getRowKey,xt=Ae.onTriggerExpand,Tt=Ae.expandIcon,zt=Ae.rowExpandable,Qt=Ae.expandIconColumnIndex,Kt=Ae.direction,Cn=Ae.expandRowByClick,St=Ae.columnWidth,pt=Ae.fixed,ct=Ae.scrollWidth,qt=Ae.clientWidth,fn=Ke.useMemo(function(){var hr=nt||ee(Je)||[];return he(hr.slice())},[nt,Je]),kt=Ke.useMemo(function(){if(st){var hr=fn.slice();if(!hr.includes(He.w)){var ot=Qt||0;ot>=0&&(ot||pt==="left"||!pt)&&hr.splice(ot,0,He.w),pt==="right"&&hr.splice(fn.length,0,He.w)}var _e=hr.indexOf(He.w);hr=hr.filter(function(Be,bt){return Be!==He.w||bt===_e});var Re=fn[_e],Ye;pt?Ye=pt:Ye=Re?Re.fixed:null;var at=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},yt.v,{className:"".concat(Xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",rt),"fixed",Ye),"className","".concat(Xe,"-row-expand-icon-cell")),"width",St),"render",function(bt,bn,sn){var Bn=mt(bn,sn),It=gt.has(Bn),_t=zt?zt(bn):!0,jt=Tt({prefixCls:Xe,expanded:It,expandable:_t,record:bn,onExpand:xt});return Cn?Ke.createElement("span",{onClick:function(En){return En.stopPropagation()}},jt):jt});return hr.map(function(Be){return Be===He.w?at:Be})}return fn.filter(function(Be){return Be!==He.w})},[st,fn,mt,gt,Tt,Kt]),xn=Ke.useMemo(function(){var hr=kt;return Ie&&(hr=Ie(hr)),hr.length||(hr=[{render:function(){return null}}]),hr},[Ie,kt,Kt]),kn=Ke.useMemo(function(){return Kt==="rtl"?fe(ue(xn)):ue(xn)},[xn,Kt,ct]),Vn=Ke.useMemo(function(){for(var hr=-1,ot=kn.length-1;ot>=0;ot-=1){var _e=kn[ot].fixed;if(_e==="left"||_e===!0){hr=ot;break}}if(hr>=0)for(var Re=0;Re<=hr;Re+=1){var Ye=kn[Re].fixed;if(Ye!=="left"&&Ye!==!0)return!0}var at=kn.findIndex(function(bn){var sn=bn.fixed;return sn==="right"});if(at>=0)for(var Be=at;Be<kn.length;Be+=1){var bt=kn[Be].fixed;if(bt!=="right")return!0}return!1},[kn]),Vt=Mt(kn,ct,qt),Ot=(0,oe.Z)(Vt,2),Nn=Ot[0],tr=Ot[1];return[xn,Nn,tr,Vn]}var be=me},4030:function(We,Ee,ae){"use strict";ae.d(Ee,{w2:function(){return oe.w},vP:function(){return Mn.v},RQ:function(){return oe.R},ER:function(){return Bn},Q$:function(){return Ci},TN:function(){return co}});var oe=ae(86351),Pe=ae(50298),ke=ae(6089),De=ae(34280),je=ae(13697),Te=ae(59301),Ge=ae(4676);function lt(_n){var vr=Te.createContext(void 0),An=function(Dr){var Wr=Dr.value,pi=Dr.children,hi=Te.useRef(Wr);hi.current=Wr;var ai=Te.useState(function(){return{getValue:function(){return hi.current},listeners:new Set}}),mr=(0,Pe.Z)(ai,1),ht=mr[0];return(0,De.Z)(function(){(0,Ge.unstable_batchedUpdates)(function(){ht.listeners.forEach(function(wn){wn(Wr)})})},[Wr]),Te.createElement(vr.Provider,{value:ht},pi)};return{Context:vr,Provider:An,defaultValue:_n}}function Ke(_n,vr){var An=(0,ke.Z)(typeof vr=="function"?vr:function(wn){if(vr===void 0)return wn;if(!Array.isArray(vr))return wn[vr];var Pn={};return vr.forEach(function(Gn){Pn[Gn]=wn[Gn]}),Pn}),it=Te.useContext(_n==null?void 0:_n.Context),Dr=it||{},Wr=Dr.listeners,pi=Dr.getValue,hi=Te.useRef();hi.current=An(it?pi():_n==null?void 0:_n.defaultValue);var ai=Te.useState({}),mr=(0,Pe.Z)(ai,2),ht=mr[1];return(0,De.Z)(function(){if(!it)return;function wn(Pn){var Gn=An(Pn);(0,je.Z)(hi.current,Gn,!0)||ht({})}return Wr.add(wn),function(){Wr.delete(wn)}},[it]),hi.current}var He=ae(14809),yt=ae(8654);function $e(){var _n=Te.createContext(null);function vr(){return Te.useContext(_n)}function An(Dr,Wr){var pi=(0,yt.Yr)(Dr),hi=function(mr,ht){var wn=pi?{ref:ht}:{},Pn=Te.useRef(0),Gn=Te.useRef(mr),gn=vr();return gn!==null?Te.createElement(Dr,(0,He.Z)({},mr,wn)):((!Wr||Wr(Gn.current,mr))&&(Pn.current+=1),Gn.current=mr,Te.createElement(_n.Provider,{value:Pn.current},Te.createElement(Dr,(0,He.Z)({},mr,wn))))};return pi?Te.forwardRef(hi):hi}function it(Dr,Wr){var pi=(0,yt.Yr)(Dr),hi=function(mr,ht){var wn=pi?{ref:ht}:{};return vr(),Te.createElement(Dr,(0,He.Z)({},mr,wn))};return pi?Te.memo(Te.forwardRef(hi),Wr):Te.memo(hi,Wr)}return{makeImmutable:An,responseImmutable:it,useImmutableMark:vr}}var Mt=$e(),Fe=Mt.makeImmutable,te=Mt.responseImmutable,ee=Mt.useImmutableMark,he=$e(),ue=he.makeImmutable,fe=he.responseImmutable,me=he.useImmutableMark,be=lt(),Ae=be;function Ie(_n,vr){var An=React.useRef(0);An.current+=1;var it=React.useRef(_n),Dr=[];Object.keys(_n||{}).map(function(pi){var hi;(_n==null?void 0:_n[pi])!==((hi=it.current)===null||hi===void 0?void 0:hi[pi])&&Dr.push(pi)}),it.current=_n;var Wr=React.useRef([]);return Dr.length&&(Wr.current=Dr),React.useDebugValue(An.current),React.useDebugValue(Wr.current.join(", ")),vr&&console.log("".concat(vr,":"),An.current,Wr.current),An.current}var Xe=null,nt=null,Je=ae(93664),st=ae(20439),gt=ae(4635),rt=ae(92310),mt=ae.n(rt),xt=ae(80547),Tt=ae(97938),zt=ae(48736),Qt=Te.createContext({renderWithProps:!1}),Kt=Qt,Cn="RC_TABLE_KEY";function St(_n){return _n==null?[]:Array.isArray(_n)?_n:[_n]}function pt(_n){var vr=[],An={};return _n.forEach(function(it){for(var Dr=it||{},Wr=Dr.key,pi=Dr.dataIndex,hi=Wr||St(pi).join("-")||Cn;An[hi];)hi="".concat(hi,"_next");An[hi]=!0,vr.push(hi)}),vr}function ct(_n){return _n!=null}function qt(_n){return typeof _n=="number"&&!Number.isNaN(_n)}function fn(_n){return _n&&(0,Je.Z)(_n)==="object"&&!Array.isArray(_n)&&!Te.isValidElement(_n)}function kt(_n,vr,An,it,Dr,Wr){var pi=Te.useContext(Kt),hi=me(),ai=(0,xt.Z)(function(){if(ct(it))return[it];var mr=vr==null||vr===""?[]:Array.isArray(vr)?vr:[vr],ht=(0,Tt.Z)(_n,mr),wn=ht,Pn=void 0;if(Dr){var Gn=Dr(ht,_n,An);fn(Gn)?(wn=Gn.children,Pn=Gn.props,pi.renderWithProps=!0):wn=Gn}return[wn,Pn]},[hi,_n,it,vr,Dr,An],function(mr,ht){if(Wr){var wn=(0,Pe.Z)(mr,2),Pn=wn[1],Gn=(0,Pe.Z)(ht,2),gn=Gn[1];return Wr(gn,Pn)}return pi.renderWithProps?!0:!(0,je.Z)(mr,ht,!0)});return ai}function xn(_n,vr,An,it){var Dr=_n+vr-1;return _n<=it&&Dr>=An}function kn(_n,vr){return Ke(Ae,function(An){var it=xn(_n,vr||1,An.hoverStartRow,An.hoverEndRow);return[it,An.onHover]})}var Vn=ae(70425),Vt=function(vr){var An=vr.ellipsis,it=vr.rowType,Dr=vr.children,Wr,pi=An===!0?{showTitle:!0}:An;return pi&&(pi.showTitle||it==="header")&&(typeof Dr=="string"||typeof Dr=="number"?Wr=Dr.toString():Te.isValidElement(Dr)&&typeof Dr.props.children=="string"&&(Wr=Dr.props.children)),Wr};function Ot(_n){var vr,An,it,Dr,Wr,pi,hi,ai,mr=_n.component,ht=_n.children,wn=_n.ellipsis,Pn=_n.scope,Gn=_n.prefixCls,gn=_n.className,$n=_n.align,Yn=_n.record,an=_n.render,cr=_n.dataIndex,Vr=_n.renderIndex,Ni=_n.shouldCellUpdate,si=_n.index,Si=_n.rowType,Ri=_n.colSpan,_i=_n.rowSpan,ao=_n.fixLeft,wo=_n.fixRight,Ho=_n.firstFixLeft,In=_n.lastFixLeft,ko=_n.firstFixRight,po=_n.lastFixRight,Yi=_n.appendNode,Oi=_n.additionalProps,Oo=Oi===void 0?{}:Oi,Wo=_n.isSticky,jn="".concat(Gn,"-cell"),vo=Ke(Ae,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ia=vo.supportSticky,za=vo.allColumnsFixedLeft,hs=vo.rowHoverable,il=kt(Yn,cr,Vr,ht,an,Ni),Ls=(0,Pe.Z)(il,2),no=Ls[0],Ra=Ls[1],Ma={},ts=typeof ao=="number"&&ia,Oa=typeof wo=="number"&&ia;ts&&(Ma.position="sticky",Ma.left=ao),Oa&&(Ma.position="sticky",Ma.right=wo);var _a=(vr=(An=(it=Ra==null?void 0:Ra.colSpan)!==null&&it!==void 0?it:Oo.colSpan)!==null&&An!==void 0?An:Ri)!==null&&vr!==void 0?vr:1,fi=(Dr=(Wr=(pi=Ra==null?void 0:Ra.rowSpan)!==null&&pi!==void 0?pi:Oo.rowSpan)!==null&&Wr!==void 0?Wr:_i)!==null&&Dr!==void 0?Dr:1,Qi=kn(si,fi),ho=(0,Pe.Z)(Qi,2),Io=ho[0],Do=ho[1],sa=(0,Vn.zX)(function(Hs){var da;Yn&&Do(si,si+fi-1),Oo==null||(da=Oo.onMouseEnter)===null||da===void 0||da.call(Oo,Hs)}),Ji=(0,Vn.zX)(function(Hs){var da;Yn&&Do(-1,-1),Oo==null||(da=Oo.onMouseLeave)===null||da===void 0||da.call(Oo,Hs)});if(_a===0||fi===0)return null;var Ss=(hi=Oo.title)!==null&&hi!==void 0?hi:Vt({rowType:Si,ellipsis:wn,children:no}),pa=mt()(jn,gn,(ai={},(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)(ai,"".concat(jn,"-fix-left"),ts&&ia),"".concat(jn,"-fix-left-first"),Ho&&ia),"".concat(jn,"-fix-left-last"),In&&ia),"".concat(jn,"-fix-left-all"),In&&za&&ia),"".concat(jn,"-fix-right"),Oa&&ia),"".concat(jn,"-fix-right-first"),ko&&ia),"".concat(jn,"-fix-right-last"),po&&ia),"".concat(jn,"-ellipsis"),wn),"".concat(jn,"-with-append"),Yi),"".concat(jn,"-fix-sticky"),(ts||Oa)&&Wo&&ia),(0,gt.Z)(ai,"".concat(jn,"-row-hover"),!Ra&&Io)),Oo.className,Ra==null?void 0:Ra.className),Ga={};$n&&(Ga.textAlign=$n);var Fo=(0,st.Z)((0,st.Z)((0,st.Z)((0,st.Z)({},Ra==null?void 0:Ra.style),Ma),Ga),Oo.style),ga=no;return(0,Je.Z)(ga)==="object"&&!Array.isArray(ga)&&!Te.isValidElement(ga)&&(ga=null),wn&&(In||ko)&&(ga=Te.createElement("span",{className:"".concat(jn,"-content")},ga)),Te.createElement(mr,(0,He.Z)({},Ra,Oo,{className:pa,style:Fo,title:Ss,scope:Pn,onMouseEnter:hs?sa:void 0,onMouseLeave:hs?Ji:void 0,colSpan:_a!==1?_a:null,rowSpan:fi!==1?fi:null}),Yi,ga)}var Nn=Te.memo(Ot);function tr(_n,vr,An,it,Dr){var Wr=An[_n]||{},pi=An[vr]||{},hi,ai;Wr.fixed==="left"?hi=it.left[Dr==="rtl"?vr:_n]:pi.fixed==="right"&&(ai=it.right[Dr==="rtl"?_n:vr]);var mr=!1,ht=!1,wn=!1,Pn=!1,Gn=An[vr+1],gn=An[_n-1],$n=Gn&&!Gn.fixed||gn&&!gn.fixed||An.every(function(Ni){return Ni.fixed==="left"});if(Dr==="rtl"){if(hi!==void 0){var Yn=gn&&gn.fixed==="left";Pn=!Yn&&$n}else if(ai!==void 0){var an=Gn&&Gn.fixed==="right";wn=!an&&$n}}else if(hi!==void 0){var cr=Gn&&Gn.fixed==="left";mr=!cr&&$n}else if(ai!==void 0){var Vr=gn&&gn.fixed==="right";ht=!Vr&&$n}return{fixLeft:hi,fixRight:ai,lastFixLeft:mr,firstFixRight:ht,lastFixRight:wn,firstFixLeft:Pn,isSticky:it.isSticky}}var hr=Te.createContext({}),ot=hr;function _e(_n){var vr=_n.className,An=_n.index,it=_n.children,Dr=_n.colSpan,Wr=Dr===void 0?1:Dr,pi=_n.rowSpan,hi=_n.align,ai=Ke(Ae,["prefixCls","direction"]),mr=ai.prefixCls,ht=ai.direction,wn=Te.useContext(ot),Pn=wn.scrollColumnIndex,Gn=wn.stickyOffsets,gn=wn.flattenColumns,$n=An+Wr-1,Yn=$n+1===Pn?Wr+1:Wr,an=tr(An,An+Yn-1,gn,Gn,ht);return Te.createElement(Nn,(0,He.Z)({className:vr,index:An,component:"td",prefixCls:mr,record:null,dataIndex:null,align:hi,colSpan:Yn,rowSpan:pi,render:function(){return it}},an))}var Re=ae(62646),Ye=["children"];function at(_n){var vr=_n.children,An=(0,Re.Z)(_n,Ye);return Te.createElement("tr",An,vr)}function Be(_n){var vr=_n.children;return vr}Be.Row=at,Be.Cell=_e;var bt=Be;function bn(_n){var vr=_n.children,An=_n.stickyOffsets,it=_n.flattenColumns,Dr=Ke(Ae,"prefixCls"),Wr=it.length-1,pi=it[Wr],hi=Te.useMemo(function(){return{stickyOffsets:An,flattenColumns:it,scrollColumnIndex:pi!=null&&pi.scrollbar?Wr:null}},[pi,it,Wr,An]);return Te.createElement(ot.Provider,{value:hi},Te.createElement("tfoot",{className:"".concat(Dr,"-summary")},vr))}var sn=fe(bn),Bn=bt,It=ae(29301),_t=ae(24514),jt=ae(75152),hn=ae(26112);function En(_n,vr,An,it,Dr,Wr,pi){_n.push({record:vr,indent:An,index:pi});var hi=Wr(vr),ai=Dr==null?void 0:Dr.has(hi);if(vr&&Array.isArray(vr[it])&&ai)for(var mr=0;mr<vr[it].length;mr+=1)En(_n,vr[it][mr],An+1,it,Dr,Wr,mr)}function pn(_n,vr,An,it){var Dr=Te.useMemo(function(){if(An!=null&&An.size){for(var Wr=[],pi=0;pi<(_n==null?void 0:_n.length);pi+=1){var hi=_n[pi];En(Wr,hi,0,vr,An,it,pi)}return Wr}return _n==null?void 0:_n.map(function(ai,mr){return{record:ai,indent:0,index:mr}})},[_n,vr,An,it]);return Dr}function Rt(_n,vr,An,it){var Dr=Ke(Ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Wr=Dr.flattenColumns,pi=Dr.expandableType,hi=Dr.expandedKeys,ai=Dr.childrenColumnName,mr=Dr.onTriggerExpand,ht=Dr.rowExpandable,wn=Dr.onRow,Pn=Dr.expandRowByClick,Gn=Dr.rowClassName,gn=pi==="nest",$n=pi==="row"&&(!ht||ht(_n)),Yn=$n||gn,an=hi&&hi.has(vr),cr=ai&&_n&&_n[ai],Vr=(0,Vn.zX)(mr),Ni=wn==null?void 0:wn(_n,An),si=Ni==null?void 0:Ni.onClick,Si=function(wo){Pn&&Yn&&mr(_n,wo);for(var Ho=arguments.length,In=new Array(Ho>1?Ho-1:0),ko=1;ko<Ho;ko++)In[ko-1]=arguments[ko];si==null||si.apply(void 0,[wo].concat(In))},Ri;typeof Gn=="string"?Ri=Gn:typeof Gn=="function"&&(Ri=Gn(_n,An,it));var _i=pt(Wr);return(0,st.Z)((0,st.Z)({},Dr),{},{columnsKey:_i,nestExpandable:gn,expanded:an,hasNestChildren:cr,record:_n,onTriggerExpand:Vr,rowSupportExpand:$n,expandable:Yn,rowProps:(0,st.Z)((0,st.Z)({},Ni),{},{className:mt()(Ri,Ni==null?void 0:Ni.className),onClick:Si})})}function Tn(_n){var vr=_n.prefixCls,An=_n.children,it=_n.component,Dr=_n.cellComponent,Wr=_n.className,pi=_n.expanded,hi=_n.colSpan,ai=_n.isEmpty,mr=Ke(Ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ht=mr.scrollbarSize,wn=mr.fixHeader,Pn=mr.fixColumn,Gn=mr.componentWidth,gn=mr.horizonScroll,$n=An;return(ai?gn&&Gn:Pn)&&($n=Te.createElement("div",{style:{width:Gn-(wn&&!ai?ht:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(vr,"-expanded-row-fixed")},$n)),Te.createElement(it,{className:Wr,style:{display:pi?null:"none"}},Te.createElement(Nn,{component:Dr,prefixCls:vr,colSpan:hi},$n))}var Yt=Tn;function en(_n){var vr=_n.prefixCls,An=_n.record,it=_n.onExpand,Dr=_n.expanded,Wr=_n.expandable,pi="".concat(vr,"-row-expand-icon");if(!Wr)return Te.createElement("span",{className:mt()(pi,"".concat(vr,"-row-spaced"))});var hi=function(mr){it(An,mr),mr.stopPropagation()};return Te.createElement("span",{className:mt()(pi,(0,gt.Z)((0,gt.Z)({},"".concat(vr,"-row-expanded"),Dr),"".concat(vr,"-row-collapsed"),!Dr)),onClick:hi})}function vn(_n,vr,An){var it=[];function Dr(Wr){(Wr||[]).forEach(function(pi,hi){it.push(vr(pi,hi)),Dr(pi[An])})}return Dr(_n),it}function zn(_n,vr,An,it){return typeof _n=="string"?_n:typeof _n=="function"?_n(vr,An,it):""}function un(_n,vr,An,it,Dr){var Wr=_n.record,pi=_n.prefixCls,hi=_n.columnsKey,ai=_n.fixedInfoList,mr=_n.expandIconColumnIndex,ht=_n.nestExpandable,wn=_n.indentSize,Pn=_n.expandIcon,Gn=_n.expanded,gn=_n.hasNestChildren,$n=_n.onTriggerExpand,Yn=hi[An],an=ai[An],cr;An===(mr||0)&&ht&&(cr=Te.createElement(Te.Fragment,null,Te.createElement("span",{style:{paddingLeft:"".concat(wn*it,"px")},className:"".concat(pi,"-row-indent indent-level-").concat(it)}),Pn({prefixCls:pi,expanded:Gn,expandable:gn,record:Wr,onExpand:$n})));var Vr;return vr.onCell&&(Vr=vr.onCell(Wr,Dr)),{key:Yn,fixedInfo:an,appendCellNode:cr,additionalCellProps:Vr||{}}}function Et(_n){var vr=_n.className,An=_n.style,it=_n.record,Dr=_n.index,Wr=_n.renderIndex,pi=_n.rowKey,hi=_n.indent,ai=hi===void 0?0:hi,mr=_n.rowComponent,ht=_n.cellComponent,wn=_n.scopeCellComponent,Pn=Rt(it,pi,Dr,ai),Gn=Pn.prefixCls,gn=Pn.flattenColumns,$n=Pn.expandedRowClassName,Yn=Pn.expandedRowRender,an=Pn.rowProps,cr=Pn.expanded,Vr=Pn.rowSupportExpand,Ni=Te.useRef(!1);Ni.current||(Ni.current=cr);var si=zn($n,it,Dr,ai),Si=Te.createElement(mr,(0,He.Z)({},an,{"data-row-key":pi,className:mt()(vr,"".concat(Gn,"-row"),"".concat(Gn,"-row-level-").concat(ai),an==null?void 0:an.className,(0,gt.Z)({},si,ai>=1)),style:(0,st.Z)((0,st.Z)({},An),an==null?void 0:an.style)}),gn.map(function(ao,wo){var Ho=ao.render,In=ao.dataIndex,ko=ao.className,po=un(Pn,ao,wo,ai,Dr),Yi=po.key,Oi=po.fixedInfo,Oo=po.appendCellNode,Wo=po.additionalCellProps;return Te.createElement(Nn,(0,He.Z)({className:ko,ellipsis:ao.ellipsis,align:ao.align,scope:ao.rowScope,component:ao.rowScope?wn:ht,prefixCls:Gn,key:Yi,record:it,index:Dr,renderIndex:Wr,dataIndex:In,render:Ho,shouldCellUpdate:ao.shouldCellUpdate},Oi,{appendNode:Oo,additionalProps:Wo}))})),Ri;if(Vr&&(Ni.current||cr)){var _i=Yn(it,Dr,ai+1,cr);Ri=Te.createElement(Yt,{expanded:cr,className:mt()("".concat(Gn,"-expanded-row"),"".concat(Gn,"-expanded-row-level-").concat(ai+1),si),prefixCls:Gn,component:mr,cellComponent:ht,colSpan:gn.length,isEmpty:!1},_i)}return Te.createElement(Te.Fragment,null,Si,Ri)}var Xn=fe(Et);function ir(_n){var vr=_n.columnKey,An=_n.onColumnResize,it=Te.useRef();return(0,De.Z)(function(){it.current&&An(vr,it.current.offsetWidth)},[]),Te.createElement(It.Z,{data:vr},Te.createElement("td",{ref:it,style:{padding:0,border:0,height:0}},Te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Jt=ae(29194);function Er(_n){var vr=_n.prefixCls,An=_n.columnsKey,it=_n.onColumnResize,Dr=Te.useRef(null);return Te.createElement("tr",{"aria-hidden":"true",className:"".concat(vr,"-measure-row"),style:{height:0,fontSize:0},ref:Dr},Te.createElement(It.Z.Collection,{onBatchResize:function(pi){(0,Jt.Z)(Dr.current)&&pi.forEach(function(hi){var ai=hi.data,mr=hi.size;it(ai,mr.offsetWidth)})}},An.map(function(Wr){return Te.createElement(ir,{key:Wr,columnKey:Wr,onColumnResize:it})})))}function ni(_n){var vr=_n.data,An=_n.measureColumnWidth,it=Ke(Ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Dr=it.prefixCls,Wr=it.getComponent,pi=it.onColumnResize,hi=it.flattenColumns,ai=it.getRowKey,mr=it.expandedKeys,ht=it.childrenColumnName,wn=it.emptyNode,Pn=pn(vr,ht,mr,ai),Gn=Te.useRef({renderWithProps:!1}),gn=Wr(["body","wrapper"],"tbody"),$n=Wr(["body","row"],"tr"),Yn=Wr(["body","cell"],"td"),an=Wr(["body","cell"],"th"),cr;vr.length?cr=Pn.map(function(Ni,si){var Si=Ni.record,Ri=Ni.indent,_i=Ni.index,ao=ai(Si,si);return Te.createElement(Xn,{key:ao,rowKey:ao,record:Si,index:si,renderIndex:_i,rowComponent:$n,cellComponent:Yn,scopeCellComponent:an,indent:Ri})}):cr=Te.createElement(Yt,{expanded:!0,className:"".concat(Dr,"-placeholder"),prefixCls:Dr,component:$n,cellComponent:Yn,colSpan:hi.length,isEmpty:!0},wn);var Vr=pt(hi);return Te.createElement(Kt.Provider,{value:Gn.current},Te.createElement(gn,{className:"".concat(Dr,"-tbody")},An&&Te.createElement(Er,{prefixCls:Dr,columnsKey:Vr,onColumnResize:pi}),cr))}var Rr=fe(ni),Mn=ae(54451),ei=["columnType"];function Kr(_n){for(var vr=_n.colWidths,An=_n.columns,it=_n.columCount,Dr=Ke(Ae,["tableLayout"]),Wr=Dr.tableLayout,pi=[],hi=it||An.length,ai=!1,mr=hi-1;mr>=0;mr-=1){var ht=vr[mr],wn=An&&An[mr],Pn=void 0,Gn=void 0;if(wn&&(Pn=wn[Mn.v],Wr==="auto"&&(Gn=wn.minWidth)),ht||Gn||Pn||ai){var gn=Pn||{},$n=gn.columnType,Yn=(0,Re.Z)(gn,ei);pi.unshift(Te.createElement("col",(0,He.Z)({key:mr,style:{width:ht,minWidth:Gn}},Yn))),ai=!0}}return Te.createElement("colgroup",null,pi)}var lr=Kr,jr=ae(95190),oi=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Oe(_n,vr){return(0,Te.useMemo)(function(){for(var An=[],it=0;it<vr;it+=1){var Dr=_n[it];if(Dr!==void 0)An[it]=Dr;else return null}return An},[_n.join("_"),vr])}var dr=Te.forwardRef(function(_n,vr){var An=_n.className,it=_n.noData,Dr=_n.columns,Wr=_n.flattenColumns,pi=_n.colWidths,hi=_n.columCount,ai=_n.stickyOffsets,mr=_n.direction,ht=_n.fixHeader,wn=_n.stickyTopOffset,Pn=_n.stickyBottomOffset,Gn=_n.stickyClassName,gn=_n.onScroll,$n=_n.maxContentScroll,Yn=_n.children,an=(0,Re.Z)(_n,oi),cr=Ke(Ae,["prefixCls","scrollbarSize","isSticky","getComponent"]),Vr=cr.prefixCls,Ni=cr.scrollbarSize,si=cr.isSticky,Si=cr.getComponent,Ri=Si(["header","table"],"table"),_i=si&&!ht?0:Ni,ao=Te.useRef(null),wo=Te.useCallback(function(Wo){(0,yt.mH)(vr,Wo),(0,yt.mH)(ao,Wo)},[]);Te.useEffect(function(){var Wo;function jn(vo){var ia=vo,za=ia.currentTarget,hs=ia.deltaX;hs&&(gn({currentTarget:za,scrollLeft:za.scrollLeft+hs}),vo.preventDefault())}return(Wo=ao.current)===null||Wo===void 0||Wo.addEventListener("wheel",jn,{passive:!1}),function(){var vo;(vo=ao.current)===null||vo===void 0||vo.removeEventListener("wheel",jn)}},[]);var Ho=Te.useMemo(function(){return Wr.every(function(Wo){return Wo.width})},[Wr]),In=Wr[Wr.length-1],ko={fixed:In?In.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Vr,"-cell-scrollbar")}}},po=(0,Te.useMemo)(function(){return _i?[].concat((0,jr.Z)(Dr),[ko]):Dr},[_i,Dr]),Yi=(0,Te.useMemo)(function(){return _i?[].concat((0,jr.Z)(Wr),[ko]):Wr},[_i,Wr]),Oi=(0,Te.useMemo)(function(){var Wo=ai.right,jn=ai.left;return(0,st.Z)((0,st.Z)({},ai),{},{left:mr==="rtl"?[].concat((0,jr.Z)(jn.map(function(vo){return vo+_i})),[0]):jn,right:mr==="rtl"?Wo:[].concat((0,jr.Z)(Wo.map(function(vo){return vo+_i})),[0]),isSticky:si})},[_i,ai,si]),Oo=Oe(pi,hi);return Te.createElement("div",{style:(0,st.Z)({overflow:"hidden"},si?{top:wn,bottom:Pn}:{}),ref:wo,className:mt()(An,(0,gt.Z)({},Gn,!!Gn))},Te.createElement(Ri,{style:{tableLayout:"fixed",visibility:it||Oo?null:"hidden"}},(!it||!$n||Ho)&&Te.createElement(lr,{colWidths:Oo?[].concat((0,jr.Z)(Oo),[_i]):[],columCount:hi+1,columns:Yi}),Yn((0,st.Z)((0,st.Z)({},an),{},{stickyOffsets:Oi,columns:po,flattenColumns:Yi}))))}),Pr=Te.memo(dr),or=function(vr){var An=vr.cells,it=vr.stickyOffsets,Dr=vr.flattenColumns,Wr=vr.rowComponent,pi=vr.cellComponent,hi=vr.onHeaderRow,ai=vr.index,mr=Ke(Ae,["prefixCls","direction"]),ht=mr.prefixCls,wn=mr.direction,Pn;hi&&(Pn=hi(An.map(function(gn){return gn.column}),ai));var Gn=pt(An.map(function(gn){return gn.column}));return Te.createElement(Wr,Pn,An.map(function(gn,$n){var Yn=gn.column,an=tr(gn.colStart,gn.colEnd,Dr,it,wn),cr;return Yn&&Yn.onHeaderCell&&(cr=gn.column.onHeaderCell(Yn)),Te.createElement(Nn,(0,He.Z)({},gn,{scope:Yn.title?gn.colSpan>1?"colgroup":"col":null,ellipsis:Yn.ellipsis,align:Yn.align,component:pi,prefixCls:ht,key:Gn[$n]},an,{additionalProps:cr,rowType:"header"}))}))},Lr=or;function zr(_n){var vr=[];function An(pi,hi){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;vr[ai]=vr[ai]||[];var mr=hi,ht=pi.filter(Boolean).map(function(wn){var Pn={key:wn.key,className:wn.className||"",children:wn.title,column:wn,colStart:mr},Gn=1,gn=wn.children;return gn&&gn.length>0&&(Gn=An(gn,mr,ai+1).reduce(function($n,Yn){return $n+Yn},0),Pn.hasSubColumns=!0),"colSpan"in wn&&(Gn=wn.colSpan),"rowSpan"in wn&&(Pn.rowSpan=wn.rowSpan),Pn.colSpan=Gn,Pn.colEnd=Pn.colStart+Gn-1,vr[ai].push(Pn),mr+=Gn,Gn});return ht}An(_n,0);for(var it=vr.length,Dr=function(hi){vr[hi].forEach(function(ai){!("rowSpan"in ai)&&!ai.hasSubColumns&&(ai.rowSpan=it-hi)})},Wr=0;Wr<it;Wr+=1)Dr(Wr);return vr}var wr=function(vr){var An=vr.stickyOffsets,it=vr.columns,Dr=vr.flattenColumns,Wr=vr.onHeaderRow,pi=Ke(Ae,["prefixCls","getComponent"]),hi=pi.prefixCls,ai=pi.getComponent,mr=Te.useMemo(function(){return zr(it)},[it]),ht=ai(["header","wrapper"],"thead"),wn=ai(["header","row"],"tr"),Pn=ai(["header","cell"],"th");return Te.createElement(ht,{className:"".concat(hi,"-thead")},mr.map(function(Gn,gn){var $n=Te.createElement(Lr,{key:gn,flattenColumns:Dr,cells:Gn,stickyOffsets:An,rowComponent:wn,cellComponent:Pn,onHeaderRow:Wr,index:gn});return $n}))},Ti=fe(wr),On=ae(97347);function yn(_n,vr,An){var it=(0,Mn.g)(_n),Dr=it.expandIcon,Wr=it.expandedRowKeys,pi=it.defaultExpandedRowKeys,hi=it.defaultExpandAllRows,ai=it.expandedRowRender,mr=it.onExpand,ht=it.onExpandedRowsChange,wn=it.childrenColumnName,Pn=Dr||en,Gn=wn||"children",gn=Te.useMemo(function(){return ai?"row":_n.expandable&&_n.internalHooks===oe.R&&_n.expandable.__PARENT_RENDER_ICON__||vr.some(function(si){return si&&(0,Je.Z)(si)==="object"&&si[Gn]})?"nest":!1},[!!ai,vr]),$n=Te.useState(function(){return pi||(hi?vn(vr,An,Gn):[])}),Yn=(0,Pe.Z)($n,2),an=Yn[0],cr=Yn[1],Vr=Te.useMemo(function(){return new Set(Wr||an||[])},[Wr,an]),Ni=Te.useCallback(function(si){var Si=An(si,vr.indexOf(si)),Ri,_i=Vr.has(Si);_i?(Vr.delete(Si),Ri=(0,jr.Z)(Vr)):Ri=[].concat((0,jr.Z)(Vr),[Si]),cr(Ri),mr&&mr(!_i,si),ht&&ht(Ri)},[An,Vr,vr,mr,ht]);return[it,gn,Vr,Pn,Gn,Ni]}function Sn(_n,vr,An){var it=_n.map(function(Dr,Wr){return tr(Wr,Wr,_n,vr,An)});return(0,xt.Z)(function(){return it},[it],function(Dr,Wr){return!(0,je.Z)(Dr,Wr)})}function Jn(_n){var vr=(0,Te.useRef)(_n),An=(0,Te.useState)({}),it=(0,Pe.Z)(An,2),Dr=it[1],Wr=(0,Te.useRef)(null),pi=(0,Te.useRef)([]);function hi(ai){pi.current.push(ai);var mr=Promise.resolve();Wr.current=mr,mr.then(function(){if(Wr.current===mr){var ht=pi.current,wn=vr.current;pi.current=[],ht.forEach(function(Pn){vr.current=Pn(vr.current)}),Wr.current=null,wn!==vr.current&&Dr({})}})}return(0,Te.useEffect)(function(){return function(){Wr.current=null}},[]),[vr.current,hi]}function ui(_n){var vr=(0,Te.useRef)(_n||null),An=(0,Te.useRef)();function it(){window.clearTimeout(An.current)}function Dr(pi){vr.current=pi,it(),An.current=window.setTimeout(function(){vr.current=null,An.current=void 0},100)}function Wr(){return vr.current}return(0,Te.useEffect)(function(){return it},[]),[Dr,Wr]}function Yr(){var _n=Te.useState(-1),vr=(0,Pe.Z)(_n,2),An=vr[0],it=vr[1],Dr=Te.useState(-1),Wr=(0,Pe.Z)(Dr,2),pi=Wr[0],hi=Wr[1],ai=Te.useCallback(function(mr,ht){it(mr),hi(ht)},[]);return[An,pi,ai]}var ci=ae(47273),ur=(0,ci.Z)()?window:null;function Xr(_n,vr){var An=(0,Je.Z)(_n)==="object"?_n:{},it=An.offsetHeader,Dr=it===void 0?0:it,Wr=An.offsetSummary,pi=Wr===void 0?0:Wr,hi=An.offsetScroll,ai=hi===void 0?0:hi,mr=An.getContainer,ht=mr===void 0?function(){return ur}:mr,wn=ht()||ur,Pn=!!_n;return Te.useMemo(function(){return{isSticky:Pn,stickyClassName:Pn?"".concat(vr,"-sticky-holder"):"",offsetHeader:Dr,offsetSummary:pi,offsetScroll:ai,container:wn}},[Pn,ai,Dr,pi,vr,wn])}function wi(_n,vr,An){var it=(0,Te.useMemo)(function(){var Dr=vr.length,Wr=function(mr,ht,wn){for(var Pn=[],Gn=0,gn=mr;gn!==ht;gn+=wn)Pn.push(Gn),vr[gn].fixed&&(Gn+=_n[gn]||0);return Pn},pi=Wr(0,Dr,1),hi=Wr(Dr-1,-1,-1).reverse();return An==="rtl"?{left:hi,right:pi}:{left:pi,right:hi}},[_n,vr,An]);return it}var ki=wi;function Fr(_n){var vr=_n.className,An=_n.children;return Te.createElement("div",{className:vr},An)}var Lt=Fr,cn=ae(8224),kr=ae(16089),Ir=ae(76846);function Xt(_n){var vr=(0,Ir.bn)(_n),An=vr.getBoundingClientRect(),it=document.documentElement;return{left:An.left+(window.pageXOffset||it.scrollLeft)-(it.clientLeft||document.body.clientLeft||0),top:An.top+(window.pageYOffset||it.scrollTop)-(it.clientTop||document.body.clientTop||0)}}var Fn=function(vr,An){var it,Dr,Wr=vr.scrollBodyRef,pi=vr.onScroll,hi=vr.offsetScroll,ai=vr.container,mr=vr.direction,ht=Ke(Ae,"prefixCls"),wn=((it=Wr.current)===null||it===void 0?void 0:it.scrollWidth)||0,Pn=((Dr=Wr.current)===null||Dr===void 0?void 0:Dr.clientWidth)||0,Gn=wn&&Pn*(Pn/wn),gn=Te.useRef(),$n=Jn({scrollLeft:0,isHiddenScrollBar:!0}),Yn=(0,Pe.Z)($n,2),an=Yn[0],cr=Yn[1],Vr=Te.useRef({delta:0,x:0}),Ni=Te.useState(!1),si=(0,Pe.Z)(Ni,2),Si=si[0],Ri=si[1],_i=Te.useRef(null);Te.useEffect(function(){return function(){kr.Z.cancel(_i.current)}},[]);var ao=function(){Ri(!1)},wo=function(Yi){Yi.persist(),Vr.current.delta=Yi.pageX-an.scrollLeft,Vr.current.x=0,Ri(!0),Yi.preventDefault()},Ho=function(Yi){var Oi,Oo=Yi||((Oi=window)===null||Oi===void 0?void 0:Oi.event),Wo=Oo.buttons;if(!Si||Wo===0){Si&&Ri(!1);return}var jn=Vr.current.x+Yi.pageX-Vr.current.x-Vr.current.delta,vo=mr==="rtl";jn=Math.max(vo?Gn-Pn:0,Math.min(vo?0:Pn-Gn,jn));var ia=!vo||Math.abs(jn)+Math.abs(Gn)<Pn;ia&&(pi({scrollLeft:jn/Pn*(wn+2)}),Vr.current.x=Yi.pageX)},In=function(){kr.Z.cancel(_i.current),_i.current=(0,kr.Z)(function(){if(Wr.current){var Yi=Xt(Wr.current).top,Oi=Yi+Wr.current.offsetHeight,Oo=ai===window?document.documentElement.scrollTop+window.innerHeight:Xt(ai).top+ai.clientHeight;Oi-(0,jt.Z)()<=Oo||Yi>=Oo-hi?cr(function(Wo){return(0,st.Z)((0,st.Z)({},Wo),{},{isHiddenScrollBar:!0})}):cr(function(Wo){return(0,st.Z)((0,st.Z)({},Wo),{},{isHiddenScrollBar:!1})})}})},ko=function(Yi){cr(function(Oi){return(0,st.Z)((0,st.Z)({},Oi),{},{scrollLeft:Yi/wn*Pn||0})})};return Te.useImperativeHandle(An,function(){return{setScrollLeft:ko,checkScrollBarVisible:In}}),Te.useEffect(function(){var po=(0,cn.Z)(document.body,"mouseup",ao,!1),Yi=(0,cn.Z)(document.body,"mousemove",Ho,!1);return In(),function(){po.remove(),Yi.remove()}},[Gn,Si]),Te.useEffect(function(){if(Wr.current){for(var po=[],Yi=(0,Ir.bn)(Wr.current);Yi;)po.push(Yi),Yi=Yi.parentElement;return po.forEach(function(Oi){return Oi.addEventListener("scroll",In,!1)}),window.addEventListener("resize",In,!1),window.addEventListener("scroll",In,!1),ai.addEventListener("scroll",In,!1),function(){po.forEach(function(Oi){return Oi.removeEventListener("scroll",In)}),window.removeEventListener("resize",In),window.removeEventListener("scroll",In),ai.removeEventListener("scroll",In)}}},[ai]),Te.useEffect(function(){an.isHiddenScrollBar||cr(function(po){var Yi=Wr.current;return Yi?(0,st.Z)((0,st.Z)({},po),{},{scrollLeft:Yi.scrollLeft/Yi.scrollWidth*Yi.clientWidth}):po})},[an.isHiddenScrollBar]),wn<=Pn||!Gn||an.isHiddenScrollBar?null:Te.createElement("div",{style:{height:(0,jt.Z)(),width:Pn,bottom:hi},className:"".concat(ht,"-sticky-scroll")},Te.createElement("div",{onMouseDown:wo,ref:gn,className:mt()("".concat(ht,"-sticky-scroll-bar"),(0,gt.Z)({},"".concat(ht,"-sticky-scroll-bar-active"),Si)),style:{width:"".concat(Gn,"px"),transform:"translate3d(".concat(an.scrollLeft,"px, 0, 0)")}}))},fr=Te.forwardRef(Fn);function dn(_n){return null}var Ue=dn;function Mr(_n){return null}var Ur=Mr,Wn="rc-table",mi=[],Qr={};function rr(){return"No Data"}function Gr(_n,vr){var An=(0,st.Z)({rowKey:"key",prefixCls:Wn,emptyText:rr},_n),it=An.prefixCls,Dr=An.className,Wr=An.rowClassName,pi=An.style,hi=An.data,ai=An.rowKey,mr=An.scroll,ht=An.tableLayout,wn=An.direction,Pn=An.title,Gn=An.footer,gn=An.summary,$n=An.caption,Yn=An.id,an=An.showHeader,cr=An.components,Vr=An.emptyText,Ni=An.onRow,si=An.onHeaderRow,Si=An.onScroll,Ri=An.internalHooks,_i=An.transformColumns,ao=An.internalRefs,wo=An.tailor,Ho=An.getContainerWidth,In=An.sticky,ko=An.rowHoverable,po=ko===void 0?!0:ko,Yi=hi||mi,Oi=!!Yi.length,Oo=Ri===oe.R,Wo=Te.useCallback(function($o,ca){return(0,Tt.Z)(cr,$o)||ca},[cr]),jn=Te.useMemo(function(){return typeof ai=="function"?ai:function($o){var ca=$o&&$o[ai];return ca}},[ai]),vo=Wo(["body"]),ia=Yr(),za=(0,Pe.Z)(ia,3),hs=za[0],il=za[1],Ls=za[2],no=yn(An,Yi,jn),Ra=(0,Pe.Z)(no,6),Ma=Ra[0],ts=Ra[1],Oa=Ra[2],_a=Ra[3],fi=Ra[4],Qi=Ra[5],ho=mr==null?void 0:mr.x,Io=Te.useState(0),Do=(0,Pe.Z)(Io,2),sa=Do[0],Ji=Do[1],Ss=(0,On.Z)((0,st.Z)((0,st.Z)((0,st.Z)({},An),Ma),{},{expandable:!!Ma.expandedRowRender,columnTitle:Ma.columnTitle,expandedKeys:Oa,getRowKey:jn,onTriggerExpand:Qi,expandIcon:_a,expandIconColumnIndex:Ma.expandIconColumnIndex,direction:wn,scrollWidth:Oo&&wo&&typeof ho=="number"?ho:null,clientWidth:sa}),Oo?_i:null),pa=(0,Pe.Z)(Ss,4),Ga=pa[0],Fo=pa[1],ga=pa[2],Hs=pa[3],da=ga!=null?ga:ho,Rs=Te.useMemo(function(){return{columns:Ga,flattenColumns:Fo}},[Ga,Fo]),ol=Te.useRef(),Xs=Te.useRef(),$a=Te.useRef(),Kl=Te.useRef();Te.useImperativeHandle(vr,function(){return{nativeElement:ol.current,scrollTo:function(ca){var Va;if($a.current instanceof HTMLElement){var Is=ca.index,xs=ca.top,Ll=ca.key;if(qt(xs)){var Bl;(Bl=$a.current)===null||Bl===void 0||Bl.scrollTo({top:xs})}else{var _l,kl=Ll!=null?Ll:jn(Yi[Is]);(_l=$a.current.querySelector('[data-row-key="'.concat(kl,'"]')))===null||_l===void 0||_l.scrollIntoView()}}else(Va=$a.current)!==null&&Va!==void 0&&Va.scrollTo&&$a.current.scrollTo(ca)}}});var nc=Te.useRef(),es=Te.useState(!1),Pl=(0,Pe.Z)(es,2),ll=Pl[0],ul=Pl[1],rc=Te.useState(!1),yc=(0,Pe.Z)(rc,2),ns=yc[0],ic=yc[1],oc=Te.useState(new Map),Mu=(0,Pe.Z)(oc,2),Ou=Mu[0],Ms=Mu[1],Qs=pt(Fo),fs=Qs.map(function($o){return Ou.get($o)}),ks=Te.useMemo(function(){return fs},[fs.join("_")]),yu=ki(ks,Fo,wn),zs=mr&&ct(mr.y),wa=mr&&ct(da)||!!Ma.fixed,ma=wa&&Fo.some(function($o){var ca=$o.fixed;return ca}),Vo=Te.useRef(),cs=Xr(In,it),Mi=cs.isSticky,ps=cs.offsetHeader,tn=cs.offsetSummary,Nr=cs.offsetScroll,Tl=cs.stickyClassName,Su=cs.container,ja=Te.useMemo(function(){return gn==null?void 0:gn(Yi)},[gn,Yi]),rs=(zs||Mi)&&Te.isValidElement(ja)&&ja.type===bt&&ja.props.fixed,Al,Fl,ac;zs&&(Fl={overflowY:Oi?"scroll":"auto",maxHeight:mr.y}),wa&&(Al={overflowX:"auto"},zs||(Fl={overflowY:"hidden"}),ac={width:da===!0?"auto":da,minWidth:"100%"});var Wa=Te.useCallback(function($o,ca){Ms(function(Va){if(Va.get($o)!==ca){var Is=new Map(Va);return Is.set($o,ca),Is}return Va})},[]),Eo=ui(null),bs=(0,Pe.Z)(Eo,2),Js=bs[0],ua=bs[1];function Zo($o,ca){ca&&(typeof ca=="function"?ca($o):ca.scrollLeft!==$o&&(ca.scrollLeft=$o,ca.scrollLeft!==$o&&setTimeout(function(){ca.scrollLeft=$o},0)))}var Ya=(0,ke.Z)(function($o){var ca=$o.currentTarget,Va=$o.scrollLeft,Is=wn==="rtl",xs=typeof Va=="number"?Va:ca.scrollLeft,Ll=ca||Qr;if(!ua()||ua()===Ll){var Bl;Js(Ll),Zo(xs,Xs.current),Zo(xs,$a.current),Zo(xs,nc.current),Zo(xs,(Bl=Vo.current)===null||Bl===void 0?void 0:Bl.setScrollLeft)}var _l=ca||Xs.current;if(_l){var kl=Oo&&wo&&typeof da=="number"?da:_l.scrollWidth,hu=_l.clientWidth;if(kl===hu){ul(!1),ic(!1);return}Is?(ul(-xs<kl-hu),ic(-xs>0)):(ul(xs>0),ic(xs<kl-hu))}}),cl=(0,ke.Z)(function($o){Ya($o),Si==null||Si($o)}),Ia=function(){if(wa&&$a.current){var ca;Ya({currentTarget:(0,Ir.bn)($a.current),scrollLeft:(ca=$a.current)===null||ca===void 0?void 0:ca.scrollLeft})}else ul(!1),ic(!1)},Sl=function(ca){var Va,Is=ca.width;(Va=Vo.current)===null||Va===void 0||Va.checkScrollBarVisible();var xs=ol.current?ol.current.offsetWidth:Is;Oo&&Ho&&ol.current&&(xs=Ho(ol.current,xs)||xs),xs!==sa&&(Ia(),Ji(xs))},Es=Te.useRef(!1);Te.useEffect(function(){Es.current&&Ia()},[wa,hi,Ga.length]),Te.useEffect(function(){Es.current=!0},[]);var Fu=Te.useState(0),va=(0,Pe.Z)(Fu,2),Os=va[0],oa=va[1],Ta=Te.useState(!0),La=(0,Pe.Z)(Ta,2),Za=La[0],na=La[1];(0,De.Z)(function(){(!wo||!Oo)&&($a.current instanceof Element?oa((0,jt.o)($a.current).width):oa((0,jt.o)(Kl.current).width)),na((0,_t.G)("position","sticky"))},[]),Te.useEffect(function(){Oo&&ao&&(ao.body.current=$a.current)});var sc=Te.useCallback(function($o){return Te.createElement(Te.Fragment,null,Te.createElement(Ti,$o),rs==="top"&&Te.createElement(sn,$o,ja))},[rs,ja]),bo=Te.useCallback(function($o){return Te.createElement(sn,$o,ja)},[ja]),Dc=Wo(["table"],"table"),aa=Te.useMemo(function(){return ht||(ma?da==="max-content"?"auto":"fixed":zs||Mi||Fo.some(function($o){var ca=$o.ellipsis;return ca})?"fixed":"auto")},[zs,ma,Fo,ht,Mi]),Sc,Bu={colWidths:ks,columCount:Fo.length,stickyOffsets:yu,onHeaderRow:si,fixHeader:zs,scroll:mr},bu=Te.useMemo(function(){return Oi?null:typeof Vr=="function"?Vr():Vr},[Oi,Vr]),Rc=Te.createElement(Rr,{data:Yi,measureColumnWidth:zs||wa||Mi}),Xc=Te.createElement(lr,{colWidths:Fo.map(function($o){var ca=$o.width;return ca}),columns:Fo}),Yl=$n!=null?Te.createElement("caption",{className:"".concat(it,"-caption")},$n):void 0,Xl=(0,hn.Z)(An,{data:!0}),la=(0,hn.Z)(An,{aria:!0});if(zs||Mi){var Gs;typeof vo=="function"?(Gs=vo(Yi,{scrollbarSize:Os,ref:$a,onScroll:Ya}),Bu.colWidths=Fo.map(function($o,ca){var Va=$o.width,Is=ca===Fo.length-1?Va-Os:Va;return typeof Is=="number"&&!Number.isNaN(Is)?Is:0})):Gs=Te.createElement("div",{style:(0,st.Z)((0,st.Z)({},Al),Fl),onScroll:cl,ref:$a,className:mt()("".concat(it,"-body"))},Te.createElement(Dc,(0,He.Z)({style:(0,st.Z)((0,st.Z)({},ac),{},{tableLayout:aa})},la),Yl,Xc,Rc,!rs&&ja&&Te.createElement(sn,{stickyOffsets:yu,flattenColumns:Fo},ja)));var du=(0,st.Z)((0,st.Z)((0,st.Z)({noData:!Yi.length,maxContentScroll:wa&&da==="max-content"},Bu),Rs),{},{direction:wn,stickyClassName:Tl,onScroll:Ya});Sc=Te.createElement(Te.Fragment,null,an!==!1&&Te.createElement(Pr,(0,He.Z)({},du,{stickyTopOffset:ps,className:"".concat(it,"-header"),ref:Xs}),sc),Gs,rs&&rs!=="top"&&Te.createElement(Pr,(0,He.Z)({},du,{stickyBottomOffset:tn,className:"".concat(it,"-summary"),ref:nc}),bo),Mi&&$a.current&&$a.current instanceof Element&&Te.createElement(fr,{ref:Vo,offsetScroll:Nr,scrollBodyRef:$a,onScroll:Ya,container:Su,direction:wn}))}else Sc=Te.createElement("div",{style:(0,st.Z)((0,st.Z)({},Al),Fl),className:mt()("".concat(it,"-content")),onScroll:Ya,ref:$a},Te.createElement(Dc,(0,He.Z)({style:(0,st.Z)((0,st.Z)({},ac),{},{tableLayout:aa})},la),Yl,Xc,an!==!1&&Te.createElement(Ti,(0,He.Z)({},Bu,Rs)),Rc,ja&&Te.createElement(sn,{stickyOffsets:yu,flattenColumns:Fo},ja)));var Nl=Te.createElement("div",(0,He.Z)({className:mt()(it,Dr,(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)({},"".concat(it,"-rtl"),wn==="rtl"),"".concat(it,"-ping-left"),ll),"".concat(it,"-ping-right"),ns),"".concat(it,"-layout-fixed"),ht==="fixed"),"".concat(it,"-fixed-header"),zs),"".concat(it,"-fixed-column"),ma),"".concat(it,"-fixed-column-gapped"),ma&&Hs),"".concat(it,"-scroll-horizontal"),wa),"".concat(it,"-has-fix-left"),Fo[0]&&Fo[0].fixed),"".concat(it,"-has-fix-right"),Fo[Fo.length-1]&&Fo[Fo.length-1].fixed==="right")),style:pi,id:Yn,ref:ol},Xl),Pn&&Te.createElement(Lt,{className:"".concat(it,"-title")},Pn(Yi)),Te.createElement("div",{ref:Kl,className:"".concat(it,"-container")},Sc),Gn&&Te.createElement(Lt,{className:"".concat(it,"-footer")},Gn(Yi)));wa&&(Nl=Te.createElement(It.Z,{onResize:Sl},Nl));var dl=Sn(Fo,yu,wn),bl=Te.useMemo(function(){return{scrollX:da,prefixCls:it,getComponent:Wo,scrollbarSize:Os,direction:wn,fixedInfoList:dl,isSticky:Mi,supportSticky:Za,componentWidth:sa,fixHeader:zs,fixColumn:ma,horizonScroll:wa,tableLayout:aa,rowClassName:Wr,expandedRowClassName:Ma.expandedRowClassName,expandIcon:_a,expandableType:ts,expandRowByClick:Ma.expandRowByClick,expandedRowRender:Ma.expandedRowRender,onTriggerExpand:Qi,expandIconColumnIndex:Ma.expandIconColumnIndex,indentSize:Ma.indentSize,allColumnsFixedLeft:Fo.every(function($o){return $o.fixed==="left"}),emptyNode:bu,columns:Ga,flattenColumns:Fo,onColumnResize:Wa,hoverStartRow:hs,hoverEndRow:il,onHover:Ls,rowExpandable:Ma.rowExpandable,onRow:Ni,getRowKey:jn,expandedKeys:Oa,childrenColumnName:fi,rowHoverable:po}},[da,it,Wo,Os,wn,dl,Mi,Za,sa,zs,ma,wa,aa,Wr,Ma.expandedRowClassName,_a,ts,Ma.expandRowByClick,Ma.expandedRowRender,Qi,Ma.expandIconColumnIndex,Ma.indentSize,bu,Ga,Fo,Wa,hs,il,Ls,Ma.rowExpandable,Ni,jn,Oa,fi,po]);return Te.createElement(Ae.Provider,{value:bl},Nl)}var on=Te.forwardRef(Gr);function Ci(_n){return ue(on,_n)}var Vi=Ci();Vi.EXPAND_COLUMN=oe.w,Vi.INTERNAL_HOOKS=oe.R,Vi.Column=Ue,Vi.ColumnGroup=Ur,Vi.Summary=Bn;var mn=Vi,li=ae(65283),bi=lt(null),qr=lt(null);function Pi(_n,vr,An){var it=vr||1;return An[_n+it]-(An[_n]||0)}function Ii(_n){var vr=_n.rowInfo,An=_n.column,it=_n.colIndex,Dr=_n.indent,Wr=_n.index,pi=_n.component,hi=_n.renderIndex,ai=_n.record,mr=_n.style,ht=_n.className,wn=_n.inverse,Pn=_n.getHeight,Gn=An.render,gn=An.dataIndex,$n=An.className,Yn=An.width,an=Ke(qr,["columnsOffset"]),cr=an.columnsOffset,Vr=un(vr,An,it,Dr,Wr),Ni=Vr.key,si=Vr.fixedInfo,Si=Vr.appendCellNode,Ri=Vr.additionalCellProps,_i=Ri.style,ao=Ri.colSpan,wo=ao===void 0?1:ao,Ho=Ri.rowSpan,In=Ho===void 0?1:Ho,ko=it-1,po=Pi(ko,wo,cr),Yi=wo>1?Yn-po:0,Oi=(0,st.Z)((0,st.Z)((0,st.Z)({},_i),mr),{},{flex:"0 0 ".concat(po,"px"),width:"".concat(po,"px"),marginRight:Yi,pointerEvents:"auto"}),Oo=Te.useMemo(function(){return wn?In<=1:wo===0||In===0||In>1},[In,wo,wn]);Oo?Oi.visibility="hidden":wn&&(Oi.height=Pn==null?void 0:Pn(In));var Wo=Oo?function(){return null}:Gn,jn={};return(In===0||wo===0)&&(jn.rowSpan=1,jn.colSpan=1),Te.createElement(Nn,(0,He.Z)({className:mt()($n,ht),ellipsis:An.ellipsis,align:An.align,scope:An.rowScope,component:pi,prefixCls:vr.prefixCls,key:Ni,record:ai,index:Wr,renderIndex:hi,dataIndex:gn,render:Wo,shouldCellUpdate:An.shouldCellUpdate},si,{appendNode:Si,additionalProps:(0,st.Z)((0,st.Z)({},Ri),{},{style:Oi},jn)}))}var Hi=Ii,ji=["data","index","className","rowKey","style","extra","getHeight"],Bi=Te.forwardRef(function(_n,vr){var An=_n.data,it=_n.index,Dr=_n.className,Wr=_n.rowKey,pi=_n.style,hi=_n.extra,ai=_n.getHeight,mr=(0,Re.Z)(_n,ji),ht=An.record,wn=An.indent,Pn=An.index,Gn=Ke(Ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gn=Gn.scrollX,$n=Gn.flattenColumns,Yn=Gn.prefixCls,an=Gn.fixColumn,cr=Gn.componentWidth,Vr=Ke(bi,["getComponent"]),Ni=Vr.getComponent,si=Rt(ht,Wr,it,wn),Si=Ni(["body","row"],"div"),Ri=Ni(["body","cell"],"div"),_i=si.rowSupportExpand,ao=si.expanded,wo=si.rowProps,Ho=si.expandedRowRender,In=si.expandedRowClassName,ko;if(_i&&ao){var po=Ho(ht,it,wn+1,ao),Yi=zn(In,ht,it,wn),Oi={};an&&(Oi={style:(0,gt.Z)({},"--virtual-width","".concat(cr,"px"))});var Oo="".concat(Yn,"-expanded-row-cell");ko=Te.createElement(Si,{className:mt()("".concat(Yn,"-expanded-row"),"".concat(Yn,"-expanded-row-level-").concat(wn+1),Yi)},Te.createElement(Nn,{component:Ri,prefixCls:Yn,className:mt()(Oo,(0,gt.Z)({},"".concat(Oo,"-fixed"),an)),additionalProps:Oi},po))}var Wo=(0,st.Z)((0,st.Z)({},pi),{},{width:gn});hi&&(Wo.position="absolute",Wo.pointerEvents="none");var jn=Te.createElement(Si,(0,He.Z)({},wo,mr,{"data-row-key":Wr,ref:_i?null:vr,className:mt()(Dr,"".concat(Yn,"-row"),wo==null?void 0:wo.className,(0,gt.Z)({},"".concat(Yn,"-row-extra"),hi)),style:(0,st.Z)((0,st.Z)({},Wo),wo==null?void 0:wo.style)}),$n.map(function(vo,ia){return Te.createElement(Hi,{key:ia,component:Ri,rowInfo:si,column:vo,colIndex:ia,indent:wn,index:it,renderIndex:Pn,record:ht,inverse:hi,getHeight:ai})}));return _i?Te.createElement("div",{ref:vr},jn,ko):jn}),io=fe(Bi),Qn=io,zi=Te.forwardRef(function(_n,vr){var An=_n.data,it=_n.onScroll,Dr=Ke(Ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Wr=Dr.flattenColumns,pi=Dr.onColumnResize,hi=Dr.getRowKey,ai=Dr.expandedKeys,mr=Dr.prefixCls,ht=Dr.childrenColumnName,wn=Dr.scrollX,Pn=Dr.direction,Gn=Ke(bi),gn=Gn.sticky,$n=Gn.scrollY,Yn=Gn.listItemHeight,an=Gn.getComponent,cr=Gn.onScroll,Vr=Te.useRef(),Ni=pn(An,ht,ai,hi),si=Te.useMemo(function(){var ko=0;return Wr.map(function(po){var Yi=po.width,Oi=po.key;return ko+=Yi,[Oi,Yi,ko]})},[Wr]),Si=Te.useMemo(function(){return si.map(function(ko){return ko[2]})},[si]);Te.useEffect(function(){si.forEach(function(ko){var po=(0,Pe.Z)(ko,2),Yi=po[0],Oi=po[1];pi(Yi,Oi)})},[si]),Te.useImperativeHandle(vr,function(){var ko,po={scrollTo:function(Oi){var Oo;(Oo=Vr.current)===null||Oo===void 0||Oo.scrollTo(Oi)},nativeElement:(ko=Vr.current)===null||ko===void 0?void 0:ko.nativeElement};return Object.defineProperty(po,"scrollLeft",{get:function(){var Oi;return((Oi=Vr.current)===null||Oi===void 0?void 0:Oi.getScrollInfo().x)||0},set:function(Oi){var Oo;(Oo=Vr.current)===null||Oo===void 0||Oo.scrollTo({left:Oi})}}),po});var Ri=function(po,Yi){var Oi,Oo=(Oi=Ni[Yi])===null||Oi===void 0?void 0:Oi.record,Wo=po.onCell;if(Wo){var jn,vo=Wo(Oo,Yi);return(jn=vo==null?void 0:vo.rowSpan)!==null&&jn!==void 0?jn:1}return 1},_i=function(po){var Yi=po.start,Oi=po.end,Oo=po.getSize,Wo=po.offsetY;if(Oi<0)return null;for(var jn=Wr.filter(function(_a){return Ri(_a,Yi)===0}),vo=Yi,ia=function(fi){if(jn=jn.filter(function(Qi){return Ri(Qi,fi)===0}),!jn.length)return vo=fi,1},za=Yi;za>=0&&!ia(za);za-=1);for(var hs=Wr.filter(function(_a){return Ri(_a,Oi)!==1}),il=Oi,Ls=function(fi){if(hs=hs.filter(function(Qi){return Ri(Qi,fi)!==1}),!hs.length)return il=Math.max(fi-1,Oi),1},no=Oi;no<Ni.length&&!Ls(no);no+=1);for(var Ra=[],Ma=function(fi){var Qi=Ni[fi];if(!Qi)return 1;Wr.some(function(ho){return Ri(ho,fi)>1})&&Ra.push(fi)},ts=vo;ts<=il;ts+=1)Ma(ts);var Oa=Ra.map(function(_a){var fi=Ni[_a],Qi=hi(fi.record,_a),ho=function(sa){var Ji=_a+sa-1,Ss=hi(Ni[Ji].record,Ji),pa=Oo(Qi,Ss);return pa.bottom-pa.top},Io=Oo(Qi);return Te.createElement(Qn,{key:_a,data:fi,rowKey:Qi,index:_a,style:{top:-Wo+Io.top},extra:!0,getHeight:ho})});return Oa},ao=Te.useMemo(function(){return{columnsOffset:Si}},[Si]),wo="".concat(mr,"-tbody"),Ho=an(["body","wrapper"]),In={};return gn&&(In.position="sticky",In.bottom=0,(0,Je.Z)(gn)==="object"&&gn.offsetScroll&&(In.bottom=gn.offsetScroll)),Te.createElement(qr.Provider,{value:ao},Te.createElement(li.Z,{fullHeight:!1,ref:Vr,prefixCls:"".concat(wo,"-virtual"),styles:{horizontalScrollBar:In},className:wo,height:$n,itemHeight:Yn||24,data:Ni,itemKey:function(po){return hi(po.record)},component:Ho,scrollWidth:wn,direction:Pn,onVirtualScroll:function(po){var Yi,Oi=po.x;it({currentTarget:(Yi=Vr.current)===null||Yi===void 0?void 0:Yi.nativeElement,scrollLeft:Oi})},onScroll:cr,extraRender:_i},function(ko,po,Yi){var Oi=hi(ko.record,po);return Te.createElement(Qn,{data:ko,rowKey:Oi,index:po,style:Yi.style})}))}),ar=fe(zi),vi=ar,Zi=function(vr,An){var it=An.ref,Dr=An.onScroll;return Te.createElement(vi,{ref:it,data:vr,onScroll:Dr})};function Fi(_n,vr){var An=_n.data,it=_n.columns,Dr=_n.scroll,Wr=_n.sticky,pi=_n.prefixCls,hi=pi===void 0?Wn:pi,ai=_n.className,mr=_n.listItemHeight,ht=_n.components,wn=_n.onScroll,Pn=Dr||{},Gn=Pn.x,gn=Pn.y;typeof Gn!="number"&&(Gn=1),typeof gn!="number"&&(gn=500);var $n=(0,Vn.zX)(function(cr,Vr){return(0,Tt.Z)(ht,cr)||Vr}),Yn=(0,Vn.zX)(wn),an=Te.useMemo(function(){return{sticky:Wr,scrollY:gn,listItemHeight:mr,getComponent:$n,onScroll:Yn}},[Wr,gn,mr,$n,Yn]);return Te.createElement(bi.Provider,{value:an},Te.createElement(mn,(0,He.Z)({},_n,{className:mt()(ai,"".concat(hi,"-virtual")),scroll:(0,st.Z)((0,st.Z)({},Dr),{},{x:Gn}),components:(0,st.Z)((0,st.Z)({},ht),{},{body:An!=null&&An.length?Zi:void 0}),columns:it,internalHooks:oe.R,tailor:!0,ref:vr})))}var fo=Te.forwardRef(Fi);function co(_n){return ue(fo,_n)}var Wi=co(),zo=null},54451:function(We,Ee,ae){"use strict";ae.d(Ee,{g:function(){return Te},v:function(){return je}});var oe=ae(20439),Pe=ae(62646),ke=ae(48736),De=["expandable"],je="RC_TABLE_INTERNAL_COL_DEFINE";function Te(Ge){var lt=Ge.expandable,Ke=(0,Pe.Z)(Ge,De),He;return"expandable"in Ge?He=(0,oe.Z)((0,oe.Z)({},Ke),lt):He=Ke,He.showExpandColumn===!1&&(He.expandIconColumnIndex=-1),He}},22711:function(We,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{ResizableTextArea:function(){return rt},default:function(){return zt}});var oe=ae(14809),Pe=ae(4635),ke=ae(20439),De=ae(95190),je=ae(50298),Te=ae(62646),Ge=ae(92310),lt=ae.n(Ge),Ke=ae(36901),He=ae(66003),yt=ae(30292),$e=ae(18929),Mt=ae(59301),Fe=ae(93664),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={},be;function Ae(Qt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Cn=Qt.getAttribute("id")||Qt.getAttribute("data-reactid")||Qt.getAttribute("name");if(Kt&&me[Cn])return me[Cn];var St=window.getComputedStyle(Qt),pt=St.getPropertyValue("box-sizing")||St.getPropertyValue("-moz-box-sizing")||St.getPropertyValue("-webkit-box-sizing"),ct=parseFloat(St.getPropertyValue("padding-bottom"))+parseFloat(St.getPropertyValue("padding-top")),qt=parseFloat(St.getPropertyValue("border-bottom-width"))+parseFloat(St.getPropertyValue("border-top-width")),fn=fe.map(function(xn){return"".concat(xn,":").concat(St.getPropertyValue(xn))}).join(";"),kt={sizingStyle:fn,paddingSize:ct,borderSize:qt,boxSizing:pt};return Kt&&Cn&&(me[Cn]=kt),kt}function Ie(Qt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,St=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),Qt.getAttribute("wrap")?be.setAttribute("wrap",Qt.getAttribute("wrap")):be.removeAttribute("wrap");var pt=Ae(Qt,Kt),ct=pt.paddingSize,qt=pt.borderSize,fn=pt.boxSizing,kt=pt.sizingStyle;be.setAttribute("style","".concat(kt,";").concat(ue)),be.value=Qt.value||Qt.placeholder||"";var xn=void 0,kn=void 0,Vn,Vt=be.scrollHeight;if(fn==="border-box"?Vt+=qt:fn==="content-box"&&(Vt-=ct),Cn!==null||St!==null){be.value=" ";var Ot=be.scrollHeight-ct;Cn!==null&&(xn=Ot*Cn,fn==="border-box"&&(xn=xn+ct+qt),Vt=Math.max(xn,Vt)),St!==null&&(kn=Ot*St,fn==="border-box"&&(kn=kn+ct+qt),Vn=Vt>kn?"":"hidden",Vt=Math.min(kn,Vt))}var Nn={height:Vt,overflowY:Vn,resize:"none"};return xn&&(Nn.minHeight=xn),kn&&(Nn.maxHeight=kn),Nn}var Xe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nt=0,Je=1,st=2,gt=Mt.forwardRef(function(Qt,Kt){var Cn=Qt,St=Cn.prefixCls,pt=Cn.defaultValue,ct=Cn.value,qt=Cn.autoSize,fn=Cn.onResize,kt=Cn.className,xn=Cn.style,kn=Cn.disabled,Vn=Cn.onChange,Vt=Cn.onInternalAutoSize,Ot=(0,Te.Z)(Cn,Xe),Nn=(0,$e.Z)(pt,{value:ct,postState:function(Xn){return Xn!=null?Xn:""}}),tr=(0,je.Z)(Nn,2),hr=tr[0],ot=tr[1],_e=function(Xn){ot(Xn.target.value),Vn==null||Vn(Xn)},Re=Mt.useRef();Mt.useImperativeHandle(Kt,function(){return{textArea:Re.current}});var Ye=Mt.useMemo(function(){return qt&&(0,Fe.Z)(qt)==="object"?[qt.minRows,qt.maxRows]:[]},[qt]),at=(0,je.Z)(Ye,2),Be=at[0],bt=at[1],bn=!!qt,sn=function(){try{if(document.activeElement===Re.current){var Xn=Re.current,ir=Xn.selectionStart,Jt=Xn.selectionEnd,Er=Xn.scrollTop;Re.current.setSelectionRange(ir,Jt),Re.current.scrollTop=Er}}catch(ni){}},Bn=Mt.useState(st),It=(0,je.Z)(Bn,2),_t=It[0],jt=It[1],hn=Mt.useState(),En=(0,je.Z)(hn,2),pn=En[0],Rt=En[1],Tn=function(){jt(nt)};(0,ee.Z)(function(){bn&&Tn()},[ct,Be,bt,bn]),(0,ee.Z)(function(){if(_t===nt)jt(Je);else if(_t===Je){var Et=Ie(Re.current,!1,Be,bt);jt(st),Rt(Et)}else sn()},[_t]);var Yt=Mt.useRef(),en=function(){he.Z.cancel(Yt.current)},vn=function(Xn){_t===st&&(fn==null||fn(Xn),qt&&(en(),Yt.current=(0,he.Z)(function(){Tn()})))};Mt.useEffect(function(){return en},[]);var zn=bn?pn:null,un=(0,ke.Z)((0,ke.Z)({},xn),zn);return(_t===nt||_t===Je)&&(un.overflowY="hidden",un.overflowX="hidden"),Mt.createElement(te.Z,{onResize:vn,disabled:!(qt||fn)},Mt.createElement("textarea",(0,oe.Z)({},Ot,{ref:Re,style:un,className:lt()(St,kt,(0,Pe.Z)({},"".concat(St,"-disabled"),kn)),disabled:kn,value:hr,onChange:_e})))}),rt=gt,mt=["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"],xt=Mt.forwardRef(function(Qt,Kt){var Cn,St=Qt.defaultValue,pt=Qt.value,ct=Qt.onFocus,qt=Qt.onBlur,fn=Qt.onChange,kt=Qt.allowClear,xn=Qt.maxLength,kn=Qt.onCompositionStart,Vn=Qt.onCompositionEnd,Vt=Qt.suffix,Ot=Qt.prefixCls,Nn=Ot===void 0?"rc-textarea":Ot,tr=Qt.showCount,hr=Qt.count,ot=Qt.className,_e=Qt.style,Re=Qt.disabled,Ye=Qt.hidden,at=Qt.classNames,Be=Qt.styles,bt=Qt.onResize,bn=Qt.onClear,sn=Qt.onPressEnter,Bn=Qt.readOnly,It=Qt.autoSize,_t=Qt.onKeyDown,jt=(0,Te.Z)(Qt,mt),hn=(0,$e.Z)(St,{value:pt,defaultValue:St}),En=(0,je.Z)(hn,2),pn=En[0],Rt=En[1],Tn=pn==null?"":String(pn),Yt=Mt.useState(!1),en=(0,je.Z)(Yt,2),vn=en[0],zn=en[1],un=Mt.useRef(!1),Et=Mt.useState(null),Xn=(0,je.Z)(Et,2),ir=Xn[0],Jt=Xn[1],Er=(0,Mt.useRef)(null),ni=(0,Mt.useRef)(null),Rr=function(){var wi;return(wi=ni.current)===null||wi===void 0?void 0:wi.textArea},Mn=function(){Rr().focus()};(0,Mt.useImperativeHandle)(Kt,function(){var Xr;return{resizableTextArea:ni.current,focus:Mn,blur:function(){Rr().blur()},nativeElement:((Xr=Er.current)===null||Xr===void 0?void 0:Xr.nativeElement)||Rr()}}),(0,Mt.useEffect)(function(){zn(function(Xr){return!Re&&Xr})},[Re]);var ei=Mt.useState(null),Kr=(0,je.Z)(ei,2),lr=Kr[0],jr=Kr[1];Mt.useEffect(function(){if(lr){var Xr;(Xr=Rr()).setSelectionRange.apply(Xr,(0,De.Z)(lr))}},[lr]);var oi=(0,He.Z)(hr,tr),Oe=(Cn=oi.max)!==null&&Cn!==void 0?Cn:xn,dr=Number(Oe)>0,Pr=oi.strategy(Tn),or=!!Oe&&Pr>Oe,Lr=function(wi,ki){var Fr=ki;!un.current&&oi.exceedFormatter&&oi.max&&oi.strategy(ki)>oi.max&&(Fr=oi.exceedFormatter(ki,{max:oi.max}),ki!==Fr&&jr([Rr().selectionStart||0,Rr().selectionEnd||0])),Rt(Fr),(0,yt.rJ)(wi.currentTarget,wi,fn,Fr)},zr=function(wi){un.current=!0,kn==null||kn(wi)},wr=function(wi){un.current=!1,Lr(wi,wi.currentTarget.value),Vn==null||Vn(wi)},Ti=function(wi){Lr(wi,wi.target.value)},On=function(wi){wi.key==="Enter"&&sn&&sn(wi),_t==null||_t(wi)},yn=function(wi){zn(!0),ct==null||ct(wi)},Sn=function(wi){zn(!1),qt==null||qt(wi)},Jn=function(wi){Rt(""),Mn(),(0,yt.rJ)(Rr(),wi,fn)},ui=Vt,Yr;oi.show&&(oi.showFormatter?Yr=oi.showFormatter({value:Tn,count:Pr,maxLength:Oe}):Yr="".concat(Pr).concat(dr?" / ".concat(Oe):""),ui=Mt.createElement(Mt.Fragment,null,ui,Mt.createElement("span",{className:lt()("".concat(Nn,"-data-count"),at==null?void 0:at.count),style:Be==null?void 0:Be.count},Yr)));var ci=function(wi){var ki;bt==null||bt(wi),(ki=Rr())!==null&&ki!==void 0&&ki.style.height&&Jt(!0)},ur=!It&&!tr&&!kt;return Mt.createElement(Ke.BaseInput,{ref:Er,value:Tn,allowClear:kt,handleReset:Jn,suffix:ui,prefixCls:Nn,classNames:(0,ke.Z)((0,ke.Z)({},at),{},{affixWrapper:lt()(at==null?void 0:at.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(Nn,"-show-count"),tr),"".concat(Nn,"-textarea-allow-clear"),kt))}),disabled:Re,focused:vn,className:lt()(ot,or&&"".concat(Nn,"-out-of-range")),style:(0,ke.Z)((0,ke.Z)({},_e),ir&&!ur?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Yr=="string"?Yr:void 0}},hidden:Ye,readOnly:Bn,onClear:bn},Mt.createElement(rt,(0,oe.Z)({},jt,{autoSize:It,maxLength:xn,onKeyDown:On,onChange:Ti,onFocus:yn,onBlur:Sn,onCompositionStart:zr,onCompositionEnd:wr,className:lt()(at==null?void 0:at.textarea),style:(0,ke.Z)((0,ke.Z)({},Be==null?void 0:Be.textarea),{},{resize:_e==null?void 0:_e.resize}),disabled:Re,prefixCls:Nn,onResize:ci,ref:ni,readOnly:Bn})))}),Tt=xt,zt=Tt},9940:function(We,Ee,ae){"use strict";ae.d(Ee,{Qw:function(){return tr},FJ:function(){return ot},hT:function(){return hr},OF:function(){return be},ZP:function(){return Bn}});var oe=ae(14809),Pe=ae(95190),ke=ae(20439),De=ae(50298),je=ae(62646),Te=ae(93664),Ge=ae(37463),lt=ae(6551),Ke=ae(34643),He=ae(18929),yt=ae(48736),$e=ae(59301),Mt=function(It){var _t=$e.useRef({valueLabels:new Map});return $e.useMemo(function(){var jt=_t.current.valueLabels,hn=new Map,En=It.map(function(pn){var Rt=pn.value,Tn=pn.label,Yt=Tn!=null?Tn:jt.get(Rt);return hn.set(Rt,Yt),(0,ke.Z)((0,ke.Z)({},pn),{},{label:Yt})});return _t.current.valueLabels=hn,[En]},[It])},Fe=function(_t,jt,hn,En){return $e.useMemo(function(){var pn=function(Et){return Et.map(function(Xn){var ir=Xn.value;return ir})},Rt=pn(_t),Tn=pn(jt),Yt=Rt.filter(function(un){return!En[un]}),en=Rt,vn=Tn;if(hn){var zn=(0,Ke.S)(Rt,!0,En);en=zn.checkedKeys,vn=zn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Pe.Z)(Yt),(0,Pe.Z)(en)))),vn]},[_t,jt,hn,En])},te=Fe,ee=ae(34061),he=function(It,_t){return $e.useMemo(function(){var jt=(0,ee.I8)(It,{fieldNames:_t,initWrapper:function(En){return(0,ke.Z)((0,ke.Z)({},En),{},{valueEntities:new Map})},processEntity:function(En,pn){var Rt=En.node[_t.value];if(0)var Tn;pn.valueEntities.set(Rt,En)}});return jt},[It,_t])},ue=ae(4635),fe=ae(11592),me=function(){return null},be=me,Ae=["children","value"];function Ie(It){return(0,fe.Z)(It).map(function(_t){if(!$e.isValidElement(_t)||!_t.type)return null;var jt=_t,hn=jt.key,En=jt.props,pn=En.children,Rt=En.value,Tn=(0,je.Z)(En,Ae),Yt=(0,ke.Z)({key:hn,value:Rt},Tn),en=Ie(pn);return en.length&&(Yt.children=en),Yt}).filter(function(_t){return _t})}function Xe(It){if(!It)return It;var _t=(0,ke.Z)({},It);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,yt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),_t}}),_t}function nt(It,_t,jt,hn,En,pn){var Rt=null,Tn=null;function Yt(){function en(vn){var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return vn.map(function(Et,Xn){var ir="".concat(zn,"-").concat(Xn),Jt=Et[pn.value],Er=jt.includes(Jt),ni=en(Et[pn.children]||[],ir,Er),Rr=$e.createElement(be,Et,ni.map(function(ei){return ei.node}));if(_t===Jt&&(Rt=Rr),Er){var Mn={pos:ir,node:Rr,children:ni};return un||Tn.push(Mn),Mn}return null}).filter(function(Et){return Et})}Tn||(Tn=[],en(hn),Tn.sort(function(vn,zn){var un=vn.node.props.value,Et=zn.node.props.value,Xn=jt.indexOf(un),ir=jt.indexOf(Et);return Xn-ir}))}Object.defineProperty(It,"triggerNode",{get:function(){return(0,yt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Yt(),Rt}}),Object.defineProperty(It,"allCheckedNodes",{get:function(){return(0,yt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Yt(),En?Tn:Tn.map(function(vn){var zn=vn.node;return zn})}})}var Je=function(_t,jt,hn){var En=hn.fieldNames,pn=hn.treeNodeFilterProp,Rt=hn.filterTreeNode,Tn=En.children;return $e.useMemo(function(){if(!jt||Rt===!1)return _t;var Yt=typeof Rt=="function"?Rt:function(vn,zn){return String(zn[pn]).toUpperCase().includes(jt.toUpperCase())},en=function vn(zn){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return zn.reduce(function(Et,Xn){var ir=Xn[Tn],Jt=un||Yt(jt,Xe(Xn)),Er=vn(ir||[],Jt);return(Jt||Er.length)&&Et.push((0,ke.Z)((0,ke.Z)({},Xn),{},(0,ue.Z)({isLeaf:void 0},Tn,Er))),Et},[])};return en(_t)},[_t,jt,Tn,pn,Rt])},st=Je;function gt(It){var _t=$e.useRef();_t.current=It;var jt=$e.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return jt}function rt(It,_t){var jt=_t.id,hn=_t.pId,En=_t.rootPId,pn=new Map,Rt=[];return It.forEach(function(Tn){var Yt=Tn[jt],en=(0,ke.Z)((0,ke.Z)({},Tn),{},{key:Tn.key||Yt});pn.set(Yt,en)}),pn.forEach(function(Tn){var Yt=Tn[hn],en=pn.get(Yt);en?(en.children=en.children||[],en.children.push(Tn)):(Yt===En||En===null)&&Rt.push(Tn)}),Rt}function mt(It,_t,jt){return $e.useMemo(function(){if(It){if(jt){var hn=(0,ke.Z)({id:"id",pId:"pId",rootPId:null},(0,Te.Z)(jt)==="object"?jt:{});return rt(It,hn)}return It}return Ie(_t)},[_t,jt,It])}var xt=$e.createContext(null),Tt=xt,zt=ae(37530),Qt=ae(29530),Kt=ae(10228),Cn=ae(80547),St=$e.createContext(null),pt=St,ct=function(_t){return Array.isArray(_t)?_t:_t!==void 0?[_t]:[]},qt=function(_t){var jt=_t||{},hn=jt.label,En=jt.value,pn=jt.children;return{_title:hn?[hn]:["title","label"],value:En||"value",key:En||"value",children:pn||"children"}},fn=function(_t){return!_t||_t.disabled||_t.disableCheckbox||_t.checkable===!1},kt=function(_t,jt){var hn=[],En=function pn(Rt){Rt.forEach(function(Tn){var Yt=Tn[jt.children];Yt&&(hn.push(Tn[jt.value]),pn(Yt))})};return En(_t),hn},xn=function(_t){return _t==null},kn=ae(70425),Vn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Vt=function(_t,jt){var hn=(0,Ge.lk)(),En=hn.prefixCls,pn=hn.multiple,Rt=hn.searchValue,Tn=hn.toggleOpen,Yt=hn.open,en=hn.notFoundContent,vn=$e.useContext(pt),zn=vn.virtual,un=vn.listHeight,Et=vn.listItemHeight,Xn=vn.listItemScrollOffset,ir=vn.treeData,Jt=vn.fieldNames,Er=vn.onSelect,ni=vn.dropdownMatchSelectWidth,Rr=vn.treeExpandAction,Mn=vn.treeTitleRender,ei=vn.onPopupScroll,Kr=vn.leftMaxCount,lr=vn.leafCountOnly,jr=vn.valueEntities,oi=$e.useContext(Tt),Oe=oi.checkable,dr=oi.checkedKeys,Pr=oi.halfCheckedKeys,or=oi.treeExpandedKeys,Lr=oi.treeDefaultExpandAll,zr=oi.treeDefaultExpandedKeys,wr=oi.onTreeExpand,Ti=oi.treeIcon,On=oi.showTreeIcon,yn=oi.switcherIcon,Sn=oi.treeLine,Jn=oi.treeNodeFilterProp,ui=oi.loadData,Yr=oi.treeLoadedKeys,ci=oi.treeMotion,ur=oi.onTreeLoad,Xr=oi.keyEntities,wi=$e.useRef(),ki=(0,Cn.Z)(function(){return ir},[Yt,ir],function(Qn,zi){return zi[0]&&Qn[1]!==zi[1]}),Fr=$e.useMemo(function(){return Oe?{checked:dr,halfChecked:Pr}:null},[Oe,dr,Pr]);$e.useEffect(function(){if(Yt&&!pn&&dr.length){var Qn;(Qn=wi.current)===null||Qn===void 0||Qn.scrollTo({key:dr[0]})}},[Yt]);var Lt=function(zi){zi.preventDefault()},cn=function(zi,ar){var vi=ar.node;Oe&&fn(vi)||(Er(vi.key,{selected:!dr.includes(vi.key)}),pn||Tn(!1))},kr=$e.useState(zr),Ir=(0,De.Z)(kr,2),Xt=Ir[0],Fn=Ir[1],fr=$e.useState(null),dn=(0,De.Z)(fr,2),Ue=dn[0],Mr=dn[1],Ur=$e.useMemo(function(){return or?(0,Pe.Z)(or):Rt?Ue:Xt},[Xt,Ue,or,Rt]),Wn=function(zi){Fn(zi),Mr(zi),wr&&wr(zi)},mi=String(Rt).toLowerCase(),Qr=function(zi){return mi?String(zi[Jn]).toLowerCase().includes(mi):!1};$e.useEffect(function(){Rt&&Mr(kt(ir,Jt))},[Rt]);var rr=$e.useState(function(){return new Map}),Gr=(0,De.Z)(rr,2),on=Gr[0],Ci=Gr[1];$e.useEffect(function(){Kr&&Ci(new Map)},[Kr]);function Vi(Qn){var zi=Qn[Jt.value];if(!on.has(zi)){var ar=jr.get(zi),vi=(ar.children||[]).length===0;if(vi)on.set(zi,!1);else{var Zi=ar.children.filter(function(fo){return!fo.node.disabled&&!fo.node.disableCheckbox&&!dr.includes(fo.node[Jt.value])}),Fi=Zi.length;on.set(zi,Fi>Kr)}}return on.get(zi)}var mn=(0,kn.zX)(function(Qn){var zi=Qn[Jt.value];return dr.includes(zi)||Kr===null?!1:Kr<=0?!0:lr&&Kr?Vi(Qn):!1}),li=function Qn(zi){var ar=(0,zt.Z)(zi),vi;try{for(ar.s();!(vi=ar.n()).done;){var Zi=vi.value;if(!(Zi.disabled||Zi.selectable===!1)){if(Rt){if(Qr(Zi))return Zi}else return Zi;if(Zi[Jt.children]){var Fi=Qn(Zi[Jt.children]);if(Fi)return Fi}}}}catch(fo){ar.e(fo)}finally{ar.f()}return null},bi=$e.useState(null),qr=(0,De.Z)(bi,2),Pi=qr[0],Ii=qr[1],Hi=Xr[Pi];$e.useEffect(function(){if(Yt){var Qn=null,zi=function(){var vi=li(ki);return vi?vi[Jt.value]:null};!pn&&dr.length&&!Rt?Qn=dr[0]:Qn=zi(),Ii(Qn)}},[Yt,Rt]),$e.useImperativeHandle(jt,function(){var Qn;return{scrollTo:(Qn=wi.current)===null||Qn===void 0?void 0:Qn.scrollTo,onKeyDown:function(ar){var vi,Zi=ar.which;switch(Zi){case Kt.Z.UP:case Kt.Z.DOWN:case Kt.Z.LEFT:case Kt.Z.RIGHT:(vi=wi.current)===null||vi===void 0||vi.onKeyDown(ar);break;case Kt.Z.ENTER:{if(Hi){var Fi=mn(Hi.node),fo=(Hi==null?void 0:Hi.node)||{},co=fo.selectable,Wi=fo.value,zo=fo.disabled;co!==!1&&!zo&&!Fi&&cn(null,{node:{key:Pi},selected:!dr.includes(Wi)})}break}case Kt.Z.ESC:Tn(!1)}},onKeyUp:function(){}}});var ji=(0,Cn.Z)(function(){return!Rt},[Rt,or||Xt],function(Qn,zi){var ar=(0,De.Z)(Qn,1),vi=ar[0],Zi=(0,De.Z)(zi,2),Fi=Zi[0],fo=Zi[1];return vi!==Fi&&!!(Fi||fo)}),Bi=ji?ui:null;if(ki.length===0)return $e.createElement("div",{role:"listbox",className:"".concat(En,"-empty"),onMouseDown:Lt},en);var io={fieldNames:Jt};return Yr&&(io.loadedKeys=Yr),Ur&&(io.expandedKeys=Ur),$e.createElement("div",{onMouseDown:Lt},Hi&&Yt&&$e.createElement("span",{style:Vn,"aria-live":"assertive"},Hi.node.value),$e.createElement(Qt.y6.Provider,{value:{nodeDisabled:mn}},$e.createElement(Qt.ZP,(0,oe.Z)({ref:wi,focusable:!1,prefixCls:"".concat(En,"-tree"),treeData:ki,height:un,itemHeight:Et,itemScrollOffset:Xn,virtual:zn!==!1&&ni!==!1,multiple:pn,icon:Ti,showIcon:On,switcherIcon:yn,showLine:Sn,loadData:Bi,motion:ci,activeKey:Pi,checkable:Oe,checkStrictly:!0,checkedKeys:Fr,selectedKeys:Oe?[]:dr,defaultExpandAll:Lr,titleRender:Mn},io,{onActiveChange:Ii,onSelect:cn,onCheck:cn,onExpand:Wn,onLoad:ur,filterTreeNode:Qr,expandAction:Rr,onScroll:ei}))))},Ot=$e.forwardRef(Vt),Nn=Ot,tr="SHOW_ALL",hr="SHOW_PARENT",ot="SHOW_CHILD";function _e(It,_t,jt,hn){var En=new Set(It);return _t===ot?It.filter(function(pn){var Rt=jt[pn];return!Rt||!Rt.children||!Rt.children.some(function(Tn){var Yt=Tn.node;return En.has(Yt[hn.value])})||!Rt.children.every(function(Tn){var Yt=Tn.node;return fn(Yt)||En.has(Yt[hn.value])})}):_t===hr?It.filter(function(pn){var Rt=jt[pn],Tn=Rt?Rt.parent:null;return!Tn||fn(Tn.node)||!En.has(Tn.key)}):It}function Re(It){var _t=It.searchPlaceholder,jt=It.treeCheckStrictly,hn=It.treeCheckable,En=It.labelInValue,pn=It.value,Rt=It.multiple,Tn=It.showCheckedStrategy,Yt=It.maxCount;warning(!_t,"`searchPlaceholder` has been removed."),jt&&En===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(En||jt)&&warning(toArray(pn).every(function(en){return en&&_typeof(en)==="object"&&"value"in en}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),jt||Rt||hn?warning(!pn||Array.isArray(pn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(pn),"`value` should not be array when `TreeSelect` is single mode."),Yt&&(Tn==="SHOW_ALL"&&!jt||Tn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Ye=null,at=["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 Be(It){return!It||(0,Te.Z)(It)!=="object"}var bt=$e.forwardRef(function(It,_t){var jt=It.id,hn=It.prefixCls,En=hn===void 0?"rc-tree-select":hn,pn=It.value,Rt=It.defaultValue,Tn=It.onChange,Yt=It.onSelect,en=It.onDeselect,vn=It.searchValue,zn=It.inputValue,un=It.onSearch,Et=It.autoClearSearchValue,Xn=Et===void 0?!0:Et,ir=It.filterTreeNode,Jt=It.treeNodeFilterProp,Er=Jt===void 0?"value":Jt,ni=It.showCheckedStrategy,Rr=It.treeNodeLabelProp,Mn=It.multiple,ei=It.treeCheckable,Kr=It.treeCheckStrictly,lr=It.labelInValue,jr=It.maxCount,oi=It.fieldNames,Oe=It.treeDataSimpleMode,dr=It.treeData,Pr=It.children,or=It.loadData,Lr=It.treeLoadedKeys,zr=It.onTreeLoad,wr=It.treeDefaultExpandAll,Ti=It.treeExpandedKeys,On=It.treeDefaultExpandedKeys,yn=It.onTreeExpand,Sn=It.treeExpandAction,Jn=It.virtual,ui=It.listHeight,Yr=ui===void 0?200:ui,ci=It.listItemHeight,ur=ci===void 0?20:ci,Xr=It.listItemScrollOffset,wi=Xr===void 0?0:Xr,ki=It.onDropdownVisibleChange,Fr=It.dropdownMatchSelectWidth,Lt=Fr===void 0?!0:Fr,cn=It.treeLine,kr=It.treeIcon,Ir=It.showTreeIcon,Xt=It.switcherIcon,Fn=It.treeMotion,fr=It.treeTitleRender,dn=It.onPopupScroll,Ue=(0,je.Z)(It,at),Mr=(0,lt.ZP)(jt),Ur=ei&&!Kr,Wn=ei||Kr,mi=Kr||lr,Qr=Wn||Mn,rr=(0,He.Z)(Rt,{value:pn}),Gr=(0,De.Z)(rr,2),on=Gr[0],Ci=Gr[1],Vi=$e.useMemo(function(){return ei?ni||ot:tr},[ni,ei]),mn=$e.useMemo(function(){return qt(oi)},[JSON.stringify(oi)]),li=(0,He.Z)("",{value:vn!==void 0?vn:zn,postState:function(an){return an||""}}),bi=(0,De.Z)(li,2),qr=bi[0],Pi=bi[1],Ii=function(an){Pi(an),un==null||un(an)},Hi=mt(dr,Pr,Oe),ji=he(Hi,mn),Bi=ji.keyEntities,io=ji.valueEntities,Qn=$e.useCallback(function(Yn){var an=[],cr=[];return Yn.forEach(function(Vr){io.has(Vr)?cr.push(Vr):an.push(Vr)}),{missingRawValues:an,existRawValues:cr}},[io]),zi=st(Hi,qr,{fieldNames:mn,treeNodeFilterProp:Er,filterTreeNode:ir}),ar=$e.useCallback(function(Yn){if(Yn){if(Rr)return Yn[Rr];for(var an=mn._title,cr=0;cr<an.length;cr+=1){var Vr=Yn[an[cr]];if(Vr!==void 0)return Vr}}},[mn,Rr]),vi=$e.useCallback(function(Yn){var an=ct(Yn);return an.map(function(cr){return Be(cr)?{value:cr}:cr})},[]),Zi=$e.useCallback(function(Yn){var an=vi(Yn);return an.map(function(cr){var Vr=cr.label,Ni=cr.value,si=cr.halfChecked,Si,Ri=io.get(Ni);if(Ri){var _i;Vr=fr?fr(Ri.node):(_i=Vr)!==null&&_i!==void 0?_i:ar(Ri.node),Si=Ri.node.disabled}else if(Vr===void 0){var ao=vi(on).find(function(wo){return wo.value===Ni});Vr=ao.label}return{label:Vr,value:Ni,halfChecked:si,disabled:Si}})},[io,ar,vi,on]),Fi=$e.useMemo(function(){return vi(on===null?[]:on)},[vi,on]),fo=$e.useMemo(function(){var Yn=[],an=[];return Fi.forEach(function(cr){cr.halfChecked?an.push(cr):Yn.push(cr)}),[Yn,an]},[Fi]),co=(0,De.Z)(fo,2),Wi=co[0],zo=co[1],_n=$e.useMemo(function(){return Wi.map(function(Yn){return Yn.value})},[Wi]),vr=te(Wi,zo,Ur,Bi),An=(0,De.Z)(vr,2),it=An[0],Dr=An[1],Wr=$e.useMemo(function(){var Yn=_e(it,Vi,Bi,mn),an=Yn.map(function(si){var Si,Ri;return(Si=(Ri=Bi[si])===null||Ri===void 0||(Ri=Ri.node)===null||Ri===void 0?void 0:Ri[mn.value])!==null&&Si!==void 0?Si:si}),cr=an.map(function(si){var Si=Wi.find(function(_i){return _i.value===si}),Ri=lr?Si==null?void 0:Si.label:fr==null?void 0:fr(Si);return{value:si,label:Ri}}),Vr=Zi(cr),Ni=Vr[0];return!Qr&&Ni&&xn(Ni.value)&&xn(Ni.label)?[]:Vr.map(function(si){var Si;return(0,ke.Z)((0,ke.Z)({},si),{},{label:(Si=si.label)!==null&&Si!==void 0?Si:si.value})})},[mn,Qr,it,Wi,Zi,Vi,Bi]),pi=Mt(Wr),hi=(0,De.Z)(pi,1),ai=hi[0],mr=$e.useMemo(function(){return Qr&&(Vi==="SHOW_CHILD"||Kr||!ei)?jr:null},[jr,Qr,Kr,Vi,ei]),ht=gt(function(Yn,an,cr){var Vr=_e(Yn,Vi,Bi,mn);if(!(mr&&Vr.length>mr)){var Ni=Zi(Yn);if(Ci(Ni),Xn&&Pi(""),Tn){var si=Yn;Ur&&(si=Vr.map(function(Yi){var Oi=io.get(Yi);return Oi?Oi.node[mn.value]:Yi}));var Si=an||{triggerValue:void 0,selected:void 0},Ri=Si.triggerValue,_i=Si.selected,ao=si;if(Kr){var wo=zo.filter(function(Yi){return!si.includes(Yi.value)});ao=[].concat((0,Pe.Z)(ao),(0,Pe.Z)(wo))}var Ho=Zi(ao),In={preValue:Wi,triggerValue:Ri},ko=!0;(Kr||cr==="selection"&&!_i)&&(ko=!1),nt(In,Ri,Yn,Hi,ko,mn),Wn?In.checked=_i:In.selected=_i;var po=mi?Ho:Ho.map(function(Yi){return Yi.value});Tn(Qr?po:po[0],mi?null:Ho.map(function(Yi){return Yi.label}),In)}}}),wn=$e.useCallback(function(Yn,an){var cr,Vr=an.selected,Ni=an.source,si=Bi[Yn],Si=si==null?void 0:si.node,Ri=(cr=Si==null?void 0:Si[mn.value])!==null&&cr!==void 0?cr:Yn;if(!Qr)ht([Ri],{selected:!0,triggerValue:Ri},"option");else{var _i=Vr?[].concat((0,Pe.Z)(_n),[Ri]):it.filter(function(Oi){return Oi!==Ri});if(Ur){var ao=Qn(_i),wo=ao.missingRawValues,Ho=ao.existRawValues,In=Ho.map(function(Oi){return io.get(Oi).key}),ko;if(Vr){var po=(0,Ke.S)(In,!0,Bi);ko=po.checkedKeys}else{var Yi=(0,Ke.S)(In,{checked:!1,halfCheckedKeys:Dr},Bi);ko=Yi.checkedKeys}_i=[].concat((0,Pe.Z)(wo),(0,Pe.Z)(ko.map(function(Oi){return Bi[Oi].node[mn.value]})))}ht(_i,{selected:Vr,triggerValue:Ri},Ni||"option")}Vr||!Qr?Yt==null||Yt(Ri,Xe(Si)):en==null||en(Ri,Xe(Si))},[Qn,io,Bi,mn,Qr,_n,ht,Ur,Yt,en,it,Dr,jr]),Pn=$e.useCallback(function(Yn){if(ki){var an={};Object.defineProperty(an,"documentClickClose",{get:function(){return(0,yt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ki(Yn,an)}},[ki]),Gn=gt(function(Yn,an){var cr=Yn.map(function(Vr){return Vr.value});if(an.type==="clear"){ht(cr,{},"selection");return}an.values.length&&wn(an.values[0].value,{selected:!1,source:"selection"})}),gn=$e.useMemo(function(){return{virtual:Jn,dropdownMatchSelectWidth:Lt,listHeight:Yr,listItemHeight:ur,listItemScrollOffset:wi,treeData:zi,fieldNames:mn,onSelect:wn,treeExpandAction:Sn,treeTitleRender:fr,onPopupScroll:dn,leftMaxCount:jr===void 0?null:jr-ai.length,leafCountOnly:Vi==="SHOW_CHILD"&&!Kr&&!!ei,valueEntities:io}},[Jn,Lt,Yr,ur,wi,zi,mn,wn,Sn,fr,dn,jr,ai.length,Vi,Kr,ei,io]),$n=$e.useMemo(function(){return{checkable:Wn,loadData:or,treeLoadedKeys:Lr,onTreeLoad:zr,checkedKeys:it,halfCheckedKeys:Dr,treeDefaultExpandAll:wr,treeExpandedKeys:Ti,treeDefaultExpandedKeys:On,onTreeExpand:yn,treeIcon:kr,treeMotion:Fn,showTreeIcon:Ir,switcherIcon:Xt,treeLine:cn,treeNodeFilterProp:Er,keyEntities:Bi}},[Wn,or,Lr,zr,it,Dr,wr,Ti,On,yn,kr,Fn,Ir,Xt,cn,Er,Bi]);return $e.createElement(pt.Provider,{value:gn},$e.createElement(Tt.Provider,{value:$n},$e.createElement(Ge.Ac,(0,oe.Z)({ref:_t},Ue,{id:Mr,prefixCls:En,mode:Qr?"multiple":void 0,displayValues:ai,onDisplayValuesChange:Gn,searchValue:qr,onSearch:Ii,OptionList:Nn,emptyOptions:!Hi.length,onDropdownVisibleChange:Pn,dropdownMatchSelectWidth:Lt}))))}),bn=bt;bn.TreeNode=be,bn.SHOW_ALL=tr,bn.SHOW_PARENT=hr,bn.SHOW_CHILD=ot;var sn=bn,Bn=sn},639:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return me}});var oe=ae(14809),Pe=ae(4635),ke=ae(20439),De=ae(50298),je=ae(62646),Te=ae(59301),Ge=ae(92310),lt=ae.n(Ge),Ke=ae(26112),He=ae(30699),yt=function(Ae){for(var Ie=Ae.prefixCls,Xe=Ae.level,nt=Ae.isStart,Je=Ae.isEnd,st="".concat(Ie,"-indent-unit"),gt=[],rt=0;rt<Xe;rt+=1)gt.push(Te.createElement("span",{key:rt,className:lt()(st,(0,Pe.Z)((0,Pe.Z)({},"".concat(st,"-start"),nt[rt]),"".concat(st,"-end"),Je[rt]))}));return Te.createElement("span",{"aria-hidden":"true",className:"".concat(Ie,"-indent")},gt)},$e=Te.memo(yt),Mt=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(Ae){var Ie,Xe,nt,Je=Ae.eventKey,st=Ae.className,gt=Ae.style,rt=Ae.dragOver,mt=Ae.dragOverGapTop,xt=Ae.dragOverGapBottom,Tt=Ae.isLeaf,zt=Ae.isStart,Qt=Ae.isEnd,Kt=Ae.expanded,Cn=Ae.selected,St=Ae.checked,pt=Ae.halfChecked,ct=Ae.loading,qt=Ae.domRef,fn=Ae.active,kt=Ae.data,xn=Ae.onMouseMove,kn=Ae.selectable,Vn=(0,je.Z)(Ae,te),Vt=Te.useContext(He.k),Ot=Te.useContext(He.y),Nn=Te.useRef(null),tr=Te.useState(!1),hr=(0,De.Z)(tr,2),ot=hr[0],_e=hr[1],Re=!!(Vt.disabled||Ae.disabled||(Ie=Ot.nodeDisabled)!==null&&Ie!==void 0&&Ie.call(Ot,kt)),Ye=Te.useMemo(function(){return!Vt.checkable||Ae.checkable===!1?!1:Vt.checkable},[Vt.checkable,Ae.checkable]),at=function(Pr){Re||Vt.onNodeSelect(Pr,(0,Fe.F)(Ae))},Be=function(Pr){Re||!Ye||Ae.disableCheckbox||Vt.onNodeCheck(Pr,(0,Fe.F)(Ae),!St)},bt=Te.useMemo(function(){return typeof kn=="boolean"?kn:Vt.selectable},[kn,Vt.selectable]),bn=function(Pr){Vt.onNodeClick(Pr,(0,Fe.F)(Ae)),bt?at(Pr):Be(Pr)},sn=function(Pr){Vt.onNodeDoubleClick(Pr,(0,Fe.F)(Ae))},Bn=function(Pr){Vt.onNodeMouseEnter(Pr,(0,Fe.F)(Ae))},It=function(Pr){Vt.onNodeMouseLeave(Pr,(0,Fe.F)(Ae))},_t=function(Pr){Vt.onNodeContextMenu(Pr,(0,Fe.F)(Ae))},jt=Te.useMemo(function(){return!!(Vt.draggable&&(!Vt.draggable.nodeDraggable||Vt.draggable.nodeDraggable(kt)))},[Vt.draggable,kt]),hn=function(Pr){Pr.stopPropagation(),_e(!0),Vt.onNodeDragStart(Pr,Ae);try{Pr.dataTransfer.setData("text/plain","")}catch(or){}},En=function(Pr){Pr.preventDefault(),Pr.stopPropagation(),Vt.onNodeDragEnter(Pr,Ae)},pn=function(Pr){Pr.preventDefault(),Pr.stopPropagation(),Vt.onNodeDragOver(Pr,Ae)},Rt=function(Pr){Pr.stopPropagation(),Vt.onNodeDragLeave(Pr,Ae)},Tn=function(Pr){Pr.stopPropagation(),_e(!1),Vt.onNodeDragEnd(Pr,Ae)},Yt=function(Pr){Pr.preventDefault(),Pr.stopPropagation(),_e(!1),Vt.onNodeDrop(Pr,Ae)},en=function(Pr){ct||Vt.onNodeExpand(Pr,(0,Fe.F)(Ae))},vn=Te.useMemo(function(){var dr=(0,Mt.Z)(Vt.keyEntities,Je)||{},Pr=dr.children;return!!(Pr||[]).length},[Vt.keyEntities,Je]),zn=Te.useMemo(function(){return Tt===!1?!1:Tt||!Vt.loadData&&!vn||Vt.loadData&&Ae.loaded&&!vn},[Tt,Vt.loadData,vn,Ae.loaded]);Te.useEffect(function(){ct||typeof Vt.loadData=="function"&&Kt&&!zn&&!Ae.loaded&&Vt.onNodeLoad((0,Fe.F)(Ae))},[ct,Vt.loadData,Vt.onNodeLoad,Kt,zn,Ae]);var un=Te.useMemo(function(){var dr;return(dr=Vt.draggable)!==null&&dr!==void 0&&dr.icon?Te.createElement("span",{className:"".concat(Vt.prefixCls,"-draggable-icon")},Vt.draggable.icon):null},[Vt.draggable]),Et=function(Pr){var or=Ae.switcherIcon||Vt.switcherIcon;return typeof or=="function"?or((0,ke.Z)((0,ke.Z)({},Ae),{},{isLeaf:Pr})):or},Xn=function(){if(zn){var Pr=Et(!0);return Pr!==!1?Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-switcher"),"".concat(Vt.prefixCls,"-switcher-noop"))},Pr):null}var or=Et(!1);return or!==!1?Te.createElement("span",{onClick:en,className:lt()("".concat(Vt.prefixCls,"-switcher"),"".concat(Vt.prefixCls,"-switcher_").concat(Kt?ee:he))},or):null},ir=Te.useMemo(function(){if(!Ye)return null;var dr=typeof Ye!="boolean"?Ye:null;return Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Vt.prefixCls,"-checkbox-checked"),St),"".concat(Vt.prefixCls,"-checkbox-indeterminate"),!St&&pt),"".concat(Vt.prefixCls,"-checkbox-disabled"),Re||Ae.disableCheckbox)),onClick:Be,role:"checkbox","aria-checked":pt?"mixed":St,"aria-disabled":Re||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},dr)},[Ye,St,pt,Re,Ae.disableCheckbox,Ae.title]),Jt=Te.useMemo(function(){return zn?null:Kt?ee:he},[zn,Kt]),Er=Te.useMemo(function(){return Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-iconEle"),"".concat(Vt.prefixCls,"-icon__").concat(Jt||"docu"),(0,Pe.Z)({},"".concat(Vt.prefixCls,"-icon_loading"),ct))})},[Vt.prefixCls,Jt,ct]),ni=Te.useMemo(function(){var dr=!!Vt.draggable,Pr=!Ae.disabled&&dr&&Vt.dragOverNodeKey===Je;return Pr?Vt.dropIndicatorRender({dropPosition:Vt.dropPosition,dropLevelOffset:Vt.dropLevelOffset,indent:Vt.indent,prefixCls:Vt.prefixCls,direction:Vt.direction}):null},[Vt.dropPosition,Vt.dropLevelOffset,Vt.indent,Vt.prefixCls,Vt.direction,Vt.draggable,Vt.dragOverNodeKey,Vt.dropIndicatorRender]),Rr=Te.useMemo(function(){var dr=Ae.title,Pr=dr===void 0?ue:dr,or="".concat(Vt.prefixCls,"-node-content-wrapper"),Lr;if(Vt.showIcon){var zr=Ae.icon||Vt.icon;Lr=zr?Te.createElement("span",{className:lt()("".concat(Vt.prefixCls,"-iconEle"),"".concat(Vt.prefixCls,"-icon__customize"))},typeof zr=="function"?zr(Ae):zr):Er}else Vt.loadData&&ct&&(Lr=Er);var wr;return typeof Pr=="function"?wr=Pr(kt):Vt.titleRender?wr=Vt.titleRender(kt):wr=Pr,Te.createElement("span",{ref:Nn,title:typeof Pr=="string"?Pr:"",className:lt()(or,"".concat(or,"-").concat(Jt||"normal"),(0,Pe.Z)({},"".concat(Vt.prefixCls,"-node-selected"),!Re&&(Cn||ot))),onMouseEnter:Bn,onMouseLeave:It,onContextMenu:_t,onClick:bn,onDoubleClick:sn},Lr,Te.createElement("span",{className:"".concat(Vt.prefixCls,"-title")},wr),ni)},[Vt.prefixCls,Vt.showIcon,Ae,Vt.icon,Er,Vt.titleRender,kt,Jt,Bn,It,_t,bn,sn]),Mn=(0,Ke.Z)(Vn,{aria:!0,data:!0}),ei=(0,Mt.Z)(Vt.keyEntities,Je)||{},Kr=ei.level,lr=Qt[Qt.length-1],jr=!Re&&jt,oi=Vt.draggingNodeKey===Je,Oe=kn!==void 0?{"aria-selected":!!kn}:void 0;return Te.createElement("div",(0,oe.Z)({ref:qt,role:"treeitem","aria-expanded":Tt?void 0:Kt,className:lt()(st,"".concat(Vt.prefixCls,"-treenode"),(nt={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(nt,"".concat(Vt.prefixCls,"-treenode-disabled"),Re),"".concat(Vt.prefixCls,"-treenode-switcher-").concat(Kt?"open":"close"),!Tt),"".concat(Vt.prefixCls,"-treenode-checkbox-checked"),St),"".concat(Vt.prefixCls,"-treenode-checkbox-indeterminate"),pt),"".concat(Vt.prefixCls,"-treenode-selected"),Cn),"".concat(Vt.prefixCls,"-treenode-loading"),ct),"".concat(Vt.prefixCls,"-treenode-active"),fn),"".concat(Vt.prefixCls,"-treenode-leaf-last"),lr),"".concat(Vt.prefixCls,"-treenode-draggable"),jt),"dragging",oi),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(nt,"drop-target",Vt.dropTargetKey===Je),"drop-container",Vt.dropContainerKey===Je),"drag-over",!Re&&rt),"drag-over-gap-top",!Re&&mt),"drag-over-gap-bottom",!Re&&xt),"filter-node",(Xe=Vt.filterTreeNode)===null||Xe===void 0?void 0:Xe.call(Vt,(0,Fe.F)(Ae))),"".concat(Vt.prefixCls,"-treenode-leaf"),zn))),style:gt,draggable:jr,onDragStart:jr?hn:void 0,onDragEnter:jt?En:void 0,onDragOver:jt?pn:void 0,onDragLeave:jt?Rt:void 0,onDrop:jt?Yt:void 0,onDragEnd:jt?Tn:void 0,onMouseMove:xn},Oe,Mn),Te.createElement($e,{prefixCls:Vt.prefixCls,level:Kr,isStart:zt,isEnd:Qt}),un,Xn(),ir,Rr)};fe.isTreeNode=1;var me=fe},30699:function(We,Ee,ae){"use strict";ae.d(Ee,{k:function(){return Pe},y:function(){return ke}});var oe=ae(59301),Pe=oe.createContext(null),ke=oe.createContext({})},29530:function(We,Ee,ae){"use strict";ae.d(Ee,{OF:function(){return Je.Z},y6:function(){return he.y},ZP:function(){return Re}});var oe=ae(14809),Pe=ae(93664),ke=ae(20439),De=ae(95190),je=ae(99153),Te=ae(84851),Ge=ae(13028),lt=ae(19257),Ke=ae(93046),He=ae(4635),yt=ae(92310),$e=ae.n(yt),Mt=ae(10228),Fe=ae(26112),te=ae(48736),ee=ae(59301),he=ae(30699),ue=function(at){var Be=at.dropPosition,bt=at.dropLevelOffset,bn=at.indent,sn={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Be){case-1:sn.top=0,sn.left=-bt*bn;break;case 1:sn.bottom=0,sn.left=-bt*bn;break;case 0:sn.bottom=0,sn.left=bn;break}return ee.createElement("div",{style:sn})},fe=ue;function me(Ye){if(Ye==null)throw new TypeError("Cannot destructure "+Ye)}var be=ae(50298),Ae=ae(62646),Ie=ae(34280),Xe=ae(65283),nt=ae(77900),Je=ae(639);function st(Ye,at){var Be=ee.useState(!1),bt=(0,be.Z)(Be,2),bn=bt[0],sn=bt[1];(0,Ie.Z)(function(){if(bn)return Ye(),function(){at()}},[bn]),(0,Ie.Z)(function(){return sn(!0),function(){sn(!1)}},[])}var gt=st,rt=ae(34061),mt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xt=ee.forwardRef(function(Ye,at){var Be=Ye.className,bt=Ye.style,bn=Ye.motion,sn=Ye.motionNodes,Bn=Ye.motionType,It=Ye.onMotionStart,_t=Ye.onMotionEnd,jt=Ye.active,hn=Ye.treeNodeRequiredProps,En=(0,Ae.Z)(Ye,mt),pn=ee.useState(!0),Rt=(0,be.Z)(pn,2),Tn=Rt[0],Yt=Rt[1],en=ee.useContext(he.k),vn=en.prefixCls,zn=sn&&Bn!=="hide";(0,Ie.Z)(function(){sn&&zn!==Tn&&Yt(zn)},[sn]);var un=function(){sn&&It()},Et=ee.useRef(!1),Xn=function(){sn&&!Et.current&&(Et.current=!0,_t())};gt(un,Xn);var ir=function(Er){zn===Er&&Xn()};return sn?ee.createElement(nt.default,(0,oe.Z)({ref:at,visible:Tn},bn,{motionAppear:Bn==="show",onVisibleChanged:ir}),function(Jt,Er){var ni=Jt.className,Rr=Jt.style;return ee.createElement("div",{ref:Er,className:$e()("".concat(vn,"-treenode-motion"),ni),style:Rr},sn.map(function(Mn){var ei=Object.assign({},(me(Mn.data),Mn.data)),Kr=Mn.title,lr=Mn.key,jr=Mn.isStart,oi=Mn.isEnd;delete ei.children;var Oe=(0,rt.H8)(lr,hn);return ee.createElement(Je.Z,(0,oe.Z)({},ei,Oe,{title:Kr,active:jt,data:Mn.data,key:lr,isStart:jr,isEnd:oi}))}))}):ee.createElement(Je.Z,(0,oe.Z)({domRef:at,className:Be,style:bt},En,{active:jt}))}),Tt=xt;function zt(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Be=Ye.length,bt=at.length;if(Math.abs(Be-bt)!==1)return{add:!1,key:null};function bn(sn,Bn){var It=new Map;sn.forEach(function(jt){It.set(jt,!0)});var _t=Bn.filter(function(jt){return!It.has(jt)});return _t.length===1?_t[0]:null}return Be<bt?{add:!0,key:bn(Ye,at)}:{add:!1,key:bn(at,Ye)}}function Qt(Ye,at,Be){var bt=Ye.findIndex(function(It){return It.key===Be}),bn=Ye[bt+1],sn=at.findIndex(function(It){return It.key===Be});if(bn){var Bn=at.findIndex(function(It){return It.key===bn.key});return at.slice(sn+1,Bn)}return at.slice(sn+1)}var Kt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Cn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},St=function(){},pt="RC_TREE_MOTION_".concat(Math.random()),ct={key:pt},qt={key:pt,level:0,index:0,pos:"0",node:ct,nodes:[ct]},fn={parent:null,children:[],pos:qt.pos,data:ct,title:null,key:pt,isStart:[],isEnd:[]};function kt(Ye,at,Be,bt){return at===!1||!Be?Ye:Ye.slice(0,Math.ceil(Be/bt)+1)}function xn(Ye){var at=Ye.key,Be=Ye.pos;return(0,rt.km)(at,Be)}function kn(Ye){for(var at=String(Ye.data.key),Be=Ye;Be.parent;)Be=Be.parent,at="".concat(Be.data.key," > ").concat(at);return at}var Vn=ee.forwardRef(function(Ye,at){var Be=Ye.prefixCls,bt=Ye.data,bn=Ye.selectable,sn=Ye.checkable,Bn=Ye.expandedKeys,It=Ye.selectedKeys,_t=Ye.checkedKeys,jt=Ye.loadedKeys,hn=Ye.loadingKeys,En=Ye.halfCheckedKeys,pn=Ye.keyEntities,Rt=Ye.disabled,Tn=Ye.dragging,Yt=Ye.dragOverNodeKey,en=Ye.dropPosition,vn=Ye.motion,zn=Ye.height,un=Ye.itemHeight,Et=Ye.virtual,Xn=Ye.scrollWidth,ir=Ye.focusable,Jt=Ye.activeItem,Er=Ye.focused,ni=Ye.tabIndex,Rr=Ye.onKeyDown,Mn=Ye.onFocus,ei=Ye.onBlur,Kr=Ye.onActiveChange,lr=Ye.onListChangeStart,jr=Ye.onListChangeEnd,oi=(0,Ae.Z)(Ye,Kt),Oe=ee.useRef(null),dr=ee.useRef(null);ee.useImperativeHandle(at,function(){return{scrollTo:function(dn){Oe.current.scrollTo(dn)},getIndentWidth:function(){return dr.current.offsetWidth}}});var Pr=ee.useState(Bn),or=(0,be.Z)(Pr,2),Lr=or[0],zr=or[1],wr=ee.useState(bt),Ti=(0,be.Z)(wr,2),On=Ti[0],yn=Ti[1],Sn=ee.useState(bt),Jn=(0,be.Z)(Sn,2),ui=Jn[0],Yr=Jn[1],ci=ee.useState([]),ur=(0,be.Z)(ci,2),Xr=ur[0],wi=ur[1],ki=ee.useState(null),Fr=(0,be.Z)(ki,2),Lt=Fr[0],cn=Fr[1],kr=ee.useRef(bt);kr.current=bt;function Ir(){var fr=kr.current;yn(fr),Yr(fr),wi([]),cn(null),jr()}(0,Ie.Z)(function(){zr(Bn);var fr=zt(Lr,Bn);if(fr.key!==null)if(fr.add){var dn=On.findIndex(function(Qr){var rr=Qr.key;return rr===fr.key}),Ue=kt(Qt(On,bt,fr.key),Et,zn,un),Mr=On.slice();Mr.splice(dn+1,0,fn),Yr(Mr),wi(Ue),cn("show")}else{var Ur=bt.findIndex(function(Qr){var rr=Qr.key;return rr===fr.key}),Wn=kt(Qt(bt,On,fr.key),Et,zn,un),mi=bt.slice();mi.splice(Ur+1,0,fn),Yr(mi),wi(Wn),cn("hide")}else On!==bt&&(yn(bt),Yr(bt))},[Bn,bt]),ee.useEffect(function(){Tn||Ir()},[Tn]);var Xt=vn?ui:bt,Fn={expandedKeys:Bn,selectedKeys:It,loadedKeys:jt,loadingKeys:hn,checkedKeys:_t,halfCheckedKeys:En,dragOverNodeKey:Yt,dropPosition:en,keyEntities:pn};return ee.createElement(ee.Fragment,null,Er&&Jt&&ee.createElement("span",{style:Cn,"aria-live":"assertive"},kn(Jt)),ee.createElement("div",null,ee.createElement("input",{style:Cn,disabled:ir===!1||Rt,tabIndex:ir!==!1?ni:null,onKeyDown:Rr,onFocus:Mn,onBlur:ei,value:"",onChange:St,"aria-label":"for screen reader"})),ee.createElement("div",{className:"".concat(Be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ee.createElement("div",{className:"".concat(Be,"-indent")},ee.createElement("div",{ref:dr,className:"".concat(Be,"-indent-unit")}))),ee.createElement(Xe.Z,(0,oe.Z)({},oi,{data:Xt,itemKey:xn,height:zn,fullHeight:!1,virtual:Et,itemHeight:un,scrollWidth:Xn,prefixCls:"".concat(Be,"-list"),ref:Oe,role:"tree",onVisibleChange:function(dn){dn.every(function(Ue){return xn(Ue)!==pt})&&Ir()}}),function(fr){var dn=fr.pos,Ue=Object.assign({},(me(fr.data),fr.data)),Mr=fr.title,Ur=fr.key,Wn=fr.isStart,mi=fr.isEnd,Qr=(0,rt.km)(Ur,dn);delete Ue.key,delete Ue.children;var rr=(0,rt.H8)(Qr,Fn);return ee.createElement(Tt,(0,oe.Z)({},Ue,rr,{title:Mr,active:!!Jt&&Ur===Jt.key,pos:dn,data:fr.data,isStart:Wn,isEnd:mi,motion:vn,motionNodes:Ur===pt?Xr:null,motionType:Lt,onMotionStart:lr,onMotionEnd:Ir,treeNodeRequiredProps:Fn,onMouseMove:function(){Kr(null)}}))}))}),Vt=Vn,Ot=ae(82661),Nn=ae(34643),tr=ae(65065),hr=10,ot=function(Ye){(0,lt.Z)(Be,Ye);var at=(0,Ke.Z)(Be);function Be(){var bt;(0,je.Z)(this,Be);for(var bn=arguments.length,sn=new Array(bn),Bn=0;Bn<bn;Bn++)sn[Bn]=arguments[Bn];return bt=at.call.apply(at,[this].concat(sn)),(0,He.Z)((0,Ge.Z)(bt),"destroyed",!1),(0,He.Z)((0,Ge.Z)(bt),"delayedDragEnterLogic",void 0),(0,He.Z)((0,Ge.Z)(bt),"loadingRetryTimes",{}),(0,He.Z)((0,Ge.Z)(bt),"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,rt.w$)()}),(0,He.Z)((0,Ge.Z)(bt),"dragStartMousePosition",null),(0,He.Z)((0,Ge.Z)(bt),"dragNodeProps",null),(0,He.Z)((0,Ge.Z)(bt),"currentMouseOverDroppableNodeKey",null),(0,He.Z)((0,Ge.Z)(bt),"listRef",ee.createRef()),(0,He.Z)((0,Ge.Z)(bt),"onNodeDragStart",function(It,_t){var jt=bt.state,hn=jt.expandedKeys,En=jt.keyEntities,pn=bt.props.onDragStart,Rt=_t.eventKey;bt.dragNodeProps=_t,bt.dragStartMousePosition={x:It.clientX,y:It.clientY};var Tn=(0,Ot._5)(hn,Rt);bt.setState({draggingNodeKey:Rt,dragChildrenKeys:(0,Ot.wA)(Rt,En),indent:bt.listRef.current.getIndentWidth()}),bt.setExpandedKeys(Tn),window.addEventListener("dragend",bt.onWindowDragEnd),pn==null||pn({event:It,node:(0,rt.F)(_t)})}),(0,He.Z)((0,Ge.Z)(bt),"onNodeDragEnter",function(It,_t){var jt=bt.state,hn=jt.expandedKeys,En=jt.keyEntities,pn=jt.dragChildrenKeys,Rt=jt.flattenNodes,Tn=jt.indent,Yt=bt.props,en=Yt.onDragEnter,vn=Yt.onExpand,zn=Yt.allowDrop,un=Yt.direction,Et=_t.pos,Xn=_t.eventKey;if(bt.currentMouseOverDroppableNodeKey!==Xn&&(bt.currentMouseOverDroppableNodeKey=Xn),!bt.dragNodeProps){bt.resetDragState();return}var ir=(0,Ot.OM)(It,bt.dragNodeProps,_t,Tn,bt.dragStartMousePosition,zn,Rt,En,hn,un),Jt=ir.dropPosition,Er=ir.dropLevelOffset,ni=ir.dropTargetKey,Rr=ir.dropContainerKey,Mn=ir.dropTargetPos,ei=ir.dropAllowed,Kr=ir.dragOverNodeKey;if(pn.includes(ni)||!ei){bt.resetDragState();return}if(bt.delayedDragEnterLogic||(bt.delayedDragEnterLogic={}),Object.keys(bt.delayedDragEnterLogic).forEach(function(lr){clearTimeout(bt.delayedDragEnterLogic[lr])}),bt.dragNodeProps.eventKey!==_t.eventKey&&(It.persist(),bt.delayedDragEnterLogic[Et]=window.setTimeout(function(){if(bt.state.draggingNodeKey!==null){var lr=(0,De.Z)(hn),jr=(0,tr.Z)(En,_t.eventKey);jr&&(jr.children||[]).length&&(lr=(0,Ot.L0)(hn,_t.eventKey)),bt.props.hasOwnProperty("expandedKeys")||bt.setExpandedKeys(lr),vn==null||vn(lr,{node:(0,rt.F)(_t),expanded:!0,nativeEvent:It.nativeEvent})}},800)),bt.dragNodeProps.eventKey===ni&&Er===0){bt.resetDragState();return}bt.setState({dragOverNodeKey:Kr,dropPosition:Jt,dropLevelOffset:Er,dropTargetKey:ni,dropContainerKey:Rr,dropTargetPos:Mn,dropAllowed:ei}),en==null||en({event:It,node:(0,rt.F)(_t),expandedKeys:hn})}),(0,He.Z)((0,Ge.Z)(bt),"onNodeDragOver",function(It,_t){var jt=bt.state,hn=jt.dragChildrenKeys,En=jt.flattenNodes,pn=jt.keyEntities,Rt=jt.expandedKeys,Tn=jt.indent,Yt=bt.props,en=Yt.onDragOver,vn=Yt.allowDrop,zn=Yt.direction;if(bt.dragNodeProps){var un=(0,Ot.OM)(It,bt.dragNodeProps,_t,Tn,bt.dragStartMousePosition,vn,En,pn,Rt,zn),Et=un.dropPosition,Xn=un.dropLevelOffset,ir=un.dropTargetKey,Jt=un.dropContainerKey,Er=un.dropTargetPos,ni=un.dropAllowed,Rr=un.dragOverNodeKey;hn.includes(ir)||!ni||(bt.dragNodeProps.eventKey===ir&&Xn===0?bt.state.dropPosition===null&&bt.state.dropLevelOffset===null&&bt.state.dropTargetKey===null&&bt.state.dropContainerKey===null&&bt.state.dropTargetPos===null&&bt.state.dropAllowed===!1&&bt.state.dragOverNodeKey===null||bt.resetDragState():Et===bt.state.dropPosition&&Xn===bt.state.dropLevelOffset&&ir===bt.state.dropTargetKey&&Jt===bt.state.dropContainerKey&&Er===bt.state.dropTargetPos&&ni===bt.state.dropAllowed&&Rr===bt.state.dragOverNodeKey||bt.setState({dropPosition:Et,dropLevelOffset:Xn,dropTargetKey:ir,dropContainerKey:Jt,dropTargetPos:Er,dropAllowed:ni,dragOverNodeKey:Rr}),en==null||en({event:It,node:(0,rt.F)(_t)}))}}),(0,He.Z)((0,Ge.Z)(bt),"onNodeDragLeave",function(It,_t){bt.currentMouseOverDroppableNodeKey===_t.eventKey&&!It.currentTarget.contains(It.relatedTarget)&&(bt.resetDragState(),bt.currentMouseOverDroppableNodeKey=null);var jt=bt.props.onDragLeave;jt==null||jt({event:It,node:(0,rt.F)(_t)})}),(0,He.Z)((0,Ge.Z)(bt),"onWindowDragEnd",function(It){bt.onNodeDragEnd(It,null,!0),window.removeEventListener("dragend",bt.onWindowDragEnd)}),(0,He.Z)((0,Ge.Z)(bt),"onNodeDragEnd",function(It,_t){var jt=bt.props.onDragEnd;bt.setState({dragOverNodeKey:null}),bt.cleanDragState(),jt==null||jt({event:It,node:(0,rt.F)(_t)}),bt.dragNodeProps=null,window.removeEventListener("dragend",bt.onWindowDragEnd)}),(0,He.Z)((0,Ge.Z)(bt),"onNodeDrop",function(It,_t){var jt,hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,En=bt.state,pn=En.dragChildrenKeys,Rt=En.dropPosition,Tn=En.dropTargetKey,Yt=En.dropTargetPos,en=En.dropAllowed;if(en){var vn=bt.props.onDrop;if(bt.setState({dragOverNodeKey:null}),bt.cleanDragState(),Tn!==null){var zn=(0,ke.Z)((0,ke.Z)({},(0,rt.H8)(Tn,bt.getTreeNodeRequiredProps())),{},{active:((jt=bt.getActiveItem())===null||jt===void 0?void 0:jt.key)===Tn,data:(0,tr.Z)(bt.state.keyEntities,Tn).node}),un=pn.includes(Tn);(0,te.ZP)(!un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Et=(0,Ot.yx)(Yt),Xn={event:It,node:(0,rt.F)(zn),dragNode:bt.dragNodeProps?(0,rt.F)(bt.dragNodeProps):null,dragNodesKeys:[bt.dragNodeProps.eventKey].concat(pn),dropToGap:Rt!==0,dropPosition:Rt+Number(Et[Et.length-1])};hn||vn==null||vn(Xn),bt.dragNodeProps=null}}}),(0,He.Z)((0,Ge.Z)(bt),"cleanDragState",function(){var It=bt.state.draggingNodeKey;It!==null&&bt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),bt.dragStartMousePosition=null,bt.currentMouseOverDroppableNodeKey=null}),(0,He.Z)((0,Ge.Z)(bt),"triggerExpandActionExpand",function(It,_t){var jt=bt.state,hn=jt.expandedKeys,En=jt.flattenNodes,pn=_t.expanded,Rt=_t.key,Tn=_t.isLeaf;if(!(Tn||It.shiftKey||It.metaKey||It.ctrlKey)){var Yt=En.filter(function(vn){return vn.key===Rt})[0],en=(0,rt.F)((0,ke.Z)((0,ke.Z)({},(0,rt.H8)(Rt,bt.getTreeNodeRequiredProps())),{},{data:Yt.data}));bt.setExpandedKeys(pn?(0,Ot._5)(hn,Rt):(0,Ot.L0)(hn,Rt)),bt.onNodeExpand(It,en)}}),(0,He.Z)((0,Ge.Z)(bt),"onNodeClick",function(It,_t){var jt=bt.props,hn=jt.onClick,En=jt.expandAction;En==="click"&&bt.triggerExpandActionExpand(It,_t),hn==null||hn(It,_t)}),(0,He.Z)((0,Ge.Z)(bt),"onNodeDoubleClick",function(It,_t){var jt=bt.props,hn=jt.onDoubleClick,En=jt.expandAction;En==="doubleClick"&&bt.triggerExpandActionExpand(It,_t),hn==null||hn(It,_t)}),(0,He.Z)((0,Ge.Z)(bt),"onNodeSelect",function(It,_t){var jt=bt.state.selectedKeys,hn=bt.state,En=hn.keyEntities,pn=hn.fieldNames,Rt=bt.props,Tn=Rt.onSelect,Yt=Rt.multiple,en=_t.selected,vn=_t[pn.key],zn=!en;zn?Yt?jt=(0,Ot.L0)(jt,vn):jt=[vn]:jt=(0,Ot._5)(jt,vn);var un=jt.map(function(Et){var Xn=(0,tr.Z)(En,Et);return Xn?Xn.node:null}).filter(Boolean);bt.setUncontrolledState({selectedKeys:jt}),Tn==null||Tn(jt,{event:"select",selected:zn,node:_t,selectedNodes:un,nativeEvent:It.nativeEvent})}),(0,He.Z)((0,Ge.Z)(bt),"onNodeCheck",function(It,_t,jt){var hn=bt.state,En=hn.keyEntities,pn=hn.checkedKeys,Rt=hn.halfCheckedKeys,Tn=bt.props,Yt=Tn.checkStrictly,en=Tn.onCheck,vn=_t.key,zn,un={event:"check",node:_t,checked:jt,nativeEvent:It.nativeEvent};if(Yt){var Et=jt?(0,Ot.L0)(pn,vn):(0,Ot._5)(pn,vn),Xn=(0,Ot._5)(Rt,vn);zn={checked:Et,halfChecked:Xn},un.checkedNodes=Et.map(function(Mn){return(0,tr.Z)(En,Mn)}).filter(Boolean).map(function(Mn){return Mn.node}),bt.setUncontrolledState({checkedKeys:Et})}else{var ir=(0,Nn.S)([].concat((0,De.Z)(pn),[vn]),!0,En),Jt=ir.checkedKeys,Er=ir.halfCheckedKeys;if(!jt){var ni=new Set(Jt);ni.delete(vn);var Rr=(0,Nn.S)(Array.from(ni),{checked:!1,halfCheckedKeys:Er},En);Jt=Rr.checkedKeys,Er=Rr.halfCheckedKeys}zn=Jt,un.checkedNodes=[],un.checkedNodesPositions=[],un.halfCheckedKeys=Er,Jt.forEach(function(Mn){var ei=(0,tr.Z)(En,Mn);if(ei){var Kr=ei.node,lr=ei.pos;un.checkedNodes.push(Kr),un.checkedNodesPositions.push({node:Kr,pos:lr})}}),bt.setUncontrolledState({checkedKeys:Jt},!1,{halfCheckedKeys:Er})}en==null||en(zn,un)}),(0,He.Z)((0,Ge.Z)(bt),"onNodeLoad",function(It){var _t,jt=It.key,hn=bt.state.keyEntities,En=(0,tr.Z)(hn,jt);if(!(En!=null&&(_t=En.children)!==null&&_t!==void 0&&_t.length)){var pn=new Promise(function(Rt,Tn){bt.setState(function(Yt){var en=Yt.loadedKeys,vn=en===void 0?[]:en,zn=Yt.loadingKeys,un=zn===void 0?[]:zn,Et=bt.props,Xn=Et.loadData,ir=Et.onLoad;if(!Xn||vn.includes(jt)||un.includes(jt))return null;var Jt=Xn(It);return Jt.then(function(){var Er=bt.state.loadedKeys,ni=(0,Ot.L0)(Er,jt);ir==null||ir(ni,{event:"load",node:It}),bt.setUncontrolledState({loadedKeys:ni}),bt.setState(function(Rr){return{loadingKeys:(0,Ot._5)(Rr.loadingKeys,jt)}}),Rt()}).catch(function(Er){if(bt.setState(function(Rr){return{loadingKeys:(0,Ot._5)(Rr.loadingKeys,jt)}}),bt.loadingRetryTimes[jt]=(bt.loadingRetryTimes[jt]||0)+1,bt.loadingRetryTimes[jt]>=hr){var ni=bt.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),bt.setUncontrolledState({loadedKeys:(0,Ot.L0)(ni,jt)}),Rt()}Tn(Er)}),{loadingKeys:(0,Ot.L0)(un,jt)}})});return pn.catch(function(){}),pn}}),(0,He.Z)((0,Ge.Z)(bt),"onNodeMouseEnter",function(It,_t){var jt=bt.props.onMouseEnter;jt==null||jt({event:It,node:_t})}),(0,He.Z)((0,Ge.Z)(bt),"onNodeMouseLeave",function(It,_t){var jt=bt.props.onMouseLeave;jt==null||jt({event:It,node:_t})}),(0,He.Z)((0,Ge.Z)(bt),"onNodeContextMenu",function(It,_t){var jt=bt.props.onRightClick;jt&&(It.preventDefault(),jt({event:It,node:_t}))}),(0,He.Z)((0,Ge.Z)(bt),"onFocus",function(){var It=bt.props.onFocus;bt.setState({focused:!0});for(var _t=arguments.length,jt=new Array(_t),hn=0;hn<_t;hn++)jt[hn]=arguments[hn];It==null||It.apply(void 0,jt)}),(0,He.Z)((0,Ge.Z)(bt),"onBlur",function(){var It=bt.props.onBlur;bt.setState({focused:!1}),bt.onActiveChange(null);for(var _t=arguments.length,jt=new Array(_t),hn=0;hn<_t;hn++)jt[hn]=arguments[hn];It==null||It.apply(void 0,jt)}),(0,He.Z)((0,Ge.Z)(bt),"getTreeNodeRequiredProps",function(){var It=bt.state,_t=It.expandedKeys,jt=It.selectedKeys,hn=It.loadedKeys,En=It.loadingKeys,pn=It.checkedKeys,Rt=It.halfCheckedKeys,Tn=It.dragOverNodeKey,Yt=It.dropPosition,en=It.keyEntities;return{expandedKeys:_t||[],selectedKeys:jt||[],loadedKeys:hn||[],loadingKeys:En||[],checkedKeys:pn||[],halfCheckedKeys:Rt||[],dragOverNodeKey:Tn,dropPosition:Yt,keyEntities:en}}),(0,He.Z)((0,Ge.Z)(bt),"setExpandedKeys",function(It){var _t=bt.state,jt=_t.treeData,hn=_t.fieldNames,En=(0,rt.oH)(jt,It,hn);bt.setUncontrolledState({expandedKeys:It,flattenNodes:En},!0)}),(0,He.Z)((0,Ge.Z)(bt),"onNodeExpand",function(It,_t){var jt=bt.state.expandedKeys,hn=bt.state,En=hn.listChanging,pn=hn.fieldNames,Rt=bt.props,Tn=Rt.onExpand,Yt=Rt.loadData,en=_t.expanded,vn=_t[pn.key];if(!En){var zn=jt.includes(vn),un=!en;if((0,te.ZP)(en&&zn||!en&&!zn,"Expand state not sync with index check"),jt=un?(0,Ot.L0)(jt,vn):(0,Ot._5)(jt,vn),bt.setExpandedKeys(jt),Tn==null||Tn(jt,{node:_t,expanded:un,nativeEvent:It.nativeEvent}),un&&Yt){var Et=bt.onNodeLoad(_t);Et&&Et.then(function(){var Xn=(0,rt.oH)(bt.state.treeData,jt,pn);bt.setUncontrolledState({flattenNodes:Xn})}).catch(function(){var Xn=bt.state.expandedKeys,ir=(0,Ot._5)(Xn,vn);bt.setExpandedKeys(ir)})}}}),(0,He.Z)((0,Ge.Z)(bt),"onListChangeStart",function(){bt.setUncontrolledState({listChanging:!0})}),(0,He.Z)((0,Ge.Z)(bt),"onListChangeEnd",function(){setTimeout(function(){bt.setUncontrolledState({listChanging:!1})})}),(0,He.Z)((0,Ge.Z)(bt),"onActiveChange",function(It){var _t=bt.state.activeKey,jt=bt.props,hn=jt.onActiveChange,En=jt.itemScrollOffset,pn=En===void 0?0:En;_t!==It&&(bt.setState({activeKey:It}),It!==null&&bt.scrollTo({key:It,offset:pn}),hn==null||hn(It))}),(0,He.Z)((0,Ge.Z)(bt),"getActiveItem",function(){var It=bt.state,_t=It.activeKey,jt=It.flattenNodes;return _t===null?null:jt.find(function(hn){var En=hn.key;return En===_t})||null}),(0,He.Z)((0,Ge.Z)(bt),"offsetActiveKey",function(It){var _t=bt.state,jt=_t.flattenNodes,hn=_t.activeKey,En=jt.findIndex(function(Tn){var Yt=Tn.key;return Yt===hn});En===-1&&It<0&&(En=jt.length),En=(En+It+jt.length)%jt.length;var pn=jt[En];if(pn){var Rt=pn.key;bt.onActiveChange(Rt)}else bt.onActiveChange(null)}),(0,He.Z)((0,Ge.Z)(bt),"onKeyDown",function(It){var _t=bt.state,jt=_t.activeKey,hn=_t.expandedKeys,En=_t.checkedKeys,pn=_t.fieldNames,Rt=bt.props,Tn=Rt.onKeyDown,Yt=Rt.checkable,en=Rt.selectable;switch(It.which){case Mt.Z.UP:{bt.offsetActiveKey(-1),It.preventDefault();break}case Mt.Z.DOWN:{bt.offsetActiveKey(1),It.preventDefault();break}}var vn=bt.getActiveItem();if(vn&&vn.data){var zn=bt.getTreeNodeRequiredProps(),un=vn.data.isLeaf===!1||!!(vn.data[pn.children]||[]).length,Et=(0,rt.F)((0,ke.Z)((0,ke.Z)({},(0,rt.H8)(jt,zn)),{},{data:vn.data,active:!0}));switch(It.which){case Mt.Z.LEFT:{un&&hn.includes(jt)?bt.onNodeExpand({},Et):vn.parent&&bt.onActiveChange(vn.parent.key),It.preventDefault();break}case Mt.Z.RIGHT:{un&&!hn.includes(jt)?bt.onNodeExpand({},Et):vn.children&&vn.children.length&&bt.onActiveChange(vn.children[0].key),It.preventDefault();break}case Mt.Z.ENTER:case Mt.Z.SPACE:{Yt&&!Et.disabled&&Et.checkable!==!1&&!Et.disableCheckbox?bt.onNodeCheck({},Et,!En.includes(jt)):!Yt&&en&&!Et.disabled&&Et.selectable!==!1&&bt.onNodeSelect({},Et);break}}}Tn==null||Tn(It)}),(0,He.Z)((0,Ge.Z)(bt),"setUncontrolledState",function(It){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!bt.destroyed){var hn=!1,En=!0,pn={};Object.keys(It).forEach(function(Rt){if(bt.props.hasOwnProperty(Rt)){En=!1;return}hn=!0,pn[Rt]=It[Rt]}),hn&&(!_t||En)&&bt.setState((0,ke.Z)((0,ke.Z)({},pn),jt))}}),(0,He.Z)((0,Ge.Z)(bt),"scrollTo",function(It){bt.listRef.current.scrollTo(It)}),bt}return(0,Te.Z)(Be,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var bn=this.props,sn=bn.activeKey,Bn=bn.itemScrollOffset,It=Bn===void 0?0:Bn;sn!==void 0&&sn!==this.state.activeKey&&(this.setState({activeKey:sn}),sn!==null&&this.scrollTo({key:sn,offset:It}))}},{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 bn=this.state,sn=bn.focused,Bn=bn.flattenNodes,It=bn.keyEntities,_t=bn.draggingNodeKey,jt=bn.activeKey,hn=bn.dropLevelOffset,En=bn.dropContainerKey,pn=bn.dropTargetKey,Rt=bn.dropPosition,Tn=bn.dragOverNodeKey,Yt=bn.indent,en=this.props,vn=en.prefixCls,zn=en.className,un=en.style,Et=en.showLine,Xn=en.focusable,ir=en.tabIndex,Jt=ir===void 0?0:ir,Er=en.selectable,ni=en.showIcon,Rr=en.icon,Mn=en.switcherIcon,ei=en.draggable,Kr=en.checkable,lr=en.checkStrictly,jr=en.disabled,oi=en.motion,Oe=en.loadData,dr=en.filterTreeNode,Pr=en.height,or=en.itemHeight,Lr=en.scrollWidth,zr=en.virtual,wr=en.titleRender,Ti=en.dropIndicatorRender,On=en.onContextMenu,yn=en.onScroll,Sn=en.direction,Jn=en.rootClassName,ui=en.rootStyle,Yr=(0,Fe.Z)(this.props,{aria:!0,data:!0}),ci;ei&&((0,Pe.Z)(ei)==="object"?ci=ei:typeof ei=="function"?ci={nodeDraggable:ei}:ci={});var ur={prefixCls:vn,selectable:Er,showIcon:ni,icon:Rr,switcherIcon:Mn,draggable:ci,draggingNodeKey:_t,checkable:Kr,checkStrictly:lr,disabled:jr,keyEntities:It,dropLevelOffset:hn,dropContainerKey:En,dropTargetKey:pn,dropPosition:Rt,dragOverNodeKey:Tn,indent:Yt,direction:Sn,dropIndicatorRender:Ti,loadData:Oe,filterTreeNode:dr,titleRender:wr,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:ur},ee.createElement("div",{className:$e()(vn,zn,Jn,(0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(vn,"-show-line"),Et),"".concat(vn,"-focused"),sn),"".concat(vn,"-active-focused"),jt!==null)),style:ui},ee.createElement(Vt,(0,oe.Z)({ref:this.listRef,prefixCls:vn,style:un,data:Bn,disabled:jr,selectable:Er,checkable:!!Kr,motion:oi,dragging:_t!==null,height:Pr,itemHeight:or,virtual:zr,focusable:Xn,focused:sn,tabIndex:Jt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:On,onScroll:yn,scrollWidth:Lr},this.getTreeNodeRequiredProps(),Yr))))}}],[{key:"getDerivedStateFromProps",value:function(bn,sn){var Bn=sn.prevProps,It={prevProps:bn};function _t(Jt){return!Bn&&bn.hasOwnProperty(Jt)||Bn&&Bn[Jt]!==bn[Jt]}var jt,hn=sn.fieldNames;if(_t("fieldNames")&&(hn=(0,rt.w$)(bn.fieldNames),It.fieldNames=hn),_t("treeData")?jt=bn.treeData:_t("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),jt=(0,rt.zn)(bn.children)),jt){It.treeData=jt;var En=(0,rt.I8)(jt,{fieldNames:hn});It.keyEntities=(0,ke.Z)((0,He.Z)({},pt,qt),En.keyEntities)}var pn=It.keyEntities||sn.keyEntities;if(_t("expandedKeys")||Bn&&_t("autoExpandParent"))It.expandedKeys=bn.autoExpandParent||!Bn&&bn.defaultExpandParent?(0,Ot.r7)(bn.expandedKeys,pn):bn.expandedKeys;else if(!Bn&&bn.defaultExpandAll){var Rt=(0,ke.Z)({},pn);delete Rt[pt];var Tn=[];Object.keys(Rt).forEach(function(Jt){var Er=Rt[Jt];Er.children&&Er.children.length&&Tn.push(Er.key)}),It.expandedKeys=Tn}else!Bn&&bn.defaultExpandedKeys&&(It.expandedKeys=bn.autoExpandParent||bn.defaultExpandParent?(0,Ot.r7)(bn.defaultExpandedKeys,pn):bn.defaultExpandedKeys);if(It.expandedKeys||delete It.expandedKeys,jt||It.expandedKeys){var Yt=(0,rt.oH)(jt||sn.treeData,It.expandedKeys||sn.expandedKeys,hn);It.flattenNodes=Yt}if(bn.selectable&&(_t("selectedKeys")?It.selectedKeys=(0,Ot.BT)(bn.selectedKeys,bn):!Bn&&bn.defaultSelectedKeys&&(It.selectedKeys=(0,Ot.BT)(bn.defaultSelectedKeys,bn))),bn.checkable){var en;if(_t("checkedKeys")?en=(0,Ot.E6)(bn.checkedKeys)||{}:!Bn&&bn.defaultCheckedKeys?en=(0,Ot.E6)(bn.defaultCheckedKeys)||{}:jt&&(en=(0,Ot.E6)(bn.checkedKeys)||{checkedKeys:sn.checkedKeys,halfCheckedKeys:sn.halfCheckedKeys}),en){var vn=en,zn=vn.checkedKeys,un=zn===void 0?[]:zn,Et=vn.halfCheckedKeys,Xn=Et===void 0?[]:Et;if(!bn.checkStrictly){var ir=(0,Nn.S)(un,!0,pn);un=ir.checkedKeys,Xn=ir.halfCheckedKeys}It.checkedKeys=un,It.halfCheckedKeys=Xn}}return _t("loadedKeys")&&(It.loadedKeys=bn.loadedKeys),It}}]),Be}(ee.Component);(0,He.Z)(ot,"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,He.Z)(ot,"TreeNode",Je.Z);var _e=ot,Re=_e},82661:function(We,Ee,ae){"use strict";ae.d(Ee,{BT:function(){return ee},E6:function(){return fe},L0:function(){return He},OM:function(){return te},_5:function(){return Ke},r7:function(){return me},wA:function(){return $e},yx:function(){return yt}});var oe=ae(95190),Pe=ae(93664),ke=ae(48736),De=ae(59301),je=ae(639),Te=ae(65065),Ge=ae(34061),lt=null;function Ke(be,Ae){if(!be)return[];var Ie=be.slice(),Xe=Ie.indexOf(Ae);return Xe>=0&&Ie.splice(Xe,1),Ie}function He(be,Ae){var Ie=(be||[]).slice();return Ie.indexOf(Ae)===-1&&Ie.push(Ae),Ie}function yt(be){return be.split("-")}function $e(be,Ae){var Ie=[],Xe=(0,Te.Z)(Ae,be);function nt(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Je.forEach(function(st){var gt=st.key,rt=st.children;Ie.push(gt),nt(rt)})}return nt(Xe.children),Ie}function Mt(be){if(be.parent){var Ae=yt(be.pos);return Number(Ae[Ae.length-1])===be.parent.children.length-1}return!1}function Fe(be){var Ae=yt(be.pos);return Number(Ae[Ae.length-1])===0}function te(be,Ae,Ie,Xe,nt,Je,st,gt,rt,mt){var xt,Tt=be.clientX,zt=be.clientY,Qt=be.target.getBoundingClientRect(),Kt=Qt.top,Cn=Qt.height,St=(mt==="rtl"?-1:1)*(((nt==null?void 0:nt.x)||0)-Tt),pt=(St-12)/Xe,ct=rt.filter(function(Re){var Ye;return(Ye=gt[Re])===null||Ye===void 0||(Ye=Ye.children)===null||Ye===void 0?void 0:Ye.length}),qt=(0,Te.Z)(gt,Ie.eventKey);if(zt<Kt+Cn/2){var fn=st.findIndex(function(Re){return Re.key===qt.key}),kt=fn<=0?0:fn-1,xn=st[kt].key;qt=(0,Te.Z)(gt,xn)}var kn=qt.key,Vn=qt,Vt=qt.key,Ot=0,Nn=0;if(!ct.includes(kn))for(var tr=0;tr<pt&&Mt(qt);tr+=1)qt=qt.parent,Nn+=1;var hr=Ae.data,ot=qt.node,_e=!0;return Fe(qt)&&qt.level===0&&zt<Kt+Cn/2&&Je({dragNode:hr,dropNode:ot,dropPosition:-1})&&qt.key===Ie.eventKey?Ot=-1:(Vn.children||[]).length&&ct.includes(Vt)?Je({dragNode:hr,dropNode:ot,dropPosition:0})?Ot=0:_e=!1:Nn===0?pt>-1.5?Je({dragNode:hr,dropNode:ot,dropPosition:1})?Ot=1:_e=!1:Je({dragNode:hr,dropNode:ot,dropPosition:0})?Ot=0:Je({dragNode:hr,dropNode:ot,dropPosition:1})?Ot=1:_e=!1:Je({dragNode:hr,dropNode:ot,dropPosition:1})?Ot=1:_e=!1,{dropPosition:Ot,dropLevelOffset:Nn,dropTargetKey:qt.key,dropTargetPos:qt.pos,dragOverNodeKey:Vt,dropContainerKey:Ot===0?null:((xt=qt.parent)===null||xt===void 0?void 0:xt.key)||null,dropAllowed:_e}}function ee(be,Ae){if(be){var Ie=Ae.multiple;return Ie?be.slice():be.length?[be[0]]:be}}var he=function(Ae){return Ae};function ue(be,Ae){if(!be)return[];var Ie=Ae||{},Xe=Ie.processProps,nt=Xe===void 0?he:Xe,Je=Array.isArray(be)?be:[be];return Je.map(function(st){var gt=st.children,rt=_objectWithoutProperties(st,lt),mt=ue(gt,Ae);return React.createElement(TreeNode,_extends({key:rt.key},nt(rt)),mt)})}function fe(be){if(!be)return null;var Ae;if(Array.isArray(be))Ae={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Pe.Z)(be)==="object")Ae={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,ke.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function me(be,Ae){var Ie=new Set;function Xe(nt){if(!Ie.has(nt)){var Je=(0,Te.Z)(Ae,nt);if(Je){Ie.add(nt);var st=Je.parent,gt=Je.node;gt.disabled||st&&Xe(st.key)}}}return(be||[]).forEach(function(nt){Xe(nt)}),(0,oe.Z)(Ie)}},34643:function(We,Ee,ae){"use strict";ae.d(Ee,{S:function(){return Ge}});var oe=ae(48736),Pe=ae(65065);function ke(lt,Ke){var He=new Set;return lt.forEach(function(yt){Ke.has(yt)||He.add(yt)}),He}function De(lt){var Ke=lt||{},He=Ke.disabled,yt=Ke.disableCheckbox,$e=Ke.checkable;return!!(He||yt)||$e===!1}function je(lt,Ke,He,yt){for(var $e=new Set(lt),Mt=new Set,Fe=0;Fe<=He;Fe+=1){var te=Ke.get(Fe)||new Set;te.forEach(function(fe){var me=fe.key,be=fe.node,Ae=fe.children,Ie=Ae===void 0?[]:Ae;$e.has(me)&&!yt(be)&&Ie.filter(function(Xe){return!yt(Xe.node)}).forEach(function(Xe){$e.add(Xe.key)})})}for(var ee=new Set,he=He;he>=0;he-=1){var ue=Ke.get(he)||new Set;ue.forEach(function(fe){var me=fe.parent,be=fe.node;if(!(yt(be)||!fe.parent||ee.has(fe.parent.key))){if(yt(fe.parent.node)){ee.add(me.key);return}var Ae=!0,Ie=!1;(me.children||[]).filter(function(Xe){return!yt(Xe.node)}).forEach(function(Xe){var nt=Xe.key,Je=$e.has(nt);Ae&&!Je&&(Ae=!1),!Ie&&(Je||Mt.has(nt))&&(Ie=!0)}),Ae&&$e.add(me.key),Ie&&Mt.add(me.key),ee.add(me.key)}})}return{checkedKeys:Array.from($e),halfCheckedKeys:Array.from(ke(Mt,$e))}}function Te(lt,Ke,He,yt,$e){for(var Mt=new Set(lt),Fe=new Set(Ke),te=0;te<=yt;te+=1){var ee=He.get(te)||new Set;ee.forEach(function(me){var be=me.key,Ae=me.node,Ie=me.children,Xe=Ie===void 0?[]:Ie;!Mt.has(be)&&!Fe.has(be)&&!$e(Ae)&&Xe.filter(function(nt){return!$e(nt.node)}).forEach(function(nt){Mt.delete(nt.key)})})}Fe=new Set;for(var he=new Set,ue=yt;ue>=0;ue-=1){var fe=He.get(ue)||new Set;fe.forEach(function(me){var be=me.parent,Ae=me.node;if(!($e(Ae)||!me.parent||he.has(me.parent.key))){if($e(me.parent.node)){he.add(be.key);return}var Ie=!0,Xe=!1;(be.children||[]).filter(function(nt){return!$e(nt.node)}).forEach(function(nt){var Je=nt.key,st=Mt.has(Je);Ie&&!st&&(Ie=!1),!Xe&&(st||Fe.has(Je))&&(Xe=!0)}),Ie||Mt.delete(be.key),Xe&&Fe.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(Mt),halfCheckedKeys:Array.from(ke(Fe,Mt))}}function Ge(lt,Ke,He,yt){var $e=[],Mt;yt?Mt=yt:Mt=De;var Fe=new Set(lt.filter(function(ue){var fe=!!(0,Pe.Z)(He,ue);return fe||$e.push(ue),fe})),te=new Map,ee=0;Object.keys(He).forEach(function(ue){var fe=He[ue],me=fe.level,be=te.get(me);be||(be=new Set,te.set(me,be)),be.add(fe),ee=Math.max(ee,me)}),(0,oe.ZP)(!$e.length,"Tree missing follow keys: ".concat($e.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var he;return Ke===!0?he=je(Fe,te,ee,Mt):he=Te(Fe,Ke.halfCheckedKeys,te,ee,Mt),he}},65065:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return oe}});function oe(Pe,ke){return Pe[ke]}},34061:function(We,Ee,ae){"use strict";ae.d(Ee,{F:function(){return me},H8:function(){return fe},I8:function(){return ue},km:function(){return $e},oH:function(){return ee},w$:function(){return Mt},zn:function(){return te}});var oe=ae(93664),Pe=ae(95190),ke=ae(20439),De=ae(62646),je=ae(11592),Te=ae(2738),Ge=ae(48736),lt=ae(65065),Ke=["children"];function He(be,Ae){return"".concat(be,"-").concat(Ae)}function yt(be){return be&&be.type&&be.type.isTreeNode}function $e(be,Ae){return be!=null?be:Ae}function Mt(be){var Ae=be||{},Ie=Ae.title,Xe=Ae._title,nt=Ae.key,Je=Ae.children,st=Ie||"title";return{title:st,_title:Xe||[st],key:nt||"key",children:Je||"children"}}function Fe(be,Ae){var Ie=new Map;function Xe(nt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(nt||[]).forEach(function(st){var gt=st[Ae.key],rt=st[Ae.children];warning(gt!=null,"Tree node must have a certain key: [".concat(Je).concat(gt,"]"));var mt=String(gt);warning(!Ie.has(mt)||gt===null||gt===void 0,"Same 'key' exist in the Tree: ".concat(mt)),Ie.set(mt,!0),Xe(rt,"".concat(Je).concat(mt," > "))})}Xe(be)}function te(be){function Ae(Ie){var Xe=(0,je.Z)(Ie);return Xe.map(function(nt){if(!yt(nt))return(0,Ge.ZP)(!nt,"Tree/TreeNode can only accept TreeNode as children."),null;var Je=nt.key,st=nt.props,gt=st.children,rt=(0,De.Z)(st,Ke),mt=(0,ke.Z)({key:Je},rt),xt=Ae(gt);return xt.length&&(mt.children=xt),mt}).filter(function(nt){return nt})}return Ae(be)}function ee(be,Ae,Ie){var Xe=Mt(Ie),nt=Xe._title,Je=Xe.key,st=Xe.children,gt=new Set(Ae===!0?[]:Ae),rt=[];function mt(xt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return xt.map(function(zt,Qt){for(var Kt=He(Tt?Tt.pos:"0",Qt),Cn=$e(zt[Je],Kt),St,pt=0;pt<nt.length;pt+=1){var ct=nt[pt];if(zt[ct]!==void 0){St=zt[ct];break}}var qt=Object.assign((0,Te.Z)(zt,[].concat((0,Pe.Z)(nt),[Je,st])),{title:St,key:Cn,parent:Tt,pos:Kt,children:null,data:zt,isStart:[].concat((0,Pe.Z)(Tt?Tt.isStart:[]),[Qt===0]),isEnd:[].concat((0,Pe.Z)(Tt?Tt.isEnd:[]),[Qt===xt.length-1])});return rt.push(qt),Ae===!0||gt.has(Cn)?qt.children=mt(zt[st]||[],qt):qt.children=[],qt})}return mt(be),rt}function he(be,Ae,Ie){var Xe={};(0,oe.Z)(Ie)==="object"?Xe=Ie:Xe={externalGetKey:Ie},Xe=Xe||{};var nt=Xe,Je=nt.childrenPropName,st=nt.externalGetKey,gt=nt.fieldNames,rt=Mt(gt),mt=rt.key,xt=rt.children,Tt=Je||xt,zt;st?typeof st=="string"?zt=function(Cn){return Cn[st]}:typeof st=="function"&&(zt=function(Cn){return st(Cn)}):zt=function(Cn,St){return $e(Cn[mt],St)};function Qt(Kt,Cn,St,pt){var ct=Kt?Kt[Tt]:be,qt=Kt?He(St.pos,Cn):"0",fn=Kt?[].concat((0,Pe.Z)(pt),[Kt]):[];if(Kt){var kt=zt(Kt,qt),xn={node:Kt,index:Cn,pos:qt,key:kt,parentPos:St.node?St.pos:null,level:St.level+1,nodes:fn};Ae(xn)}ct&&ct.forEach(function(kn,Vn){Qt(kn,Vn,{node:Kt,pos:qt,level:St?St.level+1:-1},fn)})}Qt(null)}function ue(be){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=Ae.initWrapper,Xe=Ae.processEntity,nt=Ae.onProcessFinished,Je=Ae.externalGetKey,st=Ae.childrenPropName,gt=Ae.fieldNames,rt=arguments.length>2?arguments[2]:void 0,mt=Je||rt,xt={},Tt={},zt={posEntities:xt,keyEntities:Tt};return Ie&&(zt=Ie(zt)||zt),he(be,function(Qt){var Kt=Qt.node,Cn=Qt.index,St=Qt.pos,pt=Qt.key,ct=Qt.parentPos,qt=Qt.level,fn=Qt.nodes,kt={node:Kt,nodes:fn,index:Cn,key:pt,pos:St,level:qt},xn=$e(pt,St);xt[St]=kt,Tt[xn]=kt,kt.parent=xt[ct],kt.parent&&(kt.parent.children=kt.parent.children||[],kt.parent.children.push(kt)),Xe&&Xe(kt,zt)},{externalGetKey:mt,childrenPropName:st,fieldNames:gt}),nt&&nt(zt),zt}function fe(be,Ae){var Ie=Ae.expandedKeys,Xe=Ae.selectedKeys,nt=Ae.loadedKeys,Je=Ae.loadingKeys,st=Ae.checkedKeys,gt=Ae.halfCheckedKeys,rt=Ae.dragOverNodeKey,mt=Ae.dropPosition,xt=Ae.keyEntities,Tt=(0,lt.Z)(xt,be),zt={eventKey:be,expanded:Ie.indexOf(be)!==-1,selected:Xe.indexOf(be)!==-1,loaded:nt.indexOf(be)!==-1,loading:Je.indexOf(be)!==-1,checked:st.indexOf(be)!==-1,halfChecked:gt.indexOf(be)!==-1,pos:String(Tt?Tt.pos:""),dragOver:rt===be&&mt===0,dragOverGapTop:rt===be&&mt===-1,dragOverGapBottom:rt===be&&mt===1};return zt}function me(be){var Ae=be.data,Ie=be.expanded,Xe=be.selected,nt=be.checked,Je=be.loaded,st=be.loading,gt=be.halfChecked,rt=be.dragOver,mt=be.dragOverGapTop,xt=be.dragOverGapBottom,Tt=be.pos,zt=be.active,Qt=be.eventKey,Kt=(0,ke.Z)((0,ke.Z)({},Ae),{},{expanded:Ie,selected:Xe,checked:nt,loaded:Je,loading:st,halfChecked:gt,dragOver:rt,dragOverGapTop:mt,dragOverGapBottom:xt,pos:Tt,active:zt,key:Qt});return"props"in Kt||Object.defineProperty(Kt,"props",{get:function(){return(0,Ge.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Kt}},90472:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Qt}});var oe=ae(14809),Pe=ae(99153),ke=ae(84851),De=ae(13028),je=ae(19257),Te=ae(93046),Ge=ae(4635),lt=ae(59301),Ke=ae(20439),He=ae(62646),yt=ae(93664),$e=ae(70539),Mt=ae(95764),Fe=ae(95190),te=ae(92310),ee=ae.n(te),he=ae(26112),ue=ae(48736),fe=function(Kt,Cn){if(Kt&&Cn){var St=Array.isArray(Cn)?Cn:Cn.split(","),pt=Kt.name||"",ct=Kt.type||"",qt=ct.replace(/\/.*$/,"");return St.some(function(fn){var kt=fn.trim();if(/^\*(\/\*)?$/.test(fn))return!0;if(kt.charAt(0)==="."){var xn=pt.toLowerCase(),kn=kt.toLowerCase(),Vn=[kn];return(kn===".jpg"||kn===".jpeg")&&(Vn=[".jpg",".jpeg"]),Vn.some(function(Vt){return xn.endsWith(Vt)})}return/\/\*$/.test(kt)?qt===kt.replace(/\/.*$/,""):ct===kt?!0:/^\w+$/.test(kt)?((0,ue.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(kt,"'.Skip for check.")),!0):!1})}return!0};function me(Kt,Cn){var St="cannot ".concat(Kt.method," ").concat(Kt.action," ").concat(Cn.status,"'"),pt=new Error(St);return pt.status=Cn.status,pt.method=Kt.method,pt.url=Kt.action,pt}function be(Kt){var Cn=Kt.responseText||Kt.response;if(!Cn)return Cn;try{return JSON.parse(Cn)}catch(St){return Cn}}function Ae(Kt){var Cn=new XMLHttpRequest;Kt.onProgress&&Cn.upload&&(Cn.upload.onprogress=function(qt){qt.total>0&&(qt.percent=qt.loaded/qt.total*100),Kt.onProgress(qt)});var St=new FormData;Kt.data&&Object.keys(Kt.data).forEach(function(ct){var qt=Kt.data[ct];if(Array.isArray(qt)){qt.forEach(function(fn){St.append("".concat(ct,"[]"),fn)});return}St.append(ct,qt)}),Kt.file instanceof Blob?St.append(Kt.filename,Kt.file,Kt.file.name):St.append(Kt.filename,Kt.file),Cn.onerror=function(qt){Kt.onError(qt)},Cn.onload=function(){return Cn.status<200||Cn.status>=300?Kt.onError(me(Kt,Cn),be(Cn)):Kt.onSuccess(be(Cn),Cn)},Cn.open(Kt.method,Kt.action,!0),Kt.withCredentials&&"withCredentials"in Cn&&(Cn.withCredentials=!0);var pt=Kt.headers||{};return pt["X-Requested-With"]!==null&&Cn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(pt).forEach(function(ct){pt[ct]!==null&&Cn.setRequestHeader(ct,pt[ct])}),Cn.send(St),{abort:function(){Cn.abort()}}}var Ie=function(){var Kt=(0,Mt.Z)((0,$e.Z)().mark(function Cn(St,pt){var ct,qt,fn,kt,xn,kn,Vn,Vt;return(0,$e.Z)().wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:kn=function(){return kn=(0,Mt.Z)((0,$e.Z)().mark(function hr(ot){return(0,$e.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Re.abrupt("return",new Promise(function(Ye){ot.file(function(at){pt(at)?(ot.fullPath&&!at.webkitRelativePath&&(Object.defineProperties(at,{webkitRelativePath:{writable:!0}}),at.webkitRelativePath=ot.fullPath.replace(/^\//,""),Object.defineProperties(at,{webkitRelativePath:{writable:!1}})),Ye(at)):Ye(null)})}));case 1:case"end":return Re.stop()}},hr)})),kn.apply(this,arguments)},xn=function(hr){return kn.apply(this,arguments)},kt=function(){return kt=(0,Mt.Z)((0,$e.Z)().mark(function hr(ot){var _e,Re,Ye,at,Be;return(0,$e.Z)().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:_e=ot.createReader(),Re=[];case 2:return bn.next=5,new Promise(function(sn){_e.readEntries(sn,function(){return sn([])})});case 5:if(Ye=bn.sent,at=Ye.length,at){bn.next=9;break}return bn.abrupt("break",12);case 9:for(Be=0;Be<at;Be++)Re.push(Ye[Be]);bn.next=2;break;case 12:return bn.abrupt("return",Re);case 13:case"end":return bn.stop()}},hr)})),kt.apply(this,arguments)},fn=function(hr){return kt.apply(this,arguments)},ct=[],qt=[],St.forEach(function(tr){return qt.push(tr.webkitGetAsEntry())}),Vn=function(){var tr=(0,Mt.Z)((0,$e.Z)().mark(function hr(ot,_e){var Re,Ye;return(0,$e.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(ot){Be.next=2;break}return Be.abrupt("return");case 2:if(ot.path=_e||"",!ot.isFile){Be.next=10;break}return Be.next=6,xn(ot);case 6:Re=Be.sent,Re&&ct.push(Re),Be.next=15;break;case 10:if(!ot.isDirectory){Be.next=15;break}return Be.next=13,fn(ot);case 13:Ye=Be.sent,qt.push.apply(qt,(0,Fe.Z)(Ye));case 15:case"end":return Be.stop()}},hr)}));return function(ot,_e){return tr.apply(this,arguments)}}(),Vt=0;case 9:if(!(Vt<qt.length)){Nn.next=15;break}return Nn.next=12,Vn(qt[Vt]);case 12:Vt++,Nn.next=9;break;case 15:return Nn.abrupt("return",ct);case 16:case"end":return Nn.stop()}},Cn)}));return function(St,pt){return Kt.apply(this,arguments)}}(),Xe=Ie,nt=+new Date,Je=0;function st(){return"rc-upload-".concat(nt,"-").concat(++Je)}var gt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],rt=function(Kt){(0,je.Z)(St,Kt);var Cn=(0,Te.Z)(St);function St(){var pt;(0,Pe.Z)(this,St);for(var ct=arguments.length,qt=new Array(ct),fn=0;fn<ct;fn++)qt[fn]=arguments[fn];return pt=Cn.call.apply(Cn,[this].concat(qt)),(0,Ge.Z)((0,De.Z)(pt),"state",{uid:st()}),(0,Ge.Z)((0,De.Z)(pt),"reqs",{}),(0,Ge.Z)((0,De.Z)(pt),"fileInput",void 0),(0,Ge.Z)((0,De.Z)(pt),"_isMounted",void 0),(0,Ge.Z)((0,De.Z)(pt),"onChange",function(kt){var xn=pt.props,kn=xn.accept,Vn=xn.directory,Vt=kt.target.files,Ot=(0,Fe.Z)(Vt).filter(function(Nn){return!Vn||fe(Nn,kn)});pt.uploadFiles(Ot),pt.reset()}),(0,Ge.Z)((0,De.Z)(pt),"onClick",function(kt){var xn=pt.fileInput;if(xn){var kn=kt.target,Vn=pt.props.onClick;if(kn&&kn.tagName==="BUTTON"){var Vt=xn.parentNode;Vt.focus(),kn.blur()}xn.click(),Vn&&Vn(kt)}}),(0,Ge.Z)((0,De.Z)(pt),"onKeyDown",function(kt){kt.key==="Enter"&&pt.onClick(kt)}),(0,Ge.Z)((0,De.Z)(pt),"onFileDrop",function(){var kt=(0,Mt.Z)((0,$e.Z)().mark(function xn(kn){var Vn,Vt,Ot;return(0,$e.Z)().wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:if(Vn=pt.props.multiple,kn.preventDefault(),kn.type!=="dragover"){tr.next=4;break}return tr.abrupt("return");case 4:if(!pt.props.directory){tr.next=11;break}return tr.next=7,Xe(Array.prototype.slice.call(kn.dataTransfer.items),function(hr){return fe(hr,pt.props.accept)});case 7:Vt=tr.sent,pt.uploadFiles(Vt),tr.next=14;break;case 11:Ot=(0,Fe.Z)(kn.dataTransfer.files).filter(function(hr){return fe(hr,pt.props.accept)}),Vn===!1&&(Ot=Ot.slice(0,1)),pt.uploadFiles(Ot);case 14:case"end":return tr.stop()}},xn)}));return function(xn){return kt.apply(this,arguments)}}()),(0,Ge.Z)((0,De.Z)(pt),"uploadFiles",function(kt){var xn=(0,Fe.Z)(kt),kn=xn.map(function(Vn){return Vn.uid=st(),pt.processFile(Vn,xn)});Promise.all(kn).then(function(Vn){var Vt=pt.props.onBatchStart;Vt==null||Vt(Vn.map(function(Ot){var Nn=Ot.origin,tr=Ot.parsedFile;return{file:Nn,parsedFile:tr}})),Vn.filter(function(Ot){return Ot.parsedFile!==null}).forEach(function(Ot){pt.post(Ot)})})}),(0,Ge.Z)((0,De.Z)(pt),"processFile",function(){var kt=(0,Mt.Z)((0,$e.Z)().mark(function xn(kn,Vn){var Vt,Ot,Nn,tr,hr,ot,_e,Re,Ye;return(0,$e.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Vt=pt.props.beforeUpload,Ot=kn,!Vt){Be.next=14;break}return Be.prev=3,Be.next=6,Vt(kn,Vn);case 6:Ot=Be.sent,Be.next=12;break;case 9:Be.prev=9,Be.t0=Be.catch(3),Ot=!1;case 12:if(Ot!==!1){Be.next=14;break}return Be.abrupt("return",{origin:kn,parsedFile:null,action:null,data:null});case 14:if(Nn=pt.props.action,typeof Nn!="function"){Be.next=21;break}return Be.next=18,Nn(kn);case 18:tr=Be.sent,Be.next=22;break;case 21:tr=Nn;case 22:if(hr=pt.props.data,typeof hr!="function"){Be.next=29;break}return Be.next=26,hr(kn);case 26:ot=Be.sent,Be.next=30;break;case 29:ot=hr;case 30:return _e=((0,yt.Z)(Ot)==="object"||typeof Ot=="string")&&Ot?Ot:kn,_e instanceof File?Re=_e:Re=new File([_e],kn.name,{type:kn.type}),Ye=Re,Ye.uid=kn.uid,Be.abrupt("return",{origin:kn,data:ot,parsedFile:Ye,action:tr});case 35:case"end":return Be.stop()}},xn,null,[[3,9]])}));return function(xn,kn){return kt.apply(this,arguments)}}()),(0,Ge.Z)((0,De.Z)(pt),"saveFileInput",function(kt){pt.fileInput=kt}),pt}return(0,ke.Z)(St,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var qt=this,fn=ct.data,kt=ct.origin,xn=ct.action,kn=ct.parsedFile;if(this._isMounted){var Vn=this.props,Vt=Vn.onStart,Ot=Vn.customRequest,Nn=Vn.name,tr=Vn.headers,hr=Vn.withCredentials,ot=Vn.method,_e=kt.uid,Re=Ot||Ae,Ye={action:xn,filename:Nn,data:fn,file:kn,headers:tr,withCredentials:hr,method:ot||"post",onProgress:function(Be){var bt=qt.props.onProgress;bt==null||bt(Be,kn)},onSuccess:function(Be,bt){var bn=qt.props.onSuccess;bn==null||bn(Be,kn,bt),delete qt.reqs[_e]},onError:function(Be,bt){var bn=qt.props.onError;bn==null||bn(Be,bt,kn),delete qt.reqs[_e]}};Vt(kt),this.reqs[_e]=Re(Ye)}}},{key:"reset",value:function(){this.setState({uid:st()})}},{key:"abort",value:function(ct){var qt=this.reqs;if(ct){var fn=ct.uid?ct.uid:ct;qt[fn]&&qt[fn].abort&&qt[fn].abort(),delete qt[fn]}else Object.keys(qt).forEach(function(kt){qt[kt]&&qt[kt].abort&&qt[kt].abort(),delete qt[kt]})}},{key:"render",value:function(){var ct=this.props,qt=ct.component,fn=ct.prefixCls,kt=ct.className,xn=ct.classNames,kn=xn===void 0?{}:xn,Vn=ct.disabled,Vt=ct.id,Ot=ct.name,Nn=ct.style,tr=ct.styles,hr=tr===void 0?{}:tr,ot=ct.multiple,_e=ct.accept,Re=ct.capture,Ye=ct.children,at=ct.directory,Be=ct.openFileDialogOnClick,bt=ct.onMouseEnter,bn=ct.onMouseLeave,sn=ct.hasControlInside,Bn=(0,He.Z)(ct,gt),It=ee()((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},fn,!0),"".concat(fn,"-disabled"),Vn),kt,kt)),_t=at?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},jt=Vn?{}:{onClick:Be?this.onClick:function(){},onKeyDown:Be?this.onKeyDown:function(){},onMouseEnter:bt,onMouseLeave:bn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:sn?void 0:"0"};return lt.createElement(qt,(0,oe.Z)({},jt,{className:It,role:sn?void 0:"button",style:Nn}),lt.createElement("input",(0,oe.Z)({},(0,he.Z)(Bn,{aria:!0,data:!0}),{id:Vt,name:Ot,disabled:Vn,type:"file",ref:this.saveFileInput,onClick:function(En){return En.stopPropagation()},key:this.state.uid,style:(0,Ke.Z)({display:"none"},hr.input),className:kn.input,accept:_e},_t,{multiple:ot,onChange:this.onChange},Re!=null?{capture:Re}:{})),Ye)}}]),St}(lt.Component),mt=rt;function xt(){}var Tt=function(Kt){(0,je.Z)(St,Kt);var Cn=(0,Te.Z)(St);function St(){var pt;(0,Pe.Z)(this,St);for(var ct=arguments.length,qt=new Array(ct),fn=0;fn<ct;fn++)qt[fn]=arguments[fn];return pt=Cn.call.apply(Cn,[this].concat(qt)),(0,Ge.Z)((0,De.Z)(pt),"uploader",void 0),(0,Ge.Z)((0,De.Z)(pt),"saveUploader",function(kt){pt.uploader=kt}),pt}return(0,ke.Z)(St,[{key:"abort",value:function(ct){this.uploader.abort(ct)}},{key:"render",value:function(){return lt.createElement(mt,(0,oe.Z)({},this.props,{ref:this.saveUploader}))}}]),St}(lt.Component);(0,Ge.Z)(Tt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:xt,onError:xt,onSuccess:xt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var zt=Tt,Qt=zt},8224:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(4676);function Pe(ke,De,je,Te){var Ge=oe.unstable_batchedUpdates?function(Ke){oe.unstable_batchedUpdates(je,Ke)}:je;return ke!=null&&ke.addEventListener&&ke.addEventListener(De,Ge,Te),{remove:function(){ke!=null&&ke.removeEventListener&&ke.removeEventListener(De,Ge,Te)}}}},24514:function(We,Ee,ae){"use strict";ae.d(Ee,{G:function(){return De}});var oe=ae(47273),Pe=function(Te){if((0,oe.Z)()&&window.document.documentElement){var Ge=Array.isArray(Te)?Te:[Te],lt=window.document.documentElement;return Ge.some(function(Ke){return Ke in lt.style})}return!1},ke=function(Te,Ge){if(!Pe(Te))return!1;var lt=document.createElement("div"),Ke=lt.style[Te];return lt.style[Te]=Ge,lt.style[Te]!==Ke};function De(je,Te){return!Array.isArray(je)&&Te!==void 0?ke(je,Te):Pe(je)}},65283:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return hr}});var oe=ae(14809),Pe=ae(93664),ke=ae(20439),De=ae(4635),je=ae(50298),Te=ae(62646),Ge=ae(92310),lt=ae.n(Ge),Ke=ae(29301),He=ae(70425),yt=ae(34280),$e=ae(59301),Mt=ae(4676),Fe=$e.forwardRef(function(ot,_e){var Re=ot.height,Ye=ot.offsetY,at=ot.offsetX,Be=ot.children,bt=ot.prefixCls,bn=ot.onInnerResize,sn=ot.innerProps,Bn=ot.rtl,It=ot.extra,_t={},jt={display:"flex",flexDirection:"column"};return Ye!==void 0&&(_t={height:Re,position:"relative",overflow:"hidden"},jt=(0,ke.Z)((0,ke.Z)({},jt),{},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({transform:"translateY(".concat(Ye,"px)")},Bn?"marginRight":"marginLeft",-at),"position","absolute"),"left",0),"right",0),"top",0))),$e.createElement("div",{style:_t},$e.createElement(Ke.Z,{onResize:function(En){var pn=En.offsetHeight;pn&&bn&&bn()}},$e.createElement("div",(0,oe.Z)({style:jt,className:lt()((0,De.Z)({},"".concat(bt,"-holder-inner"),bt)),ref:_e},sn),Be,It)))});Fe.displayName="Filler";var te=Fe;function ee(ot){var _e=ot.children,Re=ot.setRef,Ye=$e.useCallback(function(at){Re(at)},[]);return $e.cloneElement(_e,{ref:Ye})}function he(ot,_e,Re,Ye,at,Be,bt,bn){var sn=bn.getKey;return ot.slice(_e,Re+1).map(function(Bn,It){var _t=_e+It,jt=bt(Bn,_t,{style:{width:Ye},offsetX:at}),hn=sn(Bn);return $e.createElement(ee,{key:hn,setRef:function(pn){return Be(Bn,pn)}},jt)})}function ue(ot,_e,Re,Ye){var at=Re-ot,Be=_e-Re,bt=Math.min(at,Be)*2;if(Ye<=bt){var bn=Math.floor(Ye/2);return Ye%2?Re+bn+1:Re-bn}return at>Be?Re-(Ye-Be):Re+(Ye-at)}function fe(ot,_e,Re){var Ye=ot.length,at=_e.length,Be,bt;if(Ye===0&&at===0)return null;Ye<at?(Be=ot,bt=_e):(Be=_e,bt=ot);var bn={__EMPTY_ITEM__:!0};function sn(En){return En!==void 0?Re(En):bn}for(var Bn=null,It=Math.abs(Ye-at)!==1,_t=0;_t<bt.length;_t+=1){var jt=sn(Be[_t]),hn=sn(bt[_t]);if(jt!==hn){Bn=_t,It=It||jt!==sn(bt[_t+1]);break}}return Bn===null?null:{index:Bn,multiple:It}}function me(ot,_e,Re){var Ye=$e.useState(ot),at=(0,je.Z)(Ye,2),Be=at[0],bt=at[1],bn=$e.useState(null),sn=(0,je.Z)(bn,2),Bn=sn[0],It=sn[1];return $e.useEffect(function(){var _t=fe(Be||[],ot||[],_e);(_t==null?void 0:_t.index)!==void 0&&(Re==null||Re(_t.index),It(ot[_t.index])),bt(ot)},[ot]),[Bn]}var be=ae(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ie=Ae,Xe=function(ot,_e,Re,Ye){var at=(0,$e.useRef)(!1),Be=(0,$e.useRef)(null);function bt(){clearTimeout(Be.current),at.current=!0,Be.current=setTimeout(function(){at.current=!1},50)}var bn=(0,$e.useRef)({top:ot,bottom:_e,left:Re,right:Ye});return bn.current.top=ot,bn.current.bottom=_e,bn.current.left=Re,bn.current.right=Ye,function(sn,Bn){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_t=sn?Bn<0&&bn.current.left||Bn>0&&bn.current.right:Bn<0&&bn.current.top||Bn>0&&bn.current.bottom;return It&&_t?(clearTimeout(Be.current),at.current=!1):(!_t||at.current)&&bt(),!at.current&&_t}};function nt(ot,_e,Re,Ye,at,Be,bt){var bn=(0,$e.useRef)(0),sn=(0,$e.useRef)(null),Bn=(0,$e.useRef)(null),It=(0,$e.useRef)(!1),_t=Xe(_e,Re,Ye,at);function jt(Yt,en){if(be.Z.cancel(sn.current),!_t(!1,en)){var vn=Yt;if(!vn._virtualHandled)vn._virtualHandled=!0;else return;bn.current+=en,Bn.current=en,Ie||vn.preventDefault(),sn.current=(0,be.Z)(function(){var zn=It.current?10:1;bt(bn.current*zn,!1),bn.current=0})}}function hn(Yt,en){bt(en,!0),Ie||Yt.preventDefault()}var En=(0,$e.useRef)(null),pn=(0,$e.useRef)(null);function Rt(Yt){if(ot){be.Z.cancel(pn.current),pn.current=(0,be.Z)(function(){En.current=null},2);var en=Yt.deltaX,vn=Yt.deltaY,zn=Yt.shiftKey,un=en,Et=vn;(En.current==="sx"||!En.current&&zn&&vn&&!en)&&(un=vn,Et=0,En.current="sx");var Xn=Math.abs(un),ir=Math.abs(Et);En.current===null&&(En.current=Be&&Xn>ir?"x":"y"),En.current==="y"?jt(Yt,Et):hn(Yt,un)}}function Tn(Yt){ot&&(It.current=Yt.detail===Bn.current)}return[Rt,Tn]}function Je(ot,_e,Re,Ye){var at=$e.useMemo(function(){return[new Map,[]]},[ot,Re.id,Ye]),Be=(0,je.Z)(at,2),bt=Be[0],bn=Be[1],sn=function(It){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:It,jt=bt.get(It),hn=bt.get(_t);if(jt===void 0||hn===void 0)for(var En=ot.length,pn=bn.length;pn<En;pn+=1){var Rt,Tn=ot[pn],Yt=_e(Tn);bt.set(Yt,pn);var en=(Rt=Re.get(Yt))!==null&&Rt!==void 0?Rt:Ye;if(bn[pn]=(bn[pn-1]||0)+en,Yt===It&&(jt=pn),Yt===_t&&(hn=pn),jt!==void 0&&hn!==void 0)break}return{top:bn[jt-1]||0,bottom:bn[hn]}};return sn}var st=ae(99153),gt=ae(84851),rt=function(){function ot(){(0,st.Z)(this,ot),(0,De.Z)(this,"maps",void 0),(0,De.Z)(this,"id",0),(0,De.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,gt.Z)(ot,[{key:"set",value:function(Re,Ye){this.diffRecords.set(Re,this.maps[Re]),this.maps[Re]=Ye,this.id+=1}},{key:"get",value:function(Re){return this.maps[Re]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ot}(),mt=rt;function xt(ot){var _e=parseFloat(ot);return isNaN(_e)?0:_e}function Tt(ot,_e,Re){var Ye=$e.useState(0),at=(0,je.Z)(Ye,2),Be=at[0],bt=at[1],bn=(0,$e.useRef)(new Map),sn=(0,$e.useRef)(new mt),Bn=(0,$e.useRef)(0);function It(){Bn.current+=1}function _t(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;It();var En=function(){var Tn=!1;bn.current.forEach(function(Yt,en){if(Yt&&Yt.offsetParent){var vn=Yt.offsetHeight,zn=getComputedStyle(Yt),un=zn.marginTop,Et=zn.marginBottom,Xn=xt(un),ir=xt(Et),Jt=vn+Xn+ir;sn.current.get(en)!==Jt&&(sn.current.set(en,Jt),Tn=!0)}}),Tn&&bt(function(Yt){return Yt+1})};if(hn)En();else{Bn.current+=1;var pn=Bn.current;Promise.resolve().then(function(){pn===Bn.current&&En()})}}function jt(hn,En){var pn=ot(hn),Rt=bn.current.get(pn);En?(bn.current.set(pn,En),_t()):bn.current.delete(pn),!Rt!=!En&&(En?_e==null||_e(hn):Re==null||Re(hn))}return(0,$e.useEffect)(function(){return It},[]),[jt,_t,sn.current,Be]}var zt=14/15;function Qt(ot,_e,Re){var Ye=(0,$e.useRef)(!1),at=(0,$e.useRef)(0),Be=(0,$e.useRef)(0),bt=(0,$e.useRef)(null),bn=(0,$e.useRef)(null),sn,Bn=function(hn){if(Ye.current){var En=Math.ceil(hn.touches[0].pageX),pn=Math.ceil(hn.touches[0].pageY),Rt=at.current-En,Tn=Be.current-pn,Yt=Math.abs(Rt)>Math.abs(Tn);Yt?at.current=En:Be.current=pn;var en=Re(Yt,Yt?Rt:Tn,!1,hn);en&&hn.preventDefault(),clearInterval(bn.current),en&&(bn.current=setInterval(function(){Yt?Rt*=zt:Tn*=zt;var vn=Math.floor(Yt?Rt:Tn);(!Re(Yt,vn,!0)||Math.abs(vn)<=.1)&&clearInterval(bn.current)},16))}},It=function(){Ye.current=!1,sn()},_t=function(hn){sn(),hn.touches.length===1&&!Ye.current&&(Ye.current=!0,at.current=Math.ceil(hn.touches[0].pageX),Be.current=Math.ceil(hn.touches[0].pageY),bt.current=hn.target,bt.current.addEventListener("touchmove",Bn,{passive:!1}),bt.current.addEventListener("touchend",It,{passive:!0}))};sn=function(){bt.current&&(bt.current.removeEventListener("touchmove",Bn),bt.current.removeEventListener("touchend",It))},(0,yt.Z)(function(){return ot&&_e.current.addEventListener("touchstart",_t,{passive:!0}),function(){var jt;(jt=_e.current)===null||jt===void 0||jt.removeEventListener("touchstart",_t),sn(),clearInterval(bn.current)}},[ot])}function Kt(ot){return Math.floor(Math.pow(ot,.5))}function Cn(ot,_e){var Re="touches"in ot?ot.touches[0]:ot;return Re[_e?"pageX":"pageY"]-window[_e?"scrollX":"scrollY"]}function St(ot,_e,Re){$e.useEffect(function(){var Ye=_e.current;if(ot&&Ye){var at=!1,Be,bt,bn=function(){be.Z.cancel(Be)},sn=function jt(){bn(),Be=(0,be.Z)(function(){Re(bt),jt()})},Bn=function(hn){if(!(hn.target.draggable||hn.button!==0)){var En=hn;En._virtualHandled||(En._virtualHandled=!0,at=!0)}},It=function(){at=!1,bn()},_t=function(hn){if(at){var En=Cn(hn,!1),pn=Ye.getBoundingClientRect(),Rt=pn.top,Tn=pn.bottom;if(En<=Rt){var Yt=Rt-En;bt=-Kt(Yt),sn()}else if(En>=Tn){var en=En-Tn;bt=Kt(en),sn()}else bn()}};return Ye.addEventListener("mousedown",Bn),Ye.ownerDocument.addEventListener("mouseup",It),Ye.ownerDocument.addEventListener("mousemove",_t),function(){Ye.removeEventListener("mousedown",Bn),Ye.ownerDocument.removeEventListener("mouseup",It),Ye.ownerDocument.removeEventListener("mousemove",_t),bn()}}},[ot])}var pt=10;function ct(ot,_e,Re,Ye,at,Be,bt,bn){var sn=$e.useRef(),Bn=$e.useState(null),It=(0,je.Z)(Bn,2),_t=It[0],jt=It[1];return(0,yt.Z)(function(){if(_t&&_t.times<pt){if(!ot.current){jt(function(oi){return(0,ke.Z)({},oi)});return}Be();var hn=_t.targetAlign,En=_t.originAlign,pn=_t.index,Rt=_t.offset,Tn=ot.current.clientHeight,Yt=!1,en=hn,vn=null;if(Tn){for(var zn=hn||En,un=0,Et=0,Xn=0,ir=Math.min(_e.length-1,pn),Jt=0;Jt<=ir;Jt+=1){var Er=at(_e[Jt]);Et=un;var ni=Re.get(Er);Xn=Et+(ni===void 0?Ye:ni),un=Xn}for(var Rr=zn==="top"?Rt:Tn-Rt,Mn=ir;Mn>=0;Mn-=1){var ei=at(_e[Mn]),Kr=Re.get(ei);if(Kr===void 0){Yt=!0;break}if(Rr-=Kr,Rr<=0)break}switch(zn){case"top":vn=Et-Rt;break;case"bottom":vn=Xn-Tn+Rt;break;default:{var lr=ot.current.scrollTop,jr=lr+Tn;Et<lr?en="top":Xn>jr&&(en="bottom")}}vn!==null&&bt(vn),vn!==_t.lastTop&&(Yt=!0)}Yt&&jt((0,ke.Z)((0,ke.Z)({},_t),{},{times:_t.times+1,targetAlign:en,lastTop:vn}))}},[_t,ot.current]),function(hn){if(hn==null){bn();return}if(be.Z.cancel(sn.current),typeof hn=="number")bt(hn);else if(hn&&(0,Pe.Z)(hn)==="object"){var En,pn=hn.align;"index"in hn?En=hn.index:En=_e.findIndex(function(Yt){return at(Yt)===hn.key});var Rt=hn.offset,Tn=Rt===void 0?0:Rt;jt({times:0,index:En,offset:Tn,originAlign:pn})}}}var qt=$e.forwardRef(function(ot,_e){var Re=ot.prefixCls,Ye=ot.rtl,at=ot.scrollOffset,Be=ot.scrollRange,bt=ot.onStartMove,bn=ot.onStopMove,sn=ot.onScroll,Bn=ot.horizontal,It=ot.spinSize,_t=ot.containerSize,jt=ot.style,hn=ot.thumbStyle,En=ot.showScrollBar,pn=$e.useState(!1),Rt=(0,je.Z)(pn,2),Tn=Rt[0],Yt=Rt[1],en=$e.useState(null),vn=(0,je.Z)(en,2),zn=vn[0],un=vn[1],Et=$e.useState(null),Xn=(0,je.Z)(Et,2),ir=Xn[0],Jt=Xn[1],Er=!Ye,ni=$e.useRef(),Rr=$e.useRef(),Mn=$e.useState(En),ei=(0,je.Z)(Mn,2),Kr=ei[0],lr=ei[1],jr=$e.useRef(),oi=function(){En===!0||En===!1||(clearTimeout(jr.current),lr(!0),jr.current=setTimeout(function(){lr(!1)},3e3))},Oe=Be-_t||0,dr=_t-It||0,Pr=$e.useMemo(function(){if(at===0||Oe===0)return 0;var Jn=at/Oe;return Jn*dr},[at,Oe,dr]),or=function(ui){ui.stopPropagation(),ui.preventDefault()},Lr=$e.useRef({top:Pr,dragging:Tn,pageY:zn,startTop:ir});Lr.current={top:Pr,dragging:Tn,pageY:zn,startTop:ir};var zr=function(ui){Yt(!0),un(Cn(ui,Bn)),Jt(Lr.current.top),bt(),ui.stopPropagation(),ui.preventDefault()};$e.useEffect(function(){var Jn=function(ur){ur.preventDefault()},ui=ni.current,Yr=Rr.current;return ui.addEventListener("touchstart",Jn,{passive:!1}),Yr.addEventListener("touchstart",zr,{passive:!1}),function(){ui.removeEventListener("touchstart",Jn),Yr.removeEventListener("touchstart",zr)}},[]);var wr=$e.useRef();wr.current=Oe;var Ti=$e.useRef();Ti.current=dr,$e.useEffect(function(){if(Tn){var Jn,ui=function(ur){var Xr=Lr.current,wi=Xr.dragging,ki=Xr.pageY,Fr=Xr.startTop;be.Z.cancel(Jn);var Lt=ni.current.getBoundingClientRect(),cn=_t/(Bn?Lt.width:Lt.height);if(wi){var kr=(Cn(ur,Bn)-ki)*cn,Ir=Fr;!Er&&Bn?Ir-=kr:Ir+=kr;var Xt=wr.current,Fn=Ti.current,fr=Fn?Ir/Fn:0,dn=Math.ceil(fr*Xt);dn=Math.max(dn,0),dn=Math.min(dn,Xt),Jn=(0,be.Z)(function(){sn(dn,Bn)})}},Yr=function(){Yt(!1),bn()};return window.addEventListener("mousemove",ui,{passive:!0}),window.addEventListener("touchmove",ui,{passive:!0}),window.addEventListener("mouseup",Yr,{passive:!0}),window.addEventListener("touchend",Yr,{passive:!0}),function(){window.removeEventListener("mousemove",ui),window.removeEventListener("touchmove",ui),window.removeEventListener("mouseup",Yr),window.removeEventListener("touchend",Yr),be.Z.cancel(Jn)}}},[Tn]),$e.useEffect(function(){return oi(),function(){clearTimeout(jr.current)}},[at]),$e.useImperativeHandle(_e,function(){return{delayHidden:oi}});var On="".concat(Re,"-scrollbar"),yn={position:"absolute",visibility:Kr?null:"hidden"},Sn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Bn?(yn.height=8,yn.left=0,yn.right=0,yn.bottom=0,Sn.height="100%",Sn.width=It,Er?Sn.left=Pr:Sn.right=Pr):(yn.width=8,yn.top=0,yn.bottom=0,Er?yn.right=0:yn.left=0,Sn.width="100%",Sn.height=It,Sn.top=Pr),$e.createElement("div",{ref:ni,className:lt()(On,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(On,"-horizontal"),Bn),"".concat(On,"-vertical"),!Bn),"".concat(On,"-visible"),Kr)),style:(0,ke.Z)((0,ke.Z)({},yn),jt),onMouseDown:or,onMouseMove:oi},$e.createElement("div",{ref:Rr,className:lt()("".concat(On,"-thumb"),(0,De.Z)({},"".concat(On,"-thumb-moving"),Tn)),style:(0,ke.Z)((0,ke.Z)({},Sn),hn),onMouseDown:zr}))}),fn=qt,kt=20;function xn(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Re=ot/_e*ot;return isNaN(Re)&&(Re=0),Re=Math.max(Re,kt),Math.floor(Re)}var kn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Vn=[],Vt={overflowY:"auto",overflowAnchor:"none"};function Ot(ot,_e){var Re=ot.prefixCls,Ye=Re===void 0?"rc-virtual-list":Re,at=ot.className,Be=ot.height,bt=ot.itemHeight,bn=ot.fullHeight,sn=bn===void 0?!0:bn,Bn=ot.style,It=ot.data,_t=ot.children,jt=ot.itemKey,hn=ot.virtual,En=ot.direction,pn=ot.scrollWidth,Rt=ot.component,Tn=Rt===void 0?"div":Rt,Yt=ot.onScroll,en=ot.onVirtualScroll,vn=ot.onVisibleChange,zn=ot.innerProps,un=ot.extraRender,Et=ot.styles,Xn=ot.showScrollBar,ir=Xn===void 0?"optional":Xn,Jt=(0,Te.Z)(ot,kn),Er=$e.useCallback(function(mr){return typeof jt=="function"?jt(mr):mr==null?void 0:mr[jt]},[jt]),ni=Tt(Er,null,null),Rr=(0,je.Z)(ni,4),Mn=Rr[0],ei=Rr[1],Kr=Rr[2],lr=Rr[3],jr=!!(hn!==!1&&Be&&bt),oi=$e.useMemo(function(){return Object.values(Kr.maps).reduce(function(mr,ht){return mr+ht},0)},[Kr.id,Kr.maps]),Oe=jr&&It&&(Math.max(bt*It.length,oi)>Be||!!pn),dr=En==="rtl",Pr=lt()(Ye,(0,De.Z)({},"".concat(Ye,"-rtl"),dr),at),or=It||Vn,Lr=(0,$e.useRef)(),zr=(0,$e.useRef)(),wr=(0,$e.useRef)(),Ti=(0,$e.useState)(0),On=(0,je.Z)(Ti,2),yn=On[0],Sn=On[1],Jn=(0,$e.useState)(0),ui=(0,je.Z)(Jn,2),Yr=ui[0],ci=ui[1],ur=(0,$e.useState)(!1),Xr=(0,je.Z)(ur,2),wi=Xr[0],ki=Xr[1],Fr=function(){ki(!0)},Lt=function(){ki(!1)},cn={getKey:Er};function kr(mr){Sn(function(ht){var wn;typeof mr=="function"?wn=mr(ht):wn=mr;var Pn=Ii(wn);return Lr.current.scrollTop=Pn,Pn})}var Ir=(0,$e.useRef)({start:0,end:or.length}),Xt=(0,$e.useRef)(),Fn=me(or,Er),fr=(0,je.Z)(Fn,1),dn=fr[0];Xt.current=dn;var Ue=$e.useMemo(function(){if(!jr)return{scrollHeight:void 0,start:0,end:or.length-1,offset:void 0};if(!Oe){var mr;return{scrollHeight:((mr=zr.current)===null||mr===void 0?void 0:mr.offsetHeight)||0,start:0,end:or.length-1,offset:void 0}}for(var ht=0,wn,Pn,Gn,gn=or.length,$n=0;$n<gn;$n+=1){var Yn=or[$n],an=Er(Yn),cr=Kr.get(an),Vr=ht+(cr===void 0?bt:cr);Vr>=yn&&wn===void 0&&(wn=$n,Pn=ht),Vr>yn+Be&&Gn===void 0&&(Gn=$n),ht=Vr}return wn===void 0&&(wn=0,Pn=0,Gn=Math.ceil(Be/bt)),Gn===void 0&&(Gn=or.length-1),Gn=Math.min(Gn+1,or.length-1),{scrollHeight:ht,start:wn,end:Gn,offset:Pn}},[Oe,jr,yn,or,lr,Be]),Mr=Ue.scrollHeight,Ur=Ue.start,Wn=Ue.end,mi=Ue.offset;Ir.current.start=Ur,Ir.current.end=Wn,$e.useLayoutEffect(function(){var mr=Kr.getRecord();if(mr.size===1){var ht=Array.from(mr.keys())[0],wn=mr.get(ht),Pn=or[Ur];if(Pn&&wn===void 0){var Gn=Er(Pn);if(Gn===ht){var gn=Kr.get(ht),$n=gn-bt;kr(function(Yn){return Yn+$n})}}}Kr.resetRecord()},[Mr]);var Qr=$e.useState({width:0,height:Be}),rr=(0,je.Z)(Qr,2),Gr=rr[0],on=rr[1],Ci=function(ht){on({width:ht.offsetWidth,height:ht.offsetHeight})},Vi=(0,$e.useRef)(),mn=(0,$e.useRef)(),li=$e.useMemo(function(){return xn(Gr.width,pn)},[Gr.width,pn]),bi=$e.useMemo(function(){return xn(Gr.height,Mr)},[Gr.height,Mr]),qr=Mr-Be,Pi=(0,$e.useRef)(qr);Pi.current=qr;function Ii(mr){var ht=mr;return Number.isNaN(Pi.current)||(ht=Math.min(ht,Pi.current)),ht=Math.max(ht,0),ht}var Hi=yn<=0,ji=yn>=qr,Bi=Yr<=0,io=Yr>=pn,Qn=Xe(Hi,ji,Bi,io),zi=function(){return{x:dr?-Yr:Yr,y:yn}},ar=(0,$e.useRef)(zi()),vi=(0,He.zX)(function(mr){if(en){var ht=(0,ke.Z)((0,ke.Z)({},zi()),mr);(ar.current.x!==ht.x||ar.current.y!==ht.y)&&(en(ht),ar.current=ht)}});function Zi(mr,ht){var wn=mr;ht?((0,Mt.flushSync)(function(){ci(wn)}),vi()):kr(wn)}function Fi(mr){var ht=mr.currentTarget.scrollTop;ht!==yn&&kr(ht),Yt==null||Yt(mr),vi()}var fo=function(ht){var wn=ht,Pn=pn?pn-Gr.width:0;return wn=Math.max(wn,0),wn=Math.min(wn,Pn),wn},co=(0,He.zX)(function(mr,ht){ht?((0,Mt.flushSync)(function(){ci(function(wn){var Pn=wn+(dr?-mr:mr);return fo(Pn)})}),vi()):kr(function(wn){var Pn=wn+mr;return Pn})}),Wi=nt(jr,Hi,ji,Bi,io,!!pn,co),zo=(0,je.Z)(Wi,2),_n=zo[0],vr=zo[1];Qt(jr,Lr,function(mr,ht,wn,Pn){var Gn=Pn;return Qn(mr,ht,wn)?!1:!Gn||!Gn._virtualHandled?(Gn&&(Gn._virtualHandled=!0),_n({preventDefault:function(){},deltaX:mr?ht:0,deltaY:mr?0:ht}),!0):!1}),St(Oe,Lr,function(mr){kr(function(ht){return ht+mr})}),(0,yt.Z)(function(){function mr(wn){var Pn=Hi&&wn.detail<0,Gn=ji&&wn.detail>0;jr&&!Pn&&!Gn&&wn.preventDefault()}var ht=Lr.current;return ht.addEventListener("wheel",_n,{passive:!1}),ht.addEventListener("DOMMouseScroll",vr,{passive:!0}),ht.addEventListener("MozMousePixelScroll",mr,{passive:!1}),function(){ht.removeEventListener("wheel",_n),ht.removeEventListener("DOMMouseScroll",vr),ht.removeEventListener("MozMousePixelScroll",mr)}},[jr,Hi,ji]),(0,yt.Z)(function(){if(pn){var mr=fo(Yr);ci(mr),vi({x:mr})}},[Gr.width,pn]);var An=function(){var ht,wn;(ht=Vi.current)===null||ht===void 0||ht.delayHidden(),(wn=mn.current)===null||wn===void 0||wn.delayHidden()},it=ct(Lr,or,Kr,bt,Er,function(){return ei(!0)},kr,An);$e.useImperativeHandle(_e,function(){return{nativeElement:wr.current,getScrollInfo:zi,scrollTo:function(ht){function wn(Pn){return Pn&&(0,Pe.Z)(Pn)==="object"&&("left"in Pn||"top"in Pn)}wn(ht)?(ht.left!==void 0&&ci(fo(ht.left)),it(ht.top)):it(ht)}}}),(0,yt.Z)(function(){if(vn){var mr=or.slice(Ur,Wn+1);vn(mr,or)}},[Ur,Wn,or]);var Dr=Je(or,Er,Kr,bt),Wr=un==null?void 0:un({start:Ur,end:Wn,virtual:Oe,offsetX:Yr,offsetY:mi,rtl:dr,getSize:Dr}),pi=he(or,Ur,Wn,pn,Yr,Mn,_t,cn),hi=null;Be&&(hi=(0,ke.Z)((0,De.Z)({},sn?"height":"maxHeight",Be),Vt),jr&&(hi.overflowY="hidden",pn&&(hi.overflowX="hidden"),wi&&(hi.pointerEvents="none")));var ai={};return dr&&(ai.dir="rtl"),$e.createElement("div",(0,oe.Z)({ref:wr,style:(0,ke.Z)((0,ke.Z)({},Bn),{},{position:"relative"}),className:Pr},ai,Jt),$e.createElement(Ke.Z,{onResize:Ci},$e.createElement(Tn,{className:"".concat(Ye,"-holder"),style:hi,ref:Lr,onScroll:Fi,onMouseEnter:An},$e.createElement(te,{prefixCls:Ye,height:Mr,offsetX:Yr,offsetY:mi,scrollWidth:pn,onInnerResize:ei,ref:zr,innerProps:zn,rtl:dr,extra:Wr},pi))),Oe&&Mr>Be&&$e.createElement(fn,{ref:Vi,prefixCls:Ye,scrollOffset:yn,scrollRange:Mr,rtl:dr,onScroll:Zi,onStartMove:Fr,onStopMove:Lt,spinSize:bi,containerSize:Gr.height,style:Et==null?void 0:Et.verticalScrollBar,thumbStyle:Et==null?void 0:Et.verticalScrollBarThumb,showScrollBar:ir}),Oe&&pn>Gr.width&&$e.createElement(fn,{ref:mn,prefixCls:Ye,scrollOffset:Yr,scrollRange:pn,rtl:dr,onScroll:Zi,onStartMove:Fr,onStopMove:Lt,spinSize:li,containerSize:Gr.width,horizontal:!0,style:Et==null?void 0:Et.horizontalScrollBar,thumbStyle:Et==null?void 0:Et.horizontalScrollBarThumb,showScrollBar:ir}))}var Nn=$e.forwardRef(Ot);Nn.displayName="List";var tr=Nn,hr=tr},22061:function(We,Ee,ae){"use strict";ae.d(Ee,{Z5:function(){return Td},_l:function(){return Gu},bK:function(){return Ds}});var oe=ae(59301),Pe=ae(57629),ke=ae(14809),De=ae(59781),je=oe.createContext(null),Te=null;function Ge(we){we()}var lt=Ge,Ke=function(Ne){return lt=Ne},He=function(){return lt};function yt(){var we=He(),Ne=null,Ve=null;return{clear:function(){Ne=null,Ve=null},notify:function(){we(function(){for(var At=Ne;At;)At.callback(),At=At.next})},get:function(){for(var At=[],Nt=Ne;Nt;)At.push(Nt),Nt=Nt.next;return At},subscribe:function(At){var Nt=!0,Ut=Ve={callback:At,next:null,prev:Ve};return Ut.prev?Ut.prev.next=Ut:Ne=Ut,function(){!Nt||Ne===null||(Nt=!1,Ut.next?Ut.next.prev=Ut.prev:Ve=Ut.prev,Ut.prev?Ut.prev.next=Ut.next:Ne=Ut.next)}}}}var $e={notify:function(){},get:function(){return[]}};function Mt(we,Ne){var Ve,ut=$e;function At(Hn){return Un(),ut.subscribe(Hn)}function Nt(){ut.notify()}function Ut(){qn.onStateChange&&qn.onStateChange()}function Zt(){return!!Ve}function Un(){Ve||(Ve=Ne?Ne.addNestedSub(Ut):we.subscribe(Ut),ut=yt())}function nr(){Ve&&(Ve(),Ve=void 0,ut.clear(),ut=$e)}var qn={addNestedSub:At,notifyNestedSubs:Nt,handleChangeWrapper:Ut,isSubscribed:Zt,trySubscribe:Un,tryUnsubscribe:nr,getListeners:function(){return ut}};return qn}var Fe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect;function te(we){var Ne=we.store,Ve=we.context,ut=we.children,At=(0,oe.useMemo)(function(){var Zt=Mt(Ne);return{store:Ne,subscription:Zt}},[Ne]),Nt=(0,oe.useMemo)(function(){return Ne.getState()},[Ne]);Fe(function(){var Zt=At.subscription;return Zt.onStateChange=Zt.notifyNestedSubs,Zt.trySubscribe(),Nt!==Ne.getState()&&Zt.notifyNestedSubs(),function(){Zt.tryUnsubscribe(),Zt.onStateChange=null}},[At,Nt]);var Ut=Ve||je;return oe.createElement(Ut.Provider,{value:At},ut)}var ee=te,he=ae(74126),ue=ae(94266),fe=ae.n(ue),me=ae(53410),be=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ae=["reactReduxForwardedRef"],Ie=[],Xe=[null,null],nt=function(Ne){try{return JSON.stringify(Ne)}catch(Ve){return String(Ne)}};function Je(we,Ne){var Ve=we[1];return[Ne.payload,Ve+1]}function st(we,Ne,Ve){Fe(function(){return we.apply(void 0,Ne)},Ve)}function gt(we,Ne,Ve,ut,At,Nt,Ut){we.current=ut,Ne.current=At,Ve.current=!1,Nt.current&&(Nt.current=null,Ut())}function rt(we,Ne,Ve,ut,At,Nt,Ut,Zt,Un,nr){if(we){var qn=!1,Hn=null,Kn=function(){if(!qn){var Gi=Ne.getState(),Xi,eo;try{Xi=ut(Gi,At.current)}catch(So){eo=So,Hn=So}eo||(Hn=null),Xi===Nt.current?Ut.current||Un():(Nt.current=Xi,Zt.current=Xi,Ut.current=!0,nr({type:"STORE_UPDATED",payload:{error:eo}}))}};Ve.onStateChange=Kn,Ve.trySubscribe(),Kn();var pr=function(){if(qn=!0,Ve.tryUnsubscribe(),Ve.onStateChange=null,Hn)throw Hn};return pr}}var mt=function(){return[null,0]};function xt(we,Ne){Ne===void 0&&(Ne={});var Ve=Ne,ut=Ve.getDisplayName,At=ut===void 0?function(Go){return"ConnectAdvanced("+Go+")"}:ut,Nt=Ve.methodName,Ut=Nt===void 0?"connectAdvanced":Nt,Zt=Ve.renderCountProp,Un=Zt===void 0?void 0:Zt,nr=Ve.shouldHandleStateChanges,qn=nr===void 0?!0:nr,Hn=Ve.storeKey,Kn=Hn===void 0?"store":Hn,pr=Ve.withRef,ri=pr===void 0?!1:pr,Gi=Ve.forwardRef,Xi=Gi===void 0?!1:Gi,eo=Ve.context,So=eo===void 0?je:eo,Co=(0,he.Z)(Ve,be);if(0)var Ro;var ra=So;return function(Ha){var ml=Ha.displayName||Ha.name||"Component",Ka=At(ml),Ws=(0,ke.Z)({},Co,{getDisplayName:At,methodName:Ut,renderCountProp:Un,shouldHandleStateChanges:qn,storeKey:Kn,displayName:Ka,wrappedComponentName:ml,WrappedComponent:Ha}),tu=Co.pure;function Au(Zs){return we(Zs.dispatch,Ws)}var dd=tu?oe.useMemo:function(Zs){return Zs()};function _c(Zs){var Nu=(0,oe.useMemo)(function(){var Ml=Zs.reactReduxForwardedRef,vl=(0,he.Z)(Zs,Ae);return[Zs.context,Ml,vl]},[Zs]),Hc=Nu[0],nu=Nu[1],wc=Nu[2],Eh=(0,oe.useMemo)(function(){return Hc&&Hc.Consumer&&(0,me.isContextConsumer)(oe.createElement(Hc.Consumer,null))?Hc:ra},[Hc,ra]),Cc=(0,oe.useContext)(Eh),_o=!!Zs.store&&!!Zs.store.getState&&!!Zs.store.dispatch,wp=!!Cc&&!!Cc.store,hd=_o?Zs.store:Cc.store,nf=(0,oe.useMemo)(function(){return Au(hd)},[hd]),$d=(0,oe.useMemo)(function(){if(!qn)return Xe;var Ml=Mt(hd,_o?null:Cc.subscription),vl=Ml.notifyNestedSubs.bind(Ml);return[Ml,vl]},[hd,_o,Cc]),fd=$d[0],Pc=$d[1],Bf=(0,oe.useMemo)(function(){return _o?Cc:(0,ke.Z)({},Cc,{subscription:fd})},[_o,Cc,fd]),sg=(0,oe.useReducer)(Je,Ie,mt),Vg=sg[0],_f=Vg[0],Um=sg[1];if(_f&&_f.error)throw _f.error;var xh=(0,oe.useRef)(),Cp=(0,oe.useRef)(wc),Uf=(0,oe.useRef)(),Pp=(0,oe.useRef)(!1),wh=dd(function(){return Uf.current&&wc===Cp.current?Uf.current:nf(hd.getState(),wc)},[hd,_f,wc]);st(gt,[Cp,xh,Pp,wc,wh,Uf,Pc]),st(rt,[qn,hd,fd,nf,Cp,xh,Pp,Uf,Pc,Um],[hd,fd,nf]);var Tp=(0,oe.useMemo)(function(){return oe.createElement(Ha,(0,ke.Z)({},wh,{ref:nu}))},[nu,Ha,wh]),ha=(0,oe.useMemo)(function(){return qn?oe.createElement(Eh.Provider,{value:Bf},Tp):Tp},[Eh,Tp,Bf]);return ha}var ju=tu?oe.memo(_c):_c;if(ju.WrappedComponent=Ha,ju.displayName=_c.displayName=Ka,Xi){var Uc=oe.forwardRef(function(Nu,Hc){return oe.createElement(ju,(0,ke.Z)({},Nu,{reactReduxForwardedRef:Hc}))});return Uc.displayName=Ka,Uc.WrappedComponent=Ha,fe()(Uc,Ha)}return fe()(ju,Ha)}}function Tt(we,Ne){return we===Ne?we!==0||Ne!==0||1/we===1/Ne:we!==we&&Ne!==Ne}function zt(we,Ne){if(Tt(we,Ne))return!0;if(typeof we!="object"||we===null||typeof Ne!="object"||Ne===null)return!1;var Ve=Object.keys(we),ut=Object.keys(Ne);if(Ve.length!==ut.length)return!1;for(var At=0;At<Ve.length;At++)if(!Object.prototype.hasOwnProperty.call(Ne,Ve[At])||!Tt(we[Ve[At]],Ne[Ve[At]]))return!1;return!0}function Qt(we,Ne){var Ve={},ut=function(Ut){var Zt=we[Ut];typeof Zt=="function"&&(Ve[Ut]=function(){return Ne(Zt.apply(void 0,arguments))})};for(var At in we)ut(At);return Ve}function Kt(we){return function(Ve,ut){var At=we(Ve,ut);function Nt(){return At}return Nt.dependsOnOwnProps=!1,Nt}}function Cn(we){return we.dependsOnOwnProps!==null&&we.dependsOnOwnProps!==void 0?!!we.dependsOnOwnProps:we.length!==1}function St(we,Ne){return function(ut,At){var Nt=At.displayName,Ut=function(Un,nr){return Ut.dependsOnOwnProps?Ut.mapToProps(Un,nr):Ut.mapToProps(Un)};return Ut.dependsOnOwnProps=!0,Ut.mapToProps=function(Un,nr){Ut.mapToProps=we,Ut.dependsOnOwnProps=Cn(we);var qn=Ut(Un,nr);return typeof qn=="function"&&(Ut.mapToProps=qn,Ut.dependsOnOwnProps=Cn(qn),qn=Ut(Un,nr)),qn},Ut}}function pt(we){return typeof we=="function"?St(we,"mapDispatchToProps"):void 0}function ct(we){return we?void 0:Kt(function(Ne){return{dispatch:Ne}})}function qt(we){return we&&typeof we=="object"?Kt(function(Ne){return Qt(we,Ne)}):void 0}var fn=[pt,ct,qt];function kt(we){return typeof we=="function"?St(we,"mapStateToProps"):void 0}function xn(we){return we?void 0:Kt(function(){return{}})}var kn=[kt,xn];function Vn(we,Ne,Ve){return(0,ke.Z)({},Ve,we,Ne)}function Vt(we){return function(Ve,ut){var At=ut.displayName,Nt=ut.pure,Ut=ut.areMergedPropsEqual,Zt=!1,Un;return function(qn,Hn,Kn){var pr=we(qn,Hn,Kn);return Zt?(!Nt||!Ut(pr,Un))&&(Un=pr):(Zt=!0,Un=pr),Un}}}function Ot(we){return typeof we=="function"?Vt(we):void 0}function Nn(we){return we?void 0:function(){return Vn}}var tr=[Ot,Nn],hr=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ot(we,Ne,Ve,ut){return function(Nt,Ut){return Ve(we(Nt,Ut),Ne(ut,Ut),Ut)}}function _e(we,Ne,Ve,ut,At){var Nt=At.areStatesEqual,Ut=At.areOwnPropsEqual,Zt=At.areStatePropsEqual,Un=!1,nr,qn,Hn,Kn,pr;function ri(Co,Ro){return nr=Co,qn=Ro,Hn=we(nr,qn),Kn=Ne(ut,qn),pr=Ve(Hn,Kn,qn),Un=!0,pr}function Gi(){return Hn=we(nr,qn),Ne.dependsOnOwnProps&&(Kn=Ne(ut,qn)),pr=Ve(Hn,Kn,qn),pr}function Xi(){return we.dependsOnOwnProps&&(Hn=we(nr,qn)),Ne.dependsOnOwnProps&&(Kn=Ne(ut,qn)),pr=Ve(Hn,Kn,qn),pr}function eo(){var Co=we(nr,qn),Ro=!Zt(Co,Hn);return Hn=Co,Ro&&(pr=Ve(Hn,Kn,qn)),pr}function So(Co,Ro){var ra=!Ut(Ro,qn),Go=!Nt(Co,nr,Ro,qn);return nr=Co,qn=Ro,ra&&Go?Gi():ra?Xi():Go?eo():pr}return function(Ro,ra){return Un?So(Ro,ra):ri(Ro,ra)}}function Re(we,Ne){var Ve=Ne.initMapStateToProps,ut=Ne.initMapDispatchToProps,At=Ne.initMergeProps,Nt=(0,he.Z)(Ne,hr),Ut=Ve(we,Nt),Zt=ut(we,Nt),Un=At(we,Nt),nr=Nt.pure?_e:ot;return nr(Ut,Zt,Un,we,Nt)}var Ye=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function at(we,Ne,Ve){for(var ut=Ne.length-1;ut>=0;ut--){var At=Ne[ut](we);if(At)return At}return function(Nt,Ut){throw new Error("Invalid value of type "+typeof we+" for "+Ve+" argument when connecting component "+Ut.wrappedComponentName+".")}}function Be(we,Ne){return we===Ne}function bt(we){var Ne=we===void 0?{}:we,Ve=Ne.connectHOC,ut=Ve===void 0?xt:Ve,At=Ne.mapStateToPropsFactories,Nt=At===void 0?kn:At,Ut=Ne.mapDispatchToPropsFactories,Zt=Ut===void 0?fn:Ut,Un=Ne.mergePropsFactories,nr=Un===void 0?tr:Un,qn=Ne.selectorFactory,Hn=qn===void 0?Re:qn;return function(pr,ri,Gi,Xi){Xi===void 0&&(Xi={});var eo=Xi,So=eo.pure,Co=So===void 0?!0:So,Ro=eo.areStatesEqual,ra=Ro===void 0?Be:Ro,Go=eo.areOwnPropsEqual,Ha=Go===void 0?zt:Go,ml=eo.areStatePropsEqual,Ka=ml===void 0?zt:ml,Ws=eo.areMergedPropsEqual,tu=Ws===void 0?zt:Ws,Au=(0,he.Z)(eo,Ye),dd=at(pr,Nt,"mapStateToProps"),_c=at(ri,Zt,"mapDispatchToProps"),ju=at(Gi,nr,"mergeProps");return ut(Hn,(0,ke.Z)({methodName:"connect",getDisplayName:function(Zs){return"Connect("+Zs+")"},shouldHandleStateChanges:!!pr,initMapStateToProps:dd,initMapDispatchToProps:_c,initMergeProps:ju,pure:Co,areStatesEqual:ra,areOwnPropsEqual:Ha,areStatePropsEqual:Ka,areMergedPropsEqual:tu},Au))}}var bn=bt();function sn(){var we=useContext(ReactReduxContext);return we}function Bn(we){we===void 0&&(we=ReactReduxContext);var Ne=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(){var ut=Ne(),At=ut.store;return At}}var It=null;function _t(we){we===void 0&&(we=ReactReduxContext);var Ne=we===ReactReduxContext?useDefaultStore:createStoreHook(we);return function(){var ut=Ne();return ut.dispatch}}var jt=null,hn=function(Ne,Ve){return Ne===Ve};function En(we,Ne,Ve,ut){var At=useReducer(function(ri){return ri+1},0),Nt=At[1],Ut=useMemo(function(){return createSubscription(Ve,ut)},[Ve,ut]),Zt=useRef(),Un=useRef(),nr=useRef(),qn=useRef(),Hn=Ve.getState(),Kn;try{if(we!==Un.current||Hn!==nr.current||Zt.current){var pr=we(Hn);qn.current===void 0||!Ne(pr,qn.current)?Kn=pr:Kn=qn.current}else Kn=qn.current}catch(ri){throw Zt.current&&(ri.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+Zt.current.stack+`
|
|
|
|
|
|
`),ri}return useIsomorphicLayoutEffect(function(){Un.current=we,nr.current=Hn,qn.current=Kn,Zt.current=void 0}),useIsomorphicLayoutEffect(function(){function ri(){try{var Gi=Ve.getState();if(Gi===nr.current)return;var Xi=Un.current(Gi);if(Ne(Xi,qn.current))return;qn.current=Xi,nr.current=Gi}catch(eo){Zt.current=eo}Nt()}return Ut.onStateChange=ri,Ut.trySubscribe(),ri(),function(){return Ut.tryUnsubscribe()}},[Ve,Ut]),Kn}function pn(we){we===void 0&&(we=ReactReduxContext);var Ne=we===ReactReduxContext?useDefaultReduxContext:function(){return useContext(we)};return function(ut,At){At===void 0&&(At=hn);var Nt=Ne(),Ut=Nt.store,Zt=Nt.subscription,Un=En(ut,At,Ut,Zt);return useDebugValue(Un),Un}}var Rt=null,Tn=ae(4676);Ke(Tn.unstable_batchedUpdates);function Yt(we,Ne){if(we.length!==Ne.length)return!1;for(var Ve=0;Ve<we.length;Ve++)if(we[Ve]!==Ne[Ve])return!1;return!0}function en(we,Ne){var Ve=(0,oe.useState)(function(){return{inputs:Ne,result:we()}})[0],ut=(0,oe.useRef)(!0),At=(0,oe.useRef)(Ve),Nt=ut.current||!!(Ne&&At.current.inputs&&Yt(Ne,At.current.inputs)),Ut=Nt?At.current:{inputs:Ne,result:we()};return(0,oe.useEffect)(function(){ut.current=!1,At.current=Ut},[Ut]),Ut.result}function vn(we,Ne){return en(function(){return we},Ne)}var zn=en,un=vn,Et=!0,Xn="Invariant failed";function ir(we,Ne){if(!we){if(Et)throw new Error(Xn);var Ve=typeof Ne=="function"?Ne():Ne,ut=Ve?"".concat(Xn,": ").concat(Ve):Xn;throw new Error(ut)}}var Jt=function(Ne){var Ve=Ne.top,ut=Ne.right,At=Ne.bottom,Nt=Ne.left,Ut=ut-Nt,Zt=At-Ve,Un={top:Ve,right:ut,bottom:At,left:Nt,width:Ut,height:Zt,x:Nt,y:Ve,center:{x:(ut+Nt)/2,y:(At+Ve)/2}};return Un},Er=function(Ne,Ve){return{top:Ne.top-Ve.top,left:Ne.left-Ve.left,bottom:Ne.bottom+Ve.bottom,right:Ne.right+Ve.right}},ni=function(Ne,Ve){return{top:Ne.top+Ve.top,left:Ne.left+Ve.left,bottom:Ne.bottom-Ve.bottom,right:Ne.right-Ve.right}},Rr=function(Ne,Ve){return{top:Ne.top+Ve.y,left:Ne.left+Ve.x,bottom:Ne.bottom+Ve.y,right:Ne.right+Ve.x}},Mn={top:0,right:0,bottom:0,left:0},ei=function(Ne){var Ve=Ne.borderBox,ut=Ne.margin,At=ut===void 0?Mn:ut,Nt=Ne.border,Ut=Nt===void 0?Mn:Nt,Zt=Ne.padding,Un=Zt===void 0?Mn:Zt,nr=Jt(Er(Ve,At)),qn=Jt(ni(Ve,Ut)),Hn=Jt(ni(qn,Un));return{marginBox:nr,borderBox:Jt(Ve),paddingBox:qn,contentBox:Hn,margin:At,border:Ut,padding:Un}},Kr=function(Ne){var Ve=Ne.slice(0,-2),ut=Ne.slice(-2);if(ut!=="px")return 0;var At=Number(Ve);return isNaN(At)&&ir(!1),At},lr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},jr=function(Ne,Ve){var ut=Ne.borderBox,At=Ne.border,Nt=Ne.margin,Ut=Ne.padding,Zt=Rr(ut,Ve);return ei({borderBox:Zt,border:At,margin:Nt,padding:Ut})},oi=function(Ne,Ve){return Ve===void 0&&(Ve=lr()),jr(Ne,Ve)},Oe=function(Ne,Ve){var ut={top:Kr(Ve.marginTop),right:Kr(Ve.marginRight),bottom:Kr(Ve.marginBottom),left:Kr(Ve.marginLeft)},At={top:Kr(Ve.paddingTop),right:Kr(Ve.paddingRight),bottom:Kr(Ve.paddingBottom),left:Kr(Ve.paddingLeft)},Nt={top:Kr(Ve.borderTopWidth),right:Kr(Ve.borderRightWidth),bottom:Kr(Ve.borderBottomWidth),left:Kr(Ve.borderLeftWidth)};return ei({borderBox:Ne,margin:ut,padding:At,border:Nt})},dr=function(Ne){var Ve=Ne.getBoundingClientRect(),ut=window.getComputedStyle(Ne);return Oe(Ve,ut)},Pr=Number.isNaN||function(Ne){return typeof Ne=="number"&&Ne!==Ne};function or(we,Ne){return!!(we===Ne||Pr(we)&&Pr(Ne))}function Lr(we,Ne){if(we.length!==Ne.length)return!1;for(var Ve=0;Ve<we.length;Ve++)if(!or(we[Ve],Ne[Ve]))return!1;return!0}function zr(we,Ne){Ne===void 0&&(Ne=Lr);var Ve,ut=[],At,Nt=!1;function Ut(){for(var Zt=[],Un=0;Un<arguments.length;Un++)Zt[Un]=arguments[Un];return Nt&&Ve===this&&Ne(Zt,ut)||(At=we.apply(this,Zt),Nt=!0,Ve=this,ut=Zt),At}return Ut}var wr=zr,Ti=function(Ne){var Ve=[],ut=null,At=function(){for(var Ut=arguments.length,Zt=new Array(Ut),Un=0;Un<Ut;Un++)Zt[Un]=arguments[Un];Ve=Zt,!ut&&(ut=requestAnimationFrame(function(){ut=null,Ne.apply(void 0,Ve)}))};return At.cancel=function(){ut&&(cancelAnimationFrame(ut),ut=null)},At},On=Ti,yn=!0,Sn=/[ \t]{2,}/g,Jn=/^[ \t]*/gm,ui=function(Ne){return Ne.replace(Sn," ").replace(Jn,"").trim()},Yr=function(Ne){return ui(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+ui(Ne)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},ci=function(Ne){return[Yr(Ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ur="__react-beautiful-dnd-disable-dev-warnings";function Xr(we,Ne){var Ve;yn||typeof window!="undefined"&&window[ur]||(Ve=console)[we].apply(Ve,ci(Ne))}var wi=Xr.bind(null,"warn"),ki=Xr.bind(null,"error");function Fr(){}function Lt(we,Ne){return(0,ke.Z)({},we,{},Ne)}function cn(we,Ne,Ve){var ut=Ne.map(function(At){var Nt=Lt(Ve,At.options);return we.addEventListener(At.eventName,At.fn,Nt),function(){we.removeEventListener(At.eventName,At.fn,Nt)}});return function(){ut.forEach(function(Nt){Nt()})}}var kr=!0,Ir="Invariant failed";function Xt(we){this.message=we}Xt.prototype.toString=function(){return this.message};function Fn(we,Ne){if(!we)throw kr?new Xt(Ir):new Xt(Ir+": "+(Ne||""))}var fr=function(we){(0,Pe.Z)(Ne,we);function Ne(){for(var ut,At=arguments.length,Nt=new Array(At),Ut=0;Ut<At;Ut++)Nt[Ut]=arguments[Ut];return ut=we.call.apply(we,[this].concat(Nt))||this,ut.callbacks=null,ut.unbind=Fr,ut.onWindowError=function(Zt){var Un=ut.getCallbacks();Un.isDragging()&&Un.tryAbort();var nr=Zt.error;nr instanceof Xt&&Zt.preventDefault()},ut.getCallbacks=function(){if(!ut.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ut.callbacks},ut.setCallbacks=function(Zt){ut.callbacks=Zt},ut}var Ve=Ne.prototype;return Ve.componentDidMount=function(){this.unbind=cn(window,[{eventName:"error",fn:this.onWindowError}])},Ve.componentWillUnmount=function(){this.unbind()},Ve.componentDidCatch=function(At){if(At instanceof Xt){this.setState({});return}throw At},Ve.render=function(){return this.props.children(this.setCallbacks)},Ne}(oe.Component),dn=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,Ue=function(Ne){return Ne+1},Mr=function(Ne){return`
|
|
|
You have lifted an item in position `+Ue(Ne.source.index)+`
|
|
|
`},Ur=function(Ne,Ve){var ut=Ne.droppableId===Ve.droppableId,At=Ue(Ne.index),Nt=Ue(Ve.index);return ut?`
|
|
|
You have moved the item from position `+At+`
|
|
|
to position `+Nt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+At+`
|
|
|
in list `+Ne.droppableId+`
|
|
|
to list `+Ve.droppableId+`
|
|
|
in position `+Nt+`
|
|
|
`},Wn=function(Ne,Ve,ut){var At=Ve.droppableId===ut.droppableId;return At?`
|
|
|
The item `+Ne+`
|
|
|
has been combined with `+ut.draggableId:`
|
|
|
The item `+Ne+`
|
|
|
in list `+Ve.droppableId+`
|
|
|
has been combined with `+ut.draggableId+`
|
|
|
in list `+ut.droppableId+`
|
|
|
`},mi=function(Ne){var Ve=Ne.destination;if(Ve)return Ur(Ne.source,Ve);var ut=Ne.combine;return ut?Wn(Ne.draggableId,Ne.source,ut):"You are over an area that cannot be dropped on"},Qr=function(Ne){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+Ue(Ne.index)+`
|
|
|
`},rr=function(Ne){if(Ne.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Qr(Ne.source)+`
|
|
|
`;var Ve=Ne.destination,ut=Ne.combine;return Ve?`
|
|
|
You have dropped the item.
|
|
|
`+Ur(Ne.source,Ve)+`
|
|
|
`:ut?`
|
|
|
You have dropped the item.
|
|
|
`+Wn(Ne.draggableId,Ne.source,ut)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Qr(Ne.source)+`
|
|
|
`},Gr={dragHandleUsageInstructions:dn,onDragStart:Mr,onDragUpdate:mi,onDragEnd:rr},on={x:0,y:0},Ci=function(Ne,Ve){return{x:Ne.x+Ve.x,y:Ne.y+Ve.y}},Vi=function(Ne,Ve){return{x:Ne.x-Ve.x,y:Ne.y-Ve.y}},mn=function(Ne,Ve){return Ne.x===Ve.x&&Ne.y===Ve.y},li=function(Ne){return{x:Ne.x!==0?-Ne.x:0,y:Ne.y!==0?-Ne.y:0}},bi=function(Ne,Ve,ut){var At;return ut===void 0&&(ut=0),At={},At[Ne]=Ve,At[Ne==="x"?"y":"x"]=ut,At},qr=function(Ne,Ve){return Math.sqrt(Math.pow(Ve.x-Ne.x,2)+Math.pow(Ve.y-Ne.y,2))},Pi=function(Ne,Ve){return Math.min.apply(Math,Ve.map(function(ut){return qr(Ne,ut)}))},Ii=function(Ne){return function(Ve){return{x:Ne(Ve.x),y:Ne(Ve.y)}}},Hi=function(we,Ne){var Ve=Jt({top:Math.max(Ne.top,we.top),right:Math.min(Ne.right,we.right),bottom:Math.min(Ne.bottom,we.bottom),left:Math.max(Ne.left,we.left)});return Ve.width<=0||Ve.height<=0?null:Ve},ji=function(Ne,Ve){return{top:Ne.top+Ve.y,left:Ne.left+Ve.x,bottom:Ne.bottom+Ve.y,right:Ne.right+Ve.x}},Bi=function(Ne){return[{x:Ne.left,y:Ne.top},{x:Ne.right,y:Ne.top},{x:Ne.left,y:Ne.bottom},{x:Ne.right,y:Ne.bottom}]},io={top:0,right:0,bottom:0,left:0},Qn=function(Ne,Ve){return Ve?ji(Ne,Ve.scroll.diff.displacement):Ne},zi=function(Ne,Ve,ut){if(ut&&ut.increasedBy){var At;return(0,ke.Z)({},Ne,(At={},At[Ve.end]=Ne[Ve.end]+ut.increasedBy[Ve.line],At))}return Ne},ar=function(Ne,Ve){return Ve&&Ve.shouldClipSubject?Hi(Ve.pageMarginBox,Ne):Jt(Ne)},vi=function(we){var Ne=we.page,Ve=we.withPlaceholder,ut=we.axis,At=we.frame,Nt=Qn(Ne.marginBox,At),Ut=zi(Nt,ut,Ve),Zt=ar(Ut,At);return{page:Ne,withPlaceholder:Ve,active:Zt}},Zi=function(we,Ne){we.frame||Fn(!1);var Ve=we.frame,ut=Vi(Ne,Ve.scroll.initial),At=li(ut),Nt=(0,ke.Z)({},Ve,{scroll:{initial:Ve.scroll.initial,current:Ne,diff:{value:ut,displacement:At},max:Ve.scroll.max}}),Ut=vi({page:we.subject.page,withPlaceholder:we.subject.withPlaceholder,axis:we.axis,frame:Nt}),Zt=(0,ke.Z)({},we,{frame:Nt,subject:Ut});return Zt};function Fi(we){return Number.isInteger?Number.isInteger(we):typeof we=="number"&&isFinite(we)&&Math.floor(we)===we}function fo(we){return Object.values?Object.values(we):Object.keys(we).map(function(Ne){return we[Ne]})}function co(we,Ne){if(we.findIndex)return we.findIndex(Ne);for(var Ve=0;Ve<we.length;Ve++)if(Ne(we[Ve]))return Ve;return-1}function Wi(we,Ne){if(we.find)return we.find(Ne);var Ve=co(we,Ne);if(Ve!==-1)return we[Ve]}function zo(we){return Array.prototype.slice.call(we)}var _n=wr(function(we){return we.reduce(function(Ne,Ve){return Ne[Ve.descriptor.id]=Ve,Ne},{})}),vr=wr(function(we){return we.reduce(function(Ne,Ve){return Ne[Ve.descriptor.id]=Ve,Ne},{})}),An=wr(function(we){return fo(we)}),it=wr(function(we){return fo(we)}),Dr=wr(function(we,Ne){var Ve=it(Ne).filter(function(ut){return we===ut.descriptor.droppableId}).sort(function(ut,At){return ut.descriptor.index-At.descriptor.index});return Ve});function Wr(we){return we.at&&we.at.type==="REORDER"?we.at.destination:null}function pi(we){return we.at&&we.at.type==="COMBINE"?we.at.combine:null}var hi=wr(function(we,Ne){return Ne.filter(function(Ve){return Ve.descriptor.id!==we.descriptor.id})}),ai=function(we){var Ne=we.isMovingForward,Ve=we.draggable,ut=we.destination,At=we.insideDestination,Nt=we.previousImpact;if(!ut.isCombineEnabled)return null;var Ut=Wr(Nt);if(!Ut)return null;function Zt(Gi){var Xi={type:"COMBINE",combine:{draggableId:Gi,droppableId:ut.descriptor.id}};return(0,ke.Z)({},Nt,{at:Xi})}var Un=Nt.displaced.all,nr=Un.length?Un[0]:null;if(Ne)return nr?Zt(nr):null;var qn=hi(Ve,At);if(!nr){if(!qn.length)return null;var Hn=qn[qn.length-1];return Zt(Hn.descriptor.id)}var Kn=co(qn,function(Gi){return Gi.descriptor.id===nr});Kn===-1&&Fn(!1);var pr=Kn-1;if(pr<0)return null;var ri=qn[pr];return Zt(ri.descriptor.id)},mr=function(we,Ne){return we.descriptor.droppableId===Ne.descriptor.id},ht={point:on,value:0},wn={invisible:{},visible:{},all:[]},Pn={displaced:wn,displacedBy:ht,at:null},Gn=function(we,Ne){return function(Ve){return we<=Ve&&Ve<=Ne}},gn=function(we){var Ne=Gn(we.top,we.bottom),Ve=Gn(we.left,we.right);return function(ut){var At=Ne(ut.top)&&Ne(ut.bottom)&&Ve(ut.left)&&Ve(ut.right);if(At)return!0;var Nt=Ne(ut.top)||Ne(ut.bottom),Ut=Ve(ut.left)||Ve(ut.right),Zt=Nt&&Ut;if(Zt)return!0;var Un=ut.top<we.top&&ut.bottom>we.bottom,nr=ut.left<we.left&&ut.right>we.right,qn=Un&&nr;if(qn)return!0;var Hn=Un&&Ut||nr&&Nt;return Hn}},$n=function(we){var Ne=Gn(we.top,we.bottom),Ve=Gn(we.left,we.right);return function(ut){var At=Ne(ut.top)&&Ne(ut.bottom)&&Ve(ut.left)&&Ve(ut.right);return At}},Yn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},an={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},cr=function(we){return function(Ne){var Ve=Gn(Ne.top,Ne.bottom),ut=Gn(Ne.left,Ne.right);return function(At){return we===Yn?Ve(At.top)&&Ve(At.bottom):ut(At.left)&&ut(At.right)}}},Vr=function(Ne,Ve){var ut=Ve.frame?Ve.frame.scroll.diff.displacement:on;return ji(Ne,ut)},Ni=function(Ne,Ve,ut){return Ve.subject.active?ut(Ve.subject.active)(Ne):!1},si=function(Ne,Ve,ut){return ut(Ve)(Ne)},Si=function(Ne){var Ve=Ne.target,ut=Ne.destination,At=Ne.viewport,Nt=Ne.withDroppableDisplacement,Ut=Ne.isVisibleThroughFrameFn,Zt=Nt?Vr(Ve,ut):Ve;return Ni(Zt,ut,Ut)&&si(Zt,At,Ut)},Ri=function(Ne){return Si((0,ke.Z)({},Ne,{isVisibleThroughFrameFn:gn}))},_i=function(Ne){return Si((0,ke.Z)({},Ne,{isVisibleThroughFrameFn:$n}))},ao=function(Ne){return Si((0,ke.Z)({},Ne,{isVisibleThroughFrameFn:cr(Ne.destination.axis)}))},wo=function(Ne,Ve,ut){if(typeof ut=="boolean")return ut;if(!Ve)return!0;var At=Ve.invisible,Nt=Ve.visible;if(At[Ne])return!1;var Ut=Nt[Ne];return Ut?Ut.shouldAnimate:!0};function Ho(we,Ne){var Ve=we.page.marginBox,ut={top:Ne.point.y,right:0,bottom:0,left:Ne.point.x};return Jt(Er(Ve,ut))}function In(we){var Ne=we.afterDragging,Ve=we.destination,ut=we.displacedBy,At=we.viewport,Nt=we.forceShouldAnimate,Ut=we.last;return Ne.reduce(function(Un,nr){var qn=Ho(nr,ut),Hn=nr.descriptor.id;Un.all.push(Hn);var Kn=Ri({target:qn,destination:Ve,viewport:At,withDroppableDisplacement:!0});if(!Kn)return Un.invisible[nr.descriptor.id]=!0,Un;var pr=wo(Hn,Ut,Nt),ri={draggableId:Hn,shouldAnimate:pr};return Un.visible[Hn]=ri,Un},{all:[],visible:{},invisible:{}})}function ko(we,Ne){if(!we.length)return 0;var Ve=we[we.length-1].descriptor.index;return Ne.inHomeList?Ve:Ve+1}function po(we){var Ne=we.insideDestination,Ve=we.inHomeList,ut=we.displacedBy,At=we.destination,Nt=ko(Ne,{inHomeList:Ve});return{displaced:wn,displacedBy:ut,at:{type:"REORDER",destination:{droppableId:At.descriptor.id,index:Nt}}}}function Yi(we){var Ne=we.draggable,Ve=we.insideDestination,ut=we.destination,At=we.viewport,Nt=we.displacedBy,Ut=we.last,Zt=we.index,Un=we.forceShouldAnimate,nr=mr(Ne,ut);if(Zt==null)return po({insideDestination:Ve,inHomeList:nr,displacedBy:Nt,destination:ut});var qn=Wi(Ve,function(Gi){return Gi.descriptor.index===Zt});if(!qn)return po({insideDestination:Ve,inHomeList:nr,displacedBy:Nt,destination:ut});var Hn=hi(Ne,Ve),Kn=Ve.indexOf(qn),pr=Hn.slice(Kn),ri=In({afterDragging:pr,destination:ut,displacedBy:Nt,last:Ut,viewport:At.frame,forceShouldAnimate:Un});return{displaced:ri,displacedBy:Nt,at:{type:"REORDER",destination:{droppableId:ut.descriptor.id,index:Zt}}}}function Oi(we,Ne){return!!Ne.effected[we]}var Oo=function(we){var Ne=we.isMovingForward,Ve=we.destination,ut=we.draggables,At=we.combine,Nt=we.afterCritical;if(!Ve.isCombineEnabled)return null;var Ut=At.draggableId,Zt=ut[Ut],Un=Zt.descriptor.index,nr=Oi(Ut,Nt);return nr?Ne?Un:Un-1:Ne?Un+1:Un},Wo=function(we){var Ne=we.isMovingForward,Ve=we.isInHomeList,ut=we.insideDestination,At=we.location;if(!ut.length)return null;var Nt=At.index,Ut=Ne?Nt+1:Nt-1,Zt=ut[0].descriptor.index,Un=ut[ut.length-1].descriptor.index,nr=Ve?Un:Un+1;return Ut<Zt||Ut>nr?null:Ut},jn=function(we){var Ne=we.isMovingForward,Ve=we.isInHomeList,ut=we.draggable,At=we.draggables,Nt=we.destination,Ut=we.insideDestination,Zt=we.previousImpact,Un=we.viewport,nr=we.afterCritical,qn=Zt.at;if(qn||Fn(!1),qn.type==="REORDER"){var Hn=Wo({isMovingForward:Ne,isInHomeList:Ve,location:qn.destination,insideDestination:Ut});return Hn==null?null:Yi({draggable:ut,insideDestination:Ut,destination:Nt,viewport:Un,last:Zt.displaced,displacedBy:Zt.displacedBy,index:Hn})}var Kn=Oo({isMovingForward:Ne,destination:Nt,displaced:Zt.displaced,draggables:At,combine:qn.combine,afterCritical:nr});return Kn==null?null:Yi({draggable:ut,insideDestination:Ut,destination:Nt,viewport:Un,last:Zt.displaced,displacedBy:Zt.displacedBy,index:Kn})},vo=function(we){var Ne=we.displaced,Ve=we.afterCritical,ut=we.combineWith,At=we.displacedBy,Nt=!!(Ne.visible[ut]||Ne.invisible[ut]);return Oi(ut,Ve)?Nt?on:li(At.point):Nt?At.point:on},ia=function(we){var Ne=we.afterCritical,Ve=we.impact,ut=we.draggables,At=pi(Ve);At||Fn(!1);var Nt=At.draggableId,Ut=ut[Nt].page.borderBox.center,Zt=vo({displaced:Ve.displaced,afterCritical:Ne,combineWith:Nt,displacedBy:Ve.displacedBy});return Ci(Ut,Zt)},za=function(Ne,Ve){return Ve.margin[Ne.start]+Ve.borderBox[Ne.size]/2},hs=function(Ne,Ve){return Ve.margin[Ne.end]+Ve.borderBox[Ne.size]/2},il=function(Ne,Ve,ut){return Ve[Ne.crossAxisStart]+ut.margin[Ne.crossAxisStart]+ut.borderBox[Ne.crossAxisSize]/2},Ls=function(Ne){var Ve=Ne.axis,ut=Ne.moveRelativeTo,At=Ne.isMoving;return bi(Ve.line,ut.marginBox[Ve.end]+za(Ve,At),il(Ve,ut.marginBox,At))},no=function(Ne){var Ve=Ne.axis,ut=Ne.moveRelativeTo,At=Ne.isMoving;return bi(Ve.line,ut.marginBox[Ve.start]-hs(Ve,At),il(Ve,ut.marginBox,At))},Ra=function(Ne){var Ve=Ne.axis,ut=Ne.moveInto,At=Ne.isMoving;return bi(Ve.line,ut.contentBox[Ve.start]+za(Ve,At),il(Ve,ut.contentBox,At))},Ma=function(we){var Ne=we.impact,Ve=we.draggable,ut=we.draggables,At=we.droppable,Nt=we.afterCritical,Ut=Dr(At.descriptor.id,ut),Zt=Ve.page,Un=At.axis;if(!Ut.length)return Ra({axis:Un,moveInto:At.page,isMoving:Zt});var nr=Ne.displaced,qn=Ne.displacedBy,Hn=nr.all[0];if(Hn){var Kn=ut[Hn];if(Oi(Hn,Nt))return no({axis:Un,moveRelativeTo:Kn.page,isMoving:Zt});var pr=jr(Kn.page,qn.point);return no({axis:Un,moveRelativeTo:pr,isMoving:Zt})}var ri=Ut[Ut.length-1];if(ri.descriptor.id===Ve.descriptor.id)return Zt.borderBox.center;if(Oi(ri.descriptor.id,Nt)){var Gi=jr(ri.page,li(Nt.displacedBy.point));return Ls({axis:Un,moveRelativeTo:Gi,isMoving:Zt})}return Ls({axis:Un,moveRelativeTo:ri.page,isMoving:Zt})},ts=function(we,Ne){var Ve=we.frame;return Ve?Ci(Ne,Ve.scroll.diff.displacement):Ne},Oa=function(Ne){var Ve=Ne.impact,ut=Ne.draggable,At=Ne.droppable,Nt=Ne.draggables,Ut=Ne.afterCritical,Zt=ut.page.borderBox.center,Un=Ve.at;return!At||!Un?Zt:Un.type==="REORDER"?Ma({impact:Ve,draggable:ut,draggables:Nt,droppable:At,afterCritical:Ut}):ia({impact:Ve,draggables:Nt,afterCritical:Ut})},_a=function(we){var Ne=Oa(we),Ve=we.droppable,ut=Ve?ts(Ve,Ne):Ne;return ut},fi=function(we,Ne){var Ve=Vi(Ne,we.scroll.initial),ut=li(Ve),At=Jt({top:Ne.y,bottom:Ne.y+we.frame.height,left:Ne.x,right:Ne.x+we.frame.width}),Nt={frame:At,scroll:{initial:we.scroll.initial,max:we.scroll.max,current:Ne,diff:{value:Ve,displacement:ut}}};return Nt};function Qi(we,Ne){return we.map(function(Ve){return Ne[Ve]})}function ho(we,Ne){for(var Ve=0;Ve<Ne.length;Ve++){var ut=Ne[Ve].visible[we];if(ut)return ut}return null}var Io=function(we){var Ne=we.impact,Ve=we.viewport,ut=we.destination,At=we.draggables,Nt=we.maxScrollChange,Ut=fi(Ve,Ci(Ve.scroll.current,Nt)),Zt=ut.frame?Zi(ut,Ci(ut.frame.scroll.current,Nt)):ut,Un=Ne.displaced,nr=In({afterDragging:Qi(Un.all,At),destination:ut,displacedBy:Ne.displacedBy,viewport:Ut.frame,last:Un,forceShouldAnimate:!1}),qn=In({afterDragging:Qi(Un.all,At),destination:Zt,displacedBy:Ne.displacedBy,viewport:Ve.frame,last:Un,forceShouldAnimate:!1}),Hn={},Kn={},pr=[Un,nr,qn];Un.all.forEach(function(Gi){var Xi=ho(Gi,pr);if(Xi){Kn[Gi]=Xi;return}Hn[Gi]=!0});var ri=(0,ke.Z)({},Ne,{displaced:{all:Un.all,invisible:Hn,visible:Kn}});return ri},Do=function(we,Ne){return Ci(we.scroll.diff.displacement,Ne)},sa=function(we){var Ne=we.pageBorderBoxCenter,Ve=we.draggable,ut=we.viewport,At=Do(ut,Ne),Nt=Vi(At,Ve.page.borderBox.center);return Ci(Ve.client.borderBox.center,Nt)},Ji=function(we){var Ne=we.draggable,Ve=we.destination,ut=we.newPageBorderBoxCenter,At=we.viewport,Nt=we.withDroppableDisplacement,Ut=we.onlyOnMainAxis,Zt=Ut===void 0?!1:Ut,Un=Vi(ut,Ne.page.borderBox.center),nr=ji(Ne.page.borderBox,Un),qn={target:nr,destination:Ve,withDroppableDisplacement:Nt,viewport:At};return Zt?ao(qn):_i(qn)},Ss=function(we){var Ne=we.isMovingForward,Ve=we.draggable,ut=we.destination,At=we.draggables,Nt=we.previousImpact,Ut=we.viewport,Zt=we.previousPageBorderBoxCenter,Un=we.previousClientSelection,nr=we.afterCritical;if(!ut.isEnabled)return null;var qn=Dr(ut.descriptor.id,At),Hn=mr(Ve,ut),Kn=ai({isMovingForward:Ne,draggable:Ve,destination:ut,insideDestination:qn,previousImpact:Nt})||jn({isMovingForward:Ne,isInHomeList:Hn,draggable:Ve,draggables:At,destination:ut,insideDestination:qn,previousImpact:Nt,viewport:Ut,afterCritical:nr});if(!Kn)return null;var pr=_a({impact:Kn,draggable:Ve,droppable:ut,draggables:At,afterCritical:nr}),ri=Ji({draggable:Ve,destination:ut,newPageBorderBoxCenter:pr,viewport:Ut.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(ri){var Gi=sa({pageBorderBoxCenter:pr,draggable:Ve,viewport:Ut});return{clientSelection:Gi,impact:Kn,scrollJumpRequest:null}}var Xi=Vi(pr,Zt),eo=Io({impact:Kn,viewport:Ut,destination:ut,draggables:At,maxScrollChange:Xi});return{clientSelection:Un,impact:eo,scrollJumpRequest:Xi}},pa=function(Ne){var Ve=Ne.subject.active;return Ve||Fn(!1),Ve},Ga=function(we){var Ne=we.isMovingForward,Ve=we.pageBorderBoxCenter,ut=we.source,At=we.droppables,Nt=we.viewport,Ut=ut.subject.active;if(!Ut)return null;var Zt=ut.axis,Un=Gn(Ut[Zt.start],Ut[Zt.end]),nr=An(At).filter(function(Hn){return Hn!==ut}).filter(function(Hn){return Hn.isEnabled}).filter(function(Hn){return!!Hn.subject.active}).filter(function(Hn){return gn(Nt.frame)(pa(Hn))}).filter(function(Hn){var Kn=pa(Hn);return Ne?Ut[Zt.crossAxisEnd]<Kn[Zt.crossAxisEnd]:Kn[Zt.crossAxisStart]<Ut[Zt.crossAxisStart]}).filter(function(Hn){var Kn=pa(Hn),pr=Gn(Kn[Zt.start],Kn[Zt.end]);return Un(Kn[Zt.start])||Un(Kn[Zt.end])||pr(Ut[Zt.start])||pr(Ut[Zt.end])}).sort(function(Hn,Kn){var pr=pa(Hn)[Zt.crossAxisStart],ri=pa(Kn)[Zt.crossAxisStart];return Ne?pr-ri:ri-pr}).filter(function(Hn,Kn,pr){return pa(Hn)[Zt.crossAxisStart]===pa(pr[0])[Zt.crossAxisStart]});if(!nr.length)return null;if(nr.length===1)return nr[0];var qn=nr.filter(function(Hn){var Kn=Gn(pa(Hn)[Zt.start],pa(Hn)[Zt.end]);return Kn(Ve[Zt.line])});return qn.length===1?qn[0]:qn.length>1?qn.sort(function(Hn,Kn){return pa(Hn)[Zt.start]-pa(Kn)[Zt.start]})[0]:nr.sort(function(Hn,Kn){var pr=Pi(Ve,Bi(pa(Hn))),ri=Pi(Ve,Bi(pa(Kn)));return pr!==ri?pr-ri:pa(Hn)[Zt.start]-pa(Kn)[Zt.start]})[0]},Fo=function(Ne,Ve){var ut=Ne.page.borderBox.center;return Oi(Ne.descriptor.id,Ve)?Vi(ut,Ve.displacedBy.point):ut},ga=function(Ne,Ve){var ut=Ne.page.borderBox;return Oi(Ne.descriptor.id,Ve)?ji(ut,li(Ve.displacedBy.point)):ut},Hs=function(we){var Ne=we.pageBorderBoxCenter,Ve=we.viewport,ut=we.destination,At=we.insideDestination,Nt=we.afterCritical,Ut=At.filter(function(Zt){return _i({target:ga(Zt,Nt),destination:ut,viewport:Ve.frame,withDroppableDisplacement:!0})}).sort(function(Zt,Un){var nr=qr(Ne,ts(ut,Fo(Zt,Nt))),qn=qr(Ne,ts(ut,Fo(Un,Nt)));return nr<qn?-1:qn<nr?1:Zt.descriptor.index-Un.descriptor.index});return Ut[0]||null},da=wr(function(Ne,Ve){var ut=Ve[Ne.line];return{value:ut,point:bi(Ne.line,ut)}}),Rs=function(Ne,Ve,ut){var At=Ne.axis;if(Ne.descriptor.mode==="virtual")return bi(At.line,Ve[At.line]);var Nt=Ne.subject.page.contentBox[At.size],Ut=Dr(Ne.descriptor.id,ut),Zt=Ut.reduce(function(qn,Hn){return qn+Hn.client.marginBox[At.size]},0),Un=Zt+Ve[At.line],nr=Un-Nt;return nr<=0?null:bi(At.line,nr)},ol=function(Ne,Ve){return(0,ke.Z)({},Ne,{scroll:(0,ke.Z)({},Ne.scroll,{max:Ve})})},Xs=function(Ne,Ve,ut){var At=Ne.frame;mr(Ve,Ne)&&Fn(!1),Ne.subject.withPlaceholder&&Fn(!1);var Nt=da(Ne.axis,Ve.displaceBy).point,Ut=Rs(Ne,Nt,ut),Zt={placeholderSize:Nt,increasedBy:Ut,oldFrameMaxScroll:Ne.frame?Ne.frame.scroll.max:null};if(!At){var Un=vi({page:Ne.subject.page,withPlaceholder:Zt,axis:Ne.axis,frame:Ne.frame});return(0,ke.Z)({},Ne,{subject:Un})}var nr=Ut?Ci(At.scroll.max,Ut):At.scroll.max,qn=ol(At,nr),Hn=vi({page:Ne.subject.page,withPlaceholder:Zt,axis:Ne.axis,frame:qn});return(0,ke.Z)({},Ne,{subject:Hn,frame:qn})},$a=function(Ne){var Ve=Ne.subject.withPlaceholder;Ve||Fn(!1);var ut=Ne.frame;if(!ut){var At=vi({page:Ne.subject.page,axis:Ne.axis,frame:null,withPlaceholder:null});return(0,ke.Z)({},Ne,{subject:At})}var Nt=Ve.oldFrameMaxScroll;Nt||Fn(!1);var Ut=ol(ut,Nt),Zt=vi({page:Ne.subject.page,axis:Ne.axis,frame:Ut,withPlaceholder:null});return(0,ke.Z)({},Ne,{subject:Zt,frame:Ut})},Kl=function(we){var Ne=we.previousPageBorderBoxCenter,Ve=we.moveRelativeTo,ut=we.insideDestination,At=we.draggable,Nt=we.draggables,Ut=we.destination,Zt=we.viewport,Un=we.afterCritical;if(!Ve){if(ut.length)return null;var nr={displaced:wn,displacedBy:ht,at:{type:"REORDER",destination:{droppableId:Ut.descriptor.id,index:0}}},qn=_a({impact:nr,draggable:At,droppable:Ut,draggables:Nt,afterCritical:Un}),Hn=mr(At,Ut)?Ut:Xs(Ut,At,Nt),Kn=Ji({draggable:At,destination:Hn,newPageBorderBoxCenter:qn,viewport:Zt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Kn?nr:null}var pr=Ne[Ut.axis.line]<=Ve.page.borderBox.center[Ut.axis.line],ri=function(){var Xi=Ve.descriptor.index;return Ve.descriptor.id===At.descriptor.id||pr?Xi:Xi+1}(),Gi=da(Ut.axis,At.displaceBy);return Yi({draggable:At,insideDestination:ut,destination:Ut,viewport:Zt,displacedBy:Gi,last:wn,index:ri})},nc=function(we){var Ne=we.isMovingForward,Ve=we.previousPageBorderBoxCenter,ut=we.draggable,At=we.isOver,Nt=we.draggables,Ut=we.droppables,Zt=we.viewport,Un=we.afterCritical,nr=Ga({isMovingForward:Ne,pageBorderBoxCenter:Ve,source:At,droppables:Ut,viewport:Zt});if(!nr)return null;var qn=Dr(nr.descriptor.id,Nt),Hn=Hs({pageBorderBoxCenter:Ve,viewport:Zt,destination:nr,insideDestination:qn,afterCritical:Un}),Kn=Kl({previousPageBorderBoxCenter:Ve,destination:nr,draggable:ut,draggables:Nt,moveRelativeTo:Hn,insideDestination:qn,viewport:Zt,afterCritical:Un});if(!Kn)return null;var pr=_a({impact:Kn,draggable:ut,droppable:nr,draggables:Nt,afterCritical:Un}),ri=sa({pageBorderBoxCenter:pr,draggable:ut,viewport:Zt});return{clientSelection:ri,impact:Kn,scrollJumpRequest:null}},es=function(we){var Ne=we.at;return Ne?Ne.type==="REORDER"?Ne.destination.droppableId:Ne.combine.droppableId:null},Pl=function(Ne,Ve){var ut=es(Ne);return ut?Ve[ut]:null},ll=function(we){var Ne=we.state,Ve=we.type,ut=Pl(Ne.impact,Ne.dimensions.droppables),At=!!ut,Nt=Ne.dimensions.droppables[Ne.critical.droppable.id],Ut=ut||Nt,Zt=Ut.axis.direction,Un=Zt==="vertical"&&(Ve==="MOVE_UP"||Ve==="MOVE_DOWN")||Zt==="horizontal"&&(Ve==="MOVE_LEFT"||Ve==="MOVE_RIGHT");if(Un&&!At)return null;var nr=Ve==="MOVE_DOWN"||Ve==="MOVE_RIGHT",qn=Ne.dimensions.draggables[Ne.critical.draggable.id],Hn=Ne.current.page.borderBoxCenter,Kn=Ne.dimensions,pr=Kn.draggables,ri=Kn.droppables;return Un?Ss({isMovingForward:nr,previousPageBorderBoxCenter:Hn,draggable:qn,destination:Ut,draggables:pr,viewport:Ne.viewport,previousClientSelection:Ne.current.client.selection,previousImpact:Ne.impact,afterCritical:Ne.afterCritical}):nc({isMovingForward:nr,previousPageBorderBoxCenter:Hn,draggable:qn,isOver:Ut,draggables:pr,droppables:ri,viewport:Ne.viewport,afterCritical:Ne.afterCritical})};function ul(we){return we.phase==="DRAGGING"||we.phase==="COLLECTING"}function rc(we){var Ne=Gn(we.top,we.bottom),Ve=Gn(we.left,we.right);return function(At){return Ne(At.y)&&Ve(At.x)}}function yc(we,Ne){return we.left<Ne.right&&we.right>Ne.left&&we.top<Ne.bottom&&we.bottom>Ne.top}function ns(we){var Ne=we.pageBorderBox,Ve=we.draggable,ut=we.candidates,At=Ve.page.borderBox.center,Nt=ut.map(function(Ut){var Zt=Ut.axis,Un=bi(Ut.axis.line,Ne.center[Zt.line],Ut.page.borderBox.center[Zt.crossAxisLine]);return{id:Ut.descriptor.id,distance:qr(At,Un)}}).sort(function(Ut,Zt){return Zt.distance-Ut.distance});return Nt[0]?Nt[0].id:null}function ic(we){var Ne=we.pageBorderBox,Ve=we.draggable,ut=we.droppables,At=An(ut).filter(function(Nt){if(!Nt.isEnabled)return!1;var Ut=Nt.subject.active;if(!Ut||!yc(Ne,Ut))return!1;if(rc(Ut)(Ne.center))return!0;var Zt=Nt.axis,Un=Ut.center[Zt.crossAxisLine],nr=Ne[Zt.crossAxisStart],qn=Ne[Zt.crossAxisEnd],Hn=Gn(Ut[Zt.crossAxisStart],Ut[Zt.crossAxisEnd]),Kn=Hn(nr),pr=Hn(qn);return!Kn&&!pr?!0:Kn?nr<Un:qn>Un});return At.length?At.length===1?At[0].descriptor.id:ns({pageBorderBox:Ne,draggable:Ve,candidates:At}):null}var oc=function(Ne,Ve){return Jt(ji(Ne,Ve))},Mu=function(we,Ne){var Ve=we.frame;return Ve?oc(Ne,Ve.scroll.diff.value):Ne};function Ou(we){var Ne=we.displaced,Ve=we.id;return!!(Ne.visible[Ve]||Ne.invisible[Ve])}function Ms(we){var Ne=we.draggable,Ve=we.closest,ut=we.inHomeList;return Ve?ut&&Ve.descriptor.index>Ne.descriptor.index?Ve.descriptor.index-1:Ve.descriptor.index:null}var Qs=function(we){var Ne=we.pageBorderBoxWithDroppableScroll,Ve=we.draggable,ut=we.destination,At=we.insideDestination,Nt=we.last,Ut=we.viewport,Zt=we.afterCritical,Un=ut.axis,nr=da(ut.axis,Ve.displaceBy),qn=nr.value,Hn=Ne[Un.start],Kn=Ne[Un.end],pr=hi(Ve,At),ri=Wi(pr,function(Xi){var eo=Xi.descriptor.id,So=Xi.page.borderBox.center[Un.line],Co=Oi(eo,Zt),Ro=Ou({displaced:Nt,id:eo});return Co?Ro?Kn<=So:Hn<So-qn:Ro?Kn<=So+qn:Hn<So}),Gi=Ms({draggable:Ve,closest:ri,inHomeList:mr(Ve,ut)});return Yi({draggable:Ve,insideDestination:At,destination:ut,viewport:Ut,last:Nt,displacedBy:nr,index:Gi})},fs=4,ks=function(we){var Ne=we.draggable,Ve=we.pageBorderBoxWithDroppableScroll,ut=we.previousImpact,At=we.destination,Nt=we.insideDestination,Ut=we.afterCritical;if(!At.isCombineEnabled)return null;var Zt=At.axis,Un=da(At.axis,Ne.displaceBy),nr=Un.value,qn=Ve[Zt.start],Hn=Ve[Zt.end],Kn=hi(Ne,Nt),pr=Wi(Kn,function(Gi){var Xi=Gi.descriptor.id,eo=Gi.page.borderBox,So=eo[Zt.size],Co=So/fs,Ro=Oi(Xi,Ut),ra=Ou({displaced:ut.displaced,id:Xi});return Ro?ra?Hn>eo[Zt.start]+Co&&Hn<eo[Zt.end]-Co:qn>eo[Zt.start]-nr+Co&&qn<eo[Zt.end]-nr-Co:ra?Hn>eo[Zt.start]+nr+Co&&Hn<eo[Zt.end]+nr-Co:qn>eo[Zt.start]+Co&&qn<eo[Zt.end]-Co});if(!pr)return null;var ri={displacedBy:Un,displaced:ut.displaced,at:{type:"COMBINE",combine:{draggableId:pr.descriptor.id,droppableId:At.descriptor.id}}};return ri},yu=function(we){var Ne=we.pageOffset,Ve=we.draggable,ut=we.draggables,At=we.droppables,Nt=we.previousImpact,Ut=we.viewport,Zt=we.afterCritical,Un=oc(Ve.page.borderBox,Ne),nr=ic({pageBorderBox:Un,draggable:Ve,droppables:At});if(!nr)return Pn;var qn=At[nr],Hn=Dr(qn.descriptor.id,ut),Kn=Mu(qn,Un);return ks({pageBorderBoxWithDroppableScroll:Kn,draggable:Ve,previousImpact:Nt,destination:qn,insideDestination:Hn,afterCritical:Zt})||Qs({pageBorderBoxWithDroppableScroll:Kn,draggable:Ve,destination:qn,insideDestination:Hn,last:Nt.displaced,viewport:Ut,afterCritical:Zt})},zs=function(we,Ne){var Ve;return(0,ke.Z)({},we,(Ve={},Ve[Ne.descriptor.id]=Ne,Ve))},wa=function(Ne){var Ve=Ne.previousImpact,ut=Ne.impact,At=Ne.droppables,Nt=es(Ve),Ut=es(ut);if(!Nt||Nt===Ut)return At;var Zt=At[Nt];if(!Zt.subject.withPlaceholder)return At;var Un=$a(Zt);return zs(At,Un)},ma=function(we){var Ne=we.draggable,Ve=we.draggables,ut=we.droppables,At=we.previousImpact,Nt=we.impact,Ut=wa({previousImpact:At,impact:Nt,droppables:ut}),Zt=es(Nt);if(!Zt)return Ut;var Un=ut[Zt];if(mr(Ne,Un)||Un.subject.withPlaceholder)return Ut;var nr=Xs(Un,Ne,Ve);return zs(Ut,nr)},Vo=function(we){var Ne=we.state,Ve=we.clientSelection,ut=we.dimensions,At=we.viewport,Nt=we.impact,Ut=we.scrollJumpRequest,Zt=At||Ne.viewport,Un=ut||Ne.dimensions,nr=Ve||Ne.current.client.selection,qn=Vi(nr,Ne.initial.client.selection),Hn={offset:qn,selection:nr,borderBoxCenter:Ci(Ne.initial.client.borderBoxCenter,qn)},Kn={selection:Ci(Hn.selection,Zt.scroll.current),borderBoxCenter:Ci(Hn.borderBoxCenter,Zt.scroll.current),offset:Ci(Hn.offset,Zt.scroll.diff.value)},pr={client:Hn,page:Kn};if(Ne.phase==="COLLECTING")return(0,ke.Z)({phase:"COLLECTING"},Ne,{dimensions:Un,viewport:Zt,current:pr});var ri=Un.draggables[Ne.critical.draggable.id],Gi=Nt||yu({pageOffset:Kn.offset,draggable:ri,draggables:Un.draggables,droppables:Un.droppables,previousImpact:Ne.impact,viewport:Zt,afterCritical:Ne.afterCritical}),Xi=ma({draggable:ri,impact:Gi,previousImpact:Ne.impact,draggables:Un.draggables,droppables:Un.droppables}),eo=(0,ke.Z)({},Ne,{current:pr,dimensions:{draggables:Un.draggables,droppables:Xi},impact:Gi,viewport:Zt,scrollJumpRequest:Ut||null,forceShouldAnimate:Ut?!1:null});return eo};function cs(we,Ne){return we.map(function(Ve){return Ne[Ve]})}var Mi=function(we){var Ne=we.impact,Ve=we.viewport,ut=we.draggables,At=we.destination,Nt=we.forceShouldAnimate,Ut=Ne.displaced,Zt=cs(Ut.all,ut),Un=In({afterDragging:Zt,destination:At,displacedBy:Ne.displacedBy,viewport:Ve.frame,forceShouldAnimate:Nt,last:Ut});return(0,ke.Z)({},Ne,{displaced:Un})},ps=function(we){var Ne=we.impact,Ve=we.draggable,ut=we.droppable,At=we.draggables,Nt=we.viewport,Ut=we.afterCritical,Zt=_a({impact:Ne,draggable:Ve,draggables:At,droppable:ut,afterCritical:Ut});return sa({pageBorderBoxCenter:Zt,draggable:Ve,viewport:Nt})},tn=function(we){var Ne=we.state,Ve=we.dimensions,ut=we.viewport;Ne.movementMode!=="SNAP"&&Fn(!1);var At=Ne.impact,Nt=ut||Ne.viewport,Ut=Ve||Ne.dimensions,Zt=Ut.draggables,Un=Ut.droppables,nr=Zt[Ne.critical.draggable.id],qn=es(At);qn||Fn(!1);var Hn=Un[qn],Kn=Mi({impact:At,viewport:Nt,destination:Hn,draggables:Zt}),pr=ps({impact:Kn,draggable:nr,droppable:Hn,draggables:Zt,viewport:Nt,afterCritical:Ne.afterCritical});return Vo({impact:Kn,clientSelection:pr,state:Ne,dimensions:Ut,viewport:Nt})},Nr=function(we){return{index:we.index,droppableId:we.droppableId}},Tl=function(we){var Ne=we.draggable,Ve=we.home,ut=we.draggables,At=we.viewport,Nt=da(Ve.axis,Ne.displaceBy),Ut=Dr(Ve.descriptor.id,ut),Zt=Ut.indexOf(Ne);Zt===-1&&Fn(!1);var Un=Ut.slice(Zt+1),nr=Un.reduce(function(pr,ri){return pr[ri.descriptor.id]=!0,pr},{}),qn={inVirtualList:Ve.descriptor.mode==="virtual",displacedBy:Nt,effected:nr},Hn=In({afterDragging:Un,destination:Ve,displacedBy:Nt,last:null,viewport:At.frame,forceShouldAnimate:!1}),Kn={displaced:Hn,displacedBy:Nt,at:{type:"REORDER",destination:Nr(Ne.descriptor)}};return{impact:Kn,afterCritical:qn}},Su=function(we,Ne){return{draggables:we.draggables,droppables:zs(we.droppables,Ne)}},ja=function(Ne){},rs=function(Ne){},Al=function(we){var Ne=we.draggable,Ve=we.offset,ut=we.initialWindowScroll,At=jr(Ne.client,Ve),Nt=oi(At,ut),Ut=(0,ke.Z)({},Ne,{placeholder:(0,ke.Z)({},Ne.placeholder,{client:At}),client:At,page:Nt});return Ut},Fl=function(we){var Ne=we.frame;return Ne||Fn(!1),Ne},ac=function(we){var Ne=we.additions,Ve=we.updatedDroppables,ut=we.viewport,At=ut.scroll.diff.value;return Ne.map(function(Nt){var Ut=Nt.descriptor.droppableId,Zt=Ve[Ut],Un=Fl(Zt),nr=Un.scroll.diff.value,qn=Ci(At,nr),Hn=Al({draggable:Nt,offset:qn,initialWindowScroll:ut.scroll.initial});return Hn})},Wa=function(we){var Ne=we.state,Ve=we.published;ja();var ut=Ve.modified.map(function(Co){var Ro=Ne.dimensions.droppables[Co.droppableId],ra=Zi(Ro,Co.scroll);return ra}),At=(0,ke.Z)({},Ne.dimensions.droppables,{},_n(ut)),Nt=vr(ac({additions:Ve.additions,updatedDroppables:At,viewport:Ne.viewport})),Ut=(0,ke.Z)({},Ne.dimensions.draggables,{},Nt);Ve.removals.forEach(function(Co){delete Ut[Co]});var Zt={droppables:At,draggables:Ut},Un=es(Ne.impact),nr=Un?Zt.droppables[Un]:null,qn=Zt.draggables[Ne.critical.draggable.id],Hn=Zt.droppables[Ne.critical.droppable.id],Kn=Tl({draggable:qn,home:Hn,draggables:Ut,viewport:Ne.viewport}),pr=Kn.impact,ri=Kn.afterCritical,Gi=nr&&nr.isCombineEnabled?Ne.impact:pr,Xi=yu({pageOffset:Ne.current.page.offset,draggable:Zt.draggables[Ne.critical.draggable.id],draggables:Zt.draggables,droppables:Zt.droppables,previousImpact:Gi,viewport:Ne.viewport,afterCritical:ri});rs();var eo=(0,ke.Z)({phase:"DRAGGING"},Ne,{phase:"DRAGGING",impact:Xi,onLiftImpact:pr,dimensions:Zt,afterCritical:ri,forceShouldAnimate:!1});if(Ne.phase==="COLLECTING")return eo;var So=(0,ke.Z)({phase:"DROP_PENDING"},eo,{phase:"DROP_PENDING",reason:Ne.reason,isWaiting:!1});return So},Eo=function(Ne){return Ne.movementMode==="SNAP"},bs=function(Ne,Ve,ut){var At=Su(Ne.dimensions,Ve);return!Eo(Ne)||ut?Vo({state:Ne,dimensions:At}):tn({state:Ne,dimensions:At})};function Js(we){return we.isDragging&&we.movementMode==="SNAP"?(0,ke.Z)({phase:"DRAGGING"},we,{scrollJumpRequest:null}):we}var ua={phase:"IDLE",completed:null,shouldFlush:!1},Zo=function(we,Ne){if(we===void 0&&(we=ua),Ne.type==="FLUSH")return(0,ke.Z)({},ua,{shouldFlush:!0});if(Ne.type==="INITIAL_PUBLISH"){we.phase!=="IDLE"&&Fn(!1);var Ve=Ne.payload,ut=Ve.critical,At=Ve.clientSelection,Nt=Ve.viewport,Ut=Ve.dimensions,Zt=Ve.movementMode,Un=Ut.draggables[ut.draggable.id],nr=Ut.droppables[ut.droppable.id],qn={selection:At,borderBoxCenter:Un.client.borderBox.center,offset:on},Hn={client:qn,page:{selection:Ci(qn.selection,Nt.scroll.initial),borderBoxCenter:Ci(qn.selection,Nt.scroll.initial),offset:Ci(qn.selection,Nt.scroll.diff.value)}},Kn=An(Ut.droppables).every(function(Bf){return!Bf.isFixedOnPage}),pr=Tl({draggable:Un,home:nr,draggables:Ut.draggables,viewport:Nt}),ri=pr.impact,Gi=pr.afterCritical,Xi={phase:"DRAGGING",isDragging:!0,critical:ut,movementMode:Zt,dimensions:Ut,initial:Hn,current:Hn,isWindowScrollAllowed:Kn,impact:ri,afterCritical:Gi,onLiftImpact:ri,viewport:Nt,scrollJumpRequest:null,forceShouldAnimate:null};return Xi}if(Ne.type==="COLLECTION_STARTING"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Fn(!1);var eo=(0,ke.Z)({phase:"COLLECTING"},we,{phase:"COLLECTING"});return eo}if(Ne.type==="PUBLISH_WHILE_DRAGGING")return we.phase==="COLLECTING"||we.phase==="DROP_PENDING"||Fn(!1),Wa({state:we,published:Ne.payload});if(Ne.type==="MOVE"){if(we.phase==="DROP_PENDING")return we;ul(we)||Fn(!1);var So=Ne.payload.client;return mn(So,we.current.client.selection)?we:Vo({state:we,clientSelection:So,impact:Eo(we)?we.impact:null})}if(Ne.type==="UPDATE_DROPPABLE_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="COLLECTING")return Js(we);ul(we)||Fn(!1);var Co=Ne.payload,Ro=Co.id,ra=Co.newScroll,Go=we.dimensions.droppables[Ro];if(!Go)return we;var Ha=Zi(Go,ra);return bs(we,Ha,!1)}if(Ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(we.phase==="DROP_PENDING")return we;ul(we)||Fn(!1);var ml=Ne.payload,Ka=ml.id,Ws=ml.isEnabled,tu=we.dimensions.droppables[Ka];tu||Fn(!1),tu.isEnabled===Ws&&Fn(!1);var Au=(0,ke.Z)({},tu,{isEnabled:Ws});return bs(we,Au,!0)}if(Ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(we.phase==="DROP_PENDING")return we;ul(we)||Fn(!1);var dd=Ne.payload,_c=dd.id,ju=dd.isCombineEnabled,Uc=we.dimensions.droppables[_c];Uc||Fn(!1),Uc.isCombineEnabled===ju&&Fn(!1);var Zs=(0,ke.Z)({},Uc,{isCombineEnabled:ju});return bs(we,Zs,!0)}if(Ne.type==="MOVE_BY_WINDOW_SCROLL"){if(we.phase==="DROP_PENDING"||we.phase==="DROP_ANIMATING")return we;ul(we)||Fn(!1),we.isWindowScrollAllowed||Fn(!1);var Nu=Ne.payload.newScroll;if(mn(we.viewport.scroll.current,Nu))return Js(we);var Hc=fi(we.viewport,Nu);return Eo(we)?tn({state:we,viewport:Hc}):Vo({state:we,viewport:Hc})}if(Ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ul(we))return we;var nu=Ne.payload.maxScroll;if(mn(nu,we.viewport.scroll.max))return we;var wc=(0,ke.Z)({},we.viewport,{scroll:(0,ke.Z)({},we.viewport.scroll,{max:nu})});return(0,ke.Z)({phase:"DRAGGING"},we,{viewport:wc})}if(Ne.type==="MOVE_UP"||Ne.type==="MOVE_DOWN"||Ne.type==="MOVE_LEFT"||Ne.type==="MOVE_RIGHT"){if(we.phase==="COLLECTING"||we.phase==="DROP_PENDING")return we;we.phase!=="DRAGGING"&&Fn(!1);var Eh=ll({state:we,type:Ne.type});return Eh?Vo({state:we,impact:Eh.impact,clientSelection:Eh.clientSelection,scrollJumpRequest:Eh.scrollJumpRequest}):we}if(Ne.type==="DROP_PENDING"){var Cc=Ne.payload.reason;we.phase!=="COLLECTING"&&Fn(!1);var _o=(0,ke.Z)({phase:"DROP_PENDING"},we,{phase:"DROP_PENDING",isWaiting:!0,reason:Cc});return _o}if(Ne.type==="DROP_ANIMATE"){var wp=Ne.payload,hd=wp.completed,nf=wp.dropDuration,$d=wp.newHomeClientOffset;we.phase==="DRAGGING"||we.phase==="DROP_PENDING"||Fn(!1);var fd={phase:"DROP_ANIMATING",completed:hd,dropDuration:nf,newHomeClientOffset:$d,dimensions:we.dimensions};return fd}if(Ne.type==="DROP_COMPLETE"){var Pc=Ne.payload.completed;return{phase:"IDLE",completed:Pc,shouldFlush:!1}}return we},Ya=function(Ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:Ne}},cl=function(Ne){return{type:"LIFT",payload:Ne}},Ia=function(Ne){return{type:"INITIAL_PUBLISH",payload:Ne}},Sl=function(Ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:Ne}},Es=function(){return{type:"COLLECTION_STARTING",payload:null}},Fu=function(Ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:Ne}},va=function(Ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:Ne}},Os=function(Ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:Ne}},oa=function(Ne){return{type:"MOVE",payload:Ne}},Ta=function(Ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:Ne}},La=function(Ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:Ne}},Za=function(){return{type:"MOVE_UP",payload:null}},na=function(){return{type:"MOVE_DOWN",payload:null}},sc=function(){return{type:"MOVE_RIGHT",payload:null}},bo=function(){return{type:"MOVE_LEFT",payload:null}},Dc=function(){return{type:"FLUSH",payload:null}},aa=function(Ne){return{type:"DROP_ANIMATE",payload:Ne}},Sc=function(Ne){return{type:"DROP_COMPLETE",payload:Ne}},Bu=function(Ne){return{type:"DROP",payload:Ne}},bu=function(Ne){return{type:"DROP_PENDING",payload:Ne}},Rc=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Xc(we){if(!(we.length<=1)){for(var Ne=we.map(function(Zt){return Zt.descriptor.index}),Ve={},ut=1;ut<Ne.length;ut++){var At=Ne[ut],Nt=Ne[ut-1];At!==Nt+1&&(Ve[At]=!0)}if(Object.keys(Ve).length)var Ut=Ne.map(function(Zt){var Un=!!Ve[Zt];return Un?"[\u{1F525}"+Zt+"]":""+Zt}).join(", ")}}function Yl(we,Ne){if(0)var Ve}var Xl=function(we){return function(Ne){var Ve=Ne.getState,ut=Ne.dispatch;return function(At){return function(Nt){if(Nt.type!=="LIFT"){At(Nt);return}var Ut=Nt.payload,Zt=Ut.id,Un=Ut.clientSelection,nr=Ut.movementMode,qn=Ve();qn.phase==="DROP_ANIMATING"&&ut(Sc({completed:qn.completed})),Ve().phase!=="IDLE"&&Fn(!1),ut(Dc()),ut(Ya({draggableId:Zt,movementMode:nr}));var Hn={shouldPublishImmediately:nr==="SNAP"},Kn={draggableId:Zt,scrollOptions:Hn},pr=we.startPublishing(Kn),ri=pr.critical,Gi=pr.dimensions,Xi=pr.viewport;Yl(ri,Gi),ut(Ia({critical:ri,dimensions:Gi,clientSelection:Un,movementMode:nr,viewport:Xi}))}}}},la=function(we){return function(){return function(Ne){return function(Ve){Ve.type==="INITIAL_PUBLISH"&&we.dragging(),Ve.type==="DROP_ANIMATE"&&we.dropping(Ve.payload.completed.result.reason),(Ve.type==="FLUSH"||Ve.type==="DROP_COMPLETE")&&we.resting(),Ne(Ve)}}}},Gs={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},du={opacity:{drop:0,combining:.7},scale:{drop:.75}},Nl={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},dl=Nl.outOfTheWay+"s "+Gs.outOfTheWay,bl={fluid:"opacity "+dl,snap:"transform "+dl+", opacity "+dl,drop:function(Ne){var Ve=Ne+"s "+Gs.drop;return"transform "+Ve+", opacity "+Ve},outOfTheWay:"transform "+dl,placeholder:"height "+dl+", width "+dl+", margin "+dl},$o=function(Ne){return mn(Ne,on)?null:"translate("+Ne.x+"px, "+Ne.y+"px)"},ca={moveTo:$o,drop:function(Ne,Ve){var ut=$o(Ne);return ut?Ve?ut+" scale("+du.scale.drop+")":ut:null}},Va=Nl.minDropTime,Is=Nl.maxDropTime,xs=Is-Va,Ll=1500,Bl=.6,_l=function(we){var Ne=we.current,Ve=we.destination,ut=we.reason,At=qr(Ne,Ve);if(At<=0)return Va;if(At>=Ll)return Is;var Nt=At/Ll,Ut=Va+xs*Nt,Zt=ut==="CANCEL"?Ut*Bl:Ut;return Number(Zt.toFixed(2))},kl=function(we){var Ne=we.impact,Ve=we.draggable,ut=we.dimensions,At=we.viewport,Nt=we.afterCritical,Ut=ut.draggables,Zt=ut.droppables,Un=es(Ne),nr=Un?Zt[Un]:null,qn=Zt[Ve.descriptor.droppableId],Hn=ps({impact:Ne,draggable:Ve,draggables:Ut,afterCritical:Nt,droppable:nr||qn,viewport:At}),Kn=Vi(Hn,Ve.client.borderBox.center);return Kn},hu=function(we){var Ne=we.draggables,Ve=we.reason,ut=we.lastImpact,At=we.home,Nt=we.viewport,Ut=we.onLiftImpact;if(!ut.at||Ve!=="DROP"){var Zt=Mi({draggables:Ne,impact:Ut,destination:At,viewport:Nt,forceShouldAnimate:!0});return{impact:Zt,didDropInsideDroppable:!1}}if(ut.at.type==="REORDER")return{impact:ut,didDropInsideDroppable:!0};var Un=(0,ke.Z)({},ut,{displaced:wn});return{impact:Un,didDropInsideDroppable:!0}},bd=function(we){var Ne=we.getState,Ve=we.dispatch;return function(ut){return function(At){if(At.type!=="DROP"){ut(At);return}var Nt=Ne(),Ut=At.payload.reason;if(Nt.phase==="COLLECTING"){Ve(bu({reason:Ut}));return}if(Nt.phase!=="IDLE"){var Zt=Nt.phase==="DROP_PENDING"&&Nt.isWaiting;Zt&&Fn(!1),Nt.phase==="DRAGGING"||Nt.phase==="DROP_PENDING"||Fn(!1);var Un=Nt.critical,nr=Nt.dimensions,qn=nr.draggables[Nt.critical.draggable.id],Hn=hu({reason:Ut,lastImpact:Nt.impact,afterCritical:Nt.afterCritical,onLiftImpact:Nt.onLiftImpact,home:Nt.dimensions.droppables[Nt.critical.droppable.id],viewport:Nt.viewport,draggables:Nt.dimensions.draggables}),Kn=Hn.impact,pr=Hn.didDropInsideDroppable,ri=pr?Wr(Kn):null,Gi=pr?pi(Kn):null,Xi={index:Un.draggable.index,droppableId:Un.droppable.id},eo={draggableId:qn.descriptor.id,type:qn.descriptor.type,source:Xi,reason:Ut,mode:Nt.movementMode,destination:ri,combine:Gi},So=kl({impact:Kn,draggable:qn,dimensions:nr,viewport:Nt.viewport,afterCritical:Nt.afterCritical}),Co={critical:Nt.critical,afterCritical:Nt.afterCritical,result:eo,impact:Kn},Ro=!mn(Nt.current.client.offset,So)||!!eo.combine;if(!Ro){Ve(Sc({completed:Co}));return}var ra=_l({current:Nt.current.client.offset,destination:So,reason:Ut}),Go={newHomeClientOffset:So,dropDuration:ra,completed:Co};Ve(aa(Go))}}}},Hd=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ch(we){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Ve){Ve.target!==window&&Ve.target!==window.document||we()}}}function dh(we){var Ne=we.onWindowScroll;function Ve(){Ne(Hd())}var ut=On(Ve),At=ch(ut),Nt=Fr;function Ut(){return Nt!==Fr}function Zt(){Ut()&&Fn(!1),Nt=cn(window,[At])}function Un(){Ut()||Fn(!1),ut.cancel(),Nt(),Nt=Fr}return{start:Zt,stop:Un,isActive:Ut}}var gs=function(Ne){return Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATE"||Ne.type==="FLUSH"},lc=function(we){var Ne=dh({onWindowScroll:function(ut){we.dispatch(Ta({newScroll:ut}))}});return function(Ve){return function(ut){!Ne.isActive()&&ut.type==="INITIAL_PUBLISH"&&Ne.start(),Ne.isActive()&&gs(ut)&&Ne.stop(),Ve(ut)}}},Na=function(we){var Ne=!1,Ve=!1,ut=setTimeout(function(){Ve=!0}),At=function(Ut){Ne||Ve||(Ne=!0,we(Ut),clearTimeout(ut))};return At.wasCalled=function(){return Ne},At},js=function(){var we=[],Ne=function(Nt){var Ut=co(we,function(nr){return nr.timerId===Nt});Ut===-1&&Fn(!1);var Zt=we.splice(Ut,1),Un=Zt[0];Un.callback()},Ve=function(Nt){var Ut=setTimeout(function(){return Ne(Ut)}),Zt={timerId:Ut,callback:Nt};we.push(Zt)},ut=function(){if(we.length){var Nt=[].concat(we);we.length=0,Nt.forEach(function(Ut){clearTimeout(Ut.timerId),Ut.callback()})}};return{add:Ve,flush:ut}},$s=function(Ne,Ve){return Ne==null&&Ve==null?!0:Ne==null||Ve==null?!1:Ne.droppableId===Ve.droppableId&&Ne.index===Ve.index},qs=function(Ne,Ve){return Ne==null&&Ve==null?!0:Ne==null||Ve==null?!1:Ne.draggableId===Ve.draggableId&&Ne.droppableId===Ve.droppableId},bc=function(Ne,Ve){if(Ne===Ve)return!0;var ut=Ne.draggable.id===Ve.draggable.id&&Ne.draggable.droppableId===Ve.draggable.droppableId&&Ne.draggable.type===Ve.draggable.type&&Ne.draggable.index===Ve.draggable.index,At=Ne.droppable.id===Ve.droppable.id&&Ne.droppable.type===Ve.droppable.type;return ut&&At},Fs=function(Ne,Ve){ja(),Ve(),rs()},Eu=function(Ne,Ve){return{draggableId:Ne.draggable.id,type:Ne.droppable.type,source:{droppableId:Ne.droppable.id,index:Ne.draggable.index},mode:Ve}},Qc=function(Ne,Ve,ut,At){if(!Ne){ut(At(Ve));return}var Nt=Na(ut),Ut={announce:Nt};Ne(Ve,Ut),Nt.wasCalled()||ut(At(Ve))},Ed=function(we,Ne){var Ve=js(),ut=null,At=function(Kn,pr){ut&&Fn(!1),Fs("onBeforeCapture",function(){var ri=we().onBeforeCapture;if(ri){var Gi={draggableId:Kn,mode:pr};ri(Gi)}})},Nt=function(Kn,pr){ut&&Fn(!1),Fs("onBeforeDragStart",function(){var ri=we().onBeforeDragStart;ri&&ri(Eu(Kn,pr))})},Ut=function(Kn,pr){ut&&Fn(!1);var ri=Eu(Kn,pr);ut={mode:pr,lastCritical:Kn,lastLocation:ri.source,lastCombine:null},Ve.add(function(){Fs("onDragStart",function(){return Qc(we().onDragStart,ri,Ne,Gr.onDragStart)})})},Zt=function(Kn,pr){var ri=Wr(pr),Gi=pi(pr);ut||Fn(!1);var Xi=!bc(Kn,ut.lastCritical);Xi&&(ut.lastCritical=Kn);var eo=!$s(ut.lastLocation,ri);eo&&(ut.lastLocation=ri);var So=!qs(ut.lastCombine,Gi);if(So&&(ut.lastCombine=Gi),!(!Xi&&!eo&&!So)){var Co=(0,ke.Z)({},Eu(Kn,ut.mode),{combine:Gi,destination:ri});Ve.add(function(){Fs("onDragUpdate",function(){return Qc(we().onDragUpdate,Co,Ne,Gr.onDragUpdate)})})}},Un=function(){ut||Fn(!1),Ve.flush()},nr=function(Kn){ut||Fn(!1),ut=null,Fs("onDragEnd",function(){return Qc(we().onDragEnd,Kn,Ne,Gr.onDragEnd)})},qn=function(){if(ut){var Kn=(0,ke.Z)({},Eu(ut.lastCritical,ut.mode),{combine:null,destination:null,reason:"CANCEL"});nr(Kn)}};return{beforeCapture:At,beforeStart:Nt,start:Ut,update:Zt,flush:Un,drop:nr,abort:qn}},Il=function(we,Ne){var Ve=Ed(we,Ne);return function(ut){return function(At){return function(Nt){if(Nt.type==="BEFORE_INITIAL_CAPTURE"){Ve.beforeCapture(Nt.payload.draggableId,Nt.payload.movementMode);return}if(Nt.type==="INITIAL_PUBLISH"){var Ut=Nt.payload.critical;Ve.beforeStart(Ut,Nt.payload.movementMode),At(Nt),Ve.start(Ut,Nt.payload.movementMode);return}if(Nt.type==="DROP_COMPLETE"){var Zt=Nt.payload.completed.result;Ve.flush(),At(Nt),Ve.drop(Zt);return}if(At(Nt),Nt.type==="FLUSH"){Ve.abort();return}var Un=ut.getState();Un.phase==="DRAGGING"&&Ve.update(Un.critical,Un.impact)}}}},Ce=function(we){return function(Ne){return function(Ve){if(Ve.type!=="DROP_ANIMATION_FINISHED"){Ne(Ve);return}var ut=we.getState();ut.phase!=="DROP_ANIMATING"&&Fn(!1),we.dispatch(Sc({completed:ut.completed}))}}},Qe=function(we){var Ne=null,Ve=null;function ut(){Ve&&(cancelAnimationFrame(Ve),Ve=null),Ne&&(Ne(),Ne=null)}return function(At){return function(Nt){if((Nt.type==="FLUSH"||Nt.type==="DROP_COMPLETE"||Nt.type==="DROP_ANIMATION_FINISHED")&&ut(),At(Nt),Nt.type==="DROP_ANIMATE"){var Ut={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Un=we.getState();Un.phase==="DROP_ANIMATING"&&we.dispatch(Rc())}};Ve=requestAnimationFrame(function(){Ve=null,Ne=cn(window,[Ut])})}}}},tt=function(we){return function(){return function(Ne){return function(Ve){(Ve.type==="DROP_COMPLETE"||Ve.type==="FLUSH"||Ve.type==="DROP_ANIMATE")&&we.stopPublishing(),Ne(Ve)}}}},ft=function(we){var Ne=!1;return function(){return function(Ve){return function(ut){if(ut.type==="INITIAL_PUBLISH"){Ne=!0,we.tryRecordFocus(ut.payload.critical.draggable.id),Ve(ut),we.tryRestoreFocusRecorded();return}if(Ve(ut),!!Ne){if(ut.type==="FLUSH"){Ne=!1,we.tryRestoreFocusRecorded();return}if(ut.type==="DROP_COMPLETE"){Ne=!1;var At=ut.payload.completed.result;At.combine&&we.tryShiftRecord(At.draggableId,At.combine.draggableId),we.tryRestoreFocusRecorded()}}}}}},Ft=function(Ne){return Ne.type==="DROP_COMPLETE"||Ne.type==="DROP_ANIMATE"||Ne.type==="FLUSH"},Ht=function(we){return function(Ne){return function(Ve){return function(ut){if(Ft(ut)){we.stop(),Ve(ut);return}if(ut.type==="INITIAL_PUBLISH"){Ve(ut);var At=Ne.getState();At.phase!=="DRAGGING"&&Fn(!1),we.start(At);return}Ve(ut),we.scroll(Ne.getState())}}}},ln=function(we){return function(Ne){return function(Ve){if(Ne(Ve),Ve.type==="PUBLISH_WHILE_DRAGGING"){var ut=we.getState();ut.phase==="DROP_PENDING"&&(ut.isWaiting||we.dispatch(Bu({reason:ut.reason})))}}}},Ln=De.qC,Sr=function(we){var Ne=we.dimensionMarshal,Ve=we.focusMarshal,ut=we.styleMarshal,At=we.getResponders,Nt=we.announce,Ut=we.autoScroller;return(0,De.MT)(Zo,Ln((0,De.md)(la(ut),tt(Ne),Xl(Ne),bd,Ce,Qe,ln,Ht(Ut),lc,ft(Ve),Il(At,Nt))))},xr=function(){return{additions:{},removals:{},modified:{}}};function er(we){var Ne=we.registry,Ve=we.callbacks,ut=xr(),At=null,Nt=function(){At||(Ve.collectionStarting(),At=requestAnimationFrame(function(){At=null,ja();var qn=ut,Hn=qn.additions,Kn=qn.removals,pr=qn.modified,ri=Object.keys(Hn).map(function(eo){return Ne.draggable.getById(eo).getDimension(on)}).sort(function(eo,So){return eo.descriptor.index-So.descriptor.index}),Gi=Object.keys(pr).map(function(eo){var So=Ne.droppable.getById(eo),Co=So.callbacks.getScrollWhileDragging();return{droppableId:eo,scroll:Co}}),Xi={additions:ri,removals:Object.keys(Kn),modified:Gi};ut=xr(),rs(),Ve.publish(Xi)}))},Ut=function(qn){var Hn=qn.descriptor.id;ut.additions[Hn]=qn,ut.modified[qn.descriptor.droppableId]=!0,ut.removals[Hn]&&delete ut.removals[Hn],Nt()},Zt=function(qn){var Hn=qn.descriptor;ut.removals[Hn.id]=!0,ut.modified[Hn.droppableId]=!0,ut.additions[Hn.id]&&delete ut.additions[Hn.id],Nt()},Un=function(){At&&(cancelAnimationFrame(At),At=null,ut=xr())};return{add:Ut,remove:Zt,stop:Un}}var Zr=function(we){var Ne=we.scrollHeight,Ve=we.scrollWidth,ut=we.height,At=we.width,Nt=Vi({x:Ve,y:Ne},{x:At,y:ut}),Ut={x:Math.max(0,Nt.x),y:Math.max(0,Nt.y)};return Ut},Hr=function(){var we=document.documentElement;return we||Fn(!1),we},sr=function(){var we=Hr(),Ne=Zr({scrollHeight:we.scrollHeight,scrollWidth:we.scrollWidth,width:we.clientWidth,height:we.clientHeight});return Ne},Po=function(){var we=Hd(),Ne=sr(),Ve=we.y,ut=we.x,At=Hr(),Nt=At.clientWidth,Ut=At.clientHeight,Zt=ut+Nt,Un=Ve+Ut,nr=Jt({top:Ve,left:ut,right:Zt,bottom:Un}),qn={frame:nr,scroll:{initial:we,current:we,max:Ne,diff:{value:on,displacement:on}}};return qn},jo=function(we){var Ne=we.critical,Ve=we.scrollOptions,ut=we.registry;ja();var At=Po(),Nt=At.scroll.current,Ut=Ne.droppable,Zt=ut.droppable.getAllByType(Ut.type).map(function(Hn){return Hn.callbacks.getDimensionAndWatchScroll(Nt,Ve)}),Un=ut.draggable.getAllByType(Ne.draggable.type).map(function(Hn){return Hn.getDimension(Nt)}),nr={draggables:vr(Un),droppables:_n(Zt)};rs();var qn={dimensions:nr,critical:Ne,viewport:At};return qn};function ea(we,Ne,Ve){if(Ve.descriptor.id===Ne.id||Ve.descriptor.type!==Ne.type)return!1;var ut=we.droppable.getById(Ve.descriptor.droppableId);return ut.descriptor.mode==="virtual"}var so=function(we,Ne){var Ve=null,ut=er({callbacks:{publish:Ne.publishWhileDragging,collectionStarting:Ne.collectionStarting},registry:we}),At=function(pr,ri){we.droppable.exists(pr)||Fn(!1),Ve&&Ne.updateDroppableIsEnabled({id:pr,isEnabled:ri})},Nt=function(pr,ri){Ve&&(we.droppable.exists(pr)||Fn(!1),Ne.updateDroppableIsCombineEnabled({id:pr,isCombineEnabled:ri}))},Ut=function(pr,ri){Ve&&(we.droppable.exists(pr)||Fn(!1),Ne.updateDroppableScroll({id:pr,newScroll:ri}))},Zt=function(pr,ri){Ve&&we.droppable.getById(pr).callbacks.scroll(ri)},Un=function(){if(Ve){ut.stop();var pr=Ve.critical.droppable;we.droppable.getAllByType(pr.type).forEach(function(ri){return ri.callbacks.dragStopped()}),Ve.unsubscribe(),Ve=null}},nr=function(pr){Ve||Fn(!1);var ri=Ve.critical.draggable;pr.type==="ADDITION"&&ea(we,ri,pr.value)&&ut.add(pr.value),pr.type==="REMOVAL"&&ea(we,ri,pr.value)&&ut.remove(pr.value)},qn=function(pr){Ve&&Fn(!1);var ri=we.draggable.getById(pr.draggableId),Gi=we.droppable.getById(ri.descriptor.droppableId),Xi={draggable:ri.descriptor,droppable:Gi.descriptor},eo=we.subscribe(nr);return Ve={critical:Xi,unsubscribe:eo},jo({critical:Xi,registry:we,scrollOptions:pr.scrollOptions})},Hn={updateDroppableIsEnabled:At,updateDroppableIsCombineEnabled:Nt,scrollDroppable:Zt,updateDroppableScroll:Ut,startPublishing:qn,stopPublishing:Un};return Hn},To=function(we,Ne){return we.phase==="IDLE"?!0:we.phase!=="DROP_ANIMATING"||we.completed.result.draggableId===Ne?!1:we.completed.result.reason==="DROP"},Bo=function(we){window.scrollBy(we.x,we.y)},Xa=wr(function(we){return An(we).filter(function(Ne){return!(!Ne.isEnabled||!Ne.frame)})}),Qa=function(Ne,Ve){var ut=Wi(Xa(Ve),function(At){return At.frame||Fn(!1),rc(At.frame.pageMarginBox)(Ne)});return ut},Ki=function(we){var Ne=we.center,Ve=we.destination,ut=we.droppables;if(Ve){var At=ut[Ve];return At.frame?At:null}var Nt=Qa(Ne,ut);return Nt},ka={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(Ne){return Math.pow(Ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ws=function(we,Ne){var Ve=we[Ne.size]*ka.startFromPercentage,ut=we[Ne.size]*ka.maxScrollAtPercentage,At={startScrollingFrom:Ve,maxScrollValueAt:ut};return At},Ua=function(we){var Ne=we.startOfRange,Ve=we.endOfRange,ut=we.current,At=Ve-Ne;if(At===0)return 0;var Nt=ut-Ne,Ut=Nt/At;return Ut},xo=1,Dl=function(we,Ne){if(we>Ne.startScrollingFrom)return 0;if(we<=Ne.maxScrollValueAt)return ka.maxPixelScroll;if(we===Ne.startScrollingFrom)return xo;var Ve=Ua({startOfRange:Ne.maxScrollValueAt,endOfRange:Ne.startScrollingFrom,current:we}),ut=1-Ve,At=ka.maxPixelScroll*ka.ease(ut);return Math.ceil(At)},is=ka.durationDampening.accelerateAt,Ko=ka.durationDampening.stopDampeningAt,Yo=function(we,Ne){var Ve=Ne,ut=Ko,At=Date.now(),Nt=At-Ve;if(Nt>=Ko)return we;if(Nt<is)return xo;var Ut=Ua({startOfRange:is,endOfRange:ut,current:Nt}),Zt=we*ka.ease(Ut);return Math.ceil(Zt)},Ea=function(we){var Ne=we.distanceToEdge,Ve=we.thresholds,ut=we.dragStartTime,At=we.shouldUseTimeDampening,Nt=Dl(Ne,Ve);return Nt===0?0:At?Math.max(Yo(Nt,ut),xo):Nt},ds=function(we){var Ne=we.container,Ve=we.distanceToEdges,ut=we.dragStartTime,At=we.axis,Nt=we.shouldUseTimeDampening,Ut=ws(Ne,At),Zt=Ve[At.end]<Ve[At.start];return Zt?Ea({distanceToEdge:Ve[At.end],thresholds:Ut,dragStartTime:ut,shouldUseTimeDampening:Nt}):-1*Ea({distanceToEdge:Ve[At.start],thresholds:Ut,dragStartTime:ut,shouldUseTimeDampening:Nt})},al=function(we){var Ne=we.container,Ve=we.subject,ut=we.proposedScroll,At=Ve.height>Ne.height,Nt=Ve.width>Ne.width;return!Nt&&!At?ut:Nt&&At?null:{x:Nt?0:ut.x,y:At?0:ut.y}},El=Ii(function(we){return we===0?0:we}),Ul=function(we){var Ne=we.dragStartTime,Ve=we.container,ut=we.subject,At=we.center,Nt=we.shouldUseTimeDampening,Ut={top:At.y-Ve.top,right:Ve.right-At.x,bottom:Ve.bottom-At.y,left:At.x-Ve.left},Zt=ds({container:Ve,distanceToEdges:Ut,dragStartTime:Ne,axis:Yn,shouldUseTimeDampening:Nt}),Un=ds({container:Ve,distanceToEdges:Ut,dragStartTime:Ne,axis:an,shouldUseTimeDampening:Nt}),nr=El({x:Un,y:Zt});if(mn(nr,on))return null;var qn=al({container:Ve,subject:ut,proposedScroll:nr});return qn?mn(qn,on)?null:qn:null},Ar=Ii(function(we){return we===0?0:we>0?1:-1}),hl=function(){var we=function(Ve,ut){return Ve<0?Ve:Ve>ut?Ve-ut:0};return function(Ne){var Ve=Ne.current,ut=Ne.max,At=Ne.change,Nt=Ci(Ve,At),Ut={x:we(Nt.x,ut.x),y:we(Nt.y,ut.y)};return mn(Ut,on)?null:Ut}}(),Ql=function(Ne){var Ve=Ne.max,ut=Ne.current,At=Ne.change,Nt={x:Math.max(ut.x,Ve.x),y:Math.max(ut.y,Ve.y)},Ut=Ar(At),Zt=hl({max:Nt,current:ut,change:Ut});return!Zt||Ut.x!==0&&Zt.x===0||Ut.y!==0&&Zt.y===0},Or=function(Ne,Ve){return Ql({current:Ne.scroll.current,max:Ne.scroll.max,change:Ve})},xl=function(Ne,Ve){if(!Or(Ne,Ve))return null;var ut=Ne.scroll.max,At=Ne.scroll.current;return hl({current:At,max:ut,change:Ve})},Jl=function(Ne,Ve){var ut=Ne.frame;return ut?Ql({current:ut.scroll.current,max:ut.scroll.max,change:Ve}):!1},_u=function(Ne,Ve){var ut=Ne.frame;return!ut||!Jl(Ne,Ve)?null:hl({current:ut.scroll.current,max:ut.scroll.max,change:Ve})},el=function(we){var Ne=we.viewport,Ve=we.subject,ut=we.center,At=we.dragStartTime,Nt=we.shouldUseTimeDampening,Ut=Ul({dragStartTime:At,container:Ne.frame,subject:Ve,center:ut,shouldUseTimeDampening:Nt});return Ut&&Or(Ne,Ut)?Ut:null},ms=function(we){var Ne=we.droppable,Ve=we.subject,ut=we.center,At=we.dragStartTime,Nt=we.shouldUseTimeDampening,Ut=Ne.frame;if(!Ut)return null;var Zt=Ul({dragStartTime:At,container:Ut.pageMarginBox,subject:Ve,center:ut,shouldUseTimeDampening:Nt});return Zt&&Jl(Ne,Zt)?Zt:null},ql=function(we){var Ne=we.state,Ve=we.dragStartTime,ut=we.shouldUseTimeDampening,At=we.scrollWindow,Nt=we.scrollDroppable,Ut=Ne.current.page.borderBoxCenter,Zt=Ne.dimensions.draggables[Ne.critical.draggable.id],Un=Zt.page.marginBox;if(Ne.isWindowScrollAllowed){var nr=Ne.viewport,qn=el({dragStartTime:Ve,viewport:nr,subject:Un,center:Ut,shouldUseTimeDampening:ut});if(qn){At(qn);return}}var Hn=Ki({center:Ut,destination:es(Ne.impact),droppables:Ne.dimensions.droppables});if(Hn){var Kn=ms({dragStartTime:Ve,droppable:Hn,subject:Un,center:Ut,shouldUseTimeDampening:ut});Kn&&Nt(Hn.descriptor.id,Kn)}},fl=function(we){var Ne=we.scrollWindow,Ve=we.scrollDroppable,ut=On(Ne),At=On(Ve),Nt=null,Ut=function(qn){Nt||Fn(!1);var Hn=Nt,Kn=Hn.shouldUseTimeDampening,pr=Hn.dragStartTime;ql({state:qn,scrollWindow:ut,scrollDroppable:At,dragStartTime:pr,shouldUseTimeDampening:Kn})},Zt=function(qn){ja(),Nt&&Fn(!1);var Hn=Date.now(),Kn=!1,pr=function(){Kn=!0};ql({state:qn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:pr,scrollDroppable:pr}),Nt={dragStartTime:Hn,shouldUseTimeDampening:Kn},rs(),Kn&&Ut(qn)},Un=function(){Nt&&(ut.cancel(),At.cancel(),Nt=null)};return{start:Zt,stop:Un,scroll:Ut}},Qu=function(we){var Ne=we.move,Ve=we.scrollDroppable,ut=we.scrollWindow,At=function(nr,qn){var Hn=Ci(nr.current.client.selection,qn);Ne({client:Hn})},Nt=function(nr,qn){if(!Jl(nr,qn))return qn;var Hn=_u(nr,qn);if(!Hn)return Ve(nr.descriptor.id,qn),null;var Kn=Vi(qn,Hn);Ve(nr.descriptor.id,Kn);var pr=Vi(qn,Kn);return pr},Ut=function(nr,qn,Hn){if(!nr||!Or(qn,Hn))return Hn;var Kn=xl(qn,Hn);if(!Kn)return ut(Hn),null;var pr=Vi(Hn,Kn);ut(pr);var ri=Vi(Hn,pr);return ri},Zt=function(nr){var qn=nr.scrollJumpRequest;if(qn){var Hn=es(nr.impact);Hn||Fn(!1);var Kn=Nt(nr.dimensions.droppables[Hn],qn);if(Kn){var pr=nr.viewport,ri=Ut(nr.isWindowScrollAllowed,pr,Kn);ri&&At(nr,ri)}}};return Zt},uc=function(we){var Ne=we.scrollDroppable,Ve=we.scrollWindow,ut=we.move,At=fl({scrollWindow:Ve,scrollDroppable:Ne}),Nt=Qu({move:ut,scrollWindow:Ve,scrollDroppable:Ne}),Ut=function(nr){if(nr.phase==="DRAGGING"){if(nr.movementMode==="FLUID"){At.scroll(nr);return}nr.scrollJumpRequest&&Nt(nr)}},Zt={scroll:Ut,start:At.start,stop:At.stop};return Zt},cc="data-rbd",wl=function(){var we=cc+"-drag-handle";return{base:we,draggableId:we+"-draggable-id",contextId:we+"-context-id"}}(),Ju=function(){var we=cc+"-draggable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),zd=function(){var we=cc+"-droppable";return{base:we,contextId:we+"-context-id",id:we+"-id"}}(),ce={contextId:cc+"-scroll-container-context-id"},ge=function(Ne){return function(Ve){return"["+Ve+'="'+Ne+'"]'}},et=function(Ne,Ve){return Ne.map(function(ut){var At=ut.styles[Ve];return At?ut.selector+" { "+At+" }":""}).join(" ")},nn="pointer-events: none;",br=function(we){var Ne=ge(we),Ve=function(){var Zt=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:Ne(wl.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Zt,dragging:nn,dropAnimating:Zt}}}(),ut=function(){var Zt=`
|
|
|
transition: `+bl.outOfTheWay+`;
|
|
|
`;return{selector:Ne(Ju.contextId),styles:{dragging:Zt,dropAnimating:Zt,userCancel:Zt}}}(),At={selector:Ne(zd.contextId),styles:{always:"overflow-anchor: none;"}},Nt={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},Ut=[ut,Ve,At,Nt];return{always:et(Ut,"always"),resting:et(Ut,"resting"),dragging:et(Ut,"dragging"),dropAnimating:et(Ut,"dropAnimating"),userCancel:et(Ut,"userCancel")}},ti=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?oe.useLayoutEffect:oe.useEffect,Li=function(){var Ne=document.querySelector("head");return Ne||Fn(!1),Ne},Lo=function(Ne){var Ve=document.createElement("style");return Ne&&Ve.setAttribute("nonce",Ne),Ve.type="text/css",Ve};function Xo(we,Ne){var Ve=zn(function(){return br(we)},[we]),ut=(0,oe.useRef)(null),At=(0,oe.useRef)(null),Nt=un(wr(function(Hn){var Kn=At.current;Kn||Fn(!1),Kn.textContent=Hn}),[]),Ut=un(function(Hn){var Kn=ut.current;Kn||Fn(!1),Kn.textContent=Hn},[]);ti(function(){!ut.current&&!At.current||Fn(!1);var Hn=Lo(Ne),Kn=Lo(Ne);return ut.current=Hn,At.current=Kn,Hn.setAttribute(cc+"-always",we),Kn.setAttribute(cc+"-dynamic",we),Li().appendChild(Hn),Li().appendChild(Kn),Ut(Ve.always),Nt(Ve.resting),function(){var pr=function(Gi){var Xi=Gi.current;Xi||Fn(!1),Li().removeChild(Xi),Gi.current=null};pr(ut),pr(At)}},[Ne,Ut,Nt,Ve.always,Ve.resting,we]);var Zt=un(function(){return Nt(Ve.dragging)},[Nt,Ve.dragging]),Un=un(function(Hn){if(Hn==="DROP"){Nt(Ve.dropAnimating);return}Nt(Ve.userCancel)},[Nt,Ve.dropAnimating,Ve.userCancel]),nr=un(function(){At.current&&Nt(Ve.resting)},[Nt,Ve.resting]),qn=zn(function(){return{dragging:Zt,dropping:Un,resting:nr}},[Zt,Un,nr]);return qn}var ii=function(we){return we&&we.ownerDocument?we.ownerDocument.defaultView:window};function qi(we){return we instanceof ii(we).HTMLElement}function ta(we,Ne){var Ve="["+wl.contextId+'="'+we+'"]',ut=zo(document.querySelectorAll(Ve));if(!ut.length)return null;var At=Wi(ut,function(Nt){return Nt.getAttribute(wl.draggableId)===Ne});return!At||!qi(At)?null:At}function Aa(we){var Ne=(0,oe.useRef)({}),Ve=(0,oe.useRef)(null),ut=(0,oe.useRef)(null),At=(0,oe.useRef)(!1),Nt=un(function(Kn,pr){var ri={id:Kn,focus:pr};return Ne.current[Kn]=ri,function(){var Xi=Ne.current,eo=Xi[Kn];eo!==ri&&delete Xi[Kn]}},[]),Ut=un(function(Kn){var pr=ta(we,Kn);pr&&pr!==document.activeElement&&pr.focus()},[we]),Zt=un(function(Kn,pr){Ve.current===Kn&&(Ve.current=pr)},[]),Un=un(function(){ut.current||At.current&&(ut.current=requestAnimationFrame(function(){ut.current=null;var Kn=Ve.current;Kn&&Ut(Kn)}))},[Ut]),nr=un(function(Kn){Ve.current=null;var pr=document.activeElement;pr&&pr.getAttribute(wl.draggableId)===Kn&&(Ve.current=Kn)},[]);ti(function(){return At.current=!0,function(){At.current=!1;var Kn=ut.current;Kn&&cancelAnimationFrame(Kn)}},[]);var qn=zn(function(){return{register:Nt,tryRecordFocus:nr,tryRestoreFocusRecorded:Un,tryShiftRecord:Zt}},[Nt,nr,Un,Zt]);return qn}function os(){var we={draggables:{},droppables:{}},Ne=[];function Ve(Hn){return Ne.push(Hn),function(){var pr=Ne.indexOf(Hn);pr!==-1&&Ne.splice(pr,1)}}function ut(Hn){Ne.length&&Ne.forEach(function(Kn){return Kn(Hn)})}function At(Hn){return we.draggables[Hn]||null}function Nt(Hn){var Kn=At(Hn);return Kn||Fn(!1),Kn}var Ut={register:function(Kn){we.draggables[Kn.descriptor.id]=Kn,ut({type:"ADDITION",value:Kn})},update:function(Kn,pr){var ri=we.draggables[pr.descriptor.id];ri&&ri.uniqueId===Kn.uniqueId&&(delete we.draggables[pr.descriptor.id],we.draggables[Kn.descriptor.id]=Kn)},unregister:function(Kn){var pr=Kn.descriptor.id,ri=At(pr);ri&&Kn.uniqueId===ri.uniqueId&&(delete we.draggables[pr],ut({type:"REMOVAL",value:Kn}))},getById:Nt,findById:At,exists:function(Kn){return!!At(Kn)},getAllByType:function(Kn){return fo(we.draggables).filter(function(pr){return pr.descriptor.type===Kn})}};function Zt(Hn){return we.droppables[Hn]||null}function Un(Hn){var Kn=Zt(Hn);return Kn||Fn(!1),Kn}var nr={register:function(Kn){we.droppables[Kn.descriptor.id]=Kn},unregister:function(Kn){var pr=Zt(Kn.descriptor.id);pr&&Kn.uniqueId===pr.uniqueId&&delete we.droppables[Kn.descriptor.id]},getById:Un,findById:Zt,exists:function(Kn){return!!Zt(Kn)},getAllByType:function(Kn){return fo(we.droppables).filter(function(pr){return pr.descriptor.type===Kn})}};function qn(){we.draggables={},we.droppables={},Ne.length=0}return{draggable:Ut,droppable:nr,subscribe:Ve,clean:qn}}function Uu(){var we=zn(os,[]);return(0,oe.useEffect)(function(){return function(){requestAnimationFrame(we.clean)}},[we]),we}var xu=oe.createContext(null),wu=function(){var we=document.body;return we||Fn(!1),we},dc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Hl=function(Ne){return"rbd-announcement-"+Ne};function Cu(we){var Ne=zn(function(){return Hl(we)},[we]),Ve=(0,oe.useRef)(null);(0,oe.useEffect)(function(){var Nt=document.createElement("div");return Ve.current=Nt,Nt.id=Ne,Nt.setAttribute("aria-live","assertive"),Nt.setAttribute("aria-atomic","true"),(0,ke.Z)(Nt.style,dc),wu().appendChild(Nt),function(){setTimeout(function(){var Un=wu();Un.contains(Nt)&&Un.removeChild(Nt),Nt===Ve.current&&(Ve.current=null)})}},[Ne]);var ut=un(function(At){var Nt=Ve.current;if(Nt){Nt.textContent=At;return}},[]);return ut}var Mc=0,fu={separator:"::"};function hh(){Mc=0}function Cs(we,Ne){return Ne===void 0&&(Ne=fu),zn(function(){return""+we+Ne.separator+Mc++},[Ne.separator,we])}function ud(we){var Ne=we.contextId,Ve=we.uniqueId;return"rbd-hidden-text-"+Ne+"-"+Ve}function Kp(we){var Ne=we.contextId,Ve=we.text,ut=Cs("hidden-text",{separator:"-"}),At=zn(function(){return ud({contextId:Ne,uniqueId:ut})},[ut,Ne]);return(0,oe.useEffect)(function(){var Ut=document.createElement("div");return Ut.id=At,Ut.textContent=Ve,Ut.style.display="none",wu().appendChild(Ut),function(){var Un=wu();Un.contains(Ut)&&Un.removeChild(Ut)}},[At,Ve]),At}var Gd=oe.createContext(null),Yp={react:"^16.8.5","react-dom":"^16.8.5"},Dn=/(\d+)\.(\d+)\.(\d+)/,xd=function(Ne){var Ve=Dn.exec(Ne);Ve==null&&Fn(!1);var ut=Number(Ve[1]),At=Number(Ve[2]),Nt=Number(Ve[3]);return{major:ut,minor:At,patch:Nt,raw:Ne}},Jc=function(Ne,Ve){return Ve.major>Ne.major?!0:Ve.major<Ne.major?!1:Ve.minor>Ne.minor?!0:Ve.minor<Ne.minor?!1:Ve.patch>=Ne.patch},Xp=function(we,Ne){var Ve=xd(we),ut=xd(Ne);Jc(Ve,ut)},Qp=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,Jp=function(we){var Ne=we.doctype;Ne&&(Ne.name.toLowerCase(),Ne.publicId)};function qp(we){}function Vh(we,Ne){}function zl(){Vh(function(){Xp(Yp.react,oe.version),Jp(document)},[])}function jd(we){var Ne=(0,oe.useRef)(we);return(0,oe.useEffect)(function(){Ne.current=we}),Ne}function tp(){var we=null;function Ne(){return!!we}function Ve(Ut){return Ut===we}function ut(Ut){we&&Fn(!1);var Zt={abandon:Ut};return we=Zt,Zt}function At(){we||Fn(!1),we=null}function Nt(){we&&(we.abandon(),At())}return{isClaimed:Ne,isActive:Ve,claim:ut,release:At,tryAbandon:Nt}}var $p=9,eg=13,Pf=27,np=32,rp=33,qu=34,fh=35,ip=36,qc=37,Wh=38,Tf=39,Zh=40,$l,op=($l={},$l[eg]=!0,$l[$p]=!0,$l),Af=function(we){op[we.keyCode]&&we.preventDefault()},Pu=function(){var we="visibilitychange";if(typeof document=="undefined")return we;var Ne=[we,"ms"+we,"webkit"+we,"moz"+we,"o"+we],Ve=Wi(Ne,function(ut){return"on"+ut in document});return Ve||we}(),Vd=0,Nf=5;function tg(we,Ne){return Math.abs(Ne.x-we.x)>=Nf||Math.abs(Ne.y-we.y)>=Nf}var wd={type:"IDLE"};function Hu(we){var Ne=we.cancel,Ve=we.completed,ut=we.getPhase,At=we.setPhase;return[{eventName:"mousemove",fn:function(Ut){var Zt=Ut.button,Un=Ut.clientX,nr=Ut.clientY;if(Zt===Vd){var qn={x:Un,y:nr},Hn=ut();if(Hn.type==="DRAGGING"){Ut.preventDefault(),Hn.actions.move(qn);return}Hn.type!=="PENDING"&&Fn(!1);var Kn=Hn.point;if(tg(Kn,qn)){Ut.preventDefault();var pr=Hn.actions.fluidLift(qn);At({type:"DRAGGING",actions:pr})}}}},{eventName:"mouseup",fn:function(Ut){var Zt=ut();if(Zt.type!=="DRAGGING"){Ne();return}Ut.preventDefault(),Zt.actions.drop({shouldBlockNextClick:!0}),Ve()}},{eventName:"mousedown",fn:function(Ut){ut().type==="DRAGGING"&&Ut.preventDefault(),Ne()}},{eventName:"keydown",fn:function(Ut){var Zt=ut();if(Zt.type==="PENDING"){Ne();return}if(Ut.keyCode===Pf){Ut.preventDefault(),Ne();return}Af(Ut)}},{eventName:"resize",fn:Ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ut().type==="PENDING"&&Ne()}},{eventName:"webkitmouseforcedown",fn:function(Ut){var Zt=ut();if(Zt.type==="IDLE"&&Fn(!1),Zt.actions.shouldRespectForcePress()){Ne();return}Ut.preventDefault()}},{eventName:Pu,fn:Ne}]}function ap(we){var Ne=(0,oe.useRef)(wd),Ve=(0,oe.useRef)(Fr),ut=zn(function(){return{eventName:"mousedown",fn:function(Hn){if(!Hn.defaultPrevented&&Hn.button===Vd&&!(Hn.ctrlKey||Hn.metaKey||Hn.shiftKey||Hn.altKey)){var Kn=we.findClosestDraggableId(Hn);if(Kn){var pr=we.tryGetLock(Kn,Ut,{sourceEvent:Hn});if(pr){Hn.preventDefault();var ri={x:Hn.clientX,y:Hn.clientY};Ve.current(),nr(pr,ri)}}}}}},[we]),At=zn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Hn){if(!Hn.defaultPrevented){var Kn=we.findClosestDraggableId(Hn);if(Kn){var pr=we.findOptionsForDraggable(Kn);pr&&(pr.shouldRespectForcePress||we.canGetLock(Kn)&&Hn.preventDefault())}}}}},[we]),Nt=un(function(){var Hn={passive:!1,capture:!0};Ve.current=cn(window,[At,ut],Hn)},[At,ut]),Ut=un(function(){var qn=Ne.current;qn.type!=="IDLE"&&(Ne.current=wd,Ve.current(),Nt())},[Nt]),Zt=un(function(){var qn=Ne.current;Ut(),qn.type==="DRAGGING"&&qn.actions.cancel({shouldBlockNextClick:!0}),qn.type==="PENDING"&&qn.actions.abort()},[Ut]),Un=un(function(){var Hn={capture:!0,passive:!1},Kn=Hu({cancel:Zt,completed:Ut,getPhase:function(){return Ne.current},setPhase:function(ri){Ne.current=ri}});Ve.current=cn(window,Kn,Hn)},[Zt,Ut]),nr=un(function(Hn,Kn){Ne.current.type!=="IDLE"&&Fn(!1),Ne.current={type:"PENDING",point:Kn,actions:Hn},Un()},[Un]);ti(function(){return Nt(),function(){Ve.current()}},[Nt])}var Ps;function Kh(){}var Lf=(Ps={},Ps[qu]=!0,Ps[rp]=!0,Ps[ip]=!0,Ps[fh]=!0,Ps);function Cd(we,Ne){function Ve(){Ne(),we.cancel()}function ut(){Ne(),we.drop()}return[{eventName:"keydown",fn:function(Nt){if(Nt.keyCode===Pf){Nt.preventDefault(),Ve();return}if(Nt.keyCode===np){Nt.preventDefault(),ut();return}if(Nt.keyCode===Zh){Nt.preventDefault(),we.moveDown();return}if(Nt.keyCode===Wh){Nt.preventDefault(),we.moveUp();return}if(Nt.keyCode===Tf){Nt.preventDefault(),we.moveRight();return}if(Nt.keyCode===qc){Nt.preventDefault(),we.moveLeft();return}if(Lf[Nt.keyCode]){Nt.preventDefault();return}Af(Nt)}},{eventName:"mousedown",fn:Ve},{eventName:"mouseup",fn:Ve},{eventName:"click",fn:Ve},{eventName:"touchstart",fn:Ve},{eventName:"resize",fn:Ve},{eventName:"wheel",fn:Ve,options:{passive:!0}},{eventName:Pu,fn:Ve}]}function ph(we){var Ne=(0,oe.useRef)(Kh),Ve=zn(function(){return{eventName:"keydown",fn:function(Nt){if(Nt.defaultPrevented||Nt.keyCode!==np)return;var Ut=we.findClosestDraggableId(Nt);if(!Ut)return;var Zt=we.tryGetLock(Ut,qn,{sourceEvent:Nt});if(!Zt)return;Nt.preventDefault();var Un=!0,nr=Zt.snapLift();Ne.current();function qn(){Un||Fn(!1),Un=!1,Ne.current(),ut()}Ne.current=cn(window,Cd(nr,qn),{capture:!0,passive:!1})}}},[we]),ut=un(function(){var Nt={passive:!1,capture:!0};Ne.current=cn(window,[Ve],Nt)},[Ve]);ti(function(){return ut(),function(){Ne.current()}},[ut])}var Pd={type:"IDLE"},sp=120,gh=.15;function lp(we){var Ne=we.cancel,Ve=we.getPhase;return[{eventName:"orientationchange",fn:Ne},{eventName:"resize",fn:Ne},{eventName:"contextmenu",fn:function(At){At.preventDefault()}},{eventName:"keydown",fn:function(At){if(Ve().type!=="DRAGGING"){Ne();return}At.keyCode===Pf&&At.preventDefault(),Ne()}},{eventName:Pu,fn:Ne}]}function $c(we){var Ne=we.cancel,Ve=we.completed,ut=we.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Nt){var Ut=ut();if(Ut.type!=="DRAGGING"){Ne();return}Ut.hasMoved=!0;var Zt=Nt.touches[0],Un=Zt.clientX,nr=Zt.clientY,qn={x:Un,y:nr};Nt.preventDefault(),Ut.actions.move(qn)}},{eventName:"touchend",fn:function(Nt){var Ut=ut();if(Ut.type!=="DRAGGING"){Ne();return}Nt.preventDefault(),Ut.actions.drop({shouldBlockNextClick:!0}),Ve()}},{eventName:"touchcancel",fn:function(Nt){if(ut().type!=="DRAGGING"){Ne();return}Nt.preventDefault(),Ne()}},{eventName:"touchforcechange",fn:function(Nt){var Ut=ut();Ut.type==="IDLE"&&Fn(!1);var Zt=Nt.touches[0];if(Zt){var Un=Zt.force>=gh;if(Un){var nr=Ut.actions.shouldRespectForcePress();if(Ut.type==="PENDING"){nr&&Ne();return}if(nr){if(Ut.hasMoved){Nt.preventDefault();return}Ne();return}Nt.preventDefault()}}}},{eventName:Pu,fn:Ne}]}function Wd(we){var Ne=(0,oe.useRef)(Pd),Ve=(0,oe.useRef)(Fr),ut=un(function(){return Ne.current},[]),At=un(function(pr){Ne.current=pr},[]),Nt=zn(function(){return{eventName:"touchstart",fn:function(pr){if(!pr.defaultPrevented){var ri=we.findClosestDraggableId(pr);if(ri){var Gi=we.tryGetLock(ri,Zt,{sourceEvent:pr});if(Gi){var Xi=pr.touches[0],eo=Xi.clientX,So=Xi.clientY,Co={x:eo,y:So};Ve.current(),Hn(Gi,Co)}}}}}},[we]),Ut=un(function(){var pr={capture:!0,passive:!1};Ve.current=cn(window,[Nt],pr)},[Nt]),Zt=un(function(){var Kn=Ne.current;Kn.type!=="IDLE"&&(Kn.type==="PENDING"&&clearTimeout(Kn.longPressTimerId),At(Pd),Ve.current(),Ut())},[Ut,At]),Un=un(function(){var Kn=Ne.current;Zt(),Kn.type==="DRAGGING"&&Kn.actions.cancel({shouldBlockNextClick:!0}),Kn.type==="PENDING"&&Kn.actions.abort()},[Zt]),nr=un(function(){var pr={capture:!0,passive:!1},ri={cancel:Un,completed:Zt,getPhase:ut},Gi=cn(window,$c(ri),pr),Xi=cn(window,lp(ri),pr);Ve.current=function(){Gi(),Xi()}},[Un,ut,Zt]),qn=un(function(){var pr=ut();pr.type!=="PENDING"&&Fn(!1);var ri=pr.actions.fluidLift(pr.point);At({type:"DRAGGING",actions:ri,hasMoved:!1})},[ut,At]),Hn=un(function(pr,ri){ut().type!=="IDLE"&&Fn(!1);var Gi=setTimeout(qn,sp);At({type:"PENDING",point:ri,actions:pr,longPressTimerId:Gi}),nr()},[nr,ut,At,qn]);ti(function(){return Ut(),function(){Ve.current();var ri=ut();ri.type==="PENDING"&&(clearTimeout(ri.longPressTimerId),At(Pd))}},[ut,Ut,At]),ti(function(){var pr=cn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return pr},[])}function kf(we){}var If={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Yh(we,Ne){if(Ne==null)return!1;var Ve=!!If[Ne.tagName.toLowerCase()];if(Ve)return!0;var ut=Ne.getAttribute("contenteditable");return ut==="true"||ut===""?!0:Ne===we?!1:Yh(we,Ne.parentElement)}function Zd(we,Ne){var Ve=Ne.target;return qi(Ve)?Yh(we,Ve):!1}var up=function(we){return Jt(we.getBoundingClientRect()).center};function cp(we){return we instanceof ii(we).Element}var dp=function(){var we="matches";if(typeof document=="undefined")return we;var Ne=[we,"msMatchesSelector","webkitMatchesSelector"],Ve=Wi(Ne,function(ut){return ut in Element.prototype});return Ve||we}();function Ec(we,Ne){return we==null?null:we[dp](Ne)?we:Ec(we.parentElement,Ne)}function ng(we,Ne){return we.closest?we.closest(Ne):Ec(we,Ne)}function hp(we){return"["+wl.contextId+'="'+we+'"]'}function mh(we,Ne){var Ve=Ne.target;if(!cp(Ve))return null;var ut=hp(we),At=ng(Ve,ut);return!At||!qi(At)?null:At}function Kd(we,Ne){var Ve=mh(we,Ne);return Ve?Ve.getAttribute(wl.draggableId):null}function fp(we,Ne){var Ve="["+Ju.contextId+'="'+we+'"]',ut=zo(document.querySelectorAll(Ve)),At=Wi(ut,function(Nt){return Nt.getAttribute(Ju.id)===Ne});return!At||!qi(At)?null:At}function Oc(we){we.preventDefault()}function vh(we){var Ne=we.expected,Ve=we.phase,ut=we.isLockActive,At=we.shouldWarn;return!(!ut()||Ne!==Ve)}function Xh(we){var Ne=we.lockAPI,Ve=we.store,ut=we.registry,At=we.draggableId;if(Ne.isClaimed())return!1;var Nt=ut.draggable.findById(At);return!(!Nt||!Nt.options.isEnabled||!To(Ve.getState(),At))}function rg(we){var Ne=we.lockAPI,Ve=we.contextId,ut=we.store,At=we.registry,Nt=we.draggableId,Ut=we.forceSensorStop,Zt=we.sourceEvent,Un=Xh({lockAPI:Ne,store:ut,registry:At,draggableId:Nt});if(!Un)return null;var nr=At.draggable.getById(Nt),qn=fp(Ve,nr.descriptor.id);if(!qn||Zt&&!nr.options.canDragInteractiveElements&&Zd(qn,Zt))return null;var Hn=Ne.claim(Ut||Fr),Kn="PRE_DRAG";function pr(){return nr.options.shouldRespectForcePress}function ri(){return Ne.isActive(Hn)}function Gi(Go,Ha){vh({expected:Go,phase:Kn,isLockActive:ri,shouldWarn:!0})&&ut.dispatch(Ha())}var Xi=Gi.bind(null,"DRAGGING");function eo(Go){function Ha(){Ne.release(),Kn="COMPLETED"}Kn!=="PRE_DRAG"&&(Ha(),Kn!=="PRE_DRAG"&&Fn(!1)),ut.dispatch(cl(Go.liftActionArgs)),Kn="DRAGGING";function ml(Ka,Ws){if(Ws===void 0&&(Ws={shouldBlockNextClick:!1}),Go.cleanup(),Ws.shouldBlockNextClick){var tu=cn(window,[{eventName:"click",fn:Oc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(tu)}Ha(),ut.dispatch(Bu({reason:Ka}))}return(0,ke.Z)({isActive:function(){return vh({expected:"DRAGGING",phase:Kn,isLockActive:ri,shouldWarn:!1})},shouldRespectForcePress:pr,drop:function(Ws){return ml("DROP",Ws)},cancel:function(Ws){return ml("CANCEL",Ws)}},Go.actions)}function So(Go){var Ha=On(function(Ka){Xi(function(){return oa({client:Ka})})}),ml=eo({liftActionArgs:{id:Nt,clientSelection:Go,movementMode:"FLUID"},cleanup:function(){return Ha.cancel()},actions:{move:Ha}});return(0,ke.Z)({},ml,{move:Ha})}function Co(){var Go={moveUp:function(){return Xi(Za)},moveRight:function(){return Xi(sc)},moveDown:function(){return Xi(na)},moveLeft:function(){return Xi(bo)}};return eo({liftActionArgs:{id:Nt,clientSelection:up(qn),movementMode:"SNAP"},cleanup:Fr,actions:Go})}function Ro(){var Go=vh({expected:"PRE_DRAG",phase:Kn,isLockActive:ri,shouldWarn:!0});Go&&Ne.release()}var ra={isActive:function(){return vh({expected:"PRE_DRAG",phase:Kn,isLockActive:ri,shouldWarn:!1})},shouldRespectForcePress:pr,fluidLift:So,snapLift:Co,abort:Ro};return ra}var pp=[ap,ph,Wd];function gp(we){var Ne=we.contextId,Ve=we.store,ut=we.registry,At=we.customSensors,Nt=we.enableDefaultSensors,Ut=[].concat(Nt?pp:[],At||[]),Zt=(0,oe.useState)(function(){return tp()})[0],Un=un(function(So,Co){So.isDragging&&!Co.isDragging&&Zt.tryAbandon()},[Zt]);ti(function(){var So=Ve.getState(),Co=Ve.subscribe(function(){var Ro=Ve.getState();Un(So,Ro),So=Ro});return Co},[Zt,Ve,Un]),ti(function(){return Zt.tryAbandon},[Zt.tryAbandon]);var nr=un(function(eo){return Xh({lockAPI:Zt,registry:ut,store:Ve,draggableId:eo})},[Zt,ut,Ve]),qn=un(function(eo,So,Co){return rg({lockAPI:Zt,registry:ut,contextId:Ne,store:Ve,draggableId:eo,forceSensorStop:So,sourceEvent:Co&&Co.sourceEvent?Co.sourceEvent:null})},[Ne,Zt,ut,Ve]),Hn=un(function(eo){return Kd(Ne,eo)},[Ne]),Kn=un(function(eo){var So=ut.draggable.findById(eo);return So?So.options:null},[ut.draggable]),pr=un(function(){Zt.isClaimed()&&(Zt.tryAbandon(),Ve.getState().phase!=="IDLE"&&Ve.dispatch(Dc()))},[Zt,Ve]),ri=un(Zt.isClaimed,[Zt]),Gi=zn(function(){return{canGetLock:nr,tryGetLock:qn,findClosestDraggableId:Hn,findOptionsForDraggable:Kn,tryReleaseLock:pr,isLockClaimed:ri}},[nr,qn,Hn,Kn,pr,ri]);kf(Ut);for(var Xi=0;Xi<Ut.length;Xi++)Ut[Xi](Gi)}var jg=function(Ne){return{onBeforeCapture:Ne.onBeforeCapture,onBeforeDragStart:Ne.onBeforeDragStart,onDragStart:Ne.onDragStart,onDragEnd:Ne.onDragEnd,onDragUpdate:Ne.onDragUpdate}};function yh(we){return we.current||Fn(!1),we.current}function Df(we){var Ne=we.contextId,Ve=we.setCallbacks,ut=we.sensors,At=we.nonce,Nt=we.dragHandleUsageInstructions,Ut=(0,oe.useRef)(null);zl();var Zt=jd(we),Un=un(function(){return jg(Zt.current)},[Zt]),nr=Cu(Ne),qn=Kp({contextId:Ne,text:Nt}),Hn=Xo(Ne,At),Kn=un(function(Ka){yh(Ut).dispatch(Ka)},[]),pr=zn(function(){return(0,De.DE)({publishWhileDragging:Sl,updateDroppableScroll:Fu,updateDroppableIsEnabled:va,updateDroppableIsCombineEnabled:Os,collectionStarting:Es},Kn)},[Kn]),ri=Uu(),Gi=zn(function(){return so(ri,pr)},[ri,pr]),Xi=zn(function(){return uc((0,ke.Z)({scrollWindow:Bo,scrollDroppable:Gi.scrollDroppable},(0,De.DE)({move:oa},Kn)))},[Gi.scrollDroppable,Kn]),eo=Aa(Ne),So=zn(function(){return Sr({announce:nr,autoScroller:Xi,dimensionMarshal:Gi,focusMarshal:eo,getResponders:Un,styleMarshal:Hn})},[nr,Xi,Gi,eo,Un,Hn]);Ut.current=So;var Co=un(function(){var Ka=yh(Ut),Ws=Ka.getState();Ws.phase!=="IDLE"&&Ka.dispatch(Dc())},[]),Ro=un(function(){var Ka=yh(Ut).getState();return Ka.isDragging||Ka.phase==="DROP_ANIMATING"},[]),ra=zn(function(){return{isDragging:Ro,tryAbort:Co}},[Ro,Co]);Ve(ra);var Go=un(function(Ka){return To(yh(Ut).getState(),Ka)},[]),Ha=un(function(){return ul(yh(Ut).getState())},[]),ml=zn(function(){return{marshal:Gi,focus:eo,contextId:Ne,canLift:Go,isMovementAllowed:Ha,dragHandleUsageInstructionsId:qn,registry:ri}},[Ne,Gi,qn,eo,Go,Ha,ri]);return gp({contextId:Ne,store:So,registry:ri,customSensors:ut,enableDefaultSensors:we.enableDefaultSensors!==!1}),(0,oe.useEffect)(function(){return Co},[Co]),oe.createElement(Gd.Provider,{value:ml},oe.createElement(ee,{context:xu,store:So},we.children))}var Qh=0;function Rf(){Qh=0}function ig(){return zn(function(){return""+Qh++},[])}function mp(){Rf(),hh()}function Td(we){var Ne=ig(),Ve=we.dragHandleUsageInstructions||Gr.dragHandleUsageInstructions;return oe.createElement(fr,null,function(ut){return oe.createElement(Df,{nonce:we.nonce,contextId:Ne,setCallbacks:ut,dragHandleUsageInstructions:Ve,enableDefaultSensors:we.enableDefaultSensors,sensors:we.sensors,onBeforeCapture:we.onBeforeCapture,onBeforeDragStart:we.onBeforeDragStart,onDragStart:we.onDragStart,onDragUpdate:we.onDragUpdate,onDragEnd:we.onDragEnd},we.children)})}var Jh=function(Ne){return function(Ve){return Ne===Ve}},qh=Jh("scroll"),og=Jh("auto"),Mf=Jh("visible"),vp=function(Ne,Ve){return Ve(Ne.overflowX)||Ve(Ne.overflowY)},Fa=function(Ne,Ve){return Ve(Ne.overflowX)&&Ve(Ne.overflowY)},Yd=function(Ne){var Ve=window.getComputedStyle(Ne),ut={overflowX:Ve.overflowX,overflowY:Ve.overflowY};return vp(ut,qh)||vp(ut,og)},Xd=function(){return!1;var Ne,Ve,ut,At},pl=function we(Ne){return Ne==null?null:Ne===document.body?Xd()?Ne:null:Ne===document.documentElement?null:Yd(Ne)?Ne:we(Ne.parentElement)},zu=function(we){if(we)var Ne=pl(we.parentElement)},cd=function(we){return{x:we.scrollLeft,y:we.scrollTop}},$h=function we(Ne){if(!Ne)return!1;var Ve=window.getComputedStyle(Ne);return Ve.position==="fixed"?!0:we(Ne.parentElement)},yp=function(we){var Ne=pl(we),Ve=$h(we);return{closestScrollable:Ne,isFixedOnPage:Ve}},Sp=function(we){var Ne=we.descriptor,Ve=we.isEnabled,ut=we.isCombineEnabled,At=we.isFixedOnPage,Nt=we.direction,Ut=we.client,Zt=we.page,Un=we.closest,nr=function(){if(!Un)return null;var pr=Un.scrollSize,ri=Un.client,Gi=Zr({scrollHeight:pr.scrollHeight,scrollWidth:pr.scrollWidth,height:ri.paddingBox.height,width:ri.paddingBox.width});return{pageMarginBox:Un.page.marginBox,frameClient:ri,scrollSize:pr,shouldClipSubject:Un.shouldClipSubject,scroll:{initial:Un.scroll,current:Un.scroll,max:Gi,diff:{value:on,displacement:on}}}}(),qn=Nt==="vertical"?Yn:an,Hn=vi({page:Zt,withPlaceholder:null,axis:qn,frame:nr}),Kn={descriptor:Ne,isCombineEnabled:ut,isFixedOnPage:At,axis:qn,isEnabled:Ve,client:Ut,page:Zt,frame:nr,subject:Hn};return Kn},bp=function(Ne,Ve){var ut=dr(Ne);if(!Ve||Ne!==Ve)return ut;var At=ut.paddingBox.top-Ve.scrollTop,Nt=ut.paddingBox.left-Ve.scrollLeft,Ut=At+Ve.scrollHeight,Zt=Nt+Ve.scrollWidth,Un={top:At,right:Zt,bottom:Ut,left:Nt},nr=Er(Un,ut.border),qn=ei({borderBox:nr,margin:ut.margin,border:ut.border,padding:ut.padding});return qn},Ep=function(we){var Ne=we.ref,Ve=we.descriptor,ut=we.env,At=we.windowScroll,Nt=we.direction,Ut=we.isDropDisabled,Zt=we.isCombineEnabled,Un=we.shouldClipSubject,nr=ut.closestScrollable,qn=bp(Ne,nr),Hn=oi(qn,At),Kn=function(){if(!nr)return null;var ri=dr(nr),Gi={scrollHeight:nr.scrollHeight,scrollWidth:nr.scrollWidth};return{client:ri,page:oi(ri,At),scroll:cd(nr),scrollSize:Gi,shouldClipSubject:Un}}(),pr=Sp({descriptor:Ve,isEnabled:!Ut,isCombineEnabled:Zt,isFixedOnPage:ut.isFixedOnPage,direction:Nt,client:qn,page:Hn,closest:Kn});return pr},xp={passive:!1},Ad={passive:!0},Sh=function(we){return we.shouldPublishImmediately?xp:Ad};function Fc(we){var Ne=(0,oe.useContext)(we);return Ne||Fn(!1),Ne}var Ja=function(Ne){return Ne&&Ne.env.closestScrollable||null};function Of(we){var Ne=(0,oe.useRef)(null),Ve=Fc(Gd),ut=Cs("droppable"),At=Ve.registry,Nt=Ve.marshal,Ut=jd(we),Zt=zn(function(){return{id:we.droppableId,type:we.type,mode:we.mode}},[we.droppableId,we.mode,we.type]),Un=(0,oe.useRef)(Zt),nr=zn(function(){return wr(function(Ro,ra){Ne.current||Fn(!1);var Go={x:Ro,y:ra};Nt.updateDroppableScroll(Zt.id,Go)})},[Zt.id,Nt]),qn=un(function(){var Ro=Ne.current;return!Ro||!Ro.env.closestScrollable?on:cd(Ro.env.closestScrollable)},[]),Hn=un(function(){var Ro=qn();nr(Ro.x,Ro.y)},[qn,nr]),Kn=zn(function(){return On(Hn)},[Hn]),pr=un(function(){var Ro=Ne.current,ra=Ja(Ro);Ro&&ra||Fn(!1);var Go=Ro.scrollOptions;if(Go.shouldPublishImmediately){Hn();return}Kn()},[Kn,Hn]),ri=un(function(Ro,ra){Ne.current&&Fn(!1);var Go=Ut.current,Ha=Go.getDroppableRef();Ha||Fn(!1);var ml=yp(Ha),Ka={ref:Ha,descriptor:Zt,env:ml,scrollOptions:ra};Ne.current=Ka;var Ws=Ep({ref:Ha,descriptor:Zt,env:ml,windowScroll:Ro,direction:Go.direction,isDropDisabled:Go.isDropDisabled,isCombineEnabled:Go.isCombineEnabled,shouldClipSubject:!Go.ignoreContainerClipping}),tu=ml.closestScrollable;return tu&&(tu.setAttribute(ce.contextId,Ve.contextId),tu.addEventListener("scroll",pr,Sh(Ka.scrollOptions))),Ws},[Ve.contextId,Zt,pr,Ut]),Gi=un(function(){var Ro=Ne.current,ra=Ja(Ro);return Ro&&ra||Fn(!1),cd(ra)},[]),Xi=un(function(){var Ro=Ne.current;Ro||Fn(!1);var ra=Ja(Ro);Ne.current=null,ra&&(Kn.cancel(),ra.removeAttribute(ce.contextId),ra.removeEventListener("scroll",pr,Sh(Ro.scrollOptions)))},[pr,Kn]),eo=un(function(Ro){var ra=Ne.current;ra||Fn(!1);var Go=Ja(ra);Go||Fn(!1),Go.scrollTop+=Ro.y,Go.scrollLeft+=Ro.x},[]),So=zn(function(){return{getDimensionAndWatchScroll:ri,getScrollWhileDragging:Gi,dragStopped:Xi,scroll:eo}},[Xi,ri,Gi,eo]),Co=zn(function(){return{uniqueId:ut,descriptor:Zt,callbacks:So}},[So,Zt,ut]);ti(function(){return Un.current=Co.descriptor,At.droppable.register(Co),function(){Ne.current&&Xi(),At.droppable.unregister(Co)}},[So,Zt,Xi,Co,Nt,At.droppable]),ti(function(){Ne.current&&Nt.updateDroppableIsEnabled(Un.current.id,!we.isDropDisabled)},[we.isDropDisabled,Nt]),ti(function(){Ne.current&&Nt.updateDroppableIsCombineEnabled(Un.current.id,we.isCombineEnabled)},[we.isCombineEnabled,Nt])}function ef(){}var Qd={width:0,height:0,margin:io},bh=function(Ne){var Ve=Ne.isAnimatingOpenOnMount,ut=Ne.placeholder,At=Ne.animate;return Ve||At==="close"?Qd:{height:ut.client.borderBox.height,width:ut.client.borderBox.width,margin:ut.client.margin}},tf=function(Ne){var Ve=Ne.isAnimatingOpenOnMount,ut=Ne.placeholder,At=Ne.animate,Nt=bh({isAnimatingOpenOnMount:Ve,placeholder:ut,animate:At});return{display:ut.display,boxSizing:"border-box",width:Nt.width,height:Nt.height,marginTop:Nt.margin.top,marginRight:Nt.margin.right,marginBottom:Nt.margin.bottom,marginLeft:Nt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:At!=="none"?bl.placeholder:null}};function ag(we){var Ne=(0,oe.useRef)(null),Ve=un(function(){Ne.current&&(clearTimeout(Ne.current),Ne.current=null)},[]),ut=we.animate,At=we.onTransitionEnd,Nt=we.onClose,Ut=we.contextId,Zt=(0,oe.useState)(we.animate==="open"),Un=Zt[0],nr=Zt[1];(0,oe.useEffect)(function(){return Un?ut!=="open"?(Ve(),nr(!1),ef):Ne.current?ef:(Ne.current=setTimeout(function(){Ne.current=null,nr(!1)}),Ve):ef},[ut,Un,Ve]);var qn=un(function(Kn){Kn.propertyName==="height"&&(At(),ut==="close"&&Nt())},[ut,Nt,At]),Hn=tf({isAnimatingOpenOnMount:Un,animate:we.animate,placeholder:we.placeholder});return oe.createElement(we.placeholder.tagName,{style:Hn,"data-rbd-placeholder-context-id":Ut,onTransitionEnd:qn,ref:we.innerRef})}var gl=oe.memo(ag),Ff=oe.createContext(null);function Jd(we){we&&qi(we)||Fn(!1)}function Bc(we){return typeof we=="boolean"}function qd(we,Ne){Ne.forEach(function(Ve){return Ve(we)})}var re=[function(Ne){var Ve=Ne.props;Ve.droppableId||Fn(!1),typeof Ve.droppableId!="string"&&Fn(!1)},function(Ne){var Ve=Ne.props;Bc(Ve.isDropDisabled)||Fn(!1),Bc(Ve.isCombineEnabled)||Fn(!1),Bc(Ve.ignoreContainerClipping)||Fn(!1)},function(Ne){var Ve=Ne.getDroppableRef;Jd(Ve())}],le=[function(Ne){var Ve=Ne.props,ut=Ne.getPlaceholderRef;if(Ve.placeholder)var At=ut()}],ye=[function(Ne){var Ve=Ne.props;Ve.renderClone||Fn(!1)},function(Ne){var Ve=Ne.getPlaceholderRef;Ve()&&Fn(!1)}];function ve(we){Vh(function(){qd(we,re),we.props.mode==="standard"&&qd(we,le),we.props.mode==="virtual"&&qd(we,ye)})}var xe=function(we){(0,Pe.Z)(Ne,we);function Ne(){for(var ut,At=arguments.length,Nt=new Array(At),Ut=0;Ut<At;Ut++)Nt[Ut]=arguments[Ut];return ut=we.call.apply(we,[this].concat(Nt))||this,ut.state={isVisible:!!ut.props.on,data:ut.props.on,animate:ut.props.shouldAnimate&&ut.props.on?"open":"none"},ut.onClose=function(){ut.state.animate==="close"&&ut.setState({isVisible:!1})},ut}Ne.getDerivedStateFromProps=function(At,Nt){return At.shouldAnimate?At.on?{isVisible:!0,data:At.on,animate:"open"}:Nt.isVisible?{isVisible:!0,data:Nt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!At.on,data:At.on,animate:"none"}};var Ve=Ne.prototype;return Ve.render=function(){if(!this.state.isVisible)return null;var At={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(At)},Ne}(oe.PureComponent),Ze={dragging:5e3,dropAnimating:4500},dt=function(Ne,Ve){return Ve?bl.drop(Ve.duration):Ne?bl.snap:bl.fluid},Pt=function(Ne,Ve){return Ne?Ve?du.opacity.drop:du.opacity.combining:null},wt=function(Ne){return Ne.forceShouldAnimate!=null?Ne.forceShouldAnimate:Ne.mode==="SNAP"};function Wt(we){var Ne=we.dimension,Ve=Ne.client,ut=we.offset,At=we.combineWith,Nt=we.dropping,Ut=!!At,Zt=wt(we),Un=!!Nt,nr=Un?ca.drop(ut,Ut):ca.moveTo(ut),qn={position:"fixed",top:Ve.marginBox.top,left:Ve.marginBox.left,boxSizing:"border-box",width:Ve.borderBox.width,height:Ve.borderBox.height,transition:dt(Zt,Nt),transform:nr,opacity:Pt(Ut,Un),zIndex:Un?Ze.dropAnimating:Ze.dragging,pointerEvents:"none"};return qn}function Zn(we){return{transform:ca.moveTo(we.offset),transition:we.shouldAnimateDisplacement?null:"none"}}function rn(we){return we.type==="DRAGGING"?Wt(we):Zn(we)}function Cr(we,Ne,Ve){Ve===void 0&&(Ve=on);var ut=window.getComputedStyle(Ne),At=Ne.getBoundingClientRect(),Nt=Oe(At,ut),Ut=oi(Nt,Ve),Zt={client:Nt,tagName:Ne.tagName.toLowerCase(),display:ut.display},Un={x:Nt.marginBox.width,y:Nt.marginBox.height},nr={descriptor:we,placeholder:Zt,displaceBy:Un,client:Nt,page:Ut};return nr}function yr(we){var Ne=Cs("draggable"),Ve=we.descriptor,ut=we.registry,At=we.getDraggableRef,Nt=we.canDragInteractiveElements,Ut=we.shouldRespectForcePress,Zt=we.isEnabled,Un=zn(function(){return{canDragInteractiveElements:Nt,shouldRespectForcePress:Ut,isEnabled:Zt}},[Nt,Zt,Ut]),nr=un(function(pr){var ri=At();return ri||Fn(!1),Cr(Ve,ri,pr)},[Ve,At]),qn=zn(function(){return{uniqueId:Ne,descriptor:Ve,options:Un,getDimension:nr}},[Ve,nr,Un,Ne]),Hn=(0,oe.useRef)(qn),Kn=(0,oe.useRef)(!0);ti(function(){return ut.draggable.register(Hn.current),function(){return ut.draggable.unregister(Hn.current)}},[ut.draggable]),ti(function(){if(Kn.current){Kn.current=!1;return}var pr=Hn.current;Hn.current=qn,ut.draggable.update(qn,pr)},[qn,ut.draggable])}function yi(we,Ne,Ve){Vh(function(){function ut(Nt){return"Draggable[id: "+Nt+"]: "}var At=we.draggableId;At||Fn(!1),typeof At!="string"&&Fn(!1),Fi(we.index)||Fn(!1),we.mapped.type!=="DRAGGING"&&(Jd(Ve()),we.isEnabled&&(ta(Ne,At)||Fn(!1)))})}function xi(we){}function Di(we){we.preventDefault()}function $i(we){var Ne=(0,oe.useRef)(null),Ve=un(function(Ka){Ne.current=Ka},[]),ut=un(function(){return Ne.current},[]),At=Fc(Gd),Nt=At.contextId,Ut=At.dragHandleUsageInstructionsId,Zt=At.registry,Un=Fc(Ff),nr=Un.type,qn=Un.droppableId,Hn=zn(function(){return{id:we.draggableId,index:we.index,type:nr,droppableId:qn}},[we.draggableId,we.index,nr,qn]),Kn=we.children,pr=we.draggableId,ri=we.isEnabled,Gi=we.shouldRespectForcePress,Xi=we.canDragInteractiveElements,eo=we.isClone,So=we.mapped,Co=we.dropAnimationFinished;if(yi(we,Nt,ut),xi(eo),!eo){var Ro=zn(function(){return{descriptor:Hn,registry:Zt,getDraggableRef:ut,canDragInteractiveElements:Xi,shouldRespectForcePress:Gi,isEnabled:ri}},[Hn,Zt,ut,Xi,Gi,ri]);yr(Ro)}var ra=zn(function(){return ri?{tabIndex:0,role:"button","aria-describedby":Ut,"data-rbd-drag-handle-draggable-id":pr,"data-rbd-drag-handle-context-id":Nt,draggable:!1,onDragStart:Di}:null},[Nt,Ut,pr,ri]),Go=un(function(Ka){So.type==="DRAGGING"&&So.dropping&&Ka.propertyName==="transform"&&Co()},[Co,So]),Ha=zn(function(){var Ka=rn(So),Ws=So.type==="DRAGGING"&&So.dropping?Go:null,tu={innerRef:Ve,draggableProps:{"data-rbd-draggable-context-id":Nt,"data-rbd-draggable-id":pr,style:Ka,onTransitionEnd:Ws},dragHandleProps:ra};return tu},[Nt,ra,pr,So,Go,Ve]),ml=zn(function(){return{draggableId:Hn.id,type:Hn.type,source:{index:Hn.index,droppableId:Hn.droppableId}}},[Hn.droppableId,Hn.id,Hn.index,Hn.type]);return Kn(Ha,So.snapshot,ml)}var yo=function(we,Ne){return we===Ne},lo=function(we){var Ne=we.combine,Ve=we.destination;return Ve?Ve.droppableId:Ne?Ne.droppableId:null},Ao=function(Ne){return Ne.combine?Ne.combine.draggableId:null},Qo=function(Ne){return Ne.at&&Ne.at.type==="COMBINE"?Ne.at.combine.draggableId:null};function uo(){var we=wr(function(At,Nt){return{x:At,y:Nt}}),Ne=wr(function(At,Nt,Ut,Zt,Un){return{isDragging:!0,isClone:Nt,isDropAnimating:!!Un,dropAnimation:Un,mode:At,draggingOver:Ut,combineWith:Zt,combineTargetFor:null}}),Ve=wr(function(At,Nt,Ut,Zt,Un,nr,qn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Un,combineWith:nr,mode:Nt,offset:At,dimension:Ut,forceShouldAnimate:qn,snapshot:Ne(Nt,Zt,Un,nr,null)}}}),ut=function(Nt,Ut){if(Nt.isDragging){if(Nt.critical.draggable.id!==Ut.draggableId)return null;var Zt=Nt.current.client.offset,Un=Nt.dimensions.draggables[Ut.draggableId],nr=es(Nt.impact),qn=Qo(Nt.impact),Hn=Nt.forceShouldAnimate;return Ve(we(Zt.x,Zt.y),Nt.movementMode,Un,Ut.isClone,nr,qn,Hn)}if(Nt.phase==="DROP_ANIMATING"){var Kn=Nt.completed;if(Kn.result.draggableId!==Ut.draggableId)return null;var pr=Ut.isClone,ri=Nt.dimensions.draggables[Ut.draggableId],Gi=Kn.result,Xi=Gi.mode,eo=lo(Gi),So=Ao(Gi),Co=Nt.dropDuration,Ro={duration:Co,curve:Gs.drop,moveTo:Nt.newHomeClientOffset,opacity:So?du.opacity.drop:null,scale:So?du.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Nt.newHomeClientOffset,dimension:ri,dropping:Ro,draggingOver:eo,combineWith:So,mode:Xi,forceShouldAnimate:null,snapshot:Ne(Xi,pr,eo,So,Ro)}}}return null};return ut}function ya(we){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:we,combineWith:null}}var Ts={mapped:{type:"SECONDARY",offset:on,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ya(null)}};function Cl(){var we=wr(function(Ut,Zt){return{x:Ut,y:Zt}}),Ne=wr(ya),Ve=wr(function(Ut,Zt,Un){return Zt===void 0&&(Zt=null),{mapped:{type:"SECONDARY",offset:Ut,combineTargetFor:Zt,shouldAnimateDisplacement:Un,snapshot:Ne(Zt)}}}),ut=function(Zt){return Zt?Ve(on,Zt,!0):null},At=function(Zt,Un,nr,qn){var Hn=nr.displaced.visible[Zt],Kn=!!(qn.inVirtualList&&qn.effected[Zt]),pr=pi(nr),ri=pr&&pr.draggableId===Zt?Un:null;if(!Hn){if(!Kn)return ut(ri);if(nr.displaced.invisible[Zt])return null;var Gi=li(qn.displacedBy.point),Xi=we(Gi.x,Gi.y);return Ve(Xi,ri,!0)}if(Kn)return ut(ri);var eo=nr.displacedBy.point,So=we(eo.x,eo.y);return Ve(So,ri,Hn.shouldAnimate)},Nt=function(Zt,Un){if(Zt.isDragging)return Zt.critical.draggable.id===Un.draggableId?null:At(Un.draggableId,Zt.critical.draggable.id,Zt.impact,Zt.afterCritical);if(Zt.phase==="DROP_ANIMATING"){var nr=Zt.completed;return nr.result.draggableId===Un.draggableId?null:At(Un.draggableId,nr.result.draggableId,nr.impact,nr.afterCritical)}return null};return Nt}var Bs=function(){var Ne=uo(),Ve=Cl(),ut=function(Nt,Ut){return Ne(Nt,Ut)||Ve(Nt,Ut)||Ts};return ut},Tu={dropAnimationFinished:Rc},eu=bn(Bs,Tu,null,{context:xu,pure:!0,areStatePropsEqual:yo})($i);function sl(we){var Ne=Fc(Ff),Ve=Ne.isUsingCloneFor;return Ve===we.draggableId&&!we.isClone?null:oe.createElement(eu,we)}function Gu(we){var Ne=typeof we.isDragDisabled=="boolean"?!we.isDragDisabled:!0,Ve=!!we.disableInteractiveElementBlocking,ut=!!we.shouldRespectForcePress;return oe.createElement(sl,(0,ke.Z)({},we,{isClone:!1,isEnabled:Ne,canDragInteractiveElements:Ve,shouldRespectForcePress:ut}))}function Gl(we){var Ne=(0,oe.useContext)(Gd);Ne||Fn(!1);var Ve=Ne.contextId,ut=Ne.isMovementAllowed,At=(0,oe.useRef)(null),Nt=(0,oe.useRef)(null),Ut=we.children,Zt=we.droppableId,Un=we.type,nr=we.mode,qn=we.direction,Hn=we.ignoreContainerClipping,Kn=we.isDropDisabled,pr=we.isCombineEnabled,ri=we.snapshot,Gi=we.useClone,Xi=we.updateViewportMaxScroll,eo=we.getContainerForClone,So=un(function(){return At.current},[]),Co=un(function(Au){At.current=Au},[]),Ro=un(function(){return Nt.current},[]),ra=un(function(Au){Nt.current=Au},[]);ve({props:we,getDroppableRef:So,getPlaceholderRef:Ro});var Go=un(function(){ut()&&Xi({maxScroll:sr()})},[ut,Xi]);Of({droppableId:Zt,type:Un,mode:nr,direction:qn,isDropDisabled:Kn,isCombineEnabled:pr,ignoreContainerClipping:Hn,getDroppableRef:So});var Ha=oe.createElement(xe,{on:we.placeholder,shouldAnimate:we.shouldAnimatePlaceholder},function(Au){var dd=Au.onClose,_c=Au.data,ju=Au.animate;return oe.createElement(gl,{placeholder:_c,onClose:dd,innerRef:ra,animate:ju,contextId:Ve,onTransitionEnd:Go})}),ml=zn(function(){return{innerRef:Co,placeholder:Ha,droppableProps:{"data-rbd-droppable-id":Zt,"data-rbd-droppable-context-id":Ve}}},[Ve,Zt,Ha,Co]),Ka=Gi?Gi.dragging.draggableId:null,Ws=zn(function(){return{droppableId:Zt,type:Un,isUsingCloneFor:Ka}},[Zt,Ka,Un]);function tu(){if(!Gi)return null;var Au=Gi.dragging,dd=Gi.render,_c=oe.createElement(sl,{draggableId:Au.draggableId,index:Au.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ju,Uc){return dd(ju,Uc,Au)});return Tn.createPortal(_c,eo())}return oe.createElement(Ff.Provider,{value:Ws},Ut(ml,ri),tu())}var tl=function(Ne,Ve){return Ne===Ve.droppable.type},Ba=function(Ne,Ve){return Ve.draggables[Ne.draggable.id]},Vs=function(){var Ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Ve=(0,ke.Z)({},Ne,{shouldAnimatePlaceholder:!1}),ut=wr(function(Ut){return{draggableId:Ut.id,type:Ut.type,source:{index:Ut.index,droppableId:Ut.droppableId}}}),At=wr(function(Ut,Zt,Un,nr,qn,Hn){var Kn=qn.descriptor.id,pr=qn.descriptor.droppableId===Ut;if(pr){var ri=Hn?{render:Hn,dragging:ut(qn.descriptor)}:null,Gi={isDraggingOver:Un,draggingOverWith:Un?Kn:null,draggingFromThisWith:Kn,isUsingPlaceholder:!0};return{placeholder:qn.placeholder,shouldAnimatePlaceholder:!1,snapshot:Gi,useClone:ri}}if(!Zt)return Ve;if(!nr)return Ne;var Xi={isDraggingOver:Un,draggingOverWith:Kn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:qn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Xi,useClone:null}}),Nt=function(Zt,Un){var nr=Un.droppableId,qn=Un.type,Hn=!Un.isDropDisabled,Kn=Un.renderClone;if(Zt.isDragging){var pr=Zt.critical;if(!tl(qn,pr))return Ve;var ri=Ba(pr,Zt.dimensions),Gi=es(Zt.impact)===nr;return At(nr,Hn,Gi,Gi,ri,Kn)}if(Zt.phase==="DROP_ANIMATING"){var Xi=Zt.completed;if(!tl(qn,Xi.critical))return Ve;var eo=Ba(Xi.critical,Zt.dimensions);return At(nr,Hn,lo(Xi.result)===nr,es(Xi.impact)===nr,eo,Kn)}if(Zt.phase==="IDLE"&&Zt.completed&&!Zt.shouldFlush){var So=Zt.completed;if(!tl(qn,So.critical))return Ve;var Co=es(So.impact)===nr,Ro=!!(So.impact.at&&So.impact.at.type==="COMBINE"),ra=So.critical.droppable.id===nr;return Co?Ro?Ne:Ve:ra?Ne:Ve}return Ve};return Nt},Rl={updateViewportMaxScroll:La};function jl(){return document.body||Fn(!1),document.body}var xc={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:jl},Ds=bn(Vs,Rl,null,{context:xu,pure:!0,areStatePropsEqual:yo})(Gl);Ds.defaultProps=xc},38486:function(We,Ee){"use strict";var ae;var oe=60103,Pe=60106,ke=60107,De=60108,je=60114,Te=60109,Ge=60110,lt=60112,Ke=60113,He=60120,yt=60115,$e=60116,Mt=60121,Fe=60122,te=60117,ee=60129,he=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;oe=ue("react.element"),Pe=ue("react.portal"),ke=ue("react.fragment"),De=ue("react.strict_mode"),je=ue("react.profiler"),Te=ue("react.provider"),Ge=ue("react.context"),lt=ue("react.forward_ref"),Ke=ue("react.suspense"),He=ue("react.suspense_list"),yt=ue("react.memo"),$e=ue("react.lazy"),Mt=ue("react.block"),Fe=ue("react.server.block"),te=ue("react.fundamental"),ee=ue("react.debug_trace_mode"),he=ue("react.legacy_hidden")}function fe(mt){if(typeof mt=="object"&&mt!==null){var xt=mt.$$typeof;switch(xt){case oe:switch(mt=mt.type,mt){case ke:case je:case De:case Ke:case He:return mt;default:switch(mt=mt&&mt.$$typeof,mt){case Ge:case lt:case $e:case yt:case Te:return mt;default:return xt}}case Pe:return xt}}}var me=Te,be=oe,Ae=lt,Ie=ke,Xe=$e,nt=yt,Je=Pe,st=je,gt=De,rt=Ke;ae=Ge,ae=me,ae=be,ae=Ae,ae=Ie,ae=Xe,ae=nt,ae=Je,ae=st,ae=gt,ae=rt,ae=function(){return!1},ae=function(){return!1},Ee.isContextConsumer=function(mt){return fe(mt)===Ge},ae=function(mt){return fe(mt)===Te},ae=function(mt){return typeof mt=="object"&&mt!==null&&mt.$$typeof===oe},ae=function(mt){return fe(mt)===lt},ae=function(mt){return fe(mt)===ke},ae=function(mt){return fe(mt)===$e},ae=function(mt){return fe(mt)===yt},ae=function(mt){return fe(mt)===Pe},ae=function(mt){return fe(mt)===je},ae=function(mt){return fe(mt)===De},ae=function(mt){return fe(mt)===Ke},ae=function(mt){return typeof mt=="string"||typeof mt=="function"||mt===ke||mt===je||mt===ee||mt===De||mt===Ke||mt===He||mt===he||typeof mt=="object"&&mt!==null&&(mt.$$typeof===$e||mt.$$typeof===yt||mt.$$typeof===Te||mt.$$typeof===Ge||mt.$$typeof===lt||mt.$$typeof===te||mt.$$typeof===Mt||mt[0]===Fe)},ae=fe},53410:function(We,Ee,ae){"use strict";We.exports=ae(38486)},77596:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return pt}});var oe=ae(62646),Pe=ae(95190),ke=ae(4635),De=ae(59301),je=ae(14809);function Te(ct,qt){var fn=Object.keys(ct);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(ct);qt&&(kt=kt.filter(function(xn){return Object.getOwnPropertyDescriptor(ct,xn).enumerable})),fn.push.apply(fn,kt)}return fn}function Ge(ct){for(var qt=1;qt<arguments.length;qt++){var fn=arguments[qt]!=null?arguments[qt]:{};qt%2?Te(Object(fn),!0).forEach(function(kt){(0,ke.Z)(ct,kt,fn[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(fn)):Te(Object(fn)).forEach(function(kt){Object.defineProperty(ct,kt,Object.getOwnPropertyDescriptor(fn,kt))})}return ct}function lt(ct){var qt=ct.length;if(qt===0||qt===1)return ct;if(qt===2)return[ct[0],ct[1],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0])];if(qt===3)return[ct[0],ct[1],ct[2],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0])];if(qt>=4)return[ct[0],ct[1],ct[2],ct[3],"".concat(ct[0],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3]),"".concat(ct[3],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[1],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[0],".").concat(ct[2],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[0],".").concat(ct[3],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[2],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[0],".").concat(ct[3],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[1],".").concat(ct[2],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[1],".").concat(ct[3],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[1],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[0],".").concat(ct[3],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[0],".").concat(ct[3]),"".concat(ct[2],".").concat(ct[1],".").concat(ct[3],".").concat(ct[0]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[2],".").concat(ct[3],".").concat(ct[1],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[1],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[0],".").concat(ct[2],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[0],".").concat(ct[2]),"".concat(ct[3],".").concat(ct[1],".").concat(ct[2],".").concat(ct[0]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[0],".").concat(ct[1]),"".concat(ct[3],".").concat(ct[2],".").concat(ct[1],".").concat(ct[0])]}var Ke={};function He(ct){if(ct.length===0||ct.length===1)return ct;var qt=ct.join(".");return Ke[qt]||(Ke[qt]=lt(ct)),Ke[qt]}function yt(ct){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=arguments.length>2?arguments[2]:void 0,kt=ct.filter(function(kn){return kn!=="token"}),xn=He(kt);return xn.reduce(function(kn,Vn){return Ge(Ge({},kn),fn[Vn])},qt)}function $e(ct){return ct.join(" ")}function Mt(ct,qt){var fn=0;return function(kt){return fn+=1,kt.map(function(xn,kn){return Fe({node:xn,stylesheet:ct,useInlineStyles:qt,key:"code-segment-".concat(fn,"-").concat(kn)})})}}function Fe(ct){var qt=ct.node,fn=ct.stylesheet,kt=ct.style,xn=kt===void 0?{}:kt,kn=ct.useInlineStyles,Vn=ct.key,Vt=qt.properties,Ot=qt.type,Nn=qt.tagName,tr=qt.value;if(Ot==="text")return tr;if(Nn){var hr=Mt(fn,kn),ot;if(!kn)ot=Ge(Ge({},Vt),{},{className:$e(Vt.className)});else{var _e=Object.keys(fn).reduce(function(Be,bt){return bt.split(".").forEach(function(bn){Be.includes(bn)||Be.push(bn)}),Be},[]),Re=Vt.className&&Vt.className.includes("token")?["token"]:[],Ye=Vt.className&&Re.concat(Vt.className.filter(function(Be){return!_e.includes(Be)}));ot=Ge(Ge({},Vt),{},{className:$e(Ye)||void 0,style:yt(Vt.className,Object.assign({},Vt.style,xn),fn)})}var at=hr(qt.children);return De.createElement(Nn,(0,je.Z)({key:Vn},ot),at)}}var te=function(ct,qt){var fn=ct.listLanguages();return fn.indexOf(qt)!==-1},ee=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function he(ct,qt){var fn=Object.keys(ct);if(Object.getOwnPropertySymbols){var kt=Object.getOwnPropertySymbols(ct);qt&&(kt=kt.filter(function(xn){return Object.getOwnPropertyDescriptor(ct,xn).enumerable})),fn.push.apply(fn,kt)}return fn}function ue(ct){for(var qt=1;qt<arguments.length;qt++){var fn=arguments[qt]!=null?arguments[qt]:{};qt%2?he(Object(fn),!0).forEach(function(kt){(0,ke.Z)(ct,kt,fn[kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ct,Object.getOwnPropertyDescriptors(fn)):he(Object(fn)).forEach(function(kt){Object.defineProperty(ct,kt,Object.getOwnPropertyDescriptor(fn,kt))})}return ct}var fe=/\n/g;function me(ct){return ct.match(fe)}function be(ct){var qt=ct.lines,fn=ct.startingLineNumber,kt=ct.style;return qt.map(function(xn,kn){var Vn=kn+fn;return De.createElement("span",{key:"line-".concat(kn),className:"react-syntax-highlighter-line-number",style:typeof kt=="function"?kt(Vn):kt},"".concat(Vn,`
|
|
|
`))})}function Ae(ct){var qt=ct.codeString,fn=ct.codeStyle,kt=ct.containerStyle,xn=kt===void 0?{float:"left",paddingRight:"10px"}:kt,kn=ct.numberStyle,Vn=kn===void 0?{}:kn,Vt=ct.startingLineNumber;return De.createElement("code",{style:Object.assign({},fn,xn)},be({lines:qt.replace(/\n$/,"").split(`
|
|
|
`),style:Vn,startingLineNumber:Vt}))}function Ie(ct){return"".concat(ct.toString().length,".25em")}function Xe(ct,qt){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ct),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:qt},children:[{type:"text",value:ct}]}}function nt(ct,qt,fn){var kt={display:"inline-block",minWidth:Ie(fn),paddingRight:"1em",textAlign:"right",userSelect:"none"},xn=typeof ct=="function"?ct(qt):ct,kn=ue(ue({},kt),xn);return kn}function Je(ct){var qt=ct.children,fn=ct.lineNumber,kt=ct.lineNumberStyle,xn=ct.largestLineNumber,kn=ct.showInlineLineNumbers,Vn=ct.lineProps,Vt=Vn===void 0?{}:Vn,Ot=ct.className,Nn=Ot===void 0?[]:Ot,tr=ct.showLineNumbers,hr=ct.wrapLongLines,ot=ct.wrapLines,_e=ot===void 0?!1:ot,Re=_e?ue({},typeof Vt=="function"?Vt(fn):Vt):{};if(Re.className=Re.className?[].concat((0,Pe.Z)(Re.className.trim().split(/\s+/)),(0,Pe.Z)(Nn)):Nn,fn&&kn){var Ye=nt(kt,fn,xn);qt.unshift(Xe(fn,Ye))}return hr&tr&&(Re.style=ue({display:"flex"},Re.style)),{type:"element",tagName:"span",properties:Re,children:qt}}function st(ct){for(var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],kt=0;kt<ct.length;kt++){var xn=ct[kt];if(xn.type==="text")fn.push(Je({children:[xn],className:(0,Pe.Z)(new Set(qt))}));else if(xn.children){var kn=qt.concat(xn.properties.className);st(xn.children,kn).forEach(function(Vn){return fn.push(Vn)})}}return fn}function gt(ct,qt,fn,kt,xn,kn,Vn,Vt,Ot){var Nn,tr=st(ct.value),hr=[],ot=-1,_e=0;function Re(Bn,It){var _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Je({children:Bn,lineNumber:It,lineNumberStyle:Vt,largestLineNumber:Vn,showInlineLineNumbers:xn,lineProps:fn,className:_t,showLineNumbers:kt,wrapLongLines:Ot,wrapLines:qt})}function Ye(Bn,It){if(kt&&It&&xn){var _t=nt(Vt,It,Vn);Bn.unshift(Xe(It,_t))}return Bn}function at(Bn,It){var _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return qt||_t.length>0?Re(Bn,It,_t):Ye(Bn,It)}for(var Be=function(){var It=tr[_e],_t=It.children[0].value,jt=me(_t);if(jt){var hn=_t.split(`
|
|
|
`);hn.forEach(function(En,pn){var Rt=kt&&hr.length+kn,Tn={type:"text",value:"".concat(En,`
|
|
|
`)};if(pn===0){var Yt=tr.slice(ot+1,_e).concat(Je({children:[Tn],className:It.properties.className})),en=at(Yt,Rt);hr.push(en)}else if(pn===hn.length-1){var vn=tr[_e+1]&&tr[_e+1].children&&tr[_e+1].children[0],zn={type:"text",value:"".concat(En)};if(vn){var un=Je({children:[zn],className:It.properties.className});tr.splice(_e+1,0,un)}else{var Et=[zn],Xn=at(Et,Rt,It.properties.className);hr.push(Xn)}}else{var ir=[Tn],Jt=at(ir,Rt,It.properties.className);hr.push(Jt)}}),ot=_e}_e++};_e<tr.length;)Be();if(ot!==tr.length-1){var bt=tr.slice(ot+1,tr.length);if(bt&&bt.length){var bn=kt&&hr.length+kn,sn=at(bt,bn);hr.push(sn)}}return qt?hr:(Nn=[]).concat.apply(Nn,hr)}function rt(ct){var qt=ct.rows,fn=ct.stylesheet,kt=ct.useInlineStyles;return qt.map(function(xn,kn){return Fe({node:xn,stylesheet:fn,useInlineStyles:kt,key:"code-segement".concat(kn)})})}function mt(ct){return ct&&typeof ct.highlightAuto!="undefined"}function xt(ct){var qt=ct.astGenerator,fn=ct.language,kt=ct.code,xn=ct.defaultCodeValue;if(mt(qt)){var kn=te(qt,fn);return fn==="text"?{value:xn,language:"text"}:kn?qt.highlight(fn,kt):qt.highlightAuto(kt)}try{return fn&&fn!=="text"?{value:qt.highlight(kt,fn)}:{value:xn}}catch(Vn){return{value:xn}}}function Tt(ct,qt){return function(kt){var xn=kt.language,kn=kt.children,Vn=kt.style,Vt=Vn===void 0?qt:Vn,Ot=kt.customStyle,Nn=Ot===void 0?{}:Ot,tr=kt.codeTagProps,hr=tr===void 0?{className:xn?"language-".concat(xn):void 0,style:ue(ue({},Vt['code[class*="language-"]']),Vt['code[class*="language-'.concat(xn,'"]')])}:tr,ot=kt.useInlineStyles,_e=ot===void 0?!0:ot,Re=kt.showLineNumbers,Ye=Re===void 0?!1:Re,at=kt.showInlineLineNumbers,Be=at===void 0?!0:at,bt=kt.startingLineNumber,bn=bt===void 0?1:bt,sn=kt.lineNumberContainerStyle,Bn=kt.lineNumberStyle,It=Bn===void 0?{}:Bn,_t=kt.wrapLines,jt=kt.wrapLongLines,hn=jt===void 0?!1:jt,En=kt.lineProps,pn=En===void 0?{}:En,Rt=kt.renderer,Tn=kt.PreTag,Yt=Tn===void 0?"pre":Tn,en=kt.CodeTag,vn=en===void 0?"code":en,zn=kt.code,un=zn===void 0?(Array.isArray(kn)?kn[0]:kn)||"":zn,Et=kt.astGenerator,Xn=(0,oe.Z)(kt,ee);Et=Et||ct;var ir=Ye?De.createElement(Ae,{containerStyle:sn,codeStyle:hr.style||{},numberStyle:It,startingLineNumber:bn,codeString:un}):null,Jt=Vt.hljs||Vt['pre[class*="language-"]']||{backgroundColor:"#fff"},Er=mt(Et)?"hljs":"prismjs",ni=_e?Object.assign({},Xn,{style:Object.assign({},Jt,Nn)}):Object.assign({},Xn,{className:Xn.className?"".concat(Er," ").concat(Xn.className):Er,style:Object.assign({},Nn)});if(hn?hr.style=ue({whiteSpace:"pre-wrap"},hr.style):hr.style=ue({whiteSpace:"pre"},hr.style),!Et)return De.createElement(Yt,ni,ir,De.createElement(vn,hr,un));(_t===void 0&&Rt||hn)&&(_t=!0),Rt=Rt||rt;var Rr=[{type:"text",value:un}],Mn=xt({astGenerator:Et,language:xn,code:un,defaultCodeValue:Rr});Mn.language===null&&(Mn.value=Rr);var ei=Mn.value.length;ei===1&&Mn.value[0].type==="text"&&(ei=Mn.value[0].value.split(`
|
|
|
`).length);var Kr=ei+bn,lr=gt(Mn,_t,pn,Ye,Be,bn,Kr,It,hn);return De.createElement(Yt,ni,De.createElement(vn,hr,!Be&&ir,Rt({rows:lr,stylesheet:Vt,useInlineStyles:_e})))}}var zt={'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"}},Qt=ae(11594),Kt=ae.n(Qt),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"],St=Tt(Kt(),zt);St.supportedLanguages=Cn;var pt=St},14179:function(We,Ee){"use strict";Ee.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(We,Ee,ae){"use strict";ae(84126);var oe=ae(59301),Pe=60103;if(Ee.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var ke=Symbol.for;Pe=ke("react.element"),Ee.Fragment=ke("react.fragment")}var De=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,je=Object.prototype.hasOwnProperty,Te={key:!0,ref:!0,__self:!0,__source:!0};function Ge(lt,Ke,He){var yt,$e={},Mt=null,Fe=null;He!==void 0&&(Mt=""+He),Ke.key!==void 0&&(Mt=""+Ke.key),Ke.ref!==void 0&&(Fe=Ke.ref);for(yt in Ke)je.call(Ke,yt)&&!Te.hasOwnProperty(yt)&&($e[yt]=Ke[yt]);if(lt&<.defaultProps)for(yt in Ke=lt.defaultProps,Ke)$e[yt]===void 0&&($e[yt]=Ke[yt]);return{$$typeof:Pe,type:lt,key:Mt,ref:Fe,props:$e,_owner:De.current}}Ee.jsx=Ge,Ee.jsxs=Ge},37712:function(We,Ee,ae){"use strict";We.exports=ae(19524)},95489:function(We,Ee,ae){"use strict";var oe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ae.g=="object"?ae.g:{},Pe=Ae();oe.Prism={manual:!0,disableWorkerMessageHandler:!0};var ke=ae(43621),De=ae(12256),je=ae(68398),Te=ae(70614),Ge=ae(54212),lt=ae(9720),Ke=ae(88786);Pe();var He={}.hasOwnProperty;function yt(){}yt.prototype=je;var $e=new yt;We.exports=$e,$e.highlight=te,$e.register=Mt,$e.alias=Fe,$e.registered=ee,$e.listLanguages=he,Mt(Te),Mt(Ge),Mt(lt),Mt(Ke),$e.util.encode=me,$e.Token.stringify=ue;function Mt(Ie){if(typeof Ie!="function"||!Ie.displayName)throw new Error("Expected `function` for `grammar`, got `"+Ie+"`");$e.languages[Ie.displayName]===void 0&&Ie($e)}function Fe(Ie,Xe){var nt=$e.languages,Je=Ie,st,gt,rt,mt;Xe&&(Je={},Je[Ie]=Xe);for(st in Je)for(gt=Je[st],gt=typeof gt=="string"?[gt]:gt,rt=gt.length,mt=-1;++mt<rt;)nt[gt[mt]]=nt[st]}function te(Ie,Xe){var nt=je.highlight,Je;if(typeof Ie!="string")throw new Error("Expected `string` for `value`, got `"+Ie+"`");if($e.util.type(Xe)==="Object")Je=Xe,Xe=null;else{if(typeof Xe!="string")throw new Error("Expected `string` for `name`, got `"+Xe+"`");if(He.call($e.languages,Xe))Je=$e.languages[Xe];else throw new Error("Unknown language: `"+Xe+"` is not registered")}return nt.call(this,Ie,Je,Xe)}function ee(Ie){if(typeof Ie!="string")throw new Error("Expected `string` for `language`, got `"+Ie+"`");return He.call($e.languages,Ie)}function he(){var Ie=$e.languages,Xe=[],nt;for(nt in Ie)He.call(Ie,nt)&&typeof Ie[nt]=="object"&&Xe.push(nt);return Xe}function ue(Ie,Xe,nt){var Je;return typeof Ie=="string"?{type:"text",value:Ie}:$e.util.type(Ie)==="Array"?fe(Ie,Xe):(Je={type:Ie.type,content:$e.Token.stringify(Ie.content,Xe,nt),tag:"span",classes:["token",Ie.type],attributes:{},language:Xe,parent:nt},Ie.alias&&(Je.classes=Je.classes.concat(Ie.alias)),$e.hooks.run("wrap",Je),ke(Je.tag+"."+Je.classes.join("."),be(Je.attributes),Je.content))}function fe(Ie,Xe){for(var nt=[],Je=Ie.length,st=-1,gt;++st<Je;)gt=Ie[st],gt!==""&>!==null&>!==void 0&&nt.push(gt);for(st=-1,Je=nt.length;++st<Je;)gt=nt[st],nt[st]=$e.Token.stringify(gt,Xe,nt);return nt}function me(Ie){return Ie}function be(Ie){var Xe;for(Xe in Ie)Ie[Xe]=De(Ie[Xe]);return Ie}function Ae(){var Ie="Prism"in oe,Xe=Ie?oe.Prism:void 0;return nt;function nt(){Ie?oe.Prism=Xe:delete oe.Prism,Ie=void 0,Xe=void 0}}},11594:function(We,Ee,ae){"use strict";var oe=ae(95489);We.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(We){"use strict";We.exports=Ee,Ee.displayName="abap",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="abnf",Ee.aliases=[];function Ee(ae){(function(oe){var Pe="(?: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-])"+Pe+"|<"+Pe+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(ae)}},42746:function(We){"use strict";We.exports=Ee,Ee.displayName="actionscript",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="ada",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="agda",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="al",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="antlr4",Ee.aliases=["g4"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="apacheconf",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(69435);We.exports=Pe,Pe.displayName="apex",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){var je=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Te=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return je.source});function Ge(Ke){return RegExp(Ke.replace(/<CLASS-NAME>/g,function(){return Te}),"i")}var lt={keyword:je,punctuation:/[()\[\]{};,:.<>]/};De.languages.apex={comment:De.languages.clike.comment,string:De.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:De.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ge(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:lt},{pattern:Ge(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:lt},{pattern:Ge(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:lt}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:je,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(ke)}},4248:function(We){"use strict";We.exports=Ee,Ee.displayName="apl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="applescript",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="aql",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(87071);We.exports=Pe,Pe.displayName="arduino",Pe.aliases=["ino"];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="arff",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="asciidoc",Ee.aliases=["adoc"];function Ee(ae){(function(oe){var Pe={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},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:Pe,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:Pe.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:Pe,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function De(je){je=je.split(" ");for(var Te={},Ge=0,lt=je.length;Ge<lt;Ge++)Te[je[Ge]]=ke[je[Ge]];return Te}Pe.inside.interpreted.inside.rest=De("macro inline replacement entity"),ke["passthrough-block"].inside.rest=De("macro"),ke["literal-block"].inside.rest=De("callout"),ke.table.inside.rest=De("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=De("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=De("macro inline replacement entity"),oe.hooks.add("wrap",function(je){je.type==="entity"&&(je.attributes.title=je.content.value.replace(/&/,"&"))}),oe.languages.adoc=oe.languages.asciidoc})(ae)}},45652:function(We){"use strict";We.exports=Ee,Ee.displayName="asm6502",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="asmatmel",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(87648);We.exports=Pe,Pe.displayName="aspnet",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="autohotkey",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="autoit",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="avisynth",Ee.aliases=["avs"];function Ee(ae){(function(oe){function Pe(Ke,He){return Ke.replace(/<<(\d+)>>/g,function(yt,$e){return He[+$e]})}function ke(Ke,He,yt){return RegExp(Pe(Ke,He),yt||"")}var De=/bool|clip|float|int|string|val/.source,je=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Te=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),Ge=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),lt=[je,Te,Ge].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,[De],"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,[lt],"i"),alias:"function"},"type-cast":{pattern:ke(/\b(?:<<0>>)(?=\s*\()/.source,[De],"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(We){"use strict";We.exports=Ee,Ee.displayName="avroIdl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="bash",Ee.aliases=["shell"];function Ee(ae){(function(oe){var Pe="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",ke={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},De={bash:ke,environment:{pattern:RegExp("\\$"+Pe),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Pe),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};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;|&]|[<>]\\()"+Pe),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:De},{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:De},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:De.entity}}],environment:{pattern:RegExp("\\$?"+Pe),alias:"constant"},variable:De.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 je=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Te=De.variable[1].inside,Ge=0;Ge<je.length;Ge++)Te[je[Ge]]=oe.languages.bash[je[Ge]];oe.languages.shell=oe.languages.bash})(ae)}},51422:function(We){"use strict";We.exports=Ee,Ee.displayName="basic",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="batch",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/%%?[~:\w]+%?|!\S+!/,ke={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},De=/"(?:[\\"]"|[^"])*"(?!")/,je=/(?:\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:De,parameter:ke,variable:Pe,number:je,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:De,parameter:ke,variable:Pe,number:je,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:De,parameter:ke,variable:[Pe,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:je,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:De,parameter:ke,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Pe,number:je,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(ae)}},2505:function(We){"use strict";We.exports=Ee,Ee.displayName="bbcode",Ee.aliases=["shortcode"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="bicep",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="birb",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="bison",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="bnf",Ee.aliases=["rbnf"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="brainfuck",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="brightscript",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="bro",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="bsl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="c",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="cfscript",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(87071);We.exports=Pe,Pe.displayName="chaiscript",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="cil",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="clike",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="clojure",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="cmake",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="cobol",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="coffeescript",Ee.aliases=["coffee"];function Ee(ae){(function(oe){var Pe=/#(?!\{).+/,ke={pattern:/#\{[^}]+\}/,alias:"variable"};oe.languages.coffeescript=oe.languages.extend("javascript",{comment:Pe,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:Pe,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(We){"use strict";We.exports=Ee,Ee.displayName="concurnas",Ee.aliases=["conc"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="coq",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,ke=0;ke<2;ke++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,"[]"),oe.languages.coq={comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Pe})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Pe),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(ae)}},87071:function(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="cpp",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){var je=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Te=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return je.source});De.languages.cpp=De.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return je.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:je,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),De.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}}),De.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:De.languages.cpp}}}}),De.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),De.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:De.languages.extend("cpp",{})}}),De.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},De.languages.cpp["base-clause"])}(ke)}},13652:function(We,Ee,ae){"use strict";var oe=ae(75308);We.exports=Pe,Pe.displayName="crystal",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){De.languages.crystal=De.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:[/->/,De.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),De.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:De.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:De.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(We){"use strict";We.exports=Ee,Ee.displayName="csharp",Ee.aliases=["dotnet","cs"];function Ee(ae){(function(oe){function Pe(Cn,St){return Cn.replace(/<<(\d+)>>/g,function(pt,ct){return"(?:"+St[+ct]+")"})}function ke(Cn,St,pt){return RegExp(Pe(Cn,St),pt||"")}function De(Cn,St){for(var pt=0;pt<St;pt++)Cn=Cn.replace(/<<self>>/g,function(){return"(?:"+Cn+")"});return Cn.replace(/<<self>>/g,"[^\\s\\S]")}var je={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Te(Cn){return"\\b(?:"+Cn.trim().replace(/ /g,"|")+")\\b"}var Ge=Te(je.typeDeclaration),lt=RegExp(Te(je.type+" "+je.typeDeclaration+" "+je.contextual+" "+je.other)),Ke=Te(je.typeDeclaration+" "+je.contextual+" "+je.other),He=Te(je.type+" "+je.typeDeclaration+" "+je.other),yt=De(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),$e=De(/\((?:[^()]|<<self>>)*\)/.source,2),Mt=/@?\b[A-Za-z_]\w*\b/.source,Fe=Pe(/<<0>>(?:\s*<<1>>)?/.source,[Mt,yt]),te=Pe(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Ke,Fe]),ee=/\[\s*(?:,\s*)*\]/.source,he=Pe(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[te,ee]),ue=Pe(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[yt,$e,ee]),fe=Pe(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ue]),me=Pe(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fe,te,ee]),be={keyword:lt,punctuation:/[<>()?,.:[\]]/},Ae=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Ie=/"(?:\\.|[^\\"\r\n])*"/.source,Xe=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;oe.languages.csharp=oe.languages.extend("clike",{string:[{pattern:ke(/(^|[^$\\])<<0>>/.source,[Xe]),lookbehind:!0,greedy:!0},{pattern:ke(/(^|[^@$\\])<<0>>/.source,[Ie]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:ke(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[te]),lookbehind:!0,inside:be},{pattern:ke(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Mt,me]),lookbehind:!0,inside:be},{pattern:ke(/(\busing\s+)<<0>>(?=\s*=)/.source,[Mt]),lookbehind:!0},{pattern:ke(/(\b<<0>>\s+)<<1>>/.source,[Ge,Fe]),lookbehind:!0,inside:be},{pattern:ke(/(\bcatch\s*\(\s*)<<0>>/.source,[te]),lookbehind:!0,inside:be},{pattern:ke(/(\bwhere\s+)<<0>>/.source,[Mt]),lookbehind:!0},{pattern:ke(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[he]),lookbehind:!0,inside:be},{pattern:ke(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[me,He,Mt]),inside:be}],keyword:lt,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,[Mt]),lookbehind:!0,alias:"punctuation"}}),oe.languages.insertBefore("csharp","class-name",{namespace:{pattern:ke(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Mt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:ke(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[$e]),lookbehind:!0,alias:"class-name",inside:be},"return-type":{pattern:ke(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[me,te]),inside:be,alias:"class-name"},"constructor-invocation":{pattern:ke(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[me]),lookbehind:!0,inside:be,alias:"class-name"},"generic-method":{pattern:ke(/<<0>>\s*<<1>>(?=\s*\()/.source,[Mt,yt]),inside:{function:ke(/^<<0>>/.source,[Mt]),generic:{pattern:RegExp(yt),alias:"class-name",inside:be}}},"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,[Ge,Fe,Mt,me,lt.source,$e,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:ke(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Fe,$e]),lookbehind:!0,greedy:!0,inside:oe.languages.csharp},keyword:lt,"class-name":{pattern:RegExp(me),greedy:!0,inside:be},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var nt=Ie+"|"+Ae,Je=Pe(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[nt]),st=De(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Je]),2),gt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,rt=Pe(/<<0>>(?:\s*\(<<1>>*\))?/.source,[te,st]);oe.languages.insertBefore("csharp","class-name",{attribute:{pattern:ke(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[gt,rt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:ke(/^<<0>>(?=\s*:)/.source,[gt]),alias:"keyword"},"attribute-arguments":{pattern:ke(/\(<<0>>*\)/.source,[st]),inside:oe.languages.csharp},"class-name":{pattern:RegExp(te),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var mt=/:[^}\r\n]+/.source,xt=De(Pe(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Je]),2),Tt=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[xt,mt]),zt=De(Pe(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[nt]),2),Qt=Pe(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[zt,mt]);function Kt(Cn,St){return{interpolation:{pattern:ke(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Cn]),lookbehind:!0,inside:{"format-string":{pattern:ke(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[St,mt]),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,[Tt]),lookbehind:!0,greedy:!0,inside:Kt(Tt,xt)},{pattern:ke(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Qt]),lookbehind:!0,greedy:!0,inside:Kt(Qt,zt)}],char:{pattern:RegExp(Ae),greedy:!0}}),oe.languages.dotnet=oe.languages.cs=oe.languages.csharp})(ae)}},10617:function(We,Ee,ae){"use strict";var oe=ae(87648);We.exports=Pe,Pe.displayName="cshtml",Pe.aliases=["razor"];function Pe(ke){ke.register(oe),function(De){var je=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Te=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ge(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,"(?:"+je+")")}var lt=Ge(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Ke=Ge(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),He=Ge(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),yt=Ge(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),$e=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Mt=/(?!\d)[^\s>\/=$<%]+/.source+$e+/\s*\/?>/.source,Fe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+$e+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Mt+"|"+Ge(/<\1/.source+$e+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Mt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Mt+")";De.languages.cshtml=De.languages.extend("markup",{});var te=De.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Fe),greedy:!0,inside:De.languages.cshtml}},{csharp:De.languages.extend("csharp",{})}),ee={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:te};De.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[He,/(?:code|functions)\s*/.source+He,/(?:for|foreach|lock|switch|using|while)\s*/.source+lt+/\s*/.source+He,/do\s*/.source+He+/\s*while\s*/.source+lt+/(?:\s*;)?/.source,/try\s*/.source+He+/\s*catch\s*/.source+lt+/\s*/.source+He+/\s*finally\s*/.source+He,/if\s*/.source+lt+/\s*/.source+He+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+lt+")?"+/\s*/.source+He+")*"].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+"|"+lt+")(?:"+/[?!]?\.\w+\b/.source+"|"+lt+"|"+Ke+"|"+yt+lt+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ee}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),De.languages.razor=De.languages.cshtml}(ke)}},5348:function(We){"use strict";We.exports=Ee,Ee.displayName="csp",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(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:Pe(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Pe(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Pe(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Pe(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Pe(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:Pe(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Pe(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(ae)}},71053:function(We){"use strict";We.exports=Ee,Ee.displayName="cssExtras",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/("|')(?:\\(?:\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(`\\[(?:[^[\\]"']|`+Pe.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[Pe,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},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 De={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},je={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:De,number:je,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:De,number:je})})(ae)}},54212:function(We){"use strict";We.exports=Ee,Ee.displayName="css",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:"(?:\\(?:\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\\((?:"+Pe.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Pe.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Pe.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Pe,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},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(We){"use strict";We.exports=Ee,Ee.displayName="csv",Ee.aliases=[];function Ee(ae){ae.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(We){"use strict";We.exports=Ee,Ee.displayName="cypher",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="d",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="dart",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],ke=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,De={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":[De,{pattern:RegExp(ke+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:De.inside}],keyword:Pe,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":De,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(ae)}},22117:function(We){"use strict";We.exports=Ee,Ee.displayName="dataweave",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="dax",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="dhall",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="diff",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Pe={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Pe).forEach(function(ke){var De=Pe[ke],je=[];/^\w+$/.test(ke)||je.push(/\w+/.exec(ke)[0]),ke==="diff"&&je.push("bold"),oe.languages.diff[ke]={pattern:RegExp("^(?:["+De+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:je,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:Pe})})(ae)}},32126:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="django",Pe.aliases=["jinja2"];function Pe(ke){ke.register(oe),function(De){De.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var je=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Te=De.languages["markup-templating"];De.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"django",je)}),De.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"django")}),De.languages.jinja2=De.languages.django,De.hooks.add("before-tokenize",function(Ge){Te.buildPlaceholders(Ge,"jinja2",je)}),De.hooks.add("after-tokenize",function(Ge){Te.tokenizePlaceholders(Ge,"jinja2")})}(ke)}},26737:function(We){"use strict";We.exports=Ee,Ee.displayName="dnsZoneFile",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="docker",Ee.aliases=["dockerfile"];function Ee(ae){(function(oe){var Pe=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,ke=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Pe}),De=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,je=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return De}),Te={pattern:RegExp(De),greedy:!0},Ge={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function lt(Ke,He){return Ke=Ke.replace(/<OPT>/g,function(){return je}).replace(/<SP>/g,function(){return ke}),RegExp(Ke,He)}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:lt(/(^(?: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:lt(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:lt(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:lt(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ge,string:Te,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ge},oe.languages.dockerfile=oe.languages.docker})(ae)}},51348:function(We){"use strict";We.exports=Ee,Ee.displayName="dot",Ee.aliases=["gv"];function Ee(ae){(function(oe){var Pe="(?:"+[/[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 De(je,Te){return RegExp(je.replace(/<ID>/g,function(){return Pe}),Te)}oe.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:De(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:ke},"attr-value":{pattern:De(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:ke},"attr-name":{pattern:De(/([\[;, \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:De(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:ke},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},oe.languages.gv=oe.languages.dot})(ae)}},60841:function(We){"use strict";We.exports=Ee,Ee.displayName="ebnf",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="editorconfig",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="eiffel",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="ejs",Pe.aliases=["eta"];function Pe(ke){ke.register(oe),function(De){De.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:De.languages.javascript}},De.hooks.add("before-tokenize",function(je){var Te=/<%(?!%)[\s\S]+?%>/g;De.languages["markup-templating"].buildPlaceholders(je,"ejs",Te)}),De.hooks.add("after-tokenize",function(je){De.languages["markup-templating"].tokenizePlaceholders(je,"ejs")}),De.languages.eta=De.languages.ejs}(ke)}},83125:function(We){"use strict";We.exports=Ee,Ee.displayName="elixir",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="elm",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(75308),Pe=ae(51478);We.exports=ke,ke.displayName="erb",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){je.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:je.languages.ruby}},je.hooks.add("before-tokenize",function(Te){var Ge=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;je.languages["markup-templating"].buildPlaceholders(Te,"erb",Ge)}),je.hooks.add("after-tokenize",function(Te){je.languages["markup-templating"].tokenizePlaceholders(Te,"erb")})}(De)}},86549:function(We){"use strict";We.exports=Ee,Ee.displayName="erlang",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(33978),Pe=ae(51478);We.exports=ke,ke.displayName="etlua",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){je.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:je.languages.lua}},je.hooks.add("before-tokenize",function(Te){var Ge=/<%[\s\S]+?%>/g;je.languages["markup-templating"].buildPlaceholders(Te,"etlua",Ge)}),je.hooks.add("after-tokenize",function(Te){je.languages["markup-templating"].tokenizePlaceholders(Te,"etlua")})}(De)}},59250:function(We){"use strict";We.exports=Ee,Ee.displayName="excelFormula",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="factor",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},ke={number:/\\[^\s']|%\w/},De={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Pe},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Pe}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number: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}},je=function(Ke){return(Ke+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Te=function(Ke){return new RegExp("(^|\\s)(?:"+Ke.map(je).join("|")+")(?=\\s|$)")},Ge={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(Ge).forEach(function(Ke){De[Ke].pattern=Te(Ge[Ke])});var lt=["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"];De.combinators.pattern=Te(lt),oe.languages.factor=De})(ae)}},65245:function(We){"use strict";We.exports=Ee,Ee.displayName="$false",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="firestoreSecurityRules",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="flow",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="fortran",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="fsharp",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="ftl",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){for(var je=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Te=0;Te<2;Te++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var Ge={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return je})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return je})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};Ge.string[1].inside.interpolation.inside.rest=Ge,De.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ge}}}},De.hooks.add("before-tokenize",function(lt){var Ke=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return je}),"gi");De.languages["markup-templating"].buildPlaceholders(lt,"ftl",Ke)}),De.hooks.add("after-tokenize",function(lt){De.languages["markup-templating"].tokenizePlaceholders(lt,"ftl")})}(ke)}},33534:function(We){"use strict";We.exports=Ee,Ee.displayName="gap",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="gcode",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="gdscript",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="gedcom",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="gherkin",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\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("("+Pe+")(?:"+Pe+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Pe),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(ae)}},58230:function(We){"use strict";We.exports=Ee,Ee.displayName="git",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="glsl",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="gml",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="gn",Ee.aliases=["gni"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="goModule",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="go",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="graphql",Ee.aliases=[];function Ee(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(Pe){if(Pe.language!=="graphql")return;var ke=Pe.tokens.filter(function(ee){return typeof ee!="string"&&ee.type!=="comment"&&ee.type!=="scalar"}),De=0;function je(ee){return ke[De+ee]}function Te(ee,he){he=he||0;for(var ue=0;ue<ee.length;ue++){var fe=je(ue+he);if(!fe||fe.type!==ee[ue])return!1}return!0}function Ge(ee,he){for(var ue=1,fe=De;fe<ke.length;fe++){var me=ke[fe],be=me.content;if(me.type==="punctuation"&&typeof be=="string"){if(ee.test(be))ue++;else if(he.test(be)&&(ue--,ue===0))return fe}}return-1}function lt(ee,he){var ue=ee.alias;ue?Array.isArray(ue)||(ee.alias=ue=[ue]):ee.alias=ue=[],ue.push(he)}for(;De<ke.length;){var Ke=ke[De++];if(Ke.type==="keyword"&&Ke.content==="mutation"){var He=[];if(Te(["definition-mutation","punctuation"])&&je(1).content==="("){De+=2;var yt=Ge(/^\($/,/^\)$/);if(yt===-1)continue;for(;De<yt;De++){var $e=je(0);$e.type==="variable"&&(lt($e,"variable-input"),He.push($e.content))}De=yt+1}if(Te(["punctuation","property-query"])&&je(0).content==="{"&&(De++,lt(je(0),"property-mutation"),He.length>0)){var Mt=Ge(/^\{$/,/^\}$/);if(Mt===-1)continue;for(var Fe=De;Fe<Mt;Fe++){var te=ke[Fe];te.type==="variable"&&He.indexOf(te.content)>=0&<(te,"variable-input")}}}}})}},63092:function(We){"use strict";We.exports=Ee,Ee.displayName="groovy",Ee.aliases=[];function Ee(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 Pe=oe.content.value[0];if(Pe!="'"){var ke=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Pe==="$"&&(ke=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),oe.content.value=oe.content.value.replace(/</g,"<").replace(/&/g,"&"),oe.content=ae.highlight(oe.content.value,{expression:{pattern:ke,lookbehind:!0,inside:ae.languages.groovy}}),oe.classes.push(Pe==="/"?"regex":"gstring")}}})}},21550:function(We,Ee,ae){"use strict";var oe=ae(75308);We.exports=Pe,Pe.displayName="haml",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){De.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:De.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:De.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:De.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:De.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:De.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:De.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:De.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var je="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Te=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ge={},lt=0,Ke=Te.length;lt<Ke;lt++){var He=Te[lt];He=typeof He=="string"?{filter:He,language:He}:He,De.languages[He.language]&&(Ge["filter-"+He.filter]={pattern:RegExp(je.replace("{{filter_name}}",function(){return He.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[He.language,"language-"+He.language],inside:De.languages[He.language]}}})}De.languages.insertBefore("haml","filter",Ge)}(ke)}},29710:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="handlebars",Pe.aliases=["hbs"];function Pe(ke){ke.register(oe),function(De){De.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]+/},De.hooks.add("before-tokenize",function(je){var Te=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;De.languages["markup-templating"].buildPlaceholders(je,"handlebars",Te)}),De.hooks.add("after-tokenize",function(je){De.languages["markup-templating"].tokenizePlaceholders(je,"handlebars")}),De.languages.hbs=De.languages.handlebars}(ke)}},2050:function(We){"use strict";We.exports=Ee,Ee.displayName="haskell",Ee.aliases=["hs"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="haxe",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="hcl",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="hlsl",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="hoon",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="hpkp",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="hsts",Ee.aliases=[];function Ee(ae){ae.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(We){"use strict";We.exports=Ee,Ee.displayName="http",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(He){return RegExp("(^(?:"+He+"):[ ]*(?![ ]))[^]+","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:Pe(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:oe.languages.csp},{pattern:Pe(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:oe.languages.hpkp},{pattern:Pe(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:oe.languages.hsts},{pattern:Pe(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var ke=oe.languages,De={"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},je={"application/json":!0,"application/xml":!0};function Te(He){var yt=He.replace(/^[a-z]+\//,""),$e="\\w+/(?:[\\w.-]+\\+)+"+yt+"(?![+\\w.-])";return"(?:"+He+"|"+$e+")"}var Ge;for(var lt in De)if(De[lt]){Ge=Ge||{};var Ke=je[lt]?Te(lt):lt;Ge[lt.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:De[lt]}}Ge&&oe.languages.insertBefore("http","header",Ge)})(ae)}},72252:function(We){"use strict";We.exports=Ee,Ee.displayName="ichigojam",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="icon",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="icuMessageFormat",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(lt,Ke){return Ke<=0?/[]/.source:lt.replace(/<SELF>/g,function(){return Pe(lt,Ke-1)})}var ke=/'[{}:=,](?:[^']|'')*'(?!')/,De={pattern:/''/,greedy:!0,alias:"operator"},je={pattern:ke,greedy:!0,inside:{escape:De}},Te=Pe(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return ke.source}),8),Ge={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":Ge,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":Ge,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+Pe(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:De,string:je},Ge.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(We,Ee,ae){"use strict";var oe=ae(2050);We.exports=Pe,Pe.displayName="idris",Pe.aliases=["idr"];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="iecst",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="ignore",Ee.aliases=["gitignore","hgignore","npmignore"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="inform7",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="ini",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="io",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="j",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="java",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,ke=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,De={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":[De,{pattern:RegExp(ke+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:De.inside}],keyword:Pe,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":De,keyword:Pe,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return Pe.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(ae)}},4005:function(We,Ee,ae){"use strict";var oe=ae(7093),Pe=ae(53510);We.exports=ke,ke.displayName="javadoc",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){var Te=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ge=/#\s*\w+(?:\s*\([^()]*\))?/.source,lt=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ge});je.languages.javadoc=je.languages.extend("javadoclike",{}),je.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+lt+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:je.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Te,lookbehind:!0,inside:je.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Te,lookbehind:!0,inside:{tag:je.languages.markup.tag,entity:je.languages.markup.entity,code:{pattern:/.+/,inside:je.languages.java,alias:"language-java"}}}}}],tag:je.languages.markup.tag,entity:je.languages.markup.entity}),je.languages.javadoclike.addSupport("java",je.languages.javadoc)}(De)}},53510:function(We){"use strict";We.exports=Ee,Ee.displayName="javadoclike",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=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(je,Te){var Ge="doc-comment",lt=oe.languages[je];if(lt){var Ke=lt[Ge];if(!Ke){var He={};He[Ge]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},lt=oe.languages.insertBefore(je,"comment",He),Ke=lt[Ge]}if(Ke instanceof RegExp&&(Ke=lt[Ge]={pattern:Ke}),Array.isArray(Ke))for(var yt=0,$e=Ke.length;yt<$e;yt++)Ke[yt]instanceof RegExp&&(Ke[yt]={pattern:Ke[yt]}),Te(Ke[yt]);else Te(Ke)}}function De(je,Te){typeof je=="string"&&(je=[je]),je.forEach(function(Ge){ke(Ge,function(lt){lt.inside||(lt.inside={}),lt.inside.rest=Te})})}Object.defineProperty(Pe,"addSupport",{value:De}),Pe.addSupport(["java","javascript","php"],Pe)})(ae)}},88786:function(We){"use strict";We.exports=Ee,Ee.displayName="javascript",Ee.aliases=["js"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="javastacktrace",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="jexl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="jolie",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="jq",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\\\((?:[^()]|\([^()]*\))*\)/.source,ke=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Pe})),De={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Pe),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},je=oe.languages.jq={comment:/#.*/,property:{pattern:RegExp(ke.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:De},string:{pattern:ke,lookbehind:!0,greedy:!0,inside:De},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"}};De.interpolation.inside.content.inside=je})(ae)}},89246:function(We){"use strict";We.exports=Ee,Ee.displayName="jsExtras",Ee.aliases=[];function Ee(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 Pe(lt,Ke){return RegExp(lt.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Ke)}oe.languages.insertBefore("javascript","keyword",{imports:{pattern:Pe(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:oe.languages.javascript},exports:{pattern:Pe(/(\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:Pe(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var ke=["function","function-variable","method","method-variable","property-access"],De=0;De<ke.length;De++){var je=ke[De],Te=oe.languages.javascript[je];oe.util.type(Te)==="RegExp"&&(Te=oe.languages.javascript[je]={pattern:Te});var Ge=Te.inside||{};Te.inside=Ge,Ge["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ae)}},487:function(We){"use strict";We.exports=Ee,Ee.displayName="jsTemplates",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.languages.javascript["template-string"],ke=Pe.pattern.source,De=Pe.inside.interpolation,je=De.inside["interpolation-punctuation"],Te=De.pattern.source;function Ge(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"]=[Ge("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ge("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ge("svg",/\bsvg/.source),Ge("markdown",/\b(?:markdown|md)/.source),Ge("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ge("sql",/\bsql/.source),Pe].filter(Boolean);function lt(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 He(Fe){var te={};te["interpolation-punctuation"]=je;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,De.alias,Fe)}function yt(Fe,te,ee){var he=oe.tokenize(Fe,{interpolation:{pattern:RegExp(Te),lookbehind:!0}}),ue=0,fe={},me=he.map(function(Xe){if(typeof Xe=="string")return Xe;for(var nt=Xe.content,Je;Fe.indexOf(Je=lt(ue++,ee))!==-1;);return fe[Je]=nt,Je}).join(""),be=Ke(me,te,ee),Ae=Object.keys(fe);ue=0;function Ie(Xe){for(var nt=0;nt<Xe.length;nt++){if(ue>=Ae.length)return;var Je=Xe[nt];if(typeof Je=="string"||typeof Je.content=="string"){var st=Ae[ue],gt=typeof Je=="string"?Je:Je.content,rt=gt.indexOf(st);if(rt!==-1){++ue;var mt=gt.substring(0,rt),xt=He(fe[st]),Tt=gt.substring(rt+st.length),zt=[];if(mt&&zt.push(mt),zt.push(xt),Tt){var Qt=[Tt];Ie(Qt),zt.push.apply(zt,Qt)}typeof Je=="string"?(Xe.splice.apply(Xe,[nt,1].concat(zt)),nt+=zt.length-1):Je.content=zt}}else{var Kt=Je.content;Array.isArray(Kt)?Ie(Kt):Ie([Kt])}}}return Ie(be),new oe.Token(ee,be,"language-"+ee,Fe)}var $e={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};oe.hooks.add("after-tokenize",function(Fe){if(!(Fe.language in $e))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 be=me[1];if(me.length===3&&typeof be!="string"&&be.type==="embedded-code"){var Ae=Mt(be),Ie=be.alias,Xe=Array.isArray(Ie)?Ie[0]:Ie,nt=oe.languages[Xe];if(!nt)continue;me[1]=yt(Ae,nt,Xe)}}else te(me)}}}te(Fe.tokens)});function Mt(Fe){return typeof Fe=="string"?Fe:Array.isArray(Fe)?Fe.map(Mt).join(""):Mt(Fe.content)}})(ae)}},79539:function(We,Ee,ae){"use strict";var oe=ae(53510),Pe=ae(92784);We.exports=ke,ke.displayName="jsdoc",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){var Te=je.languages.javascript,Ge=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,lt="(@(?:arg|argument|param|property)\\s+(?:"+Ge+"\\s+)?)";je.languages.jsdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp(lt+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),je.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(lt+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Te,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return Ge})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ge),lookbehind:!0,inside:{string:Te.string,number:Te.number,boolean:Te.boolean,keyword:je.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Te,alias:"language-javascript"}}}}),je.languages.javadoclike.addSupport("javascript",je.languages.jsdoc)}(De)}},15628:function(We){"use strict";We.exports=Ee,Ee.displayName="json",Ee.aliases=["webmanifest"];function Ee(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(We,Ee,ae){"use strict";var oe=ae(15628);We.exports=Pe,Pe.displayName="json5",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){var je=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;De.languages.json5=De.languages.extend("json",{property:[{pattern:RegExp(je.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:je,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(ke)}},73222:function(We,Ee,ae){"use strict";var oe=ae(15628);We.exports=Pe,Pe.displayName="jsonp",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="jsstacktrace",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="jsx",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=oe.util.clone(oe.languages.javascript),ke=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,De=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,je=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Te(Ke,He){return Ke=Ke.replace(/<S>/g,function(){return ke}).replace(/<BRACES>/g,function(){return De}).replace(/<SPREAD>/g,function(){return je}),RegExp(Ke,He)}je=Te(je).source,oe.languages.jsx=oe.languages.extend("markup",Pe),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=Pe.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 Ge=function(Ke){return Ke?typeof Ke=="string"?Ke:typeof Ke.content=="string"?Ke.content:Ke.content.map(Ge).join(""):""},lt=function(Ke){for(var He=[],yt=0;yt<Ke.length;yt++){var $e=Ke[yt],Mt=!1;if(typeof $e!="string"&&($e.type==="tag"&&$e.content[0]&&$e.content[0].type==="tag"?$e.content[0].content[0].content==="</"?He.length>0&&He[He.length-1].tagName===Ge($e.content[0].content[1])&&He.pop():$e.content[$e.content.length-1].content==="/>"||He.push({tagName:Ge($e.content[0].content[1]),openedBraces:0}):He.length>0&&$e.type==="punctuation"&&$e.content==="{"?He[He.length-1].openedBraces++:He.length>0&&He[He.length-1].openedBraces>0&&$e.type==="punctuation"&&$e.content==="}"?He[He.length-1].openedBraces--:Mt=!0),(Mt||typeof $e=="string")&&He.length>0&&He[He.length-1].openedBraces===0){var Fe=Ge($e);yt<Ke.length-1&&(typeof Ke[yt+1]=="string"||Ke[yt+1].type==="plain-text")&&(Fe+=Ge(Ke[yt+1]),Ke.splice(yt+1,1)),yt>0&&(typeof Ke[yt-1]=="string"||Ke[yt-1].type==="plain-text")&&(Fe=Ge(Ke[yt-1])+Fe,Ke.splice(yt-1,1),yt--),Ke[yt]=new oe.Token("plain-text",Fe,null,Fe)}$e.content&&typeof $e.content!="string"&<($e.content)}};oe.hooks.add("after-tokenize",function(Ke){Ke.language!=="jsx"&&Ke.language!=="tsx"||lt(Ke.tokens)})})(ae)}},40604:function(We){"use strict";We.exports=Ee,Ee.displayName="julia",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="keepalived",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="keyman",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="kotlin",Ee.aliases=["kt","kts"];function Ee(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 Pe={"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:Pe},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Pe},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete 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(We){"use strict";We.exports=Ee,Ee.displayName="kumir",Ee.aliases=["kum"];function Ee(ae){(function(oe){var Pe=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function ke(De,je){return RegExp(De.replace(/<nonId>/g,Pe),je)}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(We){"use strict";We.exports=Ee,Ee.displayName="kusto",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="latex",Ee.aliases=["tex","context"];function Ee(ae){(function(oe){var Pe=/\\(?:[^a-z()[\]]|[a-z*]+)/i,ke={"equation-command":{pattern:Pe,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:Pe,alias:"selector"},punctuation:/[[\]{}&]/},oe.languages.tex=oe.languages.latex,oe.languages.context=oe.languages.latex})(ae)}},22776:function(We,Ee,ae){"use strict";var oe=ae(51478),Pe=ae(53852);We.exports=ke,ke.displayName="latte",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){je.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:je.languages.php}};var Te=je.languages.extend("markup",{});je.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:je.languages.php}}}}}},Te.tag),je.hooks.add("before-tokenize",function(Ge){if(Ge.language==="latte"){var lt=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;je.languages["markup-templating"].buildPlaceholders(Ge,"latte",lt),Ge.grammar=Te}}),je.hooks.add("after-tokenize",function(Ge){je.languages["markup-templating"].tokenizePlaceholders(Ge,"latte")})}(De)}},89700:function(We){"use strict";We.exports=Ee,Ee.displayName="less",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(48780);We.exports=Pe,Pe.displayName="lilypond",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){for(var je=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Te=5,Ge=0;Ge<Te;Ge++)je=je.replace(/<expr>/g,function(){return je});je=je.replace(/<expr>/g,/[^\s\S]/.source);var lt=De.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return je}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:De.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/};lt["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=lt,De.languages.ly=lt}(ke)}},39940:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="liquid",Pe.aliases=[];function Pe(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(De){var je=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Te=!1;ke.languages["markup-templating"].buildPlaceholders(De,"liquid",je,function(Ge){var lt=/^\{%-?\s*(\w+)/.exec(Ge);if(lt){var Ke=lt[1];if(Ke==="raw"&&!Te)return Te=!0,!0;if(Ke==="endraw")return Te=!1,!0}return!Te})}),ke.hooks.add("after-tokenize",function(De){ke.languages["markup-templating"].tokenizePlaceholders(De,"liquid")})}},34973:function(We){"use strict";We.exports=Ee,Ee.displayName="lisp",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Fe){return RegExp(/(\()/.source+"(?:"+Fe+")"+/(?=[\s\)])/.source)}function ke(Fe){return RegExp(/([\s([])/.source+"(?:"+Fe+")"+/(?=[\s)])/.source)}var De=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,je="&"+De,Te="(\\()",Ge="(?=\\))",lt="(?=\\s)",Ke=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,He={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+De+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+De),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+De),alias:"property"},splice:{pattern:RegExp(",@?"+De),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)"+lt),lookbehind:!0},{pattern:RegExp(Te+"(?:append|by|collect|concat|do|finally|for|in|return)"+lt),lookbehind:!0}],declare:{pattern:Pe(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Pe(/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+"+De),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(De)}},defun:{pattern:RegExp(Te+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+De+/\s+\(/.source+Ke+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+De),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Te+"lambda\\s+\\(\\s*(?:&?"+De+"(?:\\s+&?"+De+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Te+De),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},yt={"lisp-marker":RegExp(je),varform:{pattern:RegExp(/\(/.source+De+/\s+(?=\S)/.source+Ke+/\)/.source),inside:He},argument:{pattern:RegExp(/(^|[\s(])/.source+De),lookbehind:!0,alias:"variable"},rest:He},$e="\\S+(?:\\s+\\S+)*",Mt={pattern:RegExp(Te+Ke+Ge),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+$e),inside:yt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+$e),inside:yt},keys:{pattern:RegExp("&key\\s+"+$e+"(?:\\s+&allow-other-keys)?"),inside:yt},argument:{pattern:RegExp(De),alias:"variable"},punctuation:/[()]/}};He.lambda.inside.arguments=Mt,He.defun.inside.arguments=oe.util.clone(Mt),He.defun.inside.arguments.inside.sublist=Mt,oe.languages.lisp=He,oe.languages.elisp=He,oe.languages.emacs=He,oe.languages["emacs-lisp"]=He})(ae)}},98135:function(We){"use strict";We.exports=Ee,Ee.displayName="livescript",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="llvm",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="log",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="lolcode",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="lua",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="magma",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="makefile",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="markdown",Ee.aliases=["md"];function Ee(ae){(function(oe){var Pe=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function ke(yt){return yt=yt.replace(/<inner>/g,function(){return Pe}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+yt+")")}var De=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,je=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return De}),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("^"+je+Te+"(?:"+je+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+je+Te+")(?:"+je+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(De),inside:oe.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+je+")"+Te+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+je+"$"),inside:{"table-header":{pattern:RegExp(De),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(yt){["url","bold","italic","strike","code-snippet"].forEach(function($e){yt!==$e&&(oe.languages.markdown[yt].inside.content.inside[$e]=oe.languages.markdown[$e])})}),oe.hooks.add("after-tokenize",function(yt){if(yt.language!=="markdown"&&yt.language!=="md")return;function $e(Mt){if(!(!Mt||typeof Mt=="string"))for(var Fe=0,te=Mt.length;Fe<te;Fe++){var ee=Mt[Fe];if(ee.type!=="code"){$e(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]}}}$e(yt.tokens)}),oe.hooks.add("wrap",function(yt){if(yt.type==="code-block"){for(var $e="",Mt=0,Fe=yt.classes.length;Mt<Fe;Mt++){var te=yt.classes[Mt],ee=/language-(.+)/.exec(te);if(ee){$e=ee[1];break}}var he=oe.languages[$e];if(he)yt.content=oe.highlight(He(yt.content.value),he,$e);else if($e&&$e!=="none"&&oe.plugins.autoloader){var ue="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);yt.attributes.id=ue,oe.plugins.autoloader.loadLanguages($e,function(){var fe=document.getElementById(ue);fe&&(fe.innerHTML=oe.highlight(fe.textContent,oe.languages[$e],$e))})}}});var Ge=RegExp(oe.languages.markup.tag.pattern.source,"gi"),lt={amp:"&",lt:"<",gt:">",quot:'"'},Ke=String.fromCodePoint||String.fromCharCode;function He(yt){var $e=yt.replace(Ge,"");return $e=$e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Mt,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=lt[Fe];return ee||Mt}}),$e}oe.languages.md=oe.languages.markdown})(ae)}},51478:function(We){"use strict";We.exports=Ee,Ee.displayName="markupTemplating",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(ke,De){return"___"+ke.toUpperCase()+De+"___"}Object.defineProperties(oe.languages["markup-templating"]={},{buildPlaceholders:{value:function(ke,De,je,Te){if(ke.language===De){var Ge=ke.tokenStack=[];ke.code=ke.code.replace(je,function(lt){if(typeof Te=="function"&&!Te(lt))return lt;for(var Ke=Ge.length,He;ke.code.indexOf(He=Pe(De,Ke))!==-1;)++Ke;return Ge[Ke]=lt,He}),ke.grammar=oe.languages.markup}}},tokenizePlaceholders:{value:function(ke,De){if(ke.language!==De||!ke.tokenStack)return;ke.grammar=oe.languages[De];var je=0,Te=Object.keys(ke.tokenStack);function Ge(lt){for(var Ke=0;Ke<lt.length&&!(je>=Te.length);Ke++){var He=lt[Ke];if(typeof He=="string"||He.content&&typeof He.content=="string"){var yt=Te[je],$e=ke.tokenStack[yt],Mt=typeof He=="string"?He:He.content,Fe=Pe(De,yt),te=Mt.indexOf(Fe);if(te>-1){++je;var ee=Mt.substring(0,te),he=new oe.Token(De,oe.tokenize($e,ke.grammar),"language-"+De,$e),ue=Mt.substring(te+Fe.length),fe=[];ee&&fe.push.apply(fe,Ge([ee])),fe.push(he),ue&&fe.push.apply(fe,Ge([ue])),typeof He=="string"?lt.splice.apply(lt,[Ke,1].concat(fe)):He.content=fe}}else He.content&&Ge(He.content)}return lt}Ge(ke.tokens)}}})})(ae)}},70614:function(We){"use strict";We.exports=Ee,Ee.displayName="markup",Ee.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Ee(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(/&/,"&"))}),Object.defineProperty(ae.languages.markup.tag,"addInlined",{value:function(Pe,ke){var De={};De["language-"+ke]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ae.languages[ke]},De.cdata=/^<!\[CDATA\[|\]\]>$/i;var je={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:De}};je["language-"+ke]={pattern:/[\s\S]+/,inside:ae.languages[ke]};var Te={};Te[Pe]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Pe}),"i"),lookbehind:!0,greedy:!0,inside:je},ae.languages.insertBefore("markup","cdata",Te)}}),Object.defineProperty(ae.languages.markup.tag,"addAttribute",{value:function(oe,Pe){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:[Pe,"language-"+Pe],inside:ae.languages[Pe]},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(We){"use strict";We.exports=Ee,Ee.displayName="matlab",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="maxscript",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;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)+")[ ]*)(?!"+Pe.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Pe.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:Pe,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(ae)}},37164:function(We){"use strict";We.exports=Ee,Ee.displayName="mel",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="mermaid",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="mizar",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="mongodb",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],ke=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Pe=Pe.map(function(je){return je.replace("$","\\$")});var De="(?:"+Pe.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(`^(['"])?`+De+"(?:\\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(We){"use strict";We.exports=Ee,Ee.displayName="monkey",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="moonscript",Ee.aliases=["moon"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="n1ql",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="n4js",Ee.aliases=["n4jsd"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="nand2tetrisHdl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="naniscript",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\{[^\r\n\[\]{}]*\}/,ke={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Pe,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};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:Pe,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:Pe,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside: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 Ge=Te.tokens;Ge.forEach(function(lt){if(typeof lt!="string"&<.type==="generic-text"){var Ke=je(lt);De(Ke)||(lt.type="bad-line",lt.content=Ke)}})});function De(Te){for(var Ge="[]{}",lt=[],Ke=0;Ke<Te.length;Ke++){var He=Te[Ke],yt=Ge.indexOf(He);if(yt!==-1){if(yt%2===0)lt.push(yt+1);else if(lt.pop()!==yt)return!1}}return lt.length===0}function je(Te){return typeof Te=="string"?Te:Array.isArray(Te)?Te.map(je).join(""):je(Te.content)}})(ae)}},42846:function(We){"use strict";We.exports=Ee,Ee.displayName="nasm",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="neon",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="nevod",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="nginx",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\$(?:\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:Pe}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:Pe}},punctuation:/[{};]/}})(ae)}},66791:function(We){"use strict";We.exports=Ee,Ee.displayName="nim",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="nix",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="nsis",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="objectivec",Pe.aliases=["objc"];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="ocaml",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(79440);We.exports=Pe,Pe.displayName="opencl",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){De.languages.opencl=De.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"}}),De.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var je={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};De.languages.insertBefore("c","keyword",je),De.languages.cpp&&(je["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},De.languages.insertBefore("cpp","keyword",je))}(ke)}},27734:function(We){"use strict";We.exports=Ee,Ee.displayName="openqasm",Ee.aliases=["qasm"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="oz",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="parigp",Ee.aliases=[];function Ee(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(Pe){return Pe.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(We){"use strict";We.exports=Ee,Ee.displayName="parser",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=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:/[\[\](){};]/});Pe=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:Pe.keyword,variable:Pe.variable,function:Pe.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Pe.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Pe.punctuation}}}),oe.languages.insertBefore("inside","punctuation",{expression:Pe.expression,keyword:Pe.keyword,variable:Pe.variable,function:Pe.function,escape:Pe.escape,"parser-punctuation":{pattern:Pe.punctuation,alias:"punctuation"}},Pe.tag.inside["attr-value"])})(ae)}},92949:function(We){"use strict";We.exports=Ee,Ee.displayName="pascal",Ee.aliases=["objectpascal"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="pascaligo",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,ke=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Pe}),De=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:/\(\.|\.\)|[()\[\]:;,.{}]/},je=["comment","keyword","builtin","operator","punctuation"].reduce(function(Te,Ge){return Te[Ge]=De[Ge],Te},{});De["class-name"].forEach(function(Te){Te.inside=je})})(ae)}},70696:function(We){"use strict";We.exports=Ee,Ee.displayName="pcaxis",Ee.aliases=["px"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="peoplecode",Ee.aliases=["pcode"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="perl",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\((?:[^()\\]|\\[\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,Pe].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,Pe].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,Pe+/\s*/.source+Pe].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(ae)}},65889:function(We,Ee,ae){"use strict";var oe=ae(53852);We.exports=Pe,Pe.displayName="phpExtras",Pe.aliases=[];function Pe(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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="php",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){var je=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Te=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Ge=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,lt=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Ke=/[{}\[\](),:;]/;De.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:je,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ge,operator:lt,punctuation:Ke};var He={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:De.languages.php},yt=[{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:He}},{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:He}}];De.languages.insertBefore("php","variable",{string:yt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:je,string:yt,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Te,number:Ge,operator:lt,punctuation:Ke}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),De.hooks.add("before-tokenize",function($e){if(/<\?/.test($e.code)){var Mt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;De.languages["markup-templating"].buildPlaceholders($e,"php",Mt)}}),De.hooks.add("after-tokenize",function($e){De.languages["markup-templating"].tokenizePlaceholders($e,"php")})}(ke)}},97719:function(We,Ee,ae){"use strict";var oe=ae(53852),Pe=ae(53510);We.exports=ke,ke.displayName="phpdoc",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){var Te=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;je.languages.phpdoc=je.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Te+"\\s+)?)\\$\\w+"),lookbehind:!0}}),je.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Te),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),je.languages.javadoclike.addSupport("php",je.languages.phpdoc)}(De)}},63839:function(We,Ee,ae){"use strict";var oe=ae(69435);We.exports=Pe,Pe.displayName="plsql",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="powerquery",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="powershell",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=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:/[|{}[\];(),.]/};Pe.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Pe},boolean:Pe.boolean,variable:Pe.variable}})(ae)}},8938:function(We){"use strict";We.exports=Ee,Ee.displayName="processing",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="prolog",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="promql",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],ke=["on","ignoring","group_right","group_left","by","without"],De=["offset"],je=Pe.concat(ke,De);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(?:"+je.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(ae)}},15375:function(We){"use strict";We.exports=Ee,Ee.displayName="properties",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="protobuf",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\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:Pe}},builtin:Pe,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(ae)}},83588:function(We){"use strict";We.exports=Ee,Ee.displayName="psl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="pug",Ee.aliases=[];function Ee(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 Pe=/(^([\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"],De={},je=0,Te=ke.length;je<Te;je++){var Ge=ke[je];Ge=typeof Ge=="string"?{filter:Ge,language:Ge}:Ge,oe.languages[Ge.language]&&(De["filter-"+Ge.filter]={pattern:RegExp(Pe.replace("<filter_name>",function(){return Ge.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ge.language,"language-"+Ge.language],inside:oe.languages[Ge.language]}}})}oe.languages.insertBefore("pug","filter",De)})(ae)}},21294:function(We){"use strict";We.exports=Ee,Ee.displayName="puppet",Ee.aliases=[];function Ee(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 Pe=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:oe.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];oe.languages.puppet.heredoc[0].inside.interpolation=Pe,oe.languages.puppet.string.inside["double-quoted"].inside.interpolation=Pe})(ae)}},38709:function(We){"use strict";We.exports=Ee,Ee.displayName="pure",Ee.aliases=[];function Ee(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 Pe=["c",{lang:"c++",alias:"cpp"},"fortran"],ke=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Pe.forEach(function(De){var je=De;if(typeof De!="string"&&(je=De.alias,De=De.lang),oe.languages[je]){var Te={};Te["inline-lang-"+je]={pattern:RegExp(ke.replace("<lang>",De.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:oe.util.clone(oe.languages.pure["inline-lang"].inside)},Te["inline-lang-"+je].inside.rest=oe.util.clone(oe.languages[je]),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(We){"use strict";We.exports=Ee,Ee.displayName="purebasic",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(2050);We.exports=Pe,Pe.displayName="purescript",Pe.aliases=["purs"];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="python",Ee.aliases=["py"];function Ee(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://,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(We){"use strict";We.exports=Ee,Ee.displayName="q",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="qml",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,ke=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,De=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Pe}).replace(/<comment>/g,function(){return ke}),je=0;je<2;je++)De=De.replace(/<expr>/g,function(){return De});De=De.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 De}),"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 De}),"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(We){"use strict";We.exports=Ee,Ee.displayName="qore",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="qsharp",Ee.aliases=["qs"];function Ee(ae){(function(oe){function Pe(Mt,Fe){return Mt.replace(/<<(\d+)>>/g,function(te,ee){return"(?:"+Fe[+ee]+")"})}function ke(Mt,Fe,te){return RegExp(Pe(Mt,Fe),te||"")}function De(Mt,Fe){for(var te=0;te<Fe;te++)Mt=Mt.replace(/<<self>>/g,function(){return"(?:"+Mt+")"});return Mt.replace(/<<self>>/g,"[^\\s\\S]")}var je={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Te(Mt){return"\\b(?:"+Mt.trim().replace(/ /g,"|")+")\\b"}var Ge=RegExp(Te(je.type+" "+je.other)),lt=/\b[A-Za-z_]\w*\b/.source,Ke=Pe(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[lt]),He={keyword:Ge,punctuation:/[<>()?,.:[\]]/},yt=/"(?:\\.|[^\\"])*"/.source;oe.languages.qsharp=oe.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:ke(/(^|[^$\\])<<0>>/.source,[yt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:ke(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Ke]),lookbehind:!0,inside:He},{pattern:ke(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Ke]),lookbehind:!0,inside:He}],keyword:Ge,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),oe.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var $e=De(Pe(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[yt]),2);oe.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:ke(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[$e]),greedy:!0,inside:{interpolation:{pattern:ke(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[$e]),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(We){"use strict";We.exports=Ee,Ee.displayName="r",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(48780);We.exports=Pe,Pe.displayName="racket",Pe.aliases=["rkt"];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="reason",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="regex",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={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]|.)/,De={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},je={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Te="(?:[^\\\\-]|"+ke.source+")",Ge=RegExp(Te+"-"+Te),lt={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:Ge,inside:{escape:ke,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Pe,"char-set":je,escape:ke}},"special-escape":Pe,"char-set":De,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":lt}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:ke,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":lt}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ae)}},97534:function(We){"use strict";We.exports=Ee,Ee.displayName="rego",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="renpy",Ee.aliases=["rpy"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="rest",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="rip",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="roboconf",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="robotframework",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},ke={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function De(lt,Ke){var He={};He["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var yt in Ke)He[yt]=Ke[yt];return He.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},He.variable=ke,He.comment=Pe,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return lt}),"im"),alias:"section",inside:He}}var je={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Te={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:ke}},Ge={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:ke}};oe.languages.robotframework={settings:De("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:De("Variables"),"test-cases":De("Test Cases",{"test-name":Te,documentation:je,property:Ge}),keywords:De("Keywords",{"keyword-name":Te,documentation:je,property:Ge}),tasks:De("Tasks",{"task-name":Te,documentation:je,property:Ge}),comment:Pe},oe.languages.robot=oe.languages.robotframework})(ae)}},75308:function(We){"use strict";We.exports=Ee,Ee.displayName="ruby",Ee.aliases=["rb"];function Ee(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 Pe={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("|")+")",De=/(?:"(?:\\.|[^"\\\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:Pe,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Pe,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+De),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+De+/(?=:(?!:))/.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:Pe,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:Pe,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+ke),greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Pe,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete 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(We){"use strict";We.exports=Ee,Ee.displayName="rust",Ee.aliases=[];function Ee(ae){(function(oe){for(var Pe=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,ke=0;ke<2;ke++)Pe=Pe.replace(/<self>/g,function(){return Pe});Pe=Pe.replace(/<self>/g,function(){return/[^\s\S]/.source}),oe.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Pe),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},oe.languages.rust["closure-params"].inside.rest=oe.languages.rust,oe.languages.rust.attribute.inside.string=oe.languages.rust.string})(ae)}},13794:function(We){"use strict";We.exports=Ee,Ee.displayName="sas",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,ke=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,De={pattern:RegExp(Pe+"[bx]"),alias:"number"},je={pattern:/&[a-z_]\w*/i},Te={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},Ge={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},lt=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Ke={pattern:RegExp(Pe),greedy:!0},He=/[$%@.(){}\[\];,\\]/,yt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},$e={function:yt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":je,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:ke,"numeric-constant":De,punctuation:He,string:Ke},Mt={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:lt,function:yt,"arg-value":$e["arg-value"],operator:$e.operator,argument:$e.arg,number:ke,"numeric-constant":De,punctuation:He,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 Pe}),"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":De,punctuation:He,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:lt,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-groovy",inside:oe.languages.groovy},keyword:fe,"submit-statement":ee,"global-statements":te,number:ke,"numeric-constant":De,punctuation:He,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:lt,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,alias:"language-lua",inside:oe.languages.lua},keyword:fe,"submit-statement":ee,"global-statements":te,number:ke,"numeric-constant":De,punctuation:He,string:Ke}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:lt,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:$e}},"cas-actions":ue,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:$e},step:Ge,keyword:fe,function:yt,format:Mt,altformat:Fe,"global-statements":te,number:ke,"numeric-constant":De,punctuation:He,string:Ke}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Pe}),"im"),lookbehind:!0,inside:$e},"macro-keyword":Te,"macro-variable":je,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Te,"macro-variable":je,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:He}},"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:lt,number:ke,"numeric-constant":De}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:$e},"cas-actions":ue,comment:lt,function:yt,format:Mt,altformat:Fe,"numeric-constant":De,datetime:{pattern:RegExp(Pe+"(?:dt?|t)"),alias:"number"},string:Ke,step:Ge,keyword:fe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:ke,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:He}})(ae)}},41299:function(We){"use strict";We.exports=Ee,Ee.displayName="sass",Ee.aliases=[];function Ee(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 Pe=/\$[-\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:Pe,operator:ke}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Pe,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(We,Ee,ae){"use strict";var oe=ae(7093);We.exports=Pe,Pe.displayName="scala",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="scheme",Ee.aliases=[];function Ee(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(Pe({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function Pe(ke){for(var De in ke)ke[De]=ke[De].replace(/<[\w\s]+>/g,function(je){return"(?:"+ke[je].trim()+")"});return ke[De]}})(ae)}},79793:function(We){"use strict";We.exports=Ee,Ee.displayName="scss",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(3058);We.exports=Pe,Pe.displayName="shellSession",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){var je=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");De.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return je}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:De.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},De.languages["sh-session"]=De.languages.shellsession=De.languages["shell-session"]}(ke)}},65411:function(We){"use strict";We.exports=Ee,Ee.displayName="smali",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="smalltalk",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="smarty",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){De.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:De.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/]},De.languages.smarty["embedded-php"].inside.smarty.inside=De.languages.smarty,De.languages.smarty.string[0].inside.interpolation.inside.expression.inside=De.languages.smarty;var je=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Te=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return je.source}),"g");De.hooks.add("before-tokenize",function(Ge){var lt="{literal}",Ke="{/literal}",He=!1;De.languages["markup-templating"].buildPlaceholders(Ge,"smarty",Te,function(yt){return yt===Ke&&(He=!1),He?!1:(yt===lt&&(He=!0),!0)})}),De.hooks.add("after-tokenize",function(Ge){De.languages["markup-templating"].tokenizePlaceholders(Ge,"smarty")})}(ke)}},66433:function(We){"use strict";We.exports=Ee,Ee.displayName="sml",Ee.aliases=["smlnj"];function Ee(ae){(function(oe){var Pe=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;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 Pe.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:Pe,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},oe.languages.sml["class-name"][0].inside=oe.languages.sml,oe.languages.smlnj=oe.languages.sml})(ae)}},34855:function(We){"use strict";We.exports=Ee,Ee.displayName="solidity",Ee.aliases=["sol"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="solutionFile",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={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:Pe}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:Pe}},guid:Pe,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},oe.languages.sln=oe.languages["solution-file"]})(ae)}},10202:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="soy",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){var je=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Te=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;De.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:je,greedy:!0},number:Te,punctuation:/[\[\].?]/}},string:{pattern:je,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Te,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},De.hooks.add("before-tokenize",function(Ge){var lt=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Ke="{literal}",He="{/literal}",yt=!1;De.languages["markup-templating"].buildPlaceholders(Ge,"soy",lt,function($e){return $e===He&&(yt=!1),yt?!1:($e===Ke&&(yt=!0),!0)})}),De.hooks.add("after-tokenize",function(Ge){De.languages["markup-templating"].tokenizePlaceholders(Ge,"soy")})}(ke)}},41186:function(We,Ee,ae){"use strict";var oe=ae(58710);We.exports=Pe,Pe.displayName="sparql",Pe.aliases=["rq"];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="splunkSpl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="sqf",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="sql",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="squirrel",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="stan",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;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("("+Pe.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,Pe],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},oe.languages.stan.constraint.inside.expression.inside=oe.languages.stan})(ae)}},89032:function(We){"use strict";We.exports=Ee,Ee.displayName="stylus",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},ke={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},De={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Pe,number:ke,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Pe,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:ke,punctuation:/[{}()\[\];:,]/};De.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:De}},De.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:De}},oe.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:De}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:De}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:De}},"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:De.interpolation}},rest:De}},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:De.interpolation,comment:De.comment,punctuation:/[{},]/}},func:De.func,string:De.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:De.interpolation,punctuation:/[{}()\[\];:.]/}})(ae)}},40241:function(We){"use strict";We.exports=Ee,Ee.displayName="swift",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="systemd",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={pattern:/^[;#].*/m,greedy:!0},ke=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;oe.languages.systemd={comment:Pe,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+ke+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+ke+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Pe,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(We,Ee,ae){"use strict";var oe=ae(73584),Pe=ae(87648);We.exports=ke,ke.displayName="t4Cs",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),De.languages.t4=De.languages["t4-cs"]=De.languages["t4-templating"].createT4("csharp")}},73584:function(We){"use strict";We.exports=Ee,Ee.displayName="t4Templating",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(De,je,Te){return{pattern:RegExp("<#"+De+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+De+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:je,alias:Te}}}}function ke(De){var je=oe.languages[De],Te="language-"+De;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Pe("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Pe("=",je,Te),"class-feature":Pe("\\+",je,Te),standard:Pe("",je,Te)}}}}oe.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:ke})})(ae)}},79243:function(We,Ee,ae){"use strict";var oe=ae(73584),Pe=ae(55686);We.exports=ke,ke.displayName="t4Vb",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),De.languages["t4-vb"]=De.languages["t4-templating"].createT4("vbnet")}},31788:function(We,Ee,ae){"use strict";var oe=ae(14409);We.exports=Pe,Pe.displayName="tap",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="tcl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="textile",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,ke=/\)|\((?![^|()\n]+\))/.source;function De(yt,$e){return RegExp(yt.replace(/<MOD>/g,function(){return"(?:"+Pe+")"}).replace(/<PAR>/g,function(){return"(?:"+ke+")"}),$e||"")}var je={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:De(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:De(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:je},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:De(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:De(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/^[*#]+/}},table:{pattern:De(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:De(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:je},punctuation:/\||^\./}},inline:{pattern:De(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:De(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:De(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:De(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:De(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:De(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:De(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:De(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:De(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:je},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:De(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:De(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:De(/(^")<MOD>+/.source),lookbehind:!0,inside:je},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:De(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:De(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:De(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:je},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),Ge=Te.phrase.inside,lt={inline:Ge.inline,link:Ge.link,image:Ge.image,footnote:Ge.footnote,acronym:Ge.acronym,mark:Ge.mark};Te.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Ke=Ge.inline.inside;Ke.bold.inside=lt,Ke.italic.inside=lt,Ke.inserted.inside=lt,Ke.deleted.inside=lt,Ke.span.inside=lt;var He=Ge.table.inside;He.inline=lt.inline,He.link=lt.link,He.image=lt.image,He.footnote=lt.footnote,He.acronym=lt.acronym,He.mark=lt.mark})(ae)}},14693:function(We){"use strict";We.exports=Ee,Ee.displayName="toml",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function ke(De){return De.replace(/__/g,function(){return Pe})}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(We){"use strict";We.exports=Ee,Ee.displayName="tremor",Ee.aliases=[];function Ee(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 Pe=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;oe.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Pe+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Pe+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Pe),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:oe.languages.tremor}}},string:/[\s\S]+/}},oe.languages.troy=oe.languages.tremor,oe.languages.trickle=oe.languages.tremor})(ae)}},1689:function(We,Ee,ae){"use strict";var oe=ae(24103),Pe=ae(92784);We.exports=ke,ke.displayName="tsx",ke.aliases=[];function ke(De){De.register(oe),De.register(Pe),function(je){var Te=je.util.clone(je.languages.typescript);je.languages.tsx=je.languages.extend("jsx",Te),delete je.languages.tsx.parameter,delete je.languages.tsx["literal-property"];var Ge=je.languages.tsx.tag;Ge.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ge.pattern.source+")",Ge.pattern.flags),Ge.lookbehind=!0}(De)}},69210:function(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="tt2",Pe.aliases=[];function Pe(ke){ke.register(oe),function(De){De.languages.tt2=De.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:/[[\]{},()]/}),De.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),De.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),De.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 De.languages.tt2.string,De.hooks.add("before-tokenize",function(je){var Te=/\[%[\s\S]+?%\]/g;De.languages["markup-templating"].buildPlaceholders(je,"tt2",Te)}),De.hooks.add("after-tokenize",function(je){De.languages["markup-templating"].tokenizePlaceholders(je,"tt2")})}(ke)}},58710:function(We){"use strict";We.exports=Ee,Ee.displayName="turtle",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(51478);We.exports=Pe,Pe.displayName="twig",Pe.aliases=[];function Pe(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(De){if(De.language==="twig"){var je=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;ke.languages["markup-templating"].buildPlaceholders(De,"twig",je)}}),ke.hooks.add("after-tokenize",function(De){ke.languages["markup-templating"].tokenizePlaceholders(De,"twig")})}},92784:function(We){"use strict";We.exports=Ee,Ee.displayName="typescript",Ee.aliases=["ts"];function Ee(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 Pe=oe.languages.extend("typescript",{});delete Pe["class-name"],oe.languages.typescript["class-name"].inside=Pe,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:Pe}}}}),oe.languages.ts=oe.languages.typescript})(ae)}},36489:function(We){"use strict";We.exports=Ee,Ee.displayName="typoscript",Ee.aliases=["tsconfig"];function Ee(ae){(function(oe){var Pe=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;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:Pe}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:Pe,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Pe,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},oe.languages.tsconfig=oe.languages.typoscript})(ae)}},78380:function(We){"use strict";We.exports=Ee,Ee.displayName="unrealscript",Ee.aliases=["uc","uscript"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="uorazor",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="uri",Ee.aliases=["url"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="v",Ee.aliases=[];function Ee(ae){(function(oe){var Pe={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":Pe}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),Pe.inside=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(We){"use strict";We.exports=Ee,Ee.displayName="vala",Ee.aliases=[];function Ee(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(We,Ee,ae){"use strict";var oe=ae(51422);We.exports=Pe,Pe.displayName="vbnet",Pe.aliases=[];function Pe(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(We){"use strict";We.exports=Ee,Ee.displayName="velocity",Ee.aliases=[];function Ee(ae){(function(oe){oe.languages.velocity=oe.languages.extend("markup",{});var Pe={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};Pe.variable.inside={string:Pe.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Pe.number,boolean:Pe.boolean,punctuation:Pe.punctuation},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:Pe}},variable:Pe.variable}),oe.languages.velocity.tag.inside["attr-value"].inside.rest=oe.languages.velocity})(ae)}},37116:function(We){"use strict";We.exports=Ee,Ee.displayName="verilog",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="vhdl",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="vim",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="visualBasic",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="warpscript",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="wasm",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="webIdl",Ee.aliases=[];function Ee(ae){(function(oe){var Pe=/(?:\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+Pe+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,De={};oe.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Pe),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:De},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+ke),lookbehind:!0,inside:De},{pattern:RegExp("("+/\bcallback\s+/.source+Pe+/\s*=\s*/.source+")"+ke),lookbehind:!0,inside:De},{pattern:RegExp(/(\btypedef\b\s*)/.source+ke),lookbehind:!0,inside:De},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Pe),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Pe),lookbehind:!0},RegExp(Pe+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Pe),lookbehind:!0},{pattern:RegExp(ke+"(?="+/\s*(?:\.{3}\s*)?/.source+Pe+/\s*[(),;=]/.source+")"),inside:De}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var je in oe.languages["web-idl"])je!=="class-name"&&(De[je]=oe.languages["web-idl"][je]);oe.languages.webidl=oe.languages["web-idl"]})(ae)}},8921:function(We){"use strict";We.exports=Ee,Ee.displayName="wiki",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="wolfram",Ee.aliases=["mathematica","wl","nb"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="wren",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="xeora",Ee.aliases=["xeoracube"];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="xmlDoc",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(Te,Ge){oe.languages[Te]&&oe.languages.insertBefore(Te,"comment",{"doc-comment":Ge})}var ke=oe.languages.markup.tag,De={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:ke}},je={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:ke}};Pe("csharp",De),Pe("fsharp",De),Pe("vbnet",je)})(ae)}},86095:function(We){"use strict";We.exports=Ee,Ee.displayName="xojo",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="xquery",Ee.aliases=[];function Ee(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 Pe=function(De){return typeof De=="string"?De:typeof De.content=="string"?De.content:De.content.map(Pe).join("")},ke=function(De){for(var je=[],Te=0;Te<De.length;Te++){var Ge=De[Te],lt=!1;if(typeof Ge!="string"&&(Ge.type==="tag"&&Ge.content[0]&&Ge.content[0].type==="tag"?Ge.content[0].content[0].content==="</"?je.length>0&&je[je.length-1].tagName===Pe(Ge.content[0].content[1])&&je.pop():Ge.content[Ge.content.length-1].content==="/>"||je.push({tagName:Pe(Ge.content[0].content[1]),openedBraces:0}):je.length>0&&Ge.type==="punctuation"&&Ge.content==="{"&&(!De[Te+1]||De[Te+1].type!=="punctuation"||De[Te+1].content!=="{")&&(!De[Te-1]||De[Te-1].type!=="plain-text"||De[Te-1].content!=="{")?je[je.length-1].openedBraces++:je.length>0&&je[je.length-1].openedBraces>0&&Ge.type==="punctuation"&&Ge.content==="}"?je[je.length-1].openedBraces--:Ge.type!=="comment"&&(lt=!0)),(lt||typeof Ge=="string")&&je.length>0&&je[je.length-1].openedBraces===0){var Ke=Pe(Ge);Te<De.length-1&&(typeof De[Te+1]=="string"||De[Te+1].type==="plain-text")&&(Ke+=Pe(De[Te+1]),De.splice(Te+1,1)),Te>0&&(typeof De[Te-1]=="string"||De[Te-1].type==="plain-text")&&(Ke=Pe(De[Te-1])+Ke,De.splice(Te-1,1),Te--),/^\s+$/.test(Ke)?De[Te]=Ke:De[Te]=new oe.Token("plain-text",Ke,null,Ke)}Ge.content&&typeof Ge.content!="string"&&ke(Ge.content)}};oe.hooks.add("after-tokenize",function(De){De.language==="xquery"&&ke(De.tokens)})})(ae)}},14409:function(We){"use strict";We.exports=Ee,Ee.displayName="yaml",Ee.aliases=["yml"];function Ee(ae){(function(oe){var Pe=/[*&][^\s[\]{},]+/,ke=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,De="(?:"+ke.source+"(?:[ ]+"+Pe.source+")?|"+Pe.source+"(?:[ ]+"+ke.source+")?)",je=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Te=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ge(lt,Ke){Ke=(Ke||"").replace(/m/g,"")+"m";var He=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return De}).replace(/<<value>>/g,function(){return lt});return RegExp(He,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 De})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return De}).replace(/<<key>>/g,function(){return"(?:"+je+"|"+Te+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ge(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Ge(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ge(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ge(Te),lookbehind:!0,greedy:!0},number:{pattern:Ge(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:ke,important:Pe,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},oe.languages.yml=oe.languages.yaml})(ae)}},33460:function(We){"use strict";We.exports=Ee,Ee.displayName="yang",Ee.aliases=[];function Ee(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(We){"use strict";We.exports=Ee,Ee.displayName="zig",Ee.aliases=[];function Ee(ae){(function(oe){function Pe(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/,De="\\b(?!"+ke.source+")(?!\\d)\\w+\\b",je=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Te=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Pe(je)),Ge=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Pe(De)),lt="(?!\\s)(?:!?\\s*(?:"+Te+"\\s*)*"+Ge+")+";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,Pe(lt)).replace(/<ALIGN>/g,Pe(je))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Pe(lt)).replace(/<ALIGN>/g,Pe(je))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword: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(We,Ee){"use strict";var ae;Ee.Q=De,ae=je;var oe="",Pe=" ",ke=/[ \t\n\r\f]+/g;function De(Te){var Ge=String(Te||oe).trim();return Ge===oe?[]:Ge.split(ke)}function je(Te){return Te.join(Pe).trim()}},6526:function(We,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(je){return je&&je.__esModule?je:{default:je}},Pe=oe(ae(78846)),ke=ae(11160);function De(je,Te){var Ge={};return!je||typeof je!="string"||(0,Pe.default)(je,function(lt,Ke){lt&&Ke&&(Ge[(0,ke.camelCase)(lt,Te)]=Ke)}),Ge}De.default=De,We.exports=De},11160:function(We,Ee){"use strict";Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.camelCase=void 0;var ae=/^--[a-zA-Z0-9_-]+$/,oe=/-([a-z])/g,Pe=/^[^-]+$/,ke=/^-(webkit|moz|ms|o|khtml)-/,De=/^-(ms)-/,je=function(Ke){return!Ke||Pe.test(Ke)||ae.test(Ke)},Te=function(Ke,He){return He.toUpperCase()},Ge=function(Ke,He){return"".concat(He,"-")},lt=function(Ke,He){return He===void 0&&(He={}),je(Ke)?Ke:(Ke=Ke.toLowerCase(),He.reactCompat?Ke=Ke.replace(De,Ge):Ke=Ke.replace(ke,Ge),Ke.replace(oe,Te))};Ee.camelCase=lt},78846:function(We,Ee,ae){"use strict";var oe=this&&this.__importDefault||function(De){return De&&De.__esModule?De:{default:De}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=ke;var Pe=oe(ae(93193));function ke(De,je){var Te=null;if(!De||typeof De!="string")return Te;var Ge=(0,Pe.default)(De),lt=typeof je=="function";return Ge.forEach(function(Ke){if(Ke.type==="declaration"){var He=Ke.property,yt=Ke.value;lt?je(He,yt,Ke):yt&&(Te=Te||{},Te[He]=yt)}}),Te}},97270:function(We){We.exports=ae;var Ee=Object.prototype.hasOwnProperty;function ae(){for(var oe={},Pe=0;Pe<arguments.length;Pe++){var ke=arguments[Pe];for(var De in ke)Ee.call(ke,De)&&(oe[De]=ke[De])}return oe}},32637:function(We,Ee,ae){"use strict";We.exports=ae.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(We){"use strict";We.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(We){"use strict";We.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(We){"use strict";We.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},36413:function(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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(We){"use strict";We.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="},37530:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(58750);function Pe(ke,De){var je=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(!je){if(Array.isArray(ke)||(je=(0,oe.Z)(ke))||De&&ke&&typeof ke.length=="number"){je&&(ke=je);var Te=0,Ge=function(){};return{s:Ge,n:function(){return Te>=ke.length?{done:!0}:{done:!1,value:ke[Te++]}},e:function($e){throw $e},f:Ge}}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 lt,Ke=!0,He=!1;return{s:function(){je=je.call(ke)},n:function(){var $e=je.next();return Ke=$e.done,$e},e:function($e){He=!0,lt=$e},f:function(){try{Ke||je.return==null||je.return()}finally{if(He)throw lt}}}}},57629:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return Pe}});var oe=ae(2386);function Pe(ke,De){ke.prototype=Object.create(De.prototype),ke.prototype.constructor=ke,(0,oe.Z)(ke,De)}},90302:function(We,Ee,ae){"use strict";ae.d(Ee,{ZP:function(){return be}});const oe=-1,Pe=0,ke=1,De=2,je=3,Te=4,Ge=5,lt=6,Ke=7,He=8,yt=typeof self=="object"?self:globalThis,$e=(Ae,Ie)=>{const Xe=(Je,st)=>(Ae.set(st,Je),Je),nt=Je=>{if(Ae.has(Je))return Ae.get(Je);const[st,gt]=Ie[Je];switch(st){case Pe:case oe:return Xe(gt,Je);case ke:{const rt=Xe([],Je);for(const mt of gt)rt.push(nt(mt));return rt}case De:{const rt=Xe({},Je);for(const[mt,xt]of gt)rt[nt(mt)]=nt(xt);return rt}case je:return Xe(new Date(gt),Je);case Te:{const{source:rt,flags:mt}=gt;return Xe(new RegExp(rt,mt),Je)}case Ge:{const rt=Xe(new Map,Je);for(const[mt,xt]of gt)rt.set(nt(mt),nt(xt));return rt}case lt:{const rt=Xe(new Set,Je);for(const mt of gt)rt.add(nt(mt));return rt}case Ke:{const{name:rt,message:mt}=gt;return Xe(new yt[rt](mt),Je)}case He:return Xe(BigInt(gt),Je);case"BigInt":return Xe(Object(BigInt(gt)),Je);case"ArrayBuffer":return Xe(new Uint8Array(gt).buffer,gt);case"DataView":{const{buffer:rt}=new Uint8Array(gt);return Xe(new DataView(rt),gt)}}return Xe(new yt[st](gt),Je)};return nt},Mt=Ae=>$e(new Map,Ae)(0),Fe="",{toString:te}={},{keys:ee}=Object,he=Ae=>{const Ie=typeof Ae;if(Ie!=="object"||!Ae)return[Pe,Ie];const Xe=te.call(Ae).slice(8,-1);switch(Xe){case"Array":return[ke,Fe];case"Object":return[De,Fe];case"Date":return[je,Fe];case"RegExp":return[Te,Fe];case"Map":return[Ge,Fe];case"Set":return[lt,Fe];case"DataView":return[ke,Xe]}return Xe.includes("Array")?[ke,Xe]:Xe.includes("Error")?[Ke,Xe]:[De,Xe]},ue=([Ae,Ie])=>Ae===Pe&&(Ie==="function"||Ie==="symbol"),fe=(Ae,Ie,Xe,nt)=>{const Je=(gt,rt)=>{const mt=nt.push(gt)-1;return Xe.set(rt,mt),mt},st=gt=>{if(Xe.has(gt))return Xe.get(gt);let[rt,mt]=he(gt);switch(rt){case Pe:{let Tt=gt;switch(mt){case"bigint":rt=He,Tt=gt.toString();break;case"function":case"symbol":if(Ae)throw new TypeError("unable to serialize "+mt);Tt=null;break;case"undefined":return Je([oe],gt)}return Je([rt,Tt],gt)}case ke:{if(mt){let Qt=gt;return mt==="DataView"?Qt=new Uint8Array(gt.buffer):mt==="ArrayBuffer"&&(Qt=new Uint8Array(gt)),Je([mt,[...Qt]],gt)}const Tt=[],zt=Je([rt,Tt],gt);for(const Qt of gt)Tt.push(st(Qt));return zt}case De:{if(mt)switch(mt){case"BigInt":return Je([mt,gt.toString()],gt);case"Boolean":case"Number":case"String":return Je([mt,gt.valueOf()],gt)}if(Ie&&"toJSON"in gt)return st(gt.toJSON());const Tt=[],zt=Je([rt,Tt],gt);for(const Qt of ee(gt))(Ae||!ue(he(gt[Qt])))&&Tt.push([st(Qt),st(gt[Qt])]);return zt}case je:return Je([rt,gt.toISOString()],gt);case Te:{const{source:Tt,flags:zt}=gt;return Je([rt,{source:Tt,flags:zt}],gt)}case Ge:{const Tt=[],zt=Je([rt,Tt],gt);for(const[Qt,Kt]of gt)(Ae||!(ue(he(Qt))||ue(he(Kt))))&&Tt.push([st(Qt),st(Kt)]);return zt}case lt:{const Tt=[],zt=Je([rt,Tt],gt);for(const Qt of gt)(Ae||!ue(he(Qt)))&&Tt.push(st(Qt));return zt}}const{message:xt}=gt;return Je([rt,{name:mt,message:xt}],gt)};return st},me=(Ae,{json:Ie,lossy:Xe}={})=>{const nt=[];return fe(!(Ie||Xe),!!Ie,new Map,nt)(Ae),nt};var be=typeof structuredClone=="function"?(Ae,Ie)=>Ie&&("json"in Ie||"lossy"in Ie)?Mt(me(Ae,Ie)):structuredClone(Ae):(Ae,Ie)=>Mt(me(Ae,Ie))},11630:function(We,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Pe},Q:function(){return oe}});function oe(ke){const De=[],je=String(ke||"");let Te=je.indexOf(","),Ge=0,lt=!1;for(;!lt;){Te===-1&&(Te=je.length,lt=!0);const Ke=je.slice(Ge,Te).trim();(Ke||!lt)&&De.push(Ke),Ge=Te+1,Te=je.indexOf(",",Ge)}return De}function Pe(ke,De){const je=De||{};return(ke[ke.length-1]===""?[...ke,""]:ke).join((je.padRight?" ":"")+","+(je.padLeft===!1?"":" ")).trim()}},87342:function(We,Ee,ae){"use strict";ae.d(Ee,{ok:function(){return ke},t1:function(){return De}});function oe(je){return je}function Pe(){}function ke(){}function De(){}},40797:function(We,Ee,ae){"use strict";ae.d(Ee,{N:function(){return Mt}});var oe=ae(81994),Pe=ae(43309);function ke(te,ee){return De(te,ee||{})||{type:"root",children:[]}}function De(te,ee){const he=je(te,ee);return he&&ee.afterTransform&&ee.afterTransform(te,he),he}function je(te,ee){switch(te.nodeType){case 1:return He(te,ee);case 3:return lt(te);case 8:return Ke(te);case 9:return Te(te,ee);case 10:return Ge();case 11:return Te(te,ee);default:return}}function Te(te,ee){return{type:"root",children:yt(te,ee)}}function Ge(){return{type:"doctype"}}function lt(te){return{type:"text",value:te.nodeValue||""}}function Ke(te){return{type:"comment",value:te.nodeValue||""}}function He(te,ee){const he=te.namespaceURI,ue=he===Pe.t.svg?oe.s:oe.h,fe=he===Pe.t.html?te.tagName.toLowerCase():te.tagName,me=he===Pe.t.html&&fe==="template"?te.content:te,be=te.getAttributeNames(),Ae={};let Ie=-1;for(;++Ie<be.length;)Ae[be[Ie]]=te.getAttribute(be[Ie])||"";return ue(fe,Ae,yt(me,ee))}function yt(te,ee){const he=te.childNodes,ue=[];let fe=-1;for(;++fe<he.length;){const me=De(he[fe],ee);me!==void 0&&ue.push(me)}return ue}const $e=new DOMParser;function Mt(te,ee){const he=ee!=null&&ee.fragment?Fe(te):$e.parseFromString(te,"text/html");return ke(he)}function Fe(te){const ee=document.createElement("template");return ee.innerHTML=te,ee.content}},91378:function(We,Ee,ae){"use strict";ae.d(Ee,{l:function(){return ue}});var oe=ae(10502);const Pe=function(gt,rt,mt){const xt=(0,oe.O)(mt);if(!gt||!gt.type||!gt.children)throw new Error("Expected parent node");if(typeof rt=="number"){if(rt<0||rt===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(rt=gt.children.indexOf(rt),rt<0)throw new Error("Expected child node or index");for(;++rt<gt.children.length;)if(xt(gt.children[rt],rt,gt))return gt.children[rt]},ke=function(gt,rt,mt,xt,Tt){const zt=De(rt);if(mt!=null&&(typeof mt!="number"||mt<0||mt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(xt!=null&&(!xt.type||!xt.children))throw new Error("Expected valid `parent`");if(mt==null!=(xt==null))throw new Error("Expected both `index` and `parent`");return Ke(gt)?zt.call(Tt,gt,mt,xt):!1},De=function(gt){if(gt==null)return lt;if(typeof gt=="string")return Te(gt);if(typeof gt=="object")return je(gt);if(typeof gt=="function")return Ge(gt);throw new Error("Expected function, string, or array as `test`")};function je(gt){const rt=[];let mt=-1;for(;++mt<gt.length;)rt[mt]=De(gt[mt]);return Ge(xt);function xt(...Tt){let zt=-1;for(;++zt<rt.length;)if(rt[zt].apply(this,Tt))return!0;return!1}}function Te(gt){return Ge(rt);function rt(mt){return mt.tagName===gt}}function Ge(gt){return rt;function rt(mt,xt,Tt){return!!(Ke(mt)&>.call(this,mt,typeof xt=="number"?xt:void 0,Tt||void 0))}}function lt(gt){return!!(gt&&typeof gt=="object"&&"type"in gt&>.type==="element"&&"tagName"in gt&&typeof gt.tagName=="string")}function Ke(gt){return gt!==null&&typeof gt=="object"&&"type"in gt&&"tagName"in gt}const He=/\n/g,yt=/[\t ]+/g,$e=De("br"),Mt=De(Je),Fe=De("p"),te=De("tr"),ee=De(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",nt,st]),he=De(["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(gt,rt){const mt=rt||{},xt="children"in gt?gt.children:[],Tt=he(gt),zt=Xe(gt,{whitespace:mt.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Qt=[];(gt.type==="text"||gt.type==="comment")&&Qt.push(...be(gt,{whitespace:zt,breakBefore:!0,breakAfter:!0}));let Kt=-1;for(;++Kt<xt.length;)Qt.push(...fe(xt[Kt],gt,{whitespace:zt,breakBefore:Kt?void 0:Tt,breakAfter:Kt<xt.length-1?$e(xt[Kt+1]):Tt}));const Cn=[];let St;for(Kt=-1;++Kt<Qt.length;){const pt=Qt[Kt];typeof pt=="number"?St!==void 0&&pt>St&&(St=pt):pt&&(St!==void 0&&St>-1&&Cn.push(`
|
|
|
`.repeat(St)||" "),St=-1,Cn.push(pt))}return Cn.join("")}function fe(gt,rt,mt){return gt.type==="element"?me(gt,rt,mt):gt.type==="text"?mt.whitespace==="normal"?be(gt,mt):Ae(gt):[]}function me(gt,rt,mt){const xt=Xe(gt,mt),Tt=gt.children||[];let zt=-1,Qt=[];if(ee(gt))return Qt;let Kt,Cn;for($e(gt)||te(gt)&&Pe(rt,gt,te)?Cn=`
|
|
|
`:Fe(gt)?(Kt=2,Cn=2):he(gt)&&(Kt=1,Cn=1);++zt<Tt.length;)Qt=Qt.concat(fe(Tt[zt],gt,{whitespace:xt,breakBefore:zt?void 0:Kt,breakAfter:zt<Tt.length-1?$e(Tt[zt+1]):Cn}));return Mt(gt)&&Pe(rt,gt,Mt)&&Qt.push(" "),Kt&&Qt.unshift(Kt),Cn&&Qt.push(Cn),Qt}function be(gt,rt){const mt=String(gt.value),xt=[],Tt=[];let zt=0;for(;zt<=mt.length;){He.lastIndex=zt;const Cn=He.exec(mt),St=Cn&&"index"in Cn?Cn.index:mt.length;xt.push(Ie(mt.slice(zt,St).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),zt===0?rt.breakBefore:!0,St===mt.length?rt.breakAfter:!0)),zt=St+1}let Qt=-1,Kt;for(;++Qt<xt.length;)xt[Qt].charCodeAt(xt[Qt].length-1)===8203||Qt<xt.length-1&&xt[Qt+1].charCodeAt(0)===8203?(Tt.push(xt[Qt]),Kt=void 0):xt[Qt]?(typeof Kt=="number"&&Tt.push(Kt),Tt.push(xt[Qt]),Kt=0):(Qt===0||Qt===xt.length-1)&&Tt.push(0);return Tt}function Ae(gt){return[String(gt.value)]}function Ie(gt,rt,mt){const xt=[];let Tt=0,zt;for(;Tt<gt.length;){yt.lastIndex=Tt;const Qt=yt.exec(gt);zt=Qt?Qt.index:gt.length,!Tt&&!zt&&Qt&&!rt&&xt.push(""),Tt!==zt&&xt.push(gt.slice(Tt,zt)),Tt=Qt?zt+Qt[0].length:zt}return Tt!==zt&&!mt&&xt.push(""),xt.join(" ")}function Xe(gt,rt){if(gt.type==="element"){const mt=gt.properties||{};switch(gt.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return mt.wrap?"pre-wrap":"pre";case"td":case"th":return mt.noWrap?"nowrap":rt.whitespace;case"textarea":return"pre-wrap";default:}}return rt.whitespace}function nt(gt){return!!(gt.properties||{}).hidden}function Je(gt){return gt.tagName==="td"||gt.tagName==="th"}function st(gt){return gt.tagName==="dialog"&&!(gt.properties||{}).open}},81994:function(We,Ee,ae){"use strict";ae.d(Ee,{h:function(){return ee},s:function(){return he}});var oe=ae(14470),Pe=ae(11630);const ke=/[#.]/g;function De(ue,fe){const me=ue||"",be={};let Ae=0,Ie,Xe;for(;Ae<me.length;){ke.lastIndex=Ae;const nt=ke.exec(me),Je=me.slice(Ae,nt?nt.index:me.length);Je&&(Ie?Ie==="#"?be.id=Je:Array.isArray(be.className)?be.className.push(Je):be.className=[Je]:Xe=Je,Ae+=Je.length),nt&&(Ie=nt[0],Ae++)}return{type:"element",tagName:Xe||fe||"div",properties:be,children:[]}}var je=ae(86825),Te=ae(13830),Ge=ae(71523);function lt(ue,fe,me){const be=me?Fe(me):void 0;function Ae(Ie,Xe,...nt){let Je;if(Ie==null){Je={type:"root",children:[]};const st=Xe;nt.unshift(st)}else{Je=De(Ie,fe);const st=Je.tagName.toLowerCase(),gt=be?be.get(st):void 0;if(Je.tagName=gt||st,Ke(Xe))nt.unshift(Xe);else for(const[rt,mt]of Object.entries(Xe))He(ue,Je.properties,rt,mt)}for(const st of nt)yt(Je.children,st);return Je.type==="element"&&Je.tagName==="template"&&(Je.content={type:"root",children:Je.children},Je.children=[]),Je}return Ae}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 be of me){const Ae=fe[be];if(Ae&&typeof Ae=="object"){if(!Array.isArray(Ae))return!0;const Ie=Ae;for(const Xe of Ie)if(typeof Xe!="number"&&typeof Xe!="string")return!0}}return!!("children"in ue&&Array.isArray(ue.children))}function He(ue,fe,me,be){const Ae=(0,je.s)(ue,me);let Ie;if(be!=null){if(typeof be=="number"){if(Number.isNaN(be))return;Ie=be}else typeof be=="boolean"?Ie=be:typeof be=="string"?Ae.spaceSeparated?Ie=(0,Ge.Q)(be):Ae.commaSeparated?Ie=(0,Pe.Q)(be):Ae.commaOrSpaceSeparated?Ie=(0,Ge.Q)((0,Pe.Q)(be).join(" ")):Ie=$e(Ae,Ae.property,be):Array.isArray(be)?Ie=[...be]:Ie=Ae.property==="style"?Mt(be):String(be);if(Array.isArray(Ie)){const Xe=[];for(const nt of Ie)Xe.push($e(Ae,Ae.property,nt));Ie=Xe}Ae.property==="className"&&Array.isArray(fe.className)&&(Ie=fe.className.concat(Ie)),fe[Ae.property]=Ie}}function yt(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)yt(ue,me);else if(typeof fe=="object"&&"type"in fe)fe.type==="root"?yt(ue,fe.children):ue.push(fe);else throw new Error("Expected node, nodes, or string, got `"+fe+"`")}function $e(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 Mt(ue){const fe=[];for(const[me,be]of Object.entries(ue))fe.push([me,be].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=lt(oe.dy,"div"),he=lt(oe.YP,"g",te)},26735:function(We,Ee,ae){"use strict";ae.d(Ee,{f:function(){return Pe}});var oe=ae(80722);function Pe(ke,De,je,Te){const Ge=Te?Te-1:Number.POSITIVE_INFINITY;let lt=0;return Ke;function Ke(yt){return(0,oe.xz)(yt)?(ke.enter(je),He(yt)):De(yt)}function He(yt){return(0,oe.xz)(yt)&<++<Ge?(ke.consume(yt),He):(ke.exit(je),De(yt))}}},80722:function(We,Ee,ae){"use strict";ae.d(Ee,{AF:function(){return Te},Av:function(){return De},B8:function(){return $e},Ch:function(){return lt},H$:function(){return Pe},Xh:function(){return yt},jv:function(){return oe},n9:function(){return ke},pY:function(){return je},sR:function(){return Ge},xz:function(){return He},z3:function(){return Ke}});const oe=Mt(/[A-Za-z]/),Pe=Mt(/[\dA-Za-z]/),ke=Mt(/[#-'*+\--9=?A-Z^-~]/);function De(Fe){return Fe!==null&&(Fe<32||Fe===127)}const je=Mt(/\d/),Te=Mt(/[\dA-Fa-f]/),Ge=Mt(/[!-/:-@[-`{-~]/);function lt(Fe){return Fe!==null&&Fe<-2}function Ke(Fe){return Fe!==null&&(Fe<0||Fe===32)}function He(Fe){return Fe===-2||Fe===-1||Fe===32}const yt=Mt(new RegExp("\\p{P}|\\p{S}","u")),$e=Mt(/\s/);function Mt(Fe){return te;function te(ee){return ee!==null&&ee>-1&&Fe.test(String.fromCharCode(ee))}}},14470:function(We,Ee,ae){"use strict";ae.d(Ee,{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 Pe(he,ue){const fe={},me={};for(const be of he)Object.assign(fe,be.property),Object.assign(me,be.normal);return new oe(fe,me,ue)}var ke=ae(13830),De=ae(53538);function je(he){const ue={},fe={};for(const[me,be]of Object.entries(he.properties)){const Ae=new De.I(me,he.transform(he.attributes||{},me),be,he.space);he.mustUseProperty&&he.mustUseProperty.includes(me)&&(Ae.mustUseProperty=!0),ue[me]=Ae,fe[(0,ke.F)(me)]=me,fe[(0,ke.F)(Ae.attribute)]=me}return new oe(ue,fe,he.space)}var Te=ae(71337);const Ge=je({properties:{ariaActiveDescendant:null,ariaAtomic:Te.booleanish,ariaAutoComplete:null,ariaBusy:Te.booleanish,ariaChecked:Te.booleanish,ariaColCount:Te.number,ariaColIndex:Te.number,ariaColSpan:Te.number,ariaControls:Te.spaceSeparated,ariaCurrent:null,ariaDescribedBy:Te.spaceSeparated,ariaDetails:null,ariaDisabled:Te.booleanish,ariaDropEffect:Te.spaceSeparated,ariaErrorMessage:null,ariaExpanded:Te.booleanish,ariaFlowTo:Te.spaceSeparated,ariaGrabbed:Te.booleanish,ariaHasPopup:null,ariaHidden:Te.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Te.spaceSeparated,ariaLevel:Te.number,ariaLive:null,ariaModal:Te.booleanish,ariaMultiLine:Te.booleanish,ariaMultiSelectable:Te.booleanish,ariaOrientation:null,ariaOwns:Te.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:Te.number,ariaPressed:Te.booleanish,ariaReadOnly:Te.booleanish,ariaRelevant:null,ariaRequired:Te.booleanish,ariaRoleDescription:Te.spaceSeparated,ariaRowCount:Te.number,ariaRowIndex:Te.number,ariaRowSpan:Te.number,ariaSelected:Te.booleanish,ariaSetSize:Te.number,ariaSort:null,ariaValueMax:Te.number,ariaValueMin:Te.number,ariaValueNow:Te.number,ariaValueText:null,role:null},transform(he,ue){return ue==="role"?ue:"aria-"+ue.slice(4).toLowerCase()}});function lt(he,ue){return ue in he?he[ue]:ue}function Ke(he,ue){return lt(he,ue.toLowerCase())}const He=je({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te.commaSeparated,acceptCharset:Te.spaceSeparated,accessKey:Te.spaceSeparated,action:null,allow:null,allowFullScreen:Te.boolean,allowPaymentRequest:Te.boolean,allowUserMedia:Te.boolean,alt:null,as:null,async:Te.boolean,autoCapitalize:null,autoComplete:Te.spaceSeparated,autoFocus:Te.boolean,autoPlay:Te.boolean,blocking:Te.spaceSeparated,capture:null,charSet:null,checked:Te.boolean,cite:null,className:Te.spaceSeparated,cols:Te.number,colSpan:null,content:null,contentEditable:Te.booleanish,controls:Te.boolean,controlsList:Te.spaceSeparated,coords:Te.number|Te.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te.boolean,defer:Te.boolean,dir:null,dirName:null,disabled:Te.boolean,download:Te.overloadedBoolean,draggable:Te.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te.boolean,formTarget:null,headers:Te.spaceSeparated,height:Te.number,hidden:Te.overloadedBoolean,high:Te.number,href:null,hrefLang:null,htmlFor:Te.spaceSeparated,httpEquiv:Te.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:Te.boolean,inputMode:null,integrity:null,is:null,isMap:Te.boolean,itemId:null,itemProp:Te.spaceSeparated,itemRef:Te.spaceSeparated,itemScope:Te.boolean,itemType:Te.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te.boolean,low:Te.number,manifest:null,max:null,maxLength:Te.number,media:null,method:null,min:null,minLength:Te.number,multiple:Te.boolean,muted:Te.boolean,name:null,nonce:null,noModule:Te.boolean,noValidate:Te.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te.boolean,optimum:Te.number,pattern:null,ping:Te.spaceSeparated,placeholder:null,playsInline:Te.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te.boolean,referrerPolicy:null,rel:Te.spaceSeparated,required:Te.boolean,reversed:Te.boolean,rows:Te.number,rowSpan:Te.number,sandbox:Te.spaceSeparated,scope:null,scoped:Te.boolean,seamless:Te.boolean,selected:Te.boolean,shadowRootClonable:Te.boolean,shadowRootDelegatesFocus:Te.boolean,shadowRootMode:null,shape:null,size:Te.number,sizes:null,slot:null,span:Te.number,spellCheck:Te.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te.number,step:null,style:null,tabIndex:Te.number,target:null,title:null,translate:null,type:null,typeMustMatch:Te.boolean,useMap:null,value:Te.booleanish,width:Te.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Te.spaceSeparated,axis:null,background:null,bgColor:null,border:Te.number,borderColor:null,bottomMargin:Te.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te.boolean,declare:Te.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:Te.number,leftMargin:Te.number,link:null,longDesc:null,lowSrc:null,marginHeight:Te.number,marginWidth:Te.number,noResize:Te.boolean,noHref:Te.boolean,noShade:Te.boolean,noWrap:Te.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:Te.number,rules:null,scheme:null,scrolling:Te.booleanish,standby:null,summary:null,text:null,topMargin:Te.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te.boolean,disableRemotePlayback:Te.boolean,prefix:null,property:null,results:Te.number,security:null,unselectable:null},space:"html",transform:Ke}),yt=je({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Te.commaOrSpaceSeparated,accentHeight:Te.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te.number,amplitude:Te.number,arabicForm:null,ascent:Te.number,attributeName:null,attributeType:null,azimuth:Te.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te.number,by:null,calcMode:null,capHeight:Te.number,className:Te.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Te.number,diffuseConstant:Te.number,direction:null,display:null,dur:null,divisor:Te.number,dominantBaseline:null,download:Te.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te.number,enableBackground:null,end:null,event:null,exponent:Te.number,externalResourcesRequired:null,fill:null,fillOpacity:Te.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Te.commaSeparated,g2:Te.commaSeparated,glyphName:Te.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te.number,horizOriginX:Te.number,horizOriginY:Te.number,id:null,ideographic:Te.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te.number,k:Te.number,k1:Te.number,k2:Te.number,k3:Te.number,k4:Te.number,kernelMatrix:Te.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Te.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Te.number,overlineThickness:Te.number,paintOrder:null,panose1:null,path:null,pathLength:Te.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Te.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te.number,pointsAtY:Te.number,pointsAtZ:Te.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Te.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Te.commaOrSpaceSeparated,rev:Te.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Te.commaOrSpaceSeparated,requiredFeatures:Te.commaOrSpaceSeparated,requiredFonts:Te.commaOrSpaceSeparated,requiredFormats:Te.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Te.number,specularExponent:Te.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te.number,strikethroughThickness:Te.number,string:null,stroke:null,strokeDashArray:Te.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te.number,strokeOpacity:Te.number,strokeWidth:null,style:null,surfaceScale:Te.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Te.commaOrSpaceSeparated,tabIndex:Te.number,tableValues:null,target:null,targetX:Te.number,targetY:Te.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Te.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te.number,underlineThickness:Te.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te.number,values:null,vAlphabetic:Te.number,vMathematical:Te.number,vectorEffect:null,vHanging:Te.number,vIdeographic:Te.number,version:null,vertAdvY:Te.number,vertOriginX:Te.number,vertOriginY:Te.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:lt}),$e=je({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()}}),Mt=je({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ke}),Fe=je({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(he,ue){return"xml:"+ue.slice(3).toLowerCase()}}),te=Pe([Ge,He,$e,Mt,Fe],"html"),ee=Pe([Ge,yt,$e,Mt,Fe],"svg")},86825:function(We,Ee,ae){"use strict";ae.d(Ee,{s:function(){return Ge}});var oe=ae(53538),Pe=ae(25629),ke=ae(13830);const De=/[A-Z]/g,je=/-[a-z]/g,Te=/^data[-\w.:]+$/i;function Ge(He,yt){const $e=(0,ke.F)(yt);let Mt=yt,Fe=Pe.k;if($e in He.normal)return He.property[He.normal[$e]];if($e.length>4&&$e.slice(0,4)==="data"&&Te.test(yt)){if(yt.charAt(4)==="-"){const te=yt.slice(5).replace(je,Ke);Mt="data"+te.charAt(0).toUpperCase()+te.slice(1)}else{const te=yt.slice(4);if(!je.test(te)){let ee=te.replace(De,lt);ee.charAt(0)!=="-"&&(ee="-"+ee),yt="data"+ee}}Fe=oe.I}return new Fe(Mt,yt)}function lt(He){return"-"+He.toLowerCase()}function Ke(He){return He.charAt(1).toUpperCase()}},13830:function(We,Ee,ae){"use strict";ae.d(Ee,{F:function(){return oe}});function oe(Pe){return Pe.toLowerCase()}},53538:function(We,Ee,ae){"use strict";ae.d(Ee,{I:function(){return De}});var oe=ae(25629),Pe=ae(71337);const ke=Object.keys(Pe);class De extends oe.k{constructor(Ge,lt,Ke,He){let yt=-1;if(super(Ge,lt),je(this,"space",He),typeof Ke=="number")for(;++yt<ke.length;){const $e=ke[yt];je(this,ke[yt],(Ke&Pe[$e])===Pe[$e])}}}De.prototype.defined=!0;function je(Te,Ge,lt){lt&&(Te[Ge]=lt)}},25629:function(We,Ee,ae){"use strict";ae.d(Ee,{k:function(){return oe}});class oe{constructor(ke,De){this.attribute=De,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(We,Ee,ae){"use strict";ae.r(Ee),ae.d(Ee,{boolean:function(){return Pe},booleanish:function(){return ke},commaOrSpaceSeparated:function(){return lt},commaSeparated:function(){return Ge},number:function(){return je},overloadedBoolean:function(){return De},spaceSeparated:function(){return Te}});let oe=0;const Pe=Ke(),ke=Ke(),De=Ke(),je=Ke(),Te=Ke(),Ge=Ke(),lt=Ke();function Ke(){return aS(2,++oe)}},72460:function(We,Ee,ae){"use strict";ae.d(Ee,{UG:function(){return qs}});var oe={};ae.r(oe),ae.d(oe,{attentionMarkers:function(){return Ma},contentInitial:function(){return za},disable:function(){return ts},document:function(){return ia},flow:function(){return il},flowInitial:function(){return hs},insideSpan:function(){return Ra},string:function(){return Ls},text:function(){return no}});var Pe=ae(87342),ke=ae(11630);const De=/[$_\p{ID_Start}]/u,je=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Te=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ke={};function He(Ce){return Ce?De.test(String.fromCodePoint(Ce)):!1}function yt(Ce,Qe){const ft=(Qe||Ke).jsx?Te:je;return Ce?ft.test(String.fromCodePoint(Ce)):!1}function $e(Ce,Qe){return((Qe||Ke).jsx?lt:Ge).test(Ce)}const Mt=/[ \t\n\f\r]/g;function Fe(Ce){return typeof Ce=="object"?Ce.type==="text"?te(Ce.value):!1:te(Ce)}function te(Ce){return Ce.replace(Mt,"")===""}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),be=ae(17970);function Ae(Ce){return!Ce||typeof Ce!="object"?"":"position"in Ce||"type"in Ce?Xe(Ce.position):"start"in Ce||"end"in Ce?Xe(Ce):"line"in Ce||"column"in Ce?Ie(Ce):""}function Ie(Ce){return nt(Ce&&Ce.line)+":"+nt(Ce&&Ce.column)}function Xe(Ce){return Ie(Ce&&Ce.start)+"-"+Ie(Ce&&Ce.end)}function nt(Ce){return Ce&&typeof Ce=="number"?Ce:1}class Je extends Error{constructor(Qe,tt,ft){super(),typeof tt=="string"&&(ft=tt,tt=void 0);let Ft="",Ht={},ln=!1;if(tt&&("line"in tt&&"column"in tt?Ht={place:tt}:"start"in tt&&"end"in tt?Ht={place:tt}:"type"in tt?Ht={ancestors:[tt],place:tt.position}:Ht=xa({},tt)),typeof Qe=="string"?Ft=Qe:!Ht.cause&&Qe&&(ln=!0,Ft=Qe.message,Ht.cause=Qe),!Ht.ruleId&&!Ht.source&&typeof ft=="string"){const Sr=ft.indexOf(":");Sr===-1?Ht.ruleId=ft:(Ht.source=ft.slice(0,Sr),Ht.ruleId=ft.slice(Sr+1))}if(!Ht.place&&Ht.ancestors&&Ht.ancestors){const Sr=Ht.ancestors[Ht.ancestors.length-1];Sr&&(Ht.place=Sr.position)}const Ln=Ht.place&&"start"in Ht.place?Ht.place.start:Ht.place;this.ancestors=Ht.ancestors||void 0,this.cause=Ht.cause||void 0,this.column=Ln?Ln.column:void 0,this.fatal=void 0,this.file,this.message=Ft,this.line=Ln?Ln.line:void 0,this.name=Ae(Ht.place)||"1:1",this.place=Ht.place||void 0,this.reason=this.message,this.ruleId=Ht.ruleId||void 0,this.source=Ht.source||void 0,this.stack=ln&&Ht.cause&&typeof Ht.cause.stack=="string"?Ht.cause.stack:"",this.actual,this.expected,this.note,this.url}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const st={}.hasOwnProperty,gt=new Map,rt=/[A-Z]/g,mt=new Set(["table","tbody","thead","tfoot","tr"]),xt=new Set(["td","th"]),Tt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zt(Ce,Qe){if(!Qe||Qe.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const tt=Qe.filePath||void 0;let ft;if(Qe.development){if(typeof Qe.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");ft=kn(tt,Qe.jsxDEV)}else{if(typeof Qe.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Qe.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");ft=xn(tt,Qe.jsx,Qe.jsxs)}const Ft={Fragment:Qe.Fragment,ancestors:[],components:Qe.components||{},create:ft,elementAttributeNameCase:Qe.elementAttributeNameCase||"react",evaluater:Qe.createEvaluater?Qe.createEvaluater():void 0,filePath:tt,ignoreInvalidStyle:Qe.ignoreInvalidStyle||!1,passKeys:Qe.passKeys!==!1,passNode:Qe.passNode||!1,schema:Qe.space==="svg"?ee.YP:ee.dy,stylePropertyNameCase:Qe.stylePropertyNameCase||"dom",tableCellAlignToStyle:Qe.tableCellAlignToStyle!==!1},Ht=Qt(Ft,Ce,void 0);return Ht&&typeof Ht!="string"?Ht:Ft.create(Ce,Ft.Fragment,{children:Ht||void 0},void 0)}function Qt(Ce,Qe,tt){if(Qe.type==="element")return Kt(Ce,Qe,tt);if(Qe.type==="mdxFlowExpression"||Qe.type==="mdxTextExpression")return Cn(Ce,Qe);if(Qe.type==="mdxJsxFlowElement"||Qe.type==="mdxJsxTextElement")return pt(Ce,Qe,tt);if(Qe.type==="mdxjsEsm")return St(Ce,Qe);if(Qe.type==="root")return ct(Ce,Qe,tt);if(Qe.type==="text")return qt(Ce,Qe)}function Kt(Ce,Qe,tt){const ft=Ce.schema;let Ft=ft;Qe.tagName.toLowerCase()==="svg"&&ft.space==="html"&&(Ft=ee.YP,Ce.schema=Ft),Ce.ancestors.push(Qe);const Ht=hr(Ce,Qe.tagName,!1),ln=Vn(Ce,Qe);let Ln=Ot(Ce,Qe);return mt.has(Qe.tagName)&&(Ln=Ln.filter(function(Sr){return typeof Sr=="string"?!Fe(Sr):!0})),fn(Ce,ln,Ht,Qe),kt(ln,Ln),Ce.ancestors.pop(),Ce.schema=ft,Ce.create(Qe,Ht,ln,tt)}function Cn(Ce,Qe){if(Qe.data&&Qe.data.estree&&Ce.evaluater){const ft=Qe.data.estree.body[0];return(0,Pe.ok)(ft.type==="ExpressionStatement"),Ce.evaluater.evaluateExpression(ft.expression)}ot(Ce,Qe.position)}function St(Ce,Qe){if(Qe.data&&Qe.data.estree&&Ce.evaluater)return Ce.evaluater.evaluateProgram(Qe.data.estree);ot(Ce,Qe.position)}function pt(Ce,Qe,tt){const ft=Ce.schema;let Ft=ft;Qe.name==="svg"&&ft.space==="html"&&(Ft=ee.YP,Ce.schema=Ft),Ce.ancestors.push(Qe);const Ht=Qe.name===null?Ce.Fragment:hr(Ce,Qe.name,!0),ln=Vt(Ce,Qe),Ln=Ot(Ce,Qe);return fn(Ce,ln,Ht,Qe),kt(ln,Ln),Ce.ancestors.pop(),Ce.schema=ft,Ce.create(Qe,Ht,ln,tt)}function ct(Ce,Qe,tt){const ft={};return kt(ft,Ot(Ce,Qe)),Ce.create(Qe,Ce.Fragment,ft,tt)}function qt(Ce,Qe){return Qe.value}function fn(Ce,Qe,tt,ft){typeof tt!="string"&&tt!==Ce.Fragment&&Ce.passNode&&(Qe.node=ft)}function kt(Ce,Qe){if(Qe.length>0){const tt=Qe.length>1?Qe:Qe[0];tt&&(Ce.children=tt)}}function xn(Ce,Qe,tt){return ft;function ft(Ft,Ht,ln,Ln){const xr=Array.isArray(ln.children)?tt:Qe;return Ln?xr(Ht,ln,Ln):xr(Ht,ln)}}function kn(Ce,Qe){return tt;function tt(ft,Ft,Ht,ln){const Ln=Array.isArray(Ht.children),Sr=(0,be.Pk)(ft);return Qe(Ft,Ht,ln,Ln,{columnNumber:Sr?Sr.column-1:void 0,fileName:Ce,lineNumber:Sr?Sr.line:void 0},void 0)}}function Vn(Ce,Qe){const tt={};let ft,Ft;for(Ft in Qe.properties)if(Ft!=="children"&&st.call(Qe.properties,Ft)){const Ht=Nn(Ce,Ft,Qe.properties[Ft]);if(Ht){const[ln,Ln]=Ht;Ce.tableCellAlignToStyle&&ln==="align"&&typeof Ln=="string"&&xt.has(Qe.tagName)?ft=Ln:tt[ln]=Ln}}if(ft){const Ht=tt.style||(tt.style={});Ht[Ce.stylePropertyNameCase==="css"?"text-align":"textAlign"]=ft}return tt}function Vt(Ce,Qe){const tt={};for(const ft of Qe.attributes)if(ft.type==="mdxJsxExpressionAttribute")if(ft.data&&ft.data.estree&&Ce.evaluater){const Ht=ft.data.estree.body[0];(0,Pe.ok)(Ht.type==="ExpressionStatement");const ln=Ht.expression;(0,Pe.ok)(ln.type==="ObjectExpression");const Ln=ln.properties[0];(0,Pe.ok)(Ln.type==="SpreadElement"),Object.assign(tt,Ce.evaluater.evaluateExpression(Ln.argument))}else ot(Ce,Qe.position);else{const Ft=ft.name;let Ht;if(ft.value&&typeof ft.value=="object")if(ft.value.data&&ft.value.data.estree&&Ce.evaluater){const Ln=ft.value.data.estree.body[0];(0,Pe.ok)(Ln.type==="ExpressionStatement"),Ht=Ce.evaluater.evaluateExpression(Ln.expression)}else ot(Ce,Qe.position);else Ht=ft.value===null?!0:ft.value;tt[Ft]=Ht}return tt}function Ot(Ce,Qe){const tt=[];let ft=-1;const Ft=Ce.passKeys?new Map:gt;for(;++ft<Qe.children.length;){const Ht=Qe.children[ft];let ln;if(Ce.passKeys){const Sr=Ht.type==="element"?Ht.tagName:Ht.type==="mdxJsxFlowElement"||Ht.type==="mdxJsxTextElement"?Ht.name:void 0;if(Sr){const xr=Ft.get(Sr)||0;ln=Sr+"-"+xr,Ft.set(Sr,xr+1)}}const Ln=Qt(Ce,Ht,ln);Ln!==void 0&&tt.push(Ln)}return tt}function Nn(Ce,Qe,tt){const ft=(0,he.s)(Ce.schema,Qe);if(!(tt==null||typeof tt=="number"&&Number.isNaN(tt))){if(Array.isArray(tt)&&(tt=ft.commaSeparated?(0,ke.P)(tt):(0,fe.P)(tt)),ft.property==="style"){let Ft=typeof tt=="object"?tt:tr(Ce,String(tt));return Ce.stylePropertyNameCase==="css"&&(Ft=_e(Ft)),["style",Ft]}return[Ce.elementAttributeNameCase==="react"&&ft.space?ue[ft.property]||ft.property:ft.attribute,tt]}}function tr(Ce,Qe){try{return me(Qe,{reactCompat:!0})}catch(tt){if(Ce.ignoreInvalidStyle)return{};const ft=tt,Ft=new Je("Cannot parse `style` attribute",{ancestors:Ce.ancestors,cause:ft,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Ft.file=Ce.filePath||void 0,Ft.url=Tt+"#cannot-parse-style-attribute",Ft}}function hr(Ce,Qe,tt){let ft;if(!tt)ft={type:"Literal",value:Qe};else if(Qe.includes(".")){const Ft=Qe.split(".");let Ht=-1,ln;for(;++Ht<Ft.length;){const Ln=$e(Ft[Ht])?{type:"Identifier",name:Ft[Ht]}:{type:"Literal",value:Ft[Ht]};ln=ln?{type:"MemberExpression",object:ln,property:Ln,computed:!!(Ht&&Ln.type==="Literal"),optional:!1}:Ln}(0,Pe.ok)(ln,"always a result"),ft=ln}else ft=$e(Qe)&&!/^[a-z]/.test(Qe)?{type:"Identifier",name:Qe}:{type:"Literal",value:Qe};if(ft.type==="Literal"){const Ft=ft.value;return st.call(Ce.components,Ft)?Ce.components[Ft]:Ft}if(Ce.evaluater)return Ce.evaluater.evaluateExpression(ft);ot(Ce)}function ot(Ce,Qe){const tt=new Je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:Ce.ancestors,place:Qe,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw tt.file=Ce.filePath||void 0,tt.url=Tt+"#cannot-handle-mdx-estrees-without-createevaluater",tt}function _e(Ce){const Qe={};let tt;for(tt in Ce)st.call(Ce,tt)&&(Qe[Re(tt)]=Ce[tt]);return Qe}function Re(Ce){let Qe=Ce.replace(rt,Ye);return Qe.slice(0,3)==="ms-"&&(Qe="-"+Qe),Qe}function Ye(Ce){return"-"+Ce.toLowerCase()}const at={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 Be=ae(37712),bt=ae(59301);const bn={};function sn(Ce,Qe){const tt=Qe||bn,ft=typeof tt.includeImageAlt=="boolean"?tt.includeImageAlt:!0,Ft=typeof tt.includeHtml=="boolean"?tt.includeHtml:!0;return Bn(Ce,ft,Ft)}function Bn(Ce,Qe,tt){if(_t(Ce)){if("value"in Ce)return Ce.type==="html"&&!tt?"":Ce.value;if(Qe&&"alt"in Ce&&Ce.alt)return Ce.alt;if("children"in Ce)return It(Ce.children,Qe,tt)}return Array.isArray(Ce)?It(Ce,Qe,tt):""}function It(Ce,Qe,tt){const ft=[];let Ft=-1;for(;++Ft<Ce.length;)ft[Ft]=Bn(Ce[Ft],Qe,tt);return ft.join("")}function _t(Ce){return!!(Ce&&typeof Ce=="object")}function jt(Ce,Qe,tt,ft){const Ft=Ce.length;let Ht=0,ln;if(Qe<0?Qe=-Qe>Ft?0:Ft+Qe:Qe=Qe>Ft?Ft:Qe,tt=tt>0?tt:0,ft.length<1e4)ln=Array.from(ft),ln.unshift(Qe,tt),Ce.splice(...ln);else for(tt&&Ce.splice(Qe,tt);Ht<ft.length;)ln=ft.slice(Ht,Ht+1e4),ln.unshift(Qe,0),Ce.splice(...ln),Ht+=1e4,Qe+=1e4}function hn(Ce,Qe){return Ce.length>0?(jt(Ce,Ce.length,0,Qe),Ce):Qe}class En{constructor(Qe){this.left=Qe?[...Qe]:[],this.right=[]}get(Qe){if(Qe<0||Qe>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Qe+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Qe<this.left.length?this.left[Qe]:this.right[this.right.length-Qe+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Qe,tt){const ft=tt==null?Number.POSITIVE_INFINITY:tt;return ft<this.left.length?this.left.slice(Qe,ft):Qe>this.left.length?this.right.slice(this.right.length-ft+this.left.length,this.right.length-Qe+this.left.length).reverse():this.left.slice(Qe).concat(this.right.slice(this.right.length-ft+this.left.length).reverse())}splice(Qe,tt,ft){const Ft=tt||0;this.setCursor(Math.trunc(Qe));const Ht=this.right.splice(this.right.length-Ft,Number.POSITIVE_INFINITY);return ft&&pn(this.left,ft),Ht.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Qe){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Qe)}pushMany(Qe){this.setCursor(Number.POSITIVE_INFINITY),pn(this.left,Qe)}unshift(Qe){this.setCursor(0),this.right.push(Qe)}unshiftMany(Qe){this.setCursor(0),pn(this.right,Qe.reverse())}setCursor(Qe){if(!(Qe===this.left.length||Qe>this.left.length&&this.right.length===0||Qe<0&&this.left.length===0))if(Qe<this.left.length){const tt=this.left.splice(Qe,Number.POSITIVE_INFINITY);pn(this.right,tt.reverse())}else{const tt=this.right.splice(this.left.length+this.right.length-Qe,Number.POSITIVE_INFINITY);pn(this.left,tt.reverse())}}}function pn(Ce,Qe){let tt=0;if(Qe.length<1e4)Ce.push(...Qe);else for(;tt<Qe.length;)Ce.push(...Qe.slice(tt,tt+1e4)),tt+=1e4}function Rt(Ce){const Qe={};let tt=-1,ft,Ft,Ht,ln,Ln,Sr,xr;const er=new En(Ce);for(;++tt<er.length;){for(;tt in Qe;)tt=Qe[tt];if(ft=er.get(tt),tt&&ft[1].type==="chunkFlow"&&er.get(tt-1)[1].type==="listItemPrefix"&&(Sr=ft[1]._tokenizer.events,Ht=0,Ht<Sr.length&&Sr[Ht][1].type==="lineEndingBlank"&&(Ht+=2),Ht<Sr.length&&Sr[Ht][1].type==="content"))for(;++Ht<Sr.length&&Sr[Ht][1].type!=="content";)Sr[Ht][1].type==="chunkText"&&(Sr[Ht][1]._isInFirstContentOfListItem=!0,Ht++);if(ft[0]==="enter")ft[1].contentType&&(Object.assign(Qe,Tn(er,tt)),tt=Qe[tt],xr=!0);else if(ft[1]._container){for(Ht=tt,Ft=void 0;Ht--;)if(ln=er.get(Ht),ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank")ln[0]==="enter"&&(Ft&&(er.get(Ft)[1].type="lineEndingBlank"),ln[1].type="lineEnding",Ft=Ht);else if(!(ln[1].type==="linePrefix"||ln[1].type==="listItemIndent"))break;Ft&&(ft[1].end=xa({},er.get(Ft)[1].start),Ln=er.slice(Ft,tt),Ln.unshift(ft),er.splice(Ft,tt-Ft+1,Ln))}}return jt(Ce,0,Number.POSITIVE_INFINITY,er.slice(0)),!xr}function Tn(Ce,Qe){const tt=Ce.get(Qe)[1],ft=Ce.get(Qe)[2];let Ft=Qe-1;const Ht=[];let ln=tt._tokenizer;ln||(ln=ft.parser[tt.contentType](tt.start),tt._contentTypeTextTrailing&&(ln._contentTypeTextTrailing=!0));const Ln=ln.events,Sr=[],xr={};let er,Zr,Hr=-1,sr=tt,Po=0,jo=0;const ea=[jo];for(;sr;){for(;Ce.get(++Ft)[1]!==sr;);Ht.push(Ft),sr._tokenizer||(er=ft.sliceStream(sr),sr.next||er.push(null),Zr&&ln.defineSkip(sr.start),sr._isInFirstContentOfListItem&&(ln._gfmTasklistFirstContentOfListItem=!0),ln.write(er),sr._isInFirstContentOfListItem&&(ln._gfmTasklistFirstContentOfListItem=void 0)),Zr=sr,sr=sr.next}for(sr=tt;++Hr<Ln.length;)Ln[Hr][0]==="exit"&&Ln[Hr-1][0]==="enter"&&Ln[Hr][1].type===Ln[Hr-1][1].type&&Ln[Hr][1].start.line!==Ln[Hr][1].end.line&&(jo=Hr+1,ea.push(jo),sr._tokenizer=void 0,sr.previous=void 0,sr=sr.next);for(ln.events=[],sr?(sr._tokenizer=void 0,sr.previous=void 0):ea.pop(),Hr=ea.length;Hr--;){const so=Ln.slice(ea[Hr],ea[Hr+1]),To=Ht.pop();Sr.push([To,To+so.length-1]),Ce.splice(To,2,so)}for(Sr.reverse(),Hr=-1;++Hr<Sr.length;)xr[Po+Sr[Hr][0]]=Po+Sr[Hr][1],Po+=Sr[Hr][1]-Sr[Hr][0]-1;return xr}function Yt(Ce){for(;!Rt(Ce););return Ce}const en={}.hasOwnProperty;function vn(Ce){const Qe={};let tt=-1;for(;++tt<Ce.length;)zn(Qe,Ce[tt]);return Qe}function zn(Ce,Qe){let tt;for(tt in Qe){const Ft=(en.call(Ce,tt)?Ce[tt]:void 0)||(Ce[tt]={}),Ht=Qe[tt];let ln;if(Ht)for(ln in Ht){en.call(Ft,ln)||(Ft[ln]=[]);const Ln=Ht[ln];un(Ft[ln],Array.isArray(Ln)?Ln:Ln?[Ln]:[])}}}function un(Ce,Qe){let tt=-1;const ft=[];for(;++tt<Qe.length;)(Qe[tt].add==="after"?Ce:ft).push(Qe[tt]);jt(Ce,0,0,ft)}function Et(Ce){const Qe={};let tt=-1;for(;++tt<Ce.length;)Xn(Qe,Ce[tt]);return Qe}function Xn(Ce,Qe){let tt;for(tt in Qe){const Ft=(en.call(Ce,tt)?Ce[tt]:void 0)||(Ce[tt]={}),Ht=Qe[tt];let ln;if(Ht)for(ln in Ht)Ft[ln]=Ht[ln]}}var ir=ae(26735),Jt=ae(80722);const Er={tokenize:ni};function ni(Ce){const Qe=Ce.attempt(this.parser.constructs.contentInitial,ft,Ft);let tt;return Qe;function ft(Ln){if(Ln===null){Ce.consume(Ln);return}return Ce.enter("lineEnding"),Ce.consume(Ln),Ce.exit("lineEnding"),(0,ir.f)(Ce,Qe,"linePrefix")}function Ft(Ln){return Ce.enter("paragraph"),Ht(Ln)}function Ht(Ln){const Sr=Ce.enter("chunkText",{contentType:"text",previous:tt});return tt&&(tt.next=Sr),tt=Sr,ln(Ln)}function ln(Ln){if(Ln===null){Ce.exit("chunkText"),Ce.exit("paragraph"),Ce.consume(Ln);return}return(0,Jt.Ch)(Ln)?(Ce.consume(Ln),Ce.exit("chunkText"),Ht):(Ce.consume(Ln),ln)}}const Rr={tokenize:ei},Mn={tokenize:Kr};function ei(Ce){const Qe=this,tt=[];let ft=0,Ft,Ht,ln;return Ln;function Ln(Bo){if(ft<tt.length){const Xa=tt[ft];return Qe.containerState=Xa[1],Ce.attempt(Xa[0].continuation,Sr,xr)(Bo)}return xr(Bo)}function Sr(Bo){if(ft++,Qe.containerState._closeFlow){Qe.containerState._closeFlow=void 0,Ft&&To();const Xa=Qe.events.length;let Qa=Xa,Ki;for(;Qa--;)if(Qe.events[Qa][0]==="exit"&&Qe.events[Qa][1].type==="chunkFlow"){Ki=Qe.events[Qa][1].end;break}so(ft);let ka=Xa;for(;ka<Qe.events.length;)Qe.events[ka][1].end=xa({},Ki),ka++;return jt(Qe.events,Qa+1,0,Qe.events.slice(Xa)),Qe.events.length=ka,xr(Bo)}return Ln(Bo)}function xr(Bo){if(ft===tt.length){if(!Ft)return Hr(Bo);if(Ft.currentConstruct&&Ft.currentConstruct.concrete)return Po(Bo);Qe.interrupt=!!(Ft.currentConstruct&&!Ft._gfmTableDynamicInterruptHack)}return Qe.containerState={},Ce.check(Mn,er,Zr)(Bo)}function er(Bo){return Ft&&To(),so(ft),Hr(Bo)}function Zr(Bo){return Qe.parser.lazy[Qe.now().line]=ft!==tt.length,ln=Qe.now().offset,Po(Bo)}function Hr(Bo){return Qe.containerState={},Ce.attempt(Mn,sr,Po)(Bo)}function sr(Bo){return ft++,tt.push([Qe.currentConstruct,Qe.containerState]),Hr(Bo)}function Po(Bo){if(Bo===null){Ft&&To(),so(0),Ce.consume(Bo);return}return Ft=Ft||Qe.parser.flow(Qe.now()),Ce.enter("chunkFlow",{_tokenizer:Ft,contentType:"flow",previous:Ht}),jo(Bo)}function jo(Bo){if(Bo===null){ea(Ce.exit("chunkFlow"),!0),so(0),Ce.consume(Bo);return}return(0,Jt.Ch)(Bo)?(Ce.consume(Bo),ea(Ce.exit("chunkFlow")),ft=0,Qe.interrupt=void 0,Ln):(Ce.consume(Bo),jo)}function ea(Bo,Xa){const Qa=Qe.sliceStream(Bo);if(Xa&&Qa.push(null),Bo.previous=Ht,Ht&&(Ht.next=Bo),Ht=Bo,Ft.defineSkip(Bo.start),Ft.write(Qa),Qe.parser.lazy[Bo.start.line]){let Ki=Ft.events.length;for(;Ki--;)if(Ft.events[Ki][1].start.offset<ln&&(!Ft.events[Ki][1].end||Ft.events[Ki][1].end.offset>ln))return;const ka=Qe.events.length;let ws=ka,Ua,xo;for(;ws--;)if(Qe.events[ws][0]==="exit"&&Qe.events[ws][1].type==="chunkFlow"){if(Ua){xo=Qe.events[ws][1].end;break}Ua=!0}for(so(ft),Ki=ka;Ki<Qe.events.length;)Qe.events[Ki][1].end=xa({},xo),Ki++;jt(Qe.events,ws+1,0,Qe.events.slice(ka)),Qe.events.length=Ki}}function so(Bo){let Xa=tt.length;for(;Xa-- >Bo;){const Qa=tt[Xa];Qe.containerState=Qa[1],Qa[0].exit.call(Qe,Ce)}tt.length=Bo}function To(){Ft.write([null]),Ht=void 0,Ft=void 0,Qe.containerState._closeFlow=void 0}}function Kr(Ce,Qe,tt){return(0,ir.f)(Ce,Ce.attempt(this.parser.constructs.document,Qe,tt),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const lr={partial:!0,tokenize:jr};function jr(Ce,Qe,tt){return ft;function ft(Ht){return(0,Jt.xz)(Ht)?(0,ir.f)(Ce,Ft,"linePrefix")(Ht):Ft(Ht)}function Ft(Ht){return Ht===null||(0,Jt.Ch)(Ht)?Qe(Ht):tt(Ht)}}const oi={resolve:dr,tokenize:Pr},Oe={partial:!0,tokenize:or};function dr(Ce){return Rt(Ce),Ce}function Pr(Ce,Qe){let tt;return ft;function ft(Ln){return Ce.enter("content"),tt=Ce.enter("chunkContent",{contentType:"content"}),Ft(Ln)}function Ft(Ln){return Ln===null?Ht(Ln):(0,Jt.Ch)(Ln)?Ce.check(Oe,ln,Ht)(Ln):(Ce.consume(Ln),Ft)}function Ht(Ln){return Ce.exit("chunkContent"),Ce.exit("content"),Qe(Ln)}function ln(Ln){return Ce.consume(Ln),Ce.exit("chunkContent"),tt.next=Ce.enter("chunkContent",{contentType:"content",previous:tt}),tt=tt.next,Ft}}function or(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){return Ce.exit("chunkContent"),Ce.enter("lineEnding"),Ce.consume(ln),Ce.exit("lineEnding"),(0,ir.f)(Ce,Ht,"linePrefix")}function Ht(ln){if(ln===null||(0,Jt.Ch)(ln))return tt(ln);const Ln=ft.events[ft.events.length-1];return!ft.parser.constructs.disable.null.includes("codeIndented")&&Ln&&Ln[1].type==="linePrefix"&&Ln[2].sliceSerialize(Ln[1],!0).length>=4?Qe(ln):Ce.interrupt(ft.parser.constructs.flow,tt,Qe)(ln)}}const Lr={tokenize:zr};function zr(Ce){const Qe=this,tt=Ce.attempt(lr,ft,Ce.attempt(this.parser.constructs.flowInitial,Ft,(0,ir.f)(Ce,Ce.attempt(this.parser.constructs.flow,Ft,Ce.attempt(oi,Ft)),"linePrefix")));return tt;function ft(Ht){if(Ht===null){Ce.consume(Ht);return}return Ce.enter("lineEndingBlank"),Ce.consume(Ht),Ce.exit("lineEndingBlank"),Qe.currentConstruct=void 0,tt}function Ft(Ht){if(Ht===null){Ce.consume(Ht);return}return Ce.enter("lineEnding"),Ce.consume(Ht),Ce.exit("lineEnding"),Qe.currentConstruct=void 0,tt}}const wr={resolveAll:Sn()},Ti=yn("string"),On=yn("text");function yn(Ce){return{resolveAll:Sn(Ce==="text"?Jn:void 0),tokenize:Qe};function Qe(tt){const ft=this,Ft=this.parser.constructs[Ce],Ht=tt.attempt(Ft,ln,Ln);return ln;function ln(er){return xr(er)?Ht(er):Ln(er)}function Ln(er){if(er===null){tt.consume(er);return}return tt.enter("data"),tt.consume(er),Sr}function Sr(er){return xr(er)?(tt.exit("data"),Ht(er)):(tt.consume(er),Sr)}function xr(er){if(er===null)return!0;const Zr=Ft[er];let Hr=-1;if(Zr)for(;++Hr<Zr.length;){const sr=Zr[Hr];if(!sr.previous||sr.previous.call(ft,ft.previous))return!0}return!1}}}function Sn(Ce){return Qe;function Qe(tt,ft){let Ft=-1,Ht;for(;++Ft<=tt.length;)Ht===void 0?tt[Ft]&&tt[Ft][1].type==="data"&&(Ht=Ft,Ft++):(!tt[Ft]||tt[Ft][1].type!=="data")&&(Ft!==Ht+2&&(tt[Ht][1].end=tt[Ft-1][1].end,tt.splice(Ht+2,Ft-Ht-2),Ft=Ht+2),Ht=void 0);return Ce?Ce(tt,ft):tt}}function Jn(Ce,Qe){let tt=0;for(;++tt<=Ce.length;)if((tt===Ce.length||Ce[tt][1].type==="lineEnding")&&Ce[tt-1][1].type==="data"){const ft=Ce[tt-1][1],Ft=Qe.sliceStream(ft);let Ht=Ft.length,ln=-1,Ln=0,Sr;for(;Ht--;){const xr=Ft[Ht];if(typeof xr=="string"){for(ln=xr.length;xr.charCodeAt(ln-1)===32;)Ln++,ln--;if(ln)break;ln=-1}else if(xr===-2)Sr=!0,Ln++;else if(xr!==-1){Ht++;break}}if(Qe._contentTypeTextTrailing&&tt===Ce.length&&(Ln=0),Ln){const xr={type:tt===Ce.length||Sr||Ln<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Ht?ln:ft.start._bufferIndex+ln,_index:ft.start._index+Ht,line:ft.end.line,column:ft.end.column-Ln,offset:ft.end.offset-Ln},end:xa({},ft.end)};ft.end=xa({},xr.start),ft.start.offset===ft.end.offset?Object.assign(ft,xr):(Ce.splice(tt,0,["enter",xr,Qe],["exit",xr,Qe]),tt+=2)}tt++}return Ce}const ui={name:"thematicBreak",tokenize:Yr};function Yr(Ce,Qe,tt){let ft=0,Ft;return Ht;function Ht(xr){return Ce.enter("thematicBreak"),ln(xr)}function ln(xr){return Ft=xr,Ln(xr)}function Ln(xr){return xr===Ft?(Ce.enter("thematicBreakSequence"),Sr(xr)):ft>=3&&(xr===null||(0,Jt.Ch)(xr))?(Ce.exit("thematicBreak"),Qe(xr)):tt(xr)}function Sr(xr){return xr===Ft?(Ce.consume(xr),ft++,Sr):(Ce.exit("thematicBreakSequence"),(0,Jt.xz)(xr)?(0,ir.f)(Ce,Ln,"whitespace")(xr):Ln(xr))}}const ci={continuation:{tokenize:ki},exit:Lt,name:"list",tokenize:wi},ur={partial:!0,tokenize:cn},Xr={partial:!0,tokenize:Fr};function wi(Ce,Qe,tt){const ft=this,Ft=ft.events[ft.events.length-1];let Ht=Ft&&Ft[1].type==="linePrefix"?Ft[2].sliceSerialize(Ft[1],!0).length:0,ln=0;return Ln;function Ln(sr){const Po=ft.containerState.type||(sr===42||sr===43||sr===45?"listUnordered":"listOrdered");if(Po==="listUnordered"?!ft.containerState.marker||sr===ft.containerState.marker:(0,Jt.pY)(sr)){if(ft.containerState.type||(ft.containerState.type=Po,Ce.enter(Po,{_container:!0})),Po==="listUnordered")return Ce.enter("listItemPrefix"),sr===42||sr===45?Ce.check(ui,tt,xr)(sr):xr(sr);if(!ft.interrupt||sr===49)return Ce.enter("listItemPrefix"),Ce.enter("listItemValue"),Sr(sr)}return tt(sr)}function Sr(sr){return(0,Jt.pY)(sr)&&++ln<10?(Ce.consume(sr),Sr):(!ft.interrupt||ln<2)&&(ft.containerState.marker?sr===ft.containerState.marker:sr===41||sr===46)?(Ce.exit("listItemValue"),xr(sr)):tt(sr)}function xr(sr){return Ce.enter("listItemMarker"),Ce.consume(sr),Ce.exit("listItemMarker"),ft.containerState.marker=ft.containerState.marker||sr,Ce.check(lr,ft.interrupt?tt:er,Ce.attempt(ur,Hr,Zr))}function er(sr){return ft.containerState.initialBlankLine=!0,Ht++,Hr(sr)}function Zr(sr){return(0,Jt.xz)(sr)?(Ce.enter("listItemPrefixWhitespace"),Ce.consume(sr),Ce.exit("listItemPrefixWhitespace"),Hr):tt(sr)}function Hr(sr){return ft.containerState.size=Ht+ft.sliceSerialize(Ce.exit("listItemPrefix"),!0).length,Qe(sr)}}function ki(Ce,Qe,tt){const ft=this;return ft.containerState._closeFlow=void 0,Ce.check(lr,Ft,Ht);function Ft(Ln){return ft.containerState.furtherBlankLines=ft.containerState.furtherBlankLines||ft.containerState.initialBlankLine,(0,ir.f)(Ce,Qe,"listItemIndent",ft.containerState.size+1)(Ln)}function Ht(Ln){return ft.containerState.furtherBlankLines||!(0,Jt.xz)(Ln)?(ft.containerState.furtherBlankLines=void 0,ft.containerState.initialBlankLine=void 0,ln(Ln)):(ft.containerState.furtherBlankLines=void 0,ft.containerState.initialBlankLine=void 0,Ce.attempt(Xr,Qe,ln)(Ln))}function ln(Ln){return ft.containerState._closeFlow=!0,ft.interrupt=void 0,(0,ir.f)(Ce,Ce.attempt(ci,Qe,tt),"linePrefix",ft.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ln)}}function Fr(Ce,Qe,tt){const ft=this;return(0,ir.f)(Ce,Ft,"listItemIndent",ft.containerState.size+1);function Ft(Ht){const ln=ft.events[ft.events.length-1];return ln&&ln[1].type==="listItemIndent"&&ln[2].sliceSerialize(ln[1],!0).length===ft.containerState.size?Qe(Ht):tt(Ht)}}function Lt(Ce){Ce.exit(this.containerState.type)}function cn(Ce,Qe,tt){const ft=this;return(0,ir.f)(Ce,Ft,"listItemPrefixWhitespace",ft.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Ft(Ht){const ln=ft.events[ft.events.length-1];return!(0,Jt.xz)(Ht)&&ln&&ln[1].type==="listItemPrefixWhitespace"?Qe(Ht):tt(Ht)}}const kr={continuation:{tokenize:Xt},exit:Fn,name:"blockQuote",tokenize:Ir};function Ir(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){if(ln===62){const Ln=ft.containerState;return Ln.open||(Ce.enter("blockQuote",{_container:!0}),Ln.open=!0),Ce.enter("blockQuotePrefix"),Ce.enter("blockQuoteMarker"),Ce.consume(ln),Ce.exit("blockQuoteMarker"),Ht}return tt(ln)}function Ht(ln){return(0,Jt.xz)(ln)?(Ce.enter("blockQuotePrefixWhitespace"),Ce.consume(ln),Ce.exit("blockQuotePrefixWhitespace"),Ce.exit("blockQuotePrefix"),Qe):(Ce.exit("blockQuotePrefix"),Qe(ln))}}function Xt(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){return(0,Jt.xz)(ln)?(0,ir.f)(Ce,Ht,"linePrefix",ft.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ln):Ht(ln)}function Ht(ln){return Ce.attempt(kr,Qe,tt)(ln)}}function Fn(Ce){Ce.exit("blockQuote")}function fr(Ce,Qe,tt,ft,Ft,Ht,ln,Ln,Sr){const xr=Sr||Number.POSITIVE_INFINITY;let er=0;return Zr;function Zr(so){return so===60?(Ce.enter(ft),Ce.enter(Ft),Ce.enter(Ht),Ce.consume(so),Ce.exit(Ht),Hr):so===null||so===32||so===41||(0,Jt.Av)(so)?tt(so):(Ce.enter(ft),Ce.enter(ln),Ce.enter(Ln),Ce.enter("chunkString",{contentType:"string"}),jo(so))}function Hr(so){return so===62?(Ce.enter(Ht),Ce.consume(so),Ce.exit(Ht),Ce.exit(Ft),Ce.exit(ft),Qe):(Ce.enter(Ln),Ce.enter("chunkString",{contentType:"string"}),sr(so))}function sr(so){return so===62?(Ce.exit("chunkString"),Ce.exit(Ln),Hr(so)):so===null||so===60||(0,Jt.Ch)(so)?tt(so):(Ce.consume(so),so===92?Po:sr)}function Po(so){return so===60||so===62||so===92?(Ce.consume(so),sr):sr(so)}function jo(so){return!er&&(so===null||so===41||(0,Jt.z3)(so))?(Ce.exit("chunkString"),Ce.exit(Ln),Ce.exit(ln),Ce.exit(ft),Qe(so)):er<xr&&so===40?(Ce.consume(so),er++,jo):so===41?(Ce.consume(so),er--,jo):so===null||so===32||so===40||(0,Jt.Av)(so)?tt(so):(Ce.consume(so),so===92?ea:jo)}function ea(so){return so===40||so===41||so===92?(Ce.consume(so),jo):jo(so)}}function dn(Ce,Qe,tt,ft,Ft,Ht){const ln=this;let Ln=0,Sr;return xr;function xr(sr){return Ce.enter(ft),Ce.enter(Ft),Ce.consume(sr),Ce.exit(Ft),Ce.enter(Ht),er}function er(sr){return Ln>999||sr===null||sr===91||sr===93&&!Sr||sr===94&&!Ln&&"_hiddenFootnoteSupport"in ln.parser.constructs?tt(sr):sr===93?(Ce.exit(Ht),Ce.enter(Ft),Ce.consume(sr),Ce.exit(Ft),Ce.exit(ft),Qe):(0,Jt.Ch)(sr)?(Ce.enter("lineEnding"),Ce.consume(sr),Ce.exit("lineEnding"),er):(Ce.enter("chunkString",{contentType:"string"}),Zr(sr))}function Zr(sr){return sr===null||sr===91||sr===93||(0,Jt.Ch)(sr)||Ln++>999?(Ce.exit("chunkString"),er(sr)):(Ce.consume(sr),Sr||(Sr=!(0,Jt.xz)(sr)),sr===92?Hr:Zr)}function Hr(sr){return sr===91||sr===92||sr===93?(Ce.consume(sr),Ln++,Zr):Zr(sr)}}function Ue(Ce,Qe,tt,ft,Ft,Ht){let ln;return Ln;function Ln(Hr){return Hr===34||Hr===39||Hr===40?(Ce.enter(ft),Ce.enter(Ft),Ce.consume(Hr),Ce.exit(Ft),ln=Hr===40?41:Hr,Sr):tt(Hr)}function Sr(Hr){return Hr===ln?(Ce.enter(Ft),Ce.consume(Hr),Ce.exit(Ft),Ce.exit(ft),Qe):(Ce.enter(Ht),xr(Hr))}function xr(Hr){return Hr===ln?(Ce.exit(Ht),Sr(ln)):Hr===null?tt(Hr):(0,Jt.Ch)(Hr)?(Ce.enter("lineEnding"),Ce.consume(Hr),Ce.exit("lineEnding"),(0,ir.f)(Ce,xr,"linePrefix")):(Ce.enter("chunkString",{contentType:"string"}),er(Hr))}function er(Hr){return Hr===ln||Hr===null||(0,Jt.Ch)(Hr)?(Ce.exit("chunkString"),xr(Hr)):(Ce.consume(Hr),Hr===92?Zr:er)}function Zr(Hr){return Hr===ln||Hr===92?(Ce.consume(Hr),er):er(Hr)}}function Mr(Ce,Qe){let tt;return ft;function ft(Ft){return(0,Jt.Ch)(Ft)?(Ce.enter("lineEnding"),Ce.consume(Ft),Ce.exit("lineEnding"),tt=!0,ft):(0,Jt.xz)(Ft)?(0,ir.f)(Ce,ft,tt?"linePrefix":"lineSuffix")(Ft):Qe(Ft)}}function Ur(Ce){return Ce.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wn={name:"definition",tokenize:Qr},mi={partial:!0,tokenize:rr};function Qr(Ce,Qe,tt){const ft=this;let Ft;return Ht;function Ht(sr){return Ce.enter("definition"),ln(sr)}function ln(sr){return dn.call(ft,Ce,Ln,tt,"definitionLabel","definitionLabelMarker","definitionLabelString")(sr)}function Ln(sr){return Ft=Ur(ft.sliceSerialize(ft.events[ft.events.length-1][1]).slice(1,-1)),sr===58?(Ce.enter("definitionMarker"),Ce.consume(sr),Ce.exit("definitionMarker"),Sr):tt(sr)}function Sr(sr){return(0,Jt.z3)(sr)?Mr(Ce,xr)(sr):xr(sr)}function xr(sr){return fr(Ce,er,tt,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(sr)}function er(sr){return Ce.attempt(mi,Zr,Zr)(sr)}function Zr(sr){return(0,Jt.xz)(sr)?(0,ir.f)(Ce,Hr,"whitespace")(sr):Hr(sr)}function Hr(sr){return sr===null||(0,Jt.Ch)(sr)?(Ce.exit("definition"),ft.parser.defined.push(Ft),Qe(sr)):tt(sr)}}function rr(Ce,Qe,tt){return ft;function ft(Ln){return(0,Jt.z3)(Ln)?Mr(Ce,Ft)(Ln):tt(Ln)}function Ft(Ln){return Ue(Ce,Ht,tt,"definitionTitle","definitionTitleMarker","definitionTitleString")(Ln)}function Ht(Ln){return(0,Jt.xz)(Ln)?(0,ir.f)(Ce,ln,"whitespace")(Ln):ln(Ln)}function ln(Ln){return Ln===null||(0,Jt.Ch)(Ln)?Qe(Ln):tt(Ln)}}const Gr={name:"codeIndented",tokenize:Ci},on={partial:!0,tokenize:Vi};function Ci(Ce,Qe,tt){const ft=this;return Ft;function Ft(xr){return Ce.enter("codeIndented"),(0,ir.f)(Ce,Ht,"linePrefix",5)(xr)}function Ht(xr){const er=ft.events[ft.events.length-1];return er&&er[1].type==="linePrefix"&&er[2].sliceSerialize(er[1],!0).length>=4?ln(xr):tt(xr)}function ln(xr){return xr===null?Sr(xr):(0,Jt.Ch)(xr)?Ce.attempt(on,ln,Sr)(xr):(Ce.enter("codeFlowValue"),Ln(xr))}function Ln(xr){return xr===null||(0,Jt.Ch)(xr)?(Ce.exit("codeFlowValue"),ln(xr)):(Ce.consume(xr),Ln)}function Sr(xr){return Ce.exit("codeIndented"),Qe(xr)}}function Vi(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){return ft.parser.lazy[ft.now().line]?tt(ln):(0,Jt.Ch)(ln)?(Ce.enter("lineEnding"),Ce.consume(ln),Ce.exit("lineEnding"),Ft):(0,ir.f)(Ce,Ht,"linePrefix",5)(ln)}function Ht(ln){const Ln=ft.events[ft.events.length-1];return Ln&&Ln[1].type==="linePrefix"&&Ln[2].sliceSerialize(Ln[1],!0).length>=4?Qe(ln):(0,Jt.Ch)(ln)?Ft(ln):tt(ln)}}const mn={name:"headingAtx",resolve:li,tokenize:bi};function li(Ce,Qe){let tt=Ce.length-2,ft=3,Ft,Ht;return Ce[ft][1].type==="whitespace"&&(ft+=2),tt-2>ft&&Ce[tt][1].type==="whitespace"&&(tt-=2),Ce[tt][1].type==="atxHeadingSequence"&&(ft===tt-1||tt-4>ft&&Ce[tt-2][1].type==="whitespace")&&(tt-=ft+1===tt?2:4),tt>ft&&(Ft={type:"atxHeadingText",start:Ce[ft][1].start,end:Ce[tt][1].end},Ht={type:"chunkText",start:Ce[ft][1].start,end:Ce[tt][1].end,contentType:"text"},jt(Ce,ft,tt-ft+1,[["enter",Ft,Qe],["enter",Ht,Qe],["exit",Ht,Qe],["exit",Ft,Qe]])),Ce}function bi(Ce,Qe,tt){let ft=0;return Ft;function Ft(er){return Ce.enter("atxHeading"),Ht(er)}function Ht(er){return Ce.enter("atxHeadingSequence"),ln(er)}function ln(er){return er===35&&ft++<6?(Ce.consume(er),ln):er===null||(0,Jt.z3)(er)?(Ce.exit("atxHeadingSequence"),Ln(er)):tt(er)}function Ln(er){return er===35?(Ce.enter("atxHeadingSequence"),Sr(er)):er===null||(0,Jt.Ch)(er)?(Ce.exit("atxHeading"),Qe(er)):(0,Jt.xz)(er)?(0,ir.f)(Ce,Ln,"whitespace")(er):(Ce.enter("atxHeadingText"),xr(er))}function Sr(er){return er===35?(Ce.consume(er),Sr):(Ce.exit("atxHeadingSequence"),Ln(er))}function xr(er){return er===null||er===35||(0,Jt.z3)(er)?(Ce.exit("atxHeadingText"),Ln(er)):(Ce.consume(er),xr)}}const qr={name:"setextUnderline",resolveTo:Pi,tokenize:Ii};function Pi(Ce,Qe){let tt=Ce.length,ft,Ft,Ht;for(;tt--;)if(Ce[tt][0]==="enter"){if(Ce[tt][1].type==="content"){ft=tt;break}Ce[tt][1].type==="paragraph"&&(Ft=tt)}else Ce[tt][1].type==="content"&&Ce.splice(tt,1),!Ht&&Ce[tt][1].type==="definition"&&(Ht=tt);const ln={type:"setextHeading",start:xa({},Ce[ft][1].start),end:xa({},Ce[Ce.length-1][1].end)};return Ce[Ft][1].type="setextHeadingText",Ht?(Ce.splice(Ft,0,["enter",ln,Qe]),Ce.splice(Ht+1,0,["exit",Ce[ft][1],Qe]),Ce[ft][1].end=xa({},Ce[Ht][1].end)):Ce[ft][1]=ln,Ce.push(["exit",ln,Qe]),Ce}function Ii(Ce,Qe,tt){const ft=this;let Ft;return Ht;function Ht(xr){let er=ft.events.length,Zr;for(;er--;)if(ft.events[er][1].type!=="lineEnding"&&ft.events[er][1].type!=="linePrefix"&&ft.events[er][1].type!=="content"){Zr=ft.events[er][1].type==="paragraph";break}return!ft.parser.lazy[ft.now().line]&&(ft.interrupt||Zr)?(Ce.enter("setextHeadingLine"),Ft=xr,ln(xr)):tt(xr)}function ln(xr){return Ce.enter("setextHeadingLineSequence"),Ln(xr)}function Ln(xr){return xr===Ft?(Ce.consume(xr),Ln):(Ce.exit("setextHeadingLineSequence"),(0,Jt.xz)(xr)?(0,ir.f)(Ce,Sr,"lineSuffix")(xr):Sr(xr))}function Sr(xr){return xr===null||(0,Jt.Ch)(xr)?(Ce.exit("setextHeadingLine"),Qe(xr)):tt(xr)}}const Hi=["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"],ji=["pre","script","style","textarea"],Bi={concrete:!0,name:"htmlFlow",resolveTo:zi,tokenize:ar},io={partial:!0,tokenize:Zi},Qn={partial:!0,tokenize:vi};function zi(Ce){let Qe=Ce.length;for(;Qe--&&!(Ce[Qe][0]==="enter"&&Ce[Qe][1].type==="htmlFlow"););return Qe>1&&Ce[Qe-2][1].type==="linePrefix"&&(Ce[Qe][1].start=Ce[Qe-2][1].start,Ce[Qe+1][1].start=Ce[Qe-2][1].start,Ce.splice(Qe-2,2)),Ce}function ar(Ce,Qe,tt){const ft=this;let Ft,Ht,ln,Ln,Sr;return xr;function xr(Or){return er(Or)}function er(Or){return Ce.enter("htmlFlow"),Ce.enter("htmlFlowData"),Ce.consume(Or),Zr}function Zr(Or){return Or===33?(Ce.consume(Or),Hr):Or===47?(Ce.consume(Or),Ht=!0,jo):Or===63?(Ce.consume(Or),Ft=3,ft.interrupt?Qe:Ar):(0,Jt.jv)(Or)?(Ce.consume(Or),ln=String.fromCharCode(Or),ea):tt(Or)}function Hr(Or){return Or===45?(Ce.consume(Or),Ft=2,sr):Or===91?(Ce.consume(Or),Ft=5,Ln=0,Po):(0,Jt.jv)(Or)?(Ce.consume(Or),Ft=4,ft.interrupt?Qe:Ar):tt(Or)}function sr(Or){return Or===45?(Ce.consume(Or),ft.interrupt?Qe:Ar):tt(Or)}function Po(Or){const xl="CDATA[";return Or===xl.charCodeAt(Ln++)?(Ce.consume(Or),Ln===xl.length?ft.interrupt?Qe:is:Po):tt(Or)}function jo(Or){return(0,Jt.jv)(Or)?(Ce.consume(Or),ln=String.fromCharCode(Or),ea):tt(Or)}function ea(Or){if(Or===null||Or===47||Or===62||(0,Jt.z3)(Or)){const xl=Or===47,Jl=ln.toLowerCase();return!xl&&!Ht&&ji.includes(Jl)?(Ft=1,ft.interrupt?Qe(Or):is(Or)):Hi.includes(ln.toLowerCase())?(Ft=6,xl?(Ce.consume(Or),so):ft.interrupt?Qe(Or):is(Or)):(Ft=7,ft.interrupt&&!ft.parser.lazy[ft.now().line]?tt(Or):Ht?To(Or):Bo(Or))}return Or===45||(0,Jt.H$)(Or)?(Ce.consume(Or),ln+=String.fromCharCode(Or),ea):tt(Or)}function so(Or){return Or===62?(Ce.consume(Or),ft.interrupt?Qe:is):tt(Or)}function To(Or){return(0,Jt.xz)(Or)?(Ce.consume(Or),To):xo(Or)}function Bo(Or){return Or===47?(Ce.consume(Or),xo):Or===58||Or===95||(0,Jt.jv)(Or)?(Ce.consume(Or),Xa):(0,Jt.xz)(Or)?(Ce.consume(Or),Bo):xo(Or)}function Xa(Or){return Or===45||Or===46||Or===58||Or===95||(0,Jt.H$)(Or)?(Ce.consume(Or),Xa):Qa(Or)}function Qa(Or){return Or===61?(Ce.consume(Or),Ki):(0,Jt.xz)(Or)?(Ce.consume(Or),Qa):Bo(Or)}function Ki(Or){return Or===null||Or===60||Or===61||Or===62||Or===96?tt(Or):Or===34||Or===39?(Ce.consume(Or),Sr=Or,ka):(0,Jt.xz)(Or)?(Ce.consume(Or),Ki):ws(Or)}function ka(Or){return Or===Sr?(Ce.consume(Or),Sr=null,Ua):Or===null||(0,Jt.Ch)(Or)?tt(Or):(Ce.consume(Or),ka)}function ws(Or){return Or===null||Or===34||Or===39||Or===47||Or===60||Or===61||Or===62||Or===96||(0,Jt.z3)(Or)?Qa(Or):(Ce.consume(Or),ws)}function Ua(Or){return Or===47||Or===62||(0,Jt.xz)(Or)?Bo(Or):tt(Or)}function xo(Or){return Or===62?(Ce.consume(Or),Dl):tt(Or)}function Dl(Or){return Or===null||(0,Jt.Ch)(Or)?is(Or):(0,Jt.xz)(Or)?(Ce.consume(Or),Dl):tt(Or)}function is(Or){return Or===45&&Ft===2?(Ce.consume(Or),ds):Or===60&&Ft===1?(Ce.consume(Or),al):Or===62&&Ft===4?(Ce.consume(Or),hl):Or===63&&Ft===3?(Ce.consume(Or),Ar):Or===93&&Ft===5?(Ce.consume(Or),Ul):(0,Jt.Ch)(Or)&&(Ft===6||Ft===7)?(Ce.exit("htmlFlowData"),Ce.check(io,Ql,Ko)(Or)):Or===null||(0,Jt.Ch)(Or)?(Ce.exit("htmlFlowData"),Ko(Or)):(Ce.consume(Or),is)}function Ko(Or){return Ce.check(Qn,Yo,Ql)(Or)}function Yo(Or){return Ce.enter("lineEnding"),Ce.consume(Or),Ce.exit("lineEnding"),Ea}function Ea(Or){return Or===null||(0,Jt.Ch)(Or)?Ko(Or):(Ce.enter("htmlFlowData"),is(Or))}function ds(Or){return Or===45?(Ce.consume(Or),Ar):is(Or)}function al(Or){return Or===47?(Ce.consume(Or),ln="",El):is(Or)}function El(Or){if(Or===62){const xl=ln.toLowerCase();return ji.includes(xl)?(Ce.consume(Or),hl):is(Or)}return(0,Jt.jv)(Or)&&ln.length<8?(Ce.consume(Or),ln+=String.fromCharCode(Or),El):is(Or)}function Ul(Or){return Or===93?(Ce.consume(Or),Ar):is(Or)}function Ar(Or){return Or===62?(Ce.consume(Or),hl):Or===45&&Ft===2?(Ce.consume(Or),Ar):is(Or)}function hl(Or){return Or===null||(0,Jt.Ch)(Or)?(Ce.exit("htmlFlowData"),Ql(Or)):(Ce.consume(Or),hl)}function Ql(Or){return Ce.exit("htmlFlow"),Qe(Or)}}function vi(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){return(0,Jt.Ch)(ln)?(Ce.enter("lineEnding"),Ce.consume(ln),Ce.exit("lineEnding"),Ht):tt(ln)}function Ht(ln){return ft.parser.lazy[ft.now().line]?tt(ln):Qe(ln)}}function Zi(Ce,Qe,tt){return ft;function ft(Ft){return Ce.enter("lineEnding"),Ce.consume(Ft),Ce.exit("lineEnding"),Ce.attempt(lr,Qe,tt)}}const Fi={partial:!0,tokenize:Wi},fo={concrete:!0,name:"codeFenced",tokenize:co};function co(Ce,Qe,tt){const ft=this,Ft={partial:!0,tokenize:Qa};let Ht=0,ln=0,Ln;return Sr;function Sr(Ki){return xr(Ki)}function xr(Ki){const ka=ft.events[ft.events.length-1];return Ht=ka&&ka[1].type==="linePrefix"?ka[2].sliceSerialize(ka[1],!0).length:0,Ln=Ki,Ce.enter("codeFenced"),Ce.enter("codeFencedFence"),Ce.enter("codeFencedFenceSequence"),er(Ki)}function er(Ki){return Ki===Ln?(ln++,Ce.consume(Ki),er):ln<3?tt(Ki):(Ce.exit("codeFencedFenceSequence"),(0,Jt.xz)(Ki)?(0,ir.f)(Ce,Zr,"whitespace")(Ki):Zr(Ki))}function Zr(Ki){return Ki===null||(0,Jt.Ch)(Ki)?(Ce.exit("codeFencedFence"),ft.interrupt?Qe(Ki):Ce.check(Fi,jo,Xa)(Ki)):(Ce.enter("codeFencedFenceInfo"),Ce.enter("chunkString",{contentType:"string"}),Hr(Ki))}function Hr(Ki){return Ki===null||(0,Jt.Ch)(Ki)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceInfo"),Zr(Ki)):(0,Jt.xz)(Ki)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceInfo"),(0,ir.f)(Ce,sr,"whitespace")(Ki)):Ki===96&&Ki===Ln?tt(Ki):(Ce.consume(Ki),Hr)}function sr(Ki){return Ki===null||(0,Jt.Ch)(Ki)?Zr(Ki):(Ce.enter("codeFencedFenceMeta"),Ce.enter("chunkString",{contentType:"string"}),Po(Ki))}function Po(Ki){return Ki===null||(0,Jt.Ch)(Ki)?(Ce.exit("chunkString"),Ce.exit("codeFencedFenceMeta"),Zr(Ki)):Ki===96&&Ki===Ln?tt(Ki):(Ce.consume(Ki),Po)}function jo(Ki){return Ce.attempt(Ft,Xa,ea)(Ki)}function ea(Ki){return Ce.enter("lineEnding"),Ce.consume(Ki),Ce.exit("lineEnding"),so}function so(Ki){return Ht>0&&(0,Jt.xz)(Ki)?(0,ir.f)(Ce,To,"linePrefix",Ht+1)(Ki):To(Ki)}function To(Ki){return Ki===null||(0,Jt.Ch)(Ki)?Ce.check(Fi,jo,Xa)(Ki):(Ce.enter("codeFlowValue"),Bo(Ki))}function Bo(Ki){return Ki===null||(0,Jt.Ch)(Ki)?(Ce.exit("codeFlowValue"),To(Ki)):(Ce.consume(Ki),Bo)}function Xa(Ki){return Ce.exit("codeFenced"),Qe(Ki)}function Qa(Ki,ka,ws){let Ua=0;return xo;function xo(Ea){return Ki.enter("lineEnding"),Ki.consume(Ea),Ki.exit("lineEnding"),Dl}function Dl(Ea){return Ki.enter("codeFencedFence"),(0,Jt.xz)(Ea)?(0,ir.f)(Ki,is,"linePrefix",ft.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ea):is(Ea)}function is(Ea){return Ea===Ln?(Ki.enter("codeFencedFenceSequence"),Ko(Ea)):ws(Ea)}function Ko(Ea){return Ea===Ln?(Ua++,Ki.consume(Ea),Ko):Ua>=ln?(Ki.exit("codeFencedFenceSequence"),(0,Jt.xz)(Ea)?(0,ir.f)(Ki,Yo,"whitespace")(Ea):Yo(Ea)):ws(Ea)}function Yo(Ea){return Ea===null||(0,Jt.Ch)(Ea)?(Ki.exit("codeFencedFence"),ka(Ea)):ws(Ea)}}}function Wi(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){return ln===null?tt(ln):(Ce.enter("lineEnding"),Ce.consume(ln),Ce.exit("lineEnding"),Ht)}function Ht(ln){return ft.parser.lazy[ft.now().line]?tt(ln):Qe(ln)}}const zo=document.createElement("i");function _n(Ce){const Qe="&"+Ce+";";zo.innerHTML=Qe;const tt=zo.textContent;return tt.charCodeAt(tt.length-1)===59&&Ce!=="semi"||tt===Qe?!1:tt}const vr={name:"characterReference",tokenize:An};function An(Ce,Qe,tt){const ft=this;let Ft=0,Ht,ln;return Ln;function Ln(Zr){return Ce.enter("characterReference"),Ce.enter("characterReferenceMarker"),Ce.consume(Zr),Ce.exit("characterReferenceMarker"),Sr}function Sr(Zr){return Zr===35?(Ce.enter("characterReferenceMarkerNumeric"),Ce.consume(Zr),Ce.exit("characterReferenceMarkerNumeric"),xr):(Ce.enter("characterReferenceValue"),Ht=31,ln=Jt.H$,er(Zr))}function xr(Zr){return Zr===88||Zr===120?(Ce.enter("characterReferenceMarkerHexadecimal"),Ce.consume(Zr),Ce.exit("characterReferenceMarkerHexadecimal"),Ce.enter("characterReferenceValue"),Ht=6,ln=Jt.AF,er):(Ce.enter("characterReferenceValue"),Ht=7,ln=Jt.pY,er(Zr))}function er(Zr){if(Zr===59&&Ft){const Hr=Ce.exit("characterReferenceValue");return ln===Jt.H$&&!_n(ft.sliceSerialize(Hr))?tt(Zr):(Ce.enter("characterReferenceMarker"),Ce.consume(Zr),Ce.exit("characterReferenceMarker"),Ce.exit("characterReference"),Qe)}return ln(Zr)&&Ft++<Ht?(Ce.consume(Zr),er):tt(Zr)}}const it={name:"characterEscape",tokenize:Dr};function Dr(Ce,Qe,tt){return ft;function ft(Ht){return Ce.enter("characterEscape"),Ce.enter("escapeMarker"),Ce.consume(Ht),Ce.exit("escapeMarker"),Ft}function Ft(Ht){return(0,Jt.sR)(Ht)?(Ce.enter("characterEscapeValue"),Ce.consume(Ht),Ce.exit("characterEscapeValue"),Ce.exit("characterEscape"),Qe):tt(Ht)}}const Wr={name:"lineEnding",tokenize:pi};function pi(Ce,Qe){return tt;function tt(ft){return Ce.enter("lineEnding"),Ce.consume(ft),Ce.exit("lineEnding"),(0,ir.f)(Ce,Qe,"linePrefix")}}function hi(Ce,Qe,tt){const ft=[];let Ft=-1;for(;++Ft<Ce.length;){const Ht=Ce[Ft].resolveAll;Ht&&!ft.includes(Ht)&&(Qe=Ht(Qe,tt),ft.push(Ht))}return Qe}const ai={name:"labelEnd",resolveAll:Pn,resolveTo:Gn,tokenize:gn},mr={tokenize:$n},ht={tokenize:Yn},wn={tokenize:an};function Pn(Ce){let Qe=-1;const tt=[];for(;++Qe<Ce.length;){const ft=Ce[Qe][1];if(tt.push(Ce[Qe]),ft.type==="labelImage"||ft.type==="labelLink"||ft.type==="labelEnd"){const Ft=ft.type==="labelImage"?4:2;ft.type="data",Qe+=Ft}}return Ce.length!==tt.length&&jt(Ce,0,Ce.length,tt),Ce}function Gn(Ce,Qe){let tt=Ce.length,ft=0,Ft,Ht,ln,Ln;for(;tt--;)if(Ft=Ce[tt][1],Ht){if(Ft.type==="link"||Ft.type==="labelLink"&&Ft._inactive)break;Ce[tt][0]==="enter"&&Ft.type==="labelLink"&&(Ft._inactive=!0)}else if(ln){if(Ce[tt][0]==="enter"&&(Ft.type==="labelImage"||Ft.type==="labelLink")&&!Ft._balanced&&(Ht=tt,Ft.type!=="labelLink")){ft=2;break}}else Ft.type==="labelEnd"&&(ln=tt);const Sr={type:Ce[Ht][1].type==="labelLink"?"link":"image",start:xa({},Ce[Ht][1].start),end:xa({},Ce[Ce.length-1][1].end)},xr={type:"label",start:xa({},Ce[Ht][1].start),end:xa({},Ce[ln][1].end)},er={type:"labelText",start:xa({},Ce[Ht+ft+2][1].end),end:xa({},Ce[ln-2][1].start)};return Ln=[["enter",Sr,Qe],["enter",xr,Qe]],Ln=hn(Ln,Ce.slice(Ht+1,Ht+ft+3)),Ln=hn(Ln,[["enter",er,Qe]]),Ln=hn(Ln,hi(Qe.parser.constructs.insideSpan.null,Ce.slice(Ht+ft+4,ln-3),Qe)),Ln=hn(Ln,[["exit",er,Qe],Ce[ln-2],Ce[ln-1],["exit",xr,Qe]]),Ln=hn(Ln,Ce.slice(ln+1)),Ln=hn(Ln,[["exit",Sr,Qe]]),jt(Ce,Ht,Ce.length,Ln),Ce}function gn(Ce,Qe,tt){const ft=this;let Ft=ft.events.length,Ht,ln;for(;Ft--;)if((ft.events[Ft][1].type==="labelImage"||ft.events[Ft][1].type==="labelLink")&&!ft.events[Ft][1]._balanced){Ht=ft.events[Ft][1];break}return Ln;function Ln(Hr){return Ht?Ht._inactive?Zr(Hr):(ln=ft.parser.defined.includes(Ur(ft.sliceSerialize({start:Ht.end,end:ft.now()}))),Ce.enter("labelEnd"),Ce.enter("labelMarker"),Ce.consume(Hr),Ce.exit("labelMarker"),Ce.exit("labelEnd"),Sr):tt(Hr)}function Sr(Hr){return Hr===40?Ce.attempt(mr,er,ln?er:Zr)(Hr):Hr===91?Ce.attempt(ht,er,ln?xr:Zr)(Hr):ln?er(Hr):Zr(Hr)}function xr(Hr){return Ce.attempt(wn,er,Zr)(Hr)}function er(Hr){return Qe(Hr)}function Zr(Hr){return Ht._balanced=!0,tt(Hr)}}function $n(Ce,Qe,tt){return ft;function ft(Zr){return Ce.enter("resource"),Ce.enter("resourceMarker"),Ce.consume(Zr),Ce.exit("resourceMarker"),Ft}function Ft(Zr){return(0,Jt.z3)(Zr)?Mr(Ce,Ht)(Zr):Ht(Zr)}function Ht(Zr){return Zr===41?er(Zr):fr(Ce,ln,Ln,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(Zr)}function ln(Zr){return(0,Jt.z3)(Zr)?Mr(Ce,Sr)(Zr):er(Zr)}function Ln(Zr){return tt(Zr)}function Sr(Zr){return Zr===34||Zr===39||Zr===40?Ue(Ce,xr,tt,"resourceTitle","resourceTitleMarker","resourceTitleString")(Zr):er(Zr)}function xr(Zr){return(0,Jt.z3)(Zr)?Mr(Ce,er)(Zr):er(Zr)}function er(Zr){return Zr===41?(Ce.enter("resourceMarker"),Ce.consume(Zr),Ce.exit("resourceMarker"),Ce.exit("resource"),Qe):tt(Zr)}}function Yn(Ce,Qe,tt){const ft=this;return Ft;function Ft(Ln){return dn.call(ft,Ce,Ht,ln,"reference","referenceMarker","referenceString")(Ln)}function Ht(Ln){return ft.parser.defined.includes(Ur(ft.sliceSerialize(ft.events[ft.events.length-1][1]).slice(1,-1)))?Qe(Ln):tt(Ln)}function ln(Ln){return tt(Ln)}}function an(Ce,Qe,tt){return ft;function ft(Ht){return Ce.enter("reference"),Ce.enter("referenceMarker"),Ce.consume(Ht),Ce.exit("referenceMarker"),Ft}function Ft(Ht){return Ht===93?(Ce.enter("referenceMarker"),Ce.consume(Ht),Ce.exit("referenceMarker"),Ce.exit("reference"),Qe):tt(Ht)}}const cr={name:"labelStartImage",resolveAll:ai.resolveAll,tokenize:Vr};function Vr(Ce,Qe,tt){const ft=this;return Ft;function Ft(Ln){return Ce.enter("labelImage"),Ce.enter("labelImageMarker"),Ce.consume(Ln),Ce.exit("labelImageMarker"),Ht}function Ht(Ln){return Ln===91?(Ce.enter("labelMarker"),Ce.consume(Ln),Ce.exit("labelMarker"),Ce.exit("labelImage"),ln):tt(Ln)}function ln(Ln){return Ln===94&&"_hiddenFootnoteSupport"in ft.parser.constructs?tt(Ln):Qe(Ln)}}function Ni(Ce){if(Ce===null||(0,Jt.z3)(Ce)||(0,Jt.B8)(Ce))return 1;if((0,Jt.Xh)(Ce))return 2}const si={name:"attention",resolveAll:Si,tokenize:Ri};function Si(Ce,Qe){let tt=-1,ft,Ft,Ht,ln,Ln,Sr,xr,er;for(;++tt<Ce.length;)if(Ce[tt][0]==="enter"&&Ce[tt][1].type==="attentionSequence"&&Ce[tt][1]._close){for(ft=tt;ft--;)if(Ce[ft][0]==="exit"&&Ce[ft][1].type==="attentionSequence"&&Ce[ft][1]._open&&Qe.sliceSerialize(Ce[ft][1]).charCodeAt(0)===Qe.sliceSerialize(Ce[tt][1]).charCodeAt(0)){if((Ce[ft][1]._close||Ce[tt][1]._open)&&(Ce[tt][1].end.offset-Ce[tt][1].start.offset)%3&&!((Ce[ft][1].end.offset-Ce[ft][1].start.offset+Ce[tt][1].end.offset-Ce[tt][1].start.offset)%3))continue;Sr=Ce[ft][1].end.offset-Ce[ft][1].start.offset>1&&Ce[tt][1].end.offset-Ce[tt][1].start.offset>1?2:1;const Zr=xa({},Ce[ft][1].end),Hr=xa({},Ce[tt][1].start);_i(Zr,-Sr),_i(Hr,Sr),ln={type:Sr>1?"strongSequence":"emphasisSequence",start:Zr,end:xa({},Ce[ft][1].end)},Ln={type:Sr>1?"strongSequence":"emphasisSequence",start:xa({},Ce[tt][1].start),end:Hr},Ht={type:Sr>1?"strongText":"emphasisText",start:xa({},Ce[ft][1].end),end:xa({},Ce[tt][1].start)},Ft={type:Sr>1?"strong":"emphasis",start:xa({},ln.start),end:xa({},Ln.end)},Ce[ft][1].end=xa({},ln.start),Ce[tt][1].start=xa({},Ln.end),xr=[],Ce[ft][1].end.offset-Ce[ft][1].start.offset&&(xr=hn(xr,[["enter",Ce[ft][1],Qe],["exit",Ce[ft][1],Qe]])),xr=hn(xr,[["enter",Ft,Qe],["enter",ln,Qe],["exit",ln,Qe],["enter",Ht,Qe]]),xr=hn(xr,hi(Qe.parser.constructs.insideSpan.null,Ce.slice(ft+1,tt),Qe)),xr=hn(xr,[["exit",Ht,Qe],["enter",Ln,Qe],["exit",Ln,Qe],["exit",Ft,Qe]]),Ce[tt][1].end.offset-Ce[tt][1].start.offset?(er=2,xr=hn(xr,[["enter",Ce[tt][1],Qe],["exit",Ce[tt][1],Qe]])):er=0,jt(Ce,ft-1,tt-ft+3,xr),tt=ft+xr.length-er-2;break}}for(tt=-1;++tt<Ce.length;)Ce[tt][1].type==="attentionSequence"&&(Ce[tt][1].type="data");return Ce}function Ri(Ce,Qe){const tt=this.parser.constructs.attentionMarkers.null,ft=this.previous,Ft=Ni(ft);let Ht;return ln;function ln(Sr){return Ht=Sr,Ce.enter("attentionSequence"),Ln(Sr)}function Ln(Sr){if(Sr===Ht)return Ce.consume(Sr),Ln;const xr=Ce.exit("attentionSequence"),er=Ni(Sr),Zr=!er||er===2&&Ft||tt.includes(Sr),Hr=!Ft||Ft===2&&er||tt.includes(ft);return xr._open=!!(Ht===42?Zr:Zr&&(Ft||!Hr)),xr._close=!!(Ht===42?Hr:Hr&&(er||!Zr)),Qe(Sr)}}function _i(Ce,Qe){Ce.column+=Qe,Ce.offset+=Qe,Ce._bufferIndex+=Qe}const ao={name:"autolink",tokenize:wo};function wo(Ce,Qe,tt){let ft=0;return Ft;function Ft(sr){return Ce.enter("autolink"),Ce.enter("autolinkMarker"),Ce.consume(sr),Ce.exit("autolinkMarker"),Ce.enter("autolinkProtocol"),Ht}function Ht(sr){return(0,Jt.jv)(sr)?(Ce.consume(sr),ln):sr===64?tt(sr):xr(sr)}function ln(sr){return sr===43||sr===45||sr===46||(0,Jt.H$)(sr)?(ft=1,Ln(sr)):xr(sr)}function Ln(sr){return sr===58?(Ce.consume(sr),ft=0,Sr):(sr===43||sr===45||sr===46||(0,Jt.H$)(sr))&&ft++<32?(Ce.consume(sr),Ln):(ft=0,xr(sr))}function Sr(sr){return sr===62?(Ce.exit("autolinkProtocol"),Ce.enter("autolinkMarker"),Ce.consume(sr),Ce.exit("autolinkMarker"),Ce.exit("autolink"),Qe):sr===null||sr===32||sr===60||(0,Jt.Av)(sr)?tt(sr):(Ce.consume(sr),Sr)}function xr(sr){return sr===64?(Ce.consume(sr),er):(0,Jt.n9)(sr)?(Ce.consume(sr),xr):tt(sr)}function er(sr){return(0,Jt.H$)(sr)?Zr(sr):tt(sr)}function Zr(sr){return sr===46?(Ce.consume(sr),ft=0,er):sr===62?(Ce.exit("autolinkProtocol").type="autolinkEmail",Ce.enter("autolinkMarker"),Ce.consume(sr),Ce.exit("autolinkMarker"),Ce.exit("autolink"),Qe):Hr(sr)}function Hr(sr){if((sr===45||(0,Jt.H$)(sr))&&ft++<63){const Po=sr===45?Hr:Zr;return Ce.consume(sr),Po}return tt(sr)}}const Ho={name:"htmlText",tokenize:In};function In(Ce,Qe,tt){const ft=this;let Ft,Ht,ln;return Ln;function Ln(Ar){return Ce.enter("htmlText"),Ce.enter("htmlTextData"),Ce.consume(Ar),Sr}function Sr(Ar){return Ar===33?(Ce.consume(Ar),xr):Ar===47?(Ce.consume(Ar),Qa):Ar===63?(Ce.consume(Ar),Bo):(0,Jt.jv)(Ar)?(Ce.consume(Ar),ws):tt(Ar)}function xr(Ar){return Ar===45?(Ce.consume(Ar),er):Ar===91?(Ce.consume(Ar),Ht=0,Po):(0,Jt.jv)(Ar)?(Ce.consume(Ar),To):tt(Ar)}function er(Ar){return Ar===45?(Ce.consume(Ar),sr):tt(Ar)}function Zr(Ar){return Ar===null?tt(Ar):Ar===45?(Ce.consume(Ar),Hr):(0,Jt.Ch)(Ar)?(ln=Zr,al(Ar)):(Ce.consume(Ar),Zr)}function Hr(Ar){return Ar===45?(Ce.consume(Ar),sr):Zr(Ar)}function sr(Ar){return Ar===62?ds(Ar):Ar===45?Hr(Ar):Zr(Ar)}function Po(Ar){const hl="CDATA[";return Ar===hl.charCodeAt(Ht++)?(Ce.consume(Ar),Ht===hl.length?jo:Po):tt(Ar)}function jo(Ar){return Ar===null?tt(Ar):Ar===93?(Ce.consume(Ar),ea):(0,Jt.Ch)(Ar)?(ln=jo,al(Ar)):(Ce.consume(Ar),jo)}function ea(Ar){return Ar===93?(Ce.consume(Ar),so):jo(Ar)}function so(Ar){return Ar===62?ds(Ar):Ar===93?(Ce.consume(Ar),so):jo(Ar)}function To(Ar){return Ar===null||Ar===62?ds(Ar):(0,Jt.Ch)(Ar)?(ln=To,al(Ar)):(Ce.consume(Ar),To)}function Bo(Ar){return Ar===null?tt(Ar):Ar===63?(Ce.consume(Ar),Xa):(0,Jt.Ch)(Ar)?(ln=Bo,al(Ar)):(Ce.consume(Ar),Bo)}function Xa(Ar){return Ar===62?ds(Ar):Bo(Ar)}function Qa(Ar){return(0,Jt.jv)(Ar)?(Ce.consume(Ar),Ki):tt(Ar)}function Ki(Ar){return Ar===45||(0,Jt.H$)(Ar)?(Ce.consume(Ar),Ki):ka(Ar)}function ka(Ar){return(0,Jt.Ch)(Ar)?(ln=ka,al(Ar)):(0,Jt.xz)(Ar)?(Ce.consume(Ar),ka):ds(Ar)}function ws(Ar){return Ar===45||(0,Jt.H$)(Ar)?(Ce.consume(Ar),ws):Ar===47||Ar===62||(0,Jt.z3)(Ar)?Ua(Ar):tt(Ar)}function Ua(Ar){return Ar===47?(Ce.consume(Ar),ds):Ar===58||Ar===95||(0,Jt.jv)(Ar)?(Ce.consume(Ar),xo):(0,Jt.Ch)(Ar)?(ln=Ua,al(Ar)):(0,Jt.xz)(Ar)?(Ce.consume(Ar),Ua):ds(Ar)}function xo(Ar){return Ar===45||Ar===46||Ar===58||Ar===95||(0,Jt.H$)(Ar)?(Ce.consume(Ar),xo):Dl(Ar)}function Dl(Ar){return Ar===61?(Ce.consume(Ar),is):(0,Jt.Ch)(Ar)?(ln=Dl,al(Ar)):(0,Jt.xz)(Ar)?(Ce.consume(Ar),Dl):Ua(Ar)}function is(Ar){return Ar===null||Ar===60||Ar===61||Ar===62||Ar===96?tt(Ar):Ar===34||Ar===39?(Ce.consume(Ar),Ft=Ar,Ko):(0,Jt.Ch)(Ar)?(ln=is,al(Ar)):(0,Jt.xz)(Ar)?(Ce.consume(Ar),is):(Ce.consume(Ar),Yo)}function Ko(Ar){return Ar===Ft?(Ce.consume(Ar),Ft=void 0,Ea):Ar===null?tt(Ar):(0,Jt.Ch)(Ar)?(ln=Ko,al(Ar)):(Ce.consume(Ar),Ko)}function Yo(Ar){return Ar===null||Ar===34||Ar===39||Ar===60||Ar===61||Ar===96?tt(Ar):Ar===47||Ar===62||(0,Jt.z3)(Ar)?Ua(Ar):(Ce.consume(Ar),Yo)}function Ea(Ar){return Ar===47||Ar===62||(0,Jt.z3)(Ar)?Ua(Ar):tt(Ar)}function ds(Ar){return Ar===62?(Ce.consume(Ar),Ce.exit("htmlTextData"),Ce.exit("htmlText"),Qe):tt(Ar)}function al(Ar){return Ce.exit("htmlTextData"),Ce.enter("lineEnding"),Ce.consume(Ar),Ce.exit("lineEnding"),El}function El(Ar){return(0,Jt.xz)(Ar)?(0,ir.f)(Ce,Ul,"linePrefix",ft.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ar):Ul(Ar)}function Ul(Ar){return Ce.enter("htmlTextData"),ln(Ar)}}const ko={name:"labelStartLink",resolveAll:ai.resolveAll,tokenize:po};function po(Ce,Qe,tt){const ft=this;return Ft;function Ft(ln){return Ce.enter("labelLink"),Ce.enter("labelMarker"),Ce.consume(ln),Ce.exit("labelMarker"),Ce.exit("labelLink"),Ht}function Ht(ln){return ln===94&&"_hiddenFootnoteSupport"in ft.parser.constructs?tt(ln):Qe(ln)}}const Yi={name:"hardBreakEscape",tokenize:Oi};function Oi(Ce,Qe,tt){return ft;function ft(Ht){return Ce.enter("hardBreakEscape"),Ce.consume(Ht),Ft}function Ft(Ht){return(0,Jt.Ch)(Ht)?(Ce.exit("hardBreakEscape"),Qe(Ht)):tt(Ht)}}const Oo={name:"codeText",previous:jn,resolve:Wo,tokenize:vo};function Wo(Ce){let Qe=Ce.length-4,tt=3,ft,Ft;if((Ce[tt][1].type==="lineEnding"||Ce[tt][1].type==="space")&&(Ce[Qe][1].type==="lineEnding"||Ce[Qe][1].type==="space")){for(ft=tt;++ft<Qe;)if(Ce[ft][1].type==="codeTextData"){Ce[tt][1].type="codeTextPadding",Ce[Qe][1].type="codeTextPadding",tt+=2,Qe-=2;break}}for(ft=tt-1,Qe++;++ft<=Qe;)Ft===void 0?ft!==Qe&&Ce[ft][1].type!=="lineEnding"&&(Ft=ft):(ft===Qe||Ce[ft][1].type==="lineEnding")&&(Ce[Ft][1].type="codeTextData",ft!==Ft+2&&(Ce[Ft][1].end=Ce[ft-1][1].end,Ce.splice(Ft+2,ft-Ft-2),Qe-=ft-Ft-2,ft=Ft+2),Ft=void 0);return Ce}function jn(Ce){return Ce!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vo(Ce,Qe,tt){const ft=this;let Ft=0,Ht,ln;return Ln;function Ln(Hr){return Ce.enter("codeText"),Ce.enter("codeTextSequence"),Sr(Hr)}function Sr(Hr){return Hr===96?(Ce.consume(Hr),Ft++,Sr):(Ce.exit("codeTextSequence"),xr(Hr))}function xr(Hr){return Hr===null?tt(Hr):Hr===32?(Ce.enter("space"),Ce.consume(Hr),Ce.exit("space"),xr):Hr===96?(ln=Ce.enter("codeTextSequence"),Ht=0,Zr(Hr)):(0,Jt.Ch)(Hr)?(Ce.enter("lineEnding"),Ce.consume(Hr),Ce.exit("lineEnding"),xr):(Ce.enter("codeTextData"),er(Hr))}function er(Hr){return Hr===null||Hr===32||Hr===96||(0,Jt.Ch)(Hr)?(Ce.exit("codeTextData"),xr(Hr)):(Ce.consume(Hr),er)}function Zr(Hr){return Hr===96?(Ce.consume(Hr),Ht++,Zr):Ht===Ft?(Ce.exit("codeTextSequence"),Ce.exit("codeText"),Qe(Hr)):(ln.type="codeTextData",er(Hr))}}const ia={42:ci,43:ci,45:ci,48:ci,49:ci,50:ci,51:ci,52:ci,53:ci,54:ci,55:ci,56:ci,57:ci,62:kr},za={91:Wn},hs={[-2]:Gr,[-1]:Gr,32:Gr},il={35:mn,42:ui,45:[qr,ui],60:Bi,61:qr,95:ui,96:fo,126:fo},Ls={38:vr,92:it},no={[-5]:Wr,[-4]:Wr,[-3]:Wr,33:cr,38:vr,42:si,60:[ao,Ho],91:ko,92:[Yi,it],93:ai,95:si,96:Oo},Ra={null:[si,wr]},Ma={null:[42,95]},ts={null:[]};function Oa(Ce,Qe,tt){let ft={_bufferIndex:-1,_index:0,line:tt&&tt.line||1,column:tt&&tt.column||1,offset:tt&&tt.offset||0};const Ft={},Ht=[];let ln=[],Ln=[],Sr=!0;const xr={attempt:Ua(ka),check:Ua(ws),consume:Xa,enter:Qa,exit:Ki,interrupt:Ua(ws,{interrupt:!0})},er={code:null,containerState:{},defineSkip:so,events:[],now:ea,parser:Ce,previous:null,sliceSerialize:Po,sliceStream:jo,write:sr};let Zr=Qe.tokenize.call(er,xr),Hr;return Qe.resolveAll&&Ht.push(Qe),er;function sr(Ko){return ln=hn(ln,Ko),To(),ln[ln.length-1]!==null?[]:(xo(Qe,0),er.events=hi(Ht,er.events,er),er.events)}function Po(Ko,Yo){return fi(jo(Ko),Yo)}function jo(Ko){return _a(ln,Ko)}function ea(){const{_bufferIndex:Ko,_index:Yo,line:Ea,column:ds,offset:al}=ft;return{_bufferIndex:Ko,_index:Yo,line:Ea,column:ds,offset:al}}function so(Ko){Ft[Ko.line]=Ko.column,is()}function To(){let Ko;for(;ft._index<ln.length;){const Yo=ln[ft._index];if(typeof Yo=="string")for(Ko=ft._index,ft._bufferIndex<0&&(ft._bufferIndex=0);ft._index===Ko&&ft._bufferIndex<Yo.length;)Bo(Yo.charCodeAt(ft._bufferIndex));else Bo(Yo)}}function Bo(Ko){Sr=void 0,Hr=Ko,Zr=Zr(Ko)}function Xa(Ko){(0,Jt.Ch)(Ko)?(ft.line++,ft.column=1,ft.offset+=Ko===-3?2:1,is()):Ko!==-1&&(ft.column++,ft.offset++),ft._bufferIndex<0?ft._index++:(ft._bufferIndex++,ft._bufferIndex===ln[ft._index].length&&(ft._bufferIndex=-1,ft._index++)),er.previous=Ko,Sr=!0}function Qa(Ko,Yo){const Ea=Yo||{};return Ea.type=Ko,Ea.start=ea(),er.events.push(["enter",Ea,er]),Ln.push(Ea),Ea}function Ki(Ko){const Yo=Ln.pop();return Yo.end=ea(),er.events.push(["exit",Yo,er]),Yo}function ka(Ko,Yo){xo(Ko,Yo.from)}function ws(Ko,Yo){Yo.restore()}function Ua(Ko,Yo){return Ea;function Ea(ds,al,El){let Ul,Ar,hl,Ql;return Array.isArray(ds)?xl(ds):"tokenize"in ds?xl([ds]):Or(ds);function Or(ms){return ql;function ql(fl){const Qu=fl!==null&&ms[fl],uc=fl!==null&&ms.null,cc=[...Array.isArray(Qu)?Qu:Qu?[Qu]:[],...Array.isArray(uc)?uc:uc?[uc]:[]];return xl(cc)(fl)}}function xl(ms){return Ul=ms,Ar=0,ms.length===0?El:Jl(ms[Ar])}function Jl(ms){return ql;function ql(fl){return Ql=Dl(),hl=ms,ms.partial||(er.currentConstruct=ms),ms.name&&er.parser.constructs.disable.null.includes(ms.name)?el(fl):ms.tokenize.call(Yo?Object.assign(Object.create(er),Yo):er,xr,_u,el)(fl)}}function _u(ms){return Sr=!0,Ko(hl,Ql),al}function el(ms){return Sr=!0,Ql.restore(),++Ar<Ul.length?Jl(Ul[Ar]):El}}}function xo(Ko,Yo){Ko.resolveAll&&!Ht.includes(Ko)&&Ht.push(Ko),Ko.resolve&&jt(er.events,Yo,er.events.length-Yo,Ko.resolve(er.events.slice(Yo),er)),Ko.resolveTo&&(er.events=Ko.resolveTo(er.events,er))}function Dl(){const Ko=ea(),Yo=er.previous,Ea=er.currentConstruct,ds=er.events.length,al=Array.from(Ln);return{from:ds,restore:El};function El(){ft=Ko,er.previous=Yo,er.currentConstruct=Ea,er.events.length=ds,Ln=al,is()}}function is(){ft.line in Ft&&ft.column<2&&(ft.column=Ft[ft.line],ft.offset+=Ft[ft.line]-1)}}function _a(Ce,Qe){const tt=Qe.start._index,ft=Qe.start._bufferIndex,Ft=Qe.end._index,Ht=Qe.end._bufferIndex;let ln;if(tt===Ft)ln=[Ce[tt].slice(ft,Ht)];else{if(ln=Ce.slice(tt,Ft),ft>-1){const Ln=ln[0];typeof Ln=="string"?ln[0]=Ln.slice(ft):ln.shift()}Ht>0&&ln.push(Ce[Ft].slice(0,Ht))}return ln}function fi(Ce,Qe){let tt=-1;const ft=[];let Ft;for(;++tt<Ce.length;){const Ht=Ce[tt];let ln;if(typeof Ht=="string")ln=Ht;else switch(Ht){case-5:{ln="\r";break}case-4:{ln=`
|
|
|
`;break}case-3:{ln=`\r
|
|
|
`;break}case-2:{ln=Qe?" ":" ";break}case-1:{if(!Qe&&Ft)continue;ln=" ";break}default:ln=String.fromCharCode(Ht)}Ft=Ht===-2,ft.push(ln)}return ft.join("")}function Qi(Ce){const ft={constructs:vn([oe,...(Ce||{}).extensions||[]]),content:Ft(Er),defined:[],document:Ft(Rr),flow:Ft(Lr),lazy:{},string:Ft(Ti),text:Ft(On)};return ft;function Ft(Ht){return ln;function ln(Ln){return Oa(ft,Ht,Ln)}}}const ho=/[\0\t\n\r]/g;function Io(){let Ce=1,Qe="",tt=!0,ft;return Ft;function Ft(Ht,ln,Ln){const Sr=[];let xr,er,Zr,Hr,sr;for(Ht=Qe+(typeof Ht=="string"?Ht.toString():new TextDecoder(ln||void 0).decode(Ht)),Zr=0,Qe="",tt&&(Ht.charCodeAt(0)===65279&&Zr++,tt=void 0);Zr<Ht.length;){if(ho.lastIndex=Zr,xr=ho.exec(Ht),Hr=xr&&xr.index!==void 0?xr.index:Ht.length,sr=Ht.charCodeAt(Hr),!xr){Qe=Ht.slice(Zr);break}if(sr===10&&Zr===Hr&&ft)Sr.push(-3),ft=void 0;else switch(ft&&(Sr.push(-5),ft=void 0),Zr<Hr&&(Sr.push(Ht.slice(Zr,Hr)),Ce+=Hr-Zr),sr){case 0:{Sr.push(65533),Ce++;break}case 9:{for(er=Math.ceil(Ce/4)*4,Sr.push(-2);Ce++<er;)Sr.push(-1);break}case 10:{Sr.push(-4),Ce=1;break}default:ft=!0,Ce=1}Zr=Hr+1}return Ln&&(ft&&Sr.push(-5),Qe&&Sr.push(Qe),Sr.push(null)),Sr}}function Do(Ce,Qe){const tt=Number.parseInt(Ce,Qe);return tt<9||tt===11||tt>13&&tt<32||tt>126&&tt<160||tt>55295&&tt<57344||tt>64975&&tt<65008||(tt&65535)===65535||(tt&65535)===65534||tt>1114111?"\uFFFD":String.fromCodePoint(tt)}const sa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ji(Ce){return Ce.replace(sa,Ss)}function Ss(Ce,Qe,tt){if(Qe)return Qe;if(tt.charCodeAt(0)===35){const Ft=tt.charCodeAt(1),Ht=Ft===120||Ft===88;return Do(tt.slice(Ht?2:1),Ht?16:10)}return _n(tt)||Ce}const pa={}.hasOwnProperty;function Ga(Ce,Qe,tt){return typeof Qe!="string"&&(tt=Qe,Qe=void 0),Fo(tt)(Yt(Qi(tt).document().write(Io()(Ce,Qe,!0))))}function Fo(Ce){const Qe={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Ht(et),autolinkProtocol:Ua,autolinkEmail:Ua,atxHeading:Ht(Ju),blockQuote:Ht(fl),characterEscape:Ua,characterReference:Ua,codeFenced:Ht(Qu),codeFencedFenceInfo:ln,codeFencedFenceMeta:ln,codeIndented:Ht(Qu,ln),codeText:Ht(uc,ln),codeTextData:Ua,data:Ua,codeFlowValue:Ua,definition:Ht(cc),definitionDestinationString:ln,definitionLabelString:ln,definitionTitleString:ln,emphasis:Ht(wl),hardBreakEscape:Ht(zd),hardBreakTrailing:Ht(zd),htmlFlow:Ht(ce,ln),htmlFlowData:Ua,htmlText:Ht(ce,ln),htmlTextData:Ua,image:Ht(ge),label:ln,link:Ht(et),listItem:Ht(br),listItemValue:Hr,listOrdered:Ht(nn,Zr),listUnordered:Ht(nn),paragraph:Ht(ti),reference:Or,referenceString:ln,resourceDestinationString:ln,resourceTitleString:ln,setextHeading:Ht(Ju),strong:Ht(Li),thematicBreak:Ht(Xo)},exit:{atxHeading:Sr(),atxHeadingSequence:Qa,autolink:Sr(),autolinkEmail:ql,autolinkProtocol:ms,blockQuote:Sr(),characterEscapeValue:xo,characterReferenceMarkerHexadecimal:Jl,characterReferenceMarkerNumeric:Jl,characterReferenceValue:_u,characterReference:el,codeFenced:Sr(ea),codeFencedFence:jo,codeFencedFenceInfo:sr,codeFencedFenceMeta:Po,codeFlowValue:xo,codeIndented:Sr(so),codeText:Sr(Ea),codeTextData:xo,data:xo,definition:Sr(),definitionDestinationString:Xa,definitionLabelString:To,definitionTitleString:Bo,emphasis:Sr(),hardBreakEscape:Sr(is),hardBreakTrailing:Sr(is),htmlFlow:Sr(Ko),htmlFlowData:xo,htmlText:Sr(Yo),htmlTextData:xo,image:Sr(al),label:Ul,labelText:El,lineEnding:Dl,link:Sr(ds),listItem:Sr(),listOrdered:Sr(),listUnordered:Sr(),paragraph:Sr(),referenceString:xl,resourceDestinationString:Ar,resourceTitleString:hl,resource:Ql,setextHeading:Sr(ws),setextHeadingLineSequence:ka,setextHeadingText:Ki,strong:Sr(),thematicBreak:Sr()}};Hs(Qe,(Ce||{}).mdastExtensions||[]);const tt={};return ft;function ft(ii){let qi={type:"root",children:[]};const ta={stack:[qi],tokenStack:[],config:Qe,enter:Ln,exit:xr,buffer:ln,resume:er,data:tt},Aa=[];let os=-1;for(;++os<ii.length;)if(ii[os][1].type==="listOrdered"||ii[os][1].type==="listUnordered")if(ii[os][0]==="enter")Aa.push(os);else{const Uu=Aa.pop();os=Ft(ii,Uu,os)}for(os=-1;++os<ii.length;){const Uu=Qe[ii[os][0]];pa.call(Uu,ii[os][1].type)&&Uu[ii[os][1].type].call(Object.assign({sliceSerialize:ii[os][2].sliceSerialize},ta),ii[os][1])}if(ta.tokenStack.length>0){const Uu=ta.tokenStack[ta.tokenStack.length-1];(Uu[1]||Rs).call(ta,void 0,Uu[0])}for(qi.position={start:ga(ii.length>0?ii[0][1].start:{line:1,column:1,offset:0}),end:ga(ii.length>0?ii[ii.length-2][1].end:{line:1,column:1,offset:0})},os=-1;++os<Qe.transforms.length;)qi=Qe.transforms[os](qi)||qi;return qi}function Ft(ii,qi,ta){let Aa=qi-1,os=-1,Uu=!1,xu,wu,dc,Hl;for(;++Aa<=ta;){const Cu=ii[Aa];switch(Cu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Cu[0]==="enter"?os++:os--,Hl=void 0;break}case"lineEndingBlank":{Cu[0]==="enter"&&(xu&&!Hl&&!os&&!dc&&(dc=Aa),Hl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hl=void 0}if(!os&&Cu[0]==="enter"&&Cu[1].type==="listItemPrefix"||os===-1&&Cu[0]==="exit"&&(Cu[1].type==="listUnordered"||Cu[1].type==="listOrdered")){if(xu){let Mc=Aa;for(wu=void 0;Mc--;){const fu=ii[Mc];if(fu[1].type==="lineEnding"||fu[1].type==="lineEndingBlank"){if(fu[0]==="exit")continue;wu&&(ii[wu][1].type="lineEndingBlank",Uu=!0),fu[1].type="lineEnding",wu=Mc}else if(!(fu[1].type==="linePrefix"||fu[1].type==="blockQuotePrefix"||fu[1].type==="blockQuotePrefixWhitespace"||fu[1].type==="blockQuoteMarker"||fu[1].type==="listItemIndent"))break}dc&&(!wu||dc<wu)&&(xu._spread=!0),xu.end=Object.assign({},wu?ii[wu][1].start:Cu[1].end),ii.splice(wu||Aa,0,["exit",xu,Cu[2]]),Aa++,ta++}if(Cu[1].type==="listItemPrefix"){const Mc={type:"listItem",_spread:!1,start:Object.assign({},Cu[1].start),end:void 0};xu=Mc,ii.splice(Aa,0,["enter",Mc,Cu[2]]),Aa++,ta++,dc=void 0,Hl=!0}}}return ii[qi][1]._spread=Uu,ta}function Ht(ii,qi){return ta;function ta(Aa){Ln.call(this,ii(Aa),Aa),qi&&qi.call(this,Aa)}}function ln(){this.stack.push({type:"fragment",children:[]})}function Ln(ii,qi,ta){this.stack[this.stack.length-1].children.push(ii),this.stack.push(ii),this.tokenStack.push([qi,ta||void 0]),ii.position={start:ga(qi.start),end:void 0}}function Sr(ii){return qi;function qi(ta){ii&&ii.call(this,ta),xr.call(this,ta)}}function xr(ii,qi){const ta=this.stack.pop(),Aa=this.tokenStack.pop();if(Aa)Aa[0].type!==ii.type&&(qi?qi.call(this,ii,Aa[0]):(Aa[1]||Rs).call(this,ii,Aa[0]));else throw new Error("Cannot close `"+ii.type+"` ("+Ae({start:ii.start,end:ii.end})+"): it\u2019s not open");ta.position.end=ga(ii.end)}function er(){return sn(this.stack.pop())}function Zr(){this.data.expectingFirstListItemValue=!0}function Hr(ii){if(this.data.expectingFirstListItemValue){const qi=this.stack[this.stack.length-2];qi.start=Number.parseInt(this.sliceSerialize(ii),10),this.data.expectingFirstListItemValue=void 0}}function sr(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.lang=ii}function Po(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.meta=ii}function jo(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ea(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.value=ii.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function so(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.value=ii.replace(/(\r?\n|\r)$/g,"")}function To(ii){const qi=this.resume(),ta=this.stack[this.stack.length-1];ta.label=qi,ta.identifier=Ur(this.sliceSerialize(ii)).toLowerCase()}function Bo(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.title=ii}function Xa(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.url=ii}function Qa(ii){const qi=this.stack[this.stack.length-1];if(!qi.depth){const ta=this.sliceSerialize(ii).length;qi.depth=ta}}function Ki(){this.data.setextHeadingSlurpLineEnding=!0}function ka(ii){const qi=this.stack[this.stack.length-1];qi.depth=this.sliceSerialize(ii).codePointAt(0)===61?1:2}function ws(){this.data.setextHeadingSlurpLineEnding=void 0}function Ua(ii){const ta=this.stack[this.stack.length-1].children;let Aa=ta[ta.length-1];(!Aa||Aa.type!=="text")&&(Aa=Lo(),Aa.position={start:ga(ii.start),end:void 0},ta.push(Aa)),this.stack.push(Aa)}function xo(ii){const qi=this.stack.pop();qi.value+=this.sliceSerialize(ii),qi.position.end=ga(ii.end)}function Dl(ii){const qi=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ta=qi.children[qi.children.length-1];ta.position.end=ga(ii.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Qe.canContainEols.includes(qi.type)&&(Ua.call(this,ii),xo.call(this,ii))}function is(){this.data.atHardBreak=!0}function Ko(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.value=ii}function Yo(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.value=ii}function Ea(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.value=ii}function ds(){const ii=this.stack[this.stack.length-1];if(this.data.inReference){const qi=this.data.referenceType||"shortcut";ii.type+="Reference",ii.referenceType=qi,delete ii.url,delete ii.title}else delete ii.identifier,delete ii.label;this.data.referenceType=void 0}function al(){const ii=this.stack[this.stack.length-1];if(this.data.inReference){const qi=this.data.referenceType||"shortcut";ii.type+="Reference",ii.referenceType=qi,delete ii.url,delete ii.title}else delete ii.identifier,delete ii.label;this.data.referenceType=void 0}function El(ii){const qi=this.sliceSerialize(ii),ta=this.stack[this.stack.length-2];ta.label=Ji(qi),ta.identifier=Ur(qi).toLowerCase()}function Ul(){const ii=this.stack[this.stack.length-1],qi=this.resume(),ta=this.stack[this.stack.length-1];if(this.data.inReference=!0,ta.type==="link"){const Aa=ii.children;ta.children=Aa}else ta.alt=qi}function Ar(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.url=ii}function hl(){const ii=this.resume(),qi=this.stack[this.stack.length-1];qi.title=ii}function Ql(){this.data.inReference=void 0}function Or(){this.data.referenceType="collapsed"}function xl(ii){const qi=this.resume(),ta=this.stack[this.stack.length-1];ta.label=qi,ta.identifier=Ur(this.sliceSerialize(ii)).toLowerCase(),this.data.referenceType="full"}function Jl(ii){this.data.characterReferenceType=ii.type}function _u(ii){const qi=this.sliceSerialize(ii),ta=this.data.characterReferenceType;let Aa;ta?(Aa=Do(qi,ta==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Aa=_n(qi);const os=this.stack[this.stack.length-1];os.value+=Aa}function el(ii){const qi=this.stack.pop();qi.position.end=ga(ii.end)}function ms(ii){xo.call(this,ii);const qi=this.stack[this.stack.length-1];qi.url=this.sliceSerialize(ii)}function ql(ii){xo.call(this,ii);const qi=this.stack[this.stack.length-1];qi.url="mailto:"+this.sliceSerialize(ii)}function fl(){return{type:"blockquote",children:[]}}function Qu(){return{type:"code",lang:null,meta:null,value:""}}function uc(){return{type:"inlineCode",value:""}}function cc(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wl(){return{type:"emphasis",children:[]}}function Ju(){return{type:"heading",depth:0,children:[]}}function zd(){return{type:"break"}}function ce(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function et(){return{type:"link",title:null,url:"",children:[]}}function nn(ii){return{type:"list",ordered:ii.type==="listOrdered",start:null,spread:ii._spread,children:[]}}function br(ii){return{type:"listItem",spread:ii._spread,checked:null,children:[]}}function ti(){return{type:"paragraph",children:[]}}function Li(){return{type:"strong",children:[]}}function Lo(){return{type:"text",value:""}}function Xo(){return{type:"thematicBreak"}}}function ga(Ce){return{line:Ce.line,column:Ce.column,offset:Ce.offset}}function Hs(Ce,Qe){let tt=-1;for(;++tt<Qe.length;){const ft=Qe[tt];Array.isArray(ft)?Hs(Ce,ft):da(Ce,ft)}}function da(Ce,Qe){let tt;for(tt in Qe)if(pa.call(Qe,tt))switch(tt){case"canContainEols":{const ft=Qe[tt];ft&&Ce[tt].push(...ft);break}case"transforms":{const ft=Qe[tt];ft&&Ce[tt].push(...ft);break}case"enter":case"exit":{const ft=Qe[tt];ft&&Object.assign(Ce[tt],ft);break}}}function Rs(Ce,Qe){throw Ce?new Error("Cannot close `"+Ce.type+"` ("+Ae({start:Ce.start,end:Ce.end})+"): a different token (`"+Qe.type+"`, "+Ae({start:Qe.start,end:Qe.end})+") is open"):new Error("Cannot close document, a token (`"+Qe.type+"`, "+Ae({start:Qe.start,end:Qe.end})+") is still open")}function ol(Ce){const Qe=this;Qe.parser=tt;function tt(ft){return Ga(ft,Zp(xa(xa({},Qe.data("settings")),Ce),{extensions:Qe.data("micromarkExtensions")||[],mdastExtensions:Qe.data("fromMarkdownExtensions")||[]}))}}var Xs=ae(90302);function $a(Ce,Qe){const tt=encode(Kl(Ce||""));if(!Qe)return tt;const ft=tt.indexOf(":"),Ft=tt.indexOf("?"),Ht=tt.indexOf("#"),ln=tt.indexOf("/");return ft<0||ln>-1&&ft>ln||Ft>-1&&ft>Ft||Ht>-1&&ft>Ht||Qe.test(tt.slice(0,ft))?tt:""}function Kl(Ce){const Qe=[];let tt=-1,ft=0,Ft=0;for(;++tt<Ce.length;){const Ht=Ce.charCodeAt(tt);let ln="";if(Ht===37&&(0,Jt.H$)(Ce.charCodeAt(tt+1))&&(0,Jt.H$)(Ce.charCodeAt(tt+2)))Ft=2;else if(Ht<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Ht))||(ln=String.fromCharCode(Ht));else if(Ht>55295&&Ht<57344){const Ln=Ce.charCodeAt(tt+1);Ht<56320&&Ln>56319&&Ln<57344?(ln=String.fromCharCode(Ht,Ln),Ft=1):ln="\uFFFD"}else ln=String.fromCharCode(Ht);ln&&(Qe.push(Ce.slice(ft,tt),encodeURIComponent(ln)),ft=tt+Ft+1,ln=""),Ft&&(tt+=Ft,Ft=0)}return Qe.join("")+Ce.slice(ft)}function nc(Ce,Qe){const tt=[{type:"text",value:"\u21A9"}];return Qe>1&&tt.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Qe)}]}),tt}function es(Ce,Qe){return"Back to reference "+(Ce+1)+(Qe>1?"-"+Qe:"")}function Pl(Ce){const Qe=typeof Ce.options.clobberPrefix=="string"?Ce.options.clobberPrefix:"user-content-",tt=Ce.options.footnoteBackContent||nc,ft=Ce.options.footnoteBackLabel||es,Ft=Ce.options.footnoteLabel||"Footnotes",Ht=Ce.options.footnoteLabelTagName||"h2",ln=Ce.options.footnoteLabelProperties||{className:["sr-only"]},Ln=[];let Sr=-1;for(;++Sr<Ce.footnoteOrder.length;){const xr=Ce.footnoteById.get(Ce.footnoteOrder[Sr]);if(!xr)continue;const er=Ce.all(xr),Zr=String(xr.identifier).toUpperCase(),Hr=Kl(Zr.toLowerCase());let sr=0;const Po=[],jo=Ce.footnoteCounts.get(Zr);for(;jo!==void 0&&++sr<=jo;){Po.length>0&&Po.push({type:"text",value:" "});let To=typeof tt=="string"?tt:tt(Sr,sr);typeof To=="string"&&(To={type:"text",value:To}),Po.push({type:"element",tagName:"a",properties:{href:"#"+Qe+"fnref-"+Hr+(sr>1?"-"+sr:""),dataFootnoteBackref:"",ariaLabel:typeof ft=="string"?ft:ft(Sr,sr),className:["data-footnote-backref"]},children:Array.isArray(To)?To:[To]})}const ea=er[er.length-1];if(ea&&ea.type==="element"&&ea.tagName==="p"){const To=ea.children[ea.children.length-1];To&&To.type==="text"?To.value+=" ":ea.children.push({type:"text",value:" "}),ea.children.push(...Po)}else er.push(...Po);const so={type:"element",tagName:"li",properties:{id:Qe+"fn-"+Hr},children:Ce.wrap(er,!0)};Ce.patch(xr,so),Ln.push(so)}if(Ln.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Ht,properties:Zp(xa({},(0,Xs.ZP)(ln)),{id:"footnote-label"}),children:[{type:"text",value:Ft}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:Ce.wrap(Ln,!0)},{type:"text",value:`
|
|
|
`}]}}var ll=ae(10528);function ul(Ce,Qe){const tt={type:"element",tagName:"blockquote",properties:{},children:Ce.wrap(Ce.all(Qe),!0)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function rc(Ce,Qe){const tt={type:"element",tagName:"br",properties:{},children:[]};return Ce.patch(Qe,tt),[Ce.applyData(Qe,tt),{type:"text",value:`
|
|
|
`}]}function yc(Ce,Qe){const tt=Qe.value?Qe.value+`
|
|
|
`:"",ft={};Qe.lang&&(ft.className=["language-"+Qe.lang]);let Ft={type:"element",tagName:"code",properties:ft,children:[{type:"text",value:tt}]};return Qe.meta&&(Ft.data={meta:Qe.meta}),Ce.patch(Qe,Ft),Ft=Ce.applyData(Qe,Ft),Ft={type:"element",tagName:"pre",properties:{},children:[Ft]},Ce.patch(Qe,Ft),Ft}function ns(Ce,Qe){const tt={type:"element",tagName:"del",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function ic(Ce,Qe){const tt={type:"element",tagName:"em",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function oc(Ce,Qe){const tt=typeof Ce.options.clobberPrefix=="string"?Ce.options.clobberPrefix:"user-content-",ft=String(Qe.identifier).toUpperCase(),Ft=Kl(ft.toLowerCase()),Ht=Ce.footnoteOrder.indexOf(ft);let ln,Ln=Ce.footnoteCounts.get(ft);Ln===void 0?(Ln=0,Ce.footnoteOrder.push(ft),ln=Ce.footnoteOrder.length):ln=Ht+1,Ln+=1,Ce.footnoteCounts.set(ft,Ln);const Sr={type:"element",tagName:"a",properties:{href:"#"+tt+"fn-"+Ft,id:tt+"fnref-"+Ft+(Ln>1?"-"+Ln:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(ln)}]};Ce.patch(Qe,Sr);const xr={type:"element",tagName:"sup",properties:{},children:[Sr]};return Ce.patch(Qe,xr),Ce.applyData(Qe,xr)}function Mu(Ce,Qe){const tt={type:"element",tagName:"h"+Qe.depth,properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function Ou(Ce,Qe){if(Ce.options.allowDangerousHtml){const tt={type:"raw",value:Qe.value};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}}function Ms(Ce,Qe){const tt=Qe.referenceType;let ft="]";if(tt==="collapsed"?ft+="[]":tt==="full"&&(ft+="["+(Qe.label||Qe.identifier)+"]"),Qe.type==="imageReference")return[{type:"text",value:"!["+Qe.alt+ft}];const Ft=Ce.all(Qe),Ht=Ft[0];Ht&&Ht.type==="text"?Ht.value="["+Ht.value:Ft.unshift({type:"text",value:"["});const ln=Ft[Ft.length-1];return ln&&ln.type==="text"?ln.value+=ft:Ft.push({type:"text",value:ft}),Ft}function Qs(Ce,Qe){const tt=String(Qe.identifier).toUpperCase(),ft=Ce.definitionById.get(tt);if(!ft)return Ms(Ce,Qe);const Ft={src:Kl(ft.url||""),alt:Qe.alt};ft.title!==null&&ft.title!==void 0&&(Ft.title=ft.title);const Ht={type:"element",tagName:"img",properties:Ft,children:[]};return Ce.patch(Qe,Ht),Ce.applyData(Qe,Ht)}function fs(Ce,Qe){const tt={src:Kl(Qe.url)};Qe.alt!==null&&Qe.alt!==void 0&&(tt.alt=Qe.alt),Qe.title!==null&&Qe.title!==void 0&&(tt.title=Qe.title);const ft={type:"element",tagName:"img",properties:tt,children:[]};return Ce.patch(Qe,ft),Ce.applyData(Qe,ft)}function ks(Ce,Qe){const tt={type:"text",value:Qe.value.replace(/\r?\n|\r/g," ")};Ce.patch(Qe,tt);const ft={type:"element",tagName:"code",properties:{},children:[tt]};return Ce.patch(Qe,ft),Ce.applyData(Qe,ft)}function yu(Ce,Qe){const tt=String(Qe.identifier).toUpperCase(),ft=Ce.definitionById.get(tt);if(!ft)return Ms(Ce,Qe);const Ft={href:Kl(ft.url||"")};ft.title!==null&&ft.title!==void 0&&(Ft.title=ft.title);const Ht={type:"element",tagName:"a",properties:Ft,children:Ce.all(Qe)};return Ce.patch(Qe,Ht),Ce.applyData(Qe,Ht)}function zs(Ce,Qe){const tt={href:Kl(Qe.url)};Qe.title!==null&&Qe.title!==void 0&&(tt.title=Qe.title);const ft={type:"element",tagName:"a",properties:tt,children:Ce.all(Qe)};return Ce.patch(Qe,ft),Ce.applyData(Qe,ft)}function wa(Ce,Qe,tt){const ft=Ce.all(Qe),Ft=tt?ma(tt):Vo(Qe),Ht={},ln=[];if(typeof Qe.checked=="boolean"){const er=ft[0];let Zr;er&&er.type==="element"&&er.tagName==="p"?Zr=er:(Zr={type:"element",tagName:"p",properties:{},children:[]},ft.unshift(Zr)),Zr.children.length>0&&Zr.children.unshift({type:"text",value:" "}),Zr.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Qe.checked,disabled:!0},children:[]}),Ht.className=["task-list-item"]}let Ln=-1;for(;++Ln<ft.length;){const er=ft[Ln];(Ft||Ln!==0||er.type!=="element"||er.tagName!=="p")&&ln.push({type:"text",value:`
|
|
|
`}),er.type==="element"&&er.tagName==="p"&&!Ft?ln.push(...er.children):ln.push(er)}const Sr=ft[ft.length-1];Sr&&(Ft||Sr.type!=="element"||Sr.tagName!=="p")&&ln.push({type:"text",value:`
|
|
|
`});const xr={type:"element",tagName:"li",properties:Ht,children:ln};return Ce.patch(Qe,xr),Ce.applyData(Qe,xr)}function ma(Ce){let Qe=!1;if(Ce.type==="list"){Qe=Ce.spread||!1;const tt=Ce.children;let ft=-1;for(;!Qe&&++ft<tt.length;)Qe=Vo(tt[ft])}return Qe}function Vo(Ce){const Qe=Ce.spread;return Qe==null?Ce.children.length>1:Qe}function cs(Ce,Qe){const tt={},ft=Ce.all(Qe);let Ft=-1;for(typeof Qe.start=="number"&&Qe.start!==1&&(tt.start=Qe.start);++Ft<ft.length;){const ln=ft[Ft];if(ln.type==="element"&&ln.tagName==="li"&&ln.properties&&Array.isArray(ln.properties.className)&&ln.properties.className.includes("task-list-item")){tt.className=["contains-task-list"];break}}const Ht={type:"element",tagName:Qe.ordered?"ol":"ul",properties:tt,children:Ce.wrap(ft,!0)};return Ce.patch(Qe,Ht),Ce.applyData(Qe,Ht)}function Mi(Ce,Qe){const tt={type:"element",tagName:"p",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function ps(Ce,Qe){const tt={type:"root",children:Ce.wrap(Ce.all(Qe))};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function tn(Ce,Qe){const tt={type:"element",tagName:"strong",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function Nr(Ce,Qe){const tt=Ce.all(Qe),ft=tt.shift(),Ft=[];if(ft){const ln={type:"element",tagName:"thead",properties:{},children:Ce.wrap([ft],!0)};Ce.patch(Qe.children[0],ln),Ft.push(ln)}if(tt.length>0){const ln={type:"element",tagName:"tbody",properties:{},children:Ce.wrap(tt,!0)},Ln=(0,be.Pk)(Qe.children[1]),Sr=(0,be.rb)(Qe.children[Qe.children.length-1]);Ln&&Sr&&(ln.position={start:Ln,end:Sr}),Ft.push(ln)}const Ht={type:"element",tagName:"table",properties:{},children:Ce.wrap(Ft,!0)};return Ce.patch(Qe,Ht),Ce.applyData(Qe,Ht)}function Tl(Ce,Qe,tt){const ft=tt?tt.children:void 0,Ht=(ft?ft.indexOf(Qe):1)===0?"th":"td",ln=tt&&tt.type==="table"?tt.align:void 0,Ln=ln?ln.length:Qe.children.length;let Sr=-1;const xr=[];for(;++Sr<Ln;){const Zr=Qe.children[Sr],Hr={},sr=ln?ln[Sr]:void 0;sr&&(Hr.align=sr);let Po={type:"element",tagName:Ht,properties:Hr,children:[]};Zr&&(Po.children=Ce.all(Zr),Ce.patch(Zr,Po),Po=Ce.applyData(Zr,Po)),xr.push(Po)}const er={type:"element",tagName:"tr",properties:{},children:Ce.wrap(xr,!0)};return Ce.patch(Qe,er),Ce.applyData(Qe,er)}function Su(Ce,Qe){const tt={type:"element",tagName:"td",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}const ja=9,rs=32;function Al(Ce){const Qe=String(Ce),tt=/\r?\n|\r/g;let ft=tt.exec(Qe),Ft=0;const Ht=[];for(;ft;)Ht.push(Fl(Qe.slice(Ft,ft.index),Ft>0,!0),ft[0]),Ft=ft.index+ft[0].length,ft=tt.exec(Qe);return Ht.push(Fl(Qe.slice(Ft),Ft>0,!1)),Ht.join("")}function Fl(Ce,Qe,tt){let ft=0,Ft=Ce.length;if(Qe){let Ht=Ce.codePointAt(ft);for(;Ht===ja||Ht===rs;)ft++,Ht=Ce.codePointAt(ft)}if(tt){let Ht=Ce.codePointAt(Ft-1);for(;Ht===ja||Ht===rs;)Ft--,Ht=Ce.codePointAt(Ft-1)}return Ft>ft?Ce.slice(ft,Ft):""}function ac(Ce,Qe){const tt={type:"text",value:Al(String(Qe.value))};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}function Wa(Ce,Qe){const tt={type:"element",tagName:"hr",properties:{},children:[]};return Ce.patch(Qe,tt),Ce.applyData(Qe,tt)}const Eo={blockquote:ul,break:rc,code:yc,delete:ns,emphasis:ic,footnoteReference:oc,heading:Mu,html:Ou,imageReference:Qs,image:fs,inlineCode:ks,linkReference:yu,link:zs,listItem:wa,list:cs,paragraph:Mi,root:ps,strong:tn,table:Nr,tableCell:Su,tableRow:Tl,text:ac,thematicBreak:Wa,toml:bs,yaml:bs,definition:bs,footnoteDefinition:bs};function bs(){}const Js={}.hasOwnProperty,ua={};function Zo(Ce,Qe){const tt=Qe||ua,ft=new Map,Ft=new Map,Ht=new Map,ln=xa(xa({},Eo),tt.handlers),Ln={all:xr,applyData:cl,definitionById:ft,footnoteById:Ft,footnoteCounts:Ht,footnoteOrder:[],handlers:ln,one:Sr,options:tt,patch:Ya,wrap:Sl};return(0,ll.Vn)(Ce,function(er){if(er.type==="definition"||er.type==="footnoteDefinition"){const Zr=er.type==="definition"?ft:Ft,Hr=String(er.identifier).toUpperCase();Zr.has(Hr)||Zr.set(Hr,er)}}),Ln;function Sr(er,Zr){const Hr=er.type,sr=Ln.handlers[Hr];if(Js.call(Ln.handlers,Hr)&&sr)return sr(Ln,er,Zr);if(Ln.options.passThrough&&Ln.options.passThrough.includes(Hr)){if("children"in er){const jo=er,{children:ea}=jo,so=iE(jo,["children"]),To=(0,Xs.ZP)(so);return To.children=Ln.all(er),To}return(0,Xs.ZP)(er)}return(Ln.options.unknownHandler||Ia)(Ln,er,Zr)}function xr(er){const Zr=[];if("children"in er){const Hr=er.children;let sr=-1;for(;++sr<Hr.length;){const Po=Ln.one(Hr[sr],er);if(Po){if(sr&&Hr[sr-1].type==="break"&&(!Array.isArray(Po)&&Po.type==="text"&&(Po.value=Es(Po.value)),!Array.isArray(Po)&&Po.type==="element")){const jo=Po.children[0];jo&&jo.type==="text"&&(jo.value=Es(jo.value))}Array.isArray(Po)?Zr.push(...Po):Zr.push(Po)}}}return Zr}}function Ya(Ce,Qe){Ce.position&&(Qe.position=(0,be.FK)(Ce))}function cl(Ce,Qe){let tt=Qe;if(Ce&&Ce.data){const ft=Ce.data.hName,Ft=Ce.data.hChildren,Ht=Ce.data.hProperties;if(typeof ft=="string")if(tt.type==="element")tt.tagName=ft;else{const ln="children"in tt?tt.children:[tt];tt={type:"element",tagName:ft,properties:{},children:ln}}tt.type==="element"&&Ht&&Object.assign(tt.properties,(0,Xs.ZP)(Ht)),"children"in tt&&tt.children&&Ft!==null&&Ft!==void 0&&(tt.children=Ft)}return tt}function Ia(Ce,Qe){const tt=Qe.data||{},ft="value"in Qe&&!(Js.call(tt,"hProperties")||Js.call(tt,"hChildren"))?{type:"text",value:Qe.value}:{type:"element",tagName:"div",properties:{},children:Ce.all(Qe)};return Ce.patch(Qe,ft),Ce.applyData(Qe,ft)}function Sl(Ce,Qe){const tt=[];let ft=-1;for(Qe&&tt.push({type:"text",value:`
|
|
|
`});++ft<Ce.length;)ft&&tt.push({type:"text",value:`
|
|
|
`}),tt.push(Ce[ft]);return Qe&&Ce.length>0&&tt.push({type:"text",value:`
|
|
|
`}),tt}function Es(Ce){let Qe=0,tt=Ce.charCodeAt(Qe);for(;tt===9||tt===32;)Qe++,tt=Ce.charCodeAt(Qe);return Ce.slice(Qe)}function Fu(Ce,Qe){const tt=Zo(Ce,Qe),ft=tt.one(Ce,void 0),Ft=Pl(tt),Ht=Array.isArray(ft)?{type:"root",children:ft}:ft||{type:"root",children:[]};return Ft&&((0,Pe.ok)("children"in Ht),Ht.children.push({type:"text",value:`
|
|
|
`},Ft)),Ht}function va(Ce,Qe){return Ce&&"run"in Ce?function(tt,ft){return sS(this,null,function*(){const Ft=Fu(tt,xa({file:ft},Qe));yield Ce.run(Ft,ft)})}:function(tt,ft){return Fu(tt,xa({file:ft},Ce||Qe))}}function Os(Ce){if(Ce)throw Ce}var oa=ae(58847);function Ta(Ce){if(typeof Ce!="object"||Ce===null)return!1;const Qe=Object.getPrototypeOf(Ce);return(Qe===null||Qe===Object.prototype||Object.getPrototypeOf(Qe)===null)&&!(Symbol.toStringTag in Ce)&&!(Symbol.iterator in Ce)}function La(){const Ce=[],Qe={run:tt,use:ft};return Qe;function tt(...Ft){let Ht=-1;const ln=Ft.pop();if(typeof ln!="function")throw new TypeError("Expected function as last argument, not "+ln);Ln(null,...Ft);function Ln(Sr,...xr){const er=Ce[++Ht];let Zr=-1;if(Sr){ln(Sr);return}for(;++Zr<Ft.length;)(xr[Zr]===null||xr[Zr]===void 0)&&(xr[Zr]=Ft[Zr]);Ft=xr,er?Za(er,Ln)(...xr):ln(null,...xr)}}function ft(Ft){if(typeof Ft!="function")throw new TypeError("Expected `middelware` to be a function, not "+Ft);return Ce.push(Ft),Qe}}function Za(Ce,Qe){let tt;return ft;function ft(...ln){const Ln=Ce.length>ln.length;let Sr;Ln&&ln.push(Ft);try{Sr=Ce.apply(this,ln)}catch(xr){const er=xr;if(Ln&&tt)throw er;return Ft(er)}Ln||(Sr&&Sr.then&&typeof Sr.then=="function"?Sr.then(Ht,Ft):Sr instanceof Error?Ft(Sr):Ht(Sr))}function Ft(ln,...Ln){tt||(tt=!0,Qe(ln,...Ln))}function Ht(ln){Ft(null,ln)}}const na={basename:sc,dirname:bo,extname:Dc,join:aa,sep:"/"};function sc(Ce,Qe){if(Qe!==void 0&&typeof Qe!="string")throw new TypeError('"ext" argument must be a string');bu(Ce);let tt=0,ft=-1,Ft=Ce.length,Ht;if(Qe===void 0||Qe.length===0||Qe.length>Ce.length){for(;Ft--;)if(Ce.codePointAt(Ft)===47){if(Ht){tt=Ft+1;break}}else ft<0&&(Ht=!0,ft=Ft+1);return ft<0?"":Ce.slice(tt,ft)}if(Qe===Ce)return"";let ln=-1,Ln=Qe.length-1;for(;Ft--;)if(Ce.codePointAt(Ft)===47){if(Ht){tt=Ft+1;break}}else ln<0&&(Ht=!0,ln=Ft+1),Ln>-1&&(Ce.codePointAt(Ft)===Qe.codePointAt(Ln--)?Ln<0&&(ft=Ft):(Ln=-1,ft=ln));return tt===ft?ft=ln:ft<0&&(ft=Ce.length),Ce.slice(tt,ft)}function bo(Ce){if(bu(Ce),Ce.length===0)return".";let Qe=-1,tt=Ce.length,ft;for(;--tt;)if(Ce.codePointAt(tt)===47){if(ft){Qe=tt;break}}else ft||(ft=!0);return Qe<0?Ce.codePointAt(0)===47?"/":".":Qe===1&&Ce.codePointAt(0)===47?"//":Ce.slice(0,Qe)}function Dc(Ce){bu(Ce);let Qe=Ce.length,tt=-1,ft=0,Ft=-1,Ht=0,ln;for(;Qe--;){const Ln=Ce.codePointAt(Qe);if(Ln===47){if(ln){ft=Qe+1;break}continue}tt<0&&(ln=!0,tt=Qe+1),Ln===46?Ft<0?Ft=Qe:Ht!==1&&(Ht=1):Ft>-1&&(Ht=-1)}return Ft<0||tt<0||Ht===0||Ht===1&&Ft===tt-1&&Ft===ft+1?"":Ce.slice(Ft,tt)}function aa(...Ce){let Qe=-1,tt;for(;++Qe<Ce.length;)bu(Ce[Qe]),Ce[Qe]&&(tt=tt===void 0?Ce[Qe]:tt+"/"+Ce[Qe]);return tt===void 0?".":Sc(tt)}function Sc(Ce){bu(Ce);const Qe=Ce.codePointAt(0)===47;let tt=Bu(Ce,!Qe);return tt.length===0&&!Qe&&(tt="."),tt.length>0&&Ce.codePointAt(Ce.length-1)===47&&(tt+="/"),Qe?"/"+tt:tt}function Bu(Ce,Qe){let tt="",ft=0,Ft=-1,Ht=0,ln=-1,Ln,Sr;for(;++ln<=Ce.length;){if(ln<Ce.length)Ln=Ce.codePointAt(ln);else{if(Ln===47)break;Ln=47}if(Ln===47){if(!(Ft===ln-1||Ht===1))if(Ft!==ln-1&&Ht===2){if(tt.length<2||ft!==2||tt.codePointAt(tt.length-1)!==46||tt.codePointAt(tt.length-2)!==46){if(tt.length>2){if(Sr=tt.lastIndexOf("/"),Sr!==tt.length-1){Sr<0?(tt="",ft=0):(tt=tt.slice(0,Sr),ft=tt.length-1-tt.lastIndexOf("/")),Ft=ln,Ht=0;continue}}else if(tt.length>0){tt="",ft=0,Ft=ln,Ht=0;continue}}Qe&&(tt=tt.length>0?tt+"/..":"..",ft=2)}else tt.length>0?tt+="/"+Ce.slice(Ft+1,ln):tt=Ce.slice(Ft+1,ln),ft=ln-Ft-1;Ft=ln,Ht=0}else Ln===46&&Ht>-1?Ht++:Ht=-1}return tt}function bu(Ce){if(typeof Ce!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(Ce))}const Rc={cwd:Xc};function Xc(){return"/"}function Yl(Ce){return!!(Ce!==null&&typeof Ce=="object"&&"href"in Ce&&Ce.href&&"protocol"in Ce&&Ce.protocol&&Ce.auth===void 0)}function Xl(Ce){if(typeof Ce=="string")Ce=new URL(Ce);else if(!Yl(Ce)){const Qe=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+Ce+"`");throw Qe.code="ERR_INVALID_ARG_TYPE",Qe}if(Ce.protocol!=="file:"){const Qe=new TypeError("The URL must be of scheme file");throw Qe.code="ERR_INVALID_URL_SCHEME",Qe}return la(Ce)}function la(Ce){if(Ce.hostname!==""){const ft=new TypeError('File URL host must be "localhost" or empty on darwin');throw ft.code="ERR_INVALID_FILE_URL_HOST",ft}const Qe=Ce.pathname;let tt=-1;for(;++tt<Qe.length;)if(Qe.codePointAt(tt)===37&&Qe.codePointAt(tt+1)===50){const ft=Qe.codePointAt(tt+2);if(ft===70||ft===102){const Ft=new TypeError("File URL path must not include encoded / characters");throw Ft.code="ERR_INVALID_FILE_URL_PATH",Ft}}return decodeURIComponent(Qe)}const Gs=["history","path","basename","stem","extname","dirname"];class du{constructor(Qe){let tt;Qe?Yl(Qe)?tt={path:Qe}:typeof Qe=="string"||$o(Qe)?tt={value:Qe}:tt=Qe:tt={},this.cwd="cwd"in tt?"":Rc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let ft=-1;for(;++ft<Gs.length;){const Ht=Gs[ft];Ht in tt&&tt[Ht]!==void 0&&tt[Ht]!==null&&(this[Ht]=Ht==="history"?[...tt[Ht]]:tt[Ht])}let Ft;for(Ft in tt)Gs.includes(Ft)||(this[Ft]=tt[Ft])}get basename(){return typeof this.path=="string"?na.basename(this.path):void 0}set basename(Qe){dl(Qe,"basename"),Nl(Qe,"basename"),this.path=na.join(this.dirname||"",Qe)}get dirname(){return typeof this.path=="string"?na.dirname(this.path):void 0}set dirname(Qe){bl(this.basename,"dirname"),this.path=na.join(Qe||"",this.basename)}get extname(){return typeof this.path=="string"?na.extname(this.path):void 0}set extname(Qe){if(Nl(Qe,"extname"),bl(this.dirname,"extname"),Qe){if(Qe.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Qe.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=na.join(this.dirname,this.stem+(Qe||""))}get path(){return this.history[this.history.length-1]}set path(Qe){Yl(Qe)&&(Qe=Xl(Qe)),dl(Qe,"path"),this.path!==Qe&&this.history.push(Qe)}get stem(){return typeof this.path=="string"?na.basename(this.path,this.extname):void 0}set stem(Qe){dl(Qe,"stem"),Nl(Qe,"stem"),this.path=na.join(this.dirname||"",Qe+(this.extname||""))}fail(Qe,tt,ft){const Ft=this.message(Qe,tt,ft);throw Ft.fatal=!0,Ft}info(Qe,tt,ft){const Ft=this.message(Qe,tt,ft);return Ft.fatal=void 0,Ft}message(Qe,tt,ft){const Ft=new Je(Qe,tt,ft);return this.path&&(Ft.name=this.path+":"+Ft.name,Ft.file=this.path),Ft.fatal=!1,this.messages.push(Ft),Ft}toString(Qe){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Qe||void 0).decode(this.value)}}function Nl(Ce,Qe){if(Ce&&Ce.includes(na.sep))throw new Error("`"+Qe+"` cannot be a path: did not expect `"+na.sep+"`")}function dl(Ce,Qe){if(!Ce)throw new Error("`"+Qe+"` cannot be empty")}function bl(Ce,Qe){if(!Ce)throw new Error("Setting `"+Qe+"` requires `path` to be set too")}function $o(Ce){return!!(Ce&&typeof Ce=="object"&&"byteLength"in Ce&&"byteOffset"in Ce)}const ca=function(Ce){const ft=this.constructor.prototype,Ft=ft[Ce],Ht=function(){return Ft.apply(Ht,arguments)};return Object.setPrototypeOf(Ht,ft),Ht},Va={}.hasOwnProperty;class Is extends ca{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=La()}copy(){const Qe=new Is;let tt=-1;for(;++tt<this.attachers.length;){const ft=this.attachers[tt];Qe.use(...ft)}return Qe.data(oa(!0,{},this.namespace)),Qe}data(Qe,tt){return typeof Qe=="string"?arguments.length===2?(_l("data",this.frozen),this.namespace[Qe]=tt,this):Va.call(this.namespace,Qe)&&this.namespace[Qe]||void 0:Qe?(_l("data",this.frozen),this.namespace=Qe,this):this.namespace}freeze(){if(this.frozen)return this;const Qe=this;for(;++this.freezeIndex<this.attachers.length;){const[tt,...ft]=this.attachers[this.freezeIndex];if(ft[0]===!1)continue;ft[0]===!0&&(ft[0]=void 0);const Ft=tt.call(Qe,...ft);typeof Ft=="function"&&this.transformers.use(Ft)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Qe){this.freeze();const tt=bd(Qe),ft=this.parser||this.Parser;return Ll("parse",ft),ft(String(tt),tt)}process(Qe,tt){const ft=this;return this.freeze(),Ll("process",this.parser||this.Parser),Bl("process",this.compiler||this.Compiler),tt?Ft(void 0,tt):new Promise(Ft);function Ft(Ht,ln){const Ln=bd(Qe),Sr=ft.parse(Ln);ft.run(Sr,Ln,function(er,Zr,Hr){if(er||!Zr||!Hr)return xr(er);const sr=Zr,Po=ft.stringify(sr,Hr);ch(Po)?Hr.value=Po:Hr.result=Po,xr(er,Hr)});function xr(er,Zr){er||!Zr?ln(er):Ht?Ht(Zr):((0,Pe.ok)(tt,"`done` is defined if `resolve` is not"),tt(void 0,Zr))}}}processSync(Qe){let tt=!1,ft;return this.freeze(),Ll("processSync",this.parser||this.Parser),Bl("processSync",this.compiler||this.Compiler),this.process(Qe,Ft),hu("processSync","process",tt),(0,Pe.ok)(ft,"we either bailed on an error or have a tree"),ft;function Ft(Ht,ln){tt=!0,Os(Ht),ft=ln}}run(Qe,tt,ft){kl(Qe),this.freeze();const Ft=this.transformers;return!ft&&typeof tt=="function"&&(ft=tt,tt=void 0),ft?Ht(void 0,ft):new Promise(Ht);function Ht(ln,Ln){(0,Pe.ok)(typeof tt!="function","`file` can\u2019t be a `done` anymore, we checked");const Sr=bd(tt);Ft.run(Qe,Sr,xr);function xr(er,Zr,Hr){const sr=Zr||Qe;er?Ln(er):ln?ln(sr):((0,Pe.ok)(ft,"`done` is defined if `resolve` is not"),ft(void 0,sr,Hr))}}}runSync(Qe,tt){let ft=!1,Ft;return this.run(Qe,tt,Ht),hu("runSync","run",ft),(0,Pe.ok)(Ft,"we either bailed on an error or have a tree"),Ft;function Ht(ln,Ln){Os(ln),Ft=Ln,ft=!0}}stringify(Qe,tt){this.freeze();const ft=bd(tt),Ft=this.compiler||this.Compiler;return Bl("stringify",Ft),kl(Qe),Ft(Qe,ft)}use(Qe,...tt){const ft=this.attachers,Ft=this.namespace;if(_l("use",this.frozen),Qe!=null)if(typeof Qe=="function")Sr(Qe,tt);else if(typeof Qe=="object")Array.isArray(Qe)?Ln(Qe):ln(Qe);else throw new TypeError("Expected usable value, not `"+Qe+"`");return this;function Ht(xr){if(typeof xr=="function")Sr(xr,[]);else if(typeof xr=="object")if(Array.isArray(xr)){const[er,...Zr]=xr;Sr(er,Zr)}else ln(xr);else throw new TypeError("Expected usable value, not `"+xr+"`")}function ln(xr){if(!("plugins"in xr)&&!("settings"in xr))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");Ln(xr.plugins),xr.settings&&(Ft.settings=oa(!0,Ft.settings,xr.settings))}function Ln(xr){let er=-1;if(xr!=null)if(Array.isArray(xr))for(;++er<xr.length;){const Zr=xr[er];Ht(Zr)}else throw new TypeError("Expected a list of plugins, not `"+xr+"`")}function Sr(xr,er){let Zr=-1,Hr=-1;for(;++Zr<ft.length;)if(ft[Zr][0]===xr){Hr=Zr;break}if(Hr===-1)ft.push([xr,...er]);else if(er.length>0){let[sr,...Po]=er;const jo=ft[Hr][1];Ta(jo)&&Ta(sr)&&(sr=oa(!0,jo,sr)),ft[Hr]=[xr,sr,...Po]}}}}const xs=new Is().freeze();function Ll(Ce,Qe){if(typeof Qe!="function")throw new TypeError("Cannot `"+Ce+"` without `parser`")}function Bl(Ce,Qe){if(typeof Qe!="function")throw new TypeError("Cannot `"+Ce+"` without `compiler`")}function _l(Ce,Qe){if(Qe)throw new Error("Cannot call `"+Ce+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function kl(Ce){if(!Ta(Ce)||typeof Ce.type!="string")throw new TypeError("Expected node, got `"+Ce+"`")}function hu(Ce,Qe,tt){if(!tt)throw new Error("`"+Ce+"` finished async. Use `"+Qe+"` instead")}function bd(Ce){return Hd(Ce)?Ce:new du(Ce)}function Hd(Ce){return!!(Ce&&typeof Ce=="object"&&"message"in Ce&&"messages"in Ce)}function ch(Ce){return typeof Ce=="string"||dh(Ce)}function dh(Ce){return!!(Ce&&typeof Ce=="object"&&"byteLength"in Ce&&"byteOffset"in Ce)}const gs="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",lc=[],Na={allowDangerousHtml:!0},js=/^(https?|ircs?|mailto|xmpp)$/i,$s=[{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 qs(Ce){const Qe=Eu(Ce),tt=Qc(Ce);return Ed(Qe.runSync(Qe.parse(tt),tt),Ce)}function bc(Ce){return sS(this,null,function*(){const Qe=Eu(Ce),tt=Qc(Ce),ft=yield Qe.run(Qe.parse(tt),tt);return Ed(ft,Ce)})}function Fs(Ce){const Qe=Eu(Ce),[tt,ft]=useState(void 0),[Ft,Ht]=useState(void 0);if(useEffect(function(){const ln=Qc(Ce);Qe.run(Qe.parse(ln),ln,function(Ln,Sr){ft(Ln),Ht(Sr)})},[Ce.children,Ce.rehypePlugins,Ce.remarkPlugins,Ce.remarkRehypeOptions]),tt)throw tt;return Ft?Ed(Ft,Ce):createElement(Fragment)}function Eu(Ce){const Qe=Ce.rehypePlugins||lc,tt=Ce.remarkPlugins||lc,ft=Ce.remarkRehypeOptions?xa(xa({},Ce.remarkRehypeOptions),Na):Na;return xs().use(ol).use(tt).use(va,ft).use(Qe)}function Qc(Ce){const Qe=Ce.children||"",tt=new du;return typeof Qe=="string"?tt.value=Qe:(0,Pe.t1)("Unexpected value `"+Qe+"` for `children` prop, expected `string`"),tt}function Ed(Ce,Qe){const tt=Qe.allowedElements,ft=Qe.allowElement,Ft=Qe.components,Ht=Qe.disallowedElements,ln=Qe.skipHtml,Ln=Qe.unwrapDisallowed,Sr=Qe.urlTransform||Il;for(const er of $s)Object.hasOwn(Qe,er.from)&&(0,Pe.t1)("Unexpected `"+er.from+"` prop, "+(er.to?"use `"+er.to+"` instead":"remove it")+" (see <"+gs+"#"+er.id+"> for more info)");return tt&&Ht&&(0,Pe.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),Qe.className&&(Ce={type:"element",tagName:"div",properties:{className:Qe.className},children:Ce.type==="root"?Ce.children:[Ce]}),(0,ll.Vn)(Ce,xr),zt(Ce,{Fragment:Be.Fragment,components:Ft,ignoreInvalidStyle:!0,jsx:Be.jsx,jsxs:Be.jsxs,passKeys:!0,passNode:!0});function xr(er,Zr,Hr){if(er.type==="raw"&&Hr&&typeof Zr=="number")return ln?Hr.children.splice(Zr,1):Hr.children[Zr]={type:"text",value:er.value},Zr;if(er.type==="element"){let sr;for(sr in at)if(Object.hasOwn(at,sr)&&Object.hasOwn(er.properties,sr)){const Po=er.properties[sr],jo=at[sr];(jo===null||jo.includes(er.tagName))&&(er.properties[sr]=Sr(String(Po||""),sr,er))}}if(er.type==="element"){let sr=tt?!tt.includes(er.tagName):Ht?Ht.includes(er.tagName):!1;if(!sr&&ft&&typeof Zr=="number"&&(sr=!ft(er,Zr,Hr)),sr&&Hr&&typeof Zr=="number")return Ln&&er.children?Hr.children.splice(Zr,1,...er.children):Hr.children.splice(Zr,1),Zr}}}function Il(Ce){const Qe=Ce.indexOf(":"),tt=Ce.indexOf("?"),ft=Ce.indexOf("#"),Ft=Ce.indexOf("/");return Qe===-1||Ft!==-1&&Qe>Ft||tt!==-1&&Qe>tt||ft!==-1&&Qe>ft||js.test(Ce.slice(0,Qe))?Ce:""}},3977:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return zd}});var oe={};ae.r(oe),ae.d(oe,{boolean:function(){return Je},booleanish:function(){return st},commaOrSpaceSeparated:function(){return Tt},commaSeparated:function(){return xt},number:function(){return rt},overloadedBoolean:function(){return gt},spaceSeparated:function(){return mt}});var Pe=ae(90302),ke=ae(87342),De=ae(81994),je=ae(14470),Te=ae(86825);function Ge(ce){const ge=String(ce),et=[];return{toOffset:br,toPoint:nn};function nn(ti){if(typeof ti=="number"&&ti>-1&&ti<=ge.length){let Li=0;for(;;){let Lo=et[Li];if(Lo===void 0){const Xo=lt(ge,et[Li-1]);Lo=Xo===-1?ge.length+1:Xo+1,et[Li]=Lo}if(Lo>ti)return{line:Li+1,column:ti-(Li>0?et[Li-1]:0)+1,offset:ti};Li++}}}function br(ti){if(ti&&typeof ti.line=="number"&&typeof ti.column=="number"&&!Number.isNaN(ti.line)&&!Number.isNaN(ti.column)){for(;et.length<ti.line;){const Lo=et[et.length-1],Xo=lt(ge,Lo),ii=Xo===-1?ge.length+1:Xo+1;if(Lo===ii)break;et.push(ii)}const Li=(ti.line>1?et[ti.line-2]:0)+ti.column-1;if(Li<et[ti.line-1])return Li}}}function lt(ce,ge){const et=ce.indexOf("\r",ge),nn=ce.indexOf(`
|
|
|
`,ge);return nn===-1?et:et===-1||et+1===nn?nn:et<nn?et:nn}var Ke=ae(43309);const He={}.hasOwnProperty,yt=Object.prototype;function $e(ce,ge){const et=ge||{};return Mt({file:et.file||void 0,location:!1,schema:et.space==="svg"?je.YP:je.dy,verbose:et.verbose||!1},ce)}function Mt(ce,ge){let et;switch(ge.nodeName){case"#comment":{const nn=ge;return et={type:"comment",value:nn.data},ee(ce,nn,et),et}case"#document":case"#document-fragment":{const nn=ge,br="mode"in nn?nn.mode==="quirks"||nn.mode==="limited-quirks":!1;if(et={type:"root",children:Fe(ce,ge.childNodes),data:{quirksMode:br}},ce.file&&ce.location){const ti=String(ce.file),Li=Ge(ti),Lo=Li.toPoint(0),Xo=Li.toPoint(ti.length);(0,ke.ok)(Lo,"expected `start`"),(0,ke.ok)(Xo,"expected `end`"),et.position={start:Lo,end:Xo}}return et}case"#documentType":{const nn=ge;return et={type:"doctype"},ee(ce,nn,et),et}case"#text":{const nn=ge;return et={type:"text",value:nn.value},ee(ce,nn,et),et}default:return et=te(ce,ge),et}}function Fe(ce,ge){let et=-1;const nn=[];for(;++et<ge.length;){const br=Mt(ce,ge[et]);nn.push(br)}return nn}function te(ce,ge){const et=ce.schema;ce.schema=ge.namespaceURI===Ke.t.svg?je.YP:je.dy;let nn=-1;const br={};for(;++nn<ge.attrs.length;){const Lo=ge.attrs[nn],Xo=(Lo.prefix?Lo.prefix+":":"")+Lo.name;He.call(yt,Xo)||(br[Xo]=Lo.value)}const Li=(ce.schema.space==="svg"?De.s:De.h)(ge.tagName,br,Fe(ce,ge.childNodes));if(ee(ce,ge,Li),Li.tagName==="template"){const Lo=ge,Xo=Lo.sourceCodeLocation,ii=Xo&&Xo.startTag&&ue(Xo.startTag),qi=Xo&&Xo.endTag&&ue(Xo.endTag),ta=Mt(ce,Lo.content);ii&&qi&&ce.file&&(ta.position={start:ii.end,end:qi.start}),Li.content=ta}return ce.schema=et,Li}function ee(ce,ge,et){if("sourceCodeLocation"in ge&&ge.sourceCodeLocation&&ce.file){const nn=he(ce,et,ge.sourceCodeLocation);nn&&(ce.location=!0,et.position=nn)}}function he(ce,ge,et){const nn=ue(et);if(ge.type==="element"){const br=ge.children[ge.children.length-1];if(nn&&!et.endTag&&br&&br.position&&br.position.end&&(nn.end=Object.assign({},br.position.end)),ce.verbose){const ti={};let Li;if(et.attrs)for(Li in et.attrs)He.call(et.attrs,Li)&&(ti[(0,Te.s)(ce.schema,Li).property]=ue(et.attrs[Li]));(0,ke.ok)(et.startTag,"a start tag should exist");const Lo=ue(et.startTag),Xo=et.endTag?ue(et.endTag):void 0,ii={opening:Lo};Xo&&(ii.closing=Xo),ii.properties=ti,ge.data={position:ii}}}return nn}function ue(ce){const ge=fe({line:ce.startLine,column:ce.startCol,offset:ce.startOffset}),et=fe({line:ce.endLine,column:ce.endCol,offset:ce.endOffset});return ge||et?{start:ge,end:et}:void 0}function fe(ce){return ce.line&&ce.column?ce:void 0}var me=ae(11630);class be{constructor(ge,et,nn){this.property=ge,this.normal=et,nn&&(this.space=nn)}}be.prototype.property={},be.prototype.normal={},be.prototype.space=null;function Ae(ce,ge){const et={},nn={};let br=-1;for(;++br<ce.length;)Object.assign(et,ce[br].property),Object.assign(nn,ce[br].normal);return new be(et,nn,ge)}function Ie(ce){return ce.toLowerCase()}class Xe{constructor(ge,et){this.property=ge,this.attribute=et}}Xe.prototype.space=null,Xe.prototype.boolean=!1,Xe.prototype.booleanish=!1,Xe.prototype.overloadedBoolean=!1,Xe.prototype.number=!1,Xe.prototype.commaSeparated=!1,Xe.prototype.spaceSeparated=!1,Xe.prototype.commaOrSpaceSeparated=!1,Xe.prototype.mustUseProperty=!1,Xe.prototype.defined=!1;let nt=0;const Je=zt(),st=zt(),gt=zt(),rt=zt(),mt=zt(),xt=zt(),Tt=zt();function zt(){return aS(2,++nt)}const Qt=Object.keys(oe);class Kt extends Xe{constructor(ge,et,nn,br){let ti=-1;if(super(ge,et),Cn(this,"space",br),typeof nn=="number")for(;++ti<Qt.length;){const Li=Qt[ti];Cn(this,Qt[ti],(nn&oe[Li])===oe[Li])}}}Kt.prototype.defined=!0;function Cn(ce,ge,et){et&&(ce[ge]=et)}const St={}.hasOwnProperty;function pt(ce){const ge={},et={};let nn;for(nn in ce.properties)if(St.call(ce.properties,nn)){const br=ce.properties[nn],ti=new Kt(nn,ce.transform(ce.attributes||{},nn),br,ce.space);ce.mustUseProperty&&ce.mustUseProperty.includes(nn)&&(ti.mustUseProperty=!0),ge[nn]=ti,et[Ie(nn)]=nn,et[Ie(ti.attribute)]=nn}return new be(ge,et,ce.space)}const ct=pt({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}}),qt=pt({space:"xml",transform(ce,ge){return"xml:"+ge.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function fn(ce,ge){return ge in ce?ce[ge]:ge}function kt(ce,ge){return fn(ce,ge.toLowerCase())}const xn=pt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:kt,properties:{xmlns:null,xmlnsXLink:null}}),kn=pt({transform(ce,ge){return ge==="role"?ge:"aria-"+ge.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:st,ariaAutoComplete:null,ariaBusy:st,ariaChecked:st,ariaColCount:rt,ariaColIndex:rt,ariaColSpan:rt,ariaControls:mt,ariaCurrent:null,ariaDescribedBy:mt,ariaDetails:null,ariaDisabled:st,ariaDropEffect:mt,ariaErrorMessage:null,ariaExpanded:st,ariaFlowTo:mt,ariaGrabbed:st,ariaHasPopup:null,ariaHidden:st,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mt,ariaLevel:rt,ariaLive:null,ariaModal:st,ariaMultiLine:st,ariaMultiSelectable:st,ariaOrientation:null,ariaOwns:mt,ariaPlaceholder:null,ariaPosInSet:rt,ariaPressed:st,ariaReadOnly:st,ariaRelevant:null,ariaRequired:st,ariaRoleDescription:mt,ariaRowCount:rt,ariaRowIndex:rt,ariaRowSpan:rt,ariaSelected:st,ariaSetSize:rt,ariaSort:null,ariaValueMax:rt,ariaValueMin:rt,ariaValueNow:rt,ariaValueText:null,role:null}}),Vn=pt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:kt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xt,acceptCharset:mt,accessKey:mt,action:null,allow:null,allowFullScreen:Je,allowPaymentRequest:Je,allowUserMedia:Je,alt:null,as:null,async:Je,autoCapitalize:null,autoComplete:mt,autoFocus:Je,autoPlay:Je,blocking:mt,capture:null,charSet:null,checked:Je,cite:null,className:mt,cols:rt,colSpan:null,content:null,contentEditable:st,controls:Je,controlsList:mt,coords:rt|xt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:gt,draggable:st,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:mt,height:rt,hidden:Je,high:rt,href:null,hrefLang:null,htmlFor:mt,httpEquiv:mt,id:null,imageSizes:null,imageSrcSet:null,inert:Je,inputMode:null,integrity:null,is:null,isMap:Je,itemId:null,itemProp:mt,itemRef:mt,itemScope:Je,itemType:mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Je,low:rt,manifest:null,max:null,maxLength:rt,media:null,method:null,min:null,minLength:rt,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Je,optimum:rt,pattern:null,ping:mt,placeholder:null,playsInline:Je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Je,referrerPolicy:null,rel:mt,required:Je,reversed:Je,rows:rt,rowSpan:rt,sandbox:mt,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:rt,sizes:null,slot:null,span:rt,spellCheck:st,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rt,step:null,style:null,tabIndex:rt,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:st,width:rt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mt,axis:null,background:null,bgColor:null,border:rt,borderColor:null,bottomMargin:rt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:rt,leftMargin:rt,link:null,longDesc:null,lowSrc:null,marginHeight:rt,marginWidth:rt,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:rt,rules:null,scheme:null,scrolling:st,standby:null,summary:null,text:null,topMargin:rt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:rt,security:null,unselectable:null}}),Vt=pt({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:fn,properties:{about:Tt,accentHeight:rt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rt,amplitude:rt,arabicForm:null,ascent:rt,attributeName:null,attributeType:null,azimuth:rt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rt,by:null,calcMode:null,capHeight:rt,className:mt,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:rt,diffuseConstant:rt,direction:null,display:null,dur:null,divisor:rt,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:rt,enableBackground:null,end:null,event:null,exponent:rt,externalResourcesRequired:null,fill:null,fillOpacity:rt,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:xt,g2:xt,glyphName:xt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rt,horizOriginX:rt,horizOriginY:rt,id:null,ideographic:rt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rt,k:rt,k1:rt,k2:rt,k3:rt,k4:rt,kernelMatrix:Tt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rt,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:rt,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:rt,overlineThickness:rt,paintOrder:null,panose1:null,path:null,pathLength:rt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rt,pointsAtY:rt,pointsAtZ:rt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tt,rev:Tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tt,requiredFeatures:Tt,requiredFonts:Tt,requiredFormats:Tt,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:rt,specularExponent:rt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rt,strikethroughThickness:rt,string:null,stroke:null,strokeDashArray:Tt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rt,strokeOpacity:rt,strokeWidth:null,style:null,surfaceScale:rt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tt,tabIndex:rt,tableValues:null,target:null,targetX:rt,targetY:rt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:rt,underlineThickness:rt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rt,values:null,vAlphabetic:rt,vMathematical:rt,vectorEffect:null,vHanging:rt,vIdeographic:rt,version:null,vertAdvY:rt,vertOriginX:rt,vertOriginY:rt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ot=Ae([qt,ct,xn,kn,Vn],"html"),Nn=Ae([qt,ct,xn,kn,Vt],"svg"),tr=/^data[-\w.:]+$/i,hr=/-[a-z]/g,ot=/[A-Z]/g;function _e(ce,ge){const et=Ie(ge);let nn=ge,br=Xe;if(et in ce.normal)return ce.property[ce.normal[et]];if(et.length>4&&et.slice(0,4)==="data"&&tr.test(ge)){if(ge.charAt(4)==="-"){const ti=ge.slice(5).replace(hr,Ye);nn="data"+ti.charAt(0).toUpperCase()+ti.slice(1)}else{const ti=ge.slice(4);if(!hr.test(ti)){let Li=ti.replace(ot,Re);Li.charAt(0)!=="-"&&(Li="-"+Li),ge="data"+Li}}br=Kt}return new br(nn,ge)}function Re(ce){return"-"+ce.toLowerCase()}function Ye(ce){return ce.charAt(1).toUpperCase()}var at=ae(71523);const Be={}.hasOwnProperty;function bt(ce,ge){const et=ge||{};function nn(br,...ti){let Li=nn.invalid;const Lo=nn.handlers;if(br&&Be.call(br,ce)){const Xo=String(br[ce]);Li=Be.call(Lo,Xo)?Lo[Xo]:nn.unknown}if(Li)return Li.call(this,br,...ti)}return nn.handlers=et.handlers||{},nn.invalid=et.invalid,nn.unknown=et.unknown,nn}const bn={},sn={}.hasOwnProperty,Bn=bt("type",{handlers:{root:_t,element:Rt,text:En,comment:pn,doctype:hn}});function It(ce,ge){const nn=(ge||bn).space;return Bn(ce,nn==="svg"?Nn:Ot)}function _t(ce,ge){const et={nodeName:"#document",mode:(ce.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return et.childNodes=Yt(ce.children,et,ge),en(ce,et),et}function jt(ce,ge){const et={nodeName:"#document-fragment",childNodes:[]};return et.childNodes=Yt(ce.children,et,ge),en(ce,et),et}function hn(ce){const ge={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return en(ce,ge),ge}function En(ce){const ge={nodeName:"#text",value:ce.value,parentNode:null};return en(ce,ge),ge}function pn(ce){const ge={nodeName:"#comment",data:ce.value,parentNode:null};return en(ce,ge),ge}function Rt(ce,ge){const et=ge;let nn=et;ce.type==="element"&&ce.tagName.toLowerCase()==="svg"&&et.space==="html"&&(nn=Nn);const br=[];let ti;if(ce.properties){for(ti in ce.properties)if(ti!=="children"&&sn.call(ce.properties,ti)){const Xo=Tn(nn,ti,ce.properties[ti]);Xo&&br.push(Xo)}}const Li=nn.space;(0,ke.ok)(Li);const Lo={nodeName:ce.tagName,tagName:ce.tagName,attrs:br,namespaceURI:Ke.t[Li],childNodes:[],parentNode:null};return Lo.childNodes=Yt(ce.children,Lo,nn),en(ce,Lo),ce.tagName==="template"&&ce.content&&(Lo.content=jt(ce.content,nn)),Lo}function Tn(ce,ge,et){const nn=_e(ce,ge);if(et===!1||et===null||et===void 0||typeof et=="number"&&Number.isNaN(et)||!et&&nn.boolean)return;Array.isArray(et)&&(et=nn.commaSeparated?(0,me.P)(et):(0,at.P)(et));const br={name:nn.attribute,value:et===!0?"":String(et)};if(nn.space&&nn.space!=="html"&&nn.space!=="svg"){const ti=br.name.indexOf(":");ti<0?br.prefix="":(br.name=br.name.slice(ti+1),br.prefix=nn.attribute.slice(0,ti)),br.namespace=Ke.t[nn.space]}return br}function Yt(ce,ge,et){let nn=-1;const br=[];if(ce)for(;++nn<ce.length;){const ti=Bn(ce[nn],et);ti.parentNode=ge,br.push(ti)}return br}function en(ce,ge){const et=ce.position;et&&et.start&&et.end&&((0,ke.ok)(typeof et.start.offset=="number"),(0,ke.ok)(typeof et.end.offset=="number"),ge.sourceCodeLocation={startLine:et.start.line,startCol:et.start.column,startOffset:et.start.offset,endLine:et.end.line,endCol:et.end.column,endOffset:et.end.offset})}const vn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],zn=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]),un="\uFFFD";var Et;(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"})(Et||(Et={}));const Xn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ir(ce){return ce>=55296&&ce<=57343}function Jt(ce){return ce>=56320&&ce<=57343}function Er(ce,ge){return(ce-55296)*1024+9216+ge}function ni(ce){return ce!==32&&ce!==10&&ce!==13&&ce!==9&&ce!==12&&ce>=1&&ce<=31||ce>=127&&ce<=159}function Rr(ce){return ce>=64976&&ce<=65007||zn.has(ce)}var Mn;(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"})(Mn||(Mn={}));const ei=65536;class Kr{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=ei,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,et){const{line:nn,col:br,offset:ti}=this,Li=br+et,Lo=ti+et;return{code:ge,startLine:nn,endLine:nn,startCol:Li,endCol:Li,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 et=this.html.charCodeAt(this.pos+1);if(Jt(et))return this.pos++,this._addGap(),Er(ge,et)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Et.EOF;return this._err(Mn.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,et){this.html.length>0?this.html+=ge:this.html=ge,this.endOfChunkHit=!1,this.lastChunkWritten=et}insertHtmlAtCurrentPos(ge){this.html=this.html.substring(0,this.pos+1)+ge+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(ge,et){if(this.pos+ge.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(et)return this.html.startsWith(ge,this.pos);for(let nn=0;nn<ge.length;nn++)if((this.html.charCodeAt(this.pos+nn)|32)!==ge.charCodeAt(nn))return!1;return!0}peek(ge){const et=this.pos+ge;if(et>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Et.EOF;const nn=this.html.charCodeAt(et);return nn===Et.CARRIAGE_RETURN?Et.LINE_FEED:nn}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,Et.EOF;let ge=this.html.charCodeAt(this.pos);return ge===Et.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Et.LINE_FEED):ge===Et.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ir(ge)&&(ge=this._processSurrogate(ge)),this.handler.onParseError===null||ge>31&&ge<127||ge===Et.LINE_FEED||ge===Et.CARRIAGE_RETURN||ge>159&&ge<64976||this._checkForProblematicCharacters(ge),ge)}_checkForProblematicCharacters(ge){ni(ge)?this._err(Mn.controlCharacterInInputStream):Rr(ge)&&this._err(Mn.noncharacterInInputStream)}retreat(ge){for(this.pos-=ge;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var lr;(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"})(lr||(lr={}));function jr(ce,ge){for(let et=ce.attrs.length-1;et>=0;et--)if(ce.attrs[et].name===ge)return ce.attrs[et].value;return null}const oi=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))),Oe=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(ce=>ce.charCodeAt(0)));var dr;const Pr=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]]),or=(dr=String.fromCodePoint)!==null&&dr!==void 0?dr: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 Lr(ce){var ge;return ce>=55296&&ce<=57343||ce>1114111?65533:(ge=Pr.get(ce))!==null&&ge!==void 0?ge:ce}function zr(ce){return or(Lr(ce))}var wr;(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"})(wr||(wr={}));const Ti=32;var On;(function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"})(On||(On={}));function yn(ce){return ce>=wr.ZERO&&ce<=wr.NINE}function Sn(ce){return ce>=wr.UPPER_A&&ce<=wr.UPPER_F||ce>=wr.LOWER_A&&ce<=wr.LOWER_F}function Jn(ce){return ce>=wr.UPPER_A&&ce<=wr.UPPER_Z||ce>=wr.LOWER_A&&ce<=wr.LOWER_Z||yn(ce)}function ui(ce){return ce===wr.EQUALS||Jn(ce)}var Yr;(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"})(Yr||(Yr={}));var ci;(function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"})(ci||(ci={}));class ur{constructor(ge,et,nn){this.decodeTree=ge,this.emitCodePoint=et,this.errors=nn,this.state=Yr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ci.Strict}startEntity(ge){this.decodeMode=ge,this.state=Yr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(ge,et){switch(this.state){case Yr.EntityStart:return ge.charCodeAt(et)===wr.NUM?(this.state=Yr.NumericStart,this.consumed+=1,this.stateNumericStart(ge,et+1)):(this.state=Yr.NamedEntity,this.stateNamedEntity(ge,et));case Yr.NumericStart:return this.stateNumericStart(ge,et);case Yr.NumericDecimal:return this.stateNumericDecimal(ge,et);case Yr.NumericHex:return this.stateNumericHex(ge,et);case Yr.NamedEntity:return this.stateNamedEntity(ge,et)}}stateNumericStart(ge,et){return et>=ge.length?-1:(ge.charCodeAt(et)|Ti)===wr.LOWER_X?(this.state=Yr.NumericHex,this.consumed+=1,this.stateNumericHex(ge,et+1)):(this.state=Yr.NumericDecimal,this.stateNumericDecimal(ge,et))}addToNumericResult(ge,et,nn,br){if(et!==nn){const ti=nn-et;this.result=this.result*Math.pow(br,ti)+Number.parseInt(ge.substr(et,ti),br),this.consumed+=ti}}stateNumericHex(ge,et){const nn=et;for(;et<ge.length;){const br=ge.charCodeAt(et);if(yn(br)||Sn(br))et+=1;else return this.addToNumericResult(ge,nn,et,16),this.emitNumericEntity(br,3)}return this.addToNumericResult(ge,nn,et,16),-1}stateNumericDecimal(ge,et){const nn=et;for(;et<ge.length;){const br=ge.charCodeAt(et);if(yn(br))et+=1;else return this.addToNumericResult(ge,nn,et,10),this.emitNumericEntity(br,2)}return this.addToNumericResult(ge,nn,et,10),-1}emitNumericEntity(ge,et){var nn;if(this.consumed<=et)return(nn=this.errors)===null||nn===void 0||nn.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(ge===wr.SEMI)this.consumed+=1;else if(this.decodeMode===ci.Strict)return 0;return this.emitCodePoint(Lr(this.result),this.consumed),this.errors&&(ge!==wr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(ge,et){const{decodeTree:nn}=this;let br=nn[this.treeIndex],ti=(br&On.VALUE_LENGTH)>>14;for(;et<ge.length;et++,this.excess++){const Li=ge.charCodeAt(et);if(this.treeIndex=wi(nn,br,this.treeIndex+Math.max(1,ti),Li),this.treeIndex<0)return this.result===0||this.decodeMode===ci.Attribute&&(ti===0||ui(Li))?0:this.emitNotTerminatedNamedEntity();if(br=nn[this.treeIndex],ti=(br&On.VALUE_LENGTH)>>14,ti!==0){if(Li===wr.SEMI)return this.emitNamedEntityData(this.treeIndex,ti,this.consumed+this.excess);this.decodeMode!==ci.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ge;const{result:et,decodeTree:nn}=this,br=(nn[et]&On.VALUE_LENGTH)>>14;return this.emitNamedEntityData(et,br,this.consumed),(ge=this.errors)===null||ge===void 0||ge.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ge,et,nn){const{decodeTree:br}=this;return this.emitCodePoint(et===1?br[ge]&~On.VALUE_LENGTH:br[ge+1],nn),et===3&&this.emitCodePoint(br[ge+2],nn),nn}end(){var ge;switch(this.state){case Yr.NamedEntity:return this.result!==0&&(this.decodeMode!==ci.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yr.NumericDecimal:return this.emitNumericEntity(0,2);case Yr.NumericHex:return this.emitNumericEntity(0,3);case Yr.NumericStart:return(ge=this.errors)===null||ge===void 0||ge.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yr.EntityStart:return 0}}}function Xr(ce){let ge="";const et=new ur(ce,nn=>ge+=fromCodePoint(nn));return function(br,ti){let Li=0,Lo=0;for(;(Lo=br.indexOf("&",Lo))>=0;){ge+=br.slice(Li,Lo),et.startEntity(ti);const ii=et.write(br,Lo+1);if(ii<0){Li=Lo+et.end();break}Li=Lo+ii,Lo=ii===0?Li+1:Li}const Xo=ge+br.slice(Li);return ge="",Xo}}function wi(ce,ge,et,nn){const br=(ge&On.BRANCH_LENGTH)>>7,ti=ge&On.JUMP_TABLE;if(br===0)return ti!==0&&nn===ti?et:-1;if(ti){const Xo=nn-ti;return Xo<0||Xo>=br?-1:ce[et+Xo]-1}let Li=et,Lo=Li+br-1;for(;Li<=Lo;){const Xo=Li+Lo>>>1,ii=ce[Xo];if(ii<nn)Li=Xo+1;else if(ii>nn)Lo=Xo-1;else return ce[Xo+br]}return-1}const ki=null,Fr=null;function Lt(ce,ge=ci.Legacy){return ki(ce,ge)}function cn(ce){return ki(ce,ci.Attribute)}function kr(ce){return ki(ce,ci.Strict)}function Ir(ce){return Fr(ce,ci.Strict)}var Xt;(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/"})(Xt||(Xt={}));var Fn;(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"})(Fn||(Fn={}));var fr;(function(ce){ce.NO_QUIRKS="no-quirks",ce.QUIRKS="quirks",ce.LIMITED_QUIRKS="limited-quirks"})(fr||(fr={}));var dn;(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"})(dn||(dn={}));var Ue;(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"})(Ue||(Ue={}));const Mr=new Map([[dn.A,Ue.A],[dn.ADDRESS,Ue.ADDRESS],[dn.ANNOTATION_XML,Ue.ANNOTATION_XML],[dn.APPLET,Ue.APPLET],[dn.AREA,Ue.AREA],[dn.ARTICLE,Ue.ARTICLE],[dn.ASIDE,Ue.ASIDE],[dn.B,Ue.B],[dn.BASE,Ue.BASE],[dn.BASEFONT,Ue.BASEFONT],[dn.BGSOUND,Ue.BGSOUND],[dn.BIG,Ue.BIG],[dn.BLOCKQUOTE,Ue.BLOCKQUOTE],[dn.BODY,Ue.BODY],[dn.BR,Ue.BR],[dn.BUTTON,Ue.BUTTON],[dn.CAPTION,Ue.CAPTION],[dn.CENTER,Ue.CENTER],[dn.CODE,Ue.CODE],[dn.COL,Ue.COL],[dn.COLGROUP,Ue.COLGROUP],[dn.DD,Ue.DD],[dn.DESC,Ue.DESC],[dn.DETAILS,Ue.DETAILS],[dn.DIALOG,Ue.DIALOG],[dn.DIR,Ue.DIR],[dn.DIV,Ue.DIV],[dn.DL,Ue.DL],[dn.DT,Ue.DT],[dn.EM,Ue.EM],[dn.EMBED,Ue.EMBED],[dn.FIELDSET,Ue.FIELDSET],[dn.FIGCAPTION,Ue.FIGCAPTION],[dn.FIGURE,Ue.FIGURE],[dn.FONT,Ue.FONT],[dn.FOOTER,Ue.FOOTER],[dn.FOREIGN_OBJECT,Ue.FOREIGN_OBJECT],[dn.FORM,Ue.FORM],[dn.FRAME,Ue.FRAME],[dn.FRAMESET,Ue.FRAMESET],[dn.H1,Ue.H1],[dn.H2,Ue.H2],[dn.H3,Ue.H3],[dn.H4,Ue.H4],[dn.H5,Ue.H5],[dn.H6,Ue.H6],[dn.HEAD,Ue.HEAD],[dn.HEADER,Ue.HEADER],[dn.HGROUP,Ue.HGROUP],[dn.HR,Ue.HR],[dn.HTML,Ue.HTML],[dn.I,Ue.I],[dn.IMG,Ue.IMG],[dn.IMAGE,Ue.IMAGE],[dn.INPUT,Ue.INPUT],[dn.IFRAME,Ue.IFRAME],[dn.KEYGEN,Ue.KEYGEN],[dn.LABEL,Ue.LABEL],[dn.LI,Ue.LI],[dn.LINK,Ue.LINK],[dn.LISTING,Ue.LISTING],[dn.MAIN,Ue.MAIN],[dn.MALIGNMARK,Ue.MALIGNMARK],[dn.MARQUEE,Ue.MARQUEE],[dn.MATH,Ue.MATH],[dn.MENU,Ue.MENU],[dn.META,Ue.META],[dn.MGLYPH,Ue.MGLYPH],[dn.MI,Ue.MI],[dn.MO,Ue.MO],[dn.MN,Ue.MN],[dn.MS,Ue.MS],[dn.MTEXT,Ue.MTEXT],[dn.NAV,Ue.NAV],[dn.NOBR,Ue.NOBR],[dn.NOFRAMES,Ue.NOFRAMES],[dn.NOEMBED,Ue.NOEMBED],[dn.NOSCRIPT,Ue.NOSCRIPT],[dn.OBJECT,Ue.OBJECT],[dn.OL,Ue.OL],[dn.OPTGROUP,Ue.OPTGROUP],[dn.OPTION,Ue.OPTION],[dn.P,Ue.P],[dn.PARAM,Ue.PARAM],[dn.PLAINTEXT,Ue.PLAINTEXT],[dn.PRE,Ue.PRE],[dn.RB,Ue.RB],[dn.RP,Ue.RP],[dn.RT,Ue.RT],[dn.RTC,Ue.RTC],[dn.RUBY,Ue.RUBY],[dn.S,Ue.S],[dn.SCRIPT,Ue.SCRIPT],[dn.SEARCH,Ue.SEARCH],[dn.SECTION,Ue.SECTION],[dn.SELECT,Ue.SELECT],[dn.SOURCE,Ue.SOURCE],[dn.SMALL,Ue.SMALL],[dn.SPAN,Ue.SPAN],[dn.STRIKE,Ue.STRIKE],[dn.STRONG,Ue.STRONG],[dn.STYLE,Ue.STYLE],[dn.SUB,Ue.SUB],[dn.SUMMARY,Ue.SUMMARY],[dn.SUP,Ue.SUP],[dn.TABLE,Ue.TABLE],[dn.TBODY,Ue.TBODY],[dn.TEMPLATE,Ue.TEMPLATE],[dn.TEXTAREA,Ue.TEXTAREA],[dn.TFOOT,Ue.TFOOT],[dn.TD,Ue.TD],[dn.TH,Ue.TH],[dn.THEAD,Ue.THEAD],[dn.TITLE,Ue.TITLE],[dn.TR,Ue.TR],[dn.TRACK,Ue.TRACK],[dn.TT,Ue.TT],[dn.U,Ue.U],[dn.UL,Ue.UL],[dn.SVG,Ue.SVG],[dn.VAR,Ue.VAR],[dn.WBR,Ue.WBR],[dn.XMP,Ue.XMP]]);function Ur(ce){var ge;return(ge=Mr.get(ce))!==null&&ge!==void 0?ge:Ue.UNKNOWN}const Wn=Ue,mi={[Xt.HTML]:new Set([Wn.ADDRESS,Wn.APPLET,Wn.AREA,Wn.ARTICLE,Wn.ASIDE,Wn.BASE,Wn.BASEFONT,Wn.BGSOUND,Wn.BLOCKQUOTE,Wn.BODY,Wn.BR,Wn.BUTTON,Wn.CAPTION,Wn.CENTER,Wn.COL,Wn.COLGROUP,Wn.DD,Wn.DETAILS,Wn.DIR,Wn.DIV,Wn.DL,Wn.DT,Wn.EMBED,Wn.FIELDSET,Wn.FIGCAPTION,Wn.FIGURE,Wn.FOOTER,Wn.FORM,Wn.FRAME,Wn.FRAMESET,Wn.H1,Wn.H2,Wn.H3,Wn.H4,Wn.H5,Wn.H6,Wn.HEAD,Wn.HEADER,Wn.HGROUP,Wn.HR,Wn.HTML,Wn.IFRAME,Wn.IMG,Wn.INPUT,Wn.LI,Wn.LINK,Wn.LISTING,Wn.MAIN,Wn.MARQUEE,Wn.MENU,Wn.META,Wn.NAV,Wn.NOEMBED,Wn.NOFRAMES,Wn.NOSCRIPT,Wn.OBJECT,Wn.OL,Wn.P,Wn.PARAM,Wn.PLAINTEXT,Wn.PRE,Wn.SCRIPT,Wn.SECTION,Wn.SELECT,Wn.SOURCE,Wn.STYLE,Wn.SUMMARY,Wn.TABLE,Wn.TBODY,Wn.TD,Wn.TEMPLATE,Wn.TEXTAREA,Wn.TFOOT,Wn.TH,Wn.THEAD,Wn.TITLE,Wn.TR,Wn.TRACK,Wn.UL,Wn.WBR,Wn.XMP]),[Xt.MATHML]:new Set([Wn.MI,Wn.MO,Wn.MN,Wn.MS,Wn.MTEXT,Wn.ANNOTATION_XML]),[Xt.SVG]:new Set([Wn.TITLE,Wn.FOREIGN_OBJECT,Wn.DESC]),[Xt.XLINK]:new Set,[Xt.XML]:new Set,[Xt.XMLNS]:new Set},Qr=new Set([Wn.H1,Wn.H2,Wn.H3,Wn.H4,Wn.H5,Wn.H6]),rr=new Set([dn.STYLE,dn.SCRIPT,dn.XMP,dn.IFRAME,dn.NOEMBED,dn.NOFRAMES,dn.PLAINTEXT]);function Gr(ce,ge){return rr.has(ce)||ge&&ce===dn.NOSCRIPT}var on;(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"})(on||(on={}));const Ci={DATA:on.DATA,RCDATA:on.RCDATA,RAWTEXT:on.RAWTEXT,SCRIPT_DATA:on.SCRIPT_DATA,PLAINTEXT:on.PLAINTEXT,CDATA_SECTION:on.CDATA_SECTION};function Vi(ce){return ce>=Et.DIGIT_0&&ce<=Et.DIGIT_9}function mn(ce){return ce>=Et.LATIN_CAPITAL_A&&ce<=Et.LATIN_CAPITAL_Z}function li(ce){return ce>=Et.LATIN_SMALL_A&&ce<=Et.LATIN_SMALL_Z}function bi(ce){return li(ce)||mn(ce)}function qr(ce){return bi(ce)||Vi(ce)}function Pi(ce){return ce+32}function Ii(ce){return ce===Et.SPACE||ce===Et.LINE_FEED||ce===Et.TABULATION||ce===Et.FORM_FEED}function Hi(ce){return Ii(ce)||ce===Et.SOLIDUS||ce===Et.GREATER_THAN_SIGN}function ji(ce){return ce===Et.NULL?Mn.nullCharacterReference:ce>1114111?Mn.characterReferenceOutsideUnicodeRange:ir(ce)?Mn.surrogateCharacterReference:Rr(ce)?Mn.noncharacterCharacterReference:ni(ce)||ce===Et.CARRIAGE_RETURN?Mn.controlCharacterReference:null}class Bi{constructor(ge,et){this.options=ge,this.handler=et,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=on.DATA,this.returnState=on.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Kr(et),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ur(oi,(nn,br)=>{this.preprocessor.pos=this.entityStartPos+br-1,this._flushCodePointConsumedAsCharacterReference(nn)},et.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Mn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:nn=>{this._err(Mn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+nn)},validateNumericCharacterReference:nn=>{const br=ji(nn);br&&this._err(br,1)}}:void 0)}_err(ge,et=0){var nn,br;(br=(nn=this.handler).onParseError)===null||br===void 0||br.call(nn,this.preprocessor.getError(ge,et))}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,et,nn){this.active=!0,this.preprocessor.write(ge,et),this._runParsingLoop(),this.paused||nn==null||nn()}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 et=0;et<ge;et++)this.preprocessor.advance()}_consumeSequenceIfMatch(ge,et){return this.preprocessor.startsWith(ge,et)?(this._advanceBy(ge.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:lr.START_TAG,tagName:"",tagID:Ue.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:lr.END_TAG,tagName:"",tagID:Ue.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(ge){this.currentToken={type:lr.COMMENT,data:"",location:this.getCurrentLocation(ge)}}_createDoctypeToken(ge){this.currentToken={type:lr.DOCTYPE,name:ge,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(ge,et){this.currentCharacterToken={type:ge,chars:et,location:this.currentLocation}}_createAttr(ge){this.currentAttr={name:ge,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var ge,et;const nn=this.currentToken;if(jr(nn,this.currentAttr.name)===null){if(nn.attrs.push(this.currentAttr),nn.location&&this.currentLocation){const br=(ge=(et=nn.location).attrs)!==null&&ge!==void 0?ge:et.attrs=Object.create(null);br[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Mn.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=Ur(ge.tagName),ge.type===lr.START_TAG?(this.lastStartTagName=ge.tagName,this.handler.onStartTag(ge)):(ge.attrs.length>0&&this._err(Mn.endTagWithAttributes),ge.selfClosing&&this._err(Mn.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 lr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case lr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case lr.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:lr.EOF,location:ge}),this.active=!1}_appendCharToCurrentCharacterToken(ge,et){if(this.currentCharacterToken)if(this.currentCharacterToken.type===ge){this.currentCharacterToken.chars+=et;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(ge,et)}_emitCodePoint(ge){const et=Ii(ge)?lr.WHITESPACE_CHARACTER:ge===Et.NULL?lr.NULL_CHARACTER:lr.CHARACTER;this._appendCharToCurrentCharacterToken(et,String.fromCodePoint(ge))}_emitChars(ge){this._appendCharToCurrentCharacterToken(lr.CHARACTER,ge)}_startCharacterReference(){this.returnState=this.state,this.state=on.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ci.Attribute:ci.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===on.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===on.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===on.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ge){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ge):this._emitCodePoint(ge)}_callState(ge){switch(this.state){case on.DATA:{this._stateData(ge);break}case on.RCDATA:{this._stateRcdata(ge);break}case on.RAWTEXT:{this._stateRawtext(ge);break}case on.SCRIPT_DATA:{this._stateScriptData(ge);break}case on.PLAINTEXT:{this._statePlaintext(ge);break}case on.TAG_OPEN:{this._stateTagOpen(ge);break}case on.END_TAG_OPEN:{this._stateEndTagOpen(ge);break}case on.TAG_NAME:{this._stateTagName(ge);break}case on.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ge);break}case on.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ge);break}case on.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ge);break}case on.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ge);break}case on.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ge);break}case on.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ge);break}case on.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ge);break}case on.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ge);break}case on.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ge);break}case on.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ge);break}case on.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ge);break}case on.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ge);break}case on.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ge);break}case on.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ge);break}case on.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ge);break}case on.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ge);break}case on.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ge);break}case on.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ge);break}case on.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ge);break}case on.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ge);break}case on.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ge);break}case on.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ge);break}case on.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ge);break}case on.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ge);break}case on.ATTRIBUTE_NAME:{this._stateAttributeName(ge);break}case on.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ge);break}case on.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ge);break}case on.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ge);break}case on.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ge);break}case on.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ge);break}case on.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ge);break}case on.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ge);break}case on.BOGUS_COMMENT:{this._stateBogusComment(ge);break}case on.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ge);break}case on.COMMENT_START:{this._stateCommentStart(ge);break}case on.COMMENT_START_DASH:{this._stateCommentStartDash(ge);break}case on.COMMENT:{this._stateComment(ge);break}case on.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ge);break}case on.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ge);break}case on.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ge);break}case on.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ge);break}case on.COMMENT_END_DASH:{this._stateCommentEndDash(ge);break}case on.COMMENT_END:{this._stateCommentEnd(ge);break}case on.COMMENT_END_BANG:{this._stateCommentEndBang(ge);break}case on.DOCTYPE:{this._stateDoctype(ge);break}case on.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ge);break}case on.DOCTYPE_NAME:{this._stateDoctypeName(ge);break}case on.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ge);break}case on.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ge);break}case on.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ge);break}case on.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ge);break}case on.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ge);break}case on.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ge);break}case on.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ge);break}case on.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ge);break}case on.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ge);break}case on.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ge);break}case on.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ge);break}case on.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ge);break}case on.BOGUS_DOCTYPE:{this._stateBogusDoctype(ge);break}case on.CDATA_SECTION:{this._stateCdataSection(ge);break}case on.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ge);break}case on.CDATA_SECTION_END:{this._stateCdataSectionEnd(ge);break}case on.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case on.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ge);break}default:throw new Error("Unknown state")}}_stateData(ge){switch(ge){case Et.LESS_THAN_SIGN:{this.state=on.TAG_OPEN;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitCodePoint(ge);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRcdata(ge){switch(ge){case Et.AMPERSAND:{this._startCharacterReference();break}case Et.LESS_THAN_SIGN:{this.state=on.RCDATA_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(un);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateRawtext(ge){switch(ge){case Et.LESS_THAN_SIGN:{this.state=on.RAWTEXT_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(un);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptData(ge){switch(ge){case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(un);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_statePlaintext(ge){switch(ge){case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(un);break}case Et.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateTagOpen(ge){if(bi(ge))this._createStartTagToken(),this.state=on.TAG_NAME,this._stateTagName(ge);else switch(ge){case Et.EXCLAMATION_MARK:{this.state=on.MARKUP_DECLARATION_OPEN;break}case Et.SOLIDUS:{this.state=on.END_TAG_OPEN;break}case Et.QUESTION_MARK:{this._err(Mn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=on.BOGUS_COMMENT,this._stateBogusComment(ge);break}case Et.EOF:{this._err(Mn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Mn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=on.DATA,this._stateData(ge)}}_stateEndTagOpen(ge){if(bi(ge))this._createEndTagToken(),this.state=on.TAG_NAME,this._stateTagName(ge);else switch(ge){case Et.GREATER_THAN_SIGN:{this._err(Mn.missingEndTagName),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(Mn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=on.BOGUS_COMMENT,this._stateBogusComment(ge)}}_stateTagName(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=on.BEFORE_ATTRIBUTE_NAME;break}case Et.SOLIDUS:{this.state=on.SELF_CLOSING_START_TAG;break}case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentTagToken();break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.tagName+=un;break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:et.tagName+=String.fromCodePoint(mn(ge)?Pi(ge):ge)}}_stateRcdataLessThanSign(ge){ge===Et.SOLIDUS?this.state=on.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=on.RCDATA,this._stateRcdata(ge))}_stateRcdataEndTagOpen(ge){bi(ge)?(this.state=on.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(ge)):(this._emitChars("</"),this.state=on.RCDATA,this._stateRcdata(ge))}handleSpecialEndTag(ge){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const et=this.currentToken;switch(et.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=on.BEFORE_ATTRIBUTE_NAME,!1;case Et.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=on.SELF_CLOSING_START_TAG,!1;case Et.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=on.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=on.RCDATA,this._stateRcdata(ge))}_stateRawtextLessThanSign(ge){ge===Et.SOLIDUS?this.state=on.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=on.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagOpen(ge){bi(ge)?(this.state=on.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(ge)):(this._emitChars("</"),this.state=on.RAWTEXT,this._stateRawtext(ge))}_stateRawtextEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=on.RAWTEXT,this._stateRawtext(ge))}_stateScriptDataLessThanSign(ge){switch(ge){case Et.SOLIDUS:{this.state=on.SCRIPT_DATA_END_TAG_OPEN;break}case Et.EXCLAMATION_MARK:{this.state=on.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=on.SCRIPT_DATA,this._stateScriptData(ge)}}_stateScriptDataEndTagOpen(ge){bi(ge)?(this.state=on.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(ge)):(this._emitChars("</"),this.state=on.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=on.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStart(ge){ge===Et.HYPHEN_MINUS?(this.state=on.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=on.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscapeStartDash(ge){ge===Et.HYPHEN_MINUS?(this.state=on.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=on.SCRIPT_DATA,this._stateScriptData(ge))}_stateScriptDataEscaped(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=on.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(un);break}case Et.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataEscapedDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=on.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=on.SCRIPT_DATA_ESCAPED,this._emitChars(un);break}case Et.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=on.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedDashDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case Et.GREATER_THAN_SIGN:{this.state=on.SCRIPT_DATA,this._emitChars(">");break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=on.SCRIPT_DATA_ESCAPED,this._emitChars(un);break}case Et.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=on.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataEscapedLessThanSign(ge){ge===Et.SOLIDUS?this.state=on.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:bi(ge)?(this._emitChars("<"),this.state=on.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ge)):(this._emitChars("<"),this.state=on.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagOpen(ge){bi(ge)?(this.state=on.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ge)):(this._emitChars("</"),this.state=on.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataEscapedEndTagName(ge){this.handleSpecialEndTag(ge)&&(this._emitChars("</"),this.state=on.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscapeStart(ge){if(this.preprocessor.startsWith(Xn.SCRIPT,!1)&&Hi(this.preprocessor.peek(Xn.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<Xn.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=on.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ge))}_stateScriptDataDoubleEscaped(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._emitChars(un);break}case Et.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(un);break}case Et.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedDashDash(ge){switch(ge){case Et.HYPHEN_MINUS:{this._emitChars("-");break}case Et.LESS_THAN_SIGN:{this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case Et.GREATER_THAN_SIGN:{this.state=on.SCRIPT_DATA,this._emitChars(">");break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(un);break}case Et.EOF:{this._err(Mn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ge)}}_stateScriptDataDoubleEscapedLessThanSign(ge){ge===Et.SOLIDUS?(this.state=on.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateScriptDataDoubleEscapeEnd(ge){if(this.preprocessor.startsWith(Xn.SCRIPT,!1)&&Hi(this.preprocessor.peek(Xn.SCRIPT.length))){this._emitCodePoint(ge);for(let et=0;et<Xn.SCRIPT.length;et++)this._emitCodePoint(this._consume());this.state=on.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=on.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ge))}_stateBeforeAttributeName(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.SOLIDUS:case Et.GREATER_THAN_SIGN:case Et.EOF:{this.state=on.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case Et.EQUALS_SIGN:{this._err(Mn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=on.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=on.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateAttributeName(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:case Et.SOLIDUS:case Et.GREATER_THAN_SIGN:case Et.EOF:{this._leaveAttrName(),this.state=on.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(ge);break}case Et.EQUALS_SIGN:{this._leaveAttrName(),this.state=on.BEFORE_ATTRIBUTE_VALUE;break}case Et.QUOTATION_MARK:case Et.APOSTROPHE:case Et.LESS_THAN_SIGN:{this._err(Mn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(ge);break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.name+=un;break}default:this.currentAttr.name+=String.fromCodePoint(mn(ge)?Pi(ge):ge)}}_stateAfterAttributeName(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.SOLIDUS:{this.state=on.SELF_CLOSING_START_TAG;break}case Et.EQUALS_SIGN:{this.state=on.BEFORE_ATTRIBUTE_VALUE;break}case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=on.ATTRIBUTE_NAME,this._stateAttributeName(ge)}}_stateBeforeAttributeValue(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{this.state=on.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this.state=on.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.missingAttributeValue),this.state=on.DATA,this.emitCurrentTagToken();break}default:this.state=on.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(ge)}}_stateAttributeValueDoubleQuoted(ge){switch(ge){case Et.QUOTATION_MARK:{this.state=on.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.value+=un;break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueSingleQuoted(ge){switch(ge){case Et.APOSTROPHE:{this.state=on.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.value+=un;break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAttributeValueUnquoted(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this._leaveAttrValue(),this.state=on.BEFORE_ATTRIBUTE_NAME;break}case Et.AMPERSAND:{this._startCharacterReference();break}case Et.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=on.DATA,this.emitCurrentTagToken();break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this.currentAttr.value+=un;break}case Et.QUOTATION_MARK:case Et.APOSTROPHE:case Et.LESS_THAN_SIGN:case Et.EQUALS_SIGN:case Et.GRAVE_ACCENT:{this._err(Mn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(ge);break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(ge)}}_stateAfterAttributeValueQuoted(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this._leaveAttrValue(),this.state=on.BEFORE_ATTRIBUTE_NAME;break}case Et.SOLIDUS:{this._leaveAttrValue(),this.state=on.SELF_CLOSING_START_TAG;break}case Et.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=on.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this._err(Mn.missingWhitespaceBetweenAttributes),this.state=on.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateSelfClosingStartTag(ge){switch(ge){case Et.GREATER_THAN_SIGN:{const et=this.currentToken;et.selfClosing=!0,this.state=on.DATA,this.emitCurrentTagToken();break}case Et.EOF:{this._err(Mn.eofInTag),this._emitEOFToken();break}default:this._err(Mn.unexpectedSolidusInTag),this.state=on.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(ge)}}_stateBogusComment(ge){const et=this.currentToken;switch(ge){case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentComment(et);break}case Et.EOF:{this.emitCurrentComment(et),this._emitEOFToken();break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.data+=un;break}default:et.data+=String.fromCodePoint(ge)}}_stateMarkupDeclarationOpen(ge){this._consumeSequenceIfMatch(Xn.DASH_DASH,!0)?(this._createCommentToken(Xn.DASH_DASH.length+1),this.state=on.COMMENT_START):this._consumeSequenceIfMatch(Xn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Xn.DOCTYPE.length+1),this.state=on.DOCTYPE):this._consumeSequenceIfMatch(Xn.CDATA_START,!0)?this.inForeignNode?this.state=on.CDATA_SECTION:(this._err(Mn.cdataInHtmlContent),this._createCommentToken(Xn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=on.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Mn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=on.BOGUS_COMMENT,this._stateBogusComment(ge))}_stateCommentStart(ge){switch(ge){case Et.HYPHEN_MINUS:{this.state=on.COMMENT_START_DASH;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.abruptClosingOfEmptyComment),this.state=on.DATA;const et=this.currentToken;this.emitCurrentComment(et);break}default:this.state=on.COMMENT,this._stateComment(ge)}}_stateCommentStartDash(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{this.state=on.COMMENT_END;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.abruptClosingOfEmptyComment),this.state=on.DATA,this.emitCurrentComment(et);break}case Et.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=on.COMMENT,this._stateComment(ge)}}_stateComment(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{this.state=on.COMMENT_END_DASH;break}case Et.LESS_THAN_SIGN:{et.data+="<",this.state=on.COMMENT_LESS_THAN_SIGN;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.data+=un;break}case Et.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+=String.fromCodePoint(ge)}}_stateCommentLessThanSign(ge){const et=this.currentToken;switch(ge){case Et.EXCLAMATION_MARK:{et.data+="!",this.state=on.COMMENT_LESS_THAN_SIGN_BANG;break}case Et.LESS_THAN_SIGN:{et.data+="<";break}default:this.state=on.COMMENT,this._stateComment(ge)}}_stateCommentLessThanSignBang(ge){ge===Et.HYPHEN_MINUS?this.state=on.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=on.COMMENT,this._stateComment(ge))}_stateCommentLessThanSignBangDash(ge){ge===Et.HYPHEN_MINUS?this.state=on.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=on.COMMENT_END_DASH,this._stateCommentEndDash(ge))}_stateCommentLessThanSignBangDashDash(ge){ge!==Et.GREATER_THAN_SIGN&&ge!==Et.EOF&&this._err(Mn.nestedComment),this.state=on.COMMENT_END,this._stateCommentEnd(ge)}_stateCommentEndDash(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{this.state=on.COMMENT_END;break}case Et.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="-",this.state=on.COMMENT,this._stateComment(ge)}}_stateCommentEnd(ge){const et=this.currentToken;switch(ge){case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentComment(et);break}case Et.EXCLAMATION_MARK:{this.state=on.COMMENT_END_BANG;break}case Et.HYPHEN_MINUS:{et.data+="-";break}case Et.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--",this.state=on.COMMENT,this._stateComment(ge)}}_stateCommentEndBang(ge){const et=this.currentToken;switch(ge){case Et.HYPHEN_MINUS:{et.data+="--!",this.state=on.COMMENT_END_DASH;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.incorrectlyClosedComment),this.state=on.DATA,this.emitCurrentComment(et);break}case Et.EOF:{this._err(Mn.eofInComment),this.emitCurrentComment(et),this._emitEOFToken();break}default:et.data+="--!",this.state=on.COMMENT,this._stateComment(ge)}}_stateDoctype(ge){switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=on.BEFORE_DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this.state=on.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge);break}case Et.EOF:{this._err(Mn.eofInDoctype),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingWhitespaceBeforeDoctypeName),this.state=on.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(ge)}}_stateBeforeDoctypeName(ge){if(mn(ge))this._createDoctypeToken(String.fromCharCode(Pi(ge))),this.state=on.DOCTYPE_NAME;else switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.NULL:{this._err(Mn.unexpectedNullCharacter),this._createDoctypeToken(un),this.state=on.DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypeName),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofInDoctype),this._createDoctypeToken(null);const et=this.currentToken;et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(ge)),this.state=on.DOCTYPE_NAME}}_stateDoctypeName(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=on.AFTER_DOCTYPE_NAME;break}case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.name+=un;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.name+=String.fromCodePoint(mn(ge)?Pi(ge):ge)}}_stateAfterDoctypeName(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Xn.PUBLIC,!1)?this.state=on.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xn.SYSTEM,!1)?this.state=on.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Mn.invalidCharacterSequenceAfterDoctypeName),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge))}}_stateAfterDoctypePublicKeyword(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=on.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.QUOTATION_MARK:{this._err(Mn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=on.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(Mn.missingWhitespaceAfterDoctypePublicKeyword),et.publicId="",this.state=on.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypePublicIdentifier(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{et.publicId="",this.state=on.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{et.publicId="",this.state=on.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypePublicIdentifier),et.forceQuirks=!0,this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypePublicIdentifier),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypePublicIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case Et.QUOTATION_MARK:{this.state=on.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.publicId+=un;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.publicId+=String.fromCodePoint(ge)}}_stateDoctypePublicIdentifierSingleQuoted(ge){const et=this.currentToken;switch(ge){case Et.APOSTROPHE:{this.state=on.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.publicId+=un;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypePublicIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.publicId+=String.fromCodePoint(ge)}}_stateAfterDoctypePublicIdentifier(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=on.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case Et.GREATER_THAN_SIGN:{this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.QUOTATION_MARK:{this._err(Mn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(Mn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBetweenDoctypePublicAndSystemIdentifiers(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.QUOTATION_MARK:{et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateAfterDoctypeSystemKeyword(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:{this.state=on.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.QUOTATION_MARK:{this._err(Mn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{this._err(Mn.missingWhitespaceAfterDoctypeSystemKeyword),et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBeforeDoctypeSystemIdentifier(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.QUOTATION_MARK:{et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case Et.APOSTROPHE:{et.systemId="",this.state=on.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.missingDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=on.DATA,this.emitCurrentDoctype(et);break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.missingQuoteBeforeDoctypeSystemIdentifier),et.forceQuirks=!0,this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateDoctypeSystemIdentifierDoubleQuoted(ge){const et=this.currentToken;switch(ge){case Et.QUOTATION_MARK:{this.state=on.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.systemId+=un;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.systemId+=String.fromCodePoint(ge)}}_stateDoctypeSystemIdentifierSingleQuoted(ge){const et=this.currentToken;switch(ge){case Et.APOSTROPHE:{this.state=on.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter),et.systemId+=un;break}case Et.GREATER_THAN_SIGN:{this._err(Mn.abruptDoctypeSystemIdentifier),et.forceQuirks=!0,this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:et.systemId+=String.fromCodePoint(ge)}}_stateAfterDoctypeSystemIdentifier(ge){const et=this.currentToken;switch(ge){case Et.SPACE:case Et.LINE_FEED:case Et.TABULATION:case Et.FORM_FEED:break;case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.EOF:{this._err(Mn.eofInDoctype),et.forceQuirks=!0,this.emitCurrentDoctype(et),this._emitEOFToken();break}default:this._err(Mn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=on.BOGUS_DOCTYPE,this._stateBogusDoctype(ge)}}_stateBogusDoctype(ge){const et=this.currentToken;switch(ge){case Et.GREATER_THAN_SIGN:{this.emitCurrentDoctype(et),this.state=on.DATA;break}case Et.NULL:{this._err(Mn.unexpectedNullCharacter);break}case Et.EOF:{this.emitCurrentDoctype(et),this._emitEOFToken();break}default:}}_stateCdataSection(ge){switch(ge){case Et.RIGHT_SQUARE_BRACKET:{this.state=on.CDATA_SECTION_BRACKET;break}case Et.EOF:{this._err(Mn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(ge)}}_stateCdataSectionBracket(ge){ge===Et.RIGHT_SQUARE_BRACKET?this.state=on.CDATA_SECTION_END:(this._emitChars("]"),this.state=on.CDATA_SECTION,this._stateCdataSection(ge))}_stateCdataSectionEnd(ge){switch(ge){case Et.GREATER_THAN_SIGN:{this.state=on.DATA;break}case Et.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=on.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(Et.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&qr(this.preprocessor.peek(1))?on.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(ge){qr(ge)?this._flushCodePointConsumedAsCharacterReference(ge):(ge===Et.SEMICOLON&&this._err(Mn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(ge))}}const io=new Set([Ue.DD,Ue.DT,Ue.LI,Ue.OPTGROUP,Ue.OPTION,Ue.P,Ue.RB,Ue.RP,Ue.RT,Ue.RTC]),Qn=new Set([...io,Ue.CAPTION,Ue.COLGROUP,Ue.TBODY,Ue.TD,Ue.TFOOT,Ue.TH,Ue.THEAD,Ue.TR]),zi=new Set([Ue.APPLET,Ue.CAPTION,Ue.HTML,Ue.MARQUEE,Ue.OBJECT,Ue.TABLE,Ue.TD,Ue.TEMPLATE,Ue.TH]),ar=new Set([...zi,Ue.OL,Ue.UL]),vi=new Set([...zi,Ue.BUTTON]),Zi=new Set([Ue.ANNOTATION_XML,Ue.MI,Ue.MN,Ue.MO,Ue.MS,Ue.MTEXT]),Fi=new Set([Ue.DESC,Ue.FOREIGN_OBJECT,Ue.TITLE]),fo=new Set([Ue.TR,Ue.TEMPLATE,Ue.HTML]),co=new Set([Ue.TBODY,Ue.TFOOT,Ue.THEAD,Ue.TEMPLATE,Ue.HTML]),Wi=new Set([Ue.TABLE,Ue.TEMPLATE,Ue.HTML]),zo=new Set([Ue.TD,Ue.TH]);class _n{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(ge,et,nn){this.treeAdapter=et,this.handler=nn,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ue.UNKNOWN,this.current=ge}_indexOf(ge){return this.items.lastIndexOf(ge,this.stackTop)}_isInTemplate(){return this.currentTagId===Ue.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Xt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(ge,et){this.stackTop++,this.items[this.stackTop]=ge,this.current=ge,this.tagIDs[this.stackTop]=et,this.currentTagId=et,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(ge,et,!0)}pop(){const ge=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!0)}replace(ge,et){const nn=this._indexOf(ge);this.items[nn]=et,nn===this.stackTop&&(this.current=et)}insertAfter(ge,et,nn){const br=this._indexOf(ge)+1;this.items.splice(br,0,et),this.tagIDs.splice(br,0,nn),this.stackTop++,br===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,br===this.stackTop)}popUntilTagNamePopped(ge){let et=this.stackTop+1;do et=this.tagIDs.lastIndexOf(ge,et-1);while(et>0&&this.treeAdapter.getNamespaceURI(this.items[et])!==Xt.HTML);this.shortenToLength(Math.max(et,0))}shortenToLength(ge){for(;this.stackTop>=ge;){const et=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(et,this.stackTop<ge)}}popUntilElementPopped(ge){const et=this._indexOf(ge);this.shortenToLength(Math.max(et,0))}popUntilPopped(ge,et){const nn=this._indexOfTagNames(ge,et);this.shortenToLength(Math.max(nn,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Qr,Xt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(zo,Xt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(ge,et){for(let nn=this.stackTop;nn>=0;nn--)if(ge.has(this.tagIDs[nn])&&this.treeAdapter.getNamespaceURI(this.items[nn])===et)return nn;return-1}clearBackTo(ge,et){const nn=this._indexOfTagNames(ge,et);this.shortenToLength(nn+1)}clearBackToTableContext(){this.clearBackTo(Wi,Xt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(co,Xt.HTML)}clearBackToTableRowContext(){this.clearBackTo(fo,Xt.HTML)}remove(ge){const et=this._indexOf(ge);et>=0&&(et===this.stackTop?this.pop():(this.items.splice(et,1),this.tagIDs.splice(et,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ge,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Ue.BODY?this.items[1]:null}contains(ge){return this._indexOf(ge)>-1}getCommonAncestor(ge){const et=this._indexOf(ge)-1;return et>=0?this.items[et]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===Ue.HTML}hasInDynamicScope(ge,et){for(let nn=this.stackTop;nn>=0;nn--){const br=this.tagIDs[nn];switch(this.treeAdapter.getNamespaceURI(this.items[nn])){case Xt.HTML:{if(br===ge)return!0;if(et.has(br))return!1;break}case Xt.SVG:{if(Fi.has(br))return!1;break}case Xt.MATHML:{if(Zi.has(br))return!1;break}}}return!0}hasInScope(ge){return this.hasInDynamicScope(ge,zi)}hasInListItemScope(ge){return this.hasInDynamicScope(ge,ar)}hasInButtonScope(ge){return this.hasInDynamicScope(ge,vi)}hasNumberedHeaderInScope(){for(let ge=this.stackTop;ge>=0;ge--){const et=this.tagIDs[ge];switch(this.treeAdapter.getNamespaceURI(this.items[ge])){case Xt.HTML:{if(Qr.has(et))return!0;if(zi.has(et))return!1;break}case Xt.SVG:{if(Fi.has(et))return!1;break}case Xt.MATHML:{if(Zi.has(et))return!1;break}}}return!0}hasInTableScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===Xt.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ue.TABLE:case Ue.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ge=this.stackTop;ge>=0;ge--)if(this.treeAdapter.getNamespaceURI(this.items[ge])===Xt.HTML)switch(this.tagIDs[ge]){case Ue.TBODY:case Ue.THEAD:case Ue.TFOOT:return!0;case Ue.TABLE:case Ue.HTML:return!1}return!0}hasInSelectScope(ge){for(let et=this.stackTop;et>=0;et--)if(this.treeAdapter.getNamespaceURI(this.items[et])===Xt.HTML)switch(this.tagIDs[et]){case ge:return!0;case Ue.OPTION:case Ue.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&io.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Qn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ge){for(;this.currentTagId!==void 0&&this.currentTagId!==ge&&Qn.has(this.currentTagId);)this.pop()}}const vr=3;var An;(function(ce){ce[ce.Marker=0]="Marker",ce[ce.Element=1]="Element"})(An||(An={}));const it={type:An.Marker};class Dr{constructor(ge){this.treeAdapter=ge,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ge,et){const nn=[],br=et.length,ti=this.treeAdapter.getTagName(ge),Li=this.treeAdapter.getNamespaceURI(ge);for(let Lo=0;Lo<this.entries.length;Lo++){const Xo=this.entries[Lo];if(Xo.type===An.Marker)break;const{element:ii}=Xo;if(this.treeAdapter.getTagName(ii)===ti&&this.treeAdapter.getNamespaceURI(ii)===Li){const qi=this.treeAdapter.getAttrList(ii);qi.length===br&&nn.push({idx:Lo,attrs:qi})}}return nn}_ensureNoahArkCondition(ge){if(this.entries.length<vr)return;const et=this.treeAdapter.getAttrList(ge),nn=this._getNoahArkConditionCandidates(ge,et);if(nn.length<vr)return;const br=new Map(et.map(Li=>[Li.name,Li.value]));let ti=0;for(let Li=0;Li<nn.length;Li++){const Lo=nn[Li];Lo.attrs.every(Xo=>br.get(Xo.name)===Xo.value)&&(ti+=1,ti>=vr&&this.entries.splice(Lo.idx,1))}}insertMarker(){this.entries.unshift(it)}pushElement(ge,et){this._ensureNoahArkCondition(ge),this.entries.unshift({type:An.Element,element:ge,token:et})}insertElementAfterBookmark(ge,et){const nn=this.entries.indexOf(this.bookmark);this.entries.splice(nn,0,{type:An.Element,element:ge,token:et})}removeEntry(ge){const et=this.entries.indexOf(ge);et!==-1&&this.entries.splice(et,1)}clearToLastMarker(){const ge=this.entries.indexOf(it);ge===-1?this.entries.length=0:this.entries.splice(0,ge+1)}getElementEntryInScopeWithTagName(ge){const et=this.entries.find(nn=>nn.type===An.Marker||this.treeAdapter.getTagName(nn.element)===ge);return et&&et.type===An.Element?et:null}getElementEntry(ge){return this.entries.find(et=>et.type===An.Element&&et.element===ge)}}const Wr={createDocument(){return{nodeName:"#document",mode:fr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(ce,ge,et){return{nodeName:ce,tagName:ce,attrs:et,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,et){const nn=ce.childNodes.indexOf(et);ce.childNodes.splice(nn,0,ge),ge.parentNode=ce},setTemplateContent(ce,ge){ce.content=ge},getTemplateContent(ce){return ce.content},setDocumentType(ce,ge,et,nn){const br=ce.childNodes.find(ti=>ti.nodeName==="#documentType");if(br)br.name=ge,br.publicId=et,br.systemId=nn;else{const ti={nodeName:"#documentType",name:ge,publicId:et,systemId:nn,parentNode:null};Wr.appendChild(ce,ti)}},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 et=ce.childNodes[ce.childNodes.length-1];if(Wr.isTextNode(et)){et.value+=ge;return}}Wr.appendChild(ce,Wr.createTextNode(ge))},insertTextBefore(ce,ge,et){const nn=ce.childNodes[ce.childNodes.indexOf(et)-1];nn&&Wr.isTextNode(nn)?nn.value+=ge:Wr.insertBefore(ce,Wr.createTextNode(ge),et)},adoptAttributes(ce,ge){const et=new Set(ce.attrs.map(nn=>nn.name));for(let nn=0;nn<ge.length;nn++)et.has(ge[nn].name)||ce.attrs.push(ge[nn])},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=xa(xa({},ce.sourceCodeLocation),ge)}},pi="html",hi="about:legacy-compat",ai="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",mr=["+//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//"],ht=[...mr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],wn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Pn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Gn=[...Pn,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function gn(ce,ge){return ge.some(et=>ce.startsWith(et))}function $n(ce){return ce.name===pi&&ce.publicId===null&&(ce.systemId===null||ce.systemId===hi)}function Yn(ce){if(ce.name!==pi)return fr.QUIRKS;const{systemId:ge}=ce;if(ge&&ge.toLowerCase()===ai)return fr.QUIRKS;let{publicId:et}=ce;if(et!==null){if(et=et.toLowerCase(),wn.has(et))return fr.QUIRKS;let nn=ge===null?ht:mr;if(gn(et,nn))return fr.QUIRKS;if(nn=ge===null?Pn:Gn,gn(et,nn))return fr.LIMITED_QUIRKS}return fr.NO_QUIRKS}const an={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},cr="definitionurl",Vr="definitionURL",Ni=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])),si=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Xt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Xt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Xt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Xt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Xt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Xt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Xt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Xt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Xt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Xt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Xt.XMLNS}]]),Si=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])),Ri=new Set([Ue.B,Ue.BIG,Ue.BLOCKQUOTE,Ue.BODY,Ue.BR,Ue.CENTER,Ue.CODE,Ue.DD,Ue.DIV,Ue.DL,Ue.DT,Ue.EM,Ue.EMBED,Ue.H1,Ue.H2,Ue.H3,Ue.H4,Ue.H5,Ue.H6,Ue.HEAD,Ue.HR,Ue.I,Ue.IMG,Ue.LI,Ue.LISTING,Ue.MENU,Ue.META,Ue.NOBR,Ue.OL,Ue.P,Ue.PRE,Ue.RUBY,Ue.S,Ue.SMALL,Ue.SPAN,Ue.STRONG,Ue.STRIKE,Ue.SUB,Ue.SUP,Ue.TABLE,Ue.TT,Ue.U,Ue.UL,Ue.VAR]);function _i(ce){const ge=ce.tagID;return ge===Ue.FONT&&ce.attrs.some(({name:nn})=>nn===Fn.COLOR||nn===Fn.SIZE||nn===Fn.FACE)||Ri.has(ge)}function ao(ce){for(let ge=0;ge<ce.attrs.length;ge++)if(ce.attrs[ge].name===cr){ce.attrs[ge].name=Vr;break}}function wo(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=Ni.get(ce.attrs[ge].name);et!=null&&(ce.attrs[ge].name=et)}}function Ho(ce){for(let ge=0;ge<ce.attrs.length;ge++){const et=si.get(ce.attrs[ge].name);et&&(ce.attrs[ge].prefix=et.prefix,ce.attrs[ge].name=et.name,ce.attrs[ge].namespace=et.namespace)}}function In(ce){const ge=Si.get(ce.tagName);ge!=null&&(ce.tagName=ge,ce.tagID=Ur(ce.tagName))}function ko(ce,ge){return ge===Xt.MATHML&&(ce===Ue.MI||ce===Ue.MO||ce===Ue.MN||ce===Ue.MS||ce===Ue.MTEXT)}function po(ce,ge,et){if(ge===Xt.MATHML&&ce===Ue.ANNOTATION_XML){for(let nn=0;nn<et.length;nn++)if(et[nn].name===Fn.ENCODING){const br=et[nn].value.toLowerCase();return br===an.TEXT_HTML||br===an.APPLICATION_XML}}return ge===Xt.SVG&&(ce===Ue.FOREIGN_OBJECT||ce===Ue.DESC||ce===Ue.TITLE)}function Yi(ce,ge,et,nn){return(!nn||nn===Xt.HTML)&&po(ce,ge,et)||(!nn||nn===Xt.MATHML)&&ko(ce,ge)}const Oi="hidden",Oo=8,Wo=3;var jn;(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"})(jn||(jn={}));const vo={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ia=new Set([Ue.TABLE,Ue.TBODY,Ue.TFOOT,Ue.THEAD,Ue.TR]),za={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Wr,onParseError:null};class hs{constructor(ge,et,nn=null,br=null){this.fragmentContext=nn,this.scriptHandler=br,this.currentToken=null,this.stopped=!1,this.insertionMode=jn.INITIAL,this.originalInsertionMode=jn.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=xa(xa({},za),ge),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=et!=null?et:this.treeAdapter.createDocument(),this.tokenizer=new Bi(this.options,this),this.activeFormattingElements=new Dr(this.treeAdapter),this.fragmentContextID=nn?Ur(this.treeAdapter.getTagName(nn)):Ue.UNKNOWN,this._setContextModes(nn!=null?nn:this.document,this.fragmentContextID),this.openElements=new _n(this.document,this.treeAdapter,this)}static parse(ge,et){const nn=new this(et);return nn.tokenizer.write(ge,!0),nn.document}static getFragmentParser(ge,et){const nn=xa(xa({},za),et);ge!=null||(ge=nn.treeAdapter.createElement(dn.TEMPLATE,Xt.HTML,[]));const br=nn.treeAdapter.createElement("documentmock",Xt.HTML,[]),ti=new this(nn,br,ge);return ti.fragmentContextID===Ue.TEMPLATE&&ti.tmplInsertionModeStack.unshift(jn.IN_TEMPLATE),ti._initTokenizerForFragmentParsing(),ti._insertFakeRootElement(),ti._resetInsertionMode(),ti._findFormInFragmentContext(),ti}getFragment(){const ge=this.treeAdapter.getFirstChild(this.document),et=this.treeAdapter.createDocumentFragment();return this._adoptNodes(ge,et),et}_err(ge,et,nn){var br;if(!this.onParseError)return;const ti=(br=ge.location)!==null&&br!==void 0?br:vo,Li={code:et,startLine:ti.startLine,startCol:ti.startCol,startOffset:ti.startOffset,endLine:nn?ti.startLine:ti.endLine,endCol:nn?ti.startCol:ti.endCol,endOffset:nn?ti.startOffset:ti.endOffset};this.onParseError(Li)}onItemPush(ge,et,nn){var br,ti;(ti=(br=this.treeAdapter).onItemPush)===null||ti===void 0||ti.call(br,ge),nn&&this.openElements.stackTop>0&&this._setContextModes(ge,et)}onItemPop(ge,et){var nn,br;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ge,this.currentToken),(br=(nn=this.treeAdapter).onItemPop)===null||br===void 0||br.call(nn,ge,this.openElements.current),et){let ti,Li;this.openElements.stackTop===0&&this.fragmentContext?(ti=this.fragmentContext,Li=this.fragmentContextID):{current:ti,currentTagId:Li}=this.openElements,this._setContextModes(ti,Li)}}_setContextModes(ge,et){const nn=ge===this.document||ge&&this.treeAdapter.getNamespaceURI(ge)===Xt.HTML;this.currentNotInHTML=!nn,this.tokenizer.inForeignNode=!nn&&ge!==void 0&&et!==void 0&&!this._isIntegrationPoint(et,ge)}_switchToTextParsing(ge,et){this._insertElement(ge,Xt.HTML),this.tokenizer.state=et,this.originalInsertionMode=this.insertionMode,this.insertionMode=jn.TEXT}switchToPlaintextParsing(){this.insertionMode=jn.TEXT,this.originalInsertionMode=jn.IN_BODY,this.tokenizer.state=Ci.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)===dn.FORM){this.formElement=ge;break}ge=this.treeAdapter.getParentNode(ge)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Xt.HTML))switch(this.fragmentContextID){case Ue.TITLE:case Ue.TEXTAREA:{this.tokenizer.state=Ci.RCDATA;break}case Ue.STYLE:case Ue.XMP:case Ue.IFRAME:case Ue.NOEMBED:case Ue.NOFRAMES:case Ue.NOSCRIPT:{this.tokenizer.state=Ci.RAWTEXT;break}case Ue.SCRIPT:{this.tokenizer.state=Ci.SCRIPT_DATA;break}case Ue.PLAINTEXT:{this.tokenizer.state=Ci.PLAINTEXT;break}default:}}_setDocumentType(ge){const et=ge.name||"",nn=ge.publicId||"",br=ge.systemId||"";if(this.treeAdapter.setDocumentType(this.document,et,nn,br),ge.location){const Li=this.treeAdapter.getChildNodes(this.document).find(Lo=>this.treeAdapter.isDocumentTypeNode(Lo));Li&&this.treeAdapter.setNodeSourceCodeLocation(Li,ge.location)}}_attachElementToTree(ge,et){if(this.options.sourceCodeLocationInfo){const nn=et&&Zp(xa({},et),{startTag:et});this.treeAdapter.setNodeSourceCodeLocation(ge,nn)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ge);else{const nn=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(nn!=null?nn:this.document,ge)}}_appendElement(ge,et){const nn=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(nn,ge.location)}_insertElement(ge,et){const nn=this.treeAdapter.createElement(ge.tagName,et,ge.attrs);this._attachElementToTree(nn,ge.location),this.openElements.push(nn,ge.tagID)}_insertFakeElement(ge,et){const nn=this.treeAdapter.createElement(ge,Xt.HTML,[]);this._attachElementToTree(nn,null),this.openElements.push(nn,et)}_insertTemplate(ge){const et=this.treeAdapter.createElement(ge.tagName,Xt.HTML,ge.attrs),nn=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(et,nn),this._attachElementToTree(et,ge.location),this.openElements.push(et,ge.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(nn,null)}_insertFakeRootElement(){const ge=this.treeAdapter.createElement(dn.HTML,Xt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ge,null),this.treeAdapter.appendChild(this.openElements.current,ge),this.openElements.push(ge,Ue.HTML)}_appendCommentNode(ge,et){const nn=this.treeAdapter.createCommentNode(ge.data);this.treeAdapter.appendChild(et,nn),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(nn,ge.location)}_insertCharacters(ge){let et,nn;if(this._shouldFosterParentOnInsertion()?({parent:et,beforeElement:nn}=this._findFosterParentingLocation(),nn?this.treeAdapter.insertTextBefore(et,ge.chars,nn):this.treeAdapter.insertText(et,ge.chars)):(et=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(et,ge.chars)),!ge.location)return;const br=this.treeAdapter.getChildNodes(et),ti=nn?br.lastIndexOf(nn):br.length,Li=br[ti-1];if(this.treeAdapter.getNodeSourceCodeLocation(Li)){const{endLine:Xo,endCol:ii,endOffset:qi}=ge.location;this.treeAdapter.updateNodeSourceCodeLocation(Li,{endLine:Xo,endCol:ii,endOffset:qi})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Li,ge.location)}_adoptNodes(ge,et){for(let nn=this.treeAdapter.getFirstChild(ge);nn;nn=this.treeAdapter.getFirstChild(ge))this.treeAdapter.detachNode(nn),this.treeAdapter.appendChild(et,nn)}_setEndLocation(ge,et){if(this.treeAdapter.getNodeSourceCodeLocation(ge)&&et.location){const nn=et.location,br=this.treeAdapter.getTagName(ge),ti=et.type===lr.END_TAG&&br===et.tagName?{endTag:xa({},nn),endLine:nn.endLine,endCol:nn.endCol,endOffset:nn.endOffset}:{endLine:nn.startLine,endCol:nn.startCol,endOffset:nn.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ge,ti)}}shouldProcessStartTagTokenInForeignContent(ge){if(!this.currentNotInHTML)return!1;let et,nn;return this.openElements.stackTop===0&&this.fragmentContext?(et=this.fragmentContext,nn=this.fragmentContextID):{current:et,currentTagId:nn}=this.openElements,ge.tagID===Ue.SVG&&this.treeAdapter.getTagName(et)===dn.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(et)===Xt.MATHML?!1:this.tokenizer.inForeignNode||(ge.tagID===Ue.MGLYPH||ge.tagID===Ue.MALIGNMARK)&&nn!==void 0&&!this._isIntegrationPoint(nn,et,Xt.HTML)}_processToken(ge){switch(ge.type){case lr.CHARACTER:{this.onCharacter(ge);break}case lr.NULL_CHARACTER:{this.onNullCharacter(ge);break}case lr.COMMENT:{this.onComment(ge);break}case lr.DOCTYPE:{this.onDoctype(ge);break}case lr.START_TAG:{this._processStartTag(ge);break}case lr.END_TAG:{this.onEndTag(ge);break}case lr.EOF:{this.onEof(ge);break}case lr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ge);break}}}_isIntegrationPoint(ge,et,nn){const br=this.treeAdapter.getNamespaceURI(et),ti=this.treeAdapter.getAttrList(et);return Yi(ge,br,ti,nn)}_reconstructActiveFormattingElements(){const ge=this.activeFormattingElements.entries.length;if(ge){const et=this.activeFormattingElements.entries.findIndex(br=>br.type===An.Marker||this.openElements.contains(br.element)),nn=et===-1?ge-1:et-1;for(let br=nn;br>=0;br--){const ti=this.activeFormattingElements.entries[br];this._insertElement(ti.token,this.treeAdapter.getNamespaceURI(ti.element)),ti.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=jn.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ue.P),this.openElements.popUntilTagNamePopped(Ue.P)}_resetInsertionMode(){for(let ge=this.openElements.stackTop;ge>=0;ge--)switch(ge===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ge]){case Ue.TR:{this.insertionMode=jn.IN_ROW;return}case Ue.TBODY:case Ue.THEAD:case Ue.TFOOT:{this.insertionMode=jn.IN_TABLE_BODY;return}case Ue.CAPTION:{this.insertionMode=jn.IN_CAPTION;return}case Ue.COLGROUP:{this.insertionMode=jn.IN_COLUMN_GROUP;return}case Ue.TABLE:{this.insertionMode=jn.IN_TABLE;return}case Ue.BODY:{this.insertionMode=jn.IN_BODY;return}case Ue.FRAMESET:{this.insertionMode=jn.IN_FRAMESET;return}case Ue.SELECT:{this._resetInsertionModeForSelect(ge);return}case Ue.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case Ue.HTML:{this.insertionMode=this.headElement?jn.AFTER_HEAD:jn.BEFORE_HEAD;return}case Ue.TD:case Ue.TH:{if(ge>0){this.insertionMode=jn.IN_CELL;return}break}case Ue.HEAD:{if(ge>0){this.insertionMode=jn.IN_HEAD;return}break}}this.insertionMode=jn.IN_BODY}_resetInsertionModeForSelect(ge){if(ge>0)for(let et=ge-1;et>0;et--){const nn=this.openElements.tagIDs[et];if(nn===Ue.TEMPLATE)break;if(nn===Ue.TABLE){this.insertionMode=jn.IN_SELECT_IN_TABLE;return}}this.insertionMode=jn.IN_SELECT}_isElementCausesFosterParenting(ge){return ia.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 et=this.openElements.items[ge];switch(this.openElements.tagIDs[ge]){case Ue.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(et)===Xt.HTML)return{parent:this.treeAdapter.getTemplateContent(et),beforeElement:null};break}case Ue.TABLE:{const nn=this.treeAdapter.getParentNode(et);return nn?{parent:nn,beforeElement:et}:{parent:this.openElements.items[ge-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(ge){const et=this._findFosterParentingLocation();et.beforeElement?this.treeAdapter.insertBefore(et.parent,ge,et.beforeElement):this.treeAdapter.appendChild(et.parent,ge)}_isSpecialElement(ge,et){const nn=this.treeAdapter.getNamespaceURI(ge);return mi[nn].has(et)}onCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ft(this,ge);return}switch(this.insertionMode){case jn.INITIAL:{Do(this,ge);break}case jn.BEFORE_HTML:{Ss(this,ge);break}case jn.BEFORE_HEAD:{Fo(this,ge);break}case jn.IN_HEAD:{Rs(this,ge);break}case jn.IN_HEAD_NO_SCRIPT:{$a(this,ge);break}case jn.AFTER_HEAD:{es(this,ge);break}case jn.IN_BODY:case jn.IN_CAPTION:case jn.IN_CELL:case jn.IN_TEMPLATE:{ul(this,ge);break}case jn.TEXT:case jn.IN_SELECT:case jn.IN_SELECT_IN_TABLE:{this._insertCharacters(ge);break}case jn.IN_TABLE:case jn.IN_TABLE_BODY:case jn.IN_ROW:{bo(this,ge);break}case jn.IN_TABLE_TEXT:{Nl(this,ge);break}case jn.IN_COLUMN_GROUP:{xs(this,ge);break}case jn.AFTER_BODY:{bc(this,ge);break}case jn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onNullCharacter(ge){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tt(this,ge);return}switch(this.insertionMode){case jn.INITIAL:{Do(this,ge);break}case jn.BEFORE_HTML:{Ss(this,ge);break}case jn.BEFORE_HEAD:{Fo(this,ge);break}case jn.IN_HEAD:{Rs(this,ge);break}case jn.IN_HEAD_NO_SCRIPT:{$a(this,ge);break}case jn.AFTER_HEAD:{es(this,ge);break}case jn.TEXT:{this._insertCharacters(ge);break}case jn.IN_TABLE:case jn.IN_TABLE_BODY:case jn.IN_ROW:{bo(this,ge);break}case jn.IN_COLUMN_GROUP:{xs(this,ge);break}case jn.AFTER_BODY:{bc(this,ge);break}case jn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onComment(ge){if(this.skipNextNewLine=!1,this.currentNotInHTML){_a(this,ge);return}switch(this.insertionMode){case jn.INITIAL:case jn.BEFORE_HTML:case jn.BEFORE_HEAD:case jn.IN_HEAD:case jn.IN_HEAD_NO_SCRIPT:case jn.AFTER_HEAD:case jn.IN_BODY:case jn.IN_TABLE:case jn.IN_CAPTION:case jn.IN_COLUMN_GROUP:case jn.IN_TABLE_BODY:case jn.IN_ROW:case jn.IN_CELL:case jn.IN_SELECT:case jn.IN_SELECT_IN_TABLE:case jn.IN_TEMPLATE:case jn.IN_FRAMESET:case jn.AFTER_FRAMESET:{_a(this,ge);break}case jn.IN_TABLE_TEXT:{dl(this,ge);break}case jn.AFTER_BODY:{fi(this,ge);break}case jn.AFTER_AFTER_BODY:case jn.AFTER_AFTER_FRAMESET:{Qi(this,ge);break}default:}}onDoctype(ge){switch(this.skipNextNewLine=!1,this.insertionMode){case jn.INITIAL:{Io(this,ge);break}case jn.BEFORE_HEAD:case jn.IN_HEAD:case jn.IN_HEAD_NO_SCRIPT:case jn.AFTER_HEAD:{this._err(ge,Mn.misplacedDoctype);break}case jn.IN_TABLE_TEXT:{dl(this,ge);break}default:}}onStartTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this._processStartTag(ge),ge.selfClosing&&!ge.ackSelfClosing&&this._err(ge,Mn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ge){this.shouldProcessStartTagTokenInForeignContent(ge)?Ht(this,ge):this._startTagOutsideForeignContent(ge)}_startTagOutsideForeignContent(ge){switch(this.insertionMode){case jn.INITIAL:{Do(this,ge);break}case jn.BEFORE_HTML:{sa(this,ge);break}case jn.BEFORE_HEAD:{pa(this,ge);break}case jn.IN_HEAD:{ga(this,ge);break}case jn.IN_HEAD_NO_SCRIPT:{ol(this,ge);break}case jn.AFTER_HEAD:{Kl(this,ge);break}case jn.IN_BODY:{ua(this,ge);break}case jn.IN_TABLE:{Xl(this,ge);break}case jn.IN_TABLE_TEXT:{dl(this,ge);break}case jn.IN_CAPTION:{$o(this,ge);break}case jn.IN_COLUMN_GROUP:{Va(this,ge);break}case jn.IN_TABLE_BODY:{Ll(this,ge);break}case jn.IN_ROW:{_l(this,ge);break}case jn.IN_CELL:{hu(this,ge);break}case jn.IN_SELECT:{Hd(this,ge);break}case jn.IN_SELECT_IN_TABLE:{dh(this,ge);break}case jn.IN_TEMPLATE:{lc(this,ge);break}case jn.AFTER_BODY:{$s(this,ge);break}case jn.IN_FRAMESET:{Fs(this,ge);break}case jn.AFTER_FRAMESET:{Qc(this,ge);break}case jn.AFTER_AFTER_BODY:{Il(this,ge);break}case jn.AFTER_AFTER_FRAMESET:{Qe(this,ge);break}default:}}onEndTag(ge){this.skipNextNewLine=!1,this.currentToken=ge,this.currentNotInHTML?ln(this,ge):this._endTagOutsideForeignContent(ge)}_endTagOutsideForeignContent(ge){switch(this.insertionMode){case jn.INITIAL:{Do(this,ge);break}case jn.BEFORE_HTML:{Ji(this,ge);break}case jn.BEFORE_HEAD:{Ga(this,ge);break}case jn.IN_HEAD:{Hs(this,ge);break}case jn.IN_HEAD_NO_SCRIPT:{Xs(this,ge);break}case jn.AFTER_HEAD:{nc(this,ge);break}case jn.IN_BODY:{La(this,ge);break}case jn.TEXT:{na(this,ge);break}case jn.IN_TABLE:{la(this,ge);break}case jn.IN_TABLE_TEXT:{dl(this,ge);break}case jn.IN_CAPTION:{ca(this,ge);break}case jn.IN_COLUMN_GROUP:{Is(this,ge);break}case jn.IN_TABLE_BODY:{Bl(this,ge);break}case jn.IN_ROW:{kl(this,ge);break}case jn.IN_CELL:{bd(this,ge);break}case jn.IN_SELECT:{ch(this,ge);break}case jn.IN_SELECT_IN_TABLE:{gs(this,ge);break}case jn.IN_TEMPLATE:{Na(this,ge);break}case jn.AFTER_BODY:{qs(this,ge);break}case jn.IN_FRAMESET:{Eu(this,ge);break}case jn.AFTER_FRAMESET:{Ed(this,ge);break}case jn.AFTER_AFTER_BODY:{Ce(this,ge);break}default:}}onEof(ge){switch(this.insertionMode){case jn.INITIAL:{Do(this,ge);break}case jn.BEFORE_HTML:{Ss(this,ge);break}case jn.BEFORE_HEAD:{Fo(this,ge);break}case jn.IN_HEAD:{Rs(this,ge);break}case jn.IN_HEAD_NO_SCRIPT:{$a(this,ge);break}case jn.AFTER_HEAD:{es(this,ge);break}case jn.IN_BODY:case jn.IN_TABLE:case jn.IN_CAPTION:case jn.IN_COLUMN_GROUP:case jn.IN_TABLE_BODY:case jn.IN_ROW:case jn.IN_CELL:case jn.IN_SELECT:case jn.IN_SELECT_IN_TABLE:{Za(this,ge);break}case jn.TEXT:{sc(this,ge);break}case jn.IN_TABLE_TEXT:{dl(this,ge);break}case jn.IN_TEMPLATE:{js(this,ge);break}case jn.AFTER_BODY:case jn.IN_FRAMESET:case jn.AFTER_FRAMESET:case jn.AFTER_AFTER_BODY:case jn.AFTER_AFTER_FRAMESET:{ho(this,ge);break}default:}}onWhitespaceCharacter(ge){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ge.chars.charCodeAt(0)===Et.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 jn.IN_HEAD:case jn.IN_HEAD_NO_SCRIPT:case jn.AFTER_HEAD:case jn.TEXT:case jn.IN_COLUMN_GROUP:case jn.IN_SELECT:case jn.IN_SELECT_IN_TABLE:case jn.IN_FRAMESET:case jn.AFTER_FRAMESET:{this._insertCharacters(ge);break}case jn.IN_BODY:case jn.IN_CAPTION:case jn.IN_CELL:case jn.IN_TEMPLATE:case jn.AFTER_BODY:case jn.AFTER_AFTER_BODY:case jn.AFTER_AFTER_FRAMESET:{ll(this,ge);break}case jn.IN_TABLE:case jn.IN_TABLE_BODY:case jn.IN_ROW:{bo(this,ge);break}case jn.IN_TABLE_TEXT:{du(this,ge);break}default:}}}function il(ce,ge){let et=ce.activeFormattingElements.getElementEntryInScopeWithTagName(ge.tagName);return et?ce.openElements.contains(et.element)?ce.openElements.hasInScope(ge.tagID)||(et=null):(ce.activeFormattingElements.removeEntry(et),et=null):Ta(ce,ge),et}function Ls(ce,ge){let et=null,nn=ce.openElements.stackTop;for(;nn>=0;nn--){const br=ce.openElements.items[nn];if(br===ge.element)break;ce._isSpecialElement(br,ce.openElements.tagIDs[nn])&&(et=br)}return et||(ce.openElements.shortenToLength(Math.max(nn,0)),ce.activeFormattingElements.removeEntry(ge)),et}function no(ce,ge,et){let nn=ge,br=ce.openElements.getCommonAncestor(ge);for(let ti=0,Li=br;Li!==et;ti++,Li=br){br=ce.openElements.getCommonAncestor(Li);const Lo=ce.activeFormattingElements.getElementEntry(Li),Xo=Lo&&ti>=Wo;!Lo||Xo?(Xo&&ce.activeFormattingElements.removeEntry(Lo),ce.openElements.remove(Li)):(Li=Ra(ce,Lo),nn===ge&&(ce.activeFormattingElements.bookmark=Lo),ce.treeAdapter.detachNode(nn),ce.treeAdapter.appendChild(Li,nn),nn=Li)}return nn}function Ra(ce,ge){const et=ce.treeAdapter.getNamespaceURI(ge.element),nn=ce.treeAdapter.createElement(ge.token.tagName,et,ge.token.attrs);return ce.openElements.replace(ge.element,nn),ge.element=nn,nn}function Ma(ce,ge,et){const nn=ce.treeAdapter.getTagName(ge),br=Ur(nn);if(ce._isElementCausesFosterParenting(br))ce._fosterParentElement(et);else{const ti=ce.treeAdapter.getNamespaceURI(ge);br===Ue.TEMPLATE&&ti===Xt.HTML&&(ge=ce.treeAdapter.getTemplateContent(ge)),ce.treeAdapter.appendChild(ge,et)}}function ts(ce,ge,et){const nn=ce.treeAdapter.getNamespaceURI(et.element),{token:br}=et,ti=ce.treeAdapter.createElement(br.tagName,nn,br.attrs);ce._adoptNodes(ge,ti),ce.treeAdapter.appendChild(ge,ti),ce.activeFormattingElements.insertElementAfterBookmark(ti,br),ce.activeFormattingElements.removeEntry(et),ce.openElements.remove(et.element),ce.openElements.insertAfter(ge,ti,br.tagID)}function Oa(ce,ge){for(let et=0;et<Oo;et++){const nn=il(ce,ge);if(!nn)break;const br=Ls(ce,nn);if(!br)break;ce.activeFormattingElements.bookmark=nn;const ti=no(ce,br,nn.element),Li=ce.openElements.getCommonAncestor(nn.element);ce.treeAdapter.detachNode(ti),Li&&Ma(ce,Li,ti),ts(ce,br,nn)}}function _a(ce,ge){ce._appendCommentNode(ge,ce.openElements.currentTmplContentOrNode)}function fi(ce,ge){ce._appendCommentNode(ge,ce.openElements.items[0])}function Qi(ce,ge){ce._appendCommentNode(ge,ce.document)}function ho(ce,ge){if(ce.stopped=!0,ge.location){const et=ce.fragmentContext?0:2;for(let nn=ce.openElements.stackTop;nn>=et;nn--)ce._setEndLocation(ce.openElements.items[nn],ge);if(!ce.fragmentContext&&ce.openElements.stackTop>=0){const nn=ce.openElements.items[0],br=ce.treeAdapter.getNodeSourceCodeLocation(nn);if(br&&!br.endTag&&(ce._setEndLocation(nn,ge),ce.openElements.stackTop>=1)){const ti=ce.openElements.items[1],Li=ce.treeAdapter.getNodeSourceCodeLocation(ti);Li&&!Li.endTag&&ce._setEndLocation(ti,ge)}}}}function Io(ce,ge){ce._setDocumentType(ge);const et=ge.forceQuirks?fr.QUIRKS:Yn(ge);$n(ge)||ce._err(ge,Mn.nonConformingDoctype),ce.treeAdapter.setDocumentMode(ce.document,et),ce.insertionMode=jn.BEFORE_HTML}function Do(ce,ge){ce._err(ge,Mn.missingDoctype,!0),ce.treeAdapter.setDocumentMode(ce.document,fr.QUIRKS),ce.insertionMode=jn.BEFORE_HTML,ce._processToken(ge)}function sa(ce,ge){ge.tagID===Ue.HTML?(ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.BEFORE_HEAD):Ss(ce,ge)}function Ji(ce,ge){const et=ge.tagID;(et===Ue.HTML||et===Ue.HEAD||et===Ue.BODY||et===Ue.BR)&&Ss(ce,ge)}function Ss(ce,ge){ce._insertFakeRootElement(),ce.insertionMode=jn.BEFORE_HEAD,ce._processToken(ge)}function pa(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.HEAD:{ce._insertElement(ge,Xt.HTML),ce.headElement=ce.openElements.current,ce.insertionMode=jn.IN_HEAD;break}default:Fo(ce,ge)}}function Ga(ce,ge){const et=ge.tagID;et===Ue.HEAD||et===Ue.BODY||et===Ue.HTML||et===Ue.BR?Fo(ce,ge):ce._err(ge,Mn.endTagWithoutMatchingOpenElement)}function Fo(ce,ge){ce._insertFakeElement(dn.HEAD,Ue.HEAD),ce.headElement=ce.openElements.current,ce.insertionMode=jn.IN_HEAD,ce._processToken(ge)}function ga(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:{ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.TITLE:{ce._switchToTextParsing(ge,Ci.RCDATA);break}case Ue.NOSCRIPT:{ce.options.scriptingEnabled?ce._switchToTextParsing(ge,Ci.RAWTEXT):(ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_HEAD_NO_SCRIPT);break}case Ue.NOFRAMES:case Ue.STYLE:{ce._switchToTextParsing(ge,Ci.RAWTEXT);break}case Ue.SCRIPT:{ce._switchToTextParsing(ge,Ci.SCRIPT_DATA);break}case Ue.TEMPLATE:{ce._insertTemplate(ge),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1,ce.insertionMode=jn.IN_TEMPLATE,ce.tmplInsertionModeStack.unshift(jn.IN_TEMPLATE);break}case Ue.HEAD:{ce._err(ge,Mn.misplacedStartTagForHeadElement);break}default:Rs(ce,ge)}}function Hs(ce,ge){switch(ge.tagID){case Ue.HEAD:{ce.openElements.pop(),ce.insertionMode=jn.AFTER_HEAD;break}case Ue.BODY:case Ue.BR:case Ue.HTML:{Rs(ce,ge);break}case Ue.TEMPLATE:{da(ce,ge);break}default:ce._err(ge,Mn.endTagWithoutMatchingOpenElement)}}function da(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.generateImpliedEndTagsThoroughly(),ce.openElements.currentTagId!==Ue.TEMPLATE&&ce._err(ge,Mn.closingOfElementWithOpenChildElements),ce.openElements.popUntilTagNamePopped(Ue.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode()):ce._err(ge,Mn.endTagWithoutMatchingOpenElement)}function Rs(ce,ge){ce.openElements.pop(),ce.insertionMode=jn.AFTER_HEAD,ce._processToken(ge)}function ol(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.BASEFONT:case Ue.BGSOUND:case Ue.HEAD:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.STYLE:{ga(ce,ge);break}case Ue.NOSCRIPT:{ce._err(ge,Mn.nestedNoscriptInHead);break}default:$a(ce,ge)}}function Xs(ce,ge){switch(ge.tagID){case Ue.NOSCRIPT:{ce.openElements.pop(),ce.insertionMode=jn.IN_HEAD;break}case Ue.BR:{$a(ce,ge);break}default:ce._err(ge,Mn.endTagWithoutMatchingOpenElement)}}function $a(ce,ge){const et=ge.type===lr.EOF?Mn.openElementsLeftAfterEof:Mn.disallowedContentInNoscriptInHead;ce._err(ge,et),ce.openElements.pop(),ce.insertionMode=jn.IN_HEAD,ce._processToken(ge)}function Kl(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.BODY:{ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1,ce.insertionMode=jn.IN_BODY;break}case Ue.FRAMESET:{ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_FRAMESET;break}case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.SCRIPT:case Ue.STYLE:case Ue.TEMPLATE:case Ue.TITLE:{ce._err(ge,Mn.abandonedHeadElementChild),ce.openElements.push(ce.headElement,Ue.HEAD),ga(ce,ge),ce.openElements.remove(ce.headElement);break}case Ue.HEAD:{ce._err(ge,Mn.misplacedStartTagForHeadElement);break}default:es(ce,ge)}}function nc(ce,ge){switch(ge.tagID){case Ue.BODY:case Ue.HTML:case Ue.BR:{es(ce,ge);break}case Ue.TEMPLATE:{da(ce,ge);break}default:ce._err(ge,Mn.endTagWithoutMatchingOpenElement)}}function es(ce,ge){ce._insertFakeElement(dn.BODY,Ue.BODY),ce.insertionMode=jn.IN_BODY,Pl(ce,ge)}function Pl(ce,ge){switch(ge.type){case lr.CHARACTER:{ul(ce,ge);break}case lr.WHITESPACE_CHARACTER:{ll(ce,ge);break}case lr.COMMENT:{_a(ce,ge);break}case lr.START_TAG:{ua(ce,ge);break}case lr.END_TAG:{La(ce,ge);break}case lr.EOF:{Za(ce,ge);break}default:}}function ll(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertCharacters(ge)}function ul(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 yc(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce.openElements.tmplCount===0&&(ce.framesetOk=!1,ce.treeAdapter.adoptAttributes(et,ge.attrs))}function ns(ce,ge){const et=ce.openElements.tryPeekProperlyNestedBodyElement();ce.framesetOk&&et&&(ce.treeAdapter.detachNode(et),ce.openElements.popAllUpToHtmlElement(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_FRAMESET)}function ic(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML)}function oc(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce.openElements.currentTagId!==void 0&&Qr.has(ce.openElements.currentTagId)&&ce.openElements.pop(),ce._insertElement(ge,Xt.HTML)}function Mu(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),ce.skipNextNewLine=!0,ce.framesetOk=!1}function Ou(ce,ge){const et=ce.openElements.tmplCount>0;(!ce.formElement||et)&&(ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),et||(ce.formElement=ce.openElements.current))}function Ms(ce,ge){ce.framesetOk=!1;const et=ge.tagID;for(let nn=ce.openElements.stackTop;nn>=0;nn--){const br=ce.openElements.tagIDs[nn];if(et===Ue.LI&&br===Ue.LI||(et===Ue.DD||et===Ue.DT)&&(br===Ue.DD||br===Ue.DT)){ce.openElements.generateImpliedEndTagsWithExclusion(br),ce.openElements.popUntilTagNamePopped(br);break}if(br!==Ue.ADDRESS&&br!==Ue.DIV&&br!==Ue.P&&ce._isSpecialElement(ce.openElements.items[nn],br))break}ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML)}function Qs(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),ce.tokenizer.state=Ci.PLAINTEXT}function fs(ce,ge){ce.openElements.hasInScope(Ue.BUTTON)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ue.BUTTON)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1}function ks(ce,ge){const et=ce.activeFormattingElements.getElementEntryInScopeWithTagName(dn.A);et&&(Oa(ce,ge),ce.openElements.remove(et.element),ce.activeFormattingElements.removeEntry(et)),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function yu(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function zs(ce,ge){ce._reconstructActiveFormattingElements(),ce.openElements.hasInScope(Ue.NOBR)&&(Oa(ce,ge),ce._reconstructActiveFormattingElements()),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.pushElement(ce.openElements.current,ge)}function wa(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.activeFormattingElements.insertMarker(),ce.framesetOk=!1}function ma(ce,ge){ce.treeAdapter.getDocumentMode(ce.document)!==fr.QUIRKS&&ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1,ce.insertionMode=jn.IN_TABLE}function Vo(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,Xt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function cs(ce){const ge=jr(ce,Fn.TYPE);return ge!=null&&ge.toLowerCase()===Oi}function Mi(ce,ge){ce._reconstructActiveFormattingElements(),ce._appendElement(ge,Xt.HTML),cs(ge)||(ce.framesetOk=!1),ge.ackSelfClosing=!0}function ps(ce,ge){ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0}function tn(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._appendElement(ge,Xt.HTML),ce.framesetOk=!1,ge.ackSelfClosing=!0}function Nr(ce,ge){ge.tagName=dn.IMG,ge.tagID=Ue.IMG,Vo(ce,ge)}function Tl(ce,ge){ce._insertElement(ge,Xt.HTML),ce.skipNextNewLine=!0,ce.tokenizer.state=Ci.RCDATA,ce.originalInsertionMode=ce.insertionMode,ce.framesetOk=!1,ce.insertionMode=jn.TEXT}function Su(ce,ge){ce.openElements.hasInButtonScope(Ue.P)&&ce._closePElement(),ce._reconstructActiveFormattingElements(),ce.framesetOk=!1,ce._switchToTextParsing(ge,Ci.RAWTEXT)}function ja(ce,ge){ce.framesetOk=!1,ce._switchToTextParsing(ge,Ci.RAWTEXT)}function rs(ce,ge){ce._switchToTextParsing(ge,Ci.RAWTEXT)}function Al(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML),ce.framesetOk=!1,ce.insertionMode=ce.insertionMode===jn.IN_TABLE||ce.insertionMode===jn.IN_CAPTION||ce.insertionMode===jn.IN_TABLE_BODY||ce.insertionMode===jn.IN_ROW||ce.insertionMode===jn.IN_CELL?jn.IN_SELECT_IN_TABLE:jn.IN_SELECT}function Fl(ce,ge){ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML)}function ac(ce,ge){ce.openElements.hasInScope(Ue.RUBY)&&ce.openElements.generateImpliedEndTags(),ce._insertElement(ge,Xt.HTML)}function Wa(ce,ge){ce.openElements.hasInScope(Ue.RUBY)&&ce.openElements.generateImpliedEndTagsWithExclusion(Ue.RTC),ce._insertElement(ge,Xt.HTML)}function Eo(ce,ge){ce._reconstructActiveFormattingElements(),ao(ge),Ho(ge),ge.selfClosing?ce._appendElement(ge,Xt.MATHML):ce._insertElement(ge,Xt.MATHML),ge.ackSelfClosing=!0}function bs(ce,ge){ce._reconstructActiveFormattingElements(),wo(ge),Ho(ge),ge.selfClosing?ce._appendElement(ge,Xt.SVG):ce._insertElement(ge,Xt.SVG),ge.ackSelfClosing=!0}function Js(ce,ge){ce._reconstructActiveFormattingElements(),ce._insertElement(ge,Xt.HTML)}function ua(ce,ge){switch(ge.tagID){case Ue.I:case Ue.S:case Ue.B:case Ue.U:case Ue.EM:case Ue.TT:case Ue.BIG:case Ue.CODE:case Ue.FONT:case Ue.SMALL:case Ue.STRIKE:case Ue.STRONG:{yu(ce,ge);break}case Ue.A:{ks(ce,ge);break}case Ue.H1:case Ue.H2:case Ue.H3:case Ue.H4:case Ue.H5:case Ue.H6:{oc(ce,ge);break}case Ue.P:case Ue.DL:case Ue.OL:case Ue.UL:case Ue.DIV:case Ue.DIR:case Ue.NAV:case Ue.MAIN:case Ue.MENU:case Ue.ASIDE:case Ue.CENTER:case Ue.FIGURE:case Ue.FOOTER:case Ue.HEADER:case Ue.HGROUP:case Ue.DIALOG:case Ue.DETAILS:case Ue.ADDRESS:case Ue.ARTICLE:case Ue.SEARCH:case Ue.SECTION:case Ue.SUMMARY:case Ue.FIELDSET:case Ue.BLOCKQUOTE:case Ue.FIGCAPTION:{ic(ce,ge);break}case Ue.LI:case Ue.DD:case Ue.DT:{Ms(ce,ge);break}case Ue.BR:case Ue.IMG:case Ue.WBR:case Ue.AREA:case Ue.EMBED:case Ue.KEYGEN:{Vo(ce,ge);break}case Ue.HR:{tn(ce,ge);break}case Ue.RB:case Ue.RTC:{ac(ce,ge);break}case Ue.RT:case Ue.RP:{Wa(ce,ge);break}case Ue.PRE:case Ue.LISTING:{Mu(ce,ge);break}case Ue.XMP:{Su(ce,ge);break}case Ue.SVG:{bs(ce,ge);break}case Ue.HTML:{rc(ce,ge);break}case Ue.BASE:case Ue.LINK:case Ue.META:case Ue.STYLE:case Ue.TITLE:case Ue.SCRIPT:case Ue.BGSOUND:case Ue.BASEFONT:case Ue.TEMPLATE:{ga(ce,ge);break}case Ue.BODY:{yc(ce,ge);break}case Ue.FORM:{Ou(ce,ge);break}case Ue.NOBR:{zs(ce,ge);break}case Ue.MATH:{Eo(ce,ge);break}case Ue.TABLE:{ma(ce,ge);break}case Ue.INPUT:{Mi(ce,ge);break}case Ue.PARAM:case Ue.TRACK:case Ue.SOURCE:{ps(ce,ge);break}case Ue.IMAGE:{Nr(ce,ge);break}case Ue.BUTTON:{fs(ce,ge);break}case Ue.APPLET:case Ue.OBJECT:case Ue.MARQUEE:{wa(ce,ge);break}case Ue.IFRAME:{ja(ce,ge);break}case Ue.SELECT:{Al(ce,ge);break}case Ue.OPTION:case Ue.OPTGROUP:{Fl(ce,ge);break}case Ue.NOEMBED:case Ue.NOFRAMES:{rs(ce,ge);break}case Ue.FRAMESET:{ns(ce,ge);break}case Ue.TEXTAREA:{Tl(ce,ge);break}case Ue.NOSCRIPT:{ce.options.scriptingEnabled?rs(ce,ge):Js(ce,ge);break}case Ue.PLAINTEXT:{Qs(ce,ge);break}case Ue.COL:case Ue.TH:case Ue.TD:case Ue.TR:case Ue.HEAD:case Ue.FRAME:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.CAPTION:case Ue.COLGROUP:break;default:Js(ce,ge)}}function Zo(ce,ge){if(ce.openElements.hasInScope(Ue.BODY)&&(ce.insertionMode=jn.AFTER_BODY,ce.options.sourceCodeLocationInfo)){const et=ce.openElements.tryPeekProperlyNestedBodyElement();et&&ce._setEndLocation(et,ge)}}function Ya(ce,ge){ce.openElements.hasInScope(Ue.BODY)&&(ce.insertionMode=jn.AFTER_BODY,qs(ce,ge))}function cl(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et))}function Ia(ce){const ge=ce.openElements.tmplCount>0,{formElement:et}=ce;ge||(ce.formElement=null),(et||ge)&&ce.openElements.hasInScope(Ue.FORM)&&(ce.openElements.generateImpliedEndTags(),ge?ce.openElements.popUntilTagNamePopped(Ue.FORM):et&&ce.openElements.remove(et))}function Sl(ce){ce.openElements.hasInButtonScope(Ue.P)||ce._insertFakeElement(dn.P,Ue.P),ce._closePElement()}function Es(ce){ce.openElements.hasInListItemScope(Ue.LI)&&(ce.openElements.generateImpliedEndTagsWithExclusion(Ue.LI),ce.openElements.popUntilTagNamePopped(Ue.LI))}function Fu(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTagsWithExclusion(et),ce.openElements.popUntilTagNamePopped(et))}function va(ce){ce.openElements.hasNumberedHeaderInScope()&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilNumberedHeaderPopped())}function Os(ce,ge){const et=ge.tagID;ce.openElements.hasInScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker())}function oa(ce){ce._reconstructActiveFormattingElements(),ce._insertFakeElement(dn.BR,Ue.BR),ce.openElements.pop(),ce.framesetOk=!1}function Ta(ce,ge){const et=ge.tagName,nn=ge.tagID;for(let br=ce.openElements.stackTop;br>0;br--){const ti=ce.openElements.items[br],Li=ce.openElements.tagIDs[br];if(nn===Li&&(nn!==Ue.UNKNOWN||ce.treeAdapter.getTagName(ti)===et)){ce.openElements.generateImpliedEndTagsWithExclusion(nn),ce.openElements.stackTop>=br&&ce.openElements.shortenToLength(br);break}if(ce._isSpecialElement(ti,Li))break}}function La(ce,ge){switch(ge.tagID){case Ue.A:case Ue.B:case Ue.I:case Ue.S:case Ue.U:case Ue.EM:case Ue.TT:case Ue.BIG:case Ue.CODE:case Ue.FONT:case Ue.NOBR:case Ue.SMALL:case Ue.STRIKE:case Ue.STRONG:{Oa(ce,ge);break}case Ue.P:{Sl(ce);break}case Ue.DL:case Ue.UL:case Ue.OL:case Ue.DIR:case Ue.DIV:case Ue.NAV:case Ue.PRE:case Ue.MAIN:case Ue.MENU:case Ue.ASIDE:case Ue.BUTTON:case Ue.CENTER:case Ue.FIGURE:case Ue.FOOTER:case Ue.HEADER:case Ue.HGROUP:case Ue.DIALOG:case Ue.ADDRESS:case Ue.ARTICLE:case Ue.DETAILS:case Ue.SEARCH:case Ue.SECTION:case Ue.SUMMARY:case Ue.LISTING:case Ue.FIELDSET:case Ue.BLOCKQUOTE:case Ue.FIGCAPTION:{cl(ce,ge);break}case Ue.LI:{Es(ce);break}case Ue.DD:case Ue.DT:{Fu(ce,ge);break}case Ue.H1:case Ue.H2:case Ue.H3:case Ue.H4:case Ue.H5:case Ue.H6:{va(ce);break}case Ue.BR:{oa(ce);break}case Ue.BODY:{Zo(ce,ge);break}case Ue.HTML:{Ya(ce,ge);break}case Ue.FORM:{Ia(ce);break}case Ue.APPLET:case Ue.OBJECT:case Ue.MARQUEE:{Os(ce,ge);break}case Ue.TEMPLATE:{da(ce,ge);break}default:Ta(ce,ge)}}function Za(ce,ge){ce.tmplInsertionModeStack.length>0?js(ce,ge):ho(ce,ge)}function na(ce,ge){var et;ge.tagID===Ue.SCRIPT&&((et=ce.scriptHandler)===null||et===void 0||et.call(ce,ce.openElements.current)),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode}function sc(ce,ge){ce._err(ge,Mn.eofInElementThatCanContainOnlyText),ce.openElements.pop(),ce.insertionMode=ce.originalInsertionMode,ce.onEof(ge)}function bo(ce,ge){if(ce.openElements.currentTagId!==void 0&&ia.has(ce.openElements.currentTagId))switch(ce.pendingCharacterTokens.length=0,ce.hasNonWhitespacePendingCharacterToken=!1,ce.originalInsertionMode=ce.insertionMode,ce.insertionMode=jn.IN_TABLE_TEXT,ge.type){case lr.CHARACTER:{Nl(ce,ge);break}case lr.WHITESPACE_CHARACTER:{du(ce,ge);break}}else Gs(ce,ge)}function Dc(ce,ge){ce.openElements.clearBackToTableContext(),ce.activeFormattingElements.insertMarker(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_CAPTION}function aa(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_COLUMN_GROUP}function Sc(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(dn.COLGROUP,Ue.COLGROUP),ce.insertionMode=jn.IN_COLUMN_GROUP,Va(ce,ge)}function Bu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_TABLE_BODY}function bu(ce,ge){ce.openElements.clearBackToTableContext(),ce._insertFakeElement(dn.TBODY,Ue.TBODY),ce.insertionMode=jn.IN_TABLE_BODY,Ll(ce,ge)}function Rc(ce,ge){ce.openElements.hasInTableScope(Ue.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ue.TABLE),ce._resetInsertionMode(),ce._processStartTag(ge))}function Xc(ce,ge){cs(ge)?ce._appendElement(ge,Xt.HTML):Gs(ce,ge),ge.ackSelfClosing=!0}function Yl(ce,ge){!ce.formElement&&ce.openElements.tmplCount===0&&(ce._insertElement(ge,Xt.HTML),ce.formElement=ce.openElements.current,ce.openElements.pop())}function Xl(ce,ge){switch(ge.tagID){case Ue.TD:case Ue.TH:case Ue.TR:{bu(ce,ge);break}case Ue.STYLE:case Ue.SCRIPT:case Ue.TEMPLATE:{ga(ce,ge);break}case Ue.COL:{Sc(ce,ge);break}case Ue.FORM:{Yl(ce,ge);break}case Ue.TABLE:{Rc(ce,ge);break}case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{Bu(ce,ge);break}case Ue.INPUT:{Xc(ce,ge);break}case Ue.CAPTION:{Dc(ce,ge);break}case Ue.COLGROUP:{aa(ce,ge);break}default:Gs(ce,ge)}}function la(ce,ge){switch(ge.tagID){case Ue.TABLE:{ce.openElements.hasInTableScope(Ue.TABLE)&&(ce.openElements.popUntilTagNamePopped(Ue.TABLE),ce._resetInsertionMode());break}case Ue.TEMPLATE:{da(ce,ge);break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TBODY:case Ue.TD:case Ue.TFOOT:case Ue.TH:case Ue.THEAD:case Ue.TR:break;default:Gs(ce,ge)}}function Gs(ce,ge){const et=ce.fosterParentingEnabled;ce.fosterParentingEnabled=!0,Pl(ce,ge),ce.fosterParentingEnabled=et}function du(ce,ge){ce.pendingCharacterTokens.push(ge)}function Nl(ce,ge){ce.pendingCharacterTokens.push(ge),ce.hasNonWhitespacePendingCharacterToken=!0}function dl(ce,ge){let et=0;if(ce.hasNonWhitespacePendingCharacterToken)for(;et<ce.pendingCharacterTokens.length;et++)Gs(ce,ce.pendingCharacterTokens[et]);else for(;et<ce.pendingCharacterTokens.length;et++)ce._insertCharacters(ce.pendingCharacterTokens[et]);ce.insertionMode=ce.originalInsertionMode,ce._processToken(ge)}const bl=new Set([Ue.CAPTION,Ue.COL,Ue.COLGROUP,Ue.TBODY,Ue.TD,Ue.TFOOT,Ue.TH,Ue.THEAD,Ue.TR]);function $o(ce,ge){const et=ge.tagID;bl.has(et)?ce.openElements.hasInTableScope(Ue.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ue.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=jn.IN_TABLE,Xl(ce,ge)):ua(ce,ge)}function ca(ce,ge){const et=ge.tagID;switch(et){case Ue.CAPTION:case Ue.TABLE:{ce.openElements.hasInTableScope(Ue.CAPTION)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(Ue.CAPTION),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=jn.IN_TABLE,et===Ue.TABLE&&la(ce,ge));break}case Ue.BODY:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TBODY:case Ue.TD:case Ue.TFOOT:case Ue.TH:case Ue.THEAD:case Ue.TR:break;default:La(ce,ge)}}function Va(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.COL:{ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.TEMPLATE:{ga(ce,ge);break}default:xs(ce,ge)}}function Is(ce,ge){switch(ge.tagID){case Ue.COLGROUP:{ce.openElements.currentTagId===Ue.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE);break}case Ue.TEMPLATE:{da(ce,ge);break}case Ue.COL:break;default:xs(ce,ge)}}function xs(ce,ge){ce.openElements.currentTagId===Ue.COLGROUP&&(ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE,ce._processToken(ge))}function Ll(ce,ge){switch(ge.tagID){case Ue.TR:{ce.openElements.clearBackToTableBodyContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_ROW;break}case Ue.TH:case Ue.TD:{ce.openElements.clearBackToTableBodyContext(),ce._insertFakeElement(dn.TR,Ue.TR),ce.insertionMode=jn.IN_ROW,_l(ce,ge);break}case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE,Xl(ce,ge));break}default:Xl(ce,ge)}}function Bl(ce,ge){const et=ge.tagID;switch(ge.tagID){case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ce.openElements.hasInTableScope(et)&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE);break}case Ue.TABLE:{ce.openElements.hasTableBodyContextInTableScope()&&(ce.openElements.clearBackToTableBodyContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE,la(ce,ge));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TD:case Ue.TH:case Ue.TR:break;default:la(ce,ge)}}function _l(ce,ge){switch(ge.tagID){case Ue.TH:case Ue.TD:{ce.openElements.clearBackToTableRowContext(),ce._insertElement(ge,Xt.HTML),ce.insertionMode=jn.IN_CELL,ce.activeFormattingElements.insertMarker();break}case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.TR:{ce.openElements.hasInTableScope(Ue.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE_BODY,Ll(ce,ge));break}default:Xl(ce,ge)}}function kl(ce,ge){switch(ge.tagID){case Ue.TR:{ce.openElements.hasInTableScope(Ue.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE_BODY);break}case Ue.TABLE:{ce.openElements.hasInTableScope(Ue.TR)&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE_BODY,Bl(ce,ge));break}case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{(ce.openElements.hasInTableScope(ge.tagID)||ce.openElements.hasInTableScope(Ue.TR))&&(ce.openElements.clearBackToTableRowContext(),ce.openElements.pop(),ce.insertionMode=jn.IN_TABLE_BODY,Bl(ce,ge));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:case Ue.TD:case Ue.TH:break;default:la(ce,ge)}}function hu(ce,ge){const et=ge.tagID;bl.has(et)?(ce.openElements.hasInTableScope(Ue.TD)||ce.openElements.hasInTableScope(Ue.TH))&&(ce._closeTableCell(),_l(ce,ge)):ua(ce,ge)}function bd(ce,ge){const et=ge.tagID;switch(et){case Ue.TD:case Ue.TH:{ce.openElements.hasInTableScope(et)&&(ce.openElements.generateImpliedEndTags(),ce.openElements.popUntilTagNamePopped(et),ce.activeFormattingElements.clearToLastMarker(),ce.insertionMode=jn.IN_ROW);break}case Ue.TABLE:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:case Ue.TR:{ce.openElements.hasInTableScope(et)&&(ce._closeTableCell(),kl(ce,ge));break}case Ue.BODY:case Ue.CAPTION:case Ue.COL:case Ue.COLGROUP:case Ue.HTML:break;default:La(ce,ge)}}function Hd(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.OPTION:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce._insertElement(ge,Xt.HTML);break}case Ue.OPTGROUP:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ue.OPTGROUP&&ce.openElements.pop(),ce._insertElement(ge,Xt.HTML);break}case Ue.HR:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop(),ce.openElements.currentTagId===Ue.OPTGROUP&&ce.openElements.pop(),ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.INPUT:case Ue.KEYGEN:case Ue.TEXTAREA:case Ue.SELECT:{ce.openElements.hasInSelectScope(Ue.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode(),ge.tagID!==Ue.SELECT&&ce._processStartTag(ge));break}case Ue.SCRIPT:case Ue.TEMPLATE:{ga(ce,ge);break}default:}}function ch(ce,ge){switch(ge.tagID){case Ue.OPTGROUP:{ce.openElements.stackTop>0&&ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.tagIDs[ce.openElements.stackTop-1]===Ue.OPTGROUP&&ce.openElements.pop(),ce.openElements.currentTagId===Ue.OPTGROUP&&ce.openElements.pop();break}case Ue.OPTION:{ce.openElements.currentTagId===Ue.OPTION&&ce.openElements.pop();break}case Ue.SELECT:{ce.openElements.hasInSelectScope(Ue.SELECT)&&(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode());break}case Ue.TEMPLATE:{da(ce,ge);break}default:}}function dh(ce,ge){const et=ge.tagID;et===Ue.CAPTION||et===Ue.TABLE||et===Ue.TBODY||et===Ue.TFOOT||et===Ue.THEAD||et===Ue.TR||et===Ue.TD||et===Ue.TH?(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode(),ce._processStartTag(ge)):Hd(ce,ge)}function gs(ce,ge){const et=ge.tagID;et===Ue.CAPTION||et===Ue.TABLE||et===Ue.TBODY||et===Ue.TFOOT||et===Ue.THEAD||et===Ue.TR||et===Ue.TD||et===Ue.TH?ce.openElements.hasInTableScope(et)&&(ce.openElements.popUntilTagNamePopped(Ue.SELECT),ce._resetInsertionMode(),ce.onEndTag(ge)):ch(ce,ge)}function lc(ce,ge){switch(ge.tagID){case Ue.BASE:case Ue.BASEFONT:case Ue.BGSOUND:case Ue.LINK:case Ue.META:case Ue.NOFRAMES:case Ue.SCRIPT:case Ue.STYLE:case Ue.TEMPLATE:case Ue.TITLE:{ga(ce,ge);break}case Ue.CAPTION:case Ue.COLGROUP:case Ue.TBODY:case Ue.TFOOT:case Ue.THEAD:{ce.tmplInsertionModeStack[0]=jn.IN_TABLE,ce.insertionMode=jn.IN_TABLE,Xl(ce,ge);break}case Ue.COL:{ce.tmplInsertionModeStack[0]=jn.IN_COLUMN_GROUP,ce.insertionMode=jn.IN_COLUMN_GROUP,Va(ce,ge);break}case Ue.TR:{ce.tmplInsertionModeStack[0]=jn.IN_TABLE_BODY,ce.insertionMode=jn.IN_TABLE_BODY,Ll(ce,ge);break}case Ue.TD:case Ue.TH:{ce.tmplInsertionModeStack[0]=jn.IN_ROW,ce.insertionMode=jn.IN_ROW,_l(ce,ge);break}default:ce.tmplInsertionModeStack[0]=jn.IN_BODY,ce.insertionMode=jn.IN_BODY,ua(ce,ge)}}function Na(ce,ge){ge.tagID===Ue.TEMPLATE&&da(ce,ge)}function js(ce,ge){ce.openElements.tmplCount>0?(ce.openElements.popUntilTagNamePopped(Ue.TEMPLATE),ce.activeFormattingElements.clearToLastMarker(),ce.tmplInsertionModeStack.shift(),ce._resetInsertionMode(),ce.onEof(ge)):ho(ce,ge)}function $s(ce,ge){ge.tagID===Ue.HTML?ua(ce,ge):bc(ce,ge)}function qs(ce,ge){var et;if(ge.tagID===Ue.HTML){if(ce.fragmentContext||(ce.insertionMode=jn.AFTER_AFTER_BODY),ce.options.sourceCodeLocationInfo&&ce.openElements.tagIDs[0]===Ue.HTML){ce._setEndLocation(ce.openElements.items[0],ge);const nn=ce.openElements.items[1];nn&&!(!((et=ce.treeAdapter.getNodeSourceCodeLocation(nn))===null||et===void 0)&&et.endTag)&&ce._setEndLocation(nn,ge)}}else bc(ce,ge)}function bc(ce,ge){ce.insertionMode=jn.IN_BODY,Pl(ce,ge)}function Fs(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.FRAMESET:{ce._insertElement(ge,Xt.HTML);break}case Ue.FRAME:{ce._appendElement(ge,Xt.HTML),ge.ackSelfClosing=!0;break}case Ue.NOFRAMES:{ga(ce,ge);break}default:}}function Eu(ce,ge){ge.tagID===Ue.FRAMESET&&!ce.openElements.isRootHtmlElementCurrent()&&(ce.openElements.pop(),!ce.fragmentContext&&ce.openElements.currentTagId!==Ue.FRAMESET&&(ce.insertionMode=jn.AFTER_FRAMESET))}function Qc(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.NOFRAMES:{ga(ce,ge);break}default:}}function Ed(ce,ge){ge.tagID===Ue.HTML&&(ce.insertionMode=jn.AFTER_AFTER_FRAMESET)}function Il(ce,ge){ge.tagID===Ue.HTML?ua(ce,ge):Ce(ce,ge)}function Ce(ce,ge){ce.insertionMode=jn.IN_BODY,Pl(ce,ge)}function Qe(ce,ge){switch(ge.tagID){case Ue.HTML:{ua(ce,ge);break}case Ue.NOFRAMES:{ga(ce,ge);break}default:}}function tt(ce,ge){ge.chars=un,ce._insertCharacters(ge)}function ft(ce,ge){ce._insertCharacters(ge),ce.framesetOk=!1}function Ft(ce){for(;ce.treeAdapter.getNamespaceURI(ce.openElements.current)!==Xt.HTML&&ce.openElements.currentTagId!==void 0&&!ce._isIntegrationPoint(ce.openElements.currentTagId,ce.openElements.current);)ce.openElements.pop()}function Ht(ce,ge){if(_i(ge))Ft(ce),ce._startTagOutsideForeignContent(ge);else{const et=ce._getAdjustedCurrentElement(),nn=ce.treeAdapter.getNamespaceURI(et);nn===Xt.MATHML?ao(ge):nn===Xt.SVG&&(In(ge),wo(ge)),Ho(ge),ge.selfClosing?ce._appendElement(ge,nn):ce._insertElement(ge,nn),ge.ackSelfClosing=!0}}function ln(ce,ge){if(ge.tagID===Ue.P||ge.tagID===Ue.BR){Ft(ce),ce._endTagOutsideForeignContent(ge);return}for(let et=ce.openElements.stackTop;et>0;et--){const nn=ce.openElements.items[et];if(ce.treeAdapter.getNamespaceURI(nn)===Xt.HTML){ce._endTagOutsideForeignContent(ge);break}const br=ce.treeAdapter.getTagName(nn);if(br.toLowerCase()===ge.tagName){ge.tagName=br,ce.openElements.shortenToLength(et);break}}}const Ln=/["$&'<>\u0080-\uFFFF]/g,Sr=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),xr=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 er(ce){let ge="",et=0,nn;for(;(nn=Ln.exec(ce))!==null;){const{index:br}=nn,ti=ce.charCodeAt(br),Li=Sr.get(ti);Li===void 0?(ge+=`${ce.substring(et,br)}&#x${xr(ce,br).toString(16)};`,et=Ln.lastIndex+=+((ti&64512)===55296)):(ge+=ce.substring(et,br)+Li,et=br+1)}return ge+ce.substr(et)}const Zr=null;function Hr(ce,ge){return function(nn){let br,ti=0,Li="";for(;br=ce.exec(nn);)ti!==br.index&&(Li+=nn.substring(ti,br.index)),Li+=ge.get(br[0].charCodeAt(0)),ti=br.index+1;return Li+nn.substring(ti)}}const sr=null,Po=Hr(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),jo=Hr(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),ea=new Set([dn.AREA,dn.BASE,dn.BASEFONT,dn.BGSOUND,dn.BR,dn.COL,dn.EMBED,dn.FRAME,dn.HR,dn.IMG,dn.INPUT,dn.KEYGEN,dn.LINK,dn.META,dn.PARAM,dn.SOURCE,dn.TRACK,dn.WBR]);function so(ce,ge){return ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML&&ea.has(ge.treeAdapter.getTagName(ce))}const To={treeAdapter:Wr,scriptingEnabled:!0};function Bo(ce,ge){const et=xa(xa({},To),ge);return so(ce,et)?"":Qa(ce,et)}function Xa(ce,ge){const et=xa(xa({},To),ge);return Ki(ce,et)}function Qa(ce,ge){let et="";const nn=ge.treeAdapter.isElementNode(ce)&&ge.treeAdapter.getTagName(ce)===$.TEMPLATE&&ge.treeAdapter.getNamespaceURI(ce)===NS.HTML?ge.treeAdapter.getTemplateContent(ce):ce,br=ge.treeAdapter.getChildNodes(nn);if(br)for(const ti of br)et+=Ki(ti,ge);return et}function Ki(ce,ge){return ge.treeAdapter.isElementNode(ce)?ka(ce,ge):ge.treeAdapter.isTextNode(ce)?Ua(ce,ge):ge.treeAdapter.isCommentNode(ce)?xo(ce,ge):ge.treeAdapter.isDocumentTypeNode(ce)?Dl(ce,ge):""}function ka(ce,ge){const et=ge.treeAdapter.getTagName(ce);return`<${et}${ws(ce,ge)}>${so(ce,ge)?"":`${Qa(ce,ge)}</${et}>`}`}function ws(ce,{treeAdapter:ge}){let et="";for(const nn of ge.getAttrList(ce)){if(et+=" ",nn.namespace)switch(nn.namespace){case NS.XML:{et+=`xml:${nn.name}`;break}case NS.XMLNS:{nn.name!=="xmlns"&&(et+="xmlns:"),et+=nn.name;break}case NS.XLINK:{et+=`xlink:${nn.name}`;break}default:et+=`${nn.prefix}:${nn.name}`}else et+=nn.name;et+=`="${escapeAttribute(nn.value)}"`}return et}function Ua(ce,ge){const{treeAdapter:et}=ge,nn=et.getTextNodeContent(ce),br=et.getParentNode(ce),ti=br&&et.isElementNode(br)&&et.getTagName(br);return ti&&et.getNamespaceURI(br)===NS.HTML&&hasUnescapedText(ti,ge.scriptingEnabled)?nn:escapeText(nn)}function xo(ce,{treeAdapter:ge}){return`<!--${ge.getCommentNodeContent(ce)}-->`}function Dl(ce,{treeAdapter:ge}){return`<!DOCTYPE ${ge.getDocumentTypeNodeName(ce)}>`}function is(ce,ge){return Parser.parse(ce,ge)}function Ko(ce,ge,et){typeof ce=="string"&&(et=ge,ge=ce,ce=null);const nn=Parser.getFragmentParser(ce,et);return nn.tokenizer.write(ge,!0),nn.getFragment()}var Yo=ae(17970),Ea=ae(10528);const ds=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,al=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),El={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ul(ce,ge){const et=cc(ce),nn=bt("type",{handlers:{root:hl,element:Ql,text:Or,comment:_u,doctype:xl,raw:el},unknown:ms}),br={parser:et?new hs(El):hs.getFragmentParser(void 0,El),handle(Lo){nn(Lo,br)},stitches:!1,options:ge||{}};nn(ce,br),ql(br,(0,Yo.Pk)());const ti=et?br.parser.document:br.parser.getFragment(),Li=$e(ti,{file:br.options.file});return br.stitches&&(0,Ea.Vn)(Li,"comment",function(Lo,Xo,ii){const qi=Lo;if(qi.value.stitch&&ii&&Xo!==void 0){const ta=ii.children;return ta[Xo]=qi.value.stitch,Xo}}),Li.type==="root"&&Li.children.length===1&&Li.children[0].type===ce.type?Li.children[0]:Li}function Ar(ce,ge){let et=-1;if(ce)for(;++et<ce.length;)ge.handle(ce[et])}function hl(ce,ge){Ar(ce.children,ge)}function Ql(ce,ge){Qu(ce,ge),Ar(ce.children,ge),uc(ce,ge)}function Or(ce,ge){ge.parser.tokenizer.state>4&&(ge.parser.tokenizer.state=0);const et={type:lr.CHARACTER,chars:ce.value,location:wl(ce)};ql(ge,(0,Yo.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function xl(ce,ge){const et={type:lr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:wl(ce)};ql(ge,(0,Yo.Pk)(ce)),ge.parser.currentToken=et,ge.parser._processToken(ge.parser.currentToken)}function Jl(ce,ge){ge.stitches=!0;const et=Ju(ce);if("children"in ce&&"children"in et){const nn=Ul({type:"root",children:ce.children},ge.options);et.children=nn.children}_u({type:"comment",value:{stitch:et}},ge)}function _u(ce,ge){const et=ce.value,nn={type:lr.COMMENT,data:et,location:wl(ce)};ql(ge,(0,Yo.Pk)(ce)),ge.parser.currentToken=nn,ge.parser._processToken(ge.parser.currentToken)}function el(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,fl(ge,(0,Yo.Pk)(ce)),ge.parser.tokenizer.write(ge.options.tagfilter?ce.value.replace(ds,"<$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 et=ge.parser.tokenizer._consume();ge.parser.tokenizer._callState(et)}}function ms(ce,ge){const et=ce;if(ge.options.passThrough&&ge.options.passThrough.includes(et.type))Jl(et,ge);else{let nn="";throw al.has(et.type)&&(nn=". 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 `"+et.type+"` node"+nn)}}function ql(ce,ge){fl(ce,ge);const et=ce.parser.tokenizer.currentCharacterToken;et&&et.location&&(et.location.endLine=ce.parser.tokenizer.preprocessor.line,et.location.endCol=ce.parser.tokenizer.preprocessor.col+1,et.location.endOffset=ce.parser.tokenizer.preprocessor.offset+1,ce.parser.currentToken=et,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=Ci.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 fl(ce,ge){if(ge&&ge.offset!==void 0){const et={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=et}}function Qu(ce,ge){const et=ce.tagName.toLowerCase();if(ge.parser.tokenizer.state===Ci.PLAINTEXT)return;ql(ge,(0,Yo.Pk)(ce));const nn=ge.parser.openElements.current;let br="namespaceURI"in nn?nn.namespaceURI:Ke.t.html;br===Ke.t.html&&et==="svg"&&(br=Ke.t.svg);const ti=It(Zp(xa({},ce),{children:[]}),{space:br===Ke.t.svg?"svg":"html"}),Li={type:lr.START_TAG,tagName:et,tagID:Ur(et),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in ti?ti.attrs:[],location:wl(ce)};ge.parser.currentToken=Li,ge.parser._processToken(ge.parser.currentToken),ge.parser.tokenizer.lastStartTagName=et}function uc(ce,ge){const et=ce.tagName.toLowerCase();if(!ge.parser.tokenizer.inForeignNode&&vn.includes(et)||ge.parser.tokenizer.state===Ci.PLAINTEXT)return;ql(ge,(0,Yo.rb)(ce));const nn={type:lr.END_TAG,tagName:et,tagID:Ur(et),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:wl(ce)};ge.parser.currentToken=nn,ge.parser._processToken(ge.parser.currentToken),et===ge.parser.tokenizer.lastStartTagName&&(ge.parser.tokenizer.state===Ci.RCDATA||ge.parser.tokenizer.state===Ci.RAWTEXT||ge.parser.tokenizer.state===Ci.SCRIPT_DATA)&&(ge.parser.tokenizer.state=Ci.DATA)}function cc(ce){const ge=ce.type==="root"?ce.children[0]:ce;return!!(ge&&(ge.type==="doctype"||ge.type==="element"&&ge.tagName.toLowerCase()==="html"))}function wl(ce){const ge=(0,Yo.Pk)(ce)||{line:void 0,column:void 0,offset:void 0},et=(0,Yo.rb)(ce)||{line:void 0,column:void 0,offset:void 0};return{startLine:ge.line,startCol:ge.column,startOffset:ge.offset,endLine:et.line,endCol:et.column,endOffset:et.offset}}function Ju(ce){return"children"in ce?(0,Pe.ZP)(Zp(xa({},ce),{children:[]})):(0,Pe.ZP)(ce)}function zd(ce){return function(ge,et){return Ul(ge,Zp(xa({},ce),{file:et}))}}},10787:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return He}});function oe(yt){if(typeof yt!="string")throw new TypeError("Expected a string");return yt.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Pe=ae(2348),ke=ae(10502);function De(yt,$e,Mt){const Fe=Mt||{},te=(0,ke.O)(Fe.ignore||[]),ee=je($e);let he=-1;for(;++he<ee.length;)(0,Pe.S4)(yt,"text",ue);function ue(me,be){let Ae=-1,Ie;for(;++Ae<be.length;){const Xe=be[Ae],nt=Ie?Ie.children:void 0;if(te(Xe,nt?nt.indexOf(Xe):void 0,Ie))return;Ie=Xe}if(Ie)return fe(me,be)}function fe(me,be){const Ae=be[be.length-1],Ie=ee[he][0],Xe=ee[he][1];let nt=0;const st=Ae.children.indexOf(me);let gt=!1,rt=[];Ie.lastIndex=0;let mt=Ie.exec(me.value);for(;mt;){const xt=mt.index,Tt={index:mt.index,input:mt.input,stack:[...be,me]};let zt=Xe(...mt,Tt);if(typeof zt=="string"&&(zt=zt.length>0?{type:"text",value:zt}:void 0),zt===!1?Ie.lastIndex=xt+1:(nt!==xt&&rt.push({type:"text",value:me.value.slice(nt,xt)}),Array.isArray(zt)?rt.push(...zt):zt&&rt.push(zt),nt=xt+mt[0].length,gt=!0),!Ie.global)break;mt=Ie.exec(me.value)}return gt?(nt<me.value.length&&rt.push({type:"text",value:me.value.slice(nt)}),Ae.children.splice(st,1,...rt)):rt=[me],st+rt.length}}function je(yt){const $e=[];if(!Array.isArray(yt))throw new TypeError("Expected find and replace tuple or list of tuples");const Mt=!yt[0]||Array.isArray(yt[0])?yt:[yt];let Fe=-1;for(;++Fe<Mt.length;){const te=Mt[Fe];$e.push([Te(te[0]),Ge(te[1])])}return $e}function Te(yt){return typeof yt=="string"?new RegExp(oe(yt),"g"):yt}function Ge(yt){return typeof yt=="function"?yt:function(){return yt}}function lt(yt){De(yt,[/\r?\n|\r/g,Ke])}function Ke(){return{type:"break"}}function He(){return function(yt){lt(yt)}}},30084:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return ee}});var oe=ae(87342);function Pe(he,ue){const fe=String(he);let me=fe.indexOf(ue),be=me,Ae=0,Ie=0;if(typeof ue!="string")throw new TypeError("Expected substring");for(;me!==-1;)me===be?++Ae>Ie&&(Ie=Ae):Ae=1,be=me+ue.length,me=fe.indexOf(ue,be);return Ie}function ke(){return{enter:{mathFlow:he,mathFlowFenceMeta:ue,mathText:Ae},exit:{mathFlow:be,mathFlowFence:me,mathFlowFenceMeta:fe,mathFlowValue:Xe,mathText:Ie,mathTextData:Xe}};function he(nt){const Je={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Je]}},nt)}function ue(){this.buffer()}function fe(){const nt=this.resume(),Je=this.stack[this.stack.length-1];(0,oe.ok)(Je.type==="math"),Je.meta=nt}function me(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function be(nt){const Je=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),st=this.stack[this.stack.length-1];(0,oe.ok)(st.type==="math"),this.exit(nt),st.value=Je;const gt=st.data.hChildren[0];(0,oe.ok)(gt.type==="element"),(0,oe.ok)(gt.tagName==="code"),gt.children.push({type:"text",value:Je}),this.data.mathFlowInside=void 0}function Ae(nt){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},nt),this.buffer()}function Ie(nt){const Je=this.resume(),st=this.stack[this.stack.length-1];(0,oe.ok)(st.type==="inlineMath"),this.exit(nt),st.value=Je,st.data.hChildren.push({type:"text",value:Je})}function Xe(nt){this.config.enter.data.call(this,nt),this.config.exit.data.call(this,nt)}}function De(he){let ue=(he||{}).singleDollarTextMath;return ue==null&&(ue=!0),me.peek=be,{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(Ae,Ie,Xe,nt){const Je=Ae.value||"",st=Xe.createTracker(nt),gt="$".repeat(Math.max(Pe(Je,"$")+1,2)),rt=Xe.enter("mathFlow");let mt=st.move(gt);if(Ae.meta){const xt=Xe.enter("mathFlowMeta");mt+=st.move(Xe.safe(Ae.meta,xa({after:`
|
|
|
`,before:mt,encode:["$"]},st.current()))),xt()}return mt+=st.move(`
|
|
|
`),Je&&(mt+=st.move(Je+`
|
|
|
`)),mt+=st.move(gt),rt(),mt}function me(Ae,Ie,Xe){let nt=Ae.value||"",Je=1;for(ue||Je++;new RegExp("(^|[^$])"+"\\$".repeat(Je)+"([^$]|$)").test(nt);)Je++;const st="$".repeat(Je);/[^ \r\n]/.test(nt)&&(/^[ \r\n]/.test(nt)&&/[ \r\n]$/.test(nt)||/^\$|\$$/.test(nt))&&(nt=" "+nt+" ");let gt=-1;for(;++gt<Xe.unsafe.length;){const rt=Xe.unsafe[gt];if(!rt.atBreak)continue;const mt=Xe.compilePattern(rt);let xt;for(;xt=mt.exec(nt);){let Tt=xt.index;nt.codePointAt(Tt)===10&&nt.codePointAt(Tt-1)===13&&Tt--,nt=nt.slice(0,Tt)+" "+nt.slice(xt.index+1)}}return st+nt+st}function be(){return"$"}}var je=ae(26735),Te=ae(80722);const Ge={tokenize:Ke,concrete:!0,name:"mathFlow"},lt={tokenize:He,partial:!0};function Ke(he,ue,fe){const me=this,be=me.events[me.events.length-1],Ae=be&&be[1].type==="linePrefix"?be[2].sliceSerialize(be[1],!0).length:0;let Ie=0;return Xe;function Xe(Kt){return he.enter("mathFlow"),he.enter("mathFlowFence"),he.enter("mathFlowFenceSequence"),nt(Kt)}function nt(Kt){return Kt===36?(he.consume(Kt),Ie++,nt):Ie<2?fe(Kt):(he.exit("mathFlowFenceSequence"),(0,je.f)(he,Je,"whitespace")(Kt))}function Je(Kt){return Kt===null||(0,Te.Ch)(Kt)?gt(Kt):(he.enter("mathFlowFenceMeta"),he.enter("chunkString",{contentType:"string"}),st(Kt))}function st(Kt){return Kt===null||(0,Te.Ch)(Kt)?(he.exit("chunkString"),he.exit("mathFlowFenceMeta"),gt(Kt)):Kt===36?fe(Kt):(he.consume(Kt),st)}function gt(Kt){return he.exit("mathFlowFence"),me.interrupt?ue(Kt):he.attempt(lt,rt,zt)(Kt)}function rt(Kt){return he.attempt({tokenize:Qt,partial:!0},zt,mt)(Kt)}function mt(Kt){return(Ae?(0,je.f)(he,xt,"linePrefix",Ae+1):xt)(Kt)}function xt(Kt){return Kt===null?zt(Kt):(0,Te.Ch)(Kt)?he.attempt(lt,rt,zt)(Kt):(he.enter("mathFlowValue"),Tt(Kt))}function Tt(Kt){return Kt===null||(0,Te.Ch)(Kt)?(he.exit("mathFlowValue"),xt(Kt)):(he.consume(Kt),Tt)}function zt(Kt){return he.exit("mathFlow"),ue(Kt)}function Qt(Kt,Cn,St){let pt=0;return(0,je.f)(Kt,ct,"linePrefix",me.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ct(kt){return Kt.enter("mathFlowFence"),Kt.enter("mathFlowFenceSequence"),qt(kt)}function qt(kt){return kt===36?(pt++,Kt.consume(kt),qt):pt<Ie?St(kt):(Kt.exit("mathFlowFenceSequence"),(0,je.f)(Kt,fn,"whitespace")(kt))}function fn(kt){return kt===null||(0,Te.Ch)(kt)?(Kt.exit("mathFlowFence"),Cn(kt)):St(kt)}}}function He(he,ue,fe){const me=this;return be;function be(Ie){return Ie===null?ue(Ie):(he.enter("lineEnding"),he.consume(Ie),he.exit("lineEnding"),Ae)}function Ae(Ie){return me.parser.lazy[me.now().line]?fe(Ie):ue(Ie)}}function yt(he){let fe=(he||{}).singleDollarTextMath;return fe==null&&(fe=!0),{tokenize:me,resolve:$e,previous:Mt,name:"mathText"};function me(be,Ae,Ie){const Xe=this;let nt=0,Je,st;return gt;function gt(zt){return be.enter("mathText"),be.enter("mathTextSequence"),rt(zt)}function rt(zt){return zt===36?(be.consume(zt),nt++,rt):nt<2&&!fe?Ie(zt):(be.exit("mathTextSequence"),mt(zt))}function mt(zt){return zt===null?Ie(zt):zt===36?(st=be.enter("mathTextSequence"),Je=0,Tt(zt)):zt===32?(be.enter("space"),be.consume(zt),be.exit("space"),mt):(0,Te.Ch)(zt)?(be.enter("lineEnding"),be.consume(zt),be.exit("lineEnding"),mt):(be.enter("mathTextData"),xt(zt))}function xt(zt){return zt===null||zt===32||zt===36||(0,Te.Ch)(zt)?(be.exit("mathTextData"),mt(zt)):(be.consume(zt),xt)}function Tt(zt){return zt===36?(be.consume(zt),Je++,Tt):Je===nt?(be.exit("mathTextSequence"),be.exit("mathText"),Ae(zt)):(st.type="mathTextData",xt(zt))}}}function $e(he){let ue=he.length-4,fe=3,me,be;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;)be===void 0?me!==ue&&he[me][1].type!=="lineEnding"&&(be=me):(me===ue||he[me][1].type==="lineEnding")&&(he[be][1].type="mathTextData",me!==be+2&&(he[be][1].end=he[me-1][1].end,he.splice(be+2,me-be-2),ue-=me-be-2,me=be+2),be=void 0);return he}function Mt(he){return he!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Fe(he){return{flow:{36:Ge},text:{36:yt(he)}}}const te={};function ee(he){const ue=this,fe=he||te,me=ue.data(),be=me.micromarkExtensions||(me.micromarkExtensions=[]),Ae=me.fromMarkdownExtensions||(me.fromMarkdownExtensions=[]),Ie=me.toMarkdownExtensions||(me.toMarkdownExtensions=[]);be.push(Fe(fe)),Ae.push(ke()),Ie.push(De(fe))}},16722:function(We,Ee,ae){"use strict";ae.d(Ee,{Z:function(){return lt}});const oe=Ke=>typeof Ke=="object"&&Ke!=null&&Ke.nodeType===1,Pe=(Ke,He)=>(!He||Ke!=="hidden")&&Ke!=="visible"&&Ke!=="clip",ke=(Ke,He)=>{if(Ke.clientHeight<Ke.scrollHeight||Ke.clientWidth<Ke.scrollWidth){const yt=getComputedStyle(Ke,null);return Pe(yt.overflowY,He)||Pe(yt.overflowX,He)||($e=>{const Mt=(Fe=>{if(!Fe.ownerDocument||!Fe.ownerDocument.defaultView)return null;try{return Fe.ownerDocument.defaultView.frameElement}catch(te){return null}})($e);return!!Mt&&(Mt.clientHeight<$e.scrollHeight||Mt.clientWidth<$e.scrollWidth)})(Ke)}return!1},De=(Ke,He,yt,$e,Mt,Fe,te,ee)=>Fe<Ke&&te>He||Fe>Ke&&te<He?0:Fe<=Ke&&ee<=yt||te>=He&&ee>=yt?Fe-Ke-$e:te>He&&ee<yt||Fe<Ke&&ee>yt?te-He+Mt:0,je=Ke=>{const He=Ke.parentElement;return He==null?Ke.getRootNode().host||null:He},Te=(Ke,He)=>{var yt,$e,Mt,Fe;if(typeof document=="undefined")return[];const{scrollMode:te,block:ee,inline:he,boundary:ue,skipOverflowHiddenElements:fe}=He,me=typeof ue=="function"?ue:fn=>fn!==ue;if(!oe(Ke))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Ae=[];let Ie=Ke;for(;oe(Ie)&&me(Ie);){if(Ie=je(Ie),Ie===be){Ae.push(Ie);break}Ie!=null&&Ie===document.body&&ke(Ie)&&!ke(document.documentElement)||Ie!=null&&ke(Ie,fe)&&Ae.push(Ie)}const Xe=($e=(yt=window.visualViewport)==null?void 0:yt.width)!=null?$e:innerWidth,nt=(Fe=(Mt=window.visualViewport)==null?void 0:Mt.height)!=null?Fe:innerHeight,{scrollX:Je,scrollY:st}=window,{height:gt,width:rt,top:mt,right:xt,bottom:Tt,left:zt}=Ke.getBoundingClientRect(),{top:Qt,right:Kt,bottom:Cn,left:St}=(fn=>{const kt=window.getComputedStyle(fn);return{top:parseFloat(kt.scrollMarginTop)||0,right:parseFloat(kt.scrollMarginRight)||0,bottom:parseFloat(kt.scrollMarginBottom)||0,left:parseFloat(kt.scrollMarginLeft)||0}})(Ke);let pt=ee==="start"||ee==="nearest"?mt-Qt:ee==="end"?Tt+Cn:mt+gt/2-Qt+Cn,ct=he==="center"?zt+rt/2-St+Kt:he==="end"?xt+Kt:zt-St;const qt=[];for(let fn=0;fn<Ae.length;fn++){const kt=Ae[fn],{height:xn,width:kn,top:Vn,right:Vt,bottom:Ot,left:Nn}=kt.getBoundingClientRect();if(te==="if-needed"&&mt>=0&&zt>=0&&Tt<=nt&&xt<=Xe&&(kt===be&&!ke(kt)||mt>=Vn&&Tt<=Ot&&zt>=Nn&&xt<=Vt))return qt;const tr=getComputedStyle(kt),hr=parseInt(tr.borderLeftWidth,10),ot=parseInt(tr.borderTopWidth,10),_e=parseInt(tr.borderRightWidth,10),Re=parseInt(tr.borderBottomWidth,10);let Ye=0,at=0;const Be="offsetWidth"in kt?kt.offsetWidth-kt.clientWidth-hr-_e:0,bt="offsetHeight"in kt?kt.offsetHeight-kt.clientHeight-ot-Re:0,bn="offsetWidth"in kt?kt.offsetWidth===0?0:kn/kt.offsetWidth:0,sn="offsetHeight"in kt?kt.offsetHeight===0?0:xn/kt.offsetHeight:0;if(be===kt)Ye=ee==="start"?pt:ee==="end"?pt-nt:ee==="nearest"?De(st,st+nt,nt,ot,Re,st+pt,st+pt+gt,gt):pt-nt/2,at=he==="start"?ct:he==="center"?ct-Xe/2:he==="end"?ct-Xe:De(Je,Je+Xe,Xe,hr,_e,Je+ct,Je+ct+rt,rt),Ye=Math.max(0,Ye+st),at=Math.max(0,at+Je);else{Ye=ee==="start"?pt-Vn-ot:ee==="end"?pt-Ot+Re+bt:ee==="nearest"?De(Vn,Ot,xn,ot,Re+bt,pt,pt+gt,gt):pt-(Vn+xn/2)+bt/2,at=he==="start"?ct-Nn-hr:he==="center"?ct-(Nn+kn/2)+Be/2:he==="end"?ct-Vt+_e+Be:De(Nn,Vt,kn,hr,_e+Be,ct,ct+rt,rt);const{scrollLeft:Bn,scrollTop:It}=kt;Ye=sn===0?0:Math.max(0,Math.min(It+Ye/sn,kt.scrollHeight-xn/sn+bt)),at=bn===0?0:Math.max(0,Math.min(Bn+at/bn,kt.scrollWidth-kn/bn+Be)),pt+=It-Ye,ct+=Bn-at}qt.push({el:kt,top:Ye,left:at})}return qt},Ge=Ke=>Ke===!1?{block:"end",inline:"nearest"}:(He=>He===Object(He)&&Object.keys(He).length!==0)(Ke)?Ke:{block:"start",inline:"nearest"};function lt(Ke,He){if(!Ke.isConnected||!(Mt=>{let Fe=Mt;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 yt=(Mt=>{const Fe=window.getComputedStyle(Mt);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(Ke);if((Mt=>typeof Mt=="object"&&typeof Mt.behavior=="function")(He))return He.behavior(Te(Ke,He));const $e=typeof He=="boolean"||He==null?void 0:He.behavior;for(const{el:Mt,top:Fe,left:te}of Te(Ke,Ge(He))){const ee=Fe-yt.top+yt.bottom,he=te-yt.left+yt.right;Mt.scroll({top:ee,left:he,behavior:$e})}}},71523:function(We,Ee,ae){"use strict";ae.d(Ee,{P:function(){return Pe},Q:function(){return oe}});function oe(ke){const De=String(ke||"").trim();return De?De.split(/[ \t\n\r\f]+/g):[]}function Pe(ke){return ke.join(" ").trim()}},10502:function(We,Ee,ae){"use strict";ae.d(Ee,{O:function(){return Pe}});const oe=function(Ke,He,yt,$e,Mt){const Fe=Pe(He);if(yt!=null&&(typeof yt!="number"||yt<0||yt===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if($e!=null&&(!oe($e)||!$e.children))throw new Error("Expected parent node");if($e==null!=(yt==null))throw new Error("Expected both parent and index");return lt(Ke)?Fe.call(Mt,Ke,yt,$e):!1},Pe=function(Ke){if(Ke==null)return Ge;if(typeof Ke=="function")return Te(Ke);if(typeof Ke=="object")return Array.isArray(Ke)?ke(Ke):De(Ke);if(typeof Ke=="string")return je(Ke);throw new Error("Expected function, string, or object as test")};function ke(Ke){const He=[];let yt=-1;for(;++yt<Ke.length;)He[yt]=Pe(Ke[yt]);return Te($e);function $e(...Mt){let Fe=-1;for(;++Fe<He.length;)if(He[Fe].apply(this,Mt))return!0;return!1}}function De(Ke){const He=Ke;return Te(yt);function yt($e){const Mt=$e;let Fe;for(Fe in Ke)if(Mt[Fe]!==He[Fe])return!1;return!0}}function je(Ke){return Te(He);function He(yt){return yt&&yt.type===Ke}}function Te(Ke){return He;function He(yt,$e,Mt){return!!(lt(yt)&&Ke.call(this,yt,typeof $e=="number"?$e:void 0,Mt||void 0))}}function Ge(){return!0}function lt(Ke){return Ke!==null&&typeof Ke=="object"&&"type"in Ke}},17970:function(We,Ee,ae){"use strict";ae.d(Ee,{FK:function(){return De},Pk:function(){return Pe},rb:function(){return oe}});const oe=ke("end"),Pe=ke("start");function ke(je){return Te;function Te(Ge){const lt=Ge&&Ge.position&&Ge.position[je]||{};if(typeof lt.line=="number"&<.line>0&&typeof lt.column=="number"&<.column>0)return{line:lt.line,column:lt.column,offset:typeof lt.offset=="number"&<.offset>-1?lt.offset:void 0}}}function De(je){const Te=Pe(je),Ge=oe(je);if(Te&&Ge)return{start:Te,end:Ge}}},2348:function(We,Ee,ae){"use strict";ae.d(Ee,{AM:function(){return Te},S4:function(){return Ge}});var oe=ae(10502);function Pe(Ke){return Ke}const ke=[],De=!0,je=!1,Te="skip";function Ge(Ke,He,yt,$e){let Mt;typeof He=="function"&&typeof yt!="function"?($e=yt,yt=He):Mt=He;const Fe=(0,oe.O)(Mt),te=$e?-1:1;ee(Ke,void 0,[])();function ee(he,ue,fe){const me=he&&typeof he=="object"?he:{};if(typeof me.type=="string"){const Ae=typeof me.tagName=="string"?me.tagName:typeof me.name=="string"?me.name:void 0;Object.defineProperty(be,"name",{value:"node ("+(he.type+(Ae?"<"+Ae+">":""))+")"})}return be;function be(){let Ae=ke,Ie,Xe,nt;if((!He||Fe(he,ue,fe[fe.length-1]||void 0))&&(Ae=lt(yt(he,fe)),Ae[0]===je))return Ae;if("children"in he&&he.children){const Je=he;if(Je.children&&Ae[0]!==Te)for(Xe=($e?Je.children.length:-1)+te,nt=fe.concat(Je);Xe>-1&&Xe<Je.children.length;){const st=Je.children[Xe];if(Ie=ee(st,Xe,nt)(),Ie[0]===je)return Ie;Xe=typeof Ie[1]=="number"?Ie[1]:Xe+te}}return Ae}}}function lt(Ke){return Array.isArray(Ke)?Ke:typeof Ke=="number"?[De,Ke]:Ke==null?ke:[Ke]}},10528:function(We,Ee,ae){"use strict";ae.d(Ee,{Vn:function(){return Pe}});var oe=ae(2348);function Pe(ke,De,je,Te){let Ge,lt,Ke;typeof De=="function"&&typeof je!="function"?(lt=void 0,Ke=De,Ge=je):(lt=De,Ke=je,Ge=Te),(0,oe.S4)(ke,lt,He,Ge);function He(yt,$e){const Mt=$e[$e.length-1],Fe=Mt?Mt.children.indexOf(yt):void 0;return Ke(yt,Fe,Mt)}}},43309:function(We,Ee,ae){"use strict";ae.d(Ee,{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(We){"use strict";We.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(We){"use strict";We.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"}')}}]);
|
|
|
}()); |