var CodeMirror=(function(){function n(Y,bc){var bm={},a6=n.defaults;for(var bA in a6){if(a6.hasOwnProperty(bA)){bm[bA]=(bc&&bc.hasOwnProperty(bA)?bc:a6)[bA]}}var bR=bm.document;var by=bR.createElement("div");by.className="CodeMirror";by.innerHTML='
"),ch,"")}aX.style.display="none";b2.innerHTML=cg.join("");var cd=String(bY.length).length,b9=b2.firstChild,ca=v(b9),cc="";while(ca.length+cc.length
x
";aE.firstChild.firstChild.firstChild.nodeValue=b9;return aE.firstChild.firstChild.offsetWidth||10}function W(b9,ca){if(ca==0){return 0}aE.innerHTML=""+bY[b9].getHTML(null,null,false,ca)+"
";return aE.firstChild.firstChild.offsetWidth}function bl(cl,cf){if(cf<=0){return 0}var cc=bY[cl],ci=cc.text;function cj(cm){aE.innerHTML=""+cc.getHTML(null,null,false,cm)+"
";return aE.firstChild.firstChild.offsetWidth}var cg=0,ce=0,ch=ci.length,cd;var ca=Math.min(ch,Math.ceil(cf/a0("x")));for(;;){var cb=cj(ca);if(cb<=cf&&cax";return aE.firstChild.offsetHeight||1}function bh(){return aP.offsetTop}function bv(){return aP.offsetLeft}function ai(ce,cd){var cc=R(aL,true),b9,cf;try{b9=ce.clientX;cf=ce.clientY}catch(ce){return null}if(!cd&&(b9-cc.left>aL.clientWidth||cf-cc.top>aL.clientHeight)){return null}var cb=R(aP,true);var ca=bp+Math.floor((cf-cb.top)/bX());return ap({line:ca,ch:bl(a7(ca),b9-cb.left)})}function aw(ca){var ce=ai(ca);if(!ce||window.opera){return}if(L(aZ.from,aZ.to)||H(ce,aZ.from)||!H(ce,aZ.to)){bZ(a2)(ce.line,ce.ch)}var cd=b4.style.cssText;b7.style.position="absolute";b4.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(ca.clientY-5)+"px; left: "+(ca.clientX-5)+"px; z-index: 1000; background: white; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";bU=true;var cc=b4.value=bP();ax();b(b4,0,b4.value.length);function b9(){var cf=r(b4.value).join("\n");if(cf!=cc){bZ(ar)(cf,"end")}b7.style.position="relative";b4.style.cssText=cd;bU=false;aJ();bJ()}if(A){o(ca);var cb=l(window,"mouseup",function(){cb();setTimeout(b9,20)},true)}else{setTimeout(b9,50)}}function T(){clearInterval(an);var b9=true;ak.style.visibility="";an=setInterval(function(){ak.style.visibility=(b9=!b9)?"":"hidden"},650)}var b5={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};function aA(cf){var b9=aZ.inverted?aZ.from:aZ.to,ci=bY[b9.line],ca=b9.ch-1;var ce=(ca>=0&&b5[ci.text.charAt(ca)])||b5[ci.text.charAt(++ca)];if(!ce){return}var cj=ce.charAt(0),cg=ce.charAt(1)==">",ct=cg?1:-1,co=ci.styles;for(var cu=ca+1,cq=0,cs=co.length;cq
")}function aj(ar,i){if(!ar){return}if(i){Y.push('',B(ar),"")}else{Y.push(B(ar))}}var ad=this.styles,W=this.text,ac=this.marked;if(ae==ai){ae=null}var al=W.length;if(ag!=null){al=Math.min(ag,al)}if(!W&&ag==null){aj(" ",ae!=null&&ai==null?"CodeMirror-selected":null)}else{if(!ac&&ae==null){for(var ak=0,Z=0;Z")}return Y.join("")}};function Q(Y,Z,S,aa){for(var W=0,X=0,T=0;Xal){af=af.slice(0,al-Z)}Z+=ah;aj(af,am&&"cm-"+am)}}else{var U=0,ak=0,ab="",am,ap=0;var an=-1,X=null;function ao(){if(ac){an+=1;X=(an U){aa=ae}else{if(ai==null||ai>U){aq=" CodeMirror-selected";if(ai!=null){aa=Math.min(aa,ai)}}}}while(X&&X.to!=null&&X.to<=U){ao()}if(X){if(X.from>U){aa=Math.min(aa,X.from)}else{aq+=" "+X.style;if(X.to!=null){aa=Math.min(aa,X.to)}}}for(;;){var T=U+ab.length;var S=am;if(aq){S=am?am+aq:aq}aj(T>aa?ab.slice(0,aa-U):ab,S);if(T>=aa){ab=ab.slice(aa-U);U=aa;break}U=T;ab=ad[ak++];am="cm-"+ad[ak++]}}if(ae!=null&&ai==null){aj(" ","CodeMirror-selected")}}}if(V){Y.push("
Q)){G+=I(Q-H)*(G-K)/(H-L);H=Q}if((L>A&&yA)){x-=I(A-y)*(x-K)/(y-L);y=A}return{x1:G,y1:H,x2:x,y2:y}},smooth:function(R,D){var E=this.path2curve(R),N=[E[0]],K=E[0][1],L=E[0][2],C,A,y=1,J=E.length,M=1,H=K,I=L,P=0,Q=0;for(;y=d.x&&e<=(d.x+d.width)&&f>=d.y&&f<=(d.y+d.height))},parseGradient:function(m){var r=this,q=m.type||"linear",t=m.angle||0,o=r.radian,l=m.stops,v=[],n,u,p,s;if(q=="linear"){u=[0,0,Math.cos(t*o),Math.sin(t*o)];p=1/(Math.max(Math.abs(u[2]),Math.abs(u[3]))||1);u[2]*=p;u[3]*=p;if(u[2]<0){u[0]=-u[2];u[2]=0}if(u[3]<0){u[1]=-u[3];u[3]=0}}for(n in l){if(l.hasOwnProperty(n)&&r.stopsRE.test(n)){s={offset:parseInt(n,10),color:Ext.draw.Color.toHex(l[n].color)||"#ffffff",opacity:l[n].opacity||1};v.push(s)}}Ext.Array.sort(v,r.sorter);if(q=="linear"){return{id:m.id,type:q,vector:u,stops:v}}else{return{id:m.id,type:q,centerX:m.centerX,centerY:m.centerY,focalX:m.focalX,focalY:m.focalY,radius:m.radius,vector:u,stops:v}}}});Ext.define("Ext.fx.PropertyHandler",{requires:["Ext.draw.Draw"],statics:{defaultHandler:{pixelDefaultsRE:/width|height|top$|bottom$|left$|right$/i,unitRE:/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/,scrollRE:/^scroll/i,computeDelta:function(j,p,r,m,k){r=(typeof r=="number")?r:1;var l=this.unitRE,o=l.exec(j),q,n;if(o){j=o[1];n=o[2];if(!this.scrollRE.test(k)&&!n&&this.pixelDefaultsRE.test(k)){n="px"}}j=+j||0;o=l.exec(p);if(o){p=o[1];n=o[2]||n}p=+p||0;q=(m!=null)?m:j;return{from:j,delta:(p-q)*r,units:n}},get:function(i,w,x,j,q){var o=i.length,u=[],t,r,p,v,s;for(t=0;t =s){l=s;v=true}if(o.reverse){l=s-l}for(r in m){if(m.hasOwnProperty(r)){n=m[r];p=v?1:t(l/s);q[r]=u[r].set(n,p)}}return q},lastFrame:function(){var f=this,e=f.iterations,d=f.currentIteration;d++;if(d 0},isExpandable:function(){var b=this;if(b.get("expandable")){return !(b.isLeaf()||(b.isLoaded()&&!b.hasChildNodes()))}return false},appendChild:function(q,i,k){var m=this,p,n,o,l,r;if(Ext.isArray(q)){for(p=0,n=q.length;p 0){Ext.Array.sort(m,k);for(n=0;n =h.length){i=0}}var l=h.getAt(i);if(j.canActivateItem(l)){j.setActiveItem(l);break}i+=k}},isWhitelisted:function(b){return Ext.FocusManager.isWhitelisted(b)},left:function(e){var h=this.menu,g=h.focusedItem,f=h.activeItem;if(g&&this.isWhitelisted(g)){return true}h.hide();if(h.parentMenu){h.parentMenu.focus()}},right:function(j){var i=this.menu,h=i.focusedItem,g=i.activeItem,e;if(h&&this.isWhitelisted(h)){return true}if(g){e=i.activeItem.menu;if(e){g.expandMenu(0);Ext.defer(function(){e.setActiveItem(e.items.getAt(0))},25)}}},tab:function(c){var d=this;if(c.shiftKey){d.up(c)}else{d.down(c)}},up:function(d){var e=this,f=e.menu.focusedItem;if(f&&d.getKey()==Ext.EventObject.UP&&e.isWhitelisted(f)){return true}e.focusNextItem(-1)}});Ext.define("Ext.menu.Manager",{singleton:true,requires:["Ext.util.MixedCollection","Ext.util.KeyMap"],alternateClassName:"Ext.menu.MenuMgr",uses:["Ext.menu.Menu"],menus:{},groups:{},attached:false,lastShow:new Date(),init:function(){var b=this;b.active=Ext.create("Ext.util.MixedCollection");Ext.getDoc().addKeyListener(27,function(){if(b.active.length>0){b.hideAll()}},b)},hideAll:function(){var d=this.active,c;if(d&&d.length>0){c=d.clone();c.each(function(a){a.hide()});return true}return false},onHide:function(e){var d=this,f=d.active;f.remove(e);if(f.length<1){Ext.getDoc().un("mousedown",d.onMouseDown,d);d.attached=false}},onShow:function(i){var l=this,k=l.active,m=k.last(),n=l.attached,h=i.getEl(),j;l.lastShow=new Date();k.add(i);if(!n){Ext.getDoc().on("mousedown",l.onMouseDown,l);l.attached=true}i.toFront()},onBeforeHide:function(b){if(b.activeChild){b.activeChild.hide()}if(b.autoHideTimer){clearTimeout(b.autoHideTimer);delete b.autoHideTimer}},onBeforeShow:function(e){var f=this.active,d=e.parentMenu;f.remove(e);if(!d&&!e.allowOtherMenus){this.hideAll()}else{if(d&&d.activeChild&&e!=d.activeChild){d.activeChild.hide()}}},onMouseDown:function(h){var e=this,i=e.active,g=e.lastShow,j=h.target;if(Ext.Date.getElapsed(g)>50&&i.length>0&&!h.getTarget("."+Ext.baseCSSPrefix+"menu")){e.hideAll();if(Ext.isIE&&Ext.fly(j).focusable()){j.focus()}}},register:function(c){var d=this;if(!d.active){d.init()}if(c.floating){d.menus[c.id]=c;c.on({beforehide:d.onBeforeHide,hide:d.onHide,beforeshow:d.onBeforeShow,show:d.onShow,scope:d})}},get:function(c){var d=this.menus;if(typeof c=="string"){if(!d){return null}return d[c]}else{if(c.isMenu){return c}else{if(Ext.isArray(c)){return Ext.create("Ext.menu.Menu",{items:c})}else{return Ext.ComponentManager.create(c,"menu")}}}},unregister:function(g){var f=this,e=f.menus,h=f.active;delete e[g.id];h.remove(g);g.un({beforehide:f.onBeforeHide,hide:f.onHide,beforeshow:f.onBeforeShow,show:f.onShow,scope:f})},registerCheckable:function(f){var e=this.groups,d=f.group;if(d){if(!e[d]){e[d]=[]}e[d].push(f)}},unregisterCheckable:function(f){var e=this.groups,d=f.group;if(d){Ext.Array.remove(e[d],f)}},onCheckChange:function(o,m){var j=this.groups,p=o.group,i=0,k,n,l;if(p&&m){k=j[p];n=k.length;for(;i /,beforeLayout:function(){return this.callParent(arguments)||this.lastText!==this.owner.text},onLayout:function(B,q){var t=this,x=Ext.isNumber,A=t.owner,r=A.el,w=A.btnEl,z=A.btnInnerEl,y=A.btnIconEl,v=(A.icon||A.iconCls)&&(A.iconAlign=="top"||A.iconAlign=="bottom"),C=A.minWidth,s=A.maxWidth,D,p,u;t.getTargetInfo();t.callParent(arguments);z.unclip();t.setTargetSize(B,q);if(!x(B)){if(A.text&&(Ext.isIE6||Ext.isIE7)&&Ext.isStrict&&w&&w.getWidth()>20){p=t.btnFrameWidth;u=Ext.util.TextMetrics.measure(z,A.text);r.setWidth(u.width+p+t.adjWidth);w.setWidth(u.width+p);z.setWidth(u.width+p);if(v){y.setWidth(u.width+p)}}else{r.setWidth(null);w.setWidth(null);z.setWidth(null);y.setWidth(null)}if(C||s){D=r.getWidth();if(C&&(D s)){z.clip();t.setTargetSize(s,q)}}}}this.lastText=A.text},setTargetSize:function(v,l){var p=this,u=p.owner,r=Ext.isNumber,s=u.btnInnerEl,n=(r(v)?v-p.adjWidth:v),q=(r(l)?l-p.adjHeight:l),t=p.btnFrameHeight,m=u.getText(),o;p.callParent(arguments);p.setElementSize(u.btnEl,n,q);p.setElementSize(s,n,q);if(q>=0){s.setStyle("line-height",q-t+"px")}if(m&&this.htmlRE.test(m)){s.setStyle("line-height","normal");o=Ext.util.TextMetrics.measure(s,m).height;s.setStyle("padding-top",p.btnFrameTop+Math.max(s.getHeight()-t-o,0)/2+"px");p.setElementSize(s,n,q)}},getTargetInfo:function(){var l=this,i=l.owner,m=i.el,n=l.frameSize,j=i.frameBody,h=i.btnWrap,k=i.btnInnerEl;if(!("adjWidth" in l)){Ext.apply(l,{adjWidth:n.left+n.right+m.getBorderWidth("lr")+m.getPadding("lr")+h.getPadding("lr")+(j?j.getFrameWidth("lr"):0),adjHeight:n.top+n.bottom+m.getBorderWidth("tb")+m.getPadding("tb")+h.getPadding("tb")+(j?j.getFrameWidth("tb"):0),btnFrameWidth:k.getFrameWidth("lr"),btnFrameHeight:k.getFrameWidth("tb"),btnFrameTop:k.getFrameWidth("t")})}return l.callParent()}});Ext.define("Ext.layout.component.Tab",{alias:["layout.tab"],extend:"Ext.layout.component.Button",beforeLayout:function(){var c=this,d=c.lastClosable!==c.owner.closable;if(d){delete c.adjWidth}return this.callParent(arguments)||d},onLayout:function(){var b=this;b.callParent(arguments);b.lastClosable=b.owner.closable}});Ext.define("Ext.state.Manager",{singleton:true,requires:["Ext.state.Provider"],constructor:function(){this.provider=Ext.create("Ext.state.Provider")},setProvider:function(b){this.provider=b},get:function(c,d){return this.provider.get(c,d)},set:function(d,c){this.provider.set(d,c)},clear:function(b){this.provider.clear(b)},getProvider:function(){return this.provider}});Ext.define("Ext.state.Stateful",{mixins:{observable:"Ext.util.Observable"},requires:["Ext.state.Manager"],stateful:true,saveDelay:100,autoGenIdRe:/^((\w+-)|(ext-comp-))\d{4,}$/i,constructor:function(d){var c=this;d=d||{};if(Ext.isDefined(d.stateful)){c.stateful=d.stateful}if(Ext.isDefined(d.saveDelay)){c.saveDelay=d.saveDelay}c.stateId=c.stateId||d.stateId;if(!c.stateEvents){c.stateEvents=[]}if(d.stateEvents){c.stateEvents.concat(d.stateEvents)}this.addEvents("beforestaterestore","staterestore","beforestatesave","statesave");c.mixins.observable.constructor.call(c);if(c.stateful!==false){c.initStateEvents();c.initState()}},initStateEvents:function(){this.addStateEvents(this.stateEvents)},addStateEvents:function(h){if(!Ext.isArray(h)){h=[h]}var g=this,e=0,f=h.length;for(;e 0){if(!c.stateTask){c.stateTask=Ext.create("Ext.util.DelayedTask",c.saveState,c)}c.stateTask.delay(c.saveDelay)}else{c.saveState()}},saveState:function(){var e=this,f,d;if(e.stateful!==false){f=e.getStateId();if(f){d=e.getState();if(e.fireEvent("beforestatesave",e,d)!==false){Ext.state.Manager.set(f,d);e.fireEvent("statesave",e,d)}}}},getState:function(){return null},applyState:function(b){if(b){Ext.apply(this,b)}},getStateId:function(){var d=this,c=d.stateId;if(!c){c=d.autoGenIdRe.test(String(d.id))?null:d.id}return c},initState:function(){var e=this,f=e.getStateId(),d;if(e.stateful!==false){if(f){d=Ext.state.Manager.get(f);if(d){d=Ext.apply({},d);if(e.fireEvent("beforestaterestore",e,d)!==false){e.applyState(d);e.fireEvent("staterestore",e,d)}}}}},savePropToState:function(i,j,k){var g=this,l=g[i],h=g.initialConfig;if(g.hasOwnProperty(i)){if(!h||h[i]!==l){if(j){j[k||i]=l}return true}}return false},savePropsToState:function(f,d){var e=this;Ext.each(f,function(a){e.savePropToState(a,d)});return d},destroy:function(){var b=this.stateTask;if(b){b.cancel()}this.clearListeners()}});Ext.define("Ext.AbstractComponent",{requires:["Ext.ComponentQuery","Ext.ComponentManager"],mixins:{observable:"Ext.util.Observable",animate:"Ext.util.Animate",state:"Ext.state.Stateful"},uses:["Ext.PluginManager","Ext.ComponentManager","Ext.Element","Ext.DomHelper","Ext.XTemplate","Ext.ComponentQuery","Ext.ComponentLoader","Ext.EventManager","Ext.layout.Layout","Ext.layout.component.Auto","Ext.LoadMask","Ext.ZIndexManager"],statics:{AUTO_ID:1000},isComponent:true,getAutoId:function(){return ++Ext.AbstractComponent.AUTO_ID},renderTpl:null,tplWriteMode:"overwrite",baseCls:Ext.baseCSSPrefix+"component",disabledCls:Ext.baseCSSPrefix+"item-disabled",ui:"default",uiCls:[],hidden:false,disabled:false,draggable:false,floating:false,hideMode:"display",styleHtmlContent:false,styleHtmlCls:Ext.baseCSSPrefix+"html",autoShow:false,autoRender:false,needsLayout:false,allowDomMove:true,rendered:false,componentLayoutCounter:0,weight:0,trimRe:/^\s+|\s+$/g,spacesRe:/\s+/,maskOnDisable:true,constructor:function(e){var g=this,h,f;e=e||{};g.initialConfig=e;Ext.apply(g,e);g.addEvents("beforeactivate","activate","beforedeactivate","deactivate","added","disable","enable","beforeshow","show","beforehide","hide","removed","beforerender","render","afterrender","beforedestroy","destroy","resize","move");g.getId();g.mons=[];g.additionalCls=[];g.renderData=g.renderData||{};g.renderSelectors=g.renderSelectors||{};if(g.plugins){g.plugins=[].concat(g.plugins);g.constructPlugins()}g.initComponent();Ext.ComponentManager.register(g);g.mixins.observable.constructor.call(g);g.mixins.state.constructor.call(g,e);this.addStateEvents("resize");if(g.plugins){g.plugins=[].concat(g.plugins);for(h=0,f=g.plugins.length;h q){r=l.height;t=true}if(l.width&&l.width>p){h=l.width;t=true}if(t){var m=!Ext.isNumber(o.width),n=!Ext.isNumber(o.height);o.componentLayout.childrenChanged=true;o.setSize(h,r,o.ownerCt);o.el.setSize(p,q);if(m){delete o.width}if(n){delete o.height}}}return o.mixins.animate.animate.apply(o,arguments)},findLayoutController:function(){return this.findParentBy(function(b){return !b.ownerCt||(b.layout.layoutBusy&&!b.ownerCt.layout.layoutBusy)})},onShow:function(){var b=this.needsLayout;if(Ext.isObject(b)){this.doComponentLayout(b.width,b.height,b.isSetSize,b.ownerCt)}},constructPlugin:function(b){if(b.ptype&&typeof b.init!="function"){b.cmp=this;b=Ext.PluginManager.create(b)}else{if(typeof b=="string"){b=Ext.PluginManager.create({ptype:b,cmp:this})}}return b},constructPlugins:function(){var g=this,e=g.plugins,h,f;if(e){for(h=0,f=e.length;h ',' ',"",' {parent.baseCls}-{parent.ui}-{.}-tl " style="background-position: {tl}; padding-left: {frameWidth}px" role="presentation">','',' {parent.baseCls}-{parent.ui}-{.}-tr " style="background-position: {tr}; padding-right: {frameWidth}px" role="presentation">','','{parent.baseCls}-{parent.ui}-{.}-tc " style="background-position: {tc}; height: {frameWidth}px" role="presentation">',' {parent.baseCls}-{parent.ui}-{.}-ml " style="background-position: {ml}; padding-left: {frameWidth}px" role="presentation">','',' {parent.baseCls}-{parent.ui}-{.}-mr " style="background-position: {mr}; padding-right: {frameWidth}px" role="presentation">','','{parent.baseCls}-{parent.ui}-{.}-mc " role="presentation">',' "],frameTableTpl:["'," {parent.baseCls}-{parent.ui}-{.}-bl " style="background-position: {bl}; padding-left: {frameWidth}px" role="presentation">','',' {parent.baseCls}-{parent.ui}-{.}-br " style="background-position: {br}; padding-right: {frameWidth}px" role="presentation">','','{parent.baseCls}-{parent.ui}-{.}-bc " style="background-position: {bc}; height: {frameWidth}px" role="presentation">",'
"],initFrame:function(){if(Ext.supports.CSS3BorderRadius){return false}var h=this,i=h.getFrameInfo(),f=i.width,g=h.getFrameTpl(i.table),j;if(h.frame){h.frameGenId=j=(h.frameGenId||0)+1;j=h.id+"-frame"+j;g.insertFirst(h.el,Ext.apply({},{fgid:j,ui:h.ui,uiCls:h.uiCls,frameCls:h.frameCls,baseCls:h.baseCls,frameWidth:f,top:!!i.top,left:!!i.left,right:!!i.right,bottom:!!i.bottom},h.getFramePositions(i)));h.frameBody=h.el.down("."+h.frameCls+"-mc");h.removeChildEls(function(a){return a.id&&h.frameIdRegex.test(a.id)});Ext.each(["TL","TC","TR","ML","MC","MR","BL","BC","BR"],function(a){h.childEls.push({name:"frame"+a,id:j+a})})}},updateFrame:function(){if(Ext.supports.CSS3BorderRadius){return false}var l=this,j=this.frameSize&&this.frameSize.table,k=this.frameTL,m=this.frameBL,n=this.frameML,i=this.frameMC,h;this.initFrame();if(i){if(l.frame){delete l.frameTL;delete l.frameTC;delete l.frameTR;delete l.frameML;delete l.frameMC;delete l.frameMR;delete l.frameBL;delete l.frameBC;delete l.frameBR;this.applyRenderSelectors();h=this.frameMC.dom.className;i.insertAfter(this.frameMC);this.frameMC.remove();this.frameBody=this.frameMC=i;i.dom.className=h;if(j){l.el.query("> table")[1].remove()}else{if(k){k.remove()}if(m){m.remove()}n.remove()}}else{}}else{if(l.frame){this.applyRenderSelectors()}}},getFrameInfo:function(){if(Ext.supports.CSS3BorderRadius){return false}var l=this,i=l.el.getStyle("background-position-x"),j=l.el.getStyle("background-position-y"),k,g=false,h;if(!i&&!j){k=l.el.getStyle("background-position").split(" ");i=k[0];j=k[1]}if(parseInt(i,10)>=1000000&&parseInt(j,10)>=1000000){h=Math.max;g={table:i.substr(0,3)=="110",vertical:j.substr(0,3)=="110",top:h(i.substr(3,2),i.substr(5,2)),right:h(i.substr(5,2),j.substr(3,2)),bottom:h(j.substr(3,2),j.substr(5,2)),left:h(j.substr(5,2),i.substr(3,2))};g.width=h(g.top,g.right,g.bottom,g.left);l.el.setStyle("background-image","none")}if(l.frame===true&&!g){Ext.Error.raise("You have set frame: true explicity on this component while it doesn't have any framing defined in the CSS template. In this case IE can't figure out what sizes to use and thus framing on this component will be disabled.")}l.frame=l.frame||!!g;l.frameSize=g||false;return g},getFramePositions:function(n){var l=this,k=n.width,j=l.dock,o,q,m,p,r;if(n.vertical){q="0 -"+(k*0)+"px";m="0 -"+(k*1)+"px";if(j&&j=="right"){q="right -"+(k*0)+"px";m="right -"+(k*1)+"px"}o={tl:"0 -"+(k*0)+"px",tr:"0 -"+(k*1)+"px",bl:"0 -"+(k*2)+"px",br:"0 -"+(k*3)+"px",ml:"-"+(k*1)+"px 0",mr:"right 0",tc:q,bc:m}}else{p="-"+(k*0)+"px 0";r="right 0";if(j&&j=="bottom"){p="left bottom";r="right bottom"}o={tl:"0 -"+(k*2)+"px",tr:"right -"+(k*3)+"px",bl:"0 -"+(k*4)+"px",br:"right -"+(k*5)+"px",ml:p,mr:r,tc:"0 -"+(k*0)+"px",bc:"0 -"+(k*1)+"px"}}return o},getFrameTpl:function(b){return b?this.getTpl("frameTableTpl"):this.getTpl("frameTpl")},initCls:function(){var c=this,d=[];d.push(c.baseCls);if(Ext.isDefined(c.cmpCls)){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.Component: cmpCls has been deprecated. Please use componentCls.")}c.componentCls=c.cmpCls;delete c.cmpCls}if(c.componentCls){d.push(c.componentCls)}else{c.componentCls=c.baseCls}if(c.cls){d.push(c.cls);delete c.cls}return d.concat(c.additionalCls)},setUI:function(k){var l=this,h=Ext.Array.clone(l.uiCls),j=[],m=[],i,n;for(n=0;n'," ","",' ","',' {parent.baseCls}-{parent.ui}-{.}-tl " style="background-position: {tl}; padding-left:{frameWidth}px" role="presentation">',' {parent.baseCls}-{parent.ui}-{.}-tc " style="background-position: {tc}; height: {frameWidth}px" role="presentation">'," {parent.baseCls}-{parent.ui}-{.}-tr " style="background-position: {tr}; padding-left: {frameWidth}px" role="presentation">",' ",'',' {parent.baseCls}-{parent.ui}-{.}-ml " style="background-position: {ml}; padding-left: {frameWidth}px" role="presentation">',' {parent.baseCls}-{parent.ui}-{.}-mc " style="background-position: 0 0;" role="presentation">'," {parent.baseCls}-{parent.ui}-{.}-mr " style="background-position: {mr}; padding-left: {frameWidth}px" role="presentation">'," ","",' ","',' {parent.baseCls}-{parent.ui}-{.}-bl " style="background-position: {bl}; padding-left: {frameWidth}px" role="presentation">',' {parent.baseCls}-{parent.ui}-{.}-bc " style="background-position: {bc}; height: {frameWidth}px" role="presentation">'," {parent.baseCls}-{parent.ui}-{.}-br " style="background-position: {br}; padding-left: {frameWidth}px" role="presentation">=0;g--){if((h=j.getAt(g)).is(c)){return h}}}else{if(g){return j.getAt(--g)}}}}return null},previousNode:function(n,m){var j=this,h,k,i,l;if(m&&j.is(n)){return j}h=this.prev(n);if(h){return h}if(j.ownerCt){for(k=j.ownerCt.items.items,l=Ext.Array.indexOf(k,j)-1;l>-1;l--){if(k[l].query){h=k[l].query(n);h=h[h.length-1];if(h){return h}}}return j.ownerCt.previousNode(n,true)}},nextNode:function(n,m){var j=this,h,k,i,l;if(m&&j.is(n)){return j}h=this.next(n);if(h){return h}if(j.ownerCt){for(k=j.ownerCt.items,l=k.indexOf(j)+1,k=k.items,i=k.length;l',' ',""],baseCls:Ext.baseCSSPrefix+"splitter",collapsedClsInternal:Ext.baseCSSPrefix+"splitter-collapsed",collapsible:false,collapseOnDblClick:true,defaultSplitMin:40,defaultSplitMax:1000,width:5,height:5,collapseTarget:"next",onRender:function(){var e=this,d=e.getCollapseTarget(),f=e.getCollapseDirection();Ext.applyIf(e.renderData,{collapseDir:f,collapsible:e.collapsible||d.collapsible});e.addChildEls("collapseEl");this.callParent(arguments);if(e.performCollapse!==false){if(e.renderData.collapsible){e.mon(e.collapseEl,"click",e.toggleTargetCmp,e)}if(e.collapseOnDblClick){e.mon(e.el,"dblclick",e.toggleTargetCmp,e)}}e.mon(d,"collapse",e.onTargetCollapse,e);e.mon(d,"expand",e.onTargetExpand,e);e.el.addCls(e.baseCls+"-"+e.orientation);e.el.unselectable();e.tracker=Ext.create("Ext.resizer.SplitterTracker",{el:e.el});e.relayEvents(e.tracker,["beforedragstart","dragstart","dragend"])},getCollapseDirection:function(){var f=this,e,d=f.ownerCt.layout.type;if(f.collapseTarget.isComponent){e=Number(f.ownerCt.items.indexOf(f.collapseTarget)==f.ownerCt.items.indexOf(f)-1)<<1|Number(d=="hbox")}else{e=Number(f.collapseTarget=="prev")<<1|Number(d=="hbox")}f.orientation=["horizontal","vertical"][e&1];return["bottom","right","top","left"][e]},getCollapseTarget:function(){var b=this;return b.collapseTarget.isComponent?b.collapseTarget:b.collapseTarget=="prev"?b.previousSibling():b.nextSibling()},onTargetCollapse:function(b){this.el.addCls([this.collapsedClsInternal,this.collapsedCls])},onTargetExpand:function(b){this.el.removeCls([this.collapsedClsInternal,this.collapsedCls])},toggleTargetCmp:function(f,e){var d=this.getCollapseTarget();if(d.isVisible()){if(d.collapsed){d.expand(d.animCollapse)}else{d.collapse(this.renderData.collapseDir,d.animCollapse)}}},setSize:function(){var b=this;b.callParent(arguments);if(Ext.isIE){b.el.repaint()}}});Ext.define("Ext.form.field.Base",{extend:"Ext.Component",mixins:{labelable:"Ext.form.Labelable",field:"Ext.form.field.Field"},alias:"widget.field",alternateClassName:["Ext.form.Field","Ext.form.BaseField"],requires:["Ext.util.DelayedTask","Ext.XTemplate","Ext.layout.component.field.Field"],fieldSubTpl:['name="{name}" ','size="{size}" ','tabIndex="{tabIdx}" ','class="{fieldCls} {typeCls}" autocomplete="off" />',{compiled:true,disableFormats:true}],inputType:"text",invalidText:"The value in this field is invalid",fieldCls:Ext.baseCSSPrefix+"form-field",focusCls:Ext.baseCSSPrefix+"form-focus",dirtyCls:Ext.baseCSSPrefix+"form-dirty",checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<9)?["change","propertychange"]:["change","input","textInput","keyup","dragdrop"],checkChangeBuffer:50,componentLayout:"field",readOnly:false,readOnlyCls:Ext.baseCSSPrefix+"form-readonly",validateOnBlur:true,hasFocus:false,baseCls:Ext.baseCSSPrefix+"field",maskOnDisable:false,initComponent:function(){var b=this;b.callParent();b.subTplData=b.subTplData||{};b.addEvents("focus","blur","specialkey");b.initLabelable();b.initField();if(!b.name){b.name=b.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=Ext.id())},getSubTplData:function(){var f=this,d=f.inputType,e=f.getInputId();return Ext.applyIf(f.subTplData,{id:e,cmpId:f.id,name:f.name||e,type:d,size:f.size||20,cls:f.cls,fieldCls:f.fieldCls,tabIdx:f.tabIndex,typeCls:Ext.baseCSSPrefix+"form-"+(d==="password"?"text":d)})},afterRender:function(){this.callParent();if(this.inputEl){this.inputEl.selectable()}},getSubTplMarkup:function(){return this.getTpl("fieldSubTpl").apply(this.getSubTplData())},initRenderTpl:function(){var b=this;if(!b.hasOwnProperty("renderTpl")){b.renderTpl=b.getTpl("labelableRenderTpl")}return b.callParent()},initRenderData:function(){return Ext.applyIf(this.callParent(),this.getLabelableRenderData())},setFieldStyle:function(e){var d=this,f=d.inputEl;if(f){f.applyStyles(e)}d.fieldStyle=e},onRender:function(){var c=this,d=c.fieldStyle;c.onLabelableRender();c.addChildEls({name:"inputEl",id:c.getInputId()});c.callParent(arguments);c.setRawValue(c.rawValue);if(c.readOnly){c.setReadOnly(true)}if(c.disabled){c.disable()}if(d){c.setFieldStyle(d)}c.renderActiveError()},initAria:function(){var b=this;b.callParent();b.getActionEl().dom.setAttribute("aria-describedby",Ext.id(b.errorEl))},getFocusEl:function(){return this.inputEl},isFileUpload:function(){return this.inputType==="file"},extractFileInput:function(){var d=this,e=d.isFileUpload()?d.inputEl.dom:null,f;if(e){f=e.cloneNode(true);e.parentNode.replaceChild(f,e);d.inputEl=Ext.get(f)}return e},getSubmitData:function(){var e=this,d=null,f;if(!e.disabled&&e.submitValue&&!e.isFileUpload()){f=e.getSubmitValue();if(f!==null){d={};d[e.getName()]=f}}return d},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var c=this,d=(c.inputEl?c.inputEl.getValue():Ext.value(c.rawValue,""));c.rawValue=d;return d},setRawValue:function(c){var d=this;c=Ext.value(c,"");d.rawValue=c;if(d.inputEl){d.inputEl.dom.value=c}return c},valueToRaw:function(b){return""+Ext.value(b,"")},rawToValue:function(b){return b},processRawValue:function(b){return b},getValue:function(){var d=this,c=d.rawToValue(d.processRawValue(d.getRawValue()));d.value=c;return c},setValue:function(c){var d=this;d.setRawValue(d.valueToRaw(c));return d.mixins.field.setValue.call(d,c)},onDisable:function(){var d=this,c=d.inputEl;d.callParent();if(c){c.dom.disabled=true}},onEnable:function(){var d=this,c=d.inputEl;d.callParent();if(c){c.dom.disabled=false}},setReadOnly:function(f){var e=this,d=e.inputEl;if(d){d.dom.readOnly=f;d.dom.setAttribute("aria-readonly",f)}e[f?"addCls":"removeCls"](e.readOnlyCls);e.readOnly=f},fireKey:function(b){if(b.isSpecialKey()){this.fireEvent("specialkey",this,Ext.create("Ext.EventObjectImpl",b))}},initEvents:function(){var e=this,h=e.inputEl,f,g;if(h){e.mon(h,Ext.EventManager.getKeyEvent(),e.fireKey,e);e.mon(h,"focus",e.onFocus,e);e.mon(h,"blur",e.onBlur,e,e.inEditor?{buffer:10}:null);f=Ext.create("Ext.util.DelayedTask",e.checkChange,e);e.onChangeEvent=g=function(){f.delay(e.checkChangeBuffer)};Ext.each(e.checkChangeEvents,function(a){if(a==="propertychange"){e.usesPropertychange=true}e.mon(h,a,g)},e)}e.callParent()},doComponentLayout:function(){var j=this,i=j.inputEl,g=j.usesPropertychange,f="propertychange",h=j.onChangeEvent;if(g){j.mun(i,f,h)}j.callParent(arguments);if(g){j.mon(i,f,h)}},preFocus:Ext.emptyFn,onFocus:function(){var d=this,e=d.focusCls,f=d.inputEl;d.preFocus();if(e&&f){f.addCls(e)}if(!d.hasFocus){d.hasFocus=true;d.componentLayout.onFocus();d.fireEvent("focus",d)}},beforeBlur:Ext.emptyFn,onBlur:function(){var d=this,e=d.focusCls,f=d.inputEl;if(d.destroying){return}d.beforeBlur();if(e&&f){f.removeCls(e)}if(d.validateOnBlur){d.validate()}d.hasFocus=false;d.fireEvent("blur",d);d.postBlur()},postBlur:Ext.emptyFn,onDirtyChange:function(b){this[b?"addCls":"removeCls"](this.dirtyCls)},isValid:function(){var b=this;return b.disabled||b.validateValue(b.processRawValue(b.getRawValue()))},validateValue:function(e){var f=this,g=f.getErrors(e),h=Ext.isEmpty(g);if(!f.preventMark){if(h){f.clearInvalid()}else{f.markInvalid(g)}}return h},markInvalid:function(f){var d=this,e=d.getActiveError();d.setActiveErrors(Ext.Array.from(f));if(e!==d.getActiveError()){d.doComponentLayout()}},clearInvalid:function(){var c=this,d=c.hasActiveError();c.unsetActiveError();if(d){c.doComponentLayout()}},renderActiveError:function(){var c=this,d=c.hasActiveError();if(c.inputEl){c.inputEl[d?"addCls":"removeCls"](c.invalidCls+"-field")}c.mixins.labelable.renderActiveError.call(c)},getActionEl:function(){return this.inputEl||this.el}});Ext.define("Ext.form.field.Text",{extend:"Ext.form.field.Base",alias:"widget.textfield",requires:["Ext.form.field.VTypes","Ext.layout.component.field.Text"],alternateClassName:["Ext.form.TextField","Ext.form.Text"],size:20,growMin:30,growMax:800,growAppend:"W",allowBlank:true,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:"The minimum length for this field is {0}",maxLengthText:"The maximum length for this field is {0}",blankText:"This field is required",regexText:"",emptyCls:Ext.baseCSSPrefix+"form-empty-field",ariaRole:"textbox",componentLayout:"textfield",initComponent:function(){this.callParent();this.addEvents("autosize","keydown","keyup","keypress")},initEvents:function(){var c=this,d=c.inputEl;c.callParent();if(c.selectOnFocus||c.emptyText){c.mon(d,"mousedown",c.onMouseDown,c)}if(c.maskRe||(c.vtype&&c.disableKeyFilter!==true&&(c.maskRe=Ext.form.field.VTypes[c.vtype+"Mask"]))){c.mon(d,"keypress",c.filterKeys,c)}if(c.enableKeyEvents){c.mon(d,{scope:c,keyup:c.onKeyUp,keydown:c.onKeyDown,keypress:c.onKeyPress})}},isEqual:function(c,d){return this.isEqualAsString(c,d)},onChange:function(){this.callParent();this.autoSize()},afterRender:function(){var b=this;if(b.enforceMaxLength){b.inputEl.dom.maxLength=b.maxLength}b.applyEmptyText();b.autoSize();b.callParent()},onMouseDown:function(c){var d=this;if(!d.hasFocus){d.mon(d.inputEl,"mouseup",Ext.emptyFn,d,{single:true,preventDefault:true})}},processRawValue:function(e){var f=this,g=f.stripCharsRe,h;if(g){h=e.replace(g,"");if(h!==e){f.setRawValue(h);e=h}}return e},onDisable:function(){this.callParent();if(Ext.isIE){this.inputEl.dom.unselectable="on"}},onEnable:function(){this.callParent();if(Ext.isIE){this.inputEl.dom.unselectable=""}},onKeyDown:function(b){this.fireEvent("keydown",this,b)},onKeyUp:function(b){this.fireEvent("keyup",this,b)},onKeyPress:function(b){this.fireEvent("keypress",this,b)},reset:function(){this.callParent();this.applyEmptyText()},applyEmptyText:function(){var d=this,e=d.emptyText,f;if(d.rendered&&e){f=d.getRawValue().length<1&&!d.hasFocus;if(Ext.supports.Placeholder){d.inputEl.dom.placeholder=e}else{if(f){d.setRawValue(e)}}if(f){d.inputEl.addCls(d.emptyCls)}d.autoSize()}},preFocus:function(){var e=this,h=e.inputEl,f=e.emptyText,g;if(f&&!Ext.supports.Placeholder&&h.dom.value===f){e.setRawValue("");g=true;h.removeCls(e.emptyCls)}else{if(Ext.supports.Placeholder){e.inputEl.removeCls(e.emptyCls)}}if(e.selectOnFocus||g){h.dom.select()}},onFocus:function(){var b=this;b.callParent(arguments);if(b.emptyText){b.autoSize()}},postBlur:function(){this.applyEmptyText()},filterKeys:function(f){if(f.ctrlKey&&!f.altKey){return}var d=f.getKey(),e=String.fromCharCode(f.getCharCode());if(Ext.isGecko&&(f.isNavKeyPress()||d===f.BACKSPACE||(d===f.DELETE&&f.button===-1))){return}if(!Ext.isGecko&&f.isSpecialKey()&&!e){return}if(!this.maskRe.test(e)){f.stopEvent()}},getRawValue:function(){var c=this,d=c.callParent();if(d===c.emptyText){d=""}return d},setValue:function(d){var e=this,f=e.inputEl;if(f&&e.emptyText&&!Ext.isEmpty(d)){f.removeCls(e.emptyCls)}e.callParent(arguments);e.applyEmptyText();return e},getErrors:function(l){var q=this,m=q.callParent(arguments),v=q.validator,s=q.emptyText,t=q.allowBlank,r=q.vtype,p=Ext.form.field.VTypes,o=q.regex,n=Ext.String.format,u;l=l||q.processRawValue(q.getRawValue());if(Ext.isFunction(v)){u=v.call(q,l);if(u!==true){m.push(u)}}if(l.length<1||l===s){if(!t){m.push(q.blankText)}return m}if(l.lengthq.maxLength){m.push(n(q.maxLengthText,q.maxLength))}if(r){if(!p[r](l,q)){m.push(q.vtypeText||p[r+"Text"])}}if(o&&!o.test(l)){m.push(q.regexText||q.invalidText)}return m},selectText:function(k,j){var l=this,p=l.getRawValue(),o=true,m=l.inputEl.dom,n,i;if(p.length>0){k=k===n?0:k;j=j===n?p.length:j;if(m.setSelectionRange){m.setSelectionRange(k,j)}else{if(m.createTextRange){i=m.createTextRange();i.moveStart("character",k);i.moveEnd("character",j-p.length);i.select()}}o=Ext.isGecko||Ext.isOpera}if(o){l.focus()}},autoSize:function(){var c=this,d;if(c.grow&&c.rendered){c.doComponentLayout();d=c.inputEl.getWidth();if(d!==c.lastInputWidth){c.fireEvent("autosize",d);c.lastInputWidth=d}}},initAria:function(){this.callParent();this.getActionEl().dom.setAttribute("aria-required",this.allowBlank===false)},getBodyNaturalWidth:function(){return Math.round(this.size*6.5)+20}});Ext.define("Ext.form.field.Trigger",{extend:"Ext.form.field.Text",alias:["widget.triggerfield","widget.trigger"],requires:["Ext.DomHelper","Ext.util.ClickRepeater","Ext.layout.component.field.Trigger"],alternateClassName:["Ext.form.TriggerField","Ext.form.TwinTriggerField","Ext.form.Trigger"],fieldSubTpl:['name="{name}" ',' size="{size}" ','tabIndex="{tabIdx}" ','class="{fieldCls} {typeCls}" autocomplete="off" />','',"{triggerEl}",'',"",{compiled:true,disableFormats:true}],triggerBaseCls:Ext.baseCSSPrefix+"form-trigger",triggerWrapCls:Ext.baseCSSPrefix+"form-trigger-wrap",hideTrigger:false,editable:true,readOnly:false,repeatTriggerClick:false,autoSize:Ext.emptyFn,monitorTab:true,mimicing:false,triggerIndexRe:/trigger-index-(\d+)/,componentLayout:"triggerfield",initComponent:function(){this.wrapFocusCls=this.triggerWrapCls+"-focus";this.callParent(arguments)},onRender:function(o,j){var n=this,k,m=n.triggerBaseCls,l=n.triggerWrapCls,i=[],p;if(!n.trigger1Cls){n.trigger1Cls=n.triggerCls}for(p=0;(k=n["trigger"+(p+1)+"Cls"])||p<1;p++){i.push({cls:[Ext.baseCSSPrefix+"trigger-index-"+p,m,k].join(" "),role:"button"})}i[p-1].cls+=" "+m+"-last";n.addChildEls("triggerWrap");Ext.applyIf(n.subTplData,{triggerWrapCls:l,triggerEl:Ext.DomHelper.markup(i),clearCls:n.clearCls});n.callParent(arguments);n.triggerEl=Ext.select("."+m,true,n.triggerWrap.dom);n.doc=Ext.getDoc();n.initTrigger()},onEnable:function(){this.callParent();this.triggerWrap.unmask()},onDisable:function(){this.callParent();this.triggerWrap.mask()},afterRender:function(){this.callParent();this.updateEditState();this.triggerEl.unselectable()},updateEditState:function(){var l=this,j=l.inputEl,h=l.triggerWrap,k=Ext.baseCSSPrefix+"trigger-noedit",g,i;if(l.rendered){if(l.readOnly){j.addCls(k);i=true;g=false}else{if(l.editable){j.removeCls(k);i=false}else{j.addCls(k);i=true}g=!l.hideTrigger}h.setDisplayed(g);j.dom.readOnly=i;l.doComponentLayout()}},getTriggerWidth:function(){var f=this,d=f.triggerWrap,e=0;if(d&&!f.hideTrigger&&!f.readOnly){f.triggerEl.each(function(a){e+=a.getWidth()});e+=f.triggerWrap.getFrameWidth("lr")}return e},setHideTrigger:function(b){if(b!=this.hideTrigger){this.hideTrigger=b;this.updateEditState()}},setEditable:function(b){if(b!=this.editable){this.editable=b;this.updateEditState()}},setReadOnly:function(b){if(b!=this.readOnly){this.readOnly=b;this.updateEditState()}},initTrigger:function(){var f=this,e=f.triggerWrap,d=f.triggerEl;if(f.repeatTriggerClick){f.triggerRepeater=Ext.create("Ext.util.ClickRepeater",e,{preventDefault:true,handler:function(b,a){f.onTriggerWrapClick(a)}})}else{f.mon(f.triggerWrap,"click",f.onTriggerWrapClick,f)}d.addClsOnOver(f.triggerBaseCls+"-over");d.each(function(b,a,c){b.addClsOnOver(f["trigger"+(c+1)+"Cls"]+"-over")});d.addClsOnClick(f.triggerBaseCls+"-click");d.each(function(b,a,c){b.addClsOnClick(f["trigger"+(c+1)+"Cls"]+"-click")})},onDestroy:function(){var b=this;Ext.destroyMembers(b,"triggerRepeater","triggerWrap","triggerEl");delete b.doc;b.callParent()},onFocus:function(){var b=this;b.callParent();if(!b.mimicing){b.bodyEl.addCls(b.wrapFocusCls);b.mimicing=true;b.mon(b.doc,"mousedown",b.mimicBlur,b,{delay:10});if(b.monitorTab){b.on("specialkey",b.checkTab,b)}}},checkTab:function(d,c){if(!this.ignoreMonitorTab&&c.getKey()==c.TAB){this.triggerBlur()}},onBlur:Ext.emptyFn,mimicBlur:function(b){if(!this.isDestroyed&&!this.bodyEl.contains(b.target)&&this.validateBlur(b)){this.triggerBlur()}},triggerBlur:function(){var b=this;b.mimicing=false;b.mun(b.doc,"mousedown",b.mimicBlur,b);if(b.monitorTab&&b.inputEl){b.un("specialkey",b.checkTab,b)}Ext.form.field.Trigger.superclass.onBlur.call(b);if(b.bodyEl){b.bodyEl.removeCls(b.wrapFocusCls)}},beforeBlur:Ext.emptyFn,validateBlur:function(b){return true},onTriggerWrapClick:function(i){var j=this,k=i&&i.getTarget("."+Ext.baseCSSPrefix+"form-trigger",null),l=k&&k.className.match(j.triggerIndexRe),h,e;if(l&&!j.readOnly){h=parseInt(l[1],10);e=j["onTrigger"+(h+1)+"Click"]||j.onTriggerClick;if(e){e.call(j,i)}}},onTriggerClick:Ext.emptyFn});Ext.define("Ext.container.AbstractContainer",{extend:"Ext.Component",requires:["Ext.util.MixedCollection","Ext.layout.container.Auto","Ext.ZIndexManager"],suspendLayout:false,autoDestroy:true,defaultType:"panel",isContainer:true,layoutCounter:0,baseCls:Ext.baseCSSPrefix+"container",bubbleEvents:["add","remove"],initComponent:function(){var b=this;b.addEvents("afterlayout","beforeadd","beforeremove","add","remove");b.layoutOnShow=Ext.create("Ext.util.MixedCollection");b.callParent();b.initItems()},initItems:function(){var c=this,d=c.items;c.items=Ext.create("Ext.util.MixedCollection",false,c.getComponentId);if(d){if(!Ext.isArray(d)){d=[d]}c.add(d)}},afterRender:function(){this.getLayout();this.callParent()},renderChildren:function(){var c=this,d=c.getLayout();c.callParent();if(d){c.suspendLayout=true;d.renderChildren();delete c.suspendLayout}},setLayout:function(c){var d=this.layout;if(d&&d.isLayout&&d!=c){d.setOwner(null)}this.layout=c;c.setOwner(this)},getLayout:function(){var b=this;if(!b.layout||!b.layout.isLayout){b.setLayout(Ext.layout.Layout.create(b.layout,"autocontainer"))}return b.layout},doLayout:function(){var c=this,d=c.getLayout();if(c.rendered&&d&&!c.suspendLayout){if(!c.isFixedWidth()||!c.isFixedHeight()){if(c.componentLayout.layoutBusy!==true){c.doComponentLayout();if(c.componentLayout.layoutCancelled===true){d.layout()}}}else{if(d.layoutBusy!==true){d.layout()}}}return c},afterLayout:function(b){++this.layoutCounter;this.fireEvent("afterlayout",this,b)},prepareItems:function(f,i){if(!Ext.isArray(f)){f=[f]}var j=0,g=f.length,h;for(;j1;if(t||Ext.isArray(o[0])){n=t?o:o[0];m.suspendLayout=true;for(r=0,p=n.length;r "+b)[0]||null},down:function(b){return this.query(b)[0]||null},show:function(){this.callParent(arguments);this.performDeferredLayouts();return this},performDeferredLayouts:function(){var h=this.layoutOnShow,i=h.getCount(),f=0,g,j;for(;f','','','',''," or ",'Register',""],initComponent:function(){this.loginTpl=Ext.create("Ext.Template",this.loginTplHtml.join(""));this.callParent(arguments)},showLoginForm:function(){this.update(this.loginTpl.apply());this.getEl().down("form").on("submit",this.submitLogin,this,{preventDefault:true})},submitLogin:function(o,i){var p=Ext.get(i),k=p.down("input[name=username]").getValue(),j=p.down("input[name=password]").getValue(),m=p.down("input[name=remember]"),n=p.down("input[type=submit]");var l=m?Boolean(m.getAttribute("checked")):false;Docs.App.getController("Auth").login(k,j,l,n)},showLoggedIn:function(b){this.update("Welcome, "+b+' | Logout')},showLoggedOut:function(){this.update('Sign in / Register')}});Ext.define("Docs.view.comments.Index",{extend:"Ext.container.Container",alias:"widget.commentindex",cls:"comment-index iScroll",margin:"10 0 0 0",autoScroll:true,items:[{xtype:"container",html:'
Recent Comments
Hide read: '},{xtype:"container",id:"recentcomments"}],getTab:function(){return Docs.enableComments?{cls:"comments",href:"#!/comment",tooltip:"Comments"}:false}});Ext.define("Docs.view.Comments",{singleton:true,requires:["Docs.view.auth.Login"],constructor:function(){var g=['','View {[values.num == 1 ? "1 comment" : values.num + " comments"]}'," ",'',"No comments. Click to add"," "];this.numCommentsTpl=Ext.create("Ext.XTemplate",g.join(""));var j=['','','',g.join(""),"",""];this.loadingTpl=Ext.create("Ext.Template",'Loading...');this.classCommentsTpl=Ext.create("Ext.XTemplate",'','");this.commentsMetaTpl=Ext.create("Ext.XTemplate",j.join(""));this.memberCommentsTpl=Ext.create("Ext.Template",'{0}');var h=['Comments
',j.join(""),"','"];var i={dateStr:function(e){try{var l=Math.ceil(Number(new Date())/1000),a=Math.ceil(Number(new Date(e))/1000),c=l-a,b;if(c<60){return"just now"}else{if(c<3600){b=String(Math.ceil(c/(60)));return b+(b=="1"?" minute":" minutes")+" ago"}else{if(c<86400){b=String(Math.ceil(c/(3600)));return b+(b=="1"?" hour":" hours")+" ago"}else{if(c<60*60*24*31){b=String(Math.ceil(c/(60*60*24)));return b+(b=="1"?" day":" days")+" ago"}else{if(c<60*60*24*365){b=String(Math.ceil(c/(60*60*24*31)));return b+(b=="1"?" month":" months")+" ago"}else{return Ext.Date.format(new Date(e),"jS M 'y")}}}}}}catch(d){return""}},date:function(b){try{return Ext.Date.format(new Date(b),"jS F Y g:ia")}catch(a){return""}},isMod:function(){return Docs.App.getController("Auth").currentUser.mod},isAuthor:function(a){return Docs.App.getController("Auth").currentUser.userName==a},target:function(b){var c=b[1],a=b[1],d="#!/api/";if(b[0]=="video"){a="Video "+a;d="#!/video/"}else{if(b[0]=="guide"){a="Guide "+a;d="#!/guide/"}else{if(b[2]!=""){c+="-"+b[2];a+=" "+b[2]}}}return' ",''+a+""},recentCommentsPager:Ext.Function.bind(function(b){var a=b[b.length-1];if(a&&a.total_rows){return['{contentHtml}',"',this.getPagerHtml(a),""].join("")}else{return""}},this)};this.commentsTpl=Ext.create("Ext.XTemplate",'','","{[this.recentCommentsPager(values)]}",i);this.appendCommentsTpl=Ext.create("Ext.XTemplate",'',h.join("")," ",'',"',h.join("")," ",i);this.commentTpl=Ext.create("Ext.XTemplate",h.join(""),i);var f=[' ",' "];this.loggedInCommentTpl=Ext.create("Ext.XTemplate",'','","");this.editCommentTpl=Ext.create("Ext.XTemplate",'");if(Ext.isIE&&Ext.ieVersion<=7){this.loggedOutCommentTpl=Ext.create("Ext.XTemplate",'','Sorry, adding comments is not supported in IE 7 or earlier',"")}else{this.loggedOutCommentTpl=Ext.create("Ext.XTemplate",'','Sign in to post a comment:',Docs.view.auth.Login.prototype.loginTplHtml.join(""),"")}},getPagerHtml:function(h){var e=h.total_rows;var f=h.offset+h.limit;var g=Math.min(h.limit,e-f);if(e>f){return["",'',"Showing comments 1-"+f+" of "+e+". ","Click to load "+g+" more...",""].join("")}else{return"That's all. Total "+e+" comments."}},renderClassCommentContainers:function(b){Ext.ComponentQuery.query("classoverview toolbar")[0].insert(-2,{xtype:"container",id:"classCommentToolbarBtn",width:24,margin:"0 4 0 0",cls:"comment-btn",html:"0"});this.classCommentsTpl.insertFirst(Ext.query(".members")[0],{num:0,id:"class-"+b.name.replace(/\./g,"-")});Ext.Array.each(Ext.query(".member .long"),function(a){var d=Ext.get(a).up(".member").getAttribute("id");this.commentsMetaTpl.append(a,{num:0,id:"class-"+b.name.replace(/\./g,"-")+"-"+d.replace(/\./g,"-")})},this)},updateClassCommentMeta:function(c){var d=Docs.commentMeta["class"][c];if(d&&d[""]){Ext.getCmp("classCommentToolbarBtn").update(d[""]);this.numCommentsTpl.overwrite(Ext.get(Ext.query(".comments-section a.name")[0]),{num:d[""]})}else{Ext.getCmp("classCommentToolbarBtn").update("0");this.numCommentsTpl.overwrite(Ext.get(Ext.query(".comments-section a.name")[0]),{num:0})}Ext.Array.each(Ext.query(".member"),function(k){var b=Ext.get(k),p=b.getAttribute("id"),a=b.down(".meta .defined-in").getAttribute("rel"),m=b.down(".comments-div a.name"),l=b.down(".title"),n=Docs.commentMeta["class"][a]&&Docs.commentMeta["class"][a][p],o=l.down(".toggleMemberComments");if(n){this.numCommentsTpl.overwrite(m,{num:n});if(o){o.update(String(n))}else{this.memberCommentsTpl.append(l,[n])}}else{if(o){o.remove()}}},this);this.updateClassIndex();Ext.Array.each(Ext.ComponentQuery.query("hovermenu"),function(a){a.fireEvent("refresh",this)})},updateGuideCommentMeta:function(d){var c=Docs.commentMeta.guide[d];this.numCommentsTpl.overwrite(Ext.get(Ext.query("#guide .comments-section a.name")[0]),{num:c&&c[""]?c[""]:0})},updateVideoCommentMeta:function(d){var c=Docs.commentMeta.video[d];this.numCommentsTpl.overwrite(Ext.get(Ext.query("#video .comments-section a.name")[0]),{num:c&&c[""]?c[""]:0})},renderHoverMenuMeta:function(b){Ext.Array.each(b.query("a.docClass"),function(k){var l="comments-class-"+k.getAttribute("rel").replace(/[^A-Za-z\-]/g,"-"),a=Ext.get(k),h=a.down(".toggleMemberComments"),j=Docs.commentMeta.idMap[l];if(j&&Docs.commentMeta[j[0]]&&Docs.commentMeta[j[0]][j[1]]){var i=Docs.commentMeta[j[0]][j[1]][j[2]];if(h){if(!i){h.remove()}else{h.update(String(i))}}else{if(i){this.memberCommentsTpl.append(k,[i||0])}}}},this)},updateClassIndex:function(){for(var e in Docs.commentMeta["class"]){var d=Ext.get(Ext.query('#classindex a[rel="'+e+'"]')[0]);if(d){var f=d.down(".toggleMemberComments");if(f){f.update(String(Docs.commentMeta["class"][e]["total"]))}else{Docs.view.Comments.memberCommentsTpl.append(d,[String(Docs.commentMeta["class"][e]["total"])])}}}},renderNewCommentForms:function(){var b=Docs.App.getController("Auth").currentUser;Ext.Array.each(Ext.query(".new-comment-wrap"),function(f){var h=Ext.get(f).up(".comment-list").parent().hasCls("hideCommentForm");if(h){}else{if(Docs.App.getController("Auth").isLoggedIn()){var g=this.loggedInCommentTpl.overwrite(f,b,true),a=g.down("textarea").dom;this.makeCodeMirror(a,g)}else{this.loggedOutCommentTpl.overwrite(f,{})}}},this)},makeCodeMirror:function(e,d){e.editor=CodeMirror.fromTextArea(e,{enterMode:"keep",mode:"markdown",indentUnit:4});var f=(d&&d.down(".commentAction"));if(f){f.on("change",function(c,b){var a=Ext.get(b).getValue();d.select(".note").setStyle({display:"none"});if(a==="question"){d.down(".postCommentWrap").setStyle({display:"none"});d.down(".note.question").setStyle({display:"block"})}else{if(a==="problem"){d.down(".postCommentWrap").setStyle({display:"block"});d.down(".note.problem").setStyle({display:"block"})}else{d.down(".postCommentWrap").setStyle({display:"block"})}}})}},showMember:function(f,g){var e=Ext.get(g).down(".long"),h=("class-"+f+"-"+g).replace(/\./g,"-");if(!e.hasCls("renderedComment")){this.commentsMetaTpl.append(e,{num:0,id:h});e.addCls("renderedComment");Docs.App.getController("CommentsMeta").commentIdMap["comments-"+h]=["class",f,g]}}});Ext.define("Docs.view.cls.Index",{extend:"Ext.container.Container",alias:"widget.classindex",requires:["Docs.ContentGrabber"],cls:"class-categories iScroll",margin:"15 10",autoScroll:true,initComponent:function(){this.tpl=new Ext.XTemplate('API Documentation
','',' ","{categories}");this.data={notice:Docs.ContentGrabber.get("notice-text"),categories:Docs.ContentGrabber.get("categories-content")};this.callParent(arguments)},getTab:function(){var b=(Docs.data.classes||[]).length>0;return b?{cls:"classes",href:"#!/api",tooltip:"API Documentation"}:false}});Ext.define("Docs.view.guides.Container",{extend:"Ext.container.Container",alias:"widget.guidecontainer",componentCls:"guide-container",initComponent:function(){this.addEvents("afterload");this.callParent(arguments)},scrollToEl:function(g){var h=Ext.get(g);if(h){var e=h.getY()-100;var f=this.getEl().getScroll()["top"];this.getEl().scrollTo("top",f+e);h.highlight()}},scrollToTop:function(){this.getEl().scrollTo("top")},load:function(b){this.tpl=this.tpl||new Ext.XTemplate(Docs.data.showPrintButton?'Print':"","{content}");this.update(this.tpl.apply(b));Docs.Syntax.highlight(this.getEl());this.fireEvent("afterload")}});Ext.define("Docs.view.videos.Container",{extend:"Ext.container.Container",alias:"widget.videocontainer",componentCls:"video-container",load:function(b){this.tpl=this.tpl||new Ext.XTemplate('","{notice}',"{title}
","{[this.linkify(values.description)]}
",{linkify:function(a){return a.replace(/(\bhttps?:\/\/\S+)/ig,"$1")}});this.update(this.tpl.apply(b))},listeners:{hide:function(){var b=document.getElementById("video_player");if(b&&b.api_pause){b.api_pause()}}}});Ext.define("Docs.view.examples.Container",{extend:"Ext.container.Container",alias:"widget.examplecontainer",layout:"fit",initComponent:function(){this.tpl=new Ext.XTemplate('');this.callParent(arguments)},load:function(b){this.update(this.tpl.apply(b))},clear:function(){this.update("")}});Ext.define("Docs.view.cls.Header",{extend:"Ext.container.Container",padding:"10 0 17 0",height:55,alias:"widget.classheader",cls:"classheader",initComponent:function(){this.tpl=Ext.create("Ext.XTemplate",'','
",Docs.data.showPrintButton?'Print':"",{getClass:function(b){if(b.component){return"component"}else{if(b.singleton){return"singleton"}else{return"class"}}},renderAliases:function(e){var f={widget:"xtype",plugin:"ptype",feature:"ftype"};var d=[];e&&Ext.Object.each(e,function(a,b){d.push((f[a]||a)+": "+b.join(", "))});if(d.length>0){return""+d.join(", ")+""}else{return""}}});this.on("render",this.initSourceLink,this);this.callParent()},initSourceLink:function(){this.classLinkEvent("click",function(){var d=this.loadedCls.files;if(d.length===1){window.open("source/"+d[0].href)}else{var c=this.createFileMenu(d);c.showBy(this,undefined,[58,-20])}},this);this.classLinkEvent("mouseover",function(){this.el.down(".class-source-tip").addCls("hover")},this);this.classLinkEvent("mouseout",function(){this.el.down(".class-source-tip").removeCls("hover")},this)},classLinkEvent:function(d,e,f){this.el.on(d,e,f,{preventDefault:true,delegate:"a.class-source-link"})},createFileMenu:function(b){return new Ext.menu.Menu({items:Ext.Array.map(b,function(a){return{text:a.filename,handler:function(){window.open("source/"+a.href)}}},this)})},load:function(b){this.loadedCls=b;this.update(this.tpl.apply(b))}});Ext.define("Ext.panel.Header",{extend:"Ext.container.Container",uses:["Ext.panel.Tool","Ext.draw.Component","Ext.util.CSS"],alias:"widget.header",isHeader:true,defaultType:"tool",indicateDrag:false,weight:-1,renderTpl:['','Private'," ",'{name}','View source...',"",'',"singleton"," ","{[this.renderAliases(values.aliases)]}","{bodyCls}',''],initComponent:function(){var l=this,i,j,g,h,k;l.indicateDragCls=l.baseCls+"-draggable";l.title=l.title||" ";l.tools=l.tools||[];l.items=l.items||[];l.orientation=l.orientation||"horizontal";l.dock=(l.dock)?l.dock:(l.orientation=="horizontal")?"top":"left";l.addClsWithUI(l.orientation);l.addClsWithUI(l.dock);l.addChildEls("body");if(!Ext.isEmpty(l.iconCls)){l.initIconCmp();l.items.push(l.iconCmp)}if(l.orientation=="vertical"){if(Ext.isIE6||Ext.isIE7){l.width=this.width||24}else{if(Ext.isIEQuirks){l.width=this.width||25}}l.layout={type:"vbox",align:"center",clearInnerCtOnLayout:true,bindToOwnerCtContainer:false};l.textConfig={cls:l.baseCls+"-text",type:"text",text:l.title,rotate:{degrees:90}};k=l.ui;if(Ext.isArray(k)){k=k[0]}i="."+l.baseCls+"-text-"+k;if(Ext.scopeResetCSS){i="."+Ext.baseCSSPrefix+"reset "+i}j=Ext.util.CSS.getRule(i);if(j){g=j.style}if(g){Ext.apply(l.textConfig,{"font-family":g.fontFamily,"font-weight":g.fontWeight,"font-size":g.fontSize,fill:g.color})}l.titleCmp=Ext.create("Ext.draw.Component",{ariaRole:"heading",focusable:false,viewBox:false,flex:1,autoSize:true,margins:"5 0 0 0",items:[l.textConfig],renderSelectors:{textEl:"."+l.baseCls+"-text"}})}else{l.layout={type:"hbox",align:"middle",clearInnerCtOnLayout:true,bindToOwnerCtContainer:false};l.titleCmp=Ext.create("Ext.Component",{xtype:"component",ariaRole:"heading",focusable:false,flex:1,cls:l.baseCls+"-text-container",renderTpl:['{title}'],renderData:{title:l.title,cls:l.baseCls,ui:l.ui},childEls:["textEl"]})}l.items.push(l.titleCmp);l.items=l.items.concat(l.tools);this.callParent()},initIconCmp:function(){this.iconCmp=Ext.create("Ext.Component",{focusable:false,renderTpl:[''],renderData:{blank:Ext.BLANK_IMAGE_URL,cls:this.baseCls,iconCls:this.iconCls,orientation:this.orientation},childEls:["iconEl"],iconCls:this.iconCls})},afterRender:function(){var b=this;b.el.unselectable();if(b.indicateDrag){b.el.addCls(b.indicateDragCls)}b.mon(b.el,{click:b.onClick,scope:b});b.callParent()},afterLayout:function(){var b=this;b.callParent(arguments);if(Ext.isIE7){b.el.repaint()}},addUIClsToElement:function(h,k){var l=this,i=l.callParent(arguments),m=[l.baseCls+"-body-"+h,l.baseCls+"-body-"+l.ui+"-"+h],j,n;if(!k&&l.rendered){if(l.bodyCls){l.body.addCls(l.bodyCls)}else{l.body.addCls(m)}}else{if(l.bodyCls){j=l.bodyCls.split(" ");for(n=0;n',' "','{parent.baseCls}-body-{parent.ui}-{.} ','style="{bodyStyle}" >gridcolumn:not([hidden])"),j,f,g;h.callParent(arguments);if(i.length){f=i[0].el;if(f!==h.pastFirstHeaderEl){if(h.pastFirstHeaderEl){h.pastFirstHeaderEl.removeCls(h.firstHeaderCls)}f.addCls(h.firstHeaderCls);h.pastFirstHeaderEl=f}g=i[i.length-1].el;if(g!==h.pastLastHeaderEl){if(h.pastLastHeaderEl){h.pastLastHeaderEl.removeCls(h.lastHeaderCls)}g.addCls(h.lastHeaderCls);h.pastLastHeaderEl=g}}}},onHeaderShow:function(p,u){var m=this,i=m.ownerCt,s=m.getMenu(),r,t,o,v,n,q;if(s){o=s.down("menucheckitem[headerId="+p.id+"]");if(o){o.setChecked(true,true)}r=s.query("#columnItem>menucheckitem[checked]");t=r.length;if((m.getVisibleGridColumns().length>1)&&m.disabledMenuItems&&m.disabledMenuItems.length){if(t==1){Ext.Array.remove(m.disabledMenuItems,r[0])}for(q=0,n=m.disabledMenuItems.length;q menucheckitem[checked]");if((j.length===1)){if(!k.disabledMenuItems){k.disabledMenuItems=[]}if((k.getVisibleGridColumns().length===1)&&j[0].menu){j=j.concat(j[0].menu.query("menucheckitem[checked]"))}h=j.length;for(g=0;g gridcolumn[hideable]"),j=i.length,m;for(;h {text} ',dataIndex:null,text:" ",sortable:true,hideable:true,menuDisabled:false,renderer:false,align:"left",draggable:true,initDraggable:Ext.emptyFn,isHeader:true,initComponent:function(){var g=this,e,f,h;if(Ext.isDefined(g.header)){g.text=g.header;delete g.header}if(g.flex){g.minWidth=g.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}else{g.minWidth=g.width}if(!g.triStateSort){g.possibleSortStates.length=2}if(Ext.isDefined(g.columns)){g.isGroupHeader=true;if(g.dataIndex){Ext.Error.raise("Ext.grid.column.Column: Group header may not accept a dataIndex")}if((g.width&&g.width!==Ext.grid.header.Container.prototype.defaultWidth)||g.flex){Ext.Error.raise("Ext.grid.column.Column: Group header does not support setting explicit widths or flexs. The group header width is calculated by the sum of its children.")}g.items=g.columns;delete g.columns;delete g.flex;g.width=0;for(e=0,f=g.items.length;e :not([hidden])");if(!n.length){k.ownerCt.hide()}else{for(m=0,i=n.length;m*");for(r=0,o=n.length;r :not([hidden])");for(r=0,o=n.length;r "}return b}},enableAction:function(d){var c=this;if(!d){d=0}else{if(!Ext.isNumber(d)){d=Ext.Array.indexOf(c.items,d)}}c.items[d].disabled=false;c.up("tablepanel").el.select("."+Ext.baseCSSPrefix+"action-col-"+d).removeCls(c.disabledCls)},disableAction:function(d){var c=this;if(!d){d=0}else{if(!Ext.isNumber(d)){d=Ext.Array.indexOf(c.items,d)}}c.items[d].disabled=true;c.up("tablepanel").el.select("."+Ext.baseCSSPrefix+"action-col-"+d).addCls(c.disabledCls)},destroy:function(){delete this.items;delete this.renderer;return this.callParent(arguments)},processEvent:function(p,m,l,t,o,r){var q=this,s=r.getTarget().className.match(q.actionIdRe),e,n;if(s){e=q.items[parseInt(s[1],10)];if(e){if(p=="click"){n=e.handler||q.handler;if(n&&!e.disabled){n.call(e.scope||q.scope||q,m,t,o,e,r)}}else{if(p=="mousedown"&&e.stopSelection!==false){return false}}}}return q.callParent(arguments)},cascade:function(c,d){c.call(d||this,this)},getRefItems:function(){return[]}});Ext.define("Ext.button.Button",{alias:"widget.button",extend:"Ext.Component",requires:["Ext.menu.Manager","Ext.util.ClickRepeater","Ext.layout.component.Button","Ext.util.TextMetrics","Ext.util.KeyMap"],alternateClassName:"Ext.Button",isButton:true,componentLayout:"button",hidden:false,disabled:false,pressed:false,enableToggle:false,menuAlign:"tl-bl?",textAlign:"center",type:"button",clickEvent:"click",preventDefault:true,handleMouseEvents:true,tooltipType:"qtip",baseCls:Ext.baseCSSPrefix+"btn",pressedCls:"pressed",overCls:"over",focusCls:"focus",menuActiveCls:"menu-active",ariaRole:"button",renderTpl:' tabIndex="{tabIndex}" role="link">{text}role="button" autocomplete="off">{text} ',scale:"small",allowedScales:["small","medium","large"],iconAlign:"left",arrowAlign:"right",arrowCls:"arrow",maskOnDisable:false,initComponent:function(){var b=this;b.callParent(arguments);b.addEvents("click","toggle","mouseover","mouseout","menushow","menuhide","menutriggerover","menutriggerout");if(b.menu){b.split=true;b.menu=Ext.menu.Manager.get(b.menu);b.menu.ownerCt=b}if(b.url){b.href=b.url}if(b.href&&!b.hasOwnProperty("preventDefault")){b.preventDefault=false}if(Ext.isString(b.toggleGroup)){b.enableToggle=true}},initAria:function(){this.callParent();var b=this.getActionEl();if(this.menu){b.dom.setAttribute("aria-haspopup",true)}},getActionEl:function(){return this.btnEl},getFocusEl:function(){return this.btnEl},setButtonCls:function(){var g=this,e=[],f=g.btnIconEl,h="x-hide-display";if(g.useSetClass){if(!Ext.isEmpty(g.oldCls)){g.removeClsWithUI(g.oldCls);g.removeClsWithUI(g.pressedCls)}if(g.iconCls||g.icon){if(g.text){e.push("icon-text-"+g.iconAlign)}else{e.push("icon")}if(f){f.removeCls(h)}}else{if(g.text){e.push("noicon")}if(f){f.addCls(h)}}g.oldCls=e;g.addClsWithUI(e);g.addClsWithUI(g.pressed?g.pressedCls:null)}},onRender:function(i,g){var h=this,j,f;Ext.applyIf(h.renderData,h.getTemplateArgs());h.addChildEls("btnEl","btnWrap","btnInnerEl","btnIconEl");if(h.scale){h.ui=h.ui+"-"+h.scale}h.callParent(arguments);if(h.split&&h.arrowTooltip){h.arrowEl.dom.setAttribute(h.getTipAttr(),h.arrowTooltip)}h.mon(h.btnEl,{scope:h,focus:h.onFocus,blur:h.onBlur});f=h.el;if(h.icon){h.setIcon(h.icon)}if(h.iconCls){h.setIconCls(h.iconCls)}if(h.tooltip){h.setTooltip(h.tooltip,true)}if(h.textAlign){h.setTextAlign(h.textAlign)}if(h.handleMouseEvents){h.mon(f,{scope:h,mouseover:h.onMouseOver,mouseout:h.onMouseOut,mousedown:h.onMouseDown});if(h.split){h.mon(f,{mousemove:h.onMouseMove,scope:h})}}if(h.menu){h.mon(h.menu,{scope:h,show:h.onMenuShow,hide:h.onMenuHide});h.keyMap=Ext.create("Ext.util.KeyMap",h.el,{key:Ext.EventObject.DOWN,handler:h.onDownKey,scope:h})}if(h.repeat){j=Ext.create("Ext.util.ClickRepeater",f,Ext.isObject(h.repeat)?h.repeat:{});h.mon(j,"click",h.onRepeatClick,h)}else{h.mon(f,h.clickEvent,h.onClick,h)}Ext.ButtonToggleManager.register(h)},getTemplateArgs:function(){var f=this,d=f.getPersistentBtnPadding(),e="";if(Math.max.apply(Math,d)>0){e="margin:"+Ext.Array.map(d,function(a){return -a+"px"}).join(" ")}return{href:f.getHref(),target:f.target||"_blank",type:f.type,splitCls:f.getSplitCls(),cls:f.cls,iconCls:f.iconCls||"",text:f.text||" ",tabIndex:f.tabIndex,innerSpanStyle:e}},getHref:function(){var d=this,c=Ext.apply({},d.baseParams);c=Ext.apply(c,d.params);return d.href?Ext.urlAppend(d.href,Ext.Object.toQueryString(c)):false},setParams:function(b){this.params=b;this.btnEl.dom.href=this.getHref()},getSplitCls:function(){var b=this;return b.split?(b.baseCls+"-"+b.arrowCls)+" "+(b.baseCls+"-"+b.arrowCls+"-"+b.arrowAlign):""},afterRender:function(){var b=this;b.useSetClass=true;b.setButtonCls();b.doc=Ext.getDoc();this.callParent(arguments)},setIconCls:function(e){var g=this,f=g.btnIconEl,h=g.iconCls;g.iconCls=e;if(f){f.removeCls(h);f.addCls(e||"");g.setButtonCls()}return g},setTooltip:function(f,e){var d=this;if(d.rendered){if(!e){d.clearTip()}if(Ext.isObject(f)){Ext.tip.QuickTipManager.register(Ext.apply({target:d.btnEl.id},f));d.tooltip=f}else{d.btnEl.dom.setAttribute(d.getTipAttr(),f)}}else{d.tooltip=f}return d},setTextAlign:function(f){var d=this,e=d.btnEl;if(e){e.removeCls(d.baseCls+"-"+d.textAlign);e.addCls(d.baseCls+"-"+f)}d.textAlign=f;return d},getTipAttr:function(){return this.tooltipType=="qtip"?"data-qtip":"title"},getRefItems:function(e){var f=this.menu,d;if(f){d=f.getRefItems(e);d.unshift(f)}return d||[]},clearTip:function(){if(Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.btnEl)}},beforeDestroy:function(){var b=this;if(b.rendered){b.clearTip()}if(b.menu&&b.destroyMenu!==false){Ext.destroy(b.menu)}Ext.destroy(b.btnInnerEl,b.repeater);b.callParent()},onDestroy:function(){var b=this;if(b.rendered){b.doc.un("mouseover",b.monitorMouseOver,b);b.doc.un("mouseup",b.onMouseUp,b);delete b.doc;Ext.ButtonToggleManager.unregister(b);Ext.destroy(b.keyMap);delete b.keyMap}b.callParent()},setHandler:function(c,d){this.handler=c;this.scope=d;return this},setText:function(c){var d=this;d.text=c;if(d.el){d.btnInnerEl.update(c||" ");d.setButtonCls()}d.doComponentLayout();return d},setIcon:function(d){var f=this,e=f.btnIconEl;f.icon=d;if(e){e.setStyle("background-image",d?"url("+d+")":"");f.setButtonCls()}return f},getText:function(){return this.text},toggle:function(f,e){var d=this;f=f===undefined?!d.pressed:!!f;if(f!==d.pressed){if(d.rendered){d[f?"addClsWithUI":"removeClsWithUI"](d.pressedCls)}d.btnEl.dom.setAttribute("aria-pressed",f);d.pressed=f;if(!e){d.fireEvent("toggle",d,f);Ext.callback(d.toggleHandler,d.scope||d,[d,f])}}return d},maybeShowMenu:function(){var b=this;if(b.menu&&!b.hasVisibleMenu()&&!b.ignoreNextClick){b.showMenu()}},showMenu:function(){var b=this;if(b.rendered&&b.menu){if(b.tooltip&&b.getTipAttr()!="title"){Ext.tip.QuickTipManager.getQuickTip().cancelShow(b.btnEl)}if(b.menu.isVisible()){b.menu.hide()}b.menu.showBy(b.el,b.menuAlign)}return b},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var b=this.menu;return b&&b.rendered&&b.isVisible()},onRepeatClick:function(d,c){this.onClick(c)},onClick:function(c){var d=this;if(d.preventDefault||(d.disabled&&d.getHref())&&c){c.preventDefault()}if(c.button!==0){return}if(!d.disabled){d.doToggle();d.maybeShowMenu();d.fireHandler(c)}},fireHandler:function(f){var d=this,e=d.handler;d.fireEvent("click",d,f);if(e){e.call(d.scope||d,d,f)}d.onBlur()},doToggle:function(){var b=this;if(b.enableToggle&&(b.allowDepress!==false||!b.pressed)){b.toggle()}},onMouseOver:function(c){var d=this;if(!d.disabled&&!c.within(d.el,true,true)){d.onMouseEnter(c)}},onMouseOut:function(c){var d=this;if(!c.within(d.el,true,true)){if(d.overMenuTrigger){d.onMenuTriggerOut(c)}d.onMouseLeave(c)}},onMouseMove:function(i){var k=this,l=k.el,j=k.overMenuTrigger,e,h;if(k.split){if(k.arrowAlign==="right"){e=i.getX()-l.getX();h=l.getWidth()}else{e=i.getY()-l.getY();h=l.getHeight()}if(e>(h-k.getTriggerSize())){if(!j){k.onMenuTriggerOver(i)}}else{if(j){k.onMenuTriggerOut(i)}}}},getTriggerSize:function(){var h=this,j=h.triggerSize,f,g,i;if(j===i){f=h.arrowAlign;g=f.charAt(0);j=h.triggerSize=h.el.getFrameWidth(g)+h.btnWrap.getFrameWidth(g)+(h.frameSize&&h.frameSize[f]||0)}return j},onMouseEnter:function(c){var d=this;d.addClsWithUI(d.overCls);d.fireEvent("mouseover",d,c)},onMouseLeave:function(c){var d=this;d.removeClsWithUI(d.overCls);d.fireEvent("mouseout",d,c)},onMenuTriggerOver:function(c){var d=this;d.overMenuTrigger=true;d.fireEvent("menutriggerover",d,d.menu,c)},onMenuTriggerOut:function(c){var d=this;delete d.overMenuTrigger;d.fireEvent("menutriggerout",d,d.menu,c)},enable:function(d){var c=this;c.callParent(arguments);c.removeClsWithUI("disabled");return c},disable:function(d){var c=this;c.callParent(arguments);c.addClsWithUI("disabled");c.removeClsWithUI(c.overCls);return c},setScale:function(f){var e=this,d=e.ui.replace("-"+e.scale,"");if(!Ext.Array.contains(e.allowedScales,f)){throw ("#setScale: scale must be an allowed scale ("+e.allowedScales.join(", ")+")")}e.scale=f;e.setUI(d)},setUI:function(c){var d=this;if(d.scale&&!c.match(d.scale)){c=c+"-"+d.scale}d.callParent([c])},onFocus:function(c){var d=this;if(!d.disabled){d.addClsWithUI(d.focusCls)}},onBlur:function(c){var d=this;d.removeClsWithUI(d.focusCls)},onMouseDown:function(c){var d=this;if(!d.disabled&&c.button===0){d.addClsWithUI(d.pressedCls);d.doc.on("mouseup",d.onMouseUp,d)}},onMouseUp:function(c){var d=this;if(c.button===0){if(!d.pressed){d.removeClsWithUI(d.pressedCls)}d.doc.un("mouseup",d.onMouseUp,d)}},onMenuShow:function(c){var d=this;d.ignoreNextClick=0;d.addClsWithUI(d.menuActiveCls);d.fireEvent("menushow",d,d.menu)},onMenuHide:function(c){var d=this;d.removeClsWithUI(d.menuActiveCls);d.ignoreNextClick=Ext.defer(d.restoreClick,250,d);d.fireEvent("menuhide",d,d.menu)},restoreClick:function(){this.ignoreNextClick=0},onDownKey:function(){var b=this;if(!b.disabled){if(b.menu){b.showMenu()}}},getPersistentBtnPadding:function(){var h=Ext.button.Button,j=h.persistentPadding,l,g,k,i;if(!j){j=h.persistentPadding=[0,0,0,0];if(!Ext.isIE){l=Ext.create("Ext.button.Button",{renderTo:Ext.getBody(),text:"test",style:"position:absolute;top:-999px;"});k=l.btnEl;i=l.btnInnerEl;k.setSize(null,null);g=i.getOffsetsTo(k);j[0]=g[1];j[1]=k.getWidth()-i.getWidth()-g[0];j[2]=k.getHeight()-i.getHeight()-g[1];j[3]=g[0];l.destroy()}}return j}},function(){var d={};function c(g,a){var b,i,j;if(a){b=d[g.toggleGroup];for(i=0,j=b.length;i {bodyCls} {baseCls}-body-{ui} "{parent.baseCls}-body-{parent.ui}-{.} style="{bodyStyle}" >','{baseCls}-strip-{ui}'],initComponent:function(){var c=this,d;if(c.plain){c.setUI(c.ui+"-plain")}c.addClsWithUI(c.dock);c.addEvents("change");c.addChildEls("body","strip");c.callParent(arguments);c.layout.align=(c.orientation=="vertical")?"left":"top";c.layout.overflowHandler=Ext.create("Ext.layout.container.boxOverflow.Scroller",c.layout);c.remove(c.titleCmp);delete c.titleCmp;d=c.orientation=="vertical"?["up","down"]:["left","right"];Ext.FocusManager.subscribe(c,{keys:d});Ext.apply(c.renderData,{bodyCls:c.bodyCls})},onAdd:function(b){b.position=this.dock;this.callParent(arguments)},onRemove:function(d){var c=this;if(d===c.previousTab){c.previousTab=null}if(c.items.getCount()===0){c.activeTab=null}c.callParent(arguments)},afterRender:function(){var b=this;b.mon(b.el,{scope:b,click:b.onClick,delegate:"."+Ext.baseCSSPrefix+"tab"});b.callParent(arguments)},afterComponentLayout:function(){var b=this;b.callParent(arguments);b.strip.setWidth(b.el.getWidth())},onClick:function(h,e){var f=Ext.getCmp(e.id),g=this.tabPanel;e=h.getTarget();if(f&&f.isDisabled&&!f.isDisabled()){if(f.closable&&e===f.closeEl.dom){f.onCloseClick()}else{if(g){g.setActiveTab(f.card)}else{this.setActiveTab(f)}f.focus()}}},closeTab:function(j){var i=this,f=j.card,h=i.tabPanel,g;if(f&&f.fireEvent("beforeclose",f)===false){return false}if(j.active&&i.items.getCount()>1){g=i.previousTab||j.next("tab")||i.items.first();i.setActiveTab(g);if(h){h.setActiveTab(g.card)}}j.fireClose();i.remove(j);if(h&&f){f.fireEvent("close",f);h.remove(f)}if(g){g.focus()}},setActiveTab:function(d){if(d.disabled){return}var c=this;if(c.activeTab){c.previousTab=c.activeTab;c.activeTab.deactivate()}d.activate();if(c.rendered){c.layout.layout();d.el&&d.el.scrollIntoView(c.layout.getRenderTarget())}c.activeTab=d;c.fireEvent("change",c,d,d.card)}});Ext.define("Ext.menu.Item",{extend:"Ext.Component",alias:"widget.menuitem",alternateClassName:"Ext.menu.TextItem",activeCls:Ext.baseCSSPrefix+"menu-item-active",ariaRole:"menuitem",canActivate:true,clickHideDelay:1,destroyMenu:true,disabledCls:Ext.baseCSSPrefix+"menu-item-disabled",hideOnClick:true,isMenuItem:true,menuAlign:"tl-tr?",menuExpandDelay:200,menuHideDelay:200,renderTpl:['{parent.baseCls}-strip-{parent.ui}-{.} ">',"{text}"," ",'','target="{hrefTarget}" hidefocus="true" unselectable="on">','',' ','',''," ","
{description}
{[values.description.substr(0,80)]}...
{description}
l){l=h}}return l},getPositionByEvent:function(j){var k=this,e=j.getTarget(k.cellSelector),l=j.getTarget(k.itemSelector),h=k.getRecord(l),i=k.getHeaderByCell(e);return k.getPosition(h,i)},getHeaderByCell:function(c){if(c){var d=c.className.match(this.cellRe);if(d&&d[1]){return Ext.getCmp(d[1])}}return false},walkCells:function(s,r,w,q,B,p){var u=this,e=s.row,y=s.column,t=u.store.getCount(),x=u.getFirstVisibleColumnIndex(),A=u.getLastVisibleColumnIndex(),v={row:e,column:y},z=u.headerCt.getHeaderAtIndex(y);if(!z||z.hidden){return false}w=w||{};r=r.toLowerCase();switch(r){case"right":if(y===A){if(q||e===t-1){return false}if(!w.ctrlKey){v.row=e+1;v.column=x}}else{if(!w.ctrlKey){v.column=y+u.getRightGap(z)}else{v.column=A}}break;case"left":if(y===x){if(q||e===0){return false}if(!w.ctrlKey){v.row=e-1;v.column=A}}else{if(!w.ctrlKey){v.column=y+u.getLeftGap(z)}else{v.column=x}}break;case"up":if(e===0){return false}else{if(!w.ctrlKey){v.row=e-1}else{v.row=0}}break;case"down":if(e===t-1){return false}else{if(!w.ctrlKey){v.row=e+1}else{v.row=t-1}}break}if(B&&B.call(p||window,v)!==true){return false}else{return v}},getFirstVisibleColumnIndex:function(){var h=this.getHeaderCt(),f=h.getGridColumns(),g=Ext.ComponentQuery.query(":not([hidden])",f),e=g[0];return h.getHeaderIndex(e)},getLastVisibleColumnIndex:function(){var h=this.getHeaderCt(),f=h.getGridColumns(),g=Ext.ComponentQuery.query(":not([hidden])",f),e=g[g.length-1];return h.getHeaderIndex(e)},getHeaderCt:function(){return this.headerCt},getPosition:function(g,h){var i=this,f=i.store,j=i.headerCt.getGridColumns();return{row:f.indexOf(g),column:Ext.Array.indexOf(j,h)}},getRightGap:function(h){var i=this.getHeaderCt(),j=i.getGridColumns(),g=Ext.Array.indexOf(j,h),l=g+1,k;for(;l<=j.length;l++){if(!j[l].hidden){k=l;break}}return k-g},beforeDestroy:function(){if(this.rendered){this.el.removeAllListeners()}this.callParent(arguments)},getLeftGap:function(h){var i=this.getHeaderCt(),j=i.getGridColumns(),l=Ext.Array.indexOf(j,h),k=l-1,g;for(;k>=0;k--){if(!j[k].hidden){g=k;break}}return g-l}});Ext.define("Ext.grid.View",{extend:"Ext.view.Table",alias:"widget.gridview",stripeRows:true,invalidateScrollerOnRefresh:true,scrollToTop:function(){if(this.rendered){var c=this.ownerCt,d=c.verticalScroller;if(d){d.scrollToTop()}}},onAdd:function(f,e,d){this.callParent(arguments);this.doStripeRows(d)},onRemove:function(f,e,d){this.callParent(arguments);this.doStripeRows(d)},onUpdate:function(g,f,e){var h=g.indexOf(f);this.callParent(arguments);this.doStripeRows(h,h)},doStripeRows:function(g,h){if(this.stripeRows){var k=this.getNodes(g,h),i=k.length,l=0,j;for(;l'}t=Ext.get(s);v=t.insertSibling({tag:"tr",html:['',' "].join("")},"after");return{record:o,node:s,el:v,expanding:false,collapsing:false,animating:false,animateEl:v.down("div"),targetEl:v.down("tbody")}},getAnimWrap:function(b){if(!this.animate){return null}while(b){if(b.animWrap){return b.animWrap}b=b.parentNode}return null},doAdd:function(x,v,r){var q=this,t=v[0],o=t.parentNode,p=q.all.elements,a=0,u=q.getAnimWrap(o),n,w,s;if(!u||!u.expanding){q.resetScrollers();return q.callParent(arguments)}o=u.record;n=u.targetEl;w=n.dom.childNodes;s=w.length-1;a=r-q.indexOf(o)-1;if(!s||a>=s){n.appendChild(x)}else{Ext.fly(w[a+1]).insertSibling(x,"before",true)}Ext.Array.insert(p,r,x);if(u.isAnimating){q.onExpand(o)}},beginBulkUpdate:function(){this.bulkUpdate=true;this.ownerCt.changingScrollbars=true},endBulkUpdate:function(){var c=this,d=c.ownerCt;c.bulkUpdate=false;c.ownerCt.changingScrollbars=true;c.resetScrollers()},onRemove:function(h,g,f){var i=this,j=i.bulkUpdate;i.doRemove(g,f);if(!j){i.updateIndexes(f)}if(i.store.getCount()===0){i.refresh()}if(!j){i.fireEvent("itemremove",g,f)}},doRemove:function(i,n){var j=this,l=i.parentNode,m=j.all,h=j.getAnimWrap(i),k=m.item(n).dom;if(!h||!h.collapsing){j.resetScrollers();return j.callParent(arguments)}h.targetEl.appendChild(k);m.removeElement(n)},onBeforeExpand:function(i,f,j){var h=this,g;if(!h.rendered||!h.animate){return}if(h.getNode(i)){g=h.getAnimWrap(i);if(!g){g=i.animWrap=h.createAnimWrap(i);g.animateEl.setHeight(0)}else{if(g.collapsing){g.targetEl.select(h.itemSelector).remove()}}g.expanding=true;g.collapsing=false}},onExpand:function(p){var o=this,j=o.animQueue,k=p.getId(),i,n,m,l;if(o.singleExpand){o.ensureSingleExpand(p)}i=o.getAnimWrap(p);if(!i){o.resetScrollers();return}n=i.animateEl;m=i.targetEl;n.stopAnimation();j[k]=true;n.slideIn("t",{duration:o.expandDuration,listeners:{scope:o,lastframe:function(){i.el.insertSibling(m.query(o.itemSelector),"before");i.el.remove();o.resetScrollers();delete i.record.animWrap;delete j[k]}}});i.isAnimating=true},resetScrollers:function(){if(!this.bulkUpdate){var b=this.panel;b.determineScrollbars();b.invalidateScroller()}},onBeforeCollapse:function(i,f,j){var h=this,g;if(!h.rendered||!h.animate){return}if(h.getNode(i)){g=h.getAnimWrap(i);if(!g){g=i.animWrap=h.createAnimWrap(i,j)}else{if(g.expanding){g.targetEl.select(this.itemSelector).remove()}}g.expanding=false;g.collapsing=true}},onCollapse:function(n){var m=this,i=m.animQueue,j=n.getId(),h=m.getAnimWrap(n),l,k;if(!h){m.resetScrollers();return}l=h.animateEl;k=h.targetEl;i[j]=true;l.stopAnimation();l.slideOut("t",{duration:m.collapseDuration,listeners:{scope:m,lastframe:function(){h.el.remove();delete h.record.animWrap;m.resetScrollers();delete i[j]}}});h.isAnimating=true},isAnimating:function(b){return !!this.animQueue[b.getId()]},collectData:function(n){var k=this.callParent(arguments),l=k.rows,i=l.length,m=0,j,h;for(;m","','","',q,"
",""," ","",{columnHeight:this.columnHeight,renderLink:function(d){var c=Ext.Array.map(Docs.data.signatures,function(a){return d.meta[a.key]?''+(a["short"])+"":""}).join(" ");return Ext.String.format('{1} {2}',d.url,d.label,c)}});this.callParent()}});Ext.define("Ext.selection.RowModel",{extend:"Ext.selection.Model",alias:"selection.rowmodel",requires:["Ext.util.KeyNav"],deltaScroll:5,enableKeyNav:true,ignoreRightMouseSelection:true,constructor:function(){this.addEvents("beforedeselect","beforeselect","deselect","select");this.callParent(arguments)},bindComponent:function(d){var c=this;c.views=c.views||[];c.views.push(d);c.bind(d.getStore(),true);d.on({itemmousedown:c.onRowMouseDown,scope:c});if(c.enableKeyNav){c.initKeyNav(d)}},initKeyNav:function(d){var c=this;if(!d.rendered){d.on("render",Ext.Function.bind(c.initKeyNav,c,[d],0),c,{single:true});return}d.el.set({tabIndex:-1});c.keyNav=new Ext.util.KeyNav(d.el,{up:c.onKeyUp,down:c.onKeyDown,right:c.onKeyRight,left:c.onKeyLeft,pageDown:c.onKeyPageDown,pageUp:c.onKeyPageUp,home:c.onKeyHome,end:c.onKeyEnd,scope:c});d.el.on(Ext.EventManager.getKeyEvent(),c.onKeyPress,c)},getRowsVisible:function(){var h=false,g=this.views[0],i=g.getNode(0),f,j;if(i){f=Ext.fly(i).getHeight();j=g.el.getHeight();h=Math.floor(j/f)}return h},onKeyEnd:function(g,f){var h=this,e=h.store.getAt(h.store.getCount()-1);if(e){if(g.shiftKey){h.selectRange(e,h.lastFocused||0);h.setLastFocused(e)}else{if(g.ctrlKey){h.setLastFocused(e)}else{h.doSelect(e)}}}},onKeyHome:function(h,f){var e=this,g=e.store.getAt(0);if(g){if(h.shiftKey){e.selectRange(g,e.lastFocused||0);e.setLastFocused(g)}else{if(h.ctrlKey){e.setLastFocused(g)}else{e.doSelect(g,false)}}}},onKeyPageUp:function(l,o){var m=this,k=m.getRowsVisible(),e,p,j,n;if(k){e=m.lastFocused?m.store.indexOf(m.lastFocused):0;p=e-k;if(p<0){p=0}j=m.store.getAt(p);if(l.shiftKey){n=m.store.getAt(e);m.selectRange(j,n,l.ctrlKey,"up");m.setLastFocused(j)}else{if(l.ctrlKey){l.preventDefault();m.setLastFocused(j)}else{m.doSelect(j)}}}},onKeyPageDown:function(l,e){var n=this,k=n.getRowsVisible(),j,m,o,p;if(k){j=n.lastFocused?n.store.indexOf(n.lastFocused):0;m=j+k;if(m>=n.store.getCount()){m=n.store.getCount()-1}o=n.store.getAt(m);if(l.shiftKey){p=n.store.getAt(j);n.selectRange(o,p,l.ctrlKey,"down");n.setLastFocused(o)}else{if(l.ctrlKey){l.preventDefault();n.setLastFocused(o)}else{n.doSelect(o)}}}},onKeyPress:function(g,e){if(g.getKey()===g.SPACE){g.stopEvent();var h=this,f=h.lastFocused;if(f){if(h.isSelected(f)){h.doDeselect(f,false)}else{h.doSelect(f,true)}}}},onKeyUp:function(i,k){var j=this,l=j.views[0],h=j.store.indexOf(j.lastFocused),e;if(h>0){e=j.store.getAt(h-1);if(i.shiftKey&&j.lastFocused){if(j.isSelected(j.lastFocused)&&j.isSelected(e)){j.doDeselect(j.lastFocused,true);j.setLastFocused(e)}else{if(!j.isSelected(j.lastFocused)){j.doSelect(j.lastFocused,true);j.doSelect(e,true)}else{j.doSelect(e,true)}}}else{if(i.ctrlKey){j.setLastFocused(e)}else{j.doSelect(e)}}}},onKeyDown:function(i,k){var j=this,l=j.views[0],h=j.store.indexOf(j.lastFocused),e;if(h+1",' ',' ',"{[this.renderLink(values)]}","",''," ","",""," ",""+this.store.getCount()+"";this.store.on("datachanged",function(){this.setText(this.initialText+" "+this.store.getCount()+"")},this)}this.menu=Ext.create("Docs.view.HoverMenu",{store:this.store,columnHeight:this.getColumnHeight()});this.callParent(arguments)},getColumnHeight:function(){var c=200;var d=18;return Math.floor((Ext.Element.getViewportHeight()-c)/d)},onRender:function(){this.callParent(arguments);this.renderMenu();this.getEl().on({click:function(){this.fireEvent("click")},mouseover:this.deferShowMenu,mouseout:this.deferHideMenu,scope:this});this.menu.getEl().on({mouseover:function(){clearTimeout(this.hideTimeout)},mouseout:this.deferHideMenu,scope:this})},onDestroy:function(){this.menu.destroy();Ext.Array.remove(Docs.view.HoverMenuButton.menus,this.menu);this.callParent(arguments)},renderMenu:function(){this.menu.getEl().setVisibilityMode(Ext.core.Element.DISPLAY);this.menu.hide();this.menu.getEl().addListener("click",function(b){this.menu.hide();b.preventDefault()},this);Docs.view.HoverMenuButton.menus.push(this.menu)},deferHideMenu:function(){clearTimeout(Docs.view.HoverMenuButton.showTimeout);this.hideTimeout=Ext.Function.defer(function(){this.menu.hide()},200,this)},deferShowMenu:function(){clearTimeout(Docs.view.HoverMenuButton.showTimeout);Docs.view.HoverMenuButton.showTimeout=Ext.Function.defer(function(){Ext.Array.forEach(Docs.view.HoverMenuButton.menus,function(a){if(a!==this.menu){a.hide()}},this);clearTimeout(this.hideTimeout);this.menu.show();var j=this.getEl().getXY(),n=Ext.ComponentQuery.query("classoverview toolbar")[0],k=j[0]-10,l=n.getEl().getXY(),i=n.getWidth(),m=this.menu.getEl().getWidth(),h=Ext.getCmp("doctabs").getWidth();if(m>h){k=0}else{if((k+m)>h){k=h-m-30}}if(k =this.minX;e=e-f){if(!h[e]){this.xTicks[this.xTicks.length]=e;h[e]=true}}for(e=this.initPageX;e<=this.maxX;e=e+f){if(!h[e]){this.xTicks[this.xTicks.length]=e;h[e]=true}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(g,f){this.yTicks=[];this.yTickSize=f;var h={};for(var e=this.initPageY;e>=this.minY;e=e-f){if(!h[e]){this.yTicks[this.yTicks.length]=e;h[e]=true}}for(e=this.initPageY;e<=this.maxY;e=e+f){if(!h[e]){this.yTicks[this.yTicks.length]=e;h[e]=true}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(f,d,e){this.leftConstraint=f;this.rightConstraint=d;this.minX=this.initPageX-f;this.maxX=this.initPageX+d;if(e){this.setXTicks(this.initPageX,e)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(e,f,d){this.topConstraint=e;this.bottomConstraint=f;this.minY=this.initPageY-e;this.maxY=this.initPageY+f;if(d){this.setYTicks(this.initPageY,d)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var c=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var d=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(c,d)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(j,m){if(!m){return j}else{if(m[0]>=j){return m[0]}else{for(var h=0,i=m.length;h=j){var k=j-m[h];var l=m[n]-j;return(l>k)?m[h]:m[n]}}return m[m.length-1]}}},toString:function(){return("DragDrop "+this.id)}});Ext.define("Ext.dd.DD",{extend:"Ext.dd.DragDrop",requires:["Ext.dd.DragDropManager"],constructor:function(f,e,d){if(f){this.init(f,e,d)}},scroll:true,autoOffset:function(h,e){var f=h-this.startPageX;var g=e-this.startPageY;this.setDelta(f,g)},setDelta:function(c,d){this.deltaX=c;this.deltaY=d},setDragElPos:function(f,d){var e=this.getDragEl();this.alignElWithMouse(e,f,d)},alignElWithMouse:function(u,r,t){var q=this.getTargetCoord(r,t),s=u.dom?u:Ext.fly(u,"_dd"),l=s.getSize(),o=Ext.Element,n;if(!this.deltaSetXY){n=this.cachedViewportSize={width:o.getDocumentWidth(),height:o.getDocumentHeight()};var v=[Math.max(0,Math.min(q.x,n.width-l.width)),Math.max(0,Math.min(q.y,n.height-l.height))];s.setXY(v);var m=s.getLeft(true);var p=s.getTop(true);this.deltaSetXY=[m-q.x,p-q.y]}else{n=this.cachedViewportSize;s.setLeftTop(Math.max(0,Math.min(q.x+this.deltaSetXY[0],n.width-l.width)),Math.max(0,Math.min(q.y+this.deltaSetXY[1],n.height-l.height)))}this.cachePosition(q.x,q.y);this.autoScroll(q.x,q.y,u.offsetHeight,u.offsetWidth);return q},cachePosition:function(d,e){if(d){this.lastPageX=d;this.lastPageY=e}else{var f=Ext.Element.getXY(this.getEl());this.lastPageX=f[0];this.lastPageY=f[1]}},autoScroll:function(s,t,x,r){if(this.scroll){var q=Ext.Element.getViewHeight();var A=Ext.Element.getViewWidth();var h=this.DDMInstance.getScrollTop();var y=this.DDMInstance.getScrollLeft();var u=x+t;var p=r+s;var v=(q+h-t-this.deltaY);var w=(A+y-s-this.deltaX);var z=40;var B=(document.all)?80:30;if(u>q&&v 0&&t-h A&&w 0&&s-y this.maxX){f=this.maxX}}if(this.constrainY){if(g this.maxY){g=this.maxY}}f=this.getTick(f,this.xTicks);g=this.getTick(g,this.yTicks);return{x:f,y:g}},applyConfig:function(){this.callParent();this.scroll=(this.config.scroll!==false)},b4MouseDown:function(b){this.autoOffset(b.getPageX(),b.getPageY())},b4Drag:function(b){this.setDragElPos(b.getPageX(),b.getPageY())},toString:function(){return("DD "+this.id)}});Ext.define("Ext.dd.DDProxy",{extend:"Ext.dd.DD",statics:{dragElId:"ygddfdiv"},constructor:function(f,e,d){if(f){this.init(f,e,d);this.initFrame()}},resizeFrame:true,centerFrame:false,createFrame:function(){var e=this;var f=document.body;if(!f||!f.firstChild){setTimeout(function(){e.createFrame()},50);return}var g=this.getDragEl();if(!g){g=document.createElement("div");g.id=this.dragElId;var h=g.style;h.position="absolute";h.visibility="hidden";h.cursor="move";h.border="2px solid #aaa";h.zIndex=999;f.insertBefore(g,f.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){this.callParent();this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(h,i){var j=this.getEl();var g=this.getDragEl();var f=g.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(f.width,10)/2),Math.round(parseInt(f.height,10)/2))}this.setDragElPos(h,i);Ext.fly(g).show()},_resizeProxy:function(){if(this.resizeFrame){var b=this.getEl();Ext.fly(this.getDragEl()).setSize(b.offsetWidth,b.offsetHeight)}},b4MouseDown:function(d){var e=d.getPageX();var f=d.getPageY();this.autoOffset(e,f);this.setDragElPos(e,f)},b4StartDrag:function(d,c){this.showFrame(d,c)},b4EndDrag:function(b){Ext.fly(this.getDragEl()).hide()},endDrag:function(f){var d=this.getEl();var e=this.getDragEl();e.style.visibility="";this.beforeMove();d.style.visibility="hidden";Ext.dd.DDM.moveToEl(d,e);e.style.visibility="hidden";d.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)}});Ext.define("Ext.dd.DragSource",{extend:"Ext.dd.DDProxy",requires:["Ext.dd.StatusProxy","Ext.dd.DragDropManager"],dropAllowed:Ext.baseCSSPrefix+"dd-drop-ok",dropNotAllowed:Ext.baseCSSPrefix+"dd-drop-nodrop",animRepair:true,repairHighlightColor:"c3daf9",constructor:function(c,d){this.el=Ext.get(c);if(!this.dragData){this.dragData={}}Ext.apply(this,d);if(!this.proxy){this.proxy=Ext.create("Ext.dd.StatusProxy",{animRepair:this.animRepair})}this.callParent([this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:false,isTarget:false,scroll:this.scroll===true}]);this.dragging=false},getDragData:function(b){return this.dragData},onDragEnter:function(h,g){var e=Ext.dd.DragDropManager.getDDById(g);this.cachedTarget=e;if(this.beforeDragEnter(e,h,g)!==false){if(e.isNotifyTarget){var f=e.notifyEnter(this,h,this.dragData);this.proxy.setStatus(f)}else{this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(e,h,g)}}},beforeDragEnter:function(d,e,f){return true},alignElWithMouse:function(){this.callParent(arguments);this.proxy.sync()},onDragOver:function(h,g){var e=this.cachedTarget||Ext.dd.DragDropManager.getDDById(g);if(this.beforeDragOver(e,h,g)!==false){if(e.isNotifyTarget){var f=e.notifyOver(this,h,this.dragData);this.proxy.setStatus(f)}if(this.afterDragOver){this.afterDragOver(e,h,g)}}},beforeDragOver:function(d,e,f){return true},onDragOut:function(d,f){var e=this.cachedTarget||Ext.dd.DragDropManager.getDDById(f);if(this.beforeDragOut(e,d,f)!==false){if(e.isNotifyTarget){e.notifyOut(this,d,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(e,d,f)}}this.cachedTarget=null},beforeDragOut:function(d,e,f){return true},onDragDrop:function(d,f){var e=this.cachedTarget||Ext.dd.DragDropManager.getDDById(f);if(this.beforeDragDrop(e,d,f)!==false){if(e.isNotifyTarget){if(e.notifyDrop(this,d,this.dragData)!==false){this.onValidDrop(e,d,f)}else{this.onInvalidDrop(e,d,f)}}else{this.onValidDrop(e,d,f)}if(this.afterDragDrop){this.afterDragDrop(e,d,f)}}delete this.cachedTarget},beforeDragDrop:function(d,e,f){return true},onValidDrop:function(d,e,f){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(d,e,f)}},getRepairXY:function(c,d){return this.el.getXY()},onInvalidDrop:function(d,e,f){this.beforeInvalidDrop(d,e,f);if(this.cachedTarget){if(this.cachedTarget.isNotifyTarget){this.cachedTarget.notifyOut(this,e,this.dragData)}this.cacheTarget=null}this.proxy.repair(this.getRepairXY(e,this.dragData),this.afterRepair,this);if(this.afterInvalidDrop){this.afterInvalidDrop(e,f)}},afterRepair:function(){var b=this;if(Ext.enableFx){b.el.highlight(b.repairHighlightColor)}b.dragging=false},beforeInvalidDrop:function(d,e,f){return true},handleMouseDown:function(c){if(this.dragging){return}var d=this.getDragData(c);if(d&&this.onBeforeDrag(d,c)!==false){this.dragData=d;this.proxy.stop();this.callParent(arguments)}},onBeforeDrag:function(d,c){return true},onStartDrag:Ext.emptyFn,startDrag:function(d,c){this.proxy.reset();this.dragging=true;this.proxy.update("");this.onInitDrag(d,c);this.proxy.show()},onInitDrag:function(e,f){var d=this.el.dom.cloneNode(true);d.id=Ext.id();this.proxy.update(d);this.onStartDrag(e,f);return true},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(true);this.dragging=false},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(b){},endDrag:function(b){this.onEndDrag(this.dragData,b)},onEndDrag:function(d,c){},autoOffset:function(d,c){this.setDelta(-12,-20)},destroy:function(){this.callParent();Ext.destroy(this.proxy)}});Ext.define("Ext.panel.DD",{extend:"Ext.dd.DragSource",requires:["Ext.panel.Proxy"],constructor:function(c,d){this.panel=c;this.dragData={panel:c};this.proxy=Ext.create("Ext.panel.Proxy",c,d);this.callParent([c.el,d]);Ext.defer(function(){var a=c.header,b=c.body;if(a){this.setHandleElId(a.id);b=a.el}b.setStyle("cursor","move");this.scroll=false},200,this)},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(d,c){this.proxy.show()},b4MouseDown:function(d){var e=d.getPageX(),f=d.getPageY();this.autoOffset(e,f)},onInitDrag:function(d,c){this.onStartDrag(d,c);return true},createFrame:Ext.emptyFn,getDragEl:function(b){return this.proxy.ghost.el.dom},endDrag:function(b){this.proxy.hide();this.panel.saveState()},autoOffset:function(d,c){d-=this.startPageX;c-=this.startPageY;this.setDelta(d,c)}});Ext.define("Ext.toolbar.Separator",{extend:"Ext.toolbar.Item",alias:"widget.tbseparator",alternateClassName:"Ext.Toolbar.Separator",baseCls:Ext.baseCSSPrefix+"toolbar-separator",focusable:false});Ext.define("Ext.layout.container.boxOverflow.Menu",{extend:"Ext.layout.container.boxOverflow.None",requires:["Ext.toolbar.Separator","Ext.button.Button"],alternateClassName:"Ext.layout.boxOverflow.Menu",noItemsMenuText:' ',constructor:function(c){var d=this;d.callParent(arguments);c.beforeLayout=Ext.Function.createInterceptor(c.beforeLayout,this.clearOverflow,this);d.afterCtCls=d.afterCtCls||Ext.baseCSSPrefix+"box-menu-"+c.parallelAfter;d.menuItems=[]},onRemove:function(b){Ext.Array.remove(this.menuItems,b)},handleOverflow:function(i,j){var k=this,l=k.layout,n="get"+l.parallelPrefixCap,h={},m=[null,null];k.callParent(arguments);this.createMenu(i,j);h[l.perpendicularPrefix]=j[l.perpendicularPrefix];h[l.parallelPrefix]=j[l.parallelPrefix]-k.afterCt[n]();m[l.perpendicularSizeIndex]=(i.meta.maxSize-k.menuTrigger["get"+l.perpendicularPrefixCap]())/2;k.menuTrigger.setPosition.apply(k.menuTrigger,m);return{targetSize:h}},clearOverflow:function(j,k){var l=this,m=k?k.width+(l.afterCt?l.afterCt.getWidth():0):0,i=l.menuItems,p=0,n=i.length,o;l.hideTrigger();for(;pu){m.menuItems.push(q.component);q.component.hide()}}},createInnerElements:function(){var d=this,c=d.layout.getRenderTarget();if(!this.afterCt){c.addCls(Ext.baseCSSPrefix+d.layout.direction+"-box-overflow-body");this.afterCt=c.insertSibling({cls:Ext.layout.container.Box.prototype.innerCls+" "+this.afterCtCls},"before")}},destroy:function(){Ext.destroy(this.menu,this.menuTrigger)}});Ext.define("Ext.layout.container.Box",{alias:["layout.box"],extend:"Ext.layout.container.Container",alternateClassName:"Ext.layout.BoxLayout",requires:["Ext.layout.container.boxOverflow.None","Ext.layout.container.boxOverflow.Menu","Ext.layout.container.boxOverflow.Scroller","Ext.util.Format","Ext.dd.DragDropManager"],defaultMargins:{top:0,right:0,bottom:0,left:0},padding:"0",pack:"start",type:"box",scrollOffset:0,itemCls:Ext.baseCSSPrefix+"box-item",targetCls:Ext.baseCSSPrefix+"box-layout-ct",innerCls:Ext.baseCSSPrefix+"box-inner",bindToOwnerCtContainer:true,availableSpaceOffset:0,reserveOffset:true,shrinkToFit:true,clearInnerCtOnLayout:false,flexSortFn:function(g,h){var b="max"+this.parallelPrefixCap,a=Infinity;g=g.component[b]||a;h=h.component[b]||a;if(!isFinite(g)&&!isFinite(h)){return false}return g-h},minSizeSortFn:function(a,b){return b.available-a.available},constructor:function(d){var c=this;c.callParent(arguments);c.flexSortFn=Ext.Function.bind(c.flexSortFn,c);c.initOverflowHandler()},getChildBox:function(c){c=c.el||this.owner.getComponent(c).el;var d=c.getBox(false,true);return{left:d.left,top:d.top,width:d.width,height:d.height}},calculateChildBox:function(h){var i=this,f=i.calculateChildBoxes(i.getVisibleItems(),i.getLayoutTargetSize()).boxes,j=f.length,g=0;h=i.owner.getComponent(h);for(;g bo}bm=bg(0,bo-bn-a7-(a4.reserveOffset?a4.availableSpaceOffset:0));if(bf){for(aR=0;aR 0){for(aR=0;aR 0)}else{bq=bm;bb=aM;au=[];for(aR=0;aR 0){av[a4.perpendicularLeftTop]=ay+Math.round(aT/2)}}}}ba+=(av[a9]||0)+aY[a4.parallelAfter]}return{boxes:ax,meta:{calculatedWidth:aP,maxSize:aO,nonFlexSize:bn,desiredSize:aF,minimumSize:a5,shortfall:ap,tooNarrow:bf}}},onRemove:function(b){this.callParent(arguments);if(this.overflowHandler){this.overflowHandler.onRemove(b)}},initOverflowHandler:function(){var f=this.overflowHandler;if(typeof f=="string"){f={type:f}}var d="None";if(f&&f.type!==undefined){d=f.type}var e=Ext.layout.container.boxOverflow[d];if(e[this.type]){e=e[this.type]}this.overflowHandler=Ext.create("Ext.layout.container.boxOverflow."+d,this,f)},onLayout:function(){this.callParent();if(this.clearInnerCtOnLayout===true&&this.adjustmentPass!==true){this.innerCt.setSize(null,null)}var l=this,p=l.getLayoutTargetSize(),m=l.getVisibleItems(),q=l.calculateChildBoxes(m,p),n=q.boxes,k=q.meta,j,r,o;if(l.autoSize&&q.meta.desiredSize){p[l.parallelPrefix]=q.meta.desiredSize}if(k.shortfall>0){j=l.overflowHandler;r=k.tooNarrow?"handleOverflow":"clearOverflow";o=j[r](q,p);if(o){if(o.targetSize){p=o.targetSize}if(o.recalculate){m=l.getVisibleItems();q=l.calculateChildBoxes(m,p);n=q.boxes}}}else{l.overflowHandler.clearOverflow()}l.layoutTargetLastSize=p;l.childBoxCache=q;l.updateInnerCtSize(p,q);l.updateChildBoxes(n);l.handleTargetOverflow(p)},animCallback:Ext.emptyFn,updateChildBoxes:function(v){var r=this,x=0,z=v.length,i=[],p=Ext.dd.DDM.getDDById(r.innerCt.id),B,w,y,u,t,A;for(;x l.calculatedWidth){p.owner.el.setWidth(l.calculatedWidth)}if(p.innerCt.dom.scrollTop){p.innerCt.dom.scrollTop=0}},handleTargetOverflow:function(h){var e=this.getTarget(),g=e.getStyle("overflow"),f;if(g&&g!="hidden"&&!this.adjustmentPass){f=this.getLayoutTargetSize();if(f.width!=h.width||f.height!=h.height){this.adjustmentPass=true;this.onLayout();return true}}delete this.adjustmentPass},isValidParent:function(h,g,f){var e=h.el?h.el.dom:Ext.getDom(h);return(e&&this.innerCt&&e.parentNode===this.innerCt.dom)||false},getRenderTarget:function(){if(!this.innerCt){this.innerCt=this.getTarget().createChild({cls:this.innerCls,role:"presentation"});this.padding=Ext.util.Format.parseBox(this.padding)}return this.innerCt},renderItem:function(k,i){this.callParent(arguments);var l=this,h=k.getEl(),g=h.dom.style,j=k.margins||k.margin;if(j){if(Ext.isString(j)||Ext.isNumber(j)){j=Ext.util.Format.parseBox(j)}else{Ext.applyIf(j,{top:0,right:0,bottom:0,left:0})}}else{j=Ext.apply({},l.defaultMargins)}j.top+=h.getMargin("t");j.right+=h.getMargin("r");j.bottom+=h.getMargin("b");j.left+=h.getMargin("l");j.height=j.top+j.bottom;j.width=j.left+j.right;g.marginTop=g.marginRight=g.marginBottom=g.marginLeft="0";k.margins=j},destroy:function(){Ext.destroy(this.innerCt,this.overflowHandler);this.callParent(arguments)}});Ext.define("Ext.layout.container.Fit",{extend:"Ext.layout.container.AbstractFit",alias:"layout.fit",alternateClassName:"Ext.layout.FitLayout",requires:["Ext.layout.container.Box"],defaultMargins:{top:0,right:0,bottom:0,left:0},onLayout:function(){var h=this,f,e,g;h.callParent();if(h.owner.items.length){e=h.owner.items.get(0);g=e.margins||h.defaultMargins;f=h.getLayoutTargetSize();f.width-=g.width;f.height-=g.height;h.setItemBox(e,f);if(g.left||g.top){e.setPosition(g.left,g.top)}}},getTargetBox:function(){return this.getLayoutTargetSize()},setItemBox:function(f,d){var e=this;if(f&&d.height>0){if(!e.owner.isFixedWidth()){d.width=undefined}if(!e.owner.isFixedHeight()){d.height=undefined}e.setItemSize(f,d.width,d.height)}},configureItem:function(b){b.layoutManagedHeight=0;b.layoutManagedWidth=0;this.callParent(arguments)}},function(){this.prototype.renderItem=Ext.layout.container.Box.prototype.renderItem});Ext.define("Ext.layout.container.AbstractCard",{extend:"Ext.layout.container.Fit",type:"card",sizeAllCards:false,hideInactive:true,deferredRender:false,beforeLayout:function(){var b=this;b.getActiveItem();if(b.activeItem&&b.deferredRender){b.renderItems([b.activeItem],b.getRenderTarget());return true}else{return this.callParent(arguments)}},renderChildren:function(){if(!this.deferredRender){this.getActiveItem();this.callParent()}},onLayout:function(){var k=this,j=k.activeItem,h=k.getVisibleItems(),l=h.length,i=k.getTargetBox(),n,m;for(n=0;n ":"tbfill"}});Ext.define("Ext.panel.AbstractPanel",{extend:"Ext.container.Container",requires:["Ext.util.MixedCollection","Ext.Element","Ext.toolbar.Toolbar"],baseCls:Ext.baseCSSPrefix+"panel",isPanel:true,componentLayout:"dock",defaultDockWeights:{top:1,left:3,right:5,bottom:7},renderTpl:[' {bodyCls}',' {baseCls}-body-{ui}"],border:true,initComponent:function(){var b=this;b.addEvents("bodyresize");b.addChildEls("body");if(b.frame&&b.border&&b.bodyBorder===undefined){b.bodyBorder=false}if(b.frame&&b.border&&(b.bodyBorder===false||b.bodyBorder===0)){b.manageBodyBorders=true}b.callParent()},initItems:function(){var c=this,d=c.dockedItems;c.callParent();c.dockedItems=Ext.create("Ext.util.MixedCollection",false,c.getComponentId);if(d){c.addDocked(d)}},getDockedComponent:function(b){if(Ext.isObject(b)){b=b.getItemId()}return this.dockedItems.get(b)},getComponent:function(d){var c=this.callParent(arguments);if(c===undefined&&!Ext.isNumber(d)){c=this.getDockedComponent(d)}return c},initBodyStyles:function(){var i=this,g=i.bodyStyle,j=[],f=Ext.Element,h;if(Ext.isFunction(g)){g=g()}if(Ext.isString(g)){j=g.split(";")}else{for(h in g){if(g.hasOwnProperty(h)){j.push(h+":"+g[h])}}}if(i.bodyPadding!==undefined){j.push("padding: "+f.unitizeBox((i.bodyPadding===true)?5:i.bodyPadding))}if(i.frame&&i.bodyBorder){if(!Ext.isNumber(i.bodyBorder)){i.bodyBorder=1}j.push("border-width: "+f.unitizeBox(i.bodyBorder))}delete i.bodyStyle;return j.length?j.join(";"):undefined},initBodyCls:function(){var d=this,e="",f=d.bodyCls;if(f){Ext.each(f,function(a){e+=" "+a});delete d.bodyCls}return e.length>0?e:undefined},initRenderData:function(){return Ext.applyIf(this.callParent(),{bodyStyle:this.initBodyStyles(),bodyCls:this.initBodyCls()})},addDocked:function(h,i){var j=this,g=0,k,l;h=j.prepareItems(h);l=h.length;for(;g',' "{parent.baseCls}-body-{parent.ui}-{.} ','style="{bodyStyle}" >',"1;if(j.destroying||!h){j.activeTab=null}else{if(i===j.activeTab){j.setActiveTab(i.next()||g.getAt(0))}}j.callParent(arguments);delete i.tab.card;delete i.tab},onRemove:function(f,e){var d=this;f.un({scope:d,enable:d.onItemEnable,disable:d.onItemDisable,beforeshow:d.onItemBeforeShow});if(!d.destroying&&f.tab.ownerCt==d.tabBar){d.tabBar.remove(f.tab)}}});Ext.define("Docs.view.examples.TouchContainer",{extend:"Ext.panel.Panel",alias:"widget.touchexamplecontainer",requires:["Docs.view.examples.Device"],layout:"fit",cls:"example-container iScroll",autoScroll:true,bodyPadding:"10 0 5 0",initComponent:function(){this.dockedItems=[{xtype:"container",dock:"top",html:[' Example
','