/* @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,e){function o(t){return t&&t.tfi&&h.IsS(t.tfi)&&(t.tfi=h.ToTFI(t.tfi)),t}return h.Inh(o(t),o(e))}function o(){return Math.max.apply(0,arguments)}function i(){return Math.min.apply(null,arguments)}function n(t){return null!=t}function r(t){return null==t}function s(t,e,o){return r(t)?~~o:h.s2F(t,e)}var u,h=h||window.exontrol,a=h.G;h.Def.Menu={},h.Shapes.Menu={dfitem:{normal:{},disabled:{opacity:.5},checked:{fillColor:"rgba(0,0,0,0.125)",frameColor:"rgba(0,0,0,0.25)",pad:-1},hover:{fillColor:"rgba(0,0,0,0.25)",frameColor:"rgba(0,0,0,0.5)",pad:-1},click:{fillColor:"rgba(0,0,0,0.30)",frameColor:"rgba(0,0,0,.55)",pad:-1},open:{fillColor:"rgba(0,0,0,0.30)",frameColor:"rgba(0,0,0,.55)",pad:-1}},dfcap:{normal:{formatText:h.DrawTextFormatEnum.exTextWordEllipsis}},dfsep:{normal:{fillColor:"rgba(0,0,0,0.20)"}},dfflat:{normal:{pad:-1,fillColor:"rgba(0,0,0,0.10)",frameColor:"rgba(0,0,0,0.5)"}},dfsub:{normal:{pad:-1,frameColor:"rgba(0,0,0,0.25)"}},dfarrow:{normal:{fillColor:"rgba(0,0,0,0.75)",primitive:"EllipticPolygon",pArg:{edges:3,startAngle:Math.PI/2}}},dfbarrow:{normal:{pArg:{startAngle:Math.PI}}}},h.Mrg(h,function(){function t(t,e){this.init(t,e)}function l(t,e,o){var i=r(t)||h.IsS(t);if(this.rgCI=[],this.caption=i?null:t.caption,this.flags=i?null:t.flags,this.oP=e||null,this.id=void 0,this.autoID=0,r(this.oP))l.AutoID=0;else{var s=this.oP.rgCI;s.splice(n(o)?o:s.length,0,this),this.setAutoID()}l.AutoID+=10,this.set(i?t:t.subText)}function p(){this.rgO=new h.BiM}function c(t,e){this.oM=t,this.oI=e,this.size={width:0,height:0},this.oD=new p,this.rgVP=new h.M1,this.mI2I=e.dscnID(),this.oST=this.getTabs(),this.mVAg=null;var o=t.GetClientRect(),i=null;if(t.isWrap()&&(i={width:o[2],height:o[3]}),this.size=this.build(i),n(i)&&t.isScroll()&&t.getScrollClip()){var r=t.getScrollSize(!0);r&&(this.size.width+r>o[2]&&(i.width-=r),this.size.height+r>o[3]&&(i.height-=r),this.size=this.build(i))}}t.version="3.2",t.type="Menu",t.reqEsc=",()[]\\\"'=",t.escape=function(e){for(var o,i="",n=t.reqEsc,r=0,s=e.length;r=0&&(o="\\"+o),i+=o;return i},t.FlatEnum={exNormal:0,exShowFlat:1,exAlwaysFlat:2},t.GroupPopupEnum={exNoGroupPopup:0,exGroupPopup:1,exGroupPopupEqualWidth:16,exGroupPopupEqualHeight:32,exGroupPopupVertical:256},t.ArrangeItemsEnum={exArrangeItemsHorizontal:1,exArrangeItemsVertical:2,exArrangeItemsHideTopArrow:16,exArrangeItemsPopupAlign:32,exArrangeItemsWrap:256,exArrangeItemsScroll:512,exArrangeItemsAlignCenter:1024,exArrangeItemsAlignReverse:2048},t.ShowAsButtonEnum={exShowAsButtonNone:0,exShowAsButton:1,exShowAsSelectButton:17,exShowAsSelectButtonBottom:273,exShowAsSelectList:512},t.ShowCheckedAsSelectedEnum={exDisplayItemCheckDefault:0,exDisplayItemCheckHighlight:-1,exDisplayItemHighlight:1},t.DisplayTypeEnum={exDisplayNormal:0,exDisplayCheck:1,exDisplayRadio:2},t.ShowPopupAlignEnum={exShowPopupAlignNone:0,exShowPopupAlignDown:1,exShowPopupAlignRight:2},t.AlignContextMenuEnum={exLeftAlign:0,exCenterAlign:4,exRightAlign:8,exTopAlign:0,exVCenterAlign:16,exBottomAlign:32},t.CloseOnClickEnum={exCloseOnDefault:0,exCloseOnDisabled:1,exCloseOnSeparator:2,exCloseOnButton:4,exCloseOnCheck:8,exCloseOnRadio:16,exCloseOnState:24,exCloseOnAny:-1},t.Options={tfi:null,locked:null,readOnly:null,debug:null,wheelChange:null,items:null,criSize:null,criPad:null,criAlign:null,criFlat:null,pad:null,itemsPad:null,align:null,arrSize:null,arrangeItemsAs:null,subArrangeItemsAs:null,sepSize:null,btnPad:null,btnArrSize:null,show:null,scrollSize:null,scrollClip:null,scrollOpt:null,smoothSel:null,shapes:null,cursors:null,open:null,close:null,subOpen:null,subClose:null,outClose:null,popupRatio:null,closeOnClick:null,alignClient:null,alignContextMenu:null,allowToggleRadio:null,x:null,y:null},t.prototype.init=function(e,o){this.lI=0,this.lL=0,this.lUhI=0,this.bF=!1,this.handlers={oEF:null,oPM:null,oRI:null,rgF:null,oDI:null,oLyt:null,oLytVI:null},this.iLts(),this.oO=h.Cpy(t.Options),this.SetClientRect(e),h.CC.GetCanvas(e)&&this.SetCanvas(e),this.SetOptions(o||h.Def.Menu,!0),h.DPR.Reg(this),this.GetCanvas()||(n(this.GetX())||n(this.GetY()))&&this.Open()},h.SB.addProto(t.prototype),t.prototype.GetOptions=function(){return this.getRootMenu().oO},t.prototype.SetOptions=function(t,e){var o=!1;if(n(t)){var i=[],r=this.GetOptions();if(n(r)){for(var s in r){var u=t[s];void 0!==u&&(i.push(s),r[s]!==u&&(r[s]=h.CpV(u)))}if(e)for(var s in t)s in r||(r[s]=h.CpV(t[s]));(o=0!=i.length)&&(this.bU(),i.forEach(function(t){var e=h.setM(t);e in this&&this[e].call(this,r[t])},this),this.eU())}}return o},t.prototype.opt=function(t,e){var o=this.getRootMenu().GetOptions()[t];return r(o)&&null==(o=h.Def.Menu[t])&&(o=e),o},t.prototype.GetCanvas=function(){return this.canvas},t.prototype.SetCanvas=function(t,e){this.isRootMenu()&&this.clearFloats(),n(this.oScrollBar)&&(this.oScrollBar.SetCanvas(null),this.oScrollBar=null),this.udefSts(this.oSts),this.oSts=null,this.resAO(),t=h.CC.GetCanvas(t),h.HP.removeEventListener("onchange",this,"onimg"),t&&h.HP.addEventListener("onchange",this,"onimg"),!e&&h.CC.SetCanvas(this,t),this.canvas=t,h.CC.GetCanvas(this.canvas)&&(this.Shortcuts=this.oSts=new h.Sts,this.defSts(this.oSts))},h.ComboBox&&(t.prototype.dCBl=function(t,e,o){var i=this.oSelI;o.oO.label=i&&o.label(i.hasImage(),this.getCaption(i))||""},t.prototype.cCB=function(t){var e,o=this.e2M(t),i=!o||!o.item;return i||o&&(e=o.item)&&(i=!e.isPopup()&&!e.hasCheckRadio()),i},t.prototype.sCB=function(t){return t&&(this.oSelI=null),this.oSelI},t.prototype.SetCanvas=function(t,e){return h.ComboBox.implExHost(t,"onselect,oncheck,onuncheck")}(t.prototype.SetCanvas)),t.prototype.onimg=function(){this.Refresh()},t.prototype.SetClientRect=function(t){var e=h.CC.GetCanvas(t);e&&(t=[0,0,e.width,e.height]),this.client=h.C2R(t),this.visAO()||this.resAO(),this.onRL()},t.prototype.GetClientRect=function(){return this.client.slice()},t.prototype.GetCanvasRect=function(){var t=this.GetClientRect(),e=this.GetCanvas();return n(e)&&(t=[0,0,e.width,e.height]),t},t.prototype.GetVisibleRect=function(){return h.NRt(this.GetClientRect(),this.GetCanvasRect())},t.prototype.GetViewRect=function(){return h.EArtC(this.GetCanvas())},t.prototype.c2V=function(t,e){var o=this.GetViewRect();return r(e)&&(e=a.Y(t),t=a.X(t)),{x:t+o[0],y:e+o[1]}},t.prototype.v2C=function(t,e){var o=this.GetViewRect();return r(e)&&(e=a.Y(t),t=a.X(t)),{x:t-o[0],y:e-o[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.postrfhAO=function(){if(this.GetCanvas()){var t=this;setTimeout(function(){t.rfhAO()},0)}},t.prototype.invAll=function(){this.reverseForEachFloatMenu(function(t){t.rfhAO()}),this.rfhAO()},t.prototype.asDisabled=function(t){return!this.isSelectable()||t.asDisabled()},t.prototype.asSelectable=function(t){return!!this.isSelectable()&&t.isSelectable()},t.prototype.setAO=function(t){if(this.visAO()){var e,o=!0;this.oEF?e=this.oEF.oAO:(e=t.gAO())&&(o=!1,!e.lU&&this.onSetAO(e),e.hasOf(this)&&e.onDrawAO(this.drawAO,this)),o&&this.drawAO(t,e)}else this.resAO()},t.prototype.isAM=function(t,e){function o(t,e){var o=t.v2C(e);return h.PInR(o.x,o.y,t.GetVisibleRect())}var i=this.c2V(t,e),n=o(this,i);return this.reverseForEachFloatMenu(function(t){if(o(t,i))return n=this==t,!0},this),n},t.prototype.isAP=function(t,e){var o;return this.isEnabled()&&((o=this.W())?o.isAP(t,e):this.isAM(t,e))},t.prototype.gPtr=function(t){var e=h.e2P(t);return e=h.pS2T(e,t.target,this.GetCanvas())},t.prototype.updateHoverItem=function(t,e){var o=null;if(n(t)&&this.e2FM(t)==this){var i=this.itemFromPointer(this.gPtr(t));n(o=n(i)?i.item:null)&&o==this.getDisplayItem()&&(o=null)}if(o!=this.oHoverItem){this.oHoverItem=o;var s=this,u=this.getRootMenu();0==u.lUhI++&&this.feM(function(e){e!=this&&(e.updateHoverItem(t,!1),n(e.oHoverItem)&&(s=e))},this),u.lUhI--,(r(e)||e)&&setTimeout(function(){s.onHoverItem(s.oHoverItem),s.invAll()})}},t.prototype.onmousemove=function(t){this.updateHoverItem(t);var e,o=this.gPtr(t),i=this.getCursor(o);return(e=this.GetCanvas())&&(e.style.cursor=i||"auto"),i},t.prototype.onmouseover=function(t){},t.prototype.onmouseout=function(t){this.updateHoverItem(t)},t.prototype.onwheel=function(t){var e=this.isSelectable();if(e){e=n(this.oScrollBar)||f.Is(this);var o=this.gPtr(t);n(o)&&h.PInR(o.x,o.y,this.GetClientRect())&&this.dowheel(t)}return e},t.prototype.dowheel=function(t){var e=!1;if(h.WhelInc(t)&&n(this.oScrollBar)){var o=this.getWheelChange();if(o)for(var i=0;i=0&&(r=!t.call(e,i[u],u+1));u--);r&&t.call(e,o,0)}},t.prototype.reverseForEachFloatMenu=function(t,e){if(t instanceof Function){e=e||this;var o=this.getRootMenu().handlers.rgF;if(n(o))for(var i=o.length,r=i-1;r>=0&&!t.call(e,o[r],r);r--);}},t.prototype.getFloatPopup=function(t){var e=null;return n(t)&&t.isPopup()&&this.reverseForEachFloatMenu(function(o){if(o.handlers.oDI==t)return e=o,!0}),e},t.prototype.getItemFloatLevel=function(t){var e=-1;return r(t)?e=this.getFloatLevel():this.feM(function(o,i){if(function(t,e){return n(t.getItemRect(e))}(o,t))return e=i,!0}),e},t.prototype.getFloatLevel=function(){var t=-1;return this.feM(function(e,o){if(e==this)return t=o,!0},this),t},t.prototype.resetHandlers=function(){for(var t in this.handlers)this.handlers[t]=null},t.prototype.getParentMenu=function(){return this.handlers.oPM},t.prototype.isRootMenu=function(){return r(this.getParentMenu())},t.prototype.isTopMenu=function(){return this==this.getTopMenu()},t.prototype.clearFloats=function(t){var e=this.getRootMenu(),i=e.handlers.rgF;if(i){var n=i.length;if(n>0){var r=o(0,t=t||0);if(r=r;u--){var a=i[u];e.saveScrollPos(a),a.SetCanvas(null),h.EF.Destroy(a.handlers.oEF),s.push(a)}i.splice(t),e.endFloat(),e.invAll(),s.length&&s.forEach(function(t){e.onCloseFloatMenu(t),t.resetHandlers()})}}}},h.Def.CN.floatMenu="exmenu",t.prototype.addFloat=function(e){var o=!0,i=null,s=this.getRootMenu(),u=n(e)&&e.isPopup(),a=this.getItemFloatLevel(e),l=s.getFloatCount();if(u&&l&&l==a+1){var p=this.getFloatPopup(e);p==s.getFloat(a)&&(o=!1,i=p)}if(o){if(s.beginFloat(),this.clearFloats(a),u){var c,f,g,v,m=this.getItemRect(e),y=r(e.oP);if(m?m=this.c2Vrt(h.NRt(m,this.GetVisibleRect())):y&&(m=[this.getX(),this.getY()||0,0,0]),m&&(c=this.CSSzom(),s.handlers.rgF=s.handlers.rgF||[],f=h.EF.Create({tag:"canvas",pointerEvents:"",class:h.Def.CN.floatMenu+" "+h.Def.CN.ppEF,inner:{style:{zoom:c}}}))){g=f.oHE,v=this.getAlignClient(),i=new t(g),s.handlers.rgF.push(i),i.handlers.oEF=f,i.handlers.oPM=this,i.handlers.oRI=this.getRootItem(),i.handlers.oDI=e,i.SetClientRect(g);var d=h.pgrt(),S=this.getPopupSize(d,i.Lyt().size),C=e.getPopupRect(this,m,S);h.IRt(d,-8,-8);var P=h.IBox(C,g);if(v||h.ORt(P,-(P[0]-C[0]),-(P[1]-C[1])),y){var I=v?C:P,A=this.getAlignContextMenu(),R=A&t.AlignContextMenuEnum.exCenterAlign?2:A&t.AlignContextMenuEnum.exRightAlign?1:0,w=A&t.AlignContextMenuEnum.exVCenterAlign?2:A&t.AlignContextMenuEnum.exBottomAlign?1:0;h.ORt(P,R?-I[2]/R:0,w?-I[3]/w:0)}if(c)for(var O=0;O<4;O++)d[O]/=c;if(h.FRt(P,d),h.ORt(C,P[0]-C[0],P[1]-C[1]),h.BOf(P)>h.BOf(m)){var E=h.NRt(m,h.IBox(P,g,-1));h.EyR(E)||(P[1]=h.BOf(m),h.FRt(P,d),h.ORt(C,P[0]-C[0],P[1]-C[1]))}f.SetClient(C),i.lL++,i.handlers.oLytVI=null,i.SetClientRect(g),i.lL--,s.restoreScrollPos(i),i.inv(),this.postrfhAO()}}s.endFloat(),n(i)&&(s.onfloat(i),setTimeout(function(){s.onOpenFloatMenu(i)}))}return i},t.prototype.getFloatCount=function(){return this.handlers.rgF&&this.handlers.rgF.length||0},t.prototype.getFloat=function(t){return t>=0&&n(this.handlers.rgF)&&t0){var e=t[0];if(n(e))return e.handlers.oDI==e.handlers.oRI}return!1},t.prototype.onFloatCountChange=function(){f.OnFloatCountChange(this),this.lockScrollBars()},t.prototype.doLockScrollBars=function(){var t=this.getActiveMenu();this.feM(function(e){var o=e.oScrollBar;n(o)&&o.SetLocked(e!=t)})},t.prototype.lockScrollBars=function(){this.nTimeoutLockSBS&&clearTimeout(this.nTimeoutLockSBS);var t=this.getRootMenu();this.nTimeoutLockSBS=setTimeout(function(){t.doLockScrollBars()})},t.prototype.onRL=function(t){n(t)&&!t||this.resAO(),this.sShs=null,this.sCrs=null,this.bDebug=null,this.lL||(this.oHoverItem=null,this.handlers.oLytVI=null,this.handlers.oLyt=null),this.onRecalcScrollBar()},t.prototype.onRecalcScrollBar=function(){var t=!1;if(this.isScroll()){var e=this.getScrollRange();if(t=0!=e){if(r(this.oScrollBar)){this.oScrollBar=new h.ScrollBar(this.GetCanvas(),this.getScrollOpt()),this.oScrollBar.SetIgnoreLargeChange(!1);var o=this.oScrollBar.onchange,i=this;this.oScrollBar.onchange=function(){o.call(this),i.onscroll(this)},this.oScrollBar.SetScrollRect=this.oScrollBar.SetClientRect,this.oScrollBar.SetClientRect=function(t){}}h.CC.SetZOrd(this.oScrollBar,h.CC.GetZOrd(this)+1);var s=this.GetClientRect().slice();this.isScrollVertical()?(s[0]=h.ROf(s)-this.getScrollSize(),s[2]=this.getScrollSize()):(s[1]=h.BOf(s)-this.getScrollSize(),s[3]=this.getScrollSize()),this.oScrollBar.SetScrollRect(s),this.oScrollBar.SetInfo({range:e,page:this.getScrollPage()})}}t||n(this.oScrollBar)&&(this.oScrollBar.SetCanvas(null),this.oScrollBar=null)},t.prototype.onscroll=function(t){this.resAO(),this.handlers.oLytVI=null,this.bF=!1,this.clearFloats(this.getFloatLevel())},t.prototype.onSetAO=function(t){var e=this.getVisibleItems();if(n(e)&&!t.hasOf(this)&&this.isSelectable()){var o=this.getSmoothSel();e.forEach(function(e,i){e.forEach(function(e,r){var s=this.getPartShapes(i,r,!1);s&&(!h.EyO(s.hover)&&t.set({owner:this,id:this.idAOfH(i,r),item:i,part:r,inv:this.inv,hitTest:function(t,e,o){return!!this.isAP(t,e)&&n(this.ptInPart(t,e,o.item))},duration:o}),!h.EyO(s.click)&&t.set({owner:this,id:this.idAOfC(i,r),item:i,part:r,inv:this.inv,hitTest:function(t,e,o){return!!this.isAP(t,e)&&n(this.ptInPart(t,e,o.item))},actOn:4,duration:o}))},this)},this)}},t.prototype.BeginUpdate=function(){this.lI++,h.AO.tlA(this.gAO(),!0)},t.prototype.bU=t.prototype.BeginUpdate,t.prototype.EndUpdate=function(){--this.lI||(this.rfhAO(),h.AO.tlA(this.gAO(),!1))},t.prototype.eU=t.prototype.EndUpdate,t.prototype.Update=function(t,e){this.bU(),t&&t.call(e||this),this.eU()},t.prototype.GetClipRect=function(){var t=this.GetClientRect();if(n(this.oScrollBar)&&this.getScrollClip()){var e=this.getScrollSize();e&&(t[h[this.isScrollVertical()?"w":"h"]]-=e)}return t},t.prototype.getOrigin=function(t){var e={x:(t=t||this.GetClientRect())[0],y:t[1]},o=this.getScrollPos();return o&&(e[this.isScrollVertical()?"y":"x"]-=o),e},t.prototype.drawItem=function(t,o,i,n){function r(t,o,i){var n=t.gAO(),r=this,s=this.asDisabled(o),u=this.isOpenItem(o);i.forEach(function(i,a){!function(i,s,a){var p,c=(i=i||{}).normal||i;o.asChecked(r)&&(h.EyO(i.checked)||(c=e(i.checked,c))),r.asDisabled(o)?h.EyO(i.disabled)||(c=e(i.disabled,c)):o.isSeparator()||n&&(h.EyO(i.hover)||(p=n.get(r,r.idAOfH(o,s)))&&(c=h.R.Shape(p.state,p.range,{from:c,to:i.hover})),u?h.EyO(i.open)?h.EyO(i.click)||(c=e(i.click,c)):c=e(i.open,c):h.EyO(i.click)||(p=n.get(r,r.idAOfC(o,s)))&&(c=h.R.Shape(p.state,p.range,{from:c,to:i.click})));var f={object:o,part:s,state:o.getState()};switch(s){case l.PartEnum.exCaption:f.text=r.getCaption(o),f.formatText=(c?c.formatText:0)||0;break;case l.PartEnum.exImage:var g=o.hasImage();g&&(f.text=""+g+":"+a[2]+":"+a[3]+"",f.formatText=0)}t.drawShape(a,c,f)}(this.getPartShapes(o,a,s),a,i)},this)}var s=t.asDisabled(i);s&&h.H.lA++,r.call(t,o,i,n),s&&--h.H.lA},t.prototype.draw=function(t,e,o){var i=this.getVisibleItems(),n=this.getRootMenu();i&&(t.selClip(this.GetClipRect()),i.forEach(function(e,o){n.drawItem(this,t,o,e)},this),t.resClip())},t.prototype.getAOMaskID=function(t,e){var o="menu.hitTest.*.";return r(e)&&(e="*"),n(t)?o+=this.Lyt().op2k(t,e):o+="*:"+e,o},t.prototype.idAOfH=function(t,e){return"menu.hitTest.hover."+this.Lyt().op2k(t,e)},t.prototype.idAOfC=function(t,e){return"menu.hitTest.click."+this.Lyt().op2k(t,e)},t.prototype.isOpenItem=function(t){var e=!1;if(n(t)&&t.isPopup()&&n(this.getFloatPopup(t))&&(!this.oHoverItem||this.oHoverItem==t)){e=!0;var o=this.getParentMenu();n(o)&&(e=o.isOpenItem(this.getDisplayItem()))}return e},t.prototype.GetTfi=function(){return this.GetOptions().tfi},t.prototype.SetTfi=function(t){this.bU(),this.GetOptions().tfi=t||null,this.onRL(),this.eU()},t.prototype.getTfi=function(){return this.opt("tfi")},t.prototype.GetLocked=function(){return this.GetOptions().locked},t.prototype.SetLocked=function(t){this.bU(),this.GetOptions().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.oO.readOnly=t,this.onRL(),this.eU()},t.prototype.isReadOnly=function(){return this.opt("readOnly",!1)},t.prototype.GetDebug=function(){return this.GetOptions().debug},t.prototype.SetDebug=function(t){this.bU(),this.GetOptions().debug=t,this.onRL(),this.eU()},t.prototype.getDebug=function(){var t=this.bDebug;return r(t)&&(t=this.opt("debug",!1),this.bDebug=t),t},t.prototype.GetWheelChange=function(){return this.GetOptions().wheelChange},t.prototype.SetWheelChange=function(t){this.bU(),this.GetOptions().wheelChange=t,this.onRL(),this.eU()},t.prototype.getWheelChange=function(){return this.opt("wheelChange",1)},t.prototype.GetPad=function(){return this.GetOptions().pad},t.prototype.SetPad=function(t){this.bU(),this.GetOptions().pad=t,this.onRL(),this.eU()},t.prototype.GetItemsPad=function(){return this.GetOptions().itemsPad},t.prototype.SetItemsPad=function(t){this.bU(),this.GetOptions().itemsPad=t,this.onRL(),this.eU()},t.prototype.GetCriSize=function(){return this.GetOptions().criSize},t.prototype.SetCriSize=function(t){this.bU(),this.GetOptions().criSize=t,this.onRL(),this.eU()},t.prototype.getCriSize=function(){return o(0,h.ToN(this.opt("criSize",16),0))},t.prototype.getFlatWidth=function(){var t=[0,0,this.getCriSize(),0];return h.PRt(t,this.getDisplayItem().getPad(this)),h.PRt(t,this.getCriPad()),t[2]},t.prototype.GetCriPad=function(){return this.GetOptions().criPad},t.prototype.SetCriPad=function(t){this.bU(),this.GetOptions().criPad=t,this.onRL(),this.eU()},t.prototype.getCriPad=function(){return h.pad2A(this.opt("criPad",[0,0]))},t.prototype.GetCriAlign=function(){return this.GetOptions().criAlign},t.prototype.SetCriAlign=function(t){this.bU(),this.GetOptions().criAlign=t,this.onRL(),this.eU()},t.prototype.getCriAlign=function(){return!!this.opt("criAlign",!1)},t.prototype.GetCriFlat=function(){return this.GetOptions().criFlat},t.prototype.SetCriFlat=function(t){this.bU(),this.GetOptions().criFlat=t,this.onRL(),this.eU()},t.prototype.getCriFlat=function(){return s(this.opt("criFlat"),t.FlatEnum,t.FlatEnum.exShowFlat)},t.prototype.GetAlign=function(){return this.GetOptions().align},t.prototype.SetAlign=function(t){this.bU(),this.GetOptions().align=t,this.onRL(),this.eU()},t.prototype.getAlign=function(){var e=this.getArrangeItemsAs();return t.ArrangeItemsEnum.exArrangeItemsAlignCenter==(e&t.ArrangeItemsEnum.exArrangeItemsAlignCenter)?1:t.ArrangeItemsEnum.exArrangeItemsAlignReverse==(e&t.ArrangeItemsEnum.exArrangeItemsAlignReverse)?2:h.ToI(this.GetAlign(),-1)},t.prototype.GetArrSize=function(){return this.GetOptions().arrSize},t.prototype.SetArrSize=function(t){this.bU(),this.GetOptions().arrSize=t,this.onRL(),this.eU()},t.prototype.getArrSize=function(){return o(0,h.ToN(this.opt("arrSize",6),0))},t.prototype.GetArrangeItemsAs=function(){return s(this.GetOptions().arrangeItemsAs,h.Menu.ArrangeItemsEnum)},t.prototype.SetArrangeItemsAs=function(t){this.bU(),this.GetOptions().arrangeItemsAs=t,this.onRL(),this.eU()},t.prototype.GetSubArrangeItemsAs=function(){return s(this.GetOptions().subArrangeItemsAs,h.Menu.ArrangeItemsEnum)},t.prototype.SetSubArrangeItemsAs=function(t){this.bU(),this.GetOptions().subArrangeItemsAs=t,this.onRL(),this.eU()},t.prototype.getArrangeItemsAs=function(){return this.opt(this.isTopMenu()?"arrangeItemsAs":"subArrangeItemsAs",t.ArrangeItemsEnum.exArrangeItemsVertical|t.ArrangeItemsEnum.exArrangeItemsScroll|t.ArrangeItemsEnum.exArrangeItemsPopupAlign)},t.prototype.GetSepSize=function(){return this.GetOptions().sepSize},t.prototype.SetSepSize=function(t){this.bU(),this.GetOptions().sepSize=t,this.onRL(),this.eU()},t.prototype.getSepSize=function(){return o(0,h.ToN(this.opt("sepSize",1),0))},t.prototype.GetBtnPad=function(){return this.GetOptions().btnPad},t.prototype.SetBtnPad=function(t){this.bU(),this.GetOptions().btnPad=t,this.onRL(),this.eU()},t.prototype.getBtnPad=function(){return h.pad2A(this.opt("btnPad",[2,2]))},t.prototype.GetBtnArrSize=function(){return this.GetOptions().btnArrSize},t.prototype.SetBtnArrSize=function(t){this.bU(),this.GetOptions().btnArrSize=t,this.onRL(),this.eU()},t.prototype.getBtnArrSize=function(){return o(0,h.ToN(this.opt("btnArrSize",6),0))},t.prototype.GetShow=function(){return this.GetOptions().show},t.prototype.SetShow=function(t){this.bU(),this.GetOptions().show=t,this.onRL(),this.eU()},t.prototype.GetScrollSize=function(){return this.GetOptions().scrollSize},t.prototype.SetScrollSize=function(t){this.bU(),this.GetOptions().scrollSize=t,this.onRL(),this.eU()},t.prototype.getScrollSize=function(t){return r(this.oEF)||t?o(0,h.ToN(this.opt("scrollSize",8),0)):0},t.prototype.GetScrollClip=function(){return this.GetOptions().scrollClip},t.prototype.SetScrollClip=function(t){this.bU(),this.GetOptions().scrollClip=t,this.onRL(),this.eU()},t.prototype.getScrollClip=function(){return!!this.opt("scrollClip",!1)},t.prototype.GetScrollOpt=function(){return this.GetOptions().scrollOpt},t.prototype.SetScrollOpt=function(t){this.bU(),this.GetOptions().scrollOpt=t,this.onRL(),this.eU()},t.prototype.getScrollOpt=function(){return this.opt("scrollOpt",null)||{visibleParts:"t,b",cursors:"pointer(t,lo,b,up)",horizonalShapes:"tRange(t),range(b)",verticalShapes:"tRange(t),range(b)",wheelChange:16}},t.prototype.GetShapes=function(){return this.GetOptions().shapes},t.prototype.SetShapes=function(t){this.bU(),this.GetOptions().shapes=t,this.onRL(),this.eU()},t.prototype.getShapes=function(){var t=this.sShs;return r(t)&&(r(t=this.GetShapes())&&(t=h.Def.Menu.shapes),t=h.ToS(t,"dfitem(item),dfcap(cap),dfsep(sep),dfflat(flat),dfsub(sub),Radio(rad),CheckBox(chk),Button(btn),dfarrow(arr,rarr,barr),dfbarrow(barr)"),this.sShs=t),t},t.prototype.getTypeShape=function(t,e){if(n(e)){var o=this.getShapes();if(n(t)){var i=t.getShapes();n(i)&&(o=i)}return h.S.GetOf(e.toLowerCase(),o,"Menu")}return null},t.prototype.getPartShapes=function(t,o,i){var n=this.getTypeShape(t,o);return i&&o!=l.PartEnum.exItem&&(n=e(n,this.getTypeShape(t,l.PartEnum.exItem))),n},t.prototype.GetCursors=function(){return this.GetOptions().cursors},t.prototype.SetCursors=function(t){this.bU(),this.GetOptions().cursors=t,this.onRL(),this.eU()},t.prototype.getCursors=function(){var t=this.sCrs;return r(t)&&(r(t=this.GetCursors())&&(t=h.Def.Menu.cursors),t=h.ToS(t,"pointer(chk,rad,btn,anchor)"),this.sCrs=t),t},t.prototype.getCursor=function(t){var e,o,i,n,r,s=this.getCursors();if(this.isSelectable()&&!this.isReadOnly())if(!h.H.lA&&this.p2A(t))i=h.GP.Get("anchor",s);else if(e=this.itemFromPointer(t),(o=e&&e.item)&&(r=o.getCursors())&&(s=r),n=this.partsFromPointer(t))for(var u=0,a=n.length;!i&&ur}return t},t.prototype.getScrollRange=function(){var t=0,e=this.Lyt();return n(e)&&(t=this.isScrollVertical()?e.size.height:e.size.width)<=this.getScrollPage()&&(t=0),t},t.prototype.getScrollPage=function(){var t=this.GetClientRect();return this.isScrollVertical()?t[3]:t[2]},t.prototype.getScrollPos=function(){var t=0;return n(this.oScrollBar)&&(t=this.oScrollBar.GetValue()),t},t.prototype.setScrollPos=function(t){if(n(this.oScrollBar)){var e=this.oScrollBar.GetValue();return this.oScrollBar.SetValue(t),e!=this.oScrollBar.GetValue()}return!1},t.prototype.getID=function(){var t=0,e=this.getDisplayItem();return n(e)&&(t=e.getID()),t},t.prototype.saveScrollPos=function(t){this.rgFloatScrollPos=this.rgFloatScrollPos||new Map,this.rgFloatScrollPos.set(t.getID(),t.getScrollPos())},t.prototype.restoreScrollPos=function(t){n(this.rgFloatScrollPos)&&t.setScrollPos(this.rgFloatScrollPos.get(t.getID())||0)},t.prototype.isRURScrollEvent=function(t,e){var o=0;if(n(this.oScrollBar)){var i=this.gPtr(t);if(n(i)){e=e||this.GetVisibleRect();var r=i.x,s=h.LOf(e),u=h.ROf(e),a=i.y,l=h.TOf(e),p=h.BOf(e);if(this.isScrollVertical())ap&&(o=+Math.ceil((a-p)/16));else if(r(u=h.ROf(e))&&(o=+Math.ceil((r-u)/16))}}}return o},t.prototype.rurScroll=function(t,e){if(n(this.oScrollBar)){h.Ptr.SetTargExclPad(this.GetCanvas());var o=this.isRURScrollEvent(t,e);if(h.Ptr.ResTargExclPad(),0!=o&&this.setScrollPos(this.getScrollPos()+o))return this}return null},t.prototype.getRootMenu=function(){for(var t=this,e=null;e=t.handlers.oPM;)t=e;return t},t.prototype.getTopMenu=function(){var t=this.getRootMenu();return this.isCM()&&(t=t.handlers.rgF[0]),t},t.prototype.getRootItem=function(){var t=this.getRootMenu();return r(t.handlers.oRI)&&(t.handlers.oRI=new l(t.GetOptions().items)),t.handlers.oRI},t.prototype.getDisplayItem=function(){return this.isRootMenu()?this.getRootItem():this.handlers.oDI},t.prototype.getDisplayPath=function(){var t=[],e=this.getDisplayItem();return n(e)&&(t=e.getPath()),t},t.prototype.Lyt=function(){if(0==this.lL++&&r(this.handlers.oLyt)){var t=this.gCtx(),e=null;t&&(e=h.TFI.bCTX(t,this.getTfi())),this.handlers.oLyt=new c(this,this.getDisplayItem()),this.onlayoutchange(this.handlers.oLyt),t&&h.TFI.eCTX(t,e)}return this.lL--,this.handlers.oLyt},t.prototype.onlayoutchange=function(t){this.oLts.onlayoutchange.do(t)},t.prototype.getVisibleItems=function(){var t=this.handlers.oLytVI;if(r(t)){var e=this.Lyt();n(e)&&(t=e.getVisibleItems(this.GetClientRect(),this.getOrigin())),this.handlers.oLytVI=t}return t},t.prototype.GetItems=function(){var t="",e=this.getDisplayItem();return n(e)&&(t=e.save()),t},t.prototype.SetItems=function(t){var e=this.getRootMenu(),o=e.handlers.oRI;e.rgFloatScrollPos=null,this.GetOptions().items=n(t)?t:"";var i=[];if(n(e.handlers.rgF)&&e.handlers.rgF.forEach(function(t){i.push(t.getDisplayPath())}),n(o)&&e!=this){n(l=this.getDisplayItem())&&(l.load(t),e.GetOptions().items=o.save())}e.handlers.oRI=null,e.handlers.oLyt=null;var r=[],s=e.getRootItem();if(s)for(var u=!0,h=0,a=i.length;u&&h0&&(n.width=i(n.width,t[2]*o),n.height=i(n.height,t[3]*o),this.isScroll()&&this.getScrollClip())){var r=this.getScrollSize();e.height>e.width?n.height=0&&n(i=t.split("\\"))&&1==i.length&&(i=null),r(i))o=e(s,t);else{o=s;for(var u=0,a=i.length;o&&ur+s||u+a>r+s)&&(r=u-s+i(s,a))}else{var l=h.LOf(o),p=o[2];lr+s||l+p>r+s)&&(r=l-s+i(s,p))}this.setScrollPos(r)}}return t},t.timeoutOC=32,t.prototype.Open=function(e){function o(t,e){if(t&&!h.EyR(t.GetViewRect())){t.bF=!0;for(var o=0,i=e.length;t&&o=0&&(o.splice(i,1),n(t))){var s=h.B.split(t);s.length&&s.forEach(function(t){new l(t,e,i++)},this)}}},l.prototype.save=function(){var t="";if(t+=h.B.quoteC(this.caption),t+=h.B.quoteF(this.flags),this.rgCI.length){var e=[];this.rgCI.forEach(function(t){e.push(t.save())}),t+=h.B.quoteS(e,n(this.oP))}return t},l.prototype.setAutoID=function(){r(this.getFlag(null,"id"))&&(this.autoID=l.AutoID),this.id=this.getID()},l.prototype.getID=function(){return this.getFlag(null,"id",0)||this.autoID},l.prototype.getPathID=function(){return this.getID()||this.caption},l.prototype.getPath=function(){for(var t=[],e=this,o=null;n(o=e.oP);)t.push(e.getPathID()),e=o;return t.reverse(),t},l.prototype.findChildPathID=function(t){for(var e=null,o=0,i=this.rgCI.length;!e&&o0},l.opt=function(t,e,o){return n(t)?t.opt(e,o):o},l.prototype.getFlag=function(t,e,o){var i=o;if(n(t)&&(i=l.opt(t,e,o)),n(this.flags)){var r=this.flags.get(e.toLowerCase());if(void 0!==r){if(n(r)){var s=h.P(r);s.eatSpace(),(s.getHexa()||s.getNumber())&&(s.continue()||(r=s.result))}i=r}}return i},l.prototype.getFlagA=function(t,e,o){var i=void 0;if(n(e))for(var r=e.split(","),s=0,u=r.length;void 0===i&&s0},l.prototype.hasCaption=function(){return!!n(this.caption)&&this.caption.toString()},l.prototype.isVisible=function(){var t=this.hasCaption()||this.hasFlags()||this.hasItems();if(t){var e=this.getFlag(null,"hid");if(void 0!==e&&(t=!!parseInt(e)),t){var o=this.hasWidth();if(n(o)&&(t=o>0),t){var i=this.hasHeight();n(i)&&(t=i>0)}}}return!!t},l.prototype.setVisible=function(t){this.setFlag("hid",t?void 0:null)},l.prototype.hasCaptionWidth=function(){var t=this.getFlagA(null,"captionWidth,cw");return void 0!==t&&(t=parseInt(t)||0)>=0?t:null},l.prototype.hasCaptionHeight=function(){var t=this.getFlagA(null,"captionHeight,ch");return void 0!==t&&(t=parseInt(t)||0)>=0?t:null},l.prototype.hasHeight=function(){var t=this.getFlag(null,"height");return void 0!==t&&(t=parseInt(t)||0)>=0?t:null},l.prototype.hasWidth=function(){var t=this.getFlag(null,"width");return void 0!==t&&(t=parseInt(t)||0)>=0?t:null},l.prototype.hasSize=function(){return n(this.hasWidth())||n(this.hasHeight())},l.prototype.hasButton=function(){var e=null;return!this.isSeparator()&&void 0!==(e=this.getFlag(null,"button"))&&r(e)?t.ShowAsButtonEnum.exShowAsButton:e||null},l.prototype.showPopupOnChecked=function(){var t=this.getFlag(null,"spchk");return void 0!==t&&(t=!(!r(t)&&!t)),t||!1},l.prototype.showCheckedAsSelected=function(e){return~~this.getFlag(e,"show",t.ShowCheckedAsSelectedEnum.exDisplayItemCheckDefault)},l.prototype.isEnabled=function(){function t(t){var e=t.getFlag(null,"dis");return void 0!==e&&(e=!e),!e}for(var e=this,o=!1;(o=t(e))&&e.oP;)e=e.oP;return o},l.prototype.setEnabled=function(t){this.setFlag("dis",t?void 0:null)},l.prototype.showAsDisabled=function(){function t(t){var e=t.getFlag(null,"showDis");return void 0!==e&&(e=!e),e||!1}for(var e=this,o=!1;!(o=t(e))&&e.oP;)e=e.oP;return o},l.prototype.asDisabled=function(){return!this.isEnabled()||this.showAsDisabled()},l.prototype.hasTab=function(){return this.getFlag(null,"tab",null)},l.prototype.isSelectable=function(){var t=!1;return this.isSeparator()||(t=this.isEnabled()),t},l.prototype.getShapes=function(){var t=this.getFlag(null,"shapes");return void 0!==t?n(t)?t.toString():"":null},l.prototype.getCursors=function(){var t=this.getFlag(null,"cursors");return void 0!==t?n(t)?t.toString():"":null},l.prototype.getClose=function(){return this.getFlag(null,"close",null)},l.prototype.toString=function(){var t=n(this.caption)?this.caption.toString():"";return t&&(t+=" "),t+="["+this.getPath().join("\\")+"]"},l.prototype.getShowPopupAlign=function(e,o){var i=this.getFlagA(null,"popupalign,pa");if(void 0===i){var r=this.hasButton();if(t.ShowAsButtonEnum.exShowAsSelectButtonBottom==(r&t.ShowAsButtonEnum.exShowAsSelectButtonBottom)&&(i=t.ShowPopupAlignEnum.exShowPopupAlignDown),void 0===i&&n(e)&&e.isPopupAlign()){i=t.ShowPopupAlignEnum.exShowPopupAlignDown,e.isV()&&(i|=t.ShowPopupAlignEnum.exShowPopupAlignRight);var s=e.getItemRect(this);if(n(s)){var u=[h.ROf(s),h.TOf(s),o.width,o.height],a=[h.LOf(s),h.BOf(s),o.width,o.height],l=e.itemsFromRect(u),p=e.itemsFromRect(a);l&&!p?i=t.ShowPopupAlignEnum.exShowPopupAlignDown:p&&!l&&(i=t.ShowPopupAlignEnum.exShowPopupAlignDown|t.ShowPopupAlignEnum.exShowPopupAlignRight)}}}return h.ToI(i,t.ShowPopupAlignEnum.exShowPopupAlignRight|t.ShowPopupAlignEnum.exShowPopupAlignDown)},l.prototype.getPopupRect=function(e,o,i){var n=this.getShowPopupAlign(e,i),r=[o[0],o[1]-i.height,i.width,i.height];if(n){var s=n&t.ShowPopupAlignEnum.exShowPopupAlignDown,u=n&t.ShowPopupAlignEnum.exShowPopupAlignRight;s?u?(r[0]=h.ROf(o),r[1]=h.TOf(o)):r[1]=h.BOf(o):u&&(r[0]=h.ROf(o),r[1]=h.BOf(o)-i.height)}return r},l.prototype.forEachU=function(t,e){var o;e=e||this;for(var i,n=this.rgCI,r=0,s=n.length;!o&&r0){var o=this.rgO.getKey(parseInt(t.substr(0,e)));if(n(o))return{o:o,p:t.substr(e+1)}}}},c.prototype.getTabs=function(){var t={source:new Map,target:new Map};return this.mI2I.forEach(function(e){var o=function(t,e){if(e.getGroupPopup()){var o=e.hasTab();if(n(o)){var i=t.mI2I.get(o);if(i!=e)return i}}return null}(this,e);if(n(o)){t.source.set(e,o);var i=t.target.get(o);r(i)&&t.target.set(o,i=[]),i.push(e)}},this),t.source.size?t:null},c.prototype.op2k=function(t,e){return this.oD.op2k(t,e)},c.prototype.k2op=function(t){return this.oD.k2op(t)},c.prototype.targetGroupPopup=function(t){var e=null,o=this.oST;if(n(o)){var i=o.target.get(t);if(n(i))for(var r=0,s=i.length;!e&&r0&&u.oM.getCriFlat()){var p=h.get("e-flat");n(p)&&r(h.get(l.PartEnum.exCheck))&&r(h.get(l.PartEnum.exRadio))&&r(h.get(l.PartEnum.exImage))&&p.forEach(function(t){var i=u.k2op(t).o,r=u.op2k(i,"e-cri");o.remove(t),o.remove(r);var s=e.get(i);if(n(s)){var h=s.get(t)[2]+2*i.getPad()[0];s.remove(t),s.remove(r);var a=s.get(u.op2k(i,l.PartEnum.exItem));n(a)&&(a[0]+=h,a[2]-=h),s.offset(-h,0)}})}}}(this);var u=c.getUnionBuildItems(e,i);return n(u)&&(t?this.extItemsWidth(o,i,u[2]):this.offItemsHeight(e,i,u[3]),this.extItemsSep(t,o,i,u)),u},c.prototype.build=function(e){function i(t,e){return y.op2k(t,e)}function s(){return{width:m.getArrSize(),height:m.getArrSize()}}function u(e){if(y.isV(e)&&e==v)switch(m.getCriFlat()){case t.FlatEnum.exShowFlat:return e.itemsShowCRI(m);case t.FlatEnum.exAlwaysFlat:return!0}return!1}function a(t){var e=y.k2op(t);return!e||e.p.sWith("e-")}function p(o){var a=new h.M1,p=y.isV(o),c=0,g=0,d=0,S=null;if(y.getItems(o).forEach(function(t){var e=R.get(t);r(e)&&R.set(t,e=f(t)),e.origin(),S=h.URts(S,e.union())}),n(S)){var C=y.isGroupPopupEqualSize(o);if(C){var P={width:C&t.GroupPopupEnum.exGroupPopupEqualWidth?S[2]:null,height:C&t.GroupPopupEnum.exGroupPopupEqualHeight?S[3]:null};y.getItems(o).forEach(function(t){var e=R.get(t);h.EqR(S,e.union())||R.set(t,e=f(t,P))})}}var I=n(e)&&o==v,A=y.getItems(o),w=null;A.forEach(function(t){var o=R.get(t),i=o.union();if(n(i)&&I)if(r(w))w=[t];else if(p)if(g+i[3]0&&r.forEach(function(e){var o=t.get(e);o&&h.ORt(o,0,p)})}}}(w,t,e)}}),this.rgVP=function(t){var e=new h.M1;return t.forEach(function(t,o){a(o)||e.set(o,t)}),e}(w);var E=this.rgVP.union();E&&(g.width=E[2],g.height=E[3])}}return g},c.prototype.itemFromPoint=function(t,e){var o=null,i=this.rgVP.p2O(t,e);if(n(i)){var r=this.k2op(i);n(r)&&(o={item:r.o,part:r.p})}return o},c.prototype.ptInPart=function(t,e,o,i){var r=null;if(o||i){var s=this.rgVP.p2O(t,e);if(n(s)){var u=this.k2op(s).o,h=this.rgVP.p2rgO(t,e);if(h)for(var a=h.length,l=0;!r&&l=0&&(g=setTimeout(function(){h.RUR.Rng()||(p.bF=!1,p.clearFloats())},e))}}function a(t){var o=(t=t.getRootMenu()).getFloatCount();n(p)&&(o&&t==p||function(){if(p){var t=p.getRootMenu();l(),s(),h.win.removeEventListener("mousedown",e),h.win.removeEventListener("mousemove",u),h.win.removeEventListener(h.wheel,e),h.supportTouch&&h.win.removeEventListener("touchstart",e),h.win.removeEventListener("keydown",i),c&&(h.CC.prototype.ondown=c,c=null),p.clearFloats(),p=null,setTimeout(function(){t.onEndModal()})}}()),o&&r(p)&&function(t){if(r(p)&&n(t)){t.getRootMenu().onStartModal(),v++,h.win.addEventListener("mousedown",e),t.isCM()||h.win.addEventListener("mousemove",u),h.win.addEventListener(h.wheel,e),h.supportTouch&&h.win.addEventListener("touchstart",e),h.win.addEventListener("keydown",i),p=t,c=h.CC.prototype.ondown,h.CC.prototype.ondown=function(t){var o=c;return e(t),o&&o.call(this,t)},setTimeout(function(){v--})}}(t)}function l(){n(f)&&clearTimeout(f),f=null}var p=null,c=null,f=null,g=null,v=0,m=0;return{Is:t,OnFloatCountChange:a,OnHover:function(e,o){if(0==m++&&(l(),n(o)&&(r(p)||t(e))))if(o.isPopup()&&e.asSelectable(o)){var i=e.getTimeout("Open"),s=r(o.hasButton());s&&(s=i>=0||e.isRootMenu()&&e.bF&&e.getTimeout("Close")>=0)&&(f=setTimeout(function(){e.addFloat(o)},i))}else(i=e.getTimeout("Close"))>=0&&(f=setTimeout(function(){e.clearFloats(e.getFloatLevel())},i));m--},LockHover:function(){0==m++&&l()},UnlockHover:function(){m=o(0,m-1)}}}();return h.expOL({root:null,parent:null,path:null,state:null},l.prototype),h.expO({image:null},l.prototype,null,!1,h.expL("has")),h.expO({visible:null,enabled:null},l.prototype,null,!1,h.expL("is")),h.expO(h.Mrg({Options:null},t.Options),t.prototype),{Menu:t}}()),t.Menu=h.Menu});