/* @license Copyright (C) Exontrol. All rights reserved. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,e(t.exontrol||{}))}(this,function(t){"use strict";function e(t){return Math.round(t)}function n(){return Math.max.apply(0,arguments)}function o(){return Math.min.apply(null,arguments)}function i(t,e,n){return null==t?~~n:s.s2F(t,e)}var s=s||window.exontrol,r=s.G;s.Def.OrgChart={},s.Shapes.OrgChart={dfnode:{normal:{frameColor:"black"},disabled:{opacity:.5},hover:{},click:{}}},s.Mrg(s,function(){function t(t,e){this.init(t,e)}return t.version="3.0",t.type="OrgChart",t.SingleSelEnum={exDisableSel:0,exEnableSel:1,exSingleSel:2,exToggleSel:4,exDisableCtrlSel:8,exDisableShiftSel:16,exDisableDrag:32},t.Options={scrollBars:null,scrollBarsRoot:void 0,tfi:null,locked:null,readOnly:null,wheelChange:null,expandGlyphSize:null,flow:null,align:null,margins:null,showExpandGlyphs:null,singleExpandGlyphs:null,show:null,filter:null,smooth:null,singleSel:null,ensureOnExpand:null,expandOnDblClick:null,pad:null,formatText:null,imageAlign:null,size:null,imageSize:null,shapes:null,cursors:null,showLinks:null,link:null,linka:null,linkg:null,nodes:null,zoom:null,zoomLevels:null,allowActions:null,selection:null},t.prototype.init=function(t,e){var n=new s.OrgChart.CV(this);this.oCV=n,this.oCV.oG=this,this.oVS=new s.ScrollBar,this.oVS.oCV=this.oCV,this.oVS.getWheelChange=function(){return this.oCV.getWheelChange()},this.oVS.getLocked=function(){return this.oCV.getLocked()};var o=this.oVS.drawPart;this.oVS.drawPart=function(t,e,i,s){o.call(this,t,e,i,s),n.onDrawPartScroll(this,t,e,i,s)},this.oHS=new s.ScrollBar,this.oHS.oCV=this.oCV,this.oHS.getWheelChange=function(){return this.oCV.getWheelChange()},this.oHS.getLocked=function(){return this.oCV.getLocked()};var i=this.oHS.drawPart;this.oHS.drawPart=function(t,e,o,s){i.call(this,t,e,o,s),n.onDrawPartScroll(this,t,e,o,s)},this.Root=this.oCV.oR,this.Listeners=this.oCV.oLts,this.oCW=new s.CW(t,{AllowXChg:0,ScrollBars:s.Def.OrgChart.scrollBars}),this.oCW.oT=this,this.Shortcuts=this.oCW.oSts,this.initCW(),this.exports(),this.SetOptions(e,!0),s.DPR.Reg(this),this.Refresh()},t.prototype.initCW=function(){var t=this.oCW,e=(t=t.Add("control",{Dock:5})).Add("vertical",{Dock:4,Resizable:!1,Size:16,VisibleExtends:"vscroll,control",Opacity:0,HoverOpacity:1});e.Add("grip",{Dock:2,Size:16,AllowXChg:!1,SizeExtends:"grip,hscroll",VisibleExtends:"hscroll",Resizable:!1}),e.Add("vscroll",{Dock:5,AllowXChg:!1,Control:this.oVS}),t.Add("hscroll",{Dock:2,Resizable:!1,VisibleExtends:"control",Control:this.oHS,Opacity:0,HoverOpacity:1}),t.Add("main",{Dock:5,HoverExtends:"vertical,vscroll,hscroll,grip",Extends:"vertical,hscroll",Control:this.oCV,HScroll:"hscroll",VScroll:"vscroll"})},t.prototype.exports=function(){var e=this.oCW;e&&(["GetCanvas","SetCanvas","SetClientRect","GetClientRect","p2W","W","gPtr","inv"].forEach(function(t){t in this||(this[t]=e[t].bind(e))},this),this.GetScrollBars=e.GetSBs.bind(e),this.SetScrollBars=e.SetSBs.bind(e));var n=this.oCV;if(n){["SetOptions","GetOptions","opt","bU","eU","onRL","Node","EnsureVisibleNode","Refresh","Smooth","GetFocus","SetFocus","GetSelection","SetSelection","SelectAll","UnselectAll","RemoveSelection","EnsureVisibleSelection","getSelCount","Shuffle"].forEach(function(t){t in this||(this[t]=n[t].bind(n))},this);var o=n.W();null!=o&&["GetScroll","SetScroll","GetSI","SetSI","toEVP","toEVR","SSw"].forEach(function(t){void 0===n[t]&&(n[t]=o[t].bind(o))}),s.expO(t.Options,this,n),s.expO({Options:null,Focus:null,Selection:null},this,n)}},t.prototype.defAA=function(){return"fit(Shift+MButton,Ctrl+MButton,Alt+MButton),zoom(MButton),select(Shift,Ctrl),scroll"},t.prototype.roAA=function(){return"scroll,zoom,fit,select"},t.prototype.GetStatistics=function(){function t(t,e){return s.Format(t,e||0)}var e="",n=s.C2R(this.GetClientRect()),o=this.oCV;return e+="Size: "+t(n[2])+"x"+t(n[3]),e+="\nZoom: "+t(o.getZoom())+"%",e+="\nNode: "+t(o.nN)+"/"+t(o.oR.dscn().len()),e+="\nLink: "+t(o.nL),e+="\nSel: "+t(o.getSelCount())},t.prototype.GetLayout=function(t){return s.Lay.Save(this.onlayout,this,t)},t.prototype.SetLayout=function(t,e){s.Lay.Load(t,this.onlayout,this,e)},t.prototype.onlayout=function(t){this.oCW.onlayout(t)},t.prototype.BeginUpdate=function(){this.bU()},t.prototype.EndUpdate=function(){this.eU()},t.prototype.Update=function(t,e){this.bU(),t&&t.call(e||this),this.eU()},s.ComboBox&&(t.prototype.dCBl=function(t,e,n){var o=this.oCV,i=o.getSel(),s=i&&i.first();o.drawCS(t,e,o.getSelCount(),36),n.oO.label=s&&n.label(s.getImage(),s.getCaption())||""},t.prototype.cCB=function(e){var n=this.oCV,o=n.e2V(e),i=n.p2O(n.gPtr(e));return!o||o instanceof t.CV&&(!i||!i.expandType)},t.prototype.sCB=function(t){return t&&this.SetSelection(null),this.getSelCount()},s.CW.prototype.SetCanvas=function(t,e){return s.ComboBox.implExHost(t,"onselchange")}(s.CW.prototype.SetCanvas)),s.expO({Layout:null,Statistics:null},t.prototype),{OrgChart:t}}()),s.Mrg(s.OrgChart,function(){function t(t){this.init(t)}function l(t){this.oN=t,this.rgVO=new s.M1,this.oSize=this.doL()}var h={exNodeChild:1,exNodeAssistant:2,exNodeGroup:4},u={visible:!0,caption:null,image:null,key:null,flow:null,align:null,margins:null,show:null,showExpandGlyphs:null,singleExpandGlyphs:null,expand:null,expandAssistant:null,expandChild:null,expandGroup:null,pad:null,formatText:null,imageAlign:null,size:void 0,imageSize:void 0,shapes:null,cursors:null,shape:null,cursor:null,enabled:!0,selectable:!0,link:null,linka:null,linkg:null};return t.prototype.init=function(t){this.oT=t,this.oR=new Node(this),this.sSA="smth-"+s.Rand(),this.lI=0,this.nN=0,this.nL=0,this.iLts(),this.oO=s.Cpy(s.OrgChart.Options),this.oR.SetCaption("Root")},s.SB.addProto(t.prototype),t.prototype.GetOptions=function(){return this.oO},t.prototype.SetOptions=function(t,e){var n=!1;if(null!=t){var o=[],i=this.GetOptions();if(null!=i){for(var r in i){var l=t[r];void 0!==l&&(o.push(r),i[r]!==l&&(i[r]=s.CpV(l)))}if(e)for(var r in t)r in i||(i[r]=s.CpV(t[r]));if(n=0!=o.length){var h=this.oG||{};this.bU(),o.forEach(function(t){var e=s.setM(t);e in this?this[e].call(this,i[t]):e in h&&h[e].call(h,i[t])},this),this.eU()}}}return n},t.prototype.opt=function(t,e){var n=this.oO[t];return null==n&&null==(n=s.Def.OrgChart[t])&&(n=e),n},t.prototype.GetCanvas=function(){return this.canvas},t.prototype.SetCanvas=function(t,e){this.udefSts(this.oSts),this.oSts=null,this.resAO(),t=s.CC.GetCanvas(t),!e&&s.CC.SetCanvas(this,t),this.canvas=t,s.CC.GetCanvas(this.canvas)&&this.defSts(this.oSts=new s.Sts)},t.prototype.SetClientRect=function(t){var e=s.CC.GetCanvas(t);e&&(t=[0,0,e.width,e.height]),this.client=s.C2R(t),this.resVO(),this.updSPR()},t.prototype.GetClientRect=function(){return this.client.slice()},t.prototype.GetInsideRect=function(t){var e=this.unscaled(this.getBorder()),n=s.IRt(this.GetClientRect(),-e,-e);return t||(n[2]=this.scaled(n[2]),n[3]=this.scaled(n[3])),n},t.prototype.GetCanvasRect=function(){var t=this.GetClientRect(),e=this.GetCanvas();return null!=e&&(t=[0,0,e.width,e.height]),t},t.prototype.GetVisibleRect=function(){return s.NRt(this.GetClientRect(),this.GetCanvasRect())},t.prototype.GetViewRect=function(){return s.EArtC(this.GetCanvas())},t.prototype.c2V=function(t,e){var n=t,o=e,i=this.GetViewRect();if(1==arguments.length){var s=arguments[0];n=r.X(s),o=r.Y(s)}return{x:n+i[0],y:o+i[1]}},t.prototype.v2C=function(t,e){var n=t,o=e,i=this.GetViewRect();if(1==arguments.length){var s=arguments[0];n=r.X(s),o=r.Y(s)}return{x:n-i[0],y:o-i[1]}},t.prototype.c2Vrt=function(t){var e=this.c2V(t);return[e.x,e.y,t[2],t[3]]},t.prototype.v2Crt=function(t){var e=this.v2C(t);return[e.x,e.y,t[2],t[3]]},t.prototype.onpaint=function(t){this.lI||(this.updSPR(),s.SB.prototype.onpaint.call(this,t))},t.prototype.e2W=function(t){return this.gCW().e2W(t)},t.prototype.e2V=function(t){return(this.e2W(t)||{}).oC||null},t.prototype.onmousemove=function(t){var e,n=this.gPtr(t),o=this.getCursor(n);return o&&(e=this.GetCanvas())&&(e.style.cursor=o),o},t.prototype.onwheel=function(t){if(this.isSelectable()){var e=this.gPtr(t);if(null!=e&&s.PInR(e.x,e.y,this.GetClientRect()))return this.dowheel(t)}return!1},t.prototype.dowheel=function(t){return!!(2&s.ModK(t))&&(this.zoomOnWheel(t),!0)},t.prototype.ondown=function(t){if(this.isSelectable()){s.A.Cancel("ss*");var e=this.gAA();e.Do(this,t),e.CanDo(t,!0)&&!s.RUR.Rng()&&this.doRUR(t,function(){})}return!0},t.toClick=function(t){return{dblClick:t.drag&&(t.drag.long||1!=t.drag.click)||!1,button:s.e2B(t),modifiers:s.ModK(t)}},t.prototype.toClick=function(t,e){e.node=this.p2N(this.gPtr(t))},t.prototype.onA=function(t,e){t&&(s.H.VisitA(this,t),this.inv(),this.onanchorclick(t))},t.prototype.onClick=function(e,n,o){var i=e?e.node||e:null,s=this.gPtr(o),r=t.toClick(o);this.toClick(o,r),n&&(e&&void 0!==e.expandType||this.allowSelect()&&this.gAA().Has("select")&&(this.selectModifierEvent(o),this.select(i),this.selectModifierEvent(o)),i&&(this.EnsureVisibleNode(i),e.node&&(this.ToggleExpandNode(i,e.expandType),this.onChange("expand-node",i)))),this.onA(this.p2A(s),r),e&&void 0!==e.expandType||this.onclick(r)},t.prototype.onDblClick=function(e,n){var o=e?e.node||e:null,i=t.toClick(n);this.toClick(n,i),null!=o&&this.getExpandOnDblClick()&&this.ToggleExpandNode(o,e.expandType),e&&void 0!==e.expandType||this.onclick(i)},t.prototype.onclick=function(t){this.oLts.onclick.do(t)},t.prototype.onanchorclick=function(t){this.oLts.onanchorclick.do(t)},t.prototype.onChange=function(t,e){this.onchange({object:e,action:t})},t.prototype.onchange=function(t){this.oLts.onchange.do(t)},t.prototype.onkeydown=function(t){this.onkey(t,-1)},t.prototype.onkeyup=function(t){this.onkey(t,0)},t.prototype.onkeypress=function(t){this.onkey(t,1)},t.prototype.onkey=function(t,e){this.oSts&&this.oSts.onkey(t,e)},t.prototype.onlayout=function(t){var e;t.IsSave()?(e=this.GetScroll(),t.Add("zoom",this.GetZoom()),t.Add("sel",function(){var t=[];return this.getSel().forEach(function(e){t.push(e.getKey())}),t.join()}.call(this)),t.Add("coll",function(){var t=new Map,e="";return this.oR.forEach(function(e){e.isExpanded(1)||t.set(e,1|(t.get(e)||0)),e.isExpanded(2)||t.set(e,2|(t.get(e)||0)),e.isExpanded(4)||t.set(e,4|(t.get(e)||0))}),t.forEach(function(t,n){e+=(e?",":"")+n.getKey()+"("+t+")"}),e}.call(this)),t.Add("hscroll",e.x),t.Add("vscroll",e.y)):(this.oLts.lock(),this.bU(),this.SetZoom(t.GetValue("zoom")),function(t){null!=t&&this.SetSelection(t.split(","))}.call(this,t.GetValue("sel")),function(t){null!=t&&(this.oR.forEach(function(t){t.SetExpand(!0)}),s.B.split(t).forEach(function(t){var e,n=this.Node(t.caption);n&&(e=~~t.subText)&&n.SetExpandType(e,!1)},this))}.call(this,t.GetValue("coll")),this.SetScroll({x:t.GetValue("hscroll"),y:t.GetValue("vscroll")}),this.eU(),this.oLts.unlock())},t.prototype.onScroll=function(t){this.onscroll({view:this,type:t.type,value:t.value})},t.prototype.onscroll=function(t){this.oLts.onscroll.do(t)},t.prototype.onhscroll=function(t){this.resVO(),this.onScroll({type:1,value:t})},t.prototype.onvscroll=function(t){this.resVO(),this.onScroll({type:0,value:t})},t.prototype.udefSts=function(t){t&&t.RemoveOf(this)},t.prototype.defSts=function(t){null!=this.oG&&(this.oG.oSts=t)},t.prototype.iLts=function(){this.oLts=new s.Lts,this.oLts.add("onselchange"),this.oLts.add("onclick"),this.oLts.add("onanchorclick"),this.oLts.add("onchange"),this.oLts.add("onscroll")},t.prototype.p2O=function(t){var e=this.GetClientRect(),n=r.X(t)-e[0],o=r.Y(t)-e[1];return this.getVO().p2O(this.scaled(n),this.scaled(o))},t.prototype.p2N=function(t){var e=this.p2O(t);return e&&(e.node||e)||null},t.prototype.p2V=function(t){var e=this.ptCA(t,!0),n=this.origin();return{x:r.X(e)+n[0],y:r.Y(e)+n[1]}},t.prototype.p2A=function(t){return t=this.p2V(t),s.H.P2A(this,r.X(t),r.Y(t))},t.prototype.hitTest=function(t){var e;if(this.isSelectable()&&(e=this.p2O(t)))return{code:e,callback:null,thisArg:this}},t.prototype.getMoveNodes=function(t,e){var n=null;return t instanceof Node&&(n=(e=null==e||e)&&this.getSelCount()>1&&this.isSelected(t)?this.getSel().byO():[t]),n},t.prototype.ToggleExpandNode=function(t,e){this.Smooth(function(){var n=this.o2R(t);t.ToggleExpand(e),this.updSPR();var o=this.o2R(t);if(null!=o&&null!=n){var i=this.GetScroll();i.x+=o[0]-n[0],i.y+=o[1]-n[1],this.SetScroll(i)}if(this.getEnsureOnExpand()){var r=this.Lyt(),l=r.o2R(t),h=t.getVisibleDescendant(e);null!=h&&(l=null,h.forEach(function(t){l=s.URts(l,r.o2R(t))})),this.EnsureVisibleClient(l)}},this,function(n,o,i,s,l,u,a,p){var c=i.o2R(t.getExpandGlyph(e),this.origin(s))||i.o2R(t,this.origin(s));c=r.C2R(r.R2C(c));var f=u.o2R(t.getExpandGlyph(e),this.origin(a))||u.o2R(t,this.origin(a));f=r.C2R(r.R2C(f)),t.dscn(e).forEach(function(t){[t,t.getExpandGlyph(null),t.getExpandGlyph(h.exNodeAssistant),t.getExpandGlyph(h.exNodeChild),t.getExpandGlyph(h.exNodeGroup)].forEach(function(t){var e=l.has(t),n=p.has(t);if(!e||!n){var s=i.has(t);s!=u.has(t)?(e?n||p.push(t,f.slice()):(l.push(t,c.slice()),n||p.push(t,u.o2R(t,this.origin(a)))),o.remove(t)):s&&o.push(t)}},this)},this)})},t.prototype.EnsureVisibleClient=function(t,e,n){if(null!=t){var i=t;if(s.IsA(t)||(i=this.Lyt().o2R(t)),!s.EyR(i)){var r=this.GetScroll(),l=this.getScale(),h=l;if(e){var u=this.GetInsideRect(!0),a=this.rtCA(i,!1);h=o(l*u[2]/a[2],l*u[3]/a[3]),e=h0&&(s.A.Cancel(this.sSA),i=this.getVO(),l=this.Lyt(),h=this.GetScroll(),u=this.GetInsideRect(),this.bU()),null!=this.rgVO&&this.rgVO.clean(),t.call(e),o>0){var a=this.updSPR;this.updSPR(this.Lyt().oSize),this.updSPR=function(){},this.rgVO=i,this.oLyt=l,this.eU(),this.oLyt=null,this.rgVO=null,this.updSPR=a;var p=this.getVO(),c=this.Lyt(),f=this.GetScroll(),d=new s.Arr(i.diff(p));n instanceof Function&&n.call(this,u,d,l,h,i,c,f,p),d.forEach(function(t){var e=i.get(t),n=p.get(t);null==e&&i.push(t,l.o2R(t,this.origin(h))||r.C2R(r.R2C(n))),null==n&&p.push(t,c.o2R(t,this.origin(f))||r.C2R(r.R2C(e)))},this),(this.rgVO=i).morph(p,{inv:this.invAO,refresh:this.Refresh,thisArg:this,name:this.sSA,onXDoL:!1,duration:o})}}},t.prototype.GetFocus=function(){var t=this.rgSel;return(null!=t?"first"in t?t.first():t:null)||this.oR},t.prototype.SetFocus=function(t){var e=this.Node(t)||this.oR;return this.SetSelection(e),this.EnsureVisibleNode(e),e},t.prototype.isSelected=function(t){var e=null!=this.rgSel;return null==t?!e:!!e&&(this.rgSel instanceof s.Arr?this.rgSel.has(t):this.rgSel==t)},t.prototype.getSelCount=function(){var t=0;if(null!=this.rgSel){if(this.rgSel instanceof s.Arr)return this.rgSel.len();t++}return t},t.prototype.selectModifierEvent=function(t){this.oSelEv=t&&{modifier:s.ModK(t),selection:this.rgSel}},t.prototype.removeSel=function(t){this.rgSel&&this.isSelected(t)&&(this.rgSel instanceof s.Arr?(this.rgSel.remove(t),this.rgSel.len()||(this.rgSel=null)):this.rgSel=null)},t.prototype.valueToNodes=function(t){if(null!=t){if(t instanceof Array||t instanceof s.Arr){var e=new s.Arr;return t.forEach(function(t){var n=this.Node(t);null!=n&&e.push(n)},this),e}return this.Node(t)}return null},t.prototype.isSable=function(t){return t instanceof Node&&t.isSelectable()},t.prototype.select=function(t,e,n){function o(t,e,n){var o=!1,i=t.isSelected(e),r=e&&t.isSable(e);if(null==e)o=null!=t.rgSel,t.rgSel=null;else if(t.isSingleSel()){var l=t.rgSel;t.rgSel=!r||n&&i?null:e,o=l!=t.rgSel}else n&&i?(o=i,t.removeSel(e)):(n||(o=null!=t.rgSel&&(!i||t.rgSel.len()>1),t.rgSel=null),r&&(t.rgSel=t.rgSel||new s.Arr).push(e)),o|=i!=t.isSelected(e);return o}var i=!1,r=!n&&(this.isToggleSel()||this.isToggleCtrlSel()&&2&this.oSelEv.modifier),l=this.valueToNodes(t);l instanceof s.Arr?r?l.forEach(function(t){i|=o(this,t,r)},this):(i=!l.equal(this.rgSel))&&(this.isSingleSel()?o(this,l.last()):(this.rgSel=new s.Arr,l.forEach(function(t){this.isSable(t)&&this.rgSel.push(t)},this))):i=o(this,l,r),i&&(0==this.lI&&(void 0===e||e)&&this.invAO(),this.onselchange(this.GetSelection()))},t.prototype.onselchange=function(t){this.oLts.onselchange.do(t)},t.prototype.onSetAO=function(t){function e(e,n){var l=o.getShape(e);null!=l&&(!s.EyO(l.hover)&&t.set({owner:o,id:e.idAOH,object:e,inv:o.inv,hitTest:function(t,n,i){return r?r===e:o.isAP(t,n)&&i.object==o.p2O([t,n])},duration:i}),!s.EyO(l.click)&&t.set({owner:o,id:e.idAOC,object:e,inv:o.inv,hitTest:function(t,n,i){return r?r===e:o.isAP(t,n)&&i.object==o.p2O([t,n])},actOn:r==e?1:4,duration:i}))}var n=null;if(this.isSelectable()&&!t.hasOf(this)&&(n=this.getVO())){var o=this,i=o.getSmooth(),r=o.orurOnlyAO;r instanceof Node?e(r,n.indexOf(r)):n.forEach(function(t,n,o){e(n)},this)}},t.prototype.onimg=function(){this.Smooth(function(){this.Refresh()},this)},t.prototype.onRL=function(){this.resVO(),this.oLyt=null},t.prototype.resVO=function(){this.rgVO=null,this.resAO()},t.prototype.bU=function(){this.lI++},t.prototype.eU=function(){if(!--this.lI){var t=this.gCW();!t||this.oLyt?this.invAO():(this.resAO(),t.Render())}},t.prototype.beU=function(){this.bU(),this.eU()},t.prototype.Lyt=function(){if(null==this.oLyt){var t=this.gCtx(),e=null;t&&(e=s.TFI.bCTX(t,this.getTfi())),this.oLyt=new l(this.oR),t&&s.TFI.eCTX(t,e)}return this.oLyt},t.prototype.getVO=function(){if(null==this.rgVO){var t=this.GetScrollRect();this.getShowLinks()&&s.IRt(t,t[2],t[3]),this.rgVO=this.Lyt().scroll(t,this.origin())}return this.rgVO},t.prototype.GetScroll=function(){return this.W().GetScroll()},t.prototype.SetScroll=function(t){this.W().SetScroll(t)},t.prototype.isExtSBS=function(){var t=this.gCW();return t&&12288==(12288&t.gSBs())},t.prototype.getScale=function(){return null==this.scale&&(this.scale=this.getZoom()/100),this.scale},t.prototype.scaled=function(t){return t/this.getScale()},t.prototype.unscaled=function(t){return t*this.getScale()},t.prototype.origin=function(t){t=t||this.GetScroll();var e=this.getBorder();return[-t.x+e,-t.y+e]},t.prototype.GetScrollRect=function(){var t=this.origin(),e=this.GetClientRect();return[-t[0],-t[1],this.scaled(e[2]),this.scaled(e[3])]},t.prototype.GetZoom=function(){return this.oO.zoom},t.prototype.SetZoom=function(t){this.bU(),this.scale=null,this.oO.zoom=t,this.updSPR(),this.eU()},t.prototype.getZoom=function(){var t=this.GetZoom(),e=this.getZoomLevels();return null==t&&(t=100),n(e[0],o(e[e.length-1],t))},t.prototype.GetZoomLevels=function(){return this.oO.zoomLevels},t.prototype.SetZoomLevels=function(t){this.bU(),this.scale=null,this.oO.zoomLevels=t,this.updSPR(),this.eU()},t.prototype.getZoomLevels=function(){var t=[100],e=new s.Arr;return s.ToS(this.GetZoomLevels(),"25,35,50,65,75,80,90,100,110,125,150,175,200,250,300,400,500").split(",").forEach(function(t){e.push(n(10,o(1e3,s.ToN(t,100))))}),e.isEmpty()||(t=e.byO()).sort(function(t,e){return t-e}),t},t.prototype.zoomOnWheel=function(t){var e=!1,i=s.WhelInc(t);if(i){var r=this.getZoomLevels(),l=100*this.getScale(),h=function(t,e){var n=0,o=e.length;if(t>=e[n])for(;t>=e[n+1]&&nMath.abs(t.drag.offset.dy)?t.drag.offset.dx:t.drag.offset.dy),t.drag.current);break;case 3:case 4:case 5:null!=s&&s.call(l,t)}},this)}},t.prototype.rurFit=function(t,e){e.rurOnlyAO={},e.rurDrop=function(t){this.FitToClient(this.focusRectAbs(t))};var n=this.getShape("frameFit");if(null!=n){function o(t,e,o){e.drawShape(o,n.normal||n)}e.rurEFPaint=o,null==e.rurEFPaint&&(e.rurDrag=function(t){o(0,this.gCtx(),this.rtCA(r.Rect(t.from,t.to),!1))})}this.rurDrag(t,e)},t.prototype.rurSelect=function(t,e){if(this.allowSelect()&&this.isSelectByDrag(t)){var n=this.getShape("frameSel");if(null!=n){function o(t,e,o){e.drawShape(o,n.normal||n)}e.rurEFPaint=o}var i=!1;e.rurDrag=function(t){!i&&(i=2==t.event.drag.status)&&(this.orurOnlyAO={},this.invAO()),null==e.rurEFPaint&&null!=n&&o(0,this.gCtx(),this.rtCA(t.frame,!1))},e.rurDrop=function(t){this.bU(),this.selectModifierEvent(t.event),this.isSingleSel()?this.select(this.p2O(this.ptCA(t.to,!1))):this.select(this.Lyt().r2O(r.Rect(t.from,t.to))),this.EnsureVisibleClient(this.focusRectAbs(t),!0,!0),this.selectModifierEvent(null),this.eU()},this.rurDrag(t,e)}},t.prototype.rurMove=function(t,e){var n=this.gPtr(t),o=this.p2O(n),i=this.Lyt().o2R(o),r=this.getMoveNodes(o,!0);if(r&&i){var l=this.getShape("frameDrag"),h=r.length>1?r.length:null,u=null,a=null,p=null;s.EyO(l)&&(l=null);e.rurEFPaint=function(t,e,n,i){u=u||i;var a=!1,p=this.p2O(this.ptCA(t.to,!1)),c=[this.scaled(n[0]),this.scaled(n[1]),this.scaled(n[2]),this.scaled(n[3])];p instanceof Node&&(a=Node.canParent(r,p)),this.ctxScale(e,[0,0,0,0],function(){a||(e.globalAlpha=.25),l?e.drawShape(c,l.normal||l):this.drawO(e,c,o)},this),h&&e.drawHTMLText(h,n,s.DrawTextFormatEnum.exTextAlignCenter|s.DrawTextFormatEnum.exTextAlignVCenter)},e.rurEFOpts=function(t,e){e.visible=!1,e.limitClient=!1},e.rurDrag=function(t){null!=u&&u.SetVisible(t.from!=t.to),t.frame=s.ORt(i.slice(),t.to.x-t.from.x,t.to.y-t.from.y),clearTimeout(p);var e=this.p2O(this.ptCA(t.to,!1));if(e instanceof Node&&Node.canPosition(r,e)){var n=this,l=e.GetPosition();p=setTimeout(function(){n.Smooth(function(){null==a&&(a=o.ownCol())&&a.savePos(),n.bU(),r.forEach(function(t){t.SetPosition(l++)}),n.EnsureVisibleNode(o),n.eU(),null!=u&&u.Render()})},512)}},e.rurCancel=function(t){clearTimeout(p),null!=a&&this.Smooth(function(){this.bU(),a.loadPos(),this.eU()},this)},e.rurDrop=function(t){clearTimeout(p);var e=this.p2O(this.ptCA(t.to,!1));e instanceof Node&&Node.canParent(r,e)&&this.Smooth(function(){this.bU(),r.forEach(function(t){t.SetParent(e)}),this.EnsureVisibleNode(o),this.eU()},this)},this.rurDrag(t,e)}},t.prototype.rurDragDrop=function(t,e){var n=this.p2O(this.gPtr(t));this.isSable(n)&&s.RUR.D3(t,{object:n,shape:this.getShape(n),client:this.rtCA(this.Lyt().o2R(n),!1),source:this,onpaint:function(t,e){this.source.drawO(t,e,this.object)},onclick:function(t){e.rurStatus&&e.rurStatus.call(this,t)},onmove:function(t){t.drag.setCursor(s.GP.Get(e.rurName,this.getCursors()))}})},t.prototype.ptCA=function(t,e){var n={x:r.X(t),y:r.Y(t)},o=this.GetScroll(),i=this.GetInsideRect(!0);return null==e||e?(n.x-=i[0],n.y-=i[1],n.x=this.scaled(n.x),n.y=this.scaled(n.y),n.x+=o.x,n.y+=o.y):(n.x-=o.x,n.y-=o.y,n.x=this.unscaled(n.x),n.y=this.unscaled(n.y),n.x+=i[0],n.y+=i[1]),n},t.prototype.rtCA=function(t,e){return r.Rect(this.ptCA(r.R2C(t,17),e),this.ptCA(r.R2C(t,68),e))},t.prototype.doRUR=function(t,e,n,o){return s.RUR.Do(t,function(t){switch(t.drag.status){case 3:this.gAA().CanDo(t,!0)&&(s.RUR.Cancel(),this.gAA().Do(this,t,!0))}e.call(n,t)},this,o)},t.prototype.rurScroll=function(t,e){if(t){var n={oH:this.GetSI(!0),oV:this.GetSI(!1),scrollRange:this.sR},o=this.ptCA(this.GetInsideRect(!0),!0),i=null,s=this;null!=e&&(e.rurStatus instanceof Function&&(i=e.rurStatus),null!=e.thisArg&&(s=e.thisArg)),this.doRUR(t,function(t){switch(t.drag.status){case 1:this.orurOnlyAO=(null!=e?e.rurOnlyAO:null)||null,this.beU();break;case 7:this.orurOnlyAO=null,t.drag.cancel?this.Soom(null,o,[0,0]):null==t.drag.swipe&&this.beU();break;case 2:this.rurScrollD(-t.drag.offset.dx,-t.drag.offset.dy,n);break;case 6:this.SSw(t.drag.swipe);break;case 3:case 4:case 5:null!=i&&i.call(s,t)}},this)}},t.prototype.rurScrollD=function(t,e,n){(n=n||{oH:this.GetSI(!0),oV:this.GetSI(!1)}).oH=n.oH||{pos:0,page:0},n.oV=n.oV||{pos:0,page:0},this.bU();var o=n.oH.pos+this.scaled(t),i=n.oV.pos+this.scaled(e);this.SetScroll({x:o,y:i}),this.eU()},t.prototype.rurDrag=function(t,e){function o(t){null!=G&&(t.updSPR=G,G=null)}function i(){a.frame=r.Rect(a.from,a.to),null!=d&&d.call(v,a)}if(null!=t){var l=this.GetClientRect(),h=this.gPtr(t),u=this.ptCA(h,!0),a={from:u,to:u,event:null,frame:r.Rect(u,u)},p={oH:this.GetSI(!0),oV:this.GetSI(!1),scrollRange:this.sR},c=null,f=null,d=null,g=null,y=null,S=null,x=null,C=null,v=this,O=null,G=null,A=null;null!=e&&(e.rurEFPaint instanceof Function&&(c=e.rurEFPaint),e.rurEFOpts instanceof Function&&(f=e.rurEFOpts),e.rurDrag instanceof Function&&(d=e.rurDrag),e.rurCancel instanceof Function&&(g=e.rurCancel),e.rurDrop instanceof Function&&(y=e.rurDrop),e.rurStatus instanceof Function&&(S=e.rurStatus),e.rurDragStart instanceof Function&&(x=e.rurDragStart),e.rurDragEnd instanceof Function&&(C=e.rurDragEnd),null!=e.thisArg&&(v=e.thisArg)),this.doRUR(t,function(t){switch(a.event=t,t.drag.status){case 1:if(null!=x&&x.call(v,a),this.orurOnlyAO=(null!=e?e.rurOnlyAO:null)||null,e&&e.rurAllowUpdateScrollRange||(G=this.updSPR,this.updSPR=function(){}),this.beU(),null!=c){i();var r={name:"frame",client:this.rtCA(a.frame,!1),relative:this.GetCanvas(),clip:this.GetCanvas(),onpaint:function(t,e){c.call(v,a,t,e,this)}};null!=f&&f.call(v,a,r),O=s.EF.Create(r)}break;case 7:clearTimeout(A),this.orurOnlyAO=null,o(this),this.bU(),t.drag.cancel?(this.rurScrollD(0,0,p),null!=g&&g.call(v,a)):t.drag.click||t.drag.long||!y||y.call(v,a),s.A.Rng(this.sSA)||this.onRL(),this.eU(),s.EF.Destroy(O),null!=C&&C.call(v,a);break;case 2:var h=t.drag.current.x-s.LOf(l);h>0&&(h=n(0,t.drag.current.x-s.ROf(l)));var u=t.drag.current.y-s.TOf(l);u>0&&(u=n(0,t.drag.current.y-s.BOf(l))),(h||u)&&this.rurScrollD(h,u),clearTimeout(A);var d=this.p2O(t.drag.current);null==d||null==d.node||d.node.isExpanded(d.expandType)||(A=setTimeout(function(){var t=d.node,e=t.oCV,n=null;null!=G&&(n=e.updSPR,e.updSPR=G),e.ToggleExpandNode(t,d.expandType),null!=G&&(e.updSPR=n)},512)),a.to=this.ptCA(t.drag.current,!0),a.dx=a.to.x-a.from.x,a.dy=a.to.y-a.from.y,i(),null!=O&&O.SetClient(this.rtCA(a.frame,!1));break;case 3:case 4:case 5:o(this),null!=S&&S.call(v,t)}},this,{contiguously:!0,client:l})}},t.prototype.focusPointAbs=function(t){var e=this.ptCA(t,!0),n=this.p2O(t);return null!=n&&(e=r.R2C(this.Lyt().o2R(n))),e},t.prototype.focusRectAbs=function(t){var e=r.Rect(t.from,t.to);if(!s.EyR(e)){var n=this.Lyt().r2O(e);if(n.length){var o=this.Lyt();n.forEach(function(t){e=s.URt(e,o.o2R(t))})}}return e},t.prototype.allowRur=function(t,e){return null!=t},t.prototype.rurAction=function(t,e,n){var o=this.gPtr(n),i={rurName:t,rurFlags:e,rurOnlyAO:this.p2O(o)||{},rurStatus:function(e){this.rurActionClick(t,e)}};if(this.allowRur(n,i)){var r="rur"+s.getP(function(t){for(var e,n="",o=0,i=t.length;ol?h=null:h1){var i,l,h=this.toShape("multiSel");h&&(n=s.Format(n,0),i=t.sizeHTMLText(n),l=r.C2R(r.R2C(e,o),i.width+8,i.height+8,o),t.drawShape(l,h,{text:n}))}},t.prototype.onDrawPartScroll=function(t,e,n,o,i){if(640==n){var s=this.getScrollBarsRoot();if(null!=s){var l=this.Lyt(),h=r.R2C(l.o2R(this.oR)),u=r.R2C(o);t.isV()?u[1]=o[1]+h[1]/l.oSize.height*o[3]:u[0]=o[0]+h[0]/l.oSize.width*o[2],e.drawShape(r.C2R(u,3,3),{fillColor:s,primitive:"Circle"})}}},t.prototype.ctxScale=function(t,e,n,o){t.translate(e[0],e[1]),t.save(),t.scale(this.getScale(),this.getScale()),n.call(o||this,[0,0,this.scaled(e[2]),this.scaled(e[3])]),t.restore(),t.translate(-e[0],-e[1])},t.prototype.draw=function(t,e,n){this.nN=0,this.nL=0,this.ctxScale(t,e,function(){var e=this.getShowLinks();e==s.ShowLinksEnum.exHide?this.nN=this.drawN(t):e&s.ShowLinksEnum.exFront?(this.nN=this.drawN(t),this.nL=this.drawL(t)):(this.nL=this.drawL(t),this.nN=this.drawN(t))},this)},t.prototype.GetTfi=function(){return this.oO.tfi},t.prototype.SetTfi=function(t){this.bU(),this.oO.tfi=t||null,this.onRL(),this.eU()},t.prototype.getTfi=function(){return this.opt("tfi")},t.prototype.GetLocked=function(){return this.oO.locked},t.prototype.SetLocked=function(t){this.bU(),this.oO.locked=t,this.onRL(),this.eU()},t.prototype.getLocked=function(){return this.opt("locked",!1)},t.prototype.GetReadOnly=function(){return this.oO.readOnly},t.prototype.SetReadOnly=function(t){this.bU(),this.oAA=null,this.oO.readOnly=t,this.onRL(),this.eU()},t.prototype.isReadOnly=function(){return this.opt("readOnly",!1)},t.prototype.GetWheelChange=function(){return this.oO.wheelChange},t.prototype.SetWheelChange=function(t){this.bU(),this.oO.wheelChange=t,this.onRL(),this.eU()},t.prototype.getWheelChange=function(){return this.opt("wheelChange",18)},t.prototype.GetExpandGlyphSize=function(){return this.oO.expandGlyphSize},t.prototype.SetExpandGlyphSize=function(t){this.bU(),this.oO.expandGlyphSize=t,this.onRL(),this.eU()},t.prototype.getExpandGlyphSize=function(){return n(0,s.ToN(this.opt("expandGlyphSize",16)))},t.prototype.GetFlow=function(){return this.oO.flow},t.prototype.SetFlow=function(t){this.bU(),this.oFlow=null,this.oO.flow=t||null,this.onRL(),this.eU()},t.prototype.getFlow=function(){return null==this.oFlow&&(this.oFlow=l[this.opt("flow")]||l.flowVertical),this.oFlow},t.prototype.GetAlign=function(){return this.oO.align},t.prototype.SetAlign=function(t){this.bU(),this.oO.align=null!=t?t:null,this.onRL(),this.eU()},t.prototype.getAlign=function(){return this.opt("align",s.AlignEnum.exAlignCenter)},t.prototype.GetMargins=function(){return this.oO.margins},t.prototype.SetMargins=function(t){this.bU(),this.oM=null,this.oO.margins=t||null,this.onRL(),this.eU()},t.prototype.getMargins=function(){if(null==this.oM){var t=this.opt("margins",null);s.IsO(t)||(t={}),this.oM=s.Inh(t,s.Def.OrgChart.margins||{x:16,y:16,indent:16,border:8})}return this.oM},t.prototype.GetShowExpandGlyphs=function(){return this.oO.showExpandGlyphs},t.prototype.SetShowExpandGlyphs=function(t){this.bU(),this.oO.showExpandGlyphs=t,this.onRL(),this.eU()},t.prototype.getShowExpandGlyphs=function(){return this.opt("showExpandGlyphs",null)},t.prototype.GetSingleExpandGlyphs=function(){return this.oO.singleExpandGlyphs},t.prototype.SetSingleExpandGlyphs=function(t){this.bU(),this.oO.singleExpandGlyphs=t,this.onRL(),this.eU()},t.prototype.getSingleExpandGlyphs=function(){return!!this.opt("singleExpandGlyphs")},t.prototype.GetShow=function(){return this.oO.show},t.prototype.SetShow=function(t){this.bU(),this.oO.show=t,this.onRL(),this.eU()},t.prototype.getShow=function(){return this.opt("show",null)},t.prototype.GetFilter=function(){return this.oO.filter},t.prototype.SetFilter=function(t){this.bU(),this.oO.filter=t||null,this.onRL(),this.eU()},t.prototype.getFilter=function(){return this.opt("filter",null)},t.prototype.getFilterNodes=function(){return this.oR.fN(this.getShow(),this.getFilter())},t.prototype.GetSmooth=function(){return this.oO.smooth},t.prototype.SetSmooth=function(t){this.oO.smooth=t},t.prototype.getSmooth=function(){return n(0,s.ToN(this.opt("smooth",125)))},t.prototype.onAdd=function(t){this.onUpdateKey(t)},t.prototype.onRemove=function(t){this.onUpdateKey(t),this.removeSel(t)},t.prototype.onUpdateKey=function(t){this.mK2I=null},t.prototype.Node=function(t,e){function n(t,e){e.set(t.getKey(),t);var o=t.rgCld;null!=o&&o.forEach(function(t){n(t,e)});var i=t.rgAst;null!=i&&i.forEach(function(t){n(t,e)});var s=t.rgGrp;return null!=s&&s.forEach(function(t){n(t,e)}),e}if(t instanceof Node)return t;e=e||this.oR,this.mK2I=this.mK2I||new Map;var o=this.mK2I.get(e);return null==o&&this.mK2I.set(e,n(e,o=new Map)),o.get(t)||null},t.prototype.GetSingleSel=function(){return this.oO.singleSel},t.prototype.SetSingleSel=function(t){this.bU(),this.n1S=null,this.oO.singleSel=t,this.onRL(),this.eU()},t.prototype.getSingleSel=function(){var t=this.n1S;return null==t&&(null==(t=this.GetSingleSel())&&(t=s.Def.OrgChart.singleSel),t=i(t,s.OrgChart.SingleSelEnum,s.OrgChart.SingleSelEnum.exEnableSel),this.n1S=t),t},t.prototype.GetSelection=function(){return this.rgSel&&(this.rgSel.byO&&this.rgSel.byO()||this.rgSel)},t.prototype.SetSelection=function(t){this.select(t,!0,!0)},t.prototype.SelectAll=function(){this.SetSelection(this.oR.dscn())},t.prototype.UnselectAll=function(){this.SetSelection(null)},t.prototype.getSel=function(){var t=s.Arr.empty;return null!=this.rgSel&&(t=this.rgSel instanceof s.Arr?this.rgSel:new s.Arr(this.rgSel)),t},t.prototype.EnsureVisibleSelection=function(){var t=this.getSel();if(!t.isEmpty()){var e=null,n=this.Lyt().rgVO;t.forEach(function(t){e=s.URt(e,n.get(t))}),this.EnsureVisibleClient(e,!0)}},t.prototype.RemoveSelection=function(){this.Smooth(function(){if(null!=this.rgSel){var t=new s.Arr(this.rgSel);t.isEmpty()||(this.rgSel=null,this.bU(),t.forEach(function(t){t.Remove()}),this.onRL(),this.eU())}},this)},t.prototype.allowSelect=function(){return this.getSingleSel()!=s.OrgChart.SingleSelEnum.exDisableSel},t.prototype.isSingleSel=function(){return this.getSingleSel()&s.OrgChart.SingleSelEnum.exSingleSel},t.prototype.isToggleSel=function(){return this.getSingleSel()&s.OrgChart.SingleSelEnum.exToggleSel},t.prototype.isToggleCtrlSel=function(){return 0==(this.getSingleSel()&s.OrgChart.SingleSelEnum.exDisableCtrlSel)},t.prototype.isShiftSel=function(){return 0==(this.getSingleSel()&s.OrgChart.SingleSelEnum.exDisableShiftSel)},t.prototype.allowSelectByDrag=function(){return 0==(this.getSingleSel()&s.OrgChart.SingleSelEnum.exDisableDrag)},t.prototype.isSelectByDrag=function(t){return 1&s.ModK(t)&&this.allowSelectByDrag()&&this.isShiftSel()},t.prototype.GetEnsureOnExpand=function(){return this.oO.ensureOnExpand},t.prototype.SetEnsureOnExpand=function(t){this.bU(),this.oO.ensureOnExpand=t,this.onRL(),this.eU()},t.prototype.getEnsureOnExpand=function(){return!!this.opt("ensureOnExpand",!0)},t.prototype.GetExpandOnDblClick=function(){return this.oO.expandOnDblClick},t.prototype.SetExpandOnDblClick=function(t){this.bU(),this.oO.expandOnDblClick=t,this.onRL(),this.eU()},t.prototype.getExpandOnDblClick=function(){return!!this.opt("expandOnDblClick",!0)},t.prototype.GetPad=function(){return this.oO.pad},t.prototype.SetPad=function(t){this.bU(),this.rgPad=null,this.oO.pad=t,this.onRL(),this.eU()},t.prototype.getPad=function(){return null==this.rgPad&&(this.rgPad=s.pad2A(this.opt("pad",[4,4]))),this.rgPad},t.prototype.GetFormatText=function(){return this.oO.formatText},t.prototype.SetFormatText=function(t){this.bU(),this.nFT=null,this.oO.formatText=t,this.onRL(),this.eU()},t.prototype.getFormatText=function(){return null==this.nFT&&(this.nFT=i(this.opt("formatText"),s.DrawTextFormatEnum,s.DrawTextFormatEnum.exTextAlignCenter|s.DrawTextFormatEnum.exTextAlignVCenter|s.DrawTextFormatEnum.exTextWordBreak|s.DrawTextFormatEnum.exTextWordEllipsis)),this.nFT},t.prototype.GetImageAlign=function(){return this.oO.imageAlign},t.prototype.SetImageAlign=function(t){this.bU(),this.nIA=null,this.oO.imageAlign=t,this.onRL(),this.eU()},t.prototype.getImageAlign=function(){return null==this.nIA&&(this.nIA=~~this.opt("imageAlign",0)),this.nIA},t.prototype.GetSize=function(){return this.oO.size},t.prototype.SetSize=function(t){this.bU(),this.aSize=void 0,this.oO.size=t,this.onRL(),this.eU()},t.prototype.getSize=function(){return void 0===this.aSize&&(this.aSize=this.opt("size",null)),this.aSize},t.prototype.GetImageSize=function(){return this.oO.imageSize},t.prototype.SetImageSize=function(t){this.bU(),this.aIS=void 0,this.oO.imageSize=t,this.onRL(),this.eU()},t.prototype.getImageSize=function(){return void 0===this.aIS&&(this.aIS=this.opt("imageSize",null)),this.aIS},t.prototype.getBorder=function(){return this.getMargins().border},t.prototype.GetShapes=function(){return this.oO.shapes},t.prototype.SetShapes=function(t){this.bU(),this.sShs=null,this.oO.shapes=t,this.onRL(),this.eU()},t.prototype.getShapes=function(){var t=this.sShs;return null==t&&(null==(t=this.GetShapes())&&(t=s.Def.OrgChart.shapes),t=s.ToS(t,"Border(node),Expand(expand),FrameSel(select,frameSel),FrameFit(frameFit),Empty(frameDrag)"),this.sShs=t),t},t.prototype.GetCursors=function(){return this.oO.cursors},t.prototype.SetCursors=function(t){this.bU(),this.sCrs=null,this.oO.cursors=t,this.onRL(),this.eU()},t.prototype.getCursors=function(){var t=this.sCrs;return null==t&&(null==(t=this.GetCursors())&&(t=s.Def.OrgChart.cursors),t=s.ToS(t,"pointer(expand,drag-drop,pointer)"),this.sCrs=t),t},t.prototype.GetShowLinks=function(){return this.oO.showLinks},t.prototype.SetShowLinks=function(t){this.bU(),this.nSL=null,this.oO.showLinks=t,this.onRL(),this.eU()},t.prototype.getShowLinks=function(){var t=this.nSL;return null==t&&(null==(t=this.GetShowLinks())&&(t=s.Def.OrgChart.showLinks),t=i(t,s.ShowLinksEnum,s.ShowLinksEnum.exExtended|s.ShowLinksEnum.exCrossRect),this.nSL=t),t},t.prototype.GetLink=function(){return this.oO.link},t.prototype.SetLink=function(t){this.bU(),this.oL=null,this.oO.link=t,this.onRL(),this.eU()},t.prototype.getLink=function(){var t=this.oL;return t||((t=this.GetLink())||(t=s.Def.OrgChart.link),t=t||{type:-1,color:"rgb(128,128,128)"},this.oL=t),t},t.prototype.GetLinka=function(){return this.oO.linka},t.prototype.SetLinka=function(t){this.bU(),this.oLinka=null,this.oO.linka=t,this.onRL(),this.eU()},t.prototype.getLinka=function(){var t=this.oLinka;return null==t&&(null==(t=this.GetLinka())&&(t=s.Def.OrgChart.linka),t=t||{type:2,style:[2],color:"rgb(192,192,192)"},this.oLinka=t),t},t.prototype.GetLinkg=function(){return this.oO.linkg},t.prototype.SetLinkg=function(t){this.bU(),this.oLinkg=null,this.oO.linkg=t,this.onRL(),this.eU()},t.prototype.getLinkg=function(){var t=this.oLinkg;return null==t&&(null==(t=this.GetLinkg())&&(t=s.Def.OrgChart.linkg),t=t||{type:3,style:[2],color:"rgb(224,224,224)"},this.oLinkg=t),t},t.prototype.linkAttr=function(t){var e=this.getLink();switch(t){case h.exNodeAssistant:e=this.getLinka()||e;break;case h.exNodeGroup:e=this.getLinkg()||e}return e},t.prototype.GetNodes=function(){return this.oO.nodes=this.oR.GetNodes()},t.prototype.SetNodes=function(t){this.bU(),this.oO.nodes=t,this.oR.SetNodes(t),this.updSPR(),this.onRL(),this.eU()},t.prototype.getObjectTypes=function(t){var e=null;if(null!=t)if(null!=t.expandType)e="expand";else switch(e="node",t.getType()){case h.exNodeAssistant:e+=",nodea";break;case h.exNodeGroup:e+=",nodeg"}return e},t.prototype.getCursor=function(t){var e,n,o;if(this.isSelectable())if(!s.H.lA&&this.p2A(t))e=s.GP.Get("anchor",this.getCursors());else if(n=this.p2O(t))if(o=n.node||n,null!=n.expandType)e=s.GP.Get("expand",o.getCursors());else if(!this.isReadOnly()&&null==(e=o.GetCursor())){var i=o.getCursors();if(this.isSelected(o)&&(e=s.GP.Get("select",i)),null==e)for(var r=this.getObjectTypes(n).split(","),l=r.length-1;null==e&&l>=0;l--)e=s.GP.Get(r[l],i)}return e},t.prototype.getShape=function(t){var e=null;if(null!=t)if(s.IsS(t))e=s.S.GetOf(t.toString(),this.getShapes(),"OrgChart");else{var n=t.node||t;if(null!=t.expandType)e=s.S.GetOf("expand",n.getShapes(),"OrgChart");else{var o=n.GetShape();e=null!=o?s.S.Get(o,"OrgChart"):s.S.GetOf(this.getObjectTypes(t),n.getShapes(),"OrgChart")}}return e},t.prototype.toShape=function(t,e){var n=this.getShape(t),o=n&&n.normal||n;return o&&e&&n&&n.disabled&&(o=s.Inh(n.disabled,o)),o},t.prototype.Unshuffle=function(){this.Shuffle(0)},t.prototype.Shuffle=function(t){var e=this.getVO();if(null!=e){null==e.original&&(e.original=e.copy());var n=e.original;(t=null!=t?t:.5)&&(n=e.copy().shuffle(t)),e.morph(n,{inv:this.invAO,thisArg:this,duration:this.getSmooth(),name:"shuffle",transition:"ease"})}},t.prototype.GetScrollBarsRoot=function(){return this.oO.scrollBarsRoot},t.prototype.SetScrollBarsRoot=function(t){this.bU(),this.oO.scrollBarsRoot=t,this.eU()},t.prototype.getScrollBarsRoot=function(){var t=this.GetScrollBarsRoot();return void 0===t&&(t="black"),t||null},t.prototype.GetAllowActions=function(){return this.oO.allowActions},t.prototype.SetAllowActions=function(t){this.bU(),this.oAA=null,this.oO.allowActions=t,this.eU()},t.prototype.gAA=function(){return this.oAA||(this.oAA=new s.AA(this.opt("allowActions",this.oT.defAA()),this.isReadOnly()?this.oT.roAA():"")),this.oAA},Node=function(t,e,n){this.oCV=t,this.oM=null,this.oO=s.Cpy(u),this.nType=n||h.exNodeChild,this.oP=e||null,this.rgCld=null,this.rgAst=null,this.rgGrp=null,this.expGps=null,this.idAOH={},this.idAOC={},this.add()},Node.prototype.ownCol=function(t){var e=null;if(null!=this.oP)switch(this.nType){case h.exNodeAssistant:e=this.oP.rgAst,t&&!e&&(this.oP.rgAst=e=new s.Arr);break;case h.exNodeGroup:e=this.oP.rgGrp,t&&!e&&(this.oP.rgGrp=e=new s.Arr);break;default:e=this.oP.rgCld,t&&!e&&(this.oP.rgCld=e=new s.Arr)}return e},Node.prototype.resOwnCol=function(){if(null!=this.oP)switch(this.nType){case h.exNodeAssistant:null!=this.oP.rgAst&&(this.oP.rgAst.len()||(this.oP.rgAst=null));break;case h.exNodeGroup:null!=this.oP.rgGrp&&(this.oP.rgGrp.len()||(this.oP.rgGrp=null));break;default:null!=this.oP.rgCld&&(this.oP.rgCld.len()||(this.oP.rgCld=null))}},Node.prototype.add=function(){null!=this.oP&&this.ownCol(!0).add(this)},Node.prototype.AddChild=function(t){var e=null;return this.bU(),(e=new Node(this.oCV,this,h.exNodeChild)).SetOptions(t),this.oCV.onAdd(e),this.eU(),e},Node.prototype.AddAssistant=function(t){var e=null;return this.bU(),(e=new Node(this.oCV,this,h.exNodeAssistant)).SetOptions(t),this.oCV.onAdd(e),this.eU(),e},Node.prototype.AddGroup=function(t){var e=null;return this.bU(),(e=new Node(this.oCV,this,h.exNodeGroup)).SetOptions(t),this.oCV.onAdd(e),this.eU(),e},Node.prototype.Remove=function(){this.bU(),this.Clear();var t=this.ownCol();null!=t&&(t.remove(this),this.resOwnCol()),this.oP&&this.oCV.onRemove(this),this.onRL(),this.eU()},Node.prototype.ClearChild=function(){if(null!=this.rgCld){this.bU();var t=this.rgCld.byO().slice();this.rgCld.clear(),this.rgCld=null,t.forEach(function(t){t.Remove()}),this.eU()}},Node.prototype.ClearAssistant=function(){if(null!=this.rgAst){this.bU();var t=this.rgAst.byO().slice();this.rgAst.clear(),this.rgAst=null,t.forEach(function(t){t.Remove()}),this.eU()}},Node.prototype.ClearGroup=function(){if(null!=this.rgGrp){this.bU();var t=this.rgGrp.byO().slice();this.rgGrp.clear(),this.rgGrp=null,t.forEach(function(t){t.Remove()}),this.eU()}},Node.prototype.Clear=function(){this.bU(),this.ClearChild(),this.ClearAssistant(),this.ClearGroup(),this.eU()},Node.prototype.Item=function(t){return this.oCV.Node(t,this)},Node.prototype.bU=function(){this.oCV.bU()},Node.prototype.eU=function(){this.oCV.eU()},Node.prototype.onRL=function(){this.oCV.onRL()},Node.prototype.onUpdateKey=function(){this.oCV.onUpdateKey(this)},Node.prototype.toString=function(){return this.getKey()},Node.prototype.dscn=function(t){var e=new s.Arr;if(0!=t){null==t?e.add(this):(t&h.exNodeGroup&&null!=this.rgGrp&&e.push(this.rgGrp),t&h.exNodeAssistant&&null!=this.rgAst&&e.push(this.rgAst),t&h.exNodeChild&&null!=this.rgCld&&e.push(this.rgCld));for(var n=0;n"+o+":",i.forEach(function(n){e+="\n",e+=n.Debug(t+"\t")}))}}),e},Node.prototype.mF=function(){var t=this.oCV.rgFN;return!t||t.has(this)},Node.prototype.hasChild=function(){return!(null==this.rgCld||!this.shows(h.exNodeChild))},Node.prototype.getVisibleChild=function(){var t=null;return this.hasChild()&&this.isExpanded(h.exNodeChild)&&this.rgCld.forEach(function(e){e.getVisible()&&e.mF()&&(t=t||[]).push(e)}),t},Node.prototype.hasVisibleChild=function(){var t=null;return this.hasChild()&&this.rgCld.forEachU(function(e){return e.getVisible()&&e.mF()&&(t=e),null!=t}),t},Node.prototype.hasAssistant=function(){return!(null==this.rgAst||!this.shows(h.exNodeAssistant))},Node.prototype.getVisibleAssistant=function(){var t=null;return this.hasAssistant()&&this.isExpanded(h.exNodeAssistant)&&this.rgAst.forEach(function(e){e.getVisible()&&e.mF()&&(t=t||[]).push(e)}),t},Node.prototype.hasVisibleAssistant=function(){var t=null;return this.hasAssistant()&&this.rgAst.forEachU(function(e){return e.getVisible()&&e.mF()&&(t=e),null!=t}),t},Node.prototype.hasGroup=function(){return!(null==this.rgGrp||!this.shows(h.exNodeGroup))},Node.prototype.getVisibleGroup=function(){var t=null;return this.hasGroup()&&this.isExpanded(h.exNodeGroup)&&this.rgGrp.forEach(function(e){e.getVisible()&&e.mF()&&(t=t||[]).push(e)}),t},Node.prototype.hasVisibleGroup=function(){var t=null;return this.hasGroup()&&this.rgGrp.forEachU(function(e){return e.getVisible()&&e.mF()&&(t=e),null!=t}),t},Node.prototype.hasVisibleDescendant=function(t){var e=null;return 0!=t&&(null==e&&(null==t||t&h.exNodeAssistant)&&(e=this.hasVisibleAssistant()),null==e&&(null==t||t&h.exNodeChild)&&(e=this.hasVisibleChild()),null==e&&(null==t||t&h.exNodeGroup)&&(e=this.hasVisibleGroup())),e},Node.prototype.getVisibleDescendant=function(t){var e=null;if(0!=t){if(null==t||t&h.exNodeAssistant){var n=this.getVisibleAssistant();null!=n&&(e=e||[]).push.apply(e,n)}if(null==t||t&h.exNodeChild){var o=this.getVisibleChild();null!=o&&(e=e||[]).push.apply(e,o)}if(null==t||t&h.exNodeGroup){var i=this.getVisibleGroup();null!=i&&(e=e||[]).push.apply(e,i)}}return e},Node.prototype.getExpandGlyph=function(t){this.expGps=this.expGps||{child:{node:this,expandType:h.exNodeChild}};var e=this.expGps.child;if(null==t||"null"==t)this.expGps.single=this.expGps.single||{node:this,expandType:-1},e=this.expGps.single;else switch(~~t){case h.exNodeAssistant:this.expGps.assistant=this.expGps.assistant||{node:this,expandType:h.exNodeAssistant},e=this.expGps.assistant;break;case h.exNodeGroup:this.expGps.group=this.expGps.group||{node:this,expandType:h.exNodeGroup},e=this.expGps.group}return e},Node.prototype.GetPad=function(){return this.oO.pad},Node.prototype.SetPad=function(t){this.bU(),this.oO.pad=t,this.onRL(),this.eU()},Node.prototype.getPad=function(){var t=this.GetPad();return null!=t?s.pad2A(t):this.oCV.getPad()},Node.prototype.GetFormatText=function(){return this.oO.formatText},Node.prototype.SetFormatText=function(t){this.bU(),this.oO.formatText=t,this.onRL(),this.eU()},Node.prototype.getFormatText=function(){var t=this.GetFormatText();return null!=t?~~t:this.oCV.getFormatText()},Node.prototype.GetImageAlign=function(){return this.oO.imageAlign},Node.prototype.SetImageAlign=function(t){this.bU(),this.oO.imageAlign=t,this.onRL(),this.eU()},Node.prototype.getImageAlign=function(){var t=this.GetImageAlign();return null!=t?s.ToI(t,0):this.oCV.getImageAlign()},Node.prototype.GetSize=function(){return this.oO.size},Node.prototype.SetSize=function(t){this.bU(),this.oO.size=t,this.onRL(),this.eU()},Node.prototype.getSize=function(){var t=this.GetSize();return void 0!==t?t:this.oCV.getSize()},Node.prototype.GetImageSize=function(){return this.oO.imageSize},Node.prototype.SetImageSize=function(t){this.bU(),this.oO.imageSize=t,this.onRL(),this.eU()},Node.prototype.getImageSize=function(){var t=this.GetImageSize();return void 0!==t?t:this.oCV.getImageSize()},Node.prototype.gCnt=function(t,e){var n=this.getPad(),o=s.HP.Measure(this.getImage(),this.getImageSize(),t),i=s.PRt(e.slice(),n,-1),r=null;if(null!=o){var l=i.slice();switch(this.getImageAlign()){case 3:(r=i.slice())[1]=s.BOf(i)-o.height,r[3]=o.height,r[0]+=(r[2]-o.width)/2,r[2]=o.width,i[3]-=o.height+n[1];break;case 2:(r=i.slice())[3]=o.height,r[0]+=(r[2]-o.width)/2,r[2]=o.width,i[1]+=o.height+n[1],i[3]-=o.height+n[1];break;case 1:(r=i.slice())[0]=s.ROf(i)-o.width,r[2]=o.width,r[1]+=(r[3]-o.height)/2,r[3]=o.height,i[2]-=o.width+n[0];break;default:(r=i.slice())[2]=o.width,r[1]+=(r[3]-o.height)/2,r[3]=o.height,i[0]+=o.width+n[0],i[2]-=o.width+n[0]}r=s.NRt(r,l)}return{rtCaption:i,rtImage:r}},Node.prototype.getContentSize=function(t){var e,o,i={width:0,height:0},r=!this.isEnabled(),l=this.getPad(),h=this.oCV.getShape(this)||{},u=h.normal||h;return r&&s.H.lA++,e=s.H.Measure(t,this.getCaption(),this.getSize(),this.getFormatText(),u.tfi&&s.ToTFI(u.tfi)),o=s.HP.Measure(this.getImage(),this.getImageSize(),t),null!=e&&(i.width+=e.width+1,i.height+=e.height+1),null!=o&&(this.getImageAlign()>=2?(i.width=n(i.width,o.width),i.height&&(i.height+=l[1]),i.height+=o.height):(i.height=n(i.height,o.height),i.width&&(i.width+=l[0]),i.width+=o.width)),i.width+=l[0]<<1,i.height+=l[1]<<1,r&&--s.H.lA,i},Node.prototype.GetShapes=function(){return this.oO.shapes},Node.prototype.SetShapes=function(t){this.bU(),this.oO.shapes=t,this.onRL(),this.eU()},Node.prototype.getShapes=function(){var t=this.GetShapes();return null!=t?t:null!=this.oP?this.oP.getShapes():this.oCV.getShapes()},Node.prototype.GetCursors=function(){return this.oO.cursors},Node.prototype.SetCursors=function(t){this.bU(),this.oO.cursors=t,this.onRL(),this.eU()},Node.prototype.getCursors=function(){var t=this.GetCursors();return null!=t?t:null!=this.oP?this.oP.getCursors():this.oCV.getCursors()},Node.prototype.GetShape=function(){return this.oO.shape},Node.prototype.SetShape=function(t){this.bU(),this.oO.shape=s.S.A2S(t),this.onRL(),this.eU()},Node.prototype.GetCursor=function(){return this.oO.cursor},Node.prototype.SetCursor=function(t){this.bU(),this.oO.cursor=t,this.onRL(),this.eU()},Node.prototype.GetEnabled=function(){return this.oO.enabled},Node.prototype.SetEnabled=function(t){this.bU(),this.oO.enabled=t,this.onRL(),this.eU()},Node.prototype.getEnabled=function(){return!!this.GetEnabled()},Node.prototype.isEnabled=function(){return!!this.getEnabled()&&(null==this.oP||this.oP.isEnabled())},Node.prototype.GetSelectable=function(){return this.oO.selectable},Node.prototype.SetSelectable=function(t){this.bU(),this.oO.selectable=t,this.eU()},Node.prototype.getSelectable=function(){return null==this.GetSelectable()||this.GetSelectable()},Node.prototype.isSelectable=function(){return this.getSelectable()},Node.prototype.GetLink=function(){return this.oO.link},Node.prototype.SetLink=function(t){this.bU(),this.oO.link=t,this.onRL(),this.eU()},Node.prototype.GetLinka=function(){return this.oO.linka},Node.prototype.SetLinka=function(t){this.bU(),this.oO.linka=t,this.onRL(),this.eU()},Node.prototype.GetLinkg=function(){return this.oO.linkg},Node.prototype.SetLinkg=function(t){this.bU(),this.oO.linkg=t,this.onRL(),this.eU()},Node.prototype.linkAttr=function(t){var e=this.GetLink();switch(t){case h.exNodeAssistant:e=this.GetLinka()||e;break;case h.exNodeGroup:e=this.GetLinkg()||e}return null!=e?e:(this.oP||this.oCV).linkAttr(t)},Node.prototype.GetNodes=function(){function t(e){var n=s.B.quoteC(e.getCaption());n+=s.B.quoteF(function(t){function e(t,e){(n=n||new Map).set(t,e||null)}var n=null;switch(t.nType){case h.exNodeAssistant:e("a");break;case h.exNodeGroup:e("g")}var o=t.GetFlow();null!=o&&e(l.Flows.get(o)||o),t.GetExpandType(h.exNodeChild)||e("c"),t.GetExpandType(h.exNodeAssistant)||e("ca"),t.GetExpandType(h.exNodeGroup)||e("cg");var i=t.GetImage();null!=i&&e("img",i);var s=t.GetShape();null!=s&&e("shape",s);var r=t.GetCursor();null!=r&&e("cursor",r),t.GetEnabled()||e("dis"),t.GetSelectable()||e("nsel");var u=t.GetKey();return null!=u&&e("id",u),n}(e));var o=[];return[e.rgCld,e.rgAst,e.rgGrp].forEach(function(e){null!=e&&e.forEach(function(e){o.push(t(e))})}),n+=s.B.quoteS(o,o.length)}return t(this)},Node.prototype.SetNodes=function(t){function e(t,n,o){s.B.split(n).forEach(function(n){function i(t){var e=null;if(f)if(s.IsA(t))for(var n=t.length,o=0;!e&&o1;n&&o0)switch(e){case l.AnchorExpandGlyphsEnum.Top:case l.AnchorExpandGlyphsEnum.Bottom:t[3]+=n;break;case l.AnchorExpandGlyphsEnum.Left:case l.AnchorExpandGlyphsEnum.Right:t[2]+=n}return t},l.deflateExpandGlyphs=function(t,e,n){if(e&&n>0)switch(e){case l.AnchorExpandGlyphsEnum.Top:t[1]-=n,t[3]=n;break;case l.AnchorExpandGlyphsEnum.Bottom:t[1]=s.BOf(t),t[3]=n;break;case l.AnchorExpandGlyphsEnum.Left:t[0]-=n,t[2]=n;break;case l.AnchorExpandGlyphsEnum.Right:t[0]=s.ROf(t),t[2]=n}return t},l.FlowEnum={exFlowVertical:"flowVertical",exFlowHorizontal:"flowHorizontal",exFlowVerticalTree:"flowVerticalTree",exFlowHorizontalTree:"flowHorizontalTree"},l.getFlows=function(){var t=l.FlowEnum,e=new s.BiM;return e.set(t.exFlowVertical,"vert"),e.set(t.exFlowHorizontal,"horz"),e.set(t.exFlowVerticalTree,"tree"),e.set(t.exFlowHorizontalTree,"htree"),e},l.Flows=l.getFlows(),l.flowVertical={initAssistant:function(t,e){return{x:s.LOf(t),y:s.BOf(t)+e.y}},nextAssistant:function(t,e,n){t.x+=e[2]+n.x},initChild:function(t,e){return{x:s.LOf(t),y:s.BOf(t)+e.y}},nextChild:function(t,e,n){t.x+=e[2]+n.x},initGroup:function(t,e){return{x:s.ROf(t)+e.x,y:s.TOf(t)}},nextGroup:function(t,e,n){t.x+=e[2]+n.x},alignDir:function(){return 0},alignOffset:function(t,e,n){if(t){var o=1;switch(t){case s.AlignEnum.exAlignCenter:case s.AlignEnum.exAlignVCenter:o=2}return n[0]+(n[2]-e[2])/o-e[0]}return 0},anchorExpandGlyphs:function(t){switch(t){case h.exNodeAssistant:return l.AnchorExpandGlyphsEnum.Left;case h.exNodeGroup:return l.AnchorExpandGlyphsEnum.Right}return l.AnchorExpandGlyphsEnum.Bottom},linkcSE:function(t){return{cS:t==h.exNodeGroup?18:66,cE:18}}},l.flowHorizontal={initAssistant:function(t,e){return{x:s.ROf(t)+e.x,y:s.TOf(t)}},nextAssistant:function(t,e,n){t.y+=e[3]+n.y},initChild:function(t,e){return{x:s.ROf(t)+e.x,y:s.TOf(t)}},nextChild:function(t,e,n){t.y+=e[3]+n.y},initGroup:function(t,e){return{x:s.LOf(t),y:s.BOf(t)+e.y}},nextGroup:function(t,e,n){t.y+=e[3]+n.y},alignDir:function(){return 1},alignOffset:function(t,e,n){if(t){var o=1;switch(t){case s.AlignEnum.exAlignCenter:case s.AlignEnum.exAlignVCenter:o=2}return n[1]+(n[3]-e[3])/o-e[1]}return 0},anchorExpandGlyphs:function(t){switch(t){case h.exNodeAssistant:return l.AnchorExpandGlyphsEnum.Left;case h.exNodeGroup:return l.AnchorExpandGlyphsEnum.Bottom}return l.AnchorExpandGlyphsEnum.Right},linkcSE:function(t){return{cS:t==h.exNodeGroup?33:36,cE:33}}},l.flowVerticalTree={initAssistant:function(t,e){return{x:s.LOf(t)+e.indent,y:s.BOf(t)+e.y}},nextAssistant:function(t,e,n){t.y+=e[3]+n.x},initChild:function(t,e){return{x:s.LOf(t)+e.indent,y:s.BOf(t)+e.y}},nextChild:function(t,e,n){t.y+=e[3]+n.y},initGroup:function(t,e){return{x:s.ROf(t)+e.x,y:s.TOf(t)}},nextGroup:function(t,e,n){t.x+=e[2]+n.x},alignDir:function(){return 0},alignOffset:function(t,e,n){return 0},anchorExpandGlyphs:function(t){switch(t){case h.exNodeAssistant:return l.AnchorExpandGlyphsEnum.Left;case h.exNodeGroup:return l.AnchorExpandGlyphsEnum.Right}return l.AnchorExpandGlyphsEnum.Bottom},linkcSE:function(t){return{cS:t==h.exNodeGroup?18:66,cE:t==h.exNodeGroup?18:33}}},l.flowHorizontalTree={initAssistant:function(t,e){return{x:s.ROf(t)+e.x,y:s.TOf(t)+e.indent}},nextAssistant:function(t,e,n){t.x+=e[2]+n.x},initChild:function(t,e){return{x:s.ROf(t)+e.x,y:s.TOf(t)+e.indent}},nextChild:function(t,e,n){t.x+=e[2]+n.x},initGroup:function(t,e){return{x:s.LOf(t),y:s.BOf(t)+e.y}},nextGroup:function(t,e,n){t.y+=e[3]+n.y},alignDir:function(){return 1},alignOffset:function(t,e,n){return 0},anchorExpandGlyphs:function(t){switch(t){case h.exNodeAssistant:return l.AnchorExpandGlyphsEnum.Left;case h.exNodeGroup:return l.AnchorExpandGlyphsEnum.Bottom}return l.AnchorExpandGlyphsEnum.Right},linkcSE:function(t){return{cS:t==h.exNodeGroup?33:36,cE:t==h.exNodeGroup?33:18}}},l.prototype.doL=function(){function t(t,e,n,o){var i=t.unionOf(o);if(null!=i){var s=f.alignOffset(e,n,i);if(s){var r=o[0],l=f.alignDir();t.rgVO.forEachU(function(t,e){if(e==r)return!0;t[l]+=s},t)}}}var n=this.oN,o=n.oCV,i=o.gCtx(),s=o.getExpandGlyphSize(),r=n.getContentSize(i),u=[0,0,r.width,r.height],a=u.slice(),p=n.getAlign(),c=n.getMargins(),f=n.getFlow();null==n.oP&&(o.rgFN=o.getFilterNodes()),this.rgVO.push(n,u);var d=null;if(s>0){var g=!1,y=!1,S=[null];if(n.getSingleExpandGlyphs()||(S=[h.exNodeAssistant,h.exNodeChild,h.exNodeGroup]),S.forEach(function(t){if(n.showsExpandGlyphs(t)){var e=f.anchorExpandGlyphs(t);e&&((d=d||{})[t]=e,g=g||e>=l.AnchorExpandGlyphsEnum.Left,y=y||e0&&l.inflateExpandGlyphs(a,l.AnchorExpandGlyphsEnum.Right,x)}if(y){var C=s-c.y;C>0&&l.inflateExpandGlyphs(a,l.AnchorExpandGlyphsEnum.Bottom,C)}}}var v=n.getVisibleAssistant();if(null!=v){var O=f.initAssistant(a,c),G=[];v.forEach(function(t){var e=new l(t);e.offset(O.x,O.y),this.add(e),f.nextAssistant(O,e.union(),c),G.push(t)},this),t(this,p,u,G),a=this.union()}var A=n.getVisibleChild();if(null!=A){var O=f.initChild(a,c),G=[];A.forEach(function(t){var e=new l(t);e.offset(O.x,O.y),this.add(e),f.nextChild(O,e.union(),c),G.push(t)},this),t(this,p,u,G),a=this.union()}var E=n.getVisibleGroup();if(null!=E){O=f.initGroup(a,c);E.forEach(function(t){var e=new l(t);e.offset(O.x,O.y),this.add(e),f.nextGroup(O,e.union(),c)},this)}if(null!=d)for(var m in d){var b=u.slice();l.deflateExpandGlyphs(b,d[m],s),b[0]+=(b[2]-s)/2,b[2]=s,b[1]+=(b[3]-s)/2,b[3]=s,this.rgVO.push(n.getExpandGlyph(m),b)}return null==n.oP&&(o.rgFN=null),this.rgVO.forEach(function(t){for(var n=0,o=t.length;n